| Author |
getWrappedData does not return right value
|
Sveta Milenkovic
Greenhorn
Joined: Feb 27, 2010
Posts: 1
|
|
JSP page
<h:form>
<h:dataTable width="100%" value="#{Korisnik.allTestQue}" var="item" columnClasses="box1">
<h:column>
<h:inputTextarea value="#{item.postavkaPitanja}" readonly="true" rows="20" cols="75"/>
<h:inputText value="#{item.stuOdg1}" size="3" rendered="#{ item.odg1}" />
<h:inputText value="#{item.stuOdg2}" size="3" rendered="#{ item.odg2}" />
<h:inputText value="#{item.stuOdg3}" size="3" rendered="#{ item.odg3}" />
<h:inputText value="#{item.stuOdg4}" size="3" rendered="#{ item.odg4}" />
</h:column>
</h:dataTable>
<div align="center"> <h:commandButton value="POTVRDI" action="#{Korisnik.saveAnswers}"> </h:commandButton></div>
</h:form>
This form displays some records from DataTable. So far it is everything ok . Method "saveAnswers" should be saving that list of objects , but
when i try to retrieve that datamodel with method getWrappedData it returns some other values ??? :-/
I cannot explain logicaly why it does not return values that are displayed in JSP page properly .
Any ideas?
|
 |
 |
|
|
subject: getWrappedData does not return right value
|
|
|