Do you want to create the HtmlDataTable manually?

If not, then it should be sufficient for you to use a binding attribute.

Maybe you can submit a patch for t:dataTable to add an
expandAllDetails attribute if one is currently missing.

On 9/13/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
I solved the problem by following way;

this.dataModel= new HtmlDataTable();
        this.dataModel.setStyleClass("standardTable");
        this.dataModel.setHeaderClass("standardTable_SortHeader");
        this.dataModel.setFooterClass("standardTable_Footer");

this.dataModel.setRowClasses("standardTable_Row1,standardTable_Row2");
        this.dataModel.setValue(this.yuzdeInfoList );
        this.dataModel.setVar("yuzdeInfo");
        this.dataModel.setRowIndexVar("rowIndex");
        this.dataModel.setRenderedIfEmpty(true);
        this.dataModel.setPreserveDataModel (false);
//expand all
        this.dataModel.expandAllDetails();

but i couldn't find a way to set expandAllDetails attribute from the view...

regards...


On 9/13/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> I have not looked at the code at all, but you might need to cycle
> through the row indexes and call
>
>     dataTable.setRowIndex(index)
>
> before calling whatever method expands a detail.
>
> I'm sure that if you read the code, you'll figure it out -- if it can
> be done by clicking, it should be doable programmically.
>
> On 9/13/06, Martin Grotzke <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > On Mon, 2006-08-14 at 16:28 +0300, Murat Hazer wrote:
> > > Hi,
> > >
> > >  How can i define the default value of the detailStamp facets to true?
> > > All of them are hidden (false) in the beggining.
> > >
> > >  Is there an attribute like expandAll and collapseAll?
> > does anybody know how this is possible?
> >
> > I just tried to bind the datatable to the backing bean and invoke
> > expandAllDetails when the datatable is set, but this has not the
> > desired effect. Only when the detail toggler is clicked the first time
> > the details cannot be collapsed any more after that.
> >
> > Any help on this topic?
> >
> > Thanx in advance,
> > Cheers,
> > Martin
> >
> >
> > >
> > >  Can i override the toggleDetail action of the toggleDetail?
> > >
> > >
> > > regards....
> > >
> > >
> > > --
> > > Murat HAZER
> > > http://www.projedunyasi.org
> >
> >
> >
>



--
Murat HAZER

Reply via email to