>     > However I run into issues when I want to add same control on a
>     > JSF/Myfaces command link or command button. I tried to use
>     > "page_domain_op_list.jsf" or "nav_page_domain_op_list.jsf" as the
>     > action value, but neither worked.
>     >
>     > How should I handle this kind of situation? Has anyone put any
>     > thoughts into this? I'd really appreciate your inputs.

Have you tried to use the outputLink element? You can render an arbitrary
hyperlink with it.

The action attribute of a commandLink or commandButton will only accept an
outcome for a navigation rule or an action method binding.


Regards,

Matthias

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Grigoras Cristinel
> Gesendet: Dienstag, 28. Februar 2006 09:24
> An: MyFaces Discussion
> Betreff: Re: Container managed authentication in Myfaces/JSF
>
>
> Hi,
>
> You have tried to use redirect inside navigation case like this?
> <navigation-case>
>     <from-outcome>nav_page_domain_op_list</from-outcome>
>     <to-view-id>/page_domain_op_list</to-view-id>
>     <redirect/>
> </navigation-case>
> in this case you loose validation messages.
>
> other solution is to write your own navigation handler.
>
> Cristi
>
> Ming Hu wrote:
> > Redirect works but it's not what I wanted. The functionality I'd like
> > to have is to put security constraints on the action values of
> > JSF/Myfaces command links or buttons.
> >
> > Regards,
> >
> > Ming
> >
> > On 2/27/06, *Grigoras Cristinel* <[EMAIL PROTECTED] <mailto:[EMAIL 
> > PROTECTED]>>
> > wrote:
> >
> >     Hi,
> >          Is working if  you use redirect.
> >
> >     Cristi
> >
> >
> >     Ming Hu wrote:
> >     > I have the following navigation case:
> >     >
> >     >   <navigation-case>
> >     >    <from-outcome>nav_page_domain_op_list</from-outcome>
> >     >    <to-view-id>/page_domain_op_list</to-view-id>
> >     >   </navigation-case>
> >     >
> >     > and the following security constraint:
> >     > ...
> >     >       <url-pattern>/page_domain_op_list.jsf</url-pattern>
> >     > ...
> >     >
> >     > If I point my browser to
> >     localhost:8080/myapp/page_domain_op_list.jsf,
> >     > the web app works fine and the sign-in page is popup up by the
> >     > container automatically.
> >     >
> >     > However I run into issues when I want to add same control on a
> >     > JSF/Myfaces command link or command button. I tried to use
> >     > "page_domain_op_list.jsf" or "nav_page_domain_op_list.jsf" as the
> >     > action value, but neither worked.
> >     >
> >     > How should I handle this kind of situation? Has anyone put any
> >     > thoughts into this? I'd really appreciate your inputs.
> >     >
> >     > Regards,
> >     >
> >     > Ming
> >     >
> >
> >
>

Reply via email to