even cooler than

<!-- ### remove ### -->

since that *blows up* the page.

I'll add that to our facelets wiki page

thx,
Matthias

On 1/18/07, Adam Winer <[EMAIL PROTECTED]> wrote:
From http://wiki.java.net/bin/view/Projects/FaceletsFAQ:

How do I prevent HTML comments from being rendered?
Add the following to your web.xml:
  <context-param>
    <param-name>facelets.SKIP_COMMENTS</param-name>
    <param-value>true</param-value>
  </context-param>

-- Adam




On 1/17/07, Fabrizio Boco <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am newbie to trinidad that I am using with Jboss.
>
> I have an xhtml page with the following code:
> ..........
> <f:view>
> <f:loadBundle basename="messages" var="msgs" />
> <br/>
>         <h:form>
>         <div class="menuBar">
>                 <tr:navigationPane hint="bar" >
>                 <tr:commandNavigationItem immediate="true" text="...."  
action="....."  />
>                 <tr:commandNavigationItem immediate="true" text="...."  
action="....." />
>                 <tr:commandNavigationItem immediate="true" text="...." 
action="....." />
>                 </tr:navigationPane>
>         </div>
> ............
>
> and everything goes well.
>
> Since the page is generated by an application, I have to put some comments  as
> placeholders for custom code:
>
> <f:loadBundle basename="messages" var="msgs" />
> <br/>
>         <h:form>
>         <div class="menuBar">
>                 <tr:navigationPane hint="bar" >
>                         <tr:commandNavigationItem immediate="true" text="...."  
action="....."  />
> <!-- Start comment  -->
> <!-- End comment -->
>                         <tr:commandNavigationItem immediate="true" text="...."  
action="....." />
>                         <tr:commandNavigationItem immediate="true" text="...." 
action="....." />
>                 </tr:navigationPane>
>         </div>
> ............
>
> If I put the comments I get the following error message (on the jboss console)
> when the page is rendered:
>
> 21:55:22,076 ERROR [STDERR] Jan 17, 2007 9:55:22 PM
> 
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPaneRenderer
> renderContent
> SEVERE: Warning: illegal component hierarchy detected, expected UIXCommand but
> found another type of component instead.
> java.lang.ClassCastException: com.sun.facelets.tag.ui.ComponentRef
>
> Question are:
>
> 1) Can I use comments into commandNavigationItem and if yes how I have to use
> them
>
> 2) If I can't use comments is there any tag that can I use as place holder ?
>
> Please, help me !!!
>
> Thank you
>
> Fab.
>



--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to