This content has been marked as final.
Show 3 replies
-
1. Re: panelBar snapshot 3.0.2 (20070718) selectedItem ignored
andyredhead Jul 18, 2007 2:36 PM (in response to andyredhead)I had a look at the updated javadoc for the panelBarItem and noticed a "name" attribute...
I changed the "nav component" definition to look like:<ui:component id="admin-leftnav-component"> <rich:panelBar selectedPanel="#{active-nav-panel}" width="300"> <rich:panelBarItem label="Home" name="Home"> <ui:include src="left-nav-home.xhtml"/> </rich:panelBarItem> <rich:panelBarItem label="Entity Admin" name="EntityAdmin"> <h:outputText value="flobber"/> </rich:panelBarItem> </rich:panelBar> </ui:component>
Unfortunately, this has made no difference :( -
2. Re: panelBar snapshot 3.0.2 (20070718) selectedItem ignored
andyredhead Jul 19, 2007 6:25 AM (in response to andyredhead)Looks like I missed this post in my trawl through the contents of this forum:
http://jboss.com/index.html?module=bb&op=viewtopic&t=104275
I think they are asking for the same thing - ability to open panelBar with a selected panel showing (rather than the first panel).
The jira issue:
http://jira.jboss.com/jira/browse/RF-20
is show as closed though :( -
3. Re: panelBar snapshot 3.0.2 (20070718) selectedItem ignored
maku01 Jul 19, 2007 12:57 PM (in response to andyredhead)I've the same problem.
Than I tried the approach with binding but I got an Exceptionjava.lang.IllegalArgumentException: Component j_id3 not instance of org.richfaces.component.UIPanelBar at org.ajax4jsf.framework.renderer.RendererBase.encodeBegin(RendererBase.java:94) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
Could anybody give us a hint what's going on? (and why the jira issue is closed)
TIA
Martin