Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-101

Seam2.3 seam-gen generated action shows "The form component needs to have a UIForm in its ancestry. ..." message

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.0.GA, 2.2.0.GA, 2.3.0.GA
    • Fix Version/s: None
    • Component/s: Seam 2
    • Labels:
    • Target Release:
    • Steps to Reproduce:
      Hide

      1. generate and deploy default WAR project "myproject" with seam-gen
      2. create a "fooAction" with "seam new-action"
      3. go to http://127.0.0.1:8080/myproject/fooAction.seam
      4. click on "fooAction!"
      5. notice the message
      Same with the generated form (seam new-form)

      Show
      1. generate and deploy default WAR project "myproject" with seam-gen 2. create a "fooAction" with "seam new-action" 3. go to http://127.0.0.1:8080/myproject/fooAction.seam 4. click on "fooAction!" 5. notice the message Same with the generated form (seam new-form)
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      use PRODUCTION value for javax.faces.PROJECT_STAGE in web.xml as follows:

      <context-param>
         <param-name>javax.faces.PROJECT_STAGE</param-name>
         <param-value>Production</param-value>
      </context-param>
      
      Show
      use PRODUCTION value for javax.faces.PROJECT_STAGE in web.xml as follows: <context-param> <param-name> javax.faces.PROJECT_STAGE </param-name> <param-value> Production </param-value> </context-param>
    • Affects:
      Release Notes
    • Release Notes Docs Status:
      Not Required
    • Release Notes Text:
      Hide
      On submitting a JSF request, a JSF warning message is displayed. As a workaround for this issue, use PRODUCTION value for javax.faces.PROJECT_STAGE in web.xml as follows:
      <context-param>
         <param-name>javax.faces.PROJECT_STAGE</param-name>
         <param-value>Production</param-value>
      </context-param>
      As a result, the JSF request is submitted successfully.
      Show
      On submitting a JSF request, a JSF warning message is displayed. As a workaround for this issue, use PRODUCTION value for javax.faces.PROJECT_STAGE in web.xml as follows: <context-param>    <param-name>javax.faces.PROJECT_STAGE</param-name>    <param-value>Production</param-value> </context-param> As a result, the JSF request is submitted successfully.

      Description

      Seam2.3 seam-gen generated action shows "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>" message

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  maschmid Marek Schmidt
                  Writer:
                  Sneha Agarwal Kumar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: