I have one last small problem with this topic which is that I don't see any
particularly elegant place to clear the hint text from this TextField when
the form is submitted.
I've considered adding JavaScript to the Form to implement the "onSubmit"
handler. I don't like this case because then Java
Oh, yeah I see IBehavior.rendered(Component) that is called when the
component has been rendered.
Great, thanks a lot!
Nate
On Fri, May 9, 2008 at 5:04 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
> i meant in the behavior. does it have something like rendered() or
> afterrender() ?
>
> somewher
i meant in the behavior. does it have something like rendered() or
afterrender() ?
somewhere so you can do
getcomponent().getresponse().write("...");
-igor
On Fri, May 9, 2008 at 5:02 PM, nate roe <[EMAIL PROTECTED]> wrote:
> In Component, do you mean? I see onRender(MarkupStream) .. do I need
In Component, do you mean? I see onRender(MarkupStream) .. do I need to
find the "after component" part by using the MarkupStream?
Thank you,
Nate
On Fri, May 9, 2008 at 4:51 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
> 1.2 doesnt have it, so just override onrenderaftercomponent and do it the
1.2 doesnt have it, so just override onrenderaftercomponent and do it there
-igor
On Fri, May 9, 2008 at 4:50 PM, nate roe <[EMAIL PROTECTED]> wrote:
> Hrm. The IHeaderResponse interface is new in 1.3 but for a little while
> longer I must use Wicket 1.2. How does one accomplish
> response.ren
Hrm. The IHeaderResponse interface is new in 1.3 but for a little while
longer I must use Wicket 1.2. How does one accomplish
response.renderOnDomReadyScript() in 1.2? I don't see any method similar to
"renderOnDomReadyScript" on the Response class.
Thanks!
Nate
On Fri, May 9, 2008 at 4:35 PM,
i havent had to do this but something like this might work:
class hint extends abstractbehavior {
private final imodel hint;
onbind(component c) {
c.setoutputmarkupid(true);
}
ondetach() { hint.detach(); super.ondetach(); }
renderhead(response) {
// init textfield with hint
How would one implement "hint text" on a text field in Wicket? By hint text
I mean an empty TextField has greyed out text in it to indicate its purpose,
and gets cleared onFocus?)
Thanks,
Nate Roe