You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Yee CN <ye...@streamyx.com> on 2006/02/26 16:11:20 UTC

Help: not working

Hi,

 

I tried to follow create a Composition Components as follows:

 

----------

 

<ui:composition>

        <!--  The label attribute is optional. Generate it if it is missing.
-->

      <c:if test="${empty label}">

          <c:set var="label" value="${fieldName}" />

      </c:if> .

 

----------

 

 

The line <c:if test="${empty label}"> throws the following exception if
label attributes is not specified. Is this meant to be working for Facelets?
I was trying to following an article in the web.

 

 

com.sun.facelets.tag.TagAttributeException: /tags/sortColumn.xhtml @16,30
test="${empty label}" /tags/sortColumn.xhtml @16,30 test="${empty label}":
Variable for name : 'label' could not be retrieved.

 

      at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235).

 

 

Thanks

 

Regards,

 

Yee

 


RE: Help: not working

Posted by YeeCN <ye...@pd.jaring.my>.
Sorry this is meant to be posted to Facelets user group.

 

  _____  

From: Yee CN [mailto:yeecn@streamyx.com] 
Sent: Sunday, 26 February 2006 11:11 PM
To: 'MyFaces Discussion'
Subject: Help: <c:if test="${empty label}"> not working

 

Hi,

 

I tried to follow create a Composition Components as follows:

 

----------

 

<ui:composition>

        <!--  The label attribute is optional. Generate it if it is missing.
-->

      <c:if test="${empty label}">

          <c:set var="label" value="${fieldName}" />

      </c:if> .

 

----------

 

 

The line <c:if test="${empty label}"> throws the following exception if
label attributes is not specified. Is this meant to be working for Facelets?
I was trying to following an article in the web.

 

 

com.sun.facelets.tag.TagAttributeException: /tags/sortColumn.xhtml @16,30
test="${empty label}" /tags/sortColumn.xhtml @16,30 test="${empty label}":
Variable for name : 'label' could not be retrieved.

 

      at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235).

 

 

Thanks

 

Regards,

 

Yee