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
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";
>
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()
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
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");
> >
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
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
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;
> >
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
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
10 matches
Mail list logo