What is the url created in the markup for these links ?

On Thu, Aug 18, 2011 at 5:26 AM, ixcoatl <ixcoatl_pe...@yahoo.com.mx> wrote:
> Hi again,
>
> According to this page http://tapestry.apache.org/page-navigation.html , you
> should be able to catch the parameters sent form one page to another with an
> onActivate() method. In my case I have something like this in one page:
>
>        <t:grid source="usuarios" add="borrar" rowsPerPage="5"
> include="nombre,controlarUsuarios,crearProyectos">
>            <p:borrarcell>
>                <t:pagelink t:id="borrarUsuario"
> page="seguridad/borrarUsuario" context="nombre" >Borrar</t:pagelink>
>            </p:borrarcell>
>        </t:grid>
>
> And at the BorrarUsuario page, something like this:
>
>    void onActivate(String nombre)
>    {
>        System.out.println("\n\n\nonActivate with "+nombre+"\n\n\n");
>    }
>
> As far as I understand the method should be called and the parameter
> 'nombre' passed, but it doesn't. It works only if I create the method:
>
>    void onActivate()
>    {
>        System.out.println("\n\n\nonActivating ... \n\n\n");
>    }
>
> But then I need the name of the user (parameter 'nombre' in spanish) to do
> something useful in the second page.
>
> The other approach is to change the pagelink to an actionlink and then
> create the method:
>
>  Object onActionFromBorrarUsuario(String nombre)
>  {
>      //....something here to call second page...
>  }
>
> ... at the first page, but the situation is the same, the method will only
> be triggered when declared with no commands, as in:
>
>  Object onActionFromBorrarUsuario()
>  {
>      //....something here ...
>  }
>
> Leaving me with no 'nombre' parameter. At the documentation page shown
> above, there' s a line  saying:
>
>    " It requires a session (to store the productId field between requests).
> "
>
> Does this cryptic phrase has something to do with my problem?
>
> What am I missing?? Sorry again for my dangerously newbie questions.
>
> By the way, is it possible to pass the full user entity with the link and
> catch it at the second page?
> Maybe like this?:
>
>        <t:grid source="usuarios" add="borrar" row="usuario"
>            rowsPerPage="5"
> include="nombre,controlarUsuarios,crearProyectos">
>            <p:borrarcell>
>                 <t:pagelink t:id="borrarUsuario"
> page="seguridad/borrarUsuario" context="usuario" >Borrar</t:pagelink>
>            </p:borrarcell>
>        </t:grid>
>
>
>
> Thank you and best regards!
>
>
>
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Passing-parameters-from-one-page-to-another-tp4710394p4710394.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
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to