I "think" because you refer to the *langs* object in the *activation* event
method, it flashes the object. You find it as an empty list, correct ?
I'm not fully aware of the FLASH persistence but I suppose it's only meant
for persisting form fields across requests and a Collection isn't
applicable for that.

On Thu, Jan 24, 2013 at 9:36 AM, zhouyc <zhou.yongch...@gmail.com> 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(PersistenceConstants.FLASH)
> private String username;
>
> @Property
> @Persist(PersistenceConstants.FLASH)
> private List<String> langs;
>
> void onActivate() {
>     if (langs == null) {
>        langs = new ArrayList<String>();
>     }
> }
>
> void onSubmit() {
>      langs.add("en");
> }
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/PersistenceConstants-FLASH-cann-t-persist-List-String-langs-tp5719462.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