cancel
Showing results for 
Search instead for 
Did you mean: 

component generator with advanced-search metadata

ycohen
Champ in-the-making
Champ in-the-making
hi,
Is there a way to use a component generator with the advanced-search metadata?
i tried to configure the web-client-config-custom.xml
<config evaluator="string-compare" condition="Advanced Search">
   <advanced-search>
      <content-types>
         <type name="t2k:layout" />
      </content-types>
      <custom-properties>
          <meta-data type="t2k:layout" property="t2kSmiley TongueathToLSD" display-label-id="pathToLSD" component-generator="T2KFileBrowseGenerator"/>
       
      </custom-properties>
   </advanced-search>
   </config>

but it does not seem to work.
does it only work with the property-sheet?
1 REPLY 1

frederick
Champ in-the-making
Champ in-the-making
Hello,

You are correct, the component-generator attribute is not defined for advanced-search config tags.
Those tags are defined in AdvancedSearchConfigElement, and rendered in UISearchCustomProperties.

Have a look at the
generateControl(FacesContext context, PropertyDefinition propDef, String displayLabel, String beanBinding)
method in UISearchCustomProperties: it determines the type of component to generate for each type of property.

Kind regards,