Hello,

I am using Tapestry 4 and am having a problem to update a select box
(PropertySelection).
In fact, I chose from a first selectbox (eg car brand) an element. Then I
launch an asynchronous request to a service to retrieve a list (eg the
models of this brand).
There is an autorefresh  method whichchecks every x seconds  if a result is
reached. 
When its retrieved I set the model in List 2:

/ / Setting the new values for car dropdown list
setCarModel (buildCarModel (resultlist));

In pagebeginRender (), List 2 contains the correct number of elements:

getCarSelect (). getModel (). getOptionCount ()) returns the number of
elements contained in resultlist.

So the model involved in the selection box is indeed containing the list of
cars.

But, in rendering the page, the selectBox remains empty: it contains no
values ....

I've tried several things, updateComponent() on the Form, on the
PropertySelection, but nothing works.

Is there something special to refresh a PropertySelection after an update of
its Model?

Thanks in advance
-- 
View this message in context: 
http://old.nabble.com/Updating-a-PropertySelection-tp27595452p27595452.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