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

PeterJ do-not-reply at jboss.com
Fri Jul 20 17:47:48 EDT 2007


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



More information about the jboss-user mailing list