You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Garner Shawn <sh...@gmail.com> on 2006/07/08 19:05:02 UTC

Embedded navigationMenuItem not rendering

I get the outer one but the inner one isn't rendered.
I've rendered the values in a dataTable so I know the_product has values.

<t:panelNavigation2 id="navItemClass"
						itemClass="navItemClass"
                      openItemClass="navOpenItemClass"
                      activeItemClass="navActiveItemClass"
                      separatorClass="navSeparatorClass">
    	<t:navigationMenuItem id="productsButtonLink2" action="products"
value="Products">
    		<t:dataList layout="simple" value="#{AppSetupBean.productsList}"
var="the_product">
				
				    <t:navigationMenuItem
id="#{the_product.productName}ButtonLink2"
action="#{ProductNavBean.navigate}"
value="#{the_product.productName}&#153;"/>
			 	
		 	</t:dataList>
    		
    	</t:navigationMenuItem>
</t:panelNavigation2>

Re: Embedded navigationMenuItem not rendering

Posted by Mike Kienenberger <mk...@gmail.com>.
> id="#{the_product.productName}ButtonLink2"

I'm fairly certain that id must be a string constant and cannot be
based on a render-time variable like the_product.



On 7/8/06, Garner Shawn <sh...@gmail.com> wrote:
> I get the outer one but the inner one isn't rendered.
> I've rendered the values in a dataTable so I know the_product has values.
>
> <t:panelNavigation2 id="navItemClass"
>                                                 itemClass="navItemClass"
>                       openItemClass="navOpenItemClass"
>                       activeItemClass="navActiveItemClass"
>                       separatorClass="navSeparatorClass">
>         <t:navigationMenuItem id="productsButtonLink2" action="products"
> value="Products">
>                 <t:dataList layout="simple" value="#{AppSetupBean.productsList}"
> var="the_product">
>
>                                     <t:navigationMenuItem
> id="#{the_product.productName}ButtonLink2"
> action="#{ProductNavBean.navigate}"
> value="#{the_product.productName}&#153;"/>
>
>                         </t:dataList>
>
>         </t:navigationMenuItem>
> </t:panelNavigation2>
>