The problem is not the Wicket side of things, but the browser side. Should 
Wicket test for HTML 5 support, and fall back to a Javascript "hack"?

- Tor Iver

> -----Opprinnelig melding-----
> Fra: Josh Kamau [mailto:joshnet2...@gmail.com]
> Sendt: 26. april 2010 13:29
> Til: users@wicket.apache.org
> Emne: Re: Shadow text on input fields
> 
> I wish we could have something like myTextField.setDefaultText("Type
> text
> here");
> 
> On Mon, Apr 26, 2010 at 11:55 AM, Josh Kamau <joshnet2...@gmail.com>
> wrote:
> 
> > Thanks Marjtin
> >
> >
> > On Mon, Apr 26, 2010 at 11:27 AM, Martijn Dashorst <
> > martijn.dasho...@gmail.com> wrote:
> >
> >> If you can get away with it, you can use HTML5's placeholder text:
> >>
> >> http://diveintohtml5.org/forms.html
> >>
> >> Martijn
> >>
> >> On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau <joshnet2...@gmail.com>
> >> wrote:
> >> > Hi guys;
> >> >
> >> > I would like to put some shadow text on the form input fields that
> >> > disappears when one starts editing the field. The kind that
> appears on
> >> > facebook fields. How do i do it. Most likely its not a wicket
> issue but
> >> i
> >> > really need assistance in this. Am not very good in javascript.
> >> >
> >> > Kind regards
> >> >
> >> > Josh
> >> >
> >>
> >>
> >>
> >> --
> >> Become a Wicket expert, learn from the best:
> http://wicketinaction.com
> >> Apache Wicket 1.4 increases type safety for web applications
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7
> >>
> >> --------------------------------------------------------------------
> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to