You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Noah Sloan (JIRA)" <de...@myfaces.apache.org> on 2006/07/01 07:39:29 UTC

[jira] Created: (TOMAHAWK-510) Facelets + Inline EL + tree2 = InvalidArgumentException

Facelets + Inline EL + tree2 = InvalidArgumentException
-------------------------------------------------------

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

  Components: Tree2  
    Versions: 1.1.1    
 Environment: Facelets
    Reporter: Noah Sloan
    Priority: Minor


A tree2 facet in Facelets such as:
<f:facet name="root">
   #{node.description}
</f:facet>
<f:facet name="node">
  <h:commandLink ...>
    <af:setActionListener from="node.property" ...>
  </h:commandLink>
</f:facet>

Will result in an IllegalArgumentException: Unable to locate facet with the name: root
Since the EL is transient and thus trimmed once the tree is rendered.  

An improvement would be to have the tree ignore the fact that the facet has no body and just continue on its way, but instead logs a warning to that affect.

-- 
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] Resolved: (TOMAHAWK-510) Facelets + Inline EL + tree2 = InvalidArgumentException

Posted by "sean schofield (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-510?page=all ]
     
sean schofield resolved TOMAHAWK-510:
-------------------------------------

    Fix Version: 1.1.5-SNAPSHOT
     Resolution: Fixed

"Empty" facets are not just a problem with EL text but hard-coded text as well.  Empty facets are now ignored and logged as a warning instead.

> Facelets + Inline EL + tree2 = InvalidArgumentException
> -------------------------------------------------------
>
>          Key: TOMAHAWK-510
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-510
>      Project: MyFaces Tomahawk
>         Type: Improvement

>   Components: Tree2
>     Versions: 1.1.1
>  Environment: Facelets
>     Reporter: Noah Sloan
>     Priority: Minor
>      Fix For: 1.1.5-SNAPSHOT

>
> A tree2 facet in Facelets such as:
> <f:facet name="root">
>    #{node.description}
> </f:facet>
> <f:facet name="node">
>   <h:commandLink ...>
>     <af:setActionListener from="node.property" ...>
>   </h:commandLink>
> </f:facet>
> Will result in an IllegalArgumentException: Unable to locate facet with the name: root
> Since the EL is transient and thus trimmed once the tree is rendered.  
> An improvement would be to have the tree ignore the fact that the facet has no body and just continue on its way, but instead logs a warning to that affect.

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