Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

tomahawk datatable sorting

 
Marty Crytser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Firstly, I have checked all the threds on this topic and tried all the solutions suggested by various posters...but looks like the error I am getting is different and I think I am MISSING A JAR file...
I am trying to apply sorting on datatable...and when I include the attribute sortable = true on t:column...I am getting the below error...



If I remove sortable=true attribute..there is no error...the sort arrow shows up fine but sorting does not work...

any suggestions...

thanks in advance

-amor
 
Mallika gowd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the tomahawk-1.1.9.jar file and working fine for me.
 
Marty Crytser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply...but no luck...still getting the same error...

 
Marty Crytser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mallika gowd wrote:I am using the tomahawk-1.1.9.jar file and working fine for me.


Can you please post your code...at least some sample that I can work on...
 
Mallika gowd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using this below code in backing bean


BeanComparator comp = new BeanComparator(sortBy);
Collections.sort(List, comp);

It should work.
 
Marty Crytser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mallika gowd wrote:try using this below code in backing bean


BeanComparator comp = new BeanComparator(sortBy);
Collections.sort(List, comp);

It should work.


I did not understand...it still gives me the same error...did you add any other jars to your project in order to get this working...
 
Marty Crytser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok fixed it...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jhonny Depp", please check your private messages for an important administrative matter.
 
Mallika gowd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
great..and can you please tell every one in this site how did you fix the problem.
 
Marty Crytser
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
----Fixed my display name...

--place the jar file in the right place...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!