I think I had issues trying to use an array / collection as an EventContext
item. I think I had to resort to using a comma separated string from
memory.
On 22 Aug 2013 15:03, "nn kk" <inv...@abv.bg> wrote:

>  Hi,
> I have the following code:
> class Page1 {
>
>   @InjectPage
>   private Page2 page2;
>   ...
>
>   Object onSuccessFrom...() {
>     ...
>     List<Cat> catList = new ArrayList...
>     catList.add(cat1);
>     catList.add(cat2);
>
>     page2.setCatList(catList);
>     return page2;
>   }
> }
>
> class Page2 {
>    @PageActivationContext
>    @Property(write = false)
>    private List<Cat> catList;
>
>    public void setBaList(List<Cat> catList) {
>      this.catList= catList;
>    }
>
>    void onActivate() {
>         //catList is null
>    }
>
>    void onActivate(List<Cat> catList)
>    {
>         //catList is null
>    }
>
>   void setupRender() {
>         //catList is null
>   }
> }
>
>
> If I replace @PageActivationContext with @Persist, I see the list
> populated, but I don't understand how should I use the
> @PageActivationContext
>
>
> -----------------------------------------------------------------
> Само сега спечели смартфон SAMSUNG и още много награди!виж
> http://www.specheli.eu/specheli-textgbg.php
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to