[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
Hi vmarco, Hi schnelzer, These jboss portlets are exactly what i need! I would like to see at least one of them in the portal core. Also very nice, is the ability of these portlets to display an alternative page name. Thank you, Alexander View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919509#3919509 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919509 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
Beat me to it. Here is a segment from my *-objects.xml file related to my version of the NavbarPortlet and the code. | | default | | | navbar.DisplayName | Home | | | navbar.SortOrder | 1 | | | | import org.jboss.portal.core.api.JBossPortalNode; | import org.jboss.portal.core.impl.model.portal.PortalObjectImpl; | import org.jboss.portal.core.model.portal.Context; | import org.jboss.portal.core.model.portal.Page; | import org.jboss.portal.core.model.portal.Portal; | import org.jboss.portal.core.model.portal.PortalObject; | import org.jboss.portal.core.model.portal.PortalObjectContainer; | import org.jboss.portal.core.model.portal.Window; | import org.jboss.portal.security.PortalPermissionFactory; | import org.jboss.portal.security.PortalPolicyException; | import org.jboss.portlet.JBossPortlet; | import org.jboss.portlet.JBossRenderRequest; | import org.jboss.portlet.JBossRenderResponse; | import org.jboss.portlet.PortalNode; | import org.jboss.portlet.PortalNodeURL; | | import javax.portlet.PortletException; | import javax.portlet.PortletPreferences; | import java.io.IOException; | import java.util.ArrayList; | import java.util.Collections; | import java.util.Comparator; | import java.util.HashMap; | import java.util.Iterator; | import java.util.List; | import java.util.Map; | | /** | * | * @author Vince Marco | */ | public class NavbarPortlet extends JBossPortlet | { | private PortalPermissionFactory permissionFactory; | private PortalObjectContainer container; | private Map nodemap = new HashMap(); | private static final String NAME_PROPERTY = "navbar.DisplayName"; | private static final String ORDER_PROPERTY = "navbar.SortOrder"; | | public NavbarPortlet() | { | super(); | } | | public void init() throws PortletException | { | permissionFactory = (PortalPermissionFactory) this.getPortletContext().getAttribute("PortalPermissionFactory"); | container = (PortalObjectContainer) this.getPortletContext().getAttribute("PortalObjectContainer"); | if (permissionFactory == null) | { | throw new PortletException("No portal permission factory"); | } | if (container == null) | { | throw new PortletException("No portal object container"); | } | } | | public void destroy() | { | super.destroy(); | | // | permissionFactory = null; | container = null; | } | | public void render(JBossRenderRequest req, JBossRenderResponse resp) throws IOException, | PortletException | { | resp.setContentType("text/html"); | resp.setTitle("Portals"); | try | { | PortletPreferences prefs = req.getPreferences(); | String rootLevel = prefs.getValue("navigation-root-level", "page"); | Context context = container.getContext(); | List navElements = new ArrayList(); | | // get the list of portal nodes to display (portals or pages, based on | // preference) | Iterator portalObjectIterator; | if ("page".equalsIgnoreCase(rootLevel)) | { | // if the pages of the current portal are requested, then read up | // the hierarchie to the current portal, to | // get the children from there (which are the pages to display) | PortalNode current = req.getPortalNode(); | while (current != null && current.getType() != PortalNode.TYPE_PORTAL) | { | current = current.getParent(); | } | if (current != null && current.getType() == PortalNode.TYPE_PORTAL) | { | PortalObject root = context.getChild(current.getName()); | portalObjectIterator = root.getChildren().iterator(); | } | else | { | throw new PortletE
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
I added the ability to sort tabs and specify tab labels using a resource properties file. The JIRA task is http://jira.jboss.com/jira/browse/JBPORTAL-585. Let me know if you have any questions on how to use it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919435#3919435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919435 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
if you plan to do this, then create a JIRA issue and attach the code to the jira issue, then post the jira issue link here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919371#3919371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919371 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
Maybe you could simply post the source code of your NavigationBar Portlet in this thread (if it isn't to much in size), because I would like to know, how you implemented it. If your portlet is not accepted to be a part of the portal core, it couldn't however be a good candidate for the JBoss Portlet Swap website? So everyone who is interested in this portlet, could integrate it in its portal. Best regards, Alexander View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919349#3919349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919349 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
For small things like that you can come up with fresh ideas. You need to sign the contributor agreement http://labs.jboss.com/portal/?ctrl:id=page.default.con&noproject=true For small contributions you don't need access to the CVS, so you give us the patch. If you want to contribute furthermore then we grant you CVS access, then you can do it yourself and contribute more. Any other question ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919331#3919331 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919331 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
"[EMAIL PROTECTED]" wrote : a better suggestion than roy's one is : | | contribute to the portlet and add a portlet preference for it that says how to display nodes. | | My question then is how do you decide on a design for things like this, or are they just thrown together by whomever decides to join in. I've created a custom NavbarPortlet (named it different to avoid upgrade problems) which does have a preference for ordering and a preference for overriding the name. I'll gladly contribute, but I'm just not sure of the process. Guide me. Cheers, Vince View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919328#3919328 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919328 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
a better suggestion than roy's one is : contribute to the portlet and add a portlet preference for it that says how to display nodes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919168#3919168 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919168 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
The order in the nav portlet is by name. So if you want your own ordering, I would suggest you fork the nav portlet, so you don't have to hack at the code, which will make upgrading a problem later on. Just remember to assign the nav portlet to the nav region, and set no decorations on it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919144#3919144 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919144 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet
hi i was looking for the same;) + when i add a portlet to hellowold page and reload the jboss the page resets. how can i solve this? i tried to change the security settings. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919134#3919134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919134 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user