You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kalle Korhonen <ka...@gmail.com> on 2013/08/20 17:46:15 UTC

Re: custom logout+logout confirmation page with Tynamo

On Tue, Aug 20, 2013 at 5:43 AM, Will N. <ll...@yahoo.fr> wrote:

> since there is no such a configuration(as far as i know) like
> configuration.override(**SecuritySymbols.SUCCESS_URL, "*******");  in the
> case of a succesfull logout, i figured out that i must use a custom logout
> to achieve that.
> example:
> <t:security.authenticated>
>     <t:actionlink t:id="logoutLink" id="logoutLink">my custom
> logout</t:actionlink>
> </t:security.authenticated>
> and then add a Object onActionFromLogoutLink() in my java file.
> this work perfect and I am redirected to the logout confirmation page as
> wished. But on my page, I can still see the autogenerated logout link of
> tynamo, so i have 2 logout links now! how can I prvent the tynamo
> logoutlink to be shown?
>

You mean you are using the Tynamo provided login component? Well, quite
simply, you could not use it. If you still want to use it, of course you
can make it's appearance conditional the same way you just made the
appearance of logout link conditional:
<t:security.authenticated>
    <t:actionlink t:id="logoutLink" id="logoutLink">my custom
logout</t:actionlink>
    <p:else>
        <t:tynamo.login .../>
    </p:else>
</t:security.authenticated>

Kalle

Re: custom logout+logout confirmation page with Tynamo

Posted by "Will N." <ll...@yahoo.fr>.
thanks!

Am 20.08.2013 17:46, schrieb Kalle Korhonen:
> On Tue, Aug 20, 2013 at 5:43 AM, Will N. <ll...@yahoo.fr> wrote:
>
>> since there is no such a configuration(as far as i know) like
>> configuration.override(**SecuritySymbols.SUCCESS_URL, "*******");  in the
>> case of a succesfull logout, i figured out that i must use a custom logout
>> to achieve that.
>> example:
>> <t:security.authenticated>
>>      <t:actionlink t:id="logoutLink" id="logoutLink">my custom
>> logout</t:actionlink>
>> </t:security.authenticated>
>> and then add a Object onActionFromLogoutLink() in my java file.
>> this work perfect and I am redirected to the logout confirmation page as
>> wished. But on my page, I can still see the autogenerated logout link of
>> tynamo, so i have 2 logout links now! how can I prvent the tynamo
>> logoutlink to be shown?
>>
> You mean you are using the Tynamo provided login component? Well, quite
> simply, you could not use it. If you still want to use it, of course you
> can make it's appearance conditional the same way you just made the
> appearance of logout link conditional:
> <t:security.authenticated>
>      <t:actionlink t:id="logoutLink" id="logoutLink">my custom
> logout</t:actionlink>
>      <p:else>
>          <t:tynamo.login .../>
>      </p:else>
> </t:security.authenticated>
>
> Kalle
>


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