MyFaces Core
  1. MyFaces Core
  2. MYFACES-2410

f:validateBean does not work as container for EditableValueHolders

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.0-beta
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      Glassfish v3 prelude and JBoss 6.0.0.M1

      Description

      Testing the mojarra bean-validation sample on Glassfish v3 prelude and JBoss 6.0.0.M1, I ran into the following exception:

      javax.servlet.ServletException: /placeOrder.xhtmlat line 49 and column 109 <f:validateBean> Parent not composite component or an instance of EditableValueHolder: javax.faces.component.html.HtmlForm@494c491b

      f:validateBean is used as a container of EditableValueHolders in the sample, the following code shoes where the error occurs:

      <h:form>
      <f:validateBean validationGroups="beanvalidation.groups.Personal , beanvalidation.groups.Order">
      <ui:include src="/WEB-INF/fragments/form.xhtml"/>
      </f:validateBean>
      </h:form>

      where <ui:include src="/WEB-INF/fragments/form.xhtml"/> includes a form of some <h:inputText> (--> EditableValueHolder) components.

      However, f:validateBean is also used inside of some of the <h:inputText> components and works well at this point.

        Issue Links

          Activity

          Jakob Korherr created issue -
          Jakob Korherr made changes -
          Field Original Value New Value
          Link This issue blocks MYFACES-2288 [ MYFACES-2288 ]
          Hide
          Jakob Korherr added a comment -

          Fixed this issue. However, there are some other issues with bean validation.

          Show
          Jakob Korherr added a comment - Fixed this issue. However, there are some other issues with bean validation.
          Jakob Korherr made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0.0-alpha-2 [ 12314409 ]
          Leonardo Uribe made changes -
          Fix Version/s 2.0.0-beta [ 12314537 ]
          Fix Version/s 2.0.0-alpha-2 [ 12314409 ]
          Leonardo Uribe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Link This issue blocks MYFACES-2288 [ MYFACES-2288 ]
          Gavin made changes -
          Link This issue is depended upon by MYFACES-2288 [ MYFACES-2288 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Jakob Korherr
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development