Basically all the information this method computes already exists in the object 
i mentioned before

        private String resolveId(JBossRenderRequest request)
        {
                String result = null;
                List list = new ArrayList(10);
                PortalNode node = request.getPortalNode();
                while(node != null && node.getName().trim().length() >0)
                {
                        list.add(node.getName());
                        node = node.getParent();
                }
                
                StringBuffer buffer = new StringBuffer();
                for (int i = list.size() -1; i>=0; i--)
                {
                        buffer.append(".");
                        buffer.append((String) list.get(i));                    
                }
                
                if(buffer.length() > 0)
                {
                        result = buffer.substring(1);
                }
                
                return result;
        }

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

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


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to