Re: [appfuse-user] How to alphabetically sort drop down list before displaying on jsp

2007-07-18 Thread Msarda
Thanks Matt. :) Got it working. mraible wrote: > > You may have to write your own Comparable class for your Webappssystem > object. > > Matt > > On 7/17/07, Msarda <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Thanks for the reply. >> I tried this,but i am getting following exception in testcases.

Re: [appfuse-user] How to alphabetically sort drop down list before displaying on jsp

2007-07-17 Thread Matt Raible
You may have to write your own Comparable class for your Webappssystem object. Matt On 7/17/07, Msarda <[EMAIL PROTECTED]> wrote: Hi, Thanks for the reply. I tried this,but i am getting following exception in testcases. java.lang.ClassCastException: au.com.suncorp.model.Webappssystem

Re: [appfuse-user] How to alphabetically sort drop down list before displaying on jsp

2007-07-17 Thread Msarda
Hi, Thanks for the reply. I tried this,but i am getting following exception in testcases. java.lang.ClassCastException: au.com.suncorp.model.Webappssystem at org.appfuse.model.LabelValue$1.compare(LabelValue.java:25) at java.util.Arrays.mergeSort(Arrays.java:1284) I am implementi

Re: [appfuse-user] How to alphabetically sort drop down list before displaying on jsp

2007-07-17 Thread Matt Raible
Are you Webappssystem objects LabelValue objects? You might want to consider tranlating them into them and then using LabelValue.CASE_INSENSITIVE_ORDER as the comparator (2nd argument in Collections.sort()). http://static.appfuse.org/appfuse-data-common/xref/org/appfuse/model/LabelValue.html Th

Re: [appfuse-user] How to alphabetically sort drop down list before displaying on jsp

2007-07-17 Thread Msarda
Hi, I am doing as following protected Map referenceData(HttpServletRequest request) throws Exception { Map model = new HashMap(); List webSystemImpacted = webappssystemManager.getAll(); Collections.sort(webSystemImpacted); model.put("webSystemImpacted",webSystemIm

Re: [appfuse-user] How to alphabetically sort drop down list before displaying on jsp

2007-07-17 Thread Matt Raible
You should sort your list with your HQL query, or use Collections.sort() to sort the list. Matt On 7/17/07, Msarda <[EMAIL PROTECTED]> wrote: Hi all, I want to sort the drop down before displaying it on jsp. I am using following in jsp to populate drop dowm list.

[appfuse-user] How to alphabetically sort drop down list before displaying on jsp

2007-07-17 Thread Msarda
Hi all, I want to sort the drop down before displaying it on jsp. I am using following in jsp to populate drop dowm list. " SELECTED > -- View this message in context: http://www.nabble.