1 Reply Latest reply on Jan 23, 2012 1:29 AM by chinna1231

    How to use Seam Tags in Seam 3

    chinna1231
      Hello every one I want to use Seam tags in My xhtml can any one Help  me ..need any configuration please trace out me .. here i am pasting my Xhmtl


      <?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>