webtier@glassfish.java.net

Re: [webtier] Question about Jim Driscoll's Ajax EditText Component Example

From: <webtier_at_javadesktop.org>
Date: Thu, 05 Feb 2009 10:54:59 PST

Hey Jim,

Yeah your example works great actually. When I get access to my PC I'll send my examples.

The reason I'm adding the actionListener tag is because I want to be able to take an action once the value has been submitted back to the server.

Right now I am getting around it by using a field in my Managed bean as an intermediary between editText and the nested object field I wish to update. (object.child.field) So editText triggers the setField(String value) method to be called, which in turn is doing a database update in the setter itself.

What I prefer, is to be able to set the value into the object directly, then trigger an action method or actionlistener to be called, which will perform the database update on that object.

This workaround fails, however, as soon as I want to use a <ui:repeat> tag to display a list of components, each of which is editable.

Is there a simple answer I'm missing?

Thanks,
Lincoln
[Message sent by forum member 'lincolnbaxter' (lincolnbaxter)]

http://forums.java.net/jive/thread.jspa?messageID=330360