Sorry this is meant to be posted to Facelets user group.

 


From: Yee CN [mailto:[EMAIL PROTECTED]]
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

 

Reply via email to