Bugs item #1347328, was opened at 2005-11-03 17:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1347328&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Eelco Hillenius (eelco12)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug parsing commas with uploads
Initial Comment:
blackboy zabaha wrote:
This occure on browser, the value of textfield changed
when form is invalid and return.
I just found that this is not problem with
customValidator, but with RequiedTextField with
multipart form (I'm not sure this will ocurred with
only requiedValidator or other validator else, and also
with any other charactors).
My new testing to find out the real problem's cause is
just modifying the UploadPage.java, UploadPage.html,
UploadPage.properties in package
wicket.examples.upload, which porvided with wicket-example.
### UploadPage.java ###
// just add 2 required textfield in private inner class
UploadPage.FileUploadForm
add(new RequiredTextField("t1"));
add(new RequiredTextField("t2"));
### UploadPage.html ###
<!-- add these lines into "simpleUpload" form -->
<input type="text" wicket:id="t1"/>
<input type="text" wicket:id="t2"/>
### UploadPage.properties ###
# add these lines
simpleUpload.t1.RequiredValidator=t1 required.
simpleUpload.t2.RequiredValidator=t2 required.
run example goto upload example
then input "a,b,c,d," (or indeed any String with comma)
into t1 textfield,
let t2 be blank so form is invalid, do not have to load
any file.
submit and then see value in t1 textfield.
I think u will see "a;b;c;d" (just notice that last
comma(s) also lost).
Is this show that it's really a bug or I do it a wrong
way, (indeed I just don't want to be a bug-reporter, I
just want the way to solve my problem), plz suggest me
how to solve this problem, too.
I need help as soon as posible.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1347328&group_id=119783
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop