Hi Ritesh, I am not quite clear of your problem.
> When I don't use any render phase or event it persists the value And you say if you use any render phase the value is not persisted. Persists to where? Do you just mean, in the action request, the value is correctly set to a variable in your page? Jeffrey Ai Ritesh.S wrote: > > Hello everybody, > > I am newbie to Tapestry. I am using Tapestry 5 for developing > an application and I encountered following problem if anyone > suggest a solution it will be very helpful for me. :) > > I have a select component with GenericSelectModel which shows > values well on first display. When I select some option from this > select component and submit the form I have to persist the selected > option, but it does not. :< > > I am fetching values for this model from database > on @SetupRender phase (tried onActivate(), pageLoaded() also - same > problem occurred). > When I don't use any render phase or event it persists the value but > when some options are added in database from other page it does not > fetch the current saved options in drop down list (since no render phase > or event). > > This the source code I am using - > > @SetupRender > void setValues(){ > List<SomeBean> bean= new ArrayList<SomeBean>(); > bean.addAll(myDao.getBeanList()); > someBeans = new > GenericSelectModel<SomeList>(dev,SomeList.class,"name","id",access); > } > > public GenericSelectModel<SomeList> getSomeModel() { > return someBeans; > } > > Does anyone faced this problem and have solution please let me know. > > Thanks in advance. :) > > From, > Ritesh Sandupatla > -- View this message in context: http://www.nabble.com/T5-persisting-select-component-selection-after-form-submission-tf4843731.html#a13861834 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]