You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Giguère, Vincent" <vg...@optimuminformatique.com> on 2004/11/30 15:58:34 UTC

dynamic binding of myfaces JSF components


Hi, 

I need to create data tables that are dynamic ie: The number or rows and the
content of each of them has to be set at runtime.

My question is: How can a do a dynamic binding of my data to a myfaces JSF
component?

Thank you in advance for your answers.

Vincent Giguere
Consultant Externe - Développement J2EE
Optimum informatique inc.
tel: (514)288-1661 extension 636


Re: dynamic binding of myfaces JSF components

Posted by Heath Borders <he...@gmail.com>.
If you're doing any input nested datables might not work for you.  I'm
still haven't problems with them.  Output looks fine though.


On Thu, 02 Dec 2004 08:52:31 +0100, Manfred Geiler <ma...@apache.org> wrote:
> Vincent,
> Why not nest two <h:dataTable>?
> Bind the top dataTable (vertical)) to a List or Array of row objects and
> the nested dataTable (horiziontal) to a getter property of this row
> object that returns the proper column objects.
> 
> HTH,
> Manfred
> 
> 
> 
> 
> Giguère, Vincent wrote:
> >
> > Hi,
> >
> > I need to create data tables that are dynamic ie: The number or rows and the
> > content of each of them has to be set at runtime.
> >
> > My question is: How can a do a dynamic binding of my data to a myfaces JSF
> > component?
> >
> > Thank you in advance for your answers.
> >
> > Vincent Giguere
> > Consultant Externe - Développement J2EE
> > Optimum informatique inc.
> > tel: (514)288-1661 extension 636
> >
> >
> >
> 
> 


-- 
If you don't have a GMail account, I probably have 5 invites.  Just ask!
-Heath Borders-Wing
hborders@mail.win.org

Re: dynamic binding of myfaces JSF components

Posted by Manfred Geiler <ma...@apache.org>.
Vincent,
Why not nest two <h:dataTable>?
Bind the top dataTable (vertical)) to a List or Array of row objects and 
the nested dataTable (horiziontal) to a getter property of this row 
object that returns the proper column objects.

HTH,
Manfred


Giguère, Vincent wrote:
> 
> Hi, 
> 
> I need to create data tables that are dynamic ie: The number or rows and the
> content of each of them has to be set at runtime.
> 
> My question is: How can a do a dynamic binding of my data to a myfaces JSF
> component?
> 
> Thank you in advance for your answers.
> 
> Vincent Giguere
> Consultant Externe - Développement J2EE
> Optimum informatique inc.
> tel: (514)288-1661 extension 636
> 
> 
>