The title attribute can be added to the render set. The markup that spans the 
portlet decoration is generated by the renderSet. In the default OTB case of 
the portal, this is a class called 
/theme/src/main/org/jboss/portal/theme/impl/render/DivDecorationRenderer 

you can change the code, or create your own renderSet and configure it for your 
portal (see the doc for details on that) 


  |    private static void renderModeAndStateLinks(RenderContext ctx, 
WindowResult result, String selector)
  |    {
  |       log.debug("render modes and states");
  |       Collection modes = result.getTriggerableActions(selector);
  |       for (Iterator i=modes.iterator(); i.hasNext(); ){
  |          WindowResult.Action action = (WindowResult.Action)i.next();
  |          if (action.isEnabled()){
  |             log.debug("action is enabled: " + action.getName());
  |             ctx.getMarkupFragment().append("<div 
class=\"portlet-mode-").append(action.getName());
  |             ctx.getMarkupFragment().append("\" 
onClick=\"location.href='").append(action.getURL()).append("';\" title=\"this 
is the title content\"></div>");
  |          }
  |       }
  |    }
  | 

as you can see in this snippet, you can place whatever text into the title 
attribute. Since you have the mode and state (and much more), you can 
dynamically determine what to render in the title ....


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915950


-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to