myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Klocker <christian.kloc...@googlemail.com>
Subject [Trinidad] custom renderer / use facet as template
Date Sat, 01 Sep 2007 16:30:56 GMT
i wrote a custom renderer for selectmany-components to render selectitems as user-defined components
instead of checkboxes. actually this renderer uses a facet "template" to get the components,
that should be renedered:

<ck:selectManyComps styleClass="imageSelection">
  <f:facet name="template">
    <tr:panelGroupLayout layout="vertical">
      <tr:icon name="sound"/>
      <tr:outputText value="#{label}"/>
    </tr:panelGroupLayout>
  </f:facet>
  <s:selectItems value="#{images}" var="i" label="#{i.url}" />
</ck:selectManyComps>

the problem here is that components inside the facet are already associated to an identifier
and hence this ids are duplicated...

so, i'd like to ask:
- how can i reassign those component-ids?
- is there a better way to pass template-text to a renderer?

thanks 
christian

Mime
View raw message