Re: Have a Heineken on me Wicket team!

2015-09-23 Thread Andrea Del Bene
How to say no to a beer ? :-)

PS: a Franziskaner would be better :D

On Wed, Sep 23, 2015 at 11:43 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> :-D
>
> +1 to rename Wicket 7 to Wicket 007
>
> Made my day :-D
>
> kind regards
>
> Tobias
>
> > Am 23.09.2015 um 10:25 schrieb Martijn Dashorst <
> martijn.dasho...@gmail.com>:
> >
> > Did you use  Wicket 007?
> >
> > Martijn
> >
> >> On Tue, Sep 22, 2015 at 11:15 PM, Paul Bors  wrote:
> >> Soon we will lunch a small little site for the new James Bond 007 movie
> and
> >> as some of you might now, he started drinking Heineken now-a-day :)
> >>
> >> http://hknbond-us.heineken.com/
> >>
> >> Just wanted to thank the Wicket team for making such simple projects
> even
> >> easier !!!
> >>
> >> -
> >> ~ Thank you,
> >>p...@bors.ws
> >> --
> >> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Have-a-Heineken-on-me-Wicket-team-tp4672013.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
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Custom confirmation behavior

2015-09-23 Thread Marco Di Sabatino Di Diodoro

Hi Sven,

thanks for your help

Il 23/09/2015 14:28, Sven Meier ha scritto:

Hi,

you'll have to call #stopImmediatePropagation() to prevent AjaxLink 
from handling the "click" event.


I added your suggestion in my code

response.render($(component).on("click",
new JavaScriptInlineFunction(""
+ "evt.preventDefault();"
+ "evt.stopImmediatePropagation();"
+ "bootbox.confirm(\"Are you sure?\", 
function(result){return true;});"

)).asDomReadyScript());

now the onClick is never performed.

M


Have fun
Sven


On 23.09.2015 14:17, Marco Di Sabatino Di Diodoro wrote:

Hi,

I like to add a confirmation dialog to my application with 
Bootbox.js. To do this I created a new//ConfirmationModalBehavior (I 
haven taken ConfirmationBehavior from wicket-bootstrap as example) with


@Override
public void renderHead(final Component component, final 
IHeaderResponse response) {

super.renderHead(component, response);

References.renderWithFilter(response, 
JavaScriptHeaderItem.forReference(new JQueryPluginResourceReference(

ConfirmationModalBehavior.class, "bootbox.min.js")));

response.render($(component).on("click",
new JavaScriptInlineFunction(""
+ "evt.preventDefault();"
+ "bootbox.confirm(\"Are you sure?\", 
function (result) {"

+  "return true;" +
"});")).asDomReadyScript());
}
/
/and in my wicket page

 final AjaxLink deleteLink = new AjaxLink("deleteLink", 
Model.of("Delete")) {


private static final long serialVersionUID = 
3776750333491622263L;


@Override
public void onClick(final AjaxRequestTarget target) {
info("Invoked link's #onClick()!");
}
};

 deleteLink.add(new ConfirmationModalBehavior());

when I click on the AjaxLink, the confirm dialog is displayed after 
the execution of the onclick method. What's wrong?


Regards
M




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



--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/


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



Re: Custom confirmation behavior

2015-09-23 Thread Sven Meier

Hi,

you'll have to call #stopImmediatePropagation() to prevent AjaxLink from 
handling the "click" event.


Have fun
Sven


On 23.09.2015 14:17, Marco Di Sabatino Di Diodoro wrote:

Hi,

I like to add a confirmation dialog to my application with Bootbox.js. 
To do this I created a new//ConfirmationModalBehavior (I haven taken 
ConfirmationBehavior from wicket-bootstrap as example) with


@Override
public void renderHead(final Component component, final 
IHeaderResponse response) {

super.renderHead(component, response);

References.renderWithFilter(response, 
JavaScriptHeaderItem.forReference(new JQueryPluginResourceReference(

ConfirmationModalBehavior.class, "bootbox.min.js")));

response.render($(component).on("click",
new JavaScriptInlineFunction(""
+ "evt.preventDefault();"
+ "bootbox.confirm(\"Are you sure?\", function 
(result) {"

+  "return true;" +
"});")).asDomReadyScript());
}
/
/and in my wicket page

 final AjaxLink deleteLink = new AjaxLink("deleteLink", 
Model.of("Delete")) {


private static final long serialVersionUID = 
3776750333491622263L;


@Override
public void onClick(final AjaxRequestTarget target) {
info("Invoked link's #onClick()!");
}
};

 deleteLink.add(new ConfirmationModalBehavior());

when I click on the AjaxLink, the confirm dialog is displayed after 
the execution of the onclick method. What's wrong?


Regards
M




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



Custom confirmation behavior

2015-09-23 Thread Marco Di Sabatino Di Diodoro

Hi,

I like to add a confirmation dialog to my application with Bootbox.js. 
To do this I created a new//ConfirmationModalBehavior (I haven taken 
ConfirmationBehavior from wicket-bootstrap as example) with


@Override
public void renderHead(final Component component, final 
IHeaderResponse response) {

super.renderHead(component, response);

References.renderWithFilter(response, 
JavaScriptHeaderItem.forReference(new JQueryPluginResourceReference(

ConfirmationModalBehavior.class, "bootbox.min.js")));

response.render($(component).on("click",
new JavaScriptInlineFunction(""
+ "evt.preventDefault();"
+ "bootbox.confirm(\"Are you sure?\", function 
(result) {"

+  "return true;" +
"});")).asDomReadyScript());
}
/
/and in my wicket page

 final AjaxLink deleteLink = new AjaxLink("deleteLink", 
Model.of("Delete")) {


private static final long serialVersionUID = 
3776750333491622263L;


@Override
public void onClick(final AjaxRequestTarget target) {
info("Invoked link's #onClick()!");
}
};

 deleteLink.add(new ConfirmationModalBehavior());

when I click on the AjaxLink, the confirm dialog is displayed after the 
execution of the onclick method. What's wrong?


Regards
M

--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/



Re: Custom confirmation behavior

2015-09-23 Thread Sven Meier

Hi,

you'll have to trigger the AjaxLink by yourself after the user confirmed 
your bootbox:


http://stackoverflow.com/questions/30064980/pass-the-triggered-element-to-the-bootbox-callback-jquery

Have fun
Sven


On 23.09.2015 15:06, Marco Di Sabatino Di Diodoro wrote:

Hi Sven,

thanks for your help

Il 23/09/2015 14:28, Sven Meier ha scritto:

Hi,

you'll have to call #stopImmediatePropagation() to prevent AjaxLink 
from handling the "click" event.


I added your suggestion in my code

response.render($(component).on("click",
new JavaScriptInlineFunction(""
+ "evt.preventDefault();"
+ "evt.stopImmediatePropagation();"
+ "bootbox.confirm(\"Are you sure?\", 
function(result){return true;});"

)).asDomReadyScript());

now the onClick is never performed.

M


Have fun
Sven


On 23.09.2015 14:17, Marco Di Sabatino Di Diodoro wrote:

Hi,

I like to add a confirmation dialog to my application with 
Bootbox.js. To do this I created a new//ConfirmationModalBehavior (I 
haven taken ConfirmationBehavior from wicket-bootstrap as example) with


@Override
public void renderHead(final Component component, final 
IHeaderResponse response) {

super.renderHead(component, response);

References.renderWithFilter(response, 
JavaScriptHeaderItem.forReference(new JQueryPluginResourceReference(

ConfirmationModalBehavior.class, "bootbox.min.js")));

response.render($(component).on("click",
new JavaScriptInlineFunction(""
+ "evt.preventDefault();"
+ "bootbox.confirm(\"Are you sure?\", 
function (result) {"

+  "return true;" +
"});")).asDomReadyScript());
}
/
/and in my wicket page

 final AjaxLink deleteLink = new AjaxLink("deleteLink", 
Model.of("Delete")) {


private static final long serialVersionUID = 
3776750333491622263L;


@Override
public void onClick(final AjaxRequestTarget target) {
info("Invoked link's #onClick()!");
}
};

 deleteLink.add(new ConfirmationModalBehavior());

when I click on the AjaxLink, the confirm dialog is displayed after 
the execution of the onclick method. What's wrong?


Regards
M




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






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



Have a Heineken on me Wicket team!

2015-09-23 Thread Paul Bors
Soon we will lunch a small little site for the new James Bond 007 movie and
as some of you might now, he started drinking Heineken now-a-day :)

http://hknbond-us.heineken.com/

Just wanted to thank the Wicket team for making such simple projects even
easier !!!

-
~ Thank you,
p...@bors.ws
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Have-a-Heineken-on-me-Wicket-team-tp4672013.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



Re: Have a Heineken on me Wicket team!

2015-09-23 Thread Martijn Dashorst
Did you use  Wicket 007?

Martijn

On Tue, Sep 22, 2015 at 11:15 PM, Paul Bors  wrote:
> Soon we will lunch a small little site for the new James Bond 007 movie and
> as some of you might now, he started drinking Heineken now-a-day :)
>
> http://hknbond-us.heineken.com/
>
> Just wanted to thank the Wicket team for making such simple projects even
> easier !!!
>
> -
> ~ Thank you,
> p...@bors.ws
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Have-a-Heineken-on-me-Wicket-team-tp4672013.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
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



Re: Have a Heineken on me Wicket team!

2015-09-23 Thread Tobias Soloschenko
:-D

+1 to rename Wicket 7 to Wicket 007 

Made my day :-D

kind regards

Tobias

> Am 23.09.2015 um 10:25 schrieb Martijn Dashorst :
> 
> Did you use  Wicket 007?
> 
> Martijn
> 
>> On Tue, Sep 22, 2015 at 11:15 PM, Paul Bors  wrote:
>> Soon we will lunch a small little site for the new James Bond 007 movie and
>> as some of you might now, he started drinking Heineken now-a-day :)
>> 
>> http://hknbond-us.heineken.com/
>> 
>> Just wanted to thank the Wicket team for making such simple projects even
>> easier !!!
>> 
>> -
>> ~ Thank you,
>>p...@bors.ws
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Have-a-Heineken-on-me-Wicket-team-tp4672013.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
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

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