1 5 package org.exoplatform.portlets.communication.message.component; 6 7 import java.util.List ; 8 import org.exoplatform.faces.core.component.UIPortlet; 9 import org.exoplatform.faces.core.renderer.html.BorderDecorator; 10 15 public class UIMessageCenterPortlet extends UIPortlet { 16 17 public UIMessageCenterPortlet(UISelectAccount uiSelectAccount, 18 UIAccount uiAccount) throws Exception { 19 setId("UIMessageCenterPortlet") ; 20 setClazz("UIMessageCenterPortlet"); 21 setRendererType("ChildrenRenderer"); 22 setDecorator(new BorderDecorator("ic3-border")) ; 23 List children = getChildren() ; 24 uiAccount.setRendered(true) ; 25 uiAccount.setAccount(uiSelectAccount.getSelectAccount()) ; 26 children.add(uiAccount) ; 27 uiSelectAccount.setRendered(true) ; 28 children.add(uiSelectAccount) ; 29 } 30 } | Popular Tags |