[ 
https://issues.apache.org/jira/browse/TOMAHAWK-953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485628
 ] 

Jeff Bischoff commented on TOMAHAWK-953:
----------------------------------------

I made the change for suggested solution #2 locally. This appeared to help, as 
now the page comes up fine initially, and I can manipulate the tree 
successfully.

However, if I use the drop-down box to switch from "Tree Panel" to "SelectBox 
Panel", it blows up with the error:

Message: Value is no String 
(class=org.apache.myfaces.examples.common.CarConfigurator$Color, [EMAIL 
PROTECTED]) and component _idJsp6:selone_menu_colorswith path: {Component-Path 
: [Class: javax.faces.component.UIViewRoot,ViewId: /panelstack.jsp][Class: 
javax.faces.component.html.HtmlPanelGroup,Id: body][Class: 
org.apache.myfaces.custom.panelstack.HtmlPanelStack,Id: stack][Class: 
javax.faces.component.html.HtmlPanelGroup,Id: selectBoxPanel][Class: 
javax.faces.component.html.HtmlForm,Id: _idJsp6][Class: 
javax.faces.component.html.HtmlPanelGrid,Id: _idJsp7][Class: 
javax.faces.component.html.HtmlSelectOneMenu,Id: selone_menu_colors]} does not 
have a Converter


I don't have time to dig any deeper into this right now. If anyone else would 
like to give a crack at fixing this example, that'd be great. I guess the 
question becomes: when did it last work, and who touched it last? :)

-JB

> Panel Stack example fails with Message: There is more than one JSF tag with 
> id : treePanel for parent component with id : 'stack'
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-953
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-953
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Examples, Panel Stack
>    Affects Versions: 1.1.5, 1.1.6-SNAPSHOT
>         Environment: JSP
>            Reporter: Jeff Bischoff
>
> The current example page for Panel Stack component, panelstack.jsf, blows up 
> immediately with message:
> There is more than one JSF tag with id : treePanel for parent component with 
> id : 'stack'
> Viewing the source, the problem comes from the following panelGroup code 
> having been copied-and-pasted, without either id being changed:
>    <t:panelStack id="stack" selectedPanel="#{stackState.selected}">
>         <h:panelGroup id="treePanel">
>             <h:form>
>                 <t:tree id="tree" value="#{treeModel}"
>                     styleClass="tree"
>                     nodeClass="treenode"
>                     selectedNodeClass="treenodeSelected"
>                     expandRoot="true">
>                 </t:tree>
>              </h:form>   
>             <f:verbatim><br></f:verbatim>
>         </h:panelGroup>
>         <h:panelGroup id="treePanel">
>             <h:form>
>             <t:tree id="tree" value="#{treeModel}"
>                     styleClass="tree"
>                     nodeClass="treenode"
>                     selectedNodeClass="treenodeSelected"
>                     expandRoot="true">
>             </t:tree>
>             </h:form>
>             <f:verbatim><br></f:verbatim>
>         </h:panelGroup>
> Suggested solutions: either delete the second panelGroup or replace their ids 
> with "treePanel1" and "treePanel2", respectively. If I have time, I'll post a 
> patch with the latter solution.

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

Reply via email to