Hi Vikram,
I believe this has been fixed in 1.5:
http://www.avoka.com/jira/browse/CLK-358
You might want to patch Column until you upgrade:
http://fisheye3.atlassian.com/browse/click/trunk/click/framework/src/net/sf/click/control/Column.java?r1=2703&r2=2847
Alternatively you could set your own Comparator.
Let us know if that resolves it for you.
kind regards
bob
Vikram Natarajan wrote:
Hi,
The sortable column's data has some special characters (?, hyphens,
commas etc) and the data is breaking the sortable feature of the table.
I have pasted part of the stack trace from the issue we are having. Is
there a work around? Thanks for your help in advance. We are still on
Click 1.4
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'toString' in class net.sf.click.control.Table threw exception
java.lang.NumberFormatException: For input string: "-" @
/users/interviews/search-results.htm[9,42]
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
17:30:37,406 INFO [STDOUT] at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
Thanks
Vikram Natarajan