You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Arash Bijanzadeh <ar...@gmail.com> on 2005/09/28 16:08:39 UTC
jsCookMenu
I could not figure out what shall I use in the action tag of jscookmenu? I
couldn't figure out what nav_page1 or go_page1 means in the config file and
the menu handlers!
And if the style changed in the new release?! I mean in the tomahawk there
is no itemLabel property
Regards
Arash
--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.
Re: jsCookMenu
Posted by Arash Bijanzadeh <ar...@gmail.com>.
I have
<navigation-case>
<from-outcome>nav_createProject</from-outcome>
<to-view-id>/project/createProject.jsp</to-view-id>
</navigation-case>
And I have a menu with :
<x:navigationMenuItem id = "nav_2_1_1"
itemLabel="#{messages['nav_createProject']}" action="nav_createProject"/>
But I get :
2005-10-04 12:00:16 StandardContext[/hamyar]No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/project/createProject.jsp]} (component-family=javax.faces.ViewRoot,
renderer-type=javax.faces.Grid)
typing the /project/createProject.jsf at the address bar working perfect!
On 9/29/05, Simon Kitching <sk...@obsidium.com> wrote:
>
> Arash Bijanzadeh wrote:
> > I could not figure out what shall I use in the action tag of jscookmenu?
> > I couldn't figure out what nav_page1 or go_page1 means in the config
> > file and the menu handlers!
>
> The action string in jscookmenu can be a literal string, in which case
> you write a navigation rule in the faces-config.xml:
>
> <navigation-rule>
> <navigation-case>
> <from-outcome>go_page1</from-outcome>
> <to-view-id>/jsp/pages/page1.jsp</to-view-id>
> </navigation-case>
> </snavigation-rule>
>
> It can also be a binding to an action method:
> action="#{menuBean.navigate}"
> where the menuBean managed bean has:
> public String navigate() {
> // calculate destination
> return "go_page1";
> }
>
> Regards,
>
> Simon
>
--
from debian manifesto:
Debian Linux is a brand-new kind of Linux distribution.
Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the
past, Debian is being developed openly in the spirit of Linux and GNU.
Re: jsCookMenu
Posted by Simon Kitching <sk...@obsidium.com>.
Arash Bijanzadeh wrote:
> I could not figure out what shall I use in the action tag of jscookmenu?
> I couldn't figure out what nav_page1 or go_page1 means in the config
> file and the menu handlers!
The action string in jscookmenu can be a literal string, in which case
you write a navigation rule in the faces-config.xml:
<navigation-rule>
<navigation-case>
<from-outcome>go_page1</from-outcome>
<to-view-id>/jsp/pages/page1.jsp</to-view-id>
</navigation-case>
</snavigation-rule>
It can also be a binding to an action method:
action="#{menuBean.navigate}"
where the menuBean managed bean has:
public String navigate() {
// calculate destination
return "go_page1";
}
Regards,
Simon