DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41901>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41901

           Summary: if custom component written in facelets include <c:if >
                    statement is called inside <h:dataTable>, if statement
                    is now executed
           Product: Tomcat 6
           Version: 6.0.7
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


I have a custom composite component in facelets, which contains code as 
following:

1. <h:outputText value="${nofpages}" />
2. <c:if test="${nofpages > 1}"><h:outputText value="s" /></c:if>

I call this component from <h:dataTable> as following:

                <h:dataTable value="#{myBean.mylist}" var="t" id="tableTr">   
                    <h:column>
                        <custom:item nofpages="#{t.numberOfPages}" />
                    </h:column>
     
                </h:dataTable> 

>From line 1. I get printed "7", but line 2 does not print "s" as I would 
>expect.

If I call the same component from inside <h:panelGrid>, I get the correct 
result:

                <h:panelGrid id="myTable" columns="3">
                    <c:forEach items="#{myBean.mylist}" var="t"> 
                        <h:panelGroup>
                            <custom:item nofpages="#{t.numberOfPages}" />
                        </h:panelGroup>
                    </c:forEach>  
                </h:panelGrid> 

In the last case I get printed "7" and "s".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to