cancel
Showing results for 
Search instead for 
Did you mean: 

problem with customized space browsing

strinchero
Champ in-the-making
Champ in-the-making
Hi all,
i'm new to jsf, and i have a problem with a customization to browse.jsp:
i have created some new content (with the needed ui to edit/display), and i need to open the view/edit dialogs when the user click on the item's icon or title (in space browse, done with an action listener). But i need to retain the standard behavior when it comes to standard alfresco types (download). How can i do that ?
As of now i tried the followint approaches: "choose" block checking for types , with 'rendered' properties hiding one or the other actionLink, and by trying to redirect to the download url in my action listeners. But all failed… (maybe due to some unrecognized mistake i have done).

Wich is the correct approach to do that ?

thanks all
1 REPLY 1

strinchero
Champ in-the-making
Champ in-the-making
I have partially solved the problem by using stringEqualsEvaluator tags to decide wich to render. But there's still a problem: the facet "small-icon" and "large-icon" does not get rendered.

Thi is the small-icon one:


<f:facet name="small-icon">
<a:stringEqualsEvaluator value="#{r.docCategory}" condition="edoc">
<a:actionLink id="col10-act1-a" value="#{r.name}" actionListener="#{EDocBrowseBean.clickContent}" image="#{r.fileType16}" showLink="false" styleClass="inlineAction">
  <f:param name="ref" value="#{r.url}" />
</a:actionLink>
</a:stringEqualsEvaluator>
<a:stringEqualsEvaluator value="#{r.docCategory}" condition="alfresco">
<a:actionLink id="col10-act1-b" value="#{r.name}" href="#{r.url}" target="new" image="#{r.fileType16}" showLink="false" styleClass="inlineAction" />
</a:stringEqualsEvaluator>
</f:facet>

Condition used for the evaluators are correct, since the plain links (outside facet) are working. What can be the problem ?

thanks all for help

edit: solved, didn't know that "facet" must have only one children.