I understand it as works as designed.

a parent component renders as follows:

1. render its own "header"
2. render the children
3. render its own "footer"

think of the datatable:
first you must render the table and the table-header,
then you can render the children (here the columns) for each
row and at the end you need to render the table-footer and
close the html-table...

So the rendering as described above is necessary.

Now most components that do not necessarily think to 
have "rendering" children are rendering on the closing tag...
(This behaviour is also proposed in the books...)

Now what are your options?

a) do as I proposed earlier: create a "wrapping around component"

b) create a component which extends UIInput itself. This
   component can then decide when it wants to render the child-
   components...

hth
Alexander

-----Original Message-----
From: sureshbabu thyvalappil [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 12:50 PM
To: MyFaces Discussion
Subject: RE: Shall we fix rendering order?

Is it a JSF limitation? I think JSF1.2 spec addresses
this issue.
--- "Jesse Alexander (KBSA 21)"
<[EMAIL PROTECTED]> wrote:
> The easiest way is to reverse the embedding:
>  
> <myTld:myCustom>
>   <h:inputText id="a" value="abc" />
> </myTld:myCustom>
> 
> 
> That way you have the complete control over the
> rendering...
>  
> hth
> Alexander
>   _____  
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 26, 2005 12:12 PM
> To: [email protected]
> Subject: Shall we fix rendering order?
> 
> 
> 
>  
> 
> Hi all,
> 
>  
> 
>       I am using one custom component inside
> UIComponent like the following way.
> 
>  
> 
>           <h:inputText id="a" value="abc">
> 
>                    <myTld:myCustom/>
> 
>             </h:inputText>
> 
>  
> 
>             At the time of rendering:
> 
>                         
> 
>                         <myTld:myCustom/> is
> rendering first and then <h:inputText/>.
> 
>  
> 
>             I wanted in a reverse order. i.e.
> <h:inputText/> should be first and then
> <myTld:myCustom/>.
> 
>             Is there any way to achieve this.
> 
>  
> 
> Any help is highly appreciable.
> 
>  
> 
> Regards,
> 
> Ram
> 
>             
> 
>  
> 
>  
> 
> 
> 
> Confidentiality Notice 
> 
> The information contained in this electronic message
> and any attachments to this message are intended
> for the exclusive use of the addressee(s) and may
> contain confidential or privileged information. If
> you are not the intended recipient, please notify
> the sender at Wipro or [EMAIL PROTECTED]
> immediately
> and destroy all copies of this message and any
> attachments.
>       
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to