From: "James Strachan" <[EMAIL PROTECTED]>
> From: "Neeme Praks" <[EMAIL PROTECTED]>
> > Hi James!
> >
> > Is there any plan of making JellySwing and JellySWT to support XUL style
> > markup? So XUL would be used to describe the UI and switching between
> > XUL implementations would be easier...?
>
> Its always been an area I'd like to explore; using XUL to describe rich
user
> interfaces, which can then either be rendered natively in Mozilla or some
> other XUL implementation or transformed (say via XSLT) into HTML/DHTML or
> rendered with Swing or SWT.
>
[snip]
>
> The biggest issue I can see right now with either of these approaches is
how
> do we specify the models across rendering technologies. I wonder if
JSFaces
> will help in this area one day?).
>
> XUL when used in Mozilla uses RDF for all the models. I've gotta say I'm
not
> much of an RDF fan; if anything I'd prefer XML with XPath, its much easier
> to grok, use and its way more popular too. For Java developers it might be
> easier to use something like Action, ListModel, TableModel and TreeModel
> from Swing rather than to convert everything into RDF.


FWIW right now in JellySwing there's a reusable TableModel that uses Jexl
expressions (though it could easily use other expression/scripting languages
too) to extract rows of data and fields in a row. This allows a TableModel
to be easily created from any bean model (using arrays, collections,
iterators, indexed properties etc) to navigate the rows and then use
arbitrary expressions to extract values from each bean/map/DynaBean row.
Similar approaches are used in JSTL, Struts and Velocity in the web worlds.

So maybe we just need some general way to define the binding of the model
(business objects, beans etc) to the view model via expressions? Though
sharing UI model implementations across rendering technologies will help
promote reuse. So far the Swing UI models seem the best I've seen so far.

James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to