6 Replies Latest reply on May 2, 2012 2:21 PM by kwutzke

    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

      When using

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

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

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

       

      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