• Post Reply Bookmark Topic Watch Topic
  • New Topic

getWrappedData does not return right value  RSS feed

Sveta Milenkovic
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP page

<h:dataTable width="100%" value="#{Korisnik.allTestQue}" var="item" columnClasses="box1">

<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}" />



<div align="center"> <h:commandButton value="POTVRDI" action="#{Korisnik.saveAnswers}"> </h:commandButton></div>


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
Boost this thread!