Sadly still the same when I tried.

 public Object[] onPassivate() {

        List a = new ArrayList();
        a.add(selectedScene);
        a.add(selectedShot);
        a.add(selectedComponent);
        return a.toArray();
    }

Also I tried

public String[] onPassivate() {

        String[] a = new String[3];
        a[0] = selectedScene != null ? selectedScene.getId().toString() :
null;
        a[1] = selectedShot != null ? selectedShot.getId().toString() :
null;
        a[2] = selectedComponent != null ?
selectedComponent.getId().toString() : null;
        return a;
    }

in order to force array of Strings but I can still see onActivate after
form success


   - values = {java.lang.*Object*[1]@13228}
   - [0] = {java.lang.String@13237}"2"

and this breaks, but when I first go to the page and instead of array of
Objects I have String it works properly

On Wed, Sep 10, 2014 at 7:37 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Wed, 10 Sep 2014 14:14:01 -0300, Boris Horvat <horvat.z.bo...@gmail.com>
> wrote:
>
>      public List onPassivate() {
>>
>>         List a = new ArrayList();
>>         a.add(selectedScene);
>>         a.add(selectedShot);
>>         a.add(selectedComponent);
>>         return a;
>>     }
>>
>
> onPassivate() doesn't work returning a List. Return an Object[] instead
> and it'll work.
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Sincerely
*Boris Horvat*

Reply via email to