Hi Mike,

Thank you very much for your help on this thread. In fact, I noticed the
commend issue when I read facelets document, but I misunderstood that the
comment is about commenting some tags, e.g. <!-- <h:commandLink>..., I did
not realize it covers all comments. 
Regards,

Gus.

Mike Kienenberger wrote:
> 
> On 8/10/06, Gus <[EMAIL PROTECTED]> wrote:
>> It seems I found the problem. After I moved the several comments in the
>> template.html, it displays correctly. Modified codes is as follows:
> 
> Hey Gus.  Yes, that's right, now that you point it out.
> 
> Text (even if it is comments) is internally treated by facelets (and
> also JSF 1.2) as a "literal text component".
> 
> So each block of text occupies a space in your panelGrid, giving you
> the following output.
> 
> comment       menu
> comment       page
> 
> One thing you can do is tell facelets to skip all comments (they won't
> be in your final generated html, el expressions in them won't be
> evaluated, and they won't be treated as components).
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-myfaces-facelets-template.xhtml-tf2086138.html#a5790487
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to