You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2006/06/07 04:41:29 UTC

[jira] Created: (TOMAHAWK-474) treeTable sample no expand/colaps w/ RI as JSF runtime

treeTable sample no expand/colaps w/ RI as JSF runtime
------------------------------------------------------

         Key: TOMAHAWK-474
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-474
     Project: MyFaces Tomahawk
        Type: Bug

  Components: Tree Table  
    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.
-
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


[jira] Commented: (TOMAHAWK-474) treeTable sample no expand/colaps w/ RI as JSF runtime

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-474?page=comments#action_12415466 ] 

Matthias Weßendorf commented on TOMAHAWK-474:
---------------------------------------------

same for myfaces-example-simple/tree.jsf

> treeTable sample no expand/colaps w/ RI as JSF runtime
> ------------------------------------------------------
>
>          Key: TOMAHAWK-474
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-474
>      Project: MyFaces Tomahawk
>         Type: Bug

>   Components: Tree Table
>     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.
-
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


[jira] Commented: (TOMAHAWK-474) treeTable sample no expand/colaps w/ RI as JSF runtime

Posted by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-474?page=comments#action_12415738 ] 

Bruno Aranda commented on TOMAHAWK-474:
---------------------------------------

I can reproduce it with the RI. Tree and treeTable not working properly. No clue about the reason now.

> treeTable sample no expand/colaps w/ RI as JSF runtime
> ------------------------------------------------------
>
>          Key: TOMAHAWK-474
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-474
>      Project: MyFaces Tomahawk
>         Type: Bug

>   Components: Tree Table
>     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.
-
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


[jira] Commented: (TOMAHAWK-474) treeTable sample no expand/colaps w/ RI as JSF runtime

Posted by "Paul Kossler (JIRA)" <de...@myfaces.apache.org>.
    [ 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.