Hi,

On Tue, Jan 24, 2012 at 10:27 AM, chimaira <death_style2...@hotmail.com> wrote:
> Thanks  Igor, But , how can I assign the markup Id ? There is no constructor
> with a super(id) method !

Which markup id you need ?


@Override
       public CharSequence decorateScript(Component c, CharSequence script)    {
                       return "if (!confirm('" +
StringUtils.replace(confirmMessage, "'",
"\'") + "')) return false;\n" + script;

This is the code that generates the JavaScript. Here you receive the
component (c), so you can use c.getMarkupId(), if this is the markup
id you need.

>
> Thanks again
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/AjaxSubmitLink-Simple-attribute-modifier-confirm-javascript-popup-never-calld-form-not-submited-tp4322492p4323167.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
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to