So, an actionlink doesn't have a page parameter. :)

Cf: 
http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html

So you can either supply an "onActionFromEditarUsario" event handler method in 
your listing page that sets up the editing page and returns said editor page 
from the action link method, or... you can use page link, which is probably 
what you want in this case. :)

<t:pagelink t:id="editarUsuario" page="seguridad/editarUsario" 
context="nombre">Editar</t:pagelink>

Cheers,

Robert

On Aug 16, 2011, at 8/167:06 PM , ixcoatl wrote:

> Hi,
> 
> I'm having some trouble shifting from the conventional event-driven model to
> the way Tapestry works.
> 
> Is there a newbie forum where I can ask the most basic questions?
> 
> Right now I'm stuck trying to jump from one page in charge to create users
> to others in charge of editing and deleting them.
> 
> This is the code of the list with the already created users is:
> 
>        <t:grid source="usuarios" add="editar,borrar" rowsPerPage="5"
> include="nombre,controlarUsuarios,crearProyectos">
>            <p:editarcell>
>                <t:actionlink t:id="editarUsuario"
> page="seguridad/editarUsuario" context="nombre" >Editar</t:actionlink>
>            </p:editarcell>
>            <p:borrarcell>
>                <t:actionlink t:id="borrarUsuario"
> page="seguridad/BorrarUsuario" context="nombre" >Borrar</t:actionlink>
>            </p:borrarcell>
>            <p:empty>
>              <p>No hay informacion en la lista.</p>
>            </p:empty>
>        </t:grid>
> 
> Both seguridad/BorrarUsuario and seguridad/editarUsuario are pages intended
> to handle the delete and edit tasks (sorry the code is in spanish). However
> the jump never happens and the methods onActionFromBorrarUsuario and
> onActionFromEditarUsuario are being called on the page where the grid
> exists.
> 
> Then I thought that returning a BorrarUsuario page from this methods should
> be enough, for that I put:
> 
>    @InjectPage("seguridad/BorrarUsuario")
>    private EditarUsuario eu;
> 
> or
> 
>    @Inject
>    private EditarUsuario eu;
> 
> 
> And then perform a simple
> 
>    return eu;
> 
> At the end of the onActionFromEditarUsuario method, but I keep getting tons
> of exceptions:
> 
>   java.lang.ClassNotFoundException: caught an exception while obtaining a
> class file for
>   compucentro.volumetria.pages.seguridad.ControlDeUsuarios
> 
> With:
>   Error obtaining injected value for field
> compucentro.volumetria.pages.seguridad.ControlDeUsuarios.eu:
>   No service implements the interface
> compucentro.volumetria.pages.seguridad.EditarUsuario.
> 
> 
> What am I doing wrong? I think that I'm missing come naming convention or
> something but cant find what.
> 
> It would be very nice to have a tutorial on how to implement a full
> create/update/delete cycle using hibernate, that way a newbie can get the
> feeling of how manage the set of objects (pages, entities, etc. ) involved
> with DB access.
> 
> By the way, I had been exploring tapestry for only 2 days now, so please
> forgive my lack of knowledge on the topic.
> 
> Thank you and best regards.
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Jumping-to-a-new-page-tp4706239p4706239.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
> 


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

Reply via email to