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"
                       xmlns:ui="http://java.sun.com/jsf/facelets"
                       xmlns:h="http://java.sun.com/jsf/html"
                       xmlns:f="http://java.sun.com/jsf/core"
                       xmlns:s="http://jboss.com/products/seam/taglib">
                       
          <div class="prop">
                      
              <s:label id="editLabel" styleClass="name #{invalid?'errors':''}">
                  <ui:insert name="label"/>
                  <s:span styleClass="required" rendered="#{required}">*</s:span>
              </s:label>
              
              <span id="editSpan" class="value #{invalid?'errors':''}">
                  <s:validateAll>
                      <ui:insert/>
                  </s:validateAll>
              </span>
              
              <s:message styleClass="error errors"/>        
      
          </div>
          
      </ui:composition>



      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

      #{required}

      being passed for the field.


      Thank you for your help, Alex