Hello, I had to experience this awful MSIE behaviour in the past (with projects outside of wicket). The conclusion is, if you need more than one submit button in a form, and need to know which button was actually clicked, you cannot use button type=submit - unless you don't care about MSIE users.
Not sure how MSIE 7 changed this behaviour. -- greetings from Berlin, Rüdiger Schulz www.2rue.de 2007/5/2, Johan Compagner <[EMAIL PROTECTED]>: > ok i tested it. > > <html> > <body> > <form method="get"> > <input type="text" name="text" value="text"> > <input type="button" name="ibutton" value="ibutton"> > <input type="submit" name="isubmit" value="isubmit"> > <input type="reset" name="ireset" value="ireset"> > <button type="button" name="bbutton" > value="bbutton">bbutton</button> > <button type="submit" name="bsubmit" > value="bsubmit">bsubmit</button> > <button type="reset" name="breset" value="breset">breset</button> > </form> > </body> > </html> > > in FF those 2 are exactly the same there is no different > the 2 type="buttons" don't do anything > the 2 type="reset" both reset the fields > the 2 type="submit" both submits there own value and the value of the text > input field. > > in IE there is one difference > > the 2 type="buttons" don't do anything > the 2 type="reset" both reset the fields > the 2 type="submit" both submits there own value and the value of the text > input field AND button type=button value is submitted. > > so pressing isubmit gives: > ?text=text&isubmit=isubmit&bbutton=bbutton > and pressing bsubmit gives: > ?text=text&bbutton=bbutton&bsubmit=bsubmit > > and in FF those bbutton=bbutton don't get appended. > I think FF is doing it right because as far as i read thats the spec. > > > johan > > > > On 5/2/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > But does the current build not work for you? > > > > i will try to create a test and to see what a <button and <input > type="button" and all the likes excactly do. > > > > johan > > > > > > > > > > On 5/2/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > > I've created an issue in JIRA to track this issue: > > > https://issues.apache.org/jira/browse/WICKET-521 > > > > > > Again, i don't have any preference on a solution, just that something > > > works. Using the current Link object is *not* an option since it > > > doesn't disable buttons correctly. > > > > > > On 5/1/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > Buttons can have a name and value: > > > > > > > > http://www.w3schools.com/tags/tag_button.asp > > > > http://www.htmlcodetutorial.com/forms/_BUTTON.html > > > > > > > > and some more examples and you see that they are pretty much equal to > <input > > > > type="xxx" > > > > > > > > > http://www.expertrating.com/courseware/XHTMLCourse/XHTML-Forms-4.asp > > > > > > > > and i still think it is stupid to have a Button component that can't > be > > > > mapped on the <button> tag > > > > If we make an exception then Button should work for <buttom> and we > should > > > > make some SubmitButton component for <input type="submit"> > > > > thats much more logical. > > > > But this is not needed. We just need to figure out so that it works on > both > > > > because they are the same except with one distinction: > > > > "Inside a button element you can put content , like text or images. > This is > > > > the difference between this element and buttons created with the input > > > > element." > > > > > > > > > > > > > > > > On 5/1/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > > buttons dont need name either. they dont post. so how many > exceptions are > > > > you making just for button? it is easier to simply attach a link. > > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > On 5/1/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > > > Button is a FormComponent and all FormComponents are Containers so > that > > > > works fine. > > > > > > > > > > > > if (Strings.isEqual("input", name)) > > > > > > { > > > > > > String value = getModelObjectAsString(); > > > > > > if (value != null && !"".equals(value)) > > > > > > { > > > > > > tag.put("value", value); > > > > > > } > > > > > > } > > > > > > > > > > > > so only if it is an input the value will be set. > > > > > > What about the name? > > > > > > > > > > > > > > > > > > johan > > > > > > > > > > > > > > > > > > > > > > > > On 5/1/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > > > > in html button tag is a container, while our button component is > not. > > > > so a link is a better match. did you also fix it so button doesnt add > a > > > > value attr when it is attached to button? because <button > value="foo"/> is > > > > illegal. > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 5/1/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > > > > > i fixed that again. > > > > > > > > that broke all our solutions and it just feels stupid that > > > > > > > > <button> doesn't map on the component Button > > > > > > > > > > > > > > > > Button class should just do its job looking where it is > attached to. > > > > > > > > > > > > > > > > johan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 5/1/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > > > > > > use link or submitlink. > > > > > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 4/30/07, Ryan Sonnek < [EMAIL PROTECTED]> wrote: > > > > > > > > > > I'm trying to use a wicket Button on an html <button> tag > > > > instead of > > > > > > > > > > an <input> tag, but wicket keeps throwing this error: > > > > > > > > > > WicketMessage: Component deleteSlideButton must be applied > to a > > > > tag of > > > > > > > > > > type 'input', not '<button wicket:id="deleteSlideButton">' > > > > > > > > > > > > > > > > > > > > Is this possible, or is there a different wicket object > that I > > > > can use? > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > > > > > Download DB2 Express C - the FREE version of DB2 express > and > > > > take > > > > > > > > > > control of your XML. No limits. Just data. Click to get it > now. > > > > > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Wicket-user mailing list > > > > > > > > > > Wicket-user@lists.sourceforge.net > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > > > > Download DB2 Express C - the FREE version of DB2 express and > take > > > > > > > > > control of your XML. No limits. Just data. Click to get it > now. > > > > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > > > > > _______________________________________________ > > > > > > > > > Wicket-user mailing list > > > > > > > > > Wicket-user@lists.sourceforge.net > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > > > Download DB2 Express C - the FREE version of DB2 express and > take > > > > > > > > control of your XML. No limits. Just data. Click to get it > now. > > > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > > > > _______________________________________________ > > > > > > > > Wicket-user mailing list > > > > > > > > Wicket-user@lists.sourceforge.net > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > > Download DB2 Express C - the FREE version of DB2 express and > take > > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > > _______________________________________________ > > > > > > > Wicket-user mailing list > > > > > > > Wicket-user@lists.sourceforge.net > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > _______________________________________________ > > > > > > Wicket-user mailing list > > > > > > Wicket-user@lists.sourceforge.net > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > _______________________________________________ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > _______________________________________________ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user