on 5/8/2000 8:07 AM, Maciek Kaminski <[EMAIL PROTECTED]> wrote:
> For some time I have been experimenting with using component
> application model with Turbine. Whole user interaction is handled
> via events.
>
> It is more radical than adding ActionEventListener to Action but
> you migth find it interesting.
right...i think that is taking things to far. i think it makes the code to
complicated for others to work with. especially newer engineers...
> DefaultContainer c = new DefaultContainer();
>
> final HText text0 = new HText("Hello World.");
> final HText text1 = new HText("Number of hits: " +
> numberOfHits);
> HLinkButton button = new HLinkButton("Hit me!", true);
I hope that on the back end you are wrapping these things around ECS and not
just re-creating it! :-)
Also, the problem with this is that you are not creating a fully MVC model
where ALL of the HTML is in the template files. in other words, if you want
to change the name of a button or some text, you still need to edit the java
class file.
with the recent tighter integration with WebMacro and Freemarker, I think
that we have proven that using a template tool is a much better solution
than putting any of the html (even just button names) into the java code.
it took some trying to get it right, but i think we are pretty close now.
with Scarab, i have 99.9% MVC abstraction. there is zero things about the UI
model that cannot be edited by page designers. so far, the only thing that
is being embedded in the code is some error messages and eventually those
will get Localized out so i will have 100% MVC.
> button.addActionListener(new ActionListener() {
> public void actionPerformed(ActionEvent event) {
> numberOfHits++;
> text1.setValue("Number of hits: " + numberOfHits);
> }
> });
Personally, I just don't like code like this. I find it pretty hard to read.
> This work is at the stage of developement. Most of the classes
> lack documentation at the moment.
totally cool. I love to see people using this code in ways that i never
imagined. :-) creativity is good.
-jon
--
Java Servlet Based - Open Source | Collab.Net
Bug/Issue Tracking System |
<http://scarab.tigris.org/> | <http://Collab.Net/jobs/>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]