I was reading a discussion on TSS about some yet another controller
framework, and I came across this message:
http://www.theserverside.com/news/thread.tss?thread_id=35297#178752 by
Dennis Bekkering: "Since (x)html is hierarchical it can be perfectly
translated into a class model." Bingo!

Since I do not have a good knowledge of Wicket yet, I believe that
Wicket is built around different model. There are Java classes on one
hand, and there is HTML on the other hand. A developer should create
both, then should assign correct IDs to HTML elements, then these HTML
elements would be substituted textually merely because the IDs are the
same.

What Dennis talks about is that Java object model can reflect HTML
object model. HTML has DOM. I don't know how exactly the development
process would look like, because designers need their HTML template
pages, and developers need to write and test code. So, having HTML
being updated dynamically while a developer creates Java classes does
not seem to work, at least in current development enviroment, where
Dreamweaver and IDEA are used by orthogonally different groups of
people.

Does anyone have an idea, how to exploit the fact that HTML in fact
has object structure, which can be reflected in Java? Maybe it is
possible to come up with some composite file, which would contain HTML
for browser, and related Java code. Java code should be in commented
section, so browser would not see it. It would be stripped for
production just like Wicked IDs are stripped now. Problem is that Java
code should be updated or at least invalidated after designers
added/removed sections of HTML... Well, I guess I am dreaming now ;)

Michael.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to