incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabrizio Boco <fabrizio.b...@tin.it>
Subject Comments into navigationPain
Date Wed, 17 Jan 2007 21:48:01 GMT
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.

Mime
View raw message