DataModel is not Serializable, that is true.
It shouldn't be serialized, though, I would suppose. Only its contents!
regards,
Martin
On 10/27/05, PATRICIA GUEDES <[EMAIL PROTECTED]> wrote:
> I you look for the string "Error while saving state in" in the google,
> appears some lines. But it seems that is to server-side instead
> client-side.
>
> I tried with the two types (ListDataModel and ArrayDataModel), but
> nothing works. In the net I found some pages that say the class
> DataModel of the JSF is not Serializable. Is this truth? If it is,
> maybe that's the problem, I think ...
>
> Thanks.
> Guedes
>
> On 10/27/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > You have both messages?
> >
> > once with ListDataModel and once with ArrayDataModel?
> >
> > Wonder where the stack trace for this would be....
> >
> > regards,
> >
> > Martin
> >
> > On 10/27/05, PATRICIA GUEDES <[EMAIL PROTECTED]> wrote:
> > > I can do it for you, because it doesn't appears in the log file. I am
> > > using Oracle JDeveloper. Some parts of the jsp appears and the message
> > > :
> > >
> > > <td class[ServletException in:/eservices/layout/layout.jsp] Error
> > > while saving state in 'client': 'javax.faces.model.ArrayDataModel'.'
> > >
> > > too.
> > >
> > > If you want I can send the "Print Screen" of my jsf page.....
> > >
> > > Thanks.
> > > Guedes
> > >
> > > On 10/27/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > > > I don't find the error message
> > > >
> > > > Error while saving state in
> > > >
> > > > anywhere in the sources - can you send in the complete stack trace?
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > On 10/27/05, PATRICIA GUEDES <[EMAIL PROTECTED]> wrote:
> > > > > Yes, it is. It seems the problem is in DataModel of the JSF.
> > > > >
> > > > > Thanks.
> > > > > Guedes
> > > > >
> > > > > On 10/27/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > > > > > Are all your model classes serializable?
> > > > > >
> > > > > > E.g. "fields" - is it serializable?
> > > > > >
> > > > > > regards,
> > > > > >
> > > > > > Martin
> > > > > >
> > > > > > On 10/27/05, PATRICIA GUEDES <[EMAIL PROTECTED]> wrote:
> > > > > > > Anyone please ....
> > > > > > >
> > > > > > > Thanks.
> > > > > > > Guedes
> > > > > > >
> > > > > > > On 10/26/05, PATRICIA GUEDES <[EMAIL PROTECTED]> wrote:
> > > > > > > > Ooops!! My mistake !! This is the correct method :
> > > > > > > >
> > > > > > > > public DataModel getValuesEmbque() {
> > > > > > > > if(valuesEmbque == null) {
> > > > > > > > valuesEmbque = new ArrayList();
> > > > > > > > valuesEmbque.add(new RowData(this.getFieldsEmbque(),
> > > > > > fieldsEmbque));
> > > > > > > > valuesEmbque.add(new RowData(this.getFieldsEmbque(),
> > > > > > fieldsEmbque1));
> > > > > > > > }
> > > > > > > >
> > > > > > > > if(valuesEmbqueModel == null) {
> > > > > > > > valuesEmbqueModel = new ListDataModel(valuesEmbque);
> > > > > > > > }
> > > > > > > >
> > > > > > > > return valuesEmbqueModel;
> > > > > > > > }
> > > > > > > >
> > > > > > > > Sorry!!!
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > > Guedes
> > > > > > > >
> > > > > > > > On 10/26/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> > > > > > > > > how does it compile? id doesn't return anything.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ---- Original message ----
> > > > > > > > > >Date: Wed, 26 Oct 2005 16:56:57 -0200
> > > > > > > > > >From: PATRICIA GUEDES <[EMAIL PROTECTED]>
> > > > > > > > > >Subject: Re: Error while saving state in 'client' - PLEASE
> > > > > > > > > HELP
> > > > > > > > > >To: MyFaces Discussion <[email protected]>
> > > > > > > > > >
> > > > > > > > > >Yes. If I remove the preserveDataModel attribute, works
> > fine.
> > > > > > > > > >
> > > > > > > > > >Thanks for your reply!!! I hope you can help me.
> > > > > > > > > >
> > > > > > > > > >Guedes
> > > > > > > > > >
> > > > > > > > > >On 10/26/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> > > > > > > > > >> are you sure getValuesEmbque is compiling?
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >> ---- Original message ----
> > > > > > > > > >> >Date: Wed, 26 Oct 2005 16:35:56 -0200
> > > > > > > > > >> >From: PATRICIA GUEDES <[EMAIL PROTECTED]>
> > > > > > > > > >> >Subject: Error while saving state in 'client' - PLEASE
> > > > > > > > > HELP
> > > > > > > > > >> >To: [email protected]
> > > > > > > > > >> >
> > > > > > > > > >> >Hi everyone....
> > > > > > > > > >> >
> > > > > > > > > >> >I am trying to use a dataTable with the preserveDataModel
> > > > > > > > > >> attribute,
> > > > > > > > > >> >but the follow error occurs:
> > > > > > > > > >> >
> > > > > > > > > >> >Error while saving state
> > > > > > > > > >> in 'client': 'javax.faces.model.ListDataModel'.'
> > > > > > > > > >> >
> > > > > > > > > >> >#############
> > > > > > > > > >> >
> > > > > > > > > >> ><x:dataTable value="#{remessaBean.valuesEmbque}"
> > > > > > > > > >> var="values" >
> > > > > > > > > >> > <x:columns value="#{remessaBean.fieldsEmbque}"
> > > > > > > > > >> var="field" >
> > > > > > > > > >> > <f:facet name="header">
> > > > > > > > > >> > <x:outputText value="#{msg
> > > > > > > > > >> [field.nomeCampoTela]}"
> > > > > > > > > >> >styleClass="forms"/>
> > > > > > > > > >> > </f:facet>
> > > > > > > > > >> > <h:inputText value="#{values.field.value}"
> > > > > > > > > >> >rendered='#{values.field.active and
> > > > > > > > > values.field.isEditable
> > > > > > > > > >> and
> > > > > > > > > >> >values.field.tipoHTML!="COMBO"}'/>
> > > > > > > > > >> > </x:columns>
> > > > > > > > > >> >
> > > > > > > > > >> >######################
> > > > > > > > > >> >
> > > > > > > > > >> >public DataModel getValuesEmbque() {
> > > > > > > > > >> > if(valuesEmbque == null) {
> > > > > > > > > >> > valuesEmbque = new ArrayList();
> > > > > > > > > >> > valuesEmbque.add(new RowData(this.getFieldsEmbque(),
> > > > > > > > > >> fieldsEmbque));
> > > > > > > > > >> > valuesEmbque.add(new RowData(this.getFieldsEmbque(),
> > > > > > > > > >> fieldsEmbque1));
> > > > > > > > > >> >}}
> > > > > > > > > >> >
> > > > > > > > > >> >public DataModel getFieldsEmbque() {
> > > > > > > > > >> > if(fieldsEmbqueModel == null) {
> > > > > > > > > >> > fieldsEmbqueModel = new ArrayDataModel
> > > > > > > > > (fieldsEmbque);
> > > > > > > > > >> > }
> > > > > > > > > >> > return fieldsEmbqueModel;
> > > > > > > > > >> > }
> > > > > > > > > >> >
> > > > > > > > > >> >####################
> > > > > > > > > >> >
> > > > > > > > > >> >public class RowData implements Serializable {
> > > > > > > > > >> >
> > > > > > > > > >> > private DataModel model;
> > > > > > > > > >> > private Fields[] fields;
> > > > > > > > > >> >
> > > > > > > > > >> > public RowData(DataModel model, Fields[] fields) {
> > > > > > > > > >> > this.model = model;
> > > > > > > > > >> > this.fields = fields;
> > > > > > > > > >> > }
> > > > > > > > > >> >
> > > > > > > > > >> > public Fields getField()
> > > > > > > > > >> > {
> > > > > > > > > >> > return fields[model.getRowIndex()];
> > > > > > > > > >> > }
> > > > > > > > > >> >}
> > > > > > > > > >> >
> > > > > > > > > >> >###################
> > > > > > > > > >> >
> > > > > > > > > >> >I am stuck for 2 days!!! Help me please ....
> > > > > > > > > >> >
> > > > > > > > > >> >Thanks.
> > > > > > > > > >> >Guedes
> > > > > > > > > >> Dennis Byrne
> > > > > > > > > >>
> > > > > > > > > Dennis Byrne
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > http://www.irian.at
> > > > > > Your JSF powerhouse -
> > > > > > JSF Trainings in English and German
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > > Your JSF powerhouse -
> > > > JSF Trainings in English and German
> > > >
> > >
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> > Your JSF powerhouse -
> > JSF Trainings in English and German
> >
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German