Richard Wallace-2 wrote:
>
> I'm trying to use displaytag with WebWork. I want my columns to be
> sortable. The problem that I'm having is that the urls that are generated
> are causing problems for the WebWork setting values on actions from the
> parameters.
>
Richard,
I was having the same problem, and I found some easy changes to make to
displayTag, and I even opened a Jira issue regarding it.
Then, AFTER I had done this, I found a post on the WebWork formum that
addresses this problem.
Please see: http://forums.opensymphony.com/thread.jspa?threadID=63234
for the easy fix.
If you don't like that approach, you could do it the "hard way" which is
what I suggested below.
-Phil
- - - -
I am having the same problem, and would appreciate any help or pointers if
you or someone else
have discovered a fix or a work around to the problem.
...
Another idea that I have is to change the displaytag source code so that it
uses "_" instead of "-" when creating the parameters.
It seems that the dashes are hard coded in to the displaytag's ParamEncoder
class
(see
http://displaytag.sourceforge.net/11/displaytag/xref/org/displaytag/util/ParamEncoder.html
)
Line 59 of that file shows:
this.parameterIdentifier = "d-" + checkSum + "-"; //$NON-NLS-1$
//$NON-NLS-2$
It appears that simply changing this code and compiling your own custom jar
should work.
For example change the code to read:
this.parameterIdentifier = "d__" + checkSum + "__"; //$NON-NLS-1$
//$NON-NLS-2$
(Note that in this change, I used two underscores instead of the dashes).
I haven't tested this fix yet, but I believe that it would work.
-Phil
--
View this message in context:
http://www.nabble.com/Sorting-and-WebWork-tf3194748.html#a9245595
Sent from the DisplayTag - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user