1 Reply Latest reply on Sep 2, 2008 8:14 AM by toni

    Seam Gen Search Parameters

    toni

      Hi,


      I have created a CRUD application using seam-gen. I have noticed that the search forms are missing the search fields for integers and those strings, which I annotated as lobs.


      How can I make sure that the search forms contain search fields for all fields such as flaots, integers and strings which are annotated with Lob?


      Tim

        • 1. Re: Seam Gen Search Parameters
          toni

          Hi,


          I have found this code in seam-gen/view, which seams to be the culprit for only exposing string properties. Is there any documentation on how to extend/change this???



          <#foreach property in pojo.allPropertiesIterator>
          <#if !c2h.isCollection(property) && !c2h.isManyToOne(property) && property != pojo.versionProperty!>
          <#if c2j.isComponent(property)>
          <#foreach componentProperty in property.value.propertyIterator>
          <#if isString(componentProperty)>
                      <s:decorate template="layout/display.xhtml">
                          <ui:define name="label">${componentProperty.name}</ui:define>
                          <h:inputText id="${componentProperty.name}" value="${'#'}{${listName}.${componentName}.${property.name}.${componentProperty.name}}"/>
                      </s:decorate>
          
          </#if>
          </#foreach>
          <#else>
          <#if isString(property)>
                      <s:decorate template="layout/display.xhtml">
                          <ui:define name="label">${property.name}</ui:define>
                          <h:inputText id="${property.name}" value="${'#'}{${listName}.${componentName}.${property.name}}"/>
                      </s:decorate>
          
          </#if>
          </#if>
          </#if>
          </#foreach>