cancel
Showing results for 
Search instead for 
Did you mean: 

Using JSF tags in presentation template

cybermakoki
Champ in-the-making
Champ in-the-making
Good Morning all,

I'm actually trying to use some jsf tags in a presentation template (email.ftl).

I'd like to use the email.ftl in a custom space, the problem is that i want to show the same actions tha appear in the details view.

In browse.jsp, the code that shows the actions is the following:

   <%– Content Actions column –%>
                           <a:column id="col18" actions="true" style="text-align:left">
                              
                              <f:facet name="header">
                                 <h:outputText id="col18-txt" value="#{msg.actions}" />
                              </f:facet>
                              <%– actions are configured in web-client-config-actions.xml –%>
                              <r:actions id="col18-acts1" value="document_browse"
                                 context="#{r}" showLink="false" styleClass="inlineAction" />

                              <%– More actions menu –%>
                              <a:menu id="content-more-menu" itemSpacing="4"
                                 image="/images/icons/more.gif" tooltip="#{msg.more_actions}"
                                 menuStyleClass="moreActionsMenu">
                                 <r:actions id="col18-acts2" value="document_browse_menu"
                                    context="#{r}" />
                              </a:menu>
                           </a:column>

I want to show the same in my ftl file Smiley Happy

Any help would be appreciated
3 REPLIES 3

iblanco
Confirmed Champ
Confirmed Champ
Did you manage to do it ? I'm trying to do the same thing.

cybermakoki
Champ in-the-making
Champ in-the-making
Sorry but it's not possible to do this Smiley Sad

iblanco
Confirmed Champ
Confirmed Champ
Ok, thanx.

I think the nearest approach would be to use a webscript as a custom UI:

http://wiki.alfresco.com/wiki/Web_Scripts_Examples#Associating_Web_Script_with_Custom_View

At least you would have access to the javascript root objects.