Re: Shadow text on input fields

2010-04-27 Thread Stefan Jozsa
I'm using Wicket to develop flexible, i18n-ed webapps where HTML and JS are second class citizens. At first your JS looks more compact, but on long term is a dead end. Stefan --- On Tue, 4/27/10, Robert Kimotho wrote: > From: Robert Kimotho > Subject: Re: Shadow text on input

Re: Shadow text on input fields

2010-04-27 Thread Robert Kimotho
have you tried:- Kimotho, On 4/26/10, Stefan Jozsa wrote: > CSS: > .inputHint { > color: #66; > } > > Java: > add(new AttributeModifier("value", true, new AbstractReadOnlyModel() > { > @Override > public String getObject() { > return "yourHintText"; >

Re: Shadow text on input fields

2010-04-26 Thread Stefan Jozsa
CSS: .inputHint { color: #66; } Java: add(new AttributeModifier("value", true, new AbstractReadOnlyModel() { @Override public String getObject() { return "yourHintText"; } })); add(new AttributeModifier("class", true, new AbstractReadOnlyModel()

Re: Shadow text on input fields

2010-04-26 Thread Witold Czaplewski
If you don't want to use JavaScript, you can still try it with CSS and images, like HTML: CSS: input.name {background:url(name.png)} input.name:focus {background:none} But the problem is, if you leave the field the image returns. :) Witold Am Mon, 26 Apr 2010 14:28:57 +0300 schrieb Josh Kamau

Re: Shadow text on input fields

2010-04-26 Thread Josh Kamau
u [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"); > >

SV: Shadow text on input fields

2010-04-26 Thread Wilhelmsen Tor Iver
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 > wrote: > > > Thanks Marjtin > > > &g

Re: Shadow text on input fields

2010-04-26 Thread Josh Kamau
I wish we could have something like myTextField.setDefaultText("Type text here"); On Mon, Apr 26, 2010 at 11:55 AM, Josh Kamau 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 HTM

Re: Shadow text on input fields

2010-04-26 Thread Josh Kamau
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 wrote: > > Hi guys; > >

Re: Shadow text on input fields

2010-04-26 Thread Martijn Dashorst
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 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

Shadow text on input fields

2010-04-26 Thread Josh Kamau
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