the current it is instanciated then from the form on page create i set the
value of properties of current.
NExt i add it at List form the pethod add() .


i have tried to add a print of size of list into the page of datatable , and
it print the actually size. 
but i get only the first 4 objects
into datatable.

---source of page Create.xhtml...

 <h:body>
        <f:view>
            <h:form>
                <h:panelGrid columns="2" >
                             <h:outputText value="id ="></h:outputText>
                    <input type="text" name=""
value="#{mauroController.current.statusId}" />

                    <h:outputText value="description ="></h:outputText>
                    <input type="text" name="descrizione"
value="#{mauroController.current.description}" />
                    
                    
                    <h:outputText value="crea nuovo"></h:outputText>
                    <h:commandButton action="#{mauroController.creaNuovo()}"
value="crea nuovo"/> 
                    
                    <h:outputText value="cancella"></h:outputText>
                    <h:commandButton
action="#{mauroController.cancellaCurrent()}" value="cancella"/>
        
                    </h:panelGrid    >
                </h:form>
        </f:view>

    </h:body>

----------------------------------------------------------------------------
source  of page List.xhml

 <h:body>
        <f:view>

            list size: #{mauroController.elenco.size()}

            <h:form>
                
<h:outputText value="List"/>

                <h:dataTable value="#{mauroController.list}" var="item" 
                         
                   
                   >
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="StatusId"/>
                        </f:facet>
                        <h:outputText value="#{item.statusId}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="Description"/>
                        </f:facet>
                        <h:outputText value="#{item.description}"/>
                    </h:column>
                
                </h:dataTable>
            </h:form>
            
            
            <h:link value="crea nuovo" outcome="Crea"/>
        </f:view>

    </h:body>




--
View this message in context: 
http://openejb.979440.n4.nabble.com/add-element-at-ArrayList-not-work-tp4667717p4667746.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to