You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Amit Jain <am...@contata.co.in> on 2006/03/03 10:42:19 UTC

Facets Renderer!

Hi,
 
I have a class which extends UIcolumn. I am adding header facet to it in encodebegin method but the facets are not getting rendered. I am getting simple UIcolumn. 
Can someone suggest some other way to do it. 

Regards
Amit

Re: Facets Renderer!

Posted by Volker Weber <us...@weber-oldenburg.de>.
Than you can do it in doEndTag() of your tag class

Amit Jain wrote:
> Thanks for the reply.
> 
> I cant assign header in constructor as I am adding my default header only if
> user have not given header facet in jsp.
> 
> Amit
> ----- Original Message ----- 
> From: "Volker Weber" <us...@weber-oldenburg.de>
> To: "MyFaces Discussion" <us...@myfaces.apache.org>
> Sent: Friday, March 03, 2006 3:29 PM
> Subject: Re: Facets Renderer!
> 
> 
> 
>>Hi Amit,
>>
>>Amit Jain wrote:
>>
>>>Hi,
>>>
>>>I have a class which extends UIcolumn. I am adding header facet to it in
> 
> encodebegin method but the facets are not getting rendered. I am getting
> simple UIcolumn.
> 
>>>Can someone suggest some other way to do it.
>>
>>you can't do this in encode methods of UIColumn, because these are never
>>called. The encoding of the columns children is invoked by the renderer
>>of UIData.
>>
>>If you have a custom tag class you can add the facet there, otherwise
>>you can do this in the constructor of your custom UIColumn.
>>
>>Regards,
>>  Volker
>>
>>
>>>Regards
>>>Amit
>>
>>-- 
>>Don't answer to From: address!
>>Mail to this account are droped if not recieved via mailinglist.
>>To contact me direct create the mail address by
>>concatenating my forename to my senders domain.
>>
>>
>>-- 
>>No virus found in this incoming message.
>>Checked by AVG Free Edition.
>>Version: 7.1.375 / Virus Database: 268.1.1/273 - Release Date: 3/2/2006
>>
>>
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: Facets Renderer!

Posted by Amit Jain <am...@contata.co.in>.
Thanks for the reply.

I cant assign header in constructor as I am adding my default header only if
user have not given header facet in jsp.

Amit
----- Original Message ----- 
From: "Volker Weber" <us...@weber-oldenburg.de>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Friday, March 03, 2006 3:29 PM
Subject: Re: Facets Renderer!


> Hi Amit,
>
> Amit Jain wrote:
> > Hi,
> >
> > I have a class which extends UIcolumn. I am adding header facet to it in
encodebegin method but the facets are not getting rendered. I am getting
simple UIcolumn.
> > Can someone suggest some other way to do it.
>
> you can't do this in encode methods of UIColumn, because these are never
> called. The encoding of the columns children is invoked by the renderer
> of UIData.
>
> If you have a custom tag class you can add the facet there, otherwise
> you can do this in the constructor of your custom UIColumn.
>
> Regards,
>   Volker
>
> >
> > Regards
> > Amit
>
> -- 
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 268.1.1/273 - Release Date: 3/2/2006
>
>


Re: Facets Renderer!

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Amit,

Amit Jain wrote:
> Hi,
>  
> I have a class which extends UIcolumn. I am adding header facet to it in encodebegin method but the facets are not getting rendered. I am getting simple UIcolumn. 
> Can someone suggest some other way to do it. 

you can't do this in encode methods of UIColumn, because these are never
called. The encoding of the columns children is invoked by the renderer
of UIData.

If you have a custom tag class you can add the facet there, otherwise
you can do this in the constructor of your custom UIColumn.

Regards,
  Volker

> 
> Regards
> Amit

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.