tapestry5.4 and PersistenceConstants.FLASH

2013-11-21 Thread Zhou Yongcheng
code. please help me solve this problem.Thanks. -- public class Persist1 { @Property @Persist(PersistenceConstants.FLASH) private List mails; @Property @Persist(PersistenceConstants.FLASH) private String username; @Property @Persist

tapestry5.4 and PersistenceConstants.FLASH

2013-11-20 Thread Zhou Yongcheng
Hi All,

Re: PersistenceConstants.FLASH cann't persist List langs

2013-02-22 Thread Ivan Khalopik
As far as I understood flash strategy is needed to store values between form submission and render requests. Your flow: 1. onActivate() create values and store them in session 2. onSubmit() retrieve values and remove them from session => add value to detached collection 3. onActivate() retrieve val

Re: PersistenceConstants.FLASH cann't persist List langs

2013-02-22 Thread mvchris
bit of a hack but can you put the list to a single string delimited by control chars or caret ^ prior to form submission then on rendering of 2nd page convert back from single string to list chris -- View this message in context: http://tapestry.1045711.n5.nabble.com/PersistenceConstants-FLAS

Re: PersistenceConstants.FLASH cann't persist List langs

2013-02-22 Thread zhouyc
if i don't want to store the List in the session for a long time, is there any advice to solve this problem? -- View this message in context: http://tapestry.1045711.n5.nabble.com/PersistenceConstants-FLASH-cann-t-persist-List-String-langs-tp5719462p5720163.html Sent from the Tapestry - User ma

Re: PersistenceConstants.FLASH

2013-02-19 Thread Taha Siddiqi
All the fields marked with @Persist(PersistenceConstants.FLASH) are cleared. (Internally these fields are cleared as soon as the value is read from the session) regards Taha On Feb 19, 2013, at 2:49 PM, John wrote: > Initially there will be no session, then after the first submit th

Re: PersistenceConstants.FLASH

2013-02-19 Thread John
Initially there will be no session, then after the first submit there will be an empty session. Geoff So flash items are cleared from the session after a form submit? Are all items cleared or just the ones in the form? John

Re: PersistenceConstants.FLASH

2013-02-18 Thread Thiago H de Paula Figueiredo
ou writing them. I'm concerned that my useage below will leave a lot of clutter in the session. @Persist(PersistenceConstants.FLASH) private List venueColleagueBeansFlash; This clutter won't happen. -- Thiago H.

PersistenceConstants.FLASH

2013-02-18 Thread John
n the session. @Persist(PersistenceConstants.FLASH) private List venueColleagueBeansFlash;

Re: PersistenceConstants.FLASH cann't persist List langs

2013-01-24 Thread Muhammad Gelbana
ion isn't applicable for that. On Thu, Jan 24, 2013 at 9:36 AM, zhouyc wrote: > please help me to solve the problem? > after submitting and page redisplayed, username can be saved, but langs > lost > values added by submit method. > > @Property > @Persist(Persist

PersistenceConstants.FLASH cann't persist List langs

2013-01-24 Thread zhouyc
please help me to solve the problem? after submitting and page redisplayed, username can be saved, but langs lost values added by submit method. @Property @Persist(PersistenceConstants.FLASH) private String username; @Property @Persist(PersistenceConstants.FLASH) private List langs; void