too bad that you rely on JS then.. no more clean, nice html and no more save real world use - submitting the whole form IMHO is not a big problem....
 
Regards


Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Igor Vaynberg
Gesendet: Mittwoch, 30. August 2006 18:18
An: wicket-user@lists.sourceforge.net
Betreff: Re: [Wicket-user] Tri-state checkbox

too bad the point is not to submit the form on every click so input type="submit" wont work.

you need something to carry the value on form submissions so you will need a hidden field. i would use a form that composites a HiddenField and an img with onclick that toggles its src and the hidden field's value.

-Igor


On 8/30/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
just checked W3C,
its ok to have multi  <input type="submit" value="XXX"> within a form - so
this would be secure.. you then can have a img over it with CSS.... similar
to this 2 states example here
http://www.ukthoughts.co.uk/journal/css-submit-buttons

if you would do this, then it would be 100% w3c compliant and safe for all
browsers...


> -----Urspr√ľngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto: [EMAIL PROTECTED]] Im Auftrag
> von Alex Objelean
> Gesendet: Mittwoch, 30. August 2006 13:38
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] Tri-state checkbox
>
>
> Unfortunately, the dropDownChoice component does not suite my needs.
>
> The ideea with button seems to be a good ideea, why not use
> just <input type="button"> or <button> instead of <input
> type="submit">... The problem
> is: should I reuse the Checkbox code by extending it or just
> extend Form component and render a button with a
> corresponding image depending on its state & rewrite the
> whole model logic?
>
> I think that there can be more than one different approach to
> this problem, but I don't know which would be better or what
> would you recommend?
>
> PS: I think that such a control (tristate checkbox) would be
> very useful in wicket-extension.
> --
> View this message in context:
> http://www.nabble.com/Tri-state-checkbox-tf2188974.html#a6057160
> Sent from the Wicket - User forum at Nabble.com.
>
>
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to