3 Replies Latest reply on Feb 22, 2012 11:12 AM by clairelin

    s:decorate to ui:decorate migration

    Alex B Newbie

      I am trying to migrate from  Seam2 to Seam 3,one of issues is I have alot of forums which use s:decorate template like so:

      <ui:composition  xmlns="http://www.w3.org/1999/xhtml"
          <div class="prop">
              <s:label id="editLabel" styleClass="name #{invalid?'errors':''}">
                  <ui:insert name="label"/>
                  <s:span styleClass="required" rendered="#{required}">*</s:span>
              <span id="editSpan" class="value #{invalid?'errors':''}">
              <s:message styleClass="error errors"/>        

      i have replaced s:decorate with ui:decorate, however how to replace s:message and required asterisk? Replacing with h:message doesn't work normally since it needs a 'for' field which is not being passed to the tablate,it seems. neither is


      being passed for the field.

      Thank you for your help, Alex