Hi Dude,

Thanks for your help and my issue is solved

Regards,
N.Naveen

On Mon, Aug 18, 2008 at 3:47 PM, Justin Nauman <
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> wrote:

> Hi Naveen,
> If I understand your issue correctly then I believe you could utilize the
> "sortProperty" tag in displaytag for a particular column.  This indicates to
> the taglib that instead of sorting on the static or decorated value, you
> want to sort on a property from the bean you are iterating over.  In this
> case it would be:
>
> <display:column title="IDN" property="companyIdn" sortable="true" *
> sortProperty="companyIdn"*/>
>
> Read more at:
> http://displaytag.sourceforge.net/11/displaytag/tagreference.html#column
>
> Thanks and good luck,
> Justin N.
> Chicago, IL
>
>
> On 8/18/08, naveen namburi <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi Folks,
>>
>> Iam using a decorator class to display a column value . The first value
>> which iam going to display is an integer value which is actually coming
>> from
>> my decorator as below:
>>
>> public String getLink1()
>>    {
>>        /*Get the current row data object*/
>>
>>        Company object = (Company) getCurrentRowObject();
>>
>>        return " \"displayController.htm?companyName=" "
>>        +object.getCompanyIdn()
>>        +" ";
>>    }
>>
>> And in my JSP iam calling this link as below:
>>
>> <display:table name="requestScope.test" pagesize="5"
>> requestURI="displayController.htm" sort="list"
>> decorator="DecoratorClassName" >
>>        <display:column title="IDN" property="companyIdn" sortable="true"/>
>>        <display:column title="Company Name" property="companyName"
>> sortable="true"/>
>> </display:table>
>>
>> Now When iam placing some int value as my first column value and trying to
>> sort with sortable="true" , it is not sorting as expected, but when iam
>> displaying the same int value other than first column value it is sorting
>> very good, can you please tell me what might be the problem.
>>
>> Thanks And Regards,
>> N.Naveen.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Column-Value-not-Getting-Sorted-tp19038611p19038611.html
>> Sent from the DisplayTag - General mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> displaytag-user mailing list
>> displaytag-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to