1 Reply Latest reply on Nov 13, 2008 8:09 AM by Ricky M

    Custom Component Problem

    Ricky M Newbie
      Hello there,

      I'm using seam 2.0.2SP1 and using SEAM GEN to generate my project. And I'm using RichFaces.

      I create a custom component. Most of the things are going well, except one thing, message validator. If my custom component validates an error, the error message is not shown on html page. My error message using <s:message>

      Here is my snippets:
      <s:decorate id="checkbox" template="/layout/edit.xhtml">
         <ui:define name="label">Check Boxes</ui:define>
         <c:multipleCheckBox id="checkbox" source="#{testAction.testVO.checkboxes}"
              value="#{testAction.testVO.results}" name="Test"/>

      And the /layout/edit.xhtml:
      <div class="prop">
         <s:label styleClass="name #{invalid?'errors':''}">
         <ui:insert name="label"/>
            <s:span styleClass="required" rendered="#{required}">*</s:span>

         <span class="value #{invalid?'errors':''}">

         <span class="error">
            <h:graphicImage value="/img/error.gif" rendered="#{invalid}" styleClass="errors"/>
            <s:message styleClass="errors"/>


      Well, my MultipleCheckBox extends UIInput, and I override getFamily, encodeEnd and decode method to generate html tags.

      My point is, why message validation doesn't show next to my custom component, while it is shown when i just using <h:inputText> as an input component.