You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Samba <sa...@gmail.com> on 2006/09/11 09:43:10 UTC
Navigation rules not working with Facelets
Hi all!
I'm facing diffculty with page navigation in Facelets Pages.
I could navigate to the pages if I directly give href attribute of the
HTML link/anchor tags(with .jsf extension). but, I'm not getting the
navigation rules working.
Is there any special way to get navigation rules working with facelets
pages?
Thanking you , )(apologising for that unfortunate day),
Samba.
Re: Navigation rules not working with Facelets
Posted by Matthias Wessendorf <ma...@apache.org>.
> But I'm not able to get the methods that I write in the backing beans
> invoked!
> How to get that done ?
can you explain?
I don't understand, what you really mean.
-Matthias
(maybe these questions are better asked on the facelets list ?)
> Regards,
> Samba.
>
>
> On 9/11/06, Matthias Wessendorf <ma...@apache.org> wrote:
> >
> > don't you have a form component ?
> >
> > On 9/11/06, Samba <sa...@gmail.com> wrote:
> > > Hi! Matthias,
> > >
> > > The following is the code I'm using:
> > >
> > > <ui:define name="topmenu">
> > > <ul>
> > > <li class="selected"><a href="#">PageOne</a></li>
> > >
> > >
> > > <li><a href="Layout.jsf">Layout</a></li>
> > > <li><a href="Template.jsf">Template</a></li>
> > > <li><a href="MultipleTemplateClient.jsf">MultipleTemplateClient</a></li>
> > > <af:commandLink text="Home" action="home"/>
> > > </ul>
> > >
> > > </ui:define>
> > >
> > > in faces-config.xml,
> > > I added the navigation rule as below:
> > >
> > >
> > > <navigation-rule>
> > > <from-view-id>/PageOne.jspx</from-view-id>
> > > <navigation-case>
> > > <from-outcome>home</from-outcome>
> > > <to-view-id>/Home.jspx</to-view-id>
> > > </navigation-case>
> > > </navigation-rule>
> > >
> > >
> > > With direct refence to the pages it is working and that too with HTML
> > > anchor tag it's woking , but not with <af:commandLink> or
> > > <af:commandButton>
> > >
> > > Is there any special syntax for getting navigation rules/ ADF
> > > CommandLink/Button working?
> > >
> > > Thanking you,
> > > Samba.
> > >
> > > On 9/11/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > > >
> > > > what are you doing?
> > > > please provide some code.
> > > > (it's working for me ;) )
> > > >
> > > > On 9/11/06, Samba <sa...@gmail.com> wrote:
> > > > > Hi all!
> > > > >
> > > > > I'm facing diffculty with page navigation in Facelets Pages.
> > > > > I could navigate to the pages if I directly give href attribute of
> > the
> > > > > HTML link/anchor tags(with .jsf extension). but, I'm not getting the
> > > > > navigation rules working.
> > > > >
> > > > > Is there any special way to get navigation rules working with
> > facelets
> > > > > pages?
> > > > >
> > > > > Thanking you , )(apologising for that unfortunate day),
> > > > > Samba.
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Matthias Wessendorf
> > > >
> > > > further stuff:
> > > > blog: http://jroller.com/page/mwessendorf
> > > > mail: mwessendorf-at-gmail-dot-com
> > > >
> > >
> > >
> > >
> > > --
> > > Vuntaanu...
> > > Samba.
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://jroller.com/page/mwessendorf
> > mail: mwessendorf-at-gmail-dot-com
> >
>
>
>
> --
> Vuntaanu...
> Samba.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
Re: Navigation rules not working with Facelets
Posted by Samba <sa...@gmail.com>.
Hey,
Thankyou Mat....,
I really forgot to keep those components(commandLink, and commandButton)
inside <af:form>,
Thankyou for reminding me,,
It worked normally,now.
But I'm not able to get the methods that I write in the backing beans
invoked!
How to get that done ?
Regards,
Samba.
On 9/11/06, Matthias Wessendorf <ma...@apache.org> wrote:
>
> don't you have a form component ?
>
> On 9/11/06, Samba <sa...@gmail.com> wrote:
> > Hi! Matthias,
> >
> > The following is the code I'm using:
> >
> > <ui:define name="topmenu">
> > <ul>
> > <li class="selected"><a href="#">PageOne</a></li>
> >
> >
> > <li><a href="Layout.jsf">Layout</a></li>
> > <li><a href="Template.jsf">Template</a></li>
> > <li><a href="MultipleTemplateClient.jsf">MultipleTemplateClient</a></li>
> > <af:commandLink text="Home" action="home"/>
> > </ul>
> >
> > </ui:define>
> >
> > in faces-config.xml,
> > I added the navigation rule as below:
> >
> >
> > <navigation-rule>
> > <from-view-id>/PageOne.jspx</from-view-id>
> > <navigation-case>
> > <from-outcome>home</from-outcome>
> > <to-view-id>/Home.jspx</to-view-id>
> > </navigation-case>
> > </navigation-rule>
> >
> >
> > With direct refence to the pages it is working and that too with HTML
> > anchor tag it's woking , but not with <af:commandLink> or
> > <af:commandButton>
> >
> > Is there any special syntax for getting navigation rules/ ADF
> > CommandLink/Button working?
> >
> > Thanking you,
> > Samba.
> >
> > On 9/11/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > >
> > > what are you doing?
> > > please provide some code.
> > > (it's working for me ;) )
> > >
> > > On 9/11/06, Samba <sa...@gmail.com> wrote:
> > > > Hi all!
> > > >
> > > > I'm facing diffculty with page navigation in Facelets Pages.
> > > > I could navigate to the pages if I directly give href attribute of
> the
> > > > HTML link/anchor tags(with .jsf extension). but, I'm not getting the
> > > > navigation rules working.
> > > >
> > > > Is there any special way to get navigation rules working with
> facelets
> > > > pages?
> > > >
> > > > Thanking you , )(apologising for that unfortunate day),
> > > > Samba.
> > > >
> > > >
> > >
> > >
> > > --
> > > Matthias Wessendorf
> > >
> > > further stuff:
> > > blog: http://jroller.com/page/mwessendorf
> > > mail: mwessendorf-at-gmail-dot-com
> > >
> >
> >
> >
> > --
> > Vuntaanu...
> > Samba.
> >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>
--
Vuntaanu...
Samba.
Re: Navigation rules not working with Facelets
Posted by Matthias Wessendorf <ma...@apache.org>.
don't you have a form component ?
On 9/11/06, Samba <sa...@gmail.com> wrote:
> Hi! Matthias,
>
> The following is the code I'm using:
>
> <ui:define name="topmenu">
> <ul>
> <li class="selected"><a href="#">PageOne</a></li>
>
>
> <li><a href="Layout.jsf">Layout</a></li>
> <li><a href="Template.jsf">Template</a></li>
> <li><a href="MultipleTemplateClient.jsf">MultipleTemplateClient</a></li>
> <af:commandLink text="Home" action="home"/>
> </ul>
>
> </ui:define>
>
> in faces-config.xml,
> I added the navigation rule as below:
>
>
> <navigation-rule>
> <from-view-id>/PageOne.jspx</from-view-id>
> <navigation-case>
> <from-outcome>home</from-outcome>
> <to-view-id>/Home.jspx</to-view-id>
> </navigation-case>
> </navigation-rule>
>
>
> With direct refence to the pages it is working and that too with HTML
> anchor tag it's woking , but not with <af:commandLink> or
> <af:commandButton>
>
> Is there any special syntax for getting navigation rules/ ADF
> CommandLink/Button working?
>
> Thanking you,
> Samba.
>
> On 9/11/06, Matthias Wessendorf <ma...@apache.org> wrote:
> >
> > what are you doing?
> > please provide some code.
> > (it's working for me ;) )
> >
> > On 9/11/06, Samba <sa...@gmail.com> wrote:
> > > Hi all!
> > >
> > > I'm facing diffculty with page navigation in Facelets Pages.
> > > I could navigate to the pages if I directly give href attribute of the
> > > HTML link/anchor tags(with .jsf extension). but, I'm not getting the
> > > navigation rules working.
> > >
> > > Is there any special way to get navigation rules working with facelets
> > > pages?
> > >
> > > Thanking you , )(apologising for that unfortunate day),
> > > Samba.
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://jroller.com/page/mwessendorf
> > mail: mwessendorf-at-gmail-dot-com
> >
>
>
>
> --
> Vuntaanu...
> Samba.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
Re: Navigation rules not working with Facelets
Posted by Samba <sa...@gmail.com>.
Hi! Matthias,
The following is the code I'm using:
<ui:define name="topmenu">
<ul>
<li class="selected"><a href="#">PageOne</a></li>
<li><a href="Layout.jsf">Layout</a></li>
<li><a href="Template.jsf">Template</a></li>
<li><a href="MultipleTemplateClient.jsf">MultipleTemplateClient</a></li>
<af:commandLink text="Home" action="home"/>
</ul>
</ui:define>
in faces-config.xml,
I added the navigation rule as below:
<navigation-rule>
<from-view-id>/PageOne.jspx</from-view-id>
<navigation-case>
<from-outcome>home</from-outcome>
<to-view-id>/Home.jspx</to-view-id>
</navigation-case>
</navigation-rule>
With direct refence to the pages it is working and that too with HTML
anchor tag it's woking , but not with <af:commandLink> or
<af:commandButton>
Is there any special syntax for getting navigation rules/ ADF
CommandLink/Button working?
Thanking you,
Samba.
On 9/11/06, Matthias Wessendorf <ma...@apache.org> wrote:
>
> what are you doing?
> please provide some code.
> (it's working for me ;) )
>
> On 9/11/06, Samba <sa...@gmail.com> wrote:
> > Hi all!
> >
> > I'm facing diffculty with page navigation in Facelets Pages.
> > I could navigate to the pages if I directly give href attribute of the
> > HTML link/anchor tags(with .jsf extension). but, I'm not getting the
> > navigation rules working.
> >
> > Is there any special way to get navigation rules working with facelets
> > pages?
> >
> > Thanking you , )(apologising for that unfortunate day),
> > Samba.
> >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>
--
Vuntaanu...
Samba.
Re: Navigation rules not working with Facelets
Posted by Matthias Wessendorf <ma...@apache.org>.
what are you doing?
please provide some code.
(it's working for me ;) )
On 9/11/06, Samba <sa...@gmail.com> wrote:
> Hi all!
>
> I'm facing diffculty with page navigation in Facelets Pages.
> I could navigate to the pages if I directly give href attribute of the
> HTML link/anchor tags(with .jsf extension). but, I'm not getting the
> navigation rules working.
>
> Is there any special way to get navigation rules working with facelets
> pages?
>
> Thanking you , )(apologising for that unfortunate day),
> Samba.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com