These lines in the renderer are all it takes:
writer.writeAttribute(
"onfocus", "this.style.background='';", null
);
writer.writeAttribute(
"onblur", " this.style.background='';", null
);
Jurgen
2006/5/10, Mike Kienenberger <[EMAIL PROTECTED]>:
I've been asked to add a "helper text" effect like what we see on the
MyFaces wiki:
http://wiki.apache.org/myfaces/
See how it's got the word "Search" in the search box which disappears
as soon as you type something in? That's what I need.
Sadly, MoinMoin is GNU GPL licensed, so I don't dare look at the
_javascript_ to see how it's done, and my _javascript_ skill is limited to
what I can cut and paste off someone else's site :)
Seems like this would be a cool addition to t:inputText.
-Mike