Re: Panel Grid custom component

2006-02-05 Thread Ali Raza
That works with only HtmlPanelGrid as the base class and not with UIInput or UIPanel.On 2/5/06, Ali Raza <[EMAIL PROTECTED] > wrote:But i was wondering whether i could exten my component from UIInput or something and add an HTmlPanelGrid to it as a child ?? ThanxAliOn 2/5/06, Ali Raza <[EMAIL PROT

Re: Panel Grid custom component

2006-02-05 Thread Ali Raza
But i was wondering whether i could exten my component from UIInput or something and add an HTmlPanelGrid to it as a child ??ThanxAliOn 2/5/06, Ali Raza <[EMAIL PROTECTED]> wrote: Holas Volker,Thanx a lot for your help. I saw the way u had done it and realized my error. i was extending the compone

Re: Panel Grid custom component

2006-02-05 Thread Ali Raza
Holas Volker,Thanx a lot for your help. I saw the way u had done it and realized my error. i was extending the component from UIPanel and then adding an Html Panel Grid to it as a child which doesnt make sense to begin with. Although even though what i was doing was wrong design wise it still

Re: Panel Grid custom component

2006-02-05 Thread Volker Weber
Hi Ali, UIPanel for base class should work, did you overwrite encodeChildren() or encodeEnd() to do nothing? BTW: don't expect these components between your rendered start and end comments, they are just created here, the rendering is done in encodeChildren() method of the superclass. Just for m

Re: Panel Grid custom component

2006-02-04 Thread Ali Raza
Hey Volker,I tried to add the components as you have instructed but nothing at all gets rendered that way. i wonder if im inheriting my component from the right base class UIPanel in my case any how the code im trying now is:     public void encodeBegin( FacesContext context )    {   

AW: AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Matthias Kahlau
MAIL PROTECTED] Auftrag > von Martin Marinschek > Gesendet: Freitag, 3. Februar 2006 19:43 > An: MyFaces Discussion > Betreff: Re: AW: AW: AW: Panel Grid custom component > > > Ok, > > I tell you how it would work - maybe you want to try to provide > that to MyFaces: >

Re: AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Martin Marinschek
olker Weber > > Gesendet: Freitag, 3. Februar 2006 18:36 > > An: MyFaces Discussion > > Betreff: Re: AW: AW: AW: Panel Grid custom component > > > > > > Hi, > > > > You can add as many 'header' components as you need (ie number of >

AW: AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Matthias Kahlau
to:[EMAIL PROTECTED] Auftrag > von Volker Weber > Gesendet: Freitag, 3. Februar 2006 18:36 > An: MyFaces Discussion > Betreff: Re: AW: AW: AW: Panel Grid custom component > > > Hi, > > You can add as many 'header' components as you need (ie number of > columns)

Re: AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Martin Marinschek
g a simple HtmlPanelGrid... > > > Regards, > > Matthias > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Auftrag > > von Volker Weber > > Gesendet: Freitag, 3. Februar 2006 17:40 > > An: MyFaces Discussion > >

Re: AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Volker Weber
obuttons (with spread layout) in the remaining > columns. > > > Regards, > > Matthias > > >>-Ursprüngliche Nachricht- >>Von: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Auftrag >>von Matthias Kahlau >>Gesendet: Freitag, 3. Febru

AW: AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Matthias Kahlau
17:40 > An: MyFaces Discussion > Betreff: Re: AW: AW: AW: Panel Grid custom component > > > Hi, > > the header facet of a UIData renders a common header over all columns, > To render a header for each column you must set a header facet on the > column component. > See: >

AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Matthias Kahlau
Regards, Matthias > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag > von Matthias Kahlau > Gesendet: Freitag, 3. Februar 2006 16:24 > An: MyFaces Discussion > Betreff: AW: AW: AW: Panel Grid custom component > > > Ok, >

Re: AW: AW: Panel Grid custom component

2006-02-03 Thread Mike Kienenberger
e facet thing of HtmlPanelGrid and HtmlDataTable is > the same... > > > > Regards, > > Matthias > > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Auftrag > > von Volker Weber > > Gesendet: Freitag

Re: AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Volker Weber
f HtmlPanelGrid and HtmlDataTable is > the same... > > > > Regards, > > Matthias > > > >>-Ursprüngliche Nachricht- >>Von: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Auftrag >>von Volker Weber >>Gesendet: Freitag, 3. Februar 2006

AW: AW: AW: Panel Grid custom component

2006-02-03 Thread Matthias Kahlau
eber > Gesendet: Freitag, 3. Februar 2006 16:04 > An: MyFaces Discussion > Betreff: Re: AW: AW: Panel Grid custom component > > > Hi, > > the masterDetail example uses dataTable not panelGrid. > > > Matthias Kahlau wrote: > > Thanks Volker, > > > > you

Re: AW: AW: Panel Grid custom component

2006-02-03 Thread Volker Weber
quot;header"> ... element is used in more than one column. > > > > Regards, > > Matthias > > > > >>-Ursprüngliche Nachricht- >>Von: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Auftrag >>von Volker Weber >>Gesen

AW: AW: Panel Grid custom component

2006-02-03 Thread Matthias Kahlau
TECTED] > [mailto:[EMAIL PROTECTED] Auftrag > von Volker Weber > Gesendet: Freitag, 3. Februar 2006 13:03 > An: MyFaces Discussion > Betreff: Re: AW: Panel Grid custom component > > > Hi Matthias, > > no i don't know. > > according to the sun spec this is not

Re: AW: Panel Grid custom component

2006-02-03 Thread Volker Weber
Hi Matthias, no i don't know. according to the sun spec this is not possible for h:panelGrid: http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/tlddocs/h/panelGrid.html and i don't find any hint to such an addition in the tomahawk version at: http://myfaces.apache.org/tlddoc/tomahawk/t/panelG

AW: Panel Grid custom component

2006-02-03 Thread Matthias Kahlau
2006 12:14 > An: MyFaces Discussion > Betreff: Re: Panel Grid custom component > > > Hi Ali, > > there are some things you made wrong: > > First, and this seems to be a popular error: you can't add a component > to another by setting the parent of the child! use > p

Re: Panel Grid custom component

2006-02-03 Thread Volker Weber
Hi Ali, there are some things you made wrong: First, and this seems to be a popular error: you can't add a component to another by setting the parent of the child! use parent.getChildren().add(child) instead. Than: You dont neet to invoke encoding on every component, just create then component t

Panel Grid custom component

2006-02-02 Thread Ali Raza
Greetings again,Instead of adding components by rendering the htl myself i am adding chilid components and calling their encode methods as following:public void encodeBegin( FacesContext context )    {     try    {    ResponseWriter writer = context.getResponseWriter();    w