I want to bound one entity to another. I have the list of Clients (first
entity), and list of Events (second entity). In every Event few Clients are
taking part, so to every Event I must select few men from existing list,
with assistance of AutoComplete (great thing). 
I did an encoder for that which converts 'String name' to Client, and vice
versa.

Problem:
My onAddRow provides new instance of the Client object, and for that
instance my encoder provides NULL id, because the client.name is NULL.
And later when my encoder gets NULL as id, regardless to the text in
textfield for client.name, it can't find nothing, with such id.

Question:
Can I get the actual text of the textfield, in my encoder, or anywhere else?
How would you do such connection?

I carried the Clients list to the test page, it doesn't change the matter of
the connection.

Sources:
1)  http://snipt.org/sQkj4 Client.java 
2)  http://snipt.org/sQko4 Test page.tml 
3)  http://snipt.org/sQkn2 Test page.java (+encoder) 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-and-ValueEncoder-question-tp5105559p5105559.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to