You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Murat Hazer <mu...@gmail.com> on 2006/08/14 15:28:02 UTC
varDetailToggler and DataTable
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?
Can i override the toggleDetail action of the toggleDetail?
regards....
--
Murat HAZER
http://www.projedunyasi.org
Re: varDetailToggler and DataTable
Posted by Murat Hazer <mu...@gmail.com>.
On 9/13/06, Mike Kienenberger <mk...@gmail.com> wrote:
>
> Do you want to create the HtmlDataTable manually?
>
> If not, then it should be sufficient for you to use a binding attribute.
I don't wanna create HtmlDataTable manually but i need to do for
expandAllDetails work...
Maybe you can submit a patch for t:dataTable to add an
> expandAllDetails attribute if one is currently missing.
you're right, may be i should try to submit a patch...
On 9/13/06, Murat Hazer <mu...@gmail.com> 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 <mk...@gmail.com> 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 <ma...@javakaffee.de> 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
> >
>
--
Murat HAZER
http://www.projedunyasi.org
Re: varDetailToggler and DataTable
Posted by Mike Kienenberger <mk...@gmail.com>.
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 <mu...@gmail.com> 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 <mk...@gmail.com> 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 <ma...@javakaffee.de> 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
>
Re: varDetailToggler and DataTable
Posted by Murat Hazer <mu...@gmail.com>.
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 <mk...@gmail.com> 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 <ma...@javakaffee.de> 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
Re: varDetailToggler and DataTable
Posted by Mike Kienenberger <mk...@gmail.com>.
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 <ma...@javakaffee.de> 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
>
>
>
Re: varDetailToggler and DataTable
Posted by Martin Grotzke <ma...@javakaffee.de>.
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