What should fire the "onValueChanged" event you are talking about ?

Anyway here is what I think:
- You'll need to persist your list of items fed by the "onPrepare" method.
- When the form containing the text-field is submitted, obtain the new
value, do your logic and decide whether to add the new item to the persisted
list or not.
- Then "onPrepare" should do the trick on the next page load.

Did I get your question right ?

On Wed, Oct 5, 2011 at 4:22 PM, sibleygh <george.sib...@bt.com> wrote:

> Hi
>
> I'm pretty new to Tapestry.
>
> I have a requirement where I want to add a new entry to a Select Model, if
> the entry doesn't exist. e.g.
>
> - Populate the select model using the onPrepare() method executing a finder
> in hibernate, and present this in the page.
> - Allow the user to provide text in the drop down text box, if a new entry
> is required in the model.
> - Persist the new data using a form of Tapestry 'onValueChangedFrom'
> action.
>
> I've used the select model successfully to process 'bound' lists, but I
> don't seem to see any examples or documentation on how to process an
> 'unbound' list.
>
> Regards
>
> George
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Select-Model-Adding-entries-from-the-form-tp4872879p4872879.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
>
>


-- 
*Regards,*
*Muhammad Gelbana
Java Developer*

Reply via email to