Hello again,

It seems like facetedSearchActions.contentViewNames is
working Ok.
The problem is in the view. In
faceted_searches_selector_widget_template.xhtml, we have
that:

<c:forEach var="contentViewName"
        items="#{facetedSearchActions.contentViewNames}"
        varStatus="contentViewListStatus">
        <nxu:set var="contentView"
         
value="#{contentViewActions.getContentView(contentViewName)}">
          <f:selectItem itemValue="#{contentViewName}"
           
itemLabel="#{nxu:test(contentView.translateTitle,
messages[contentView.title], contentView.title)}" />
        </nxu:set>
      </c:forEach>

I don't know why f:selectItem is inside nxu:set tag. If I
put outside, in this way:

<c:forEach var="contentViewName"
        items="#{facetedSearchActions.contentViewNames}"
        varStatus="contentViewListStatus">
        <nxu:set var="contentView"
         
value="#{contentViewActions.getContentView(contentViewName)}">
        </nxu:set>
          <f:selectItem itemValue="#{contentViewName}"
            itemLabel="#{contentViewName}" />
      </c:forEach>

The selector work like a charm, I mean, all the options
appear and when I select one of them, the search form change
as defined. It seems that my faceted search is incorrectly
defined in some way, because it don't work, but default
faceted search works well. So the problem of the selector
seems solved by patching like I describe above.

Anyone can tell me if there is some reason why the nxu:set
tag is set in that way ? Is correct what I am doing ?
I will create other thread in the forum to ask for my
specific problem with my faceted search definition.

Regards.
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to