How to work with other page's actionlink?

View: New views
4 Messages — Rating Filter:   Alert me  

How to work with other page's actionlink?

by inrila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Question here :-)

I have on the "List" page <t:actionlink t:id="delete"....>...

So I need to process it in "List" page as onActionFromDelete(...)

Is it possible to point it to some other page? Let's say special dedicated page -- i.e. "record/delete", same as I have "record/create" or "record/edit" ?

Re: How to work with other page's actionlink?

by dh ning :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sure you can, use page link.

Like deleting a user:
<t:pagelink page="record/delete" context="user.id"/> or even context="user" if you have defined coercier on user object.
Please remember that record/delete page should implmenet onActivate method.
Delete.java
void onActivate(int userid) { // or User user
// your deletion logic here.
}

Thanks,
DH


----- Original Message -----
From: "inrila" <inrila@...>
To: <users@...>
Sent: Friday, November 28, 2008 1:57 PM
Subject: How to work with other page's actionlink?


>
> Question here :-)
>
> I have on the "List" page <t:actionlink t:id="delete"....>...
>
> So I need to process it in "List" page as onActionFromDelete(...)
>
> Is it possible to point it to some other page? Let's say special dedicated
> page -- i.e. "record/delete", same as I have "record/create" or
> "record/edit" ?
> --
> View this message in context: http://www.nabble.com/How-to-work-with-other-page%27s-actionlink--tp20729358p20729358.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

Re: How to work with other page's actionlink?

by inrila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

onActivate(..) triggers on POST and GET, right?


dhning-2 wrote:
Sure you can, use page link.

Like deleting a user:
<t:pagelink page="record/delete" context="user.id"/> or even context="user" if you have defined coercier on user object.
Please remember that record/delete page should implmenet onActivate method.
Delete.java
void onActivate(int userid) { // or User user
// your deletion logic here.
}

Thanks,
DH


----- Original Message -----
From: "inrila" <inrila@gmail.com>
To: <users@tapestry.apache.org>
Sent: Friday, November 28, 2008 1:57 PM
Subject: How to work with other page's actionlink?


>
> Question here :-)
>
> I have on the "List" page <t:actionlink t:id="delete"....>...
>
> So I need to process it in "List" page as onActionFromDelete(...)
>
> Is it possible to point it to some other page? Let's say special dedicated
> page -- i.e. "record/delete", same as I have "record/create" or
> "record/edit" ?
> --
> View this message in context: http://www.nabble.com/How-to-work-with-other-page%27s-actionlink--tp20729358p20729358.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How to work with other page's actionlink?

by dh ning :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yes, both.

Thanks,

DH

>
> onActivate(..) triggers on POST and GET, right?
>
>
>
> dhning-2 wrote:
>>
>> Sure you can, use page link.
>>
>> Like deleting a user:
>> <t:pagelink page="record/delete" context="user.id"/> or even
>> context="user" if you have defined coercier on user object.
>> Please remember that record/delete page should implmenet onActivate
>> method.
>> Delete.java
>> void onActivate(int userid) { // or User user
>> // your deletion logic here.
>> }
>>
>> Thanks,
>> DH
>>
>>
>>
>>>
>>> Question here :-)
>>>
>>> I have on the "List" page <t:actionlink t:id="delete"....>...
>>>
>>> So I need to process it in "List" page as onActionFromDelete(...)
>>>
>>> Is it possible to point it to some other page? Let's say special
>>> dedicated
>>> page -- i.e. "record/delete", same as I have "record/create" or
>>> "record/edit" ?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-work-with-other-page%27s-actionlink--tp20729358p20729358.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>
>
> --
> View this message in context: http://www.nabble.com/How-to-work-with-other-page%27s-actionlink--tp20729358p20730029.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
LightInTheBox - Buy quality products at wholesale price!