Wicket is not an action framework. There won't be any mount action
thingies if I can help it.
Why not just create a LogoutLink extends Link which does this?
Think components, not actions.
Martijn
On Mon, Dec 8, 2008 at 11:29 AM, Vitaly Tsaplin
<[EMAIL PROTECTED]> wrote:
> Hi Martijn,
>
> Thank you for your help.
> I meant that defining logic at the mounting point sometimes is a
> better idea then to do it at the point where we instantiate an
> anonimous link for instance. Regarding your example we have to have a
> page class + associated markup which is not necessary especially
> because I would like to jump directly to a home page. It's a bit heavy
> for such a simple thing.
>
> Vitaly
>
> On Mon, Dec 8, 2008 at 10:51 AM, Martijn Dashorst
> <[EMAIL PROTECTED]> wrote:
>> public class LogoutPage extends WebPage {
>> public LogoutPage() {
>> add(new Label("msg", "You have been logged out."));
>> getSession().invalidate();
>> }
>> }
>>
>> mountBookmarkablePage("/logout", LogoutPage.class);
>>
>> Martijn
>>
>> On Mon, Dec 8, 2008 at 10:28 AM, Vitaly Tsaplin
>> <[EMAIL PROTECTED]> wrote:
>>> Hi there,
>>>
>>> Something like:
>>>
>>> mountAction ("/logout", new Action () {
>>> public void perform () {
>>> doLogout ();
>>> }
>>> );
>>>
>>> Is is somehow possible?
>>>
>>> Vitaly
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.4 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]