Hi Bojana,

the scriptlet part you ahve used indeed generate separate buttons for the update and the delete action. You may use an action menu to the same behaviour as the taglibs. Here is an example of an action menu to update/delete a container :

<%
ContainerBean myContainerBean = new ContainerBean(myContainer,jParams);
jData.gui().html().drawBeginActionMenu(myContainerBean , null, null, false, "", "jahiatemplates.mytemplates", null, out);
%>

Here is a link to the HTMLToolBox class javadoc which includes the drawBeginActionMenu method :  http://www.jahia.org/javadoc-dev/org/jahia/gui/HTMLToolBox.html

Michel



Hi all
 
We have used tag libs for all our portlets but one. The update/delete buttons are merged in all the tag libs portlets but in the scriptlet one they are separate. I would like to make them all consistent and therefore merge the update and delete icons in my scriptlet portlet. Can this easily be achieved?
 
This is what I’ve currently got:
 
 
                        if(!jData.gui().html().drawUpdateContainerLauncher( myContainer ).equals("")) {
                                    %>
                                    <ul>
                                                <li><a href="" jData.gui().html().drawUpdateContainerLauncher( myContainer )%>"><img src="" width="11" height="11" border="0" alt="Change / rename"/></a></li>
                                                <li><a href="" jData.gui().html().drawDeleteContainerLauncher( myContainer )%>"><img src="" width="11" height="11" border="0" alt="Delete"/></a></li>
                                    </ul>
                                    <%
                        }
 
Any help would be greatly appreciated.
 
Thanks
 
Bojana
Global Summit 2006: Technology Connected Futures -- 17-19 October, Sydney, Australia. 
Visit our website http://globalsummit.educationau.edu.au for further details.
 

IMPORTANT: This e-mail, including any attachments, may contain private or confidential information. If you think you may not be the intended recipient, or if you have received this e-mail in error, please contact the sender immediately and delete all copies of this e-mail. If you are not the intended recipient, you must not reproduce any part of this e-mail or disclose its contents to any other party.

This email represents the views of the individual sender, which do not necessarily reflect those of education.au limited except where the sender expressly states otherwise.

It is your responsibility to scan this email and any files transmitted with it for viruses or any other defects.

education.au limited will not be liable for any loss, damage or consequence caused directly or indirectly by this email.

Reply via email to