voyent
Expand and collapse tree component  XML
Forum Index -> Portals & Portlets
Author Message
kezern

Joined: 24/Sep/2007 00:00:00
Messages: 36
Offline


I'm developing a portlet for liferay 4.3.3 and want to use the tree component. At first I used it as an application and worked fine. But when I try to load the tree on a portlet it shows the nodes expanded but I can't see the + and - signs and can't collapse the tree.
Any body can help me?
Best regards.
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1974
Offline


Hello;

This is likely to do the fact that no component style style sheet is being loaded. Please take a look at our component showcase portlet example in ICEfaces 1.7 samples.

Here is a good template for a new portal page.

Code:
<f:view xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:ice="http://www.icesoft.com/icefaces/component">
 
     <f:loadBundle basename="org.icefaces.application.showcase.view.resources.messages"
                   var="msgs"/>
 
     <ice:outputDeclaration doctypeRoot="HTML"
                            doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
                            doctypeSystem="http://www.w3.org/TR/html4/transitional.dtd"/>
 
     <ice:portlet styleClass="componentBoxPortlet">
 
         <ice:outputStyle href="/xmlhttp/css/rime/rime-portlet.css"/>
         <ice:outputStyle href="./css/showcase_style.css"/>
 
         <ice:panelGroup>
             <ice:outputConnectionStatus style="float:right;"/>
             
             <!-- content insertion point -->
 
  
             <ice:panelGroup styleClass="clearer"/>
         </ice:panelGroup>
     </ice:portlet>
 </f:view>
[Email]
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team