Haha, yes ugly, but very clear.

In any case, using bind (as on CompoundPropertyModel) works as well. That way you can use proper component ids in combination with XPath-like property expression.



Johan Compagner wrote:
do you really use such ugly id's? :)

On Tue, Mar 24, 2009 at 15:15, Erik van Oosten <[email protected]> wrote:

Interesting.

I think we have something similar. We do stuff like
 new TextField("/addresses/address[1]/street")
and this will automatically bind the text field to a node in the XML
document that was attached to the form.

Regards,
  Erik.


Jan Kriesten wrote:

I did something like that with XML specifying the form and having a
ElementModel
binding the form elements to JDOM nodes.

Best regards, --- Jan.



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to