[ 
http://issues.apache.org/jira/browse/MYFACES-617?page=comments#action_12330457 
] 

Mathias Werlitz commented on MYFACES-617:
-----------------------------------------

This is a known issue ... see MYFACES-568. 

> tree2 invalid bit mask
> ----------------------
>
>          Key: MYFACES-617
>          URL: http://issues.apache.org/jira/browse/MYFACES-617
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: Nightly Build
>     Reporter: Jan Dockx

>
> A simple tree, 1 level. All entries below the root are leafs. Definition like 
> this:
>               <x:tree2 id="schoolTree"
>                        value="#{handler.schoolTree}"
>                        var="node"
>                        varNodeToggler="t"
>                        showRootNode="false"
>                        clientSideToggle="false">
>                 <f:facet name="User">
>                   <h:panelGroup>
>                     <f:facet name="expand">
>                       <h:graphicImage 
> value="/img/x-tree2/yellow-folder-open.png" rendered="#{t.nodeExpanded}" />
>                     </f:facet>
>                     <f:facet name="collapse">
>                       <h:graphicImage 
> value="/img/x-tree2/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" />
>                     </f:facet>
>                     <h:outputText value="#{node.description}" 
> styleClass="user" />
>                   </h:panelGroup>
>                 </f:facet>
>                 <f:facet name="be.peopleware.fvb.semantics.convenants.School">
>                   <h:panelGroup>
>                       <h:commandLink id="gotoSchoolDetailLink"
>                                      actionListener="#{node.navigateHere}"
>                                      immediate="true"
>                                      styleClass="school">
>                       <h:outputText value="#{node.schoolName}" 
> styleClass="school" />
>                       </h:commandLink>
>                   </h:panelGroup>
>                 </f:facet>
>               </x:tree2>
> The shool nodes are rendered, without an icon. Clicking on the school name 
> does navigation ok, no probs. Yet, on the left side of the school name, just 
> below the lines, there is still an ("invisible") area where you can click, 
> and doing so gives an error:
> java.lang.IllegalArgumentException: Invalid bit mask of 14
>       at 
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation(HtmlTreeRenderer.java:445)
>       at 
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(HtmlTreeRenderer.java:334)
>       at 
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:236)
>       at 
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTreeRenderer.java:199)
>       at 
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:315)
>       at 
> javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:343)
>       at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:251)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to