Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getWrappedData does not return right value

 
Sveta Milenkovic
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic