Re: textbox water mark

2010-12-28 Thread Matthew Hill
It's showing up in the GWT group topic listing for me. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-too

Re: textbox water mark

2010-12-28 Thread Max Jonas Werner
This is weird. I can't search for this topic and it doesn't show up in my or in pieceovcake's activity log but the direct link still works. What am I missing here? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, se

Re: textbox water mark

2010-12-28 Thread Max Jonas Werner
Why has this topic been deleted from Groups? On 20 December 2010 21:03, Max Jonas Werner wrote: > You're a lucky guy that you can use this feature. ;-) > > Cheers! > Max > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to

Re: textbox water mark

2010-12-20 Thread Max Jonas Werner
You're a lucky guy that you can use this feature. ;-) Cheers! Max -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to goo

Re: textbox water mark

2010-12-20 Thread pieceovcake
html5 solution worked like a charm, thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr

Re: textbox water mark

2010-12-20 Thread Thomas Broyer
It's called "placeholder". If you don't have a requirement that it works in all browsers, then HTML5 has an attribute for that (which actually has its origins in WebKit, HTML5 is only standardizing it), called… placeholder! So you can use myTextBox.getElement().setPropertyString("placeholder", "

Re: textbox water mark

2010-12-20 Thread Max Jonas Werner
Hi pieceovcake, yes, we're using sth. like you've mentioned a lot in our application. It looks sth. like this: ... private TextArea _ta; ... _ta.setText("placeholder"); _ta.setStyleName("textarea-placeholder"); _ta.addFocusHandler(new FocusHandler() { @Override public void onFocus(final

textbox water mark

2010-12-20 Thread pieceovcake
Has anyone added a watermark to a textbox? On first view the textbox shows a message e.g. letting the user know what to enter into the textbox. Once the placed the cursor inside the text box the water mark vanishes. -- You received this message because you are subscribed to the Google Groups