myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maurojava <>
Subject problem wit hvisualize a size of colletion into a datatable
Date Thu, 20 Feb 2014 16:21:20 GMT
>From the projectController , i have a method: getCollectionProject that
return a List<Project> .
Each project contains a list of Professor .
SO into the last line i would  show the amount of professors for the project

The var item rappresent a project.
project contains a List<Professor> 
i  write "#{item.professors.size()}" for get the amount of professors for
the project valutated form each iteration .

Whi into the last outputText :
   <h:outputText value="#{item.professors.size()} tot projects"/>

it shows only the words tot projects and not show the value of listSize?


<h:outputText value="List"/>
                <h:dataTable value="#{projectController.collectionProject}"
                        <f:facet name="header">
                            <h:outputText value="Id"/>
                        <h:outputText value="#{}"/>
                        <f:facet name="header">
                            <h:outputText value="name of project"/>
                        <h:outputText value="#{}"/>
                        <f:facet name="header">
                            <h:outputText value="numbers of professors"/>
                         <h:outputText value="#{item.professors.size()} tot

View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message