public DataModel getDataModel() {
if (dataModel == null) {
dataModel = new LocalDataModel(_PageSize);
}
return dataModel;
}
Yes in my bean I have this method. I have another question, that may help me
with this, also, How in my bean I can access the variables of the
PagedListDataModel, for example for change the value of the variable
_invalidated of that class? Do I have to extend of it on my bean, or how I
can set the value of that variable on that class?? I´m confuse on how I can
use that class from my backing_bean
On 7/9/07, Vladimir Isakovich <[EMAIL PROTECTED]> wrote:
Did you call that method Paul sent few days ago for updating dataModel
something like getDataModel(0), I just could not find it quick.
On 7/9/07, daniel ccss <[EMAIL PROTECTED]> wrote:
>
> where says appear read appears, where says alse read also :P
>
> On 7/9/07, daniel ccss <[EMAIL PROTECTED] > wrote:
> >
> > Exactly Vladimir, that is what i was doing, BUT the following happens
> > (see images)
> >
> >
> >
> > On 7/9/07, Vladimir Isakovich < [EMAIL PROTECTED] > wrote:
> > >
> > > Hi Daniel,
> > > I think this logic should do:
> > > if(rowIndex >= dataSize && [list.size()==0]) - I mean the page came
> > > empty
> > > rowIndex = rowIndex - pageSize;
> > > if(rowIndex <0) rowIndex = 0;
> > > call DB for getting records (or what it was some wrapping method)
> > >
> > > vlad
> > >
> > > On 7/9/07, daniel ccss <[EMAIL PROTECTED] > wrote:
> > > >
> > > > Hi Paul, Vladimir, and other readers!!
> > > >
> > > > Paul in my case all what I need now, to finish this, is know how I
> > > > can go to other DataPage from code. When I delete the last row of a
DataPage
> > > > I want go to the previus DataPage. I want do this when I enter to this
if:
> > > >
> > > > if(rowIndex >= dataSize)
> > > >
> > > > What I have now is this: I add a Patient and the DataTable is
> > > > updated :), I delete a Patient (no the last of a PageData) and all works
> > > > fine :), I edit a Patient and all works fine :). When I delete the last
> > > > Patient of a DataPage, for example the DataPage 3 The indexes of the
pages
> > > > are update, I mean, in the case of 3 dataPages, after delete the last
row of
> > > > the DataPage3 only 1 and 2 links appear and not the 3, thats Fine!! But
The
> > > > DataPage doesn´t change to the DataPage before it.
> > > >
> > > > The only thing that I need is that when the last patient of the
> > > > DataPage3 is erased (when enter to the if(rowIndex >= dataSize)) I can
show
> > > > the DataPage2, what I need to do that??
> > > >
> > > > See the images that I attach in this mail, in this order image1,
> > > > image2 and image3
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>