6 Replies Latest reply on Jan 25, 2012 2:42 PM by Jason Porter

    How to configure seam 2.2 tags in seam 3

    chinna raja Newbie
      Hello every one I want to use Seam tags in My xhtml for Seam 3 can any one Help me ..need any configuration please trace out me .. here i am pasting my Xhmtl..Mainly i want  use <S:Selectitems> </S:selectitems> 




      <?xml version="1.0" encoding="UTF-8"?>
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                      xmlns:s="http://jboss.com/products/seam/taglib"
                      xmlns:ui="http://java.sun.com/jsf/facelets"
                      xmlns:f="http://java.sun.com/jsf/core"
                      xmlns:p="http://primefaces.org/ui"
                      xmlns:h="http://java.sun.com/jsf/html"
                      template="/WEB-INF/templates/default.xhtml">
                           <ui:define name="content">
            <h:form id="propertyForm">
              <div>
                 <h:panelGroup id="propertyGroup">
                                      <table>
                                              <tr>
                                                <td ><h:outputText value="HeadProperty" />:</td>
                                                      <td>
                                                        <s:decorate>
                                                              <table>
                                                                                                                               <tr>
                                                                        <td>
                                                                         <p:selectOneMenu value="#{propertyBean.headerValue}" style="width:200px">
                                                                                                                                                                                                                                                  <s:selectItems value="#{propertyBean.headPropertyList}" var ="property" itemValue="#{roperty.name}" />
                                                                                                                                                                                              </p:selectOneMenu>
                                                                                                                                               </td>
                                                                      </tr>
                                                              </table>
                                                      </s:decorate>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td ><h:outputText value="PropertyCode" />:</td>
                                                      <td>
                                                        <s:decorate>
                                                              <table>
                                                                      <tr>
                                                                              <td>
                                                                                <p:inputText label="propertyCode" value="#{propertyBean.property.propertyCode}"/>
                                                                              </td>
                                                                      </tr>
                                                              </table>
                                                      </s:decorate>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td ><h:outputText value="PropertyName" />:</td>
                                                      <td>
                                                        <s:decorate>
                                                              <table>
                                                                      <tr>
                                                                              <td>
                                                                               <p:inputText label="PropertyName" value="#{propertyBean.property.propertyName}"/>
                                                                              </td>
                                                                      </tr>
                                                              </table>
                                                      </s:decorate>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td ><h:outputText value="Address" />:</td>
                                                      <td>
                                                        <s:decorate>
                                                              <table>
                                                                      <tr>
                                                                              <td>
                                                                               <p:inputText label="Address" value="#{propertyBean.property.address}"/>
                                                                              </td>
                                                                      </tr>
                                                              </table>
                                                      </s:decorate>
                                                </td>
                                              </tr>
                                                                               </table>
                              </h:panelGroup>
                       </div>
                       <h:panelGroup id="panel">
                               <p:commandButton value="Save" actionListener="#{propertyBean.confirmProperty()}" />
                               <p:commandButton value="cancel" action="#{propertyBean.cancel()}" update="propertyForm"/>
                       </h:panelGroup>
                       <br/>
                        <h:panelGroup>
                                                   </h:panelGroup>
            </h:form>
            </ui:define>
        </ui:composition>