Hi !

When a Link doesn't open popup window, I can write onclick in html code:
   ... 

But 'popup' Link rewrites onclick attribute.
I tried to modify this javascript, but this example isn't working:

  add(
      new Link("linkWithConfirm") {
        @Override
        public void onClick() {
          setResponsePage(Abc.class);
        }
        @Override
        protected CharSequence getOnClickScript(CharSequence url) {
          return "alert('run!!!'); " + super.getOnClickScript(url);
        }
      }
      .setPopupSettings(new PopupSettings())
    );

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-can-I-modify-onclick-attribute-of-Link-wicket7-tp4671900.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to