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

Reply via email to