Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Portal] - Re: Portlet title bar,
 help button question

scott.stark@jboss.org

2007-07-20


Looks like the text is hard-coded into ./theme/src/main/org/jboss/portal/theme/impl/render/div/DivDecorationRenderer.java:

   for (Iterator i = modesOrStates.iterator(); i.hasNext();)
|     {
|       ActionRendererContext action = (ActionRendererContext)i.next();
|       if (action.isEnabled())
|       {
|         PrintWriter out = ctx.getWriter();
|         out.print("<span title=\"");
|         out.print(action.getName());
|         out.print("\"><a class=\"portlet-mode-");
|         out.print(action.getName());
|         out.print("\" href=\"");
|         out.print(action.getURL());
|         out.print("\"> </a></span>");
|       }
|     }

It appears that the value supplied for the 'title' attribute is the same as the state - "help" in this case. Not very localizable, is it?

P.S. You never said which version of Portal, so I assumed 2.6.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066349#4066349

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066349
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.