You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by cjacobm <co...@yahoo.com.br> on 2007/04/30 04:38:05 UTC

Re: [Facelets][JSF 1.2][jsCookMenu] hidden jscook_action input hack still required?

	
I had problem the same, and am using tomahawk-sandbox-1.1.5-SNAPSHOT and
myfaces-impl-1.1.4  Your tip solved my problem. Thank you.


Mike Kienenberger wrote:
> 
> Came across this today -- For facelets and JSF RI 1.2, you have to
> manually add the following to your form in order for an action to be
> triggered by a navigationMenuItem enclosed in a jscookMenu component.
> 
>     <input type="hidden" name="jscook_action" />
> 
> Does anyone know if this is fixed in the latest trunk?   It's broken
> in the MyFaces 1.1.4 core release + my Tomahawk 1.1.4 snapshot from
> Aug 24, 2006.
> 
> Maybe a JSF 1.2 or facelets user could test this for me (you don't
> need to define the backing bean -- if you don't get an error, it's
> still broke).
> 
> <h:form id="form">
> 	
> 	<t:jscookMenu layout="hbr" theme="ThemeOffice"
> styleLocation="css/jscookmenu">
> 		<t:navigationMenuItem id="nav_2" itemLabel="Example 2">
> 			<t:navigationMenuItem id="nav_2_1"
> 					itemLabel="Action A" action="#{mybean.someActionA}" />
> 			<t:navigationMenuItem id="nav_2_2"
> 					itemLabel="Action B" action="#{mybean.someActionB}" />
> 		</t:navigationMenuItem>
> 	</t:jscookMenu>
> </h:form>
> 
> And the fix to test is to add in the following in the form.
> 
> 	<input type="hidden" name="jscook_action" />
> 
> 

-- 
View this message in context: http://www.nabble.com/-Facelets--JSF-1.2--jsCookMenu--hidden-jscook_action-input-hack-still-required--tf3341281.html#a10247748
Sent from the My Faces - Dev mailing list archive at Nabble.com.