incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Sfiligoj (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Commented: (ADFFACES-275) panelPage/navigationPane combo does not support nodeStamp facet properly
Date Fri, 23 Feb 2007 09:13:05 GMT

    [ https://issues.apache.org/jira/browse/ADFFACES-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475295
] 

Gregor Sfiligoj commented on ADFFACES-275:
------------------------------------------

<tr:commandNavigationItem> has 2 attributes that influence how to do the navigation:
action and destination. If destination != null then action will be evaluated and interpreted
as an outcome (in fact in all examples you find about the MenuModel, the metod getOutcome
check if the property action is an expression, in this case it is evaluated, or a simple string
reppresenting an outcome). If you would like to use an external link to an url, you must use
 the destination attribute (which has precedence). In this case commandNavigationItem get
the url from the destination attribute.   
This is one example, how to use it, I tried also a level 0 menu without childrens, and it
works:           

<tr:navigationPane id="np1" hint="tabs" value="#{menuModel.model}" var="menuItem" level="0">
   <f:facet name="nodeStamp">
      <tr:commandNavigationItem rendered="#{menuItem.shown and menuItem.type==\'default\'}"
                                          text="#{menuItem.label}"
                                          immediate="true"
                                          disabled="#{menuItem.readOnly}"
                                          action="#{menuItem.getOutcome}"
                                          destination="#{menuItem.destination}"
                                          actionListener="#{menuItem.processAction}"/>
   </f:facet>
</tr:navigationPane>

However, you can use links to non jsf pages, but they must be configured in navigation-rules
in faces-config.xml and called using outcomes.

> panelPage/navigationPane combo does not support nodeStamp facet properly
> ------------------------------------------------------------------------
>
>                 Key: ADFFACES-275
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-275
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>          Components: Build
>         Environment: JBoss 4.0.4/Windows XP
>            Reporter: David Sanders
>         Assigned To: Adam Winer
>         Attachments: NavigationPaneRenderer.java, NavigationPaneRenderer.java, NavigationPaneRenderer.java
>
>
> actions do not seem to work.  The page renders okay, but clicking on different tabs sends
me to the same/current page.  I am sure that my faces-config.xml is setup properly, aliases
and all, as it worked with page component other than global buttons issue (see my other bug
report), which is why I moved to trying panelPage component.  Here is code:
> 	<tr:panelPage>
> 		<f:facet name="navigationGlobal">
> 			<tr:navigationPane 
> 				var="node" 
> 				value="#{navigationModel.model}" 
> 				level="0" 
> 				hint="buttons">
> 				<f:facet name="nodeStamp">
> 					<tr:commandNavigationItem
> 						text="#{node.label}"
> 						action="#{node.getOutcome}"
> 						rendered="#{node.type=='global'}"/>
> 				</f:facet>
> 			</tr:navigationPane>			              
> 		</f:facet>              
> 		<f:facet name="navigation1">
> 			<tr:navigationPane
> 				var="node" 
> 				value="#{navigationModel.model}" 
> 				level="0" 
> 				hint="tabs">
> 				<f:facet name="nodeStamp">
> 					<tr:commandNavigationItem
> 						text="#{node.label}"
> 						action="#{node.getOutcome}"
> 						rendered="#{node.type!='global'}"/>
> 				</f:facet>
> 			</tr:navigationPane>
> 		</f:facet>
> 		<f:facet name="navigation2">
> 			<tr:navigationPane 
> 				var="node" 
> 				value="#{navigationModel.model}" 
> 				level="1" 
> 				hint="bar">
> 				<f:facet name="nodeStamp">
> 					<tr:commandNavigationItem
> 						text="#{node.label}"
> 						action="#{node.getOutcome}"/>
> 				</f:facet>
> 			</tr:navigationPane>			              
> 		</f:facet>
> 	    <f:facet name="location">
>             <tr:breadCrumbs var="node" 
>             	value="#{navigationModel.model}">
> 				<f:facet name="nodeStamp">
> 					<tr:commandNavigationItem
> 						text="#{node.label}"
> 						action="#{node.getOutcome}"/>
> 				</f:facet>
> 			</tr:breadCrumbs>
> 		</f:facet>		

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message