-
1. Re: Faces s:viewAction causes "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form> " in dev mode
hantsy Apr 28, 2012 9:38 AM (in response to kwutzke)please post your jsf facelet codes...is there a h:form for all form based components?
-
2. Re: Faces s:viewAction causes "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form> " in dev mode
kwutzke Apr 28, 2012 12:48 PM (in response to hantsy)Yes, there is. The message goes away when setting
{code:xml} <context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Production</param-value>
</context-param>{code}
in web.xml. It also goes away when using <f:event ...> instead. I've never had any problems with that specific page. The page is rather complex, so posting the code will be of no use, also because I think it is not my code, but rather the JSF 2.1 implementation and/or something with Seam 3 Faces. See
http://echelog.com/logs/browse/seam-dev/1312322400
Karsten
-
3. Re: Faces s:viewAction causes "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form> " in dev mode
hantsy Apr 28, 2012 7:20 PM (in response to kwutzke)Yes, in Mojarra 2.1.x, this error occurs frequently, but from the message, we can not find where is wrong...in Mojarra 2.0.x, I did not see such a warning at all, even you do not include a h:form. This should be the problem of jsf implementatin itself.
-
4. Re: Faces s:viewAction causes "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form> " in dev mode
brvuga Apr 30, 2012 4:16 AM (in response to kwutzke)Yep, there are a lot of bugs like this in mojarra. Most if not all of them dissapear when you tart using myfaces. That is what i did and it made my life simpler
-
5. Re: Faces s:viewAction causes "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form> " in dev mode
kwutzke May 2, 2012 9:25 AM (in response to brvuga)I'd report a bug to the Mojarra guys, but how do I find out that it is really a JSF 2.1 bug and not some issue with Seam 3 Faces?
Karsten