Thank you all for your responses. It's been a great help and very
interesting reading.

We have a shared jsp page; there are three paths to it.  Navigation has to
return to
the jsp that took the user to this particular page.

So we set a 'context' variable in session and wanted to use this for
navigation;
it would have one of three values and would invoke the jsp where the user
began.

James gave me a syntax that pulled the variable from sessionScope, but in
fact
that did not work in an action button; it does work with other tags, but
the button
tag wanted a method when I used a binding tag.  I haven't tried a jstl
expression.

In any case, we have a method that returns the session scope variable and
are
using that with the action button of the shared jsp, and this controls
navigation ok.

If anyone has resolved this problem in another way, I'd love to read about.

Thanks again to everyone.
Tom



                                                                          
             "Cosma                                                       
             Colanicchia"                                                 
             <[EMAIL PROTECTED]                                          To
             om>                       "MyFaces Discussion"               
                                       <[email protected]>         
             08/01/2006 10:36                                           cc
             AM                                                           
                                                                   Subject
                                       Re: is there a way to pull a       
             Please respond to         session scope variable directly    
                 "MyFaces              into a   jsf tag?                  
                Discussion"                                               
             <[EMAIL PROTECTED]                                            
                 ache.org>                                                
                                                                          
                                                                          
                                                                          




You can always write an action method, and return different outcomes,
if you want to reuse the view.

Cosma

2006/8/1, Matthias Fischer <[EMAIL PROTECTED]>:
>
> Hm, that's right. what I had in mind when I answered Tom's question was
> that session.foo contains an action binding string. But then you would
> have to call
> #{${session.foo}} - if that works at all.
>
> If that is what Tom intended it does make sense to me:
> A button that leads to a different action depending on a session
attribute.
> For example you could think of a list where you can select items.
> Depending on user input of previous dialogues the session attribute foo
> would be set to an action that is to be performed on the selected items
> when the button is pressed.
> I am not sure whether this works but that would allow you to reuse view
> in different workflows.
>
>
> > It may work... can I ask why you are designing things this way? It
> > seems a bit odd to me to add another level of abstraction on page
> > navigation: an expression that resolve to a string that is matched
> > against navigation rules that finally defines a view (!)
> >
> > Cosma
> >
> > 2006/7/31, Matthias Fischer <[EMAIL PROTECTED]>:
> >>
> >> > I think that the problem is that, if EL is found in the action
> >> > attribute, JSF tries to use it as an action method (it attemps to
> >> > "call" it)..
> >> That's what I suppose. So JSTL EL should solve it as we have no method
> >> bindings here...
> >>
> >>
> >>
> >>
>
>
> --
> Schützen Sie das was Ihnen wichtig ist !
> http://iam-solution.de
> Weitere Details verrate ich Ihnen gerne am Telefon. Einfach anrufen!
>
> -----------------------------------------------------------------
> Matthias Fischer                  Fon: +49-7541-6047-148
> Dipl. Informatiker (FH)           Fax: +49-7541-6047-111
> doubleSlash Net-Business GmbH     [EMAIL PROTECTED]
> Müllerstr. 12 B                   http://doubleSlash.de
> 88045 Friedrichshafen
>
>





This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. This communication is for 
informational purposes only.  It is not intended as an offer or solicitation 
for the purchase or sale of any financial instrument, or security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   All market prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without notice.  Any 
comments or statements made herein do not necessarily reflect those of Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.

Reply via email to