[ 
https://issues.apache.org/jira/browse/TOMAHAWK-474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570372#action_12570372
 ] 

Paul Kossler commented on TOMAHAWK-474:
---------------------------------------

I am using Tomcat 6.14, Tomahawk 1.16 and Sun's RI 1.1.4
The RI model does not work because its using the deprecated ValueBinding to 
find the 'binding'  for "model" which does not exist in the example.
A short fix is to break the implementation and use the proper binding variable 
: "value" and the improper "model" in the tag like so:
                                                <t:tree id="tree" 
value="#{treeTable.treeModel}" model="#{treeTable.treeModel}" 
                                                        var="treeItem"
                                                        styleClass="tree" 
nodeClass="treenode" headerClass="treeHeader"
                                                        
footerClass="treeFooter" rowClasses="a, b"
                                                        columnClasses="col1, 
col2" selectedNodeClass="treenodeSelected"
                                                        expandRoot="true">....
I would be suprised to hear if this works at all with the Apache Core RI.  
There are several other problems with this implementation too; however, they 
are covered in other places.

If I had more time I would submit a formal fix; however, here is the cheap fix 
for the whoever wants it:
in org.apache.myfaces.custom.tree.HtmlTree
Method:
    public TreeModel getModel(FacesContext context)
    {
        ValueBinding binding = getValueBinding("model");//<-----------  Change 
param to: "value"  The proper solution is to update this to the EL lookup and 
make this match the documented binding variable: "value"

        if (binding != null)
        {
            TreeModel model = (TreeModel) binding.getValue(context);
            if (model != null)
            {
                return model;
            }
        }
        return null;
    }

> treeTable sample no expand/colaps w/ RI as JSF runtime
> ------------------------------------------------------
>
>                 Key: TOMAHAWK-474
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-474
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tree Table
>    Affects Versions: 1.1.3-SNAPSHOT
>            Reporter: Matthias Weßendorf
>            Priority: Minor
>
> when using the RI treeTable makes problems,
> that the generated links don't work.

-- 
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