6 Replies Latest reply: May 2, 2012 2:21 PM by Karsten Wutzke RSS

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

Karsten Wutzke Expert

When using

<s:viewAction action="#{bean.init}" />

 

in a page the following JSF message is shown at the bottom of the page:

The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>

 

 

This only happens in development mode... pretty annoying IMO

 

What's wrong? JSF 2.1 broken? Are there any bugs filed if so?

 

I'm using JBoss AS 7.1.1.Final, JSF 2.1.7, and Seam 3.1.0.Final.

 

EDIT:

 

The bad thing about this is that in Development mode, this messes up certain render operations for view-scoped beans. And I really mean messing up. Does anybody know what's going on with this in javax.faces Development mode?

 

Thanks

Karsten