javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2083

composite component with componentType causes Warning

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.20
    • Component/s: None
    • Labels:
      None
    • Environment:

      Jboss AS 6, Mojarra 2.1.1

      Description

      If "Development" javax.faces.PROJECT_STAGE is configured in web.xml, then using a composite component that bases on a backingclass results in this error message being displayed: "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>"

      the problem rises only when we use a "componentType" as backingclass e.g.

      <cc:interface componentType="org.jboss.seam.faces.SeamContainerTest">
      </cc:interface>
      <cc:implementation>
      </cc:implementation>
      
      @FacesComponent(UISeamContainer.COMPONENT_TYPE)
      public class UISeamContainer extends UIComponentBase implements NamingContainer {
          public static final String COMPONENT_TYPE = "org.jboss.seam.faces.SeamContainerTest";
      
          public UISeamContainer() {
          }
      
          @Override
          public String getFamily() {
              return UINamingContainer.COMPONENT_FAMILY;
          }
      }
      

        Activity

        Hide
        codylerum added a comment -

        Still an issue in 2.1.3

        Show
        codylerum added a comment - Still an issue in 2.1.3
        Hide
        Manfred Riem added a comment -

        Can you verify if this is still an issue in the latest 2.1 release?

        Show
        Manfred Riem added a comment - Can you verify if this is still an issue in the latest 2.1 release?
        Hide
        tommy.a added a comment -

        We also have components with backing class and we always have the mentioned error message in PROJECT_STAGE 'Development'. We are currently using v2.1.14.

        Show
        tommy.a added a comment - We also have components with backing class and we always have the mentioned error message in PROJECT_STAGE 'Development'. We are currently using v2.1.14.
        Hide
        tommy.a added a comment -

        I created a simple web app trying to reproduce this.
        Neither with v2.1.14, nor with v2.1.18 it was reproducable.

        -> The problem that we have with that warning seems to be not related with the componentType.

        Show
        tommy.a added a comment - I created a simple web app trying to reproduce this. Neither with v2.1.14, nor with v2.1.18 it was reproducable. -> The problem that we have with that warning seems to be not related with the componentType.
        Hide
        Manfred Riem added a comment -

        Are you saying it is no longer a problem in 2.1.14 and 2.1.18?

        Show
        Manfred Riem added a comment - Are you saying it is no longer a problem in 2.1.14 and 2.1.18?
        Hide
        tommy.a added a comment -

        Yes. This is no longer a problem if I follow the steps from the description.

        We have a similar error message (currently using 2.1.20): "The button/link/text component needs to have a Form in its ancestry. Please add <h:form>.". But the cause must be something different.
        Currently I do not have time to create an example out of our project to reproduce the problem.
        The prio for us also is very very low. So you may close this issue if you want.

        Show
        tommy.a added a comment - Yes. This is no longer a problem if I follow the steps from the description. We have a similar error message (currently using 2.1.20): "The button/link/text component needs to have a Form in its ancestry. Please add <h:form>.". But the cause must be something different. Currently I do not have time to create an example out of our project to reproduce the problem. The prio for us also is very very low. So you may close this issue if you want.
        Hide
        Manfred Riem added a comment -

        Closing as per comments

        Show
        Manfred Riem added a comment - Closing as per comments

          People

          • Assignee:
            Unassigned
            Reporter:
            joserodolfo.freitas
          • Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: