[jboss-user] [JBoss Portal] - Re: Add portlet display name programatically.
In some portlets, i use RenderResponse.setTitle(NAME) in doView and doEdit to personalize windows names. I think it's the code you need. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4217755#4217755 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Add portlet display name programatically.
Hi apemberton For example in portal.xml display-nameMy portlets/display-name. If I minimize the above portlet it shows the name My portlets. But in my dynamic creation portlet i cant set the display name programatically.(No portal.xml for this portlet everything is generated through coding). If I set displayname in dynamic portlet my problem is solved. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4217787#4217787 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Add portlet display name programatically.
Override the getTitle method in the portlet code, and return your own portlet's title. Nota : getTitle is called first, and outside any processAction/doView operation, depending on how you get your data, you may have to do it twice. If the name only change only according to page node, you can used properties too. Here a sample code i used, | public class Portlet extends JBossPortlet { | // other relevant code here. | @Override | protected String getTitle(RenderRequest request) { | return (String) (((JBossRenderRequest) request).getPortalNode().getProperties().get(title)); | } | } | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4217891#4217891 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: No portlet display
Sorry i've never experience that neither in production or testing. What you can try to do it to have the portlet shown on errors, it would help you find out what's wrong. To do so: See section 6.2.2 http://docs.jboss.com/jbportal/v2.4/reference-guide/en/html/xmldescriptors.html#descriptor_debug View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4023563#4023563 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: No portlet display
Any stack trace ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4022955#4022955 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022955 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: No portlet display
No stack trace is there. It is not showing any error. just dont show any of the portlets View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4022972#4022972 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022972 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: No portlet display
I never had any report like that neither in the forums or in the professional support we provide. Without more information, i cannot tell what's wrong :( Next time it happens, check if you get the bottom of the HTML page (closing html). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4022976#4022976 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022976 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: No portlet display
Another thing to do would be to ask the browser for the HTML source. Sometimes interesting things are there that do not show up on the display. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4023130#4023130 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user