because you dont call super.oncomponenttag()

-igor


On Feb 6, 2008 2:14 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Another thing that is confusing to me is that, why is it that when I override 
> the onComponentTag() the "name" attribute in the generated markup disappear. 
> I'm just appending function in the onClick when I override onComponentTag().
>
> Thoughts?
>
> Thanks,
> Wen Tong
>
> --
> The only constant in life is change.
>
> ----- Original Message ----
> From: Beyonder Unknown <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
>
> Sent: Wednesday, February 6, 2008 1:24:16 PM
> Subject: Re: adding extra javascript call in CheckBox
>
>
>
> Thanks
> Igor!
> I
> appreciate
> the
> prompt
> reply.
>
> Best,
> Wen
> Tong
>
> --
> The
> only
> constant
> in
> life
> is
> change.
>
> -----
> Original
> Message
> ----
> From:
> Igor
> Vaynberg
> <[EMAIL PROTECTED]>
> To:
> users@wicket.apache.org
> Sent:
> Wednesday,
> February
> 6,
> 2008
> 10:45:52
> AM
> Subject:
> Re:
> adding
> extra
> javascript
> call
> in
> CheckBox
>
>
> tag.put("onclick","executeSomething();"+tag.getattributes().get("onclick"));
>
> -igor
>
> On
> Feb
> 6,
> 2008
> 10:39
> AM,
> Beyonder
> Unknown
> <[EMAIL PROTECTED]>
> wrote:
> >
> >
> Hi
> All,
> >
> >
> I
> was
> wondering
> if
> there's
> a
> way
> to
> add
> or
> decorate
> a
> javascript
> call
> in
> CheckBox?
> What
> I
> did
> was:
> >
> >
> new
> CheckBox("checkBox",
> new
> Model())
> {
> >
>
>
>
>
>
>
>
>
>
>
> protected
> void
> onComponentTag(ComponentTag
> tag)
> {
> >
>
>
>
>
>
>
>
>
>
>
>
>
> tag.put("onclick","executeSomething();");
> >
>
>
>
>
>
>
>
>
>
>
> }
> >
> >
> >
> But
> it
> overrides
> the
> original
> onClick
> that
> Wicket
> is
> writing.
> Is
> there
> a
> way
> that
> I
> can
> decorate
> it
> so
> that
> I
> can
> add
> extra
> javaScript
> call
> in
> onClick
> without
> overriding
> the
> original
> click,
> like
> the
> buttons
> has
> this:
> >
> >
>
>
> protected
> IAjaxCallDecorator
> getAjaxCallDecorator()
> {
> >
>
>
>
>
>
>
>
>
> return
> new
> AjaxCallDecorator()
> >
> >
> >
> Thanks
> in
> advance
> and
> happy
> chinese
> new
> year!
> >
> >
> Best,
> >
> Wen
> Tong
> >
> >
> >
> --
> >
> The
> only
> constant
> in
> life
> is
> change.
> >
> >
> >
> >
> >
>
>
>
> ____________________________________________________________________________________
> >
> Looking
> for
> last
> minute
> shopping
> deals?
> >
> Find
> them
> fast
> with
> Yahoo!
> Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> >
> >
> ---------------------------------------------------------------------
> >
> To
> unsubscribe,
> e-mail:
> [EMAIL PROTECTED]
> >
> For
> additional
> commands,
> e-mail:
> [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To
> unsubscribe,
> e-mail:
> [EMAIL PROTECTED]
> For
> additional
> commands,
> e-mail:
> [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Looking
> for
> last
> minute
> shopping
> deals?
> Find
> them
> fast
> with
> Yahoo!
> Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> ---------------------------------------------------------------------
> To
> unsubscribe,
> e-mail:
> [EMAIL PROTECTED]
> For
> additional
> commands,
> e-mail:
> [EMAIL PROTECTED]
>
>
>
>
>
>
>       
> ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to