Multiple hidden form fileds gettting submitted, using checkbox decorator
------------------------------------------------------------------------
Key: DISPL-647
URL: http://jira.codehaus.org/browse/DISPL-647
Project: DisplayTag
Issue Type: Bug
Components: Decorators
Affects Versions: 1.2
Reporter: Sonali K
Attachments: DisplaySearch.JPG
I am using display tag with spring.
I have a search page where in the result display section I am using displaytg.
One of my requirement is to have a checkbox added as first column of the table
and I am using CheckBoxDecorator for the same.
As per the instructions I have kept my display tag in the form tag and name of
the form is passed in the form variable.
Now as per my design I enter search attributes which are text fields and hit
search and the form gets submitted, every thing works fine first time I hit
Search and results return, from next time all my input form fields start
getting increased by number of times its getting submitted.
Like for second time one of the field SearchName is submitted as NewSearch,
second time its NewSearch, NewSearch and third time NewSearch, NewSearch,
NewSearch.
When I check my generated page I find out that the display tag keeps adding the
Input hidden variable for each submission, as my code works just fine with out
this form field adding to the display tag I am thinking it has some thing to do
with display tag.
My displayTag Table
<display:table name="productList" id="productList" sort="page" pagesize="10"
export="true" requestURI="/searchcatalog/searchcatalog.htm"
decorator="checkboxDecorator"
excludedParams="_chk" form="command">
<display:column property="checkbox" media="html" />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel