You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by MPF <ma...@procon.co.at> on 2007/07/04 12:24:47 UTC

how i can invalide the session at outputlink

Hi!

[code]
<h:panelGroup>
				<h:outputLink rendered="#{placeDetail.showBackButton}"
value="#{placeDetail.referer}">
					<h:outputText value="#{labels.back}" styleClass="txtgruen"/>
				</h:outputLink>
			</h:panelGroup>
[/code]

is it possible to invalide the session at the outputlink?

best regards
-- 
View this message in context: http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: how i can invalide the session at outputlink

Posted by Andrew Robinson <an...@gmail.com>.
use commandLink that uses an action that invalidates the user's
session. Then use a redirect navigation rule to the new page.

On 7/9/07, MPF <ma...@procon.co.at> wrote:
>
> well i think u dont understood what i meant.
> problem:
> i have a bean at session scope which manage a form (input and save) after
> the submit of the form a user have to go back ---> klick on outputlink to go
> to another application. and now i need to destroy the bean which manage the
> form - possible how?
>
> best regards.
>
>
>
> Benjamin Bratkus wrote:
> >
> > sorry i was to fast during reading - yes a commandLink ;)
> >
> > you could create a binding and initialize a bean or (better)
> > you navigate on a side were a bean is requested which is not existing till
> > this moment and the framework is going to create the bean like every other
> > @ the first request.
> >
> >
> >>
> >>
> >> ahh... -.-
> >>
> >> well furthermore is is possible do "erase" a special managed bean which
> >> will
> >> be new constructed at the next calling?
> >>
> >>
> >> David Delbecq-2 wrote:
> >>>
> >>> Use a commandLink then :)
> >>>
> >>> En l'instant prÃ(c)cis du 04/07/07 12:50, MPF s'exprimait en ces termes:
> >>>> hi,
> >>>>
> >>>> ya which action ? outputlink hasnt a action/actionListener..?
> >>>>
> >>>>
> >>>> Benjamin Bratkus wrote:
> >>>>
> >>>>> hi,
> >>>>>
> >>>>> yes this is possible, you have to get the session in the action method
> >>>>> and
> >>>>> to call the session.invalidate within the method.
> >>>>>
> >>>>> ben
> >>>>>
> >>>>>> Hi!
> >>>>>>
> >>>>>> [code]
> >>>>>> <h:panelGroup>
> >>>>>>                          <h:outputLink rendered="#{placeDetail.showBackButton}"
> >>>>>> value="#{placeDetail.referer}">
> >>>>>>                                  <h:outputText value="#{labels.back}" styleClass="txtgruen"/>
> >>>>>>                          </h:outputLink>
> >>>>>>                  </h:panelGroup>
> >>>>>> [/code]
> >>>>>>
> >>>>>> is it possible to invalide the session at the outputlink?
> >>>>>>
> >>>>>> best regards
> >>>>>> --
> >>>>>> View this message in context:
> >>>>>> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
> >>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> Viele Grüße,
> >>>>>
> >>>>> Benjamin Björn Bratkus
> >>>>> --
> >>>>> Orientation in Objects GmbH
> >>>>> Weinheimerstr. 68
> >>>>> D-68309 Mannheim
> >>>>> http://www.oio.de
> >>>>> Tel. +49(0)621-71839-0
> >>>>> Fax +49(0)621-71839-50
> >>>>>
> >>>>> Amtsgericht Mannheim
> >>>>> HRB 38348
> >>>>> Geschäftsführer: Dirk M. Sohn
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11429322
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > Viele Grüße,
> >
> > Benjamin Björn Bratkus
> > --
> > Orientation in Objects GmbH
> > Weinheimerstr. 68
> > D-68309 Mannheim
> > http://www.oio.de
> > Tel. +49(0)621-71839-0
> > Fax +49(0)621-71839-50
> >
> > Amtsgericht Mannheim
> > HRB 38348
> > Geschäftsführer: Dirk M. Sohn
> >
> >
>
> --
> View this message in context: http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11496442
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: how i can invalide the session at outputlink

Posted by MPF <ma...@procon.co.at>.
well i think u dont understood what i meant.
problem:
i have a bean at session scope which manage a form (input and save) after
the submit of the form a user have to go back ---> klick on outputlink to go
to another application. and now i need to destroy the bean which manage the
form - possible how?

best regards.



Benjamin Bratkus wrote:
> 
> sorry i was to fast during reading - yes a commandLink ;)
> 
> you could create a binding and initialize a bean or (better)
> you navigate on a side were a bean is requested which is not existing till
> this moment and the framework is going to create the bean like every other
> @ the first request.
> 
> 
>>
>>
>> ahh... -.-
>>
>> well furthermore is is possible do "erase" a special managed bean which
>> will
>> be new constructed at the next calling?
>>
>>
>> David Delbecq-2 wrote:
>>>
>>> Use a commandLink then :)
>>>
>>> En l'instant précis du 04/07/07 12:50, MPF s'exprimait en ces termes:
>>>> hi,
>>>>
>>>> ya which action ? outputlink hasnt a action/actionListener..?
>>>>
>>>>
>>>> Benjamin Bratkus wrote:
>>>>
>>>>> hi,
>>>>>
>>>>> yes this is possible, you have to get the session in the action method
>>>>> and
>>>>> to call the session.invalidate within the method.
>>>>>
>>>>> ben
>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> [code]
>>>>>> <h:panelGroup>
>>>>>> 				<h:outputLink rendered="#{placeDetail.showBackButton}"
>>>>>> value="#{placeDetail.referer}">
>>>>>> 					<h:outputText value="#{labels.back}" styleClass="txtgruen"/>
>>>>>> 				</h:outputLink>
>>>>>> 			</h:panelGroup>
>>>>>> [/code]
>>>>>>
>>>>>> is it possible to invalide the session at the outputlink?
>>>>>>
>>>>>> best regards
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
>>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>> Viele Grüße,
>>>>>
>>>>> Benjamin Björn Bratkus
>>>>> --
>>>>> Orientation in Objects GmbH
>>>>> Weinheimerstr. 68
>>>>> D-68309 Mannheim
>>>>> http://www.oio.de
>>>>> Tel. +49(0)621-71839-0
>>>>> Fax +49(0)621-71839-50
>>>>>
>>>>> Amtsgericht Mannheim
>>>>> HRB 38348
>>>>> Geschäftsführer: Dirk M. Sohn
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11429322
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> Viele Grüße,
> 
> Benjamin Björn Bratkus
> --
> Orientation in Objects GmbH
> Weinheimerstr. 68
> D-68309 Mannheim
> http://www.oio.de
> Tel. +49(0)621-71839-0
> Fax +49(0)621-71839-50
> 
> Amtsgericht Mannheim
> HRB 38348
> Geschäftsführer: Dirk M. Sohn
> 
> 

-- 
View this message in context: http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11496442
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: how i can invalide the session at outputlink

Posted by Benjamin Björn Bratkus <br...@oio.de>.
sorry i was to fast during reading - yes a commandLink ;)

you could create a binding and initialize a bean or (better)
you navigate on a side were a bean is requested which is not existing till
this moment and the framework is going to create the bean like every other
@ the first request.


>
>
> ahh... -.-
>
> well furthermore is is possible do "erase" a special managed bean which
> will
> be new constructed at the next calling?
>
>
> David Delbecq-2 wrote:
>>
>> Use a commandLink then :)
>>
>> En l'instant précis du 04/07/07 12:50, MPF s'exprimait en ces termes:
>>> hi,
>>>
>>> ya which action ? outputlink hasnt a action/actionListener..?
>>>
>>>
>>> Benjamin Bratkus wrote:
>>>
>>>> hi,
>>>>
>>>> yes this is possible, you have to get the session in the action method
>>>> and
>>>> to call the session.invalidate within the method.
>>>>
>>>> ben
>>>>
>>>>> Hi!
>>>>>
>>>>> [code]
>>>>> <h:panelGroup>
>>>>> 				<h:outputLink rendered="#{placeDetail.showBackButton}"
>>>>> value="#{placeDetail.referer}">
>>>>> 					<h:outputText value="#{labels.back}" styleClass="txtgruen"/>
>>>>> 				</h:outputLink>
>>>>> 			</h:panelGroup>
>>>>> [/code]
>>>>>
>>>>> is it possible to invalide the session at the outputlink?
>>>>>
>>>>> best regards
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>
>>>> Viele Grüße,
>>>>
>>>> Benjamin Björn Bratkus
>>>> --
>>>> Orientation in Objects GmbH
>>>> Weinheimerstr. 68
>>>> D-68309 Mannheim
>>>> http://www.oio.de
>>>> Tel. +49(0)621-71839-0
>>>> Fax +49(0)621-71839-50
>>>>
>>>> Amtsgericht Mannheim
>>>> HRB 38348
>>>> Geschäftsführer: Dirk M. Sohn
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11429322
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Viele Grüße,

Benjamin Björn Bratkus
--
Orientation in Objects GmbH
Weinheimerstr. 68
D-68309 Mannheim
http://www.oio.de
Tel. +49(0)621-71839-0
Fax +49(0)621-71839-50

Amtsgericht Mannheim
HRB 38348
Geschäftsführer: Dirk M. Sohn

Re: how i can invalide the session at outputlink

Posted by MPF <ma...@procon.co.at>.

ahh... -.-

well furthermore is is possible do "erase" a special managed bean which will
be new constructed at the next calling?


David Delbecq-2 wrote:
> 
> Use a commandLink then :)
> 
> En l'instant précis du 04/07/07 12:50, MPF s'exprimait en ces termes:
>> hi,
>>
>> ya which action ? outputlink hasnt a action/actionListener..?
>>
>>
>> Benjamin Bratkus wrote:
>>   
>>> hi,
>>>
>>> yes this is possible, you have to get the session in the action method
>>> and
>>> to call the session.invalidate within the method.
>>>
>>> ben
>>>     
>>>> Hi!
>>>>
>>>> [code]
>>>> <h:panelGroup>
>>>> 				<h:outputLink rendered="#{placeDetail.showBackButton}"
>>>> value="#{placeDetail.referer}">
>>>> 					<h:outputText value="#{labels.back}" styleClass="txtgruen"/>
>>>> 				</h:outputLink>
>>>> 			</h:panelGroup>
>>>> [/code]
>>>>
>>>> is it possible to invalide the session at the outputlink?
>>>>
>>>> best regards
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>>       
>>> Viele Grüße,
>>>
>>> Benjamin Björn Bratkus
>>> --
>>> Orientation in Objects GmbH
>>> Weinheimerstr. 68
>>> D-68309 Mannheim
>>> http://www.oio.de
>>> Tel. +49(0)621-71839-0
>>> Fax +49(0)621-71839-50
>>>
>>> Amtsgericht Mannheim
>>> HRB 38348
>>> Geschäftsführer: Dirk M. Sohn
>>>
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11429322
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: how i can invalide the session at outputlink

Posted by David Delbecq <de...@oma.be>.
Use a commandLink then :)

En l'instant précis du 04/07/07 12:50, MPF s'exprimait en ces termes:
> hi,
>
> ya which action ? outputlink hasnt a action/actionListener..?
>
>
> Benjamin Bratkus wrote:
>   
>> hi,
>>
>> yes this is possible, you have to get the session in the action method and
>> to call the session.invalidate within the method.
>>
>> ben
>>     
>>> Hi!
>>>
>>> [code]
>>> <h:panelGroup>
>>> 				<h:outputLink rendered="#{placeDetail.showBackButton}"
>>> value="#{placeDetail.referer}">
>>> 					<h:outputText value="#{labels.back}" styleClass="txtgruen"/>
>>> 				</h:outputLink>
>>> 			</h:panelGroup>
>>> [/code]
>>>
>>> is it possible to invalide the session at the outputlink?
>>>
>>> best regards
>>> --
>>> View this message in context:
>>> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>>>       
>> Viele Grüße,
>>
>> Benjamin Björn Bratkus
>> --
>> Orientation in Objects GmbH
>> Weinheimerstr. 68
>> D-68309 Mannheim
>> http://www.oio.de
>> Tel. +49(0)621-71839-0
>> Fax +49(0)621-71839-50
>>
>> Amtsgericht Mannheim
>> HRB 38348
>> Geschäftsführer: Dirk M. Sohn
>>
>>
>>     
>
>   


Re: how i can invalide the session at outputlink

Posted by MPF <ma...@procon.co.at>.
hi,

ya which action ? outputlink hasnt a action/actionListener..?


Benjamin Bratkus wrote:
> 
> hi,
> 
> yes this is possible, you have to get the session in the action method and
> to call the session.invalidate within the method.
> 
> ben
>>
>> Hi!
>>
>> [code]
>> <h:panelGroup>
>> 				<h:outputLink rendered="#{placeDetail.showBackButton}"
>> value="#{placeDetail.referer}">
>> 					<h:outputText value="#{labels.back}" styleClass="txtgruen"/>
>> 				</h:outputLink>
>> 			</h:panelGroup>
>> [/code]
>>
>> is it possible to invalide the session at the outputlink?
>>
>> best regards
>> --
>> View this message in context:
>> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> Viele Grüße,
> 
> Benjamin Björn Bratkus
> --
> Orientation in Objects GmbH
> Weinheimerstr. 68
> D-68309 Mannheim
> http://www.oio.de
> Tel. +49(0)621-71839-0
> Fax +49(0)621-71839-50
> 
> Amtsgericht Mannheim
> HRB 38348
> Geschäftsführer: Dirk M. Sohn
> 
> 

-- 
View this message in context: http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428806
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: how i can invalide the session at outputlink

Posted by Benjamin Björn Bratkus <br...@oio.de>.
hi,

yes this is possible, you have to get the session in the action method and
to call the session.invalidate within the method.

ben
>
> Hi!
>
> [code]
> <h:panelGroup>
> 				<h:outputLink rendered="#{placeDetail.showBackButton}"
> value="#{placeDetail.referer}">
> 					<h:outputText value="#{labels.back}" styleClass="txtgruen"/>
> 				</h:outputLink>
> 			</h:panelGroup>
> [/code]
>
> is it possible to invalide the session at the outputlink?
>
> best regards
> --
> View this message in context:
> http://www.nabble.com/how-i-can-invalide-the-session-at-outputlink-tf4023628.html#a11428476
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Viele Grüße,

Benjamin Björn Bratkus
--
Orientation in Objects GmbH
Weinheimerstr. 68
D-68309 Mannheim
http://www.oio.de
Tel. +49(0)621-71839-0
Fax +49(0)621-71839-50

Amtsgericht Mannheim
HRB 38348
Geschäftsführer: Dirk M. Sohn