File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes getWrappedData does not return right value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "getWrappedData does not return right value" Watch "getWrappedData does not return right value" New topic

getWrappedData does not return right value

Sveta Milenkovic

Joined: Feb 27, 2010
Posts: 1
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?
I agree. Here's the link:
subject: getWrappedData does not return right value