[jboss-user] [JBoss Portal] - Re: What determines window order within a region?

mholzner do-not-reply at jboss.com
Wed Oct 18 14:34:41 EDT 2006


It's more or less random. 
What happens behind the scenes is that WindowContext implements Comparable, and the compare method only considers the order to calculate the return value 

  | package org.jboss.portal.theme.page;
  | public final class WindowContext implements Comparable, Serializable
  | {
  |    ....
  |    public int compareTo(Object o)
  |    {
  |       return order - ((WindowContext)o).order;
  |    }
  |    ....
  | }
  | 


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

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



More information about the jboss-user mailing list