Re: Access to initial IRequestHandler on IRequestCycleListener.onException

2020-05-02 Thread Olivier Dutrieux
Perfect thx

-
Duto
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Access to initial IRequestHandler on IRequestCycleListener.onException

2020-05-02 Thread Olivier Dutrieux
Is there a possibility to access to initial IRequestHandler
(AjaxRequestHandler) on IRequestCycleListener.onException when the exception
is due to the rendering exception (Model do RuntimeException) of this ajax
request.

I see on RequestCycle.get() the initial ajax request but I can access it and
RequestCycle.get().find(AjaxRequestTarget.class) is empty.

 





-
Duto
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



RE: [ANNOUNCE] Apache Wicket 8.6.0 released

2019-09-09 Thread Olivier DUTRIEUX
Hi Martin,

If you check the source 
https://github.com/apache/wicket/releases/tag/rel%2Fwicket-8.6.0 , you don' t 
see this line 
https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java#L106

-- 
Olivier Dutrieux
Evolution du SI Scientifique et de Gestion (Tél : 31 62)


-Message d'origine-
De : Martin Grigorov [mailto:mgrigo...@apache.org] 
Envoyé : lundi 9 septembre 2019 11:09
À : users@wicket.apache.org
Objet : Re: [ANNOUNCE] Apache Wicket 8.6.0 released

Hi Olivier,

The backport of the commit from 9.x (master) is 
https://github.com/apache/wicket/commit/efcffbb7be97847bec40aec77cfb9414fc55fa8c
And I see the lines at:
https://github.com/apache/wicket/blob/wicket-8.x/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java#L106

And also in the sources of the release tag:
https://github.com/apache/wicket/releases/tag/rel%2Fwicket-8.6.0

On Mon, Sep 9, 2019 at 11:39 AM Olivier DUTRIEUX < olivier.dutri...@pasteur.fr> 
wrote:

> I check the Improvement [WICKET-6684] on version 8.6.0 but I didn't 
> find any trace of it. Maybe I messed something.
>
> Duto
>
> -Message d'origine-
> De : Andrea Del Bene [mailto:adelb...@apache.org] Envoyé : samedi 7 
> septembre 2019 19:22 À : d...@wicket.apache.org; 
> users@wicket.apache.org; annou...@apache.org; 
> annou...@wicket.apache.org Objet : [ANNOUNCE] Apache Wicket 8.6.0 
> released
>
> The Apache Wicket PMC is proud to announce Apache Wicket 8.6.0!
>
> Apache Wicket is an open source Java component oriented web 
> application framework that powers thousands of web applications and 
> web sites for governments, stores, universities, cities, banks, email 
> providers, and more. You can find more about Apache Wicket at 
> https://wicket.apache.org
>
> This release marks another minor release of Wicket 8. We use semantic 
> versioning for the development of Wicket, and as such no API breaks 
> are present breaks are present in this release compared to 8.0.0.
>
> Using this release
> --
>
> With Apache Maven update your dependency to (and don't forget to 
> update any other dependencies on Wicket projects to the same version):
>
> 
>  org.apache.wicket
>  wicket-core
>  8.6.0
> 
>
> Or download and build the distribution yourself, or use our 
> convenience binary package you can find here:
>
>   * Download: http://wicket.apache.org/start/wicket-8.x.html#manually
>
> Upgrading from earlier versions
> ---
>
> If you upgrade from 8.y.z this release is a drop in replacement. If 
> you come from a version prior to 8.0.0, please read our Wicket 8 
> migration guide found at
>
>   * http://s.apache.org/wicket8migrate
>
> Have fun!
>
> — The Wicket team
>
>
> ==
> ==
>
>  The signatures for the source release artefacts:
>
>
> Signature for apache-wicket-8.6.0.zip:
>
>  -BEGIN PGP SIGNATURE-
>
> iQIzBAABCgAdFiEE0a6YZHC1pJw+aieyh48B+qjTVuEFAl1u0ggACgkQh48B+qjT
> VuHBVRAAgX8nPfftIKv6z0Rimyg4M9hefpkwcVCkj8mQ2q9cnRQCNN8lWPrVsqOz
> jfkWOM1I3rmjR60o5eREFuNK+t7RNxdwfdZqlB+zsgu2BCNscpQMaTruf2uI14ip
> B83PYCMkTSDA+BCJD1MTwRf3Ih3M+0rq4l3vedzStfC4GvmmwHRvMWTOml5i9Whg
> pSStZvX9h61n6ofRNq/feLQi7342GOgv+/r0cvTVDRdIsEeYGalu1b+ZJKsjfTX3
> l0oMiRILzFltg+CQP0fhWibfLkvyRLM+R4598rgvwM+QcKo7aCn0LcIEIhp0dYDS
> KI6IhsPd/NS0qKoKgIPmQ6tMsvMWGOxTOpQMxnAj97wVzYVf1QoXArPuc+JaSrFE
> D/a78zUMc78UFjdt38NBA22jf7HbcjVkAUUjD9fPtNStFnnrisniyw16dL0Wa6MA
> kuiPuyl7gsPAkmOXH68KtVaR7ncTORPCt4ZC/6GxoRbhDc71+dLPz5XKpeDdqy8O
> /pBGtsucjI9xIGZqGHWFvfAaBqqv2t4QARxOdkDA9d09PL4o/N+gljho+a30GrDv
> A35wG2y2Idkoe1t4EJeHpMHGPmqMAj/m1wYagJjMeiXRDgtfFoJIlRfAboxq8Dwd
> uT+mRsdS0hq8q78yPZPW3N24cC3gwohFJMWfb4IukQbFGI2gznE=
> =mzMF
> -END PGP SIGNATURE-
>
> Signature for apache-wicket-8.6.0.tar.gz:
>
>  -BEGIN PGP SIGNATURE-
>
> iQIzBAABCgAdFiEE0a6YZHC1pJw+aieyh48B+qjTVuEFAl1u0ggACgkQh48B+qjT
> VuHSZw//WF61doVJ8fDK8hPvk8Td6Yf4hMzP7kff7tAkm+w72LqnXlUM7IDci5nz
> Dcx627fBAYIXdRtfOkq53vRrFV+1e87x8iM/bnp7Tzj5lwF6BOvRkQ+gr6U6+6An
> 5CblTMT5kSq9xKGm8/Gj6I1OrQiVdSqFPWt7N/4D7FG9uekRVJoc+0ubekqdGR1M
> lkoT8Wfteo7sstoD8qvQEgyKKZLqbxTKDGiVBywmSKVuxkv+4JnETI2k1R1TsCr0
> /JdGx6fNxd/sBUKLoAUo8cxBpv9weuzvPCMw89eVGsKacBDedZMK7iMfR3M43Iz/
> HuEN26JnHM3kqSBCMMYE197djXOroUhXmhr9WfNRxiaTqJsKbS1oG3jO9EkHQt8Y
> ldhwiTaH8PmGE72xhn+w+FElZvazwlFXSECHZK92wGFEzq5VO7atv88AOmtQHM1o
> LbgHOjhUYLQHj15JXn4g4XYFJ5WnZR3gbldAV9JEhXqnx30M6wMDrWCCw6K0+uh2
> k8Il3y6TMY7KSrnUYwTeljyrLYReoAtYfQxi6EdGBlKamuyKXtSBqO0a2J5wsxnv
> Z2fk3efWKDzdxbc9GmYbXMlTKtjYx5UYZ+PcgAuGvS81ejwzmiy5dH8rJYedx235
> j3D8JG/Y

RE: [ANNOUNCE] Apache Wicket 8.6.0 released

2019-09-09 Thread Olivier DUTRIEUX
I check the Improvement [WICKET-6684] on version 8.6.0 but I didn't find any 
trace of it. Maybe I messed something.

Duto

-Message d'origine-
De : Andrea Del Bene [mailto:adelb...@apache.org] 
Envoyé : samedi 7 septembre 2019 19:22
À : d...@wicket.apache.org; users@wicket.apache.org; annou...@apache.org; 
annou...@wicket.apache.org
Objet : [ANNOUNCE] Apache Wicket 8.6.0 released

The Apache Wicket PMC is proud to announce Apache Wicket 8.6.0!

Apache Wicket is an open source Java component oriented web application 
framework that powers thousands of web applications and web sites for 
governments, stores, universities, cities, banks, email providers, and more. 
You can find more about Apache Wicket at https://wicket.apache.org

This release marks another minor release of Wicket 8. We use semantic 
versioning for the development of Wicket, and as such no API breaks are present 
breaks are present in this release compared to 8.0.0.

Using this release
--

With Apache Maven update your dependency to (and don't forget to update any 
other dependencies on Wicket projects to the same version):


     org.apache.wicket
     wicket-core
     8.6.0


Or download and build the distribution yourself, or use our convenience binary 
package you can find here:

  * Download: http://wicket.apache.org/start/wicket-8.x.html#manually

Upgrading from earlier versions
---

If you upgrade from 8.y.z this release is a drop in replacement. If you come 
from a version prior to 8.0.0, please read our Wicket 8 migration guide found at

  * http://s.apache.org/wicket8migrate

Have fun!

— The Wicket team




     The signatures for the source release artefacts:


Signature for apache-wicket-8.6.0.zip:

     -BEGIN PGP SIGNATURE-

iQIzBAABCgAdFiEE0a6YZHC1pJw+aieyh48B+qjTVuEFAl1u0ggACgkQh48B+qjT
VuHBVRAAgX8nPfftIKv6z0Rimyg4M9hefpkwcVCkj8mQ2q9cnRQCNN8lWPrVsqOz
jfkWOM1I3rmjR60o5eREFuNK+t7RNxdwfdZqlB+zsgu2BCNscpQMaTruf2uI14ip
B83PYCMkTSDA+BCJD1MTwRf3Ih3M+0rq4l3vedzStfC4GvmmwHRvMWTOml5i9Whg
pSStZvX9h61n6ofRNq/feLQi7342GOgv+/r0cvTVDRdIsEeYGalu1b+ZJKsjfTX3
l0oMiRILzFltg+CQP0fhWibfLkvyRLM+R4598rgvwM+QcKo7aCn0LcIEIhp0dYDS
KI6IhsPd/NS0qKoKgIPmQ6tMsvMWGOxTOpQMxnAj97wVzYVf1QoXArPuc+JaSrFE
D/a78zUMc78UFjdt38NBA22jf7HbcjVkAUUjD9fPtNStFnnrisniyw16dL0Wa6MA
kuiPuyl7gsPAkmOXH68KtVaR7ncTORPCt4ZC/6GxoRbhDc71+dLPz5XKpeDdqy8O
/pBGtsucjI9xIGZqGHWFvfAaBqqv2t4QARxOdkDA9d09PL4o/N+gljho+a30GrDv
A35wG2y2Idkoe1t4EJeHpMHGPmqMAj/m1wYagJjMeiXRDgtfFoJIlRfAboxq8Dwd
uT+mRsdS0hq8q78yPZPW3N24cC3gwohFJMWfb4IukQbFGI2gznE=
=mzMF
-END PGP SIGNATURE-

Signature for apache-wicket-8.6.0.tar.gz:

     -BEGIN PGP SIGNATURE-

iQIzBAABCgAdFiEE0a6YZHC1pJw+aieyh48B+qjTVuEFAl1u0ggACgkQh48B+qjT
VuHSZw//WF61doVJ8fDK8hPvk8Td6Yf4hMzP7kff7tAkm+w72LqnXlUM7IDci5nz
Dcx627fBAYIXdRtfOkq53vRrFV+1e87x8iM/bnp7Tzj5lwF6BOvRkQ+gr6U6+6An
5CblTMT5kSq9xKGm8/Gj6I1OrQiVdSqFPWt7N/4D7FG9uekRVJoc+0ubekqdGR1M
lkoT8Wfteo7sstoD8qvQEgyKKZLqbxTKDGiVBywmSKVuxkv+4JnETI2k1R1TsCr0
/JdGx6fNxd/sBUKLoAUo8cxBpv9weuzvPCMw89eVGsKacBDedZMK7iMfR3M43Iz/
HuEN26JnHM3kqSBCMMYE197djXOroUhXmhr9WfNRxiaTqJsKbS1oG3jO9EkHQt8Y
ldhwiTaH8PmGE72xhn+w+FElZvazwlFXSECHZK92wGFEzq5VO7atv88AOmtQHM1o
LbgHOjhUYLQHj15JXn4g4XYFJ5WnZR3gbldAV9JEhXqnx30M6wMDrWCCw6K0+uh2
k8Il3y6TMY7KSrnUYwTeljyrLYReoAtYfQxi6EdGBlKamuyKXtSBqO0a2J5wsxnv
Z2fk3efWKDzdxbc9GmYbXMlTKtjYx5UYZ+PcgAuGvS81ejwzmiy5dH8rJYedx235
j3D8JG/YyG2Ja0r6nmwX7BDm8QS4W5eU+UQIyIq0KLCFND/qzSU=
=VBOu
-END PGP SIGNATURE-



     CHANGELOG for 8.6.0:

** Bug

     * [WICKET-6613] - Wicket 8.1 ModalWindow autosizing problem
     * [WICKET-6671] - IAjaxLink should be serializable
     * [WICKET-6676] - Quickstart application won't deploy to GlassFish
     * [WICKET-6680] - JavaScriptStripper chokes on template literals that 
contain two forward slashes
     * [WICKET-6689] - ClientProperties.getTimeZone() has some issue when DST 
and UTC offsets are different
     * [WICKET-6690] - NullPointerException in 
KeyInSessionSunJceCryptFactory.
     * [WICKET-6692] - Page deserialization on websocket close - possible 
performance issue

** Improvement

     * [WICKET-6675] - log4j-slf4j-impl requires version 1.7.25 of slf4j-api 
while Wicket 8.5 requires version 1.7.26
     * [WICKET-6684] - Make autolabel functionality more flexible by 
introducing a locator interface that allows to specify the component the 
wicket:for refers to
     * [WICKET-6695] - Add AjaxEditable*Label#shouldTrimInput()


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



setHeaderResponseDecorator and setGatherExtendedBrowserInfo(true)

2019-04-24 Thread Olivier Dutrieux
Hello,

I have define on application.init() the setHeaderResponseDecorator (to
deferred all javascript to the end of the page) and set
setGatherExtendedBrowserInfo to true to retrieve some informations from
browser.

The problem is when the BrowserInfoPage is render no js is add to the page
because the BrowserInfoPage  doesn't have the component
HeaderResponseContainer to deferred the js.

How can I solve this problem ?

Duto

-
Duto
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



RE: PrependJavaScript to replace a composant with animation

2017-11-01 Thread Olivier DUTRIEUX
No new about this problem : I need to create a jira issue ?

Duto


> -Message d'origine-
> De : Olivier DUTRIEUX [mailto:olivier.dutri...@pasteur.fr]
> Envoyé : samedi 30 septembre 2017 23:21
> À : users@wicket.apache.org
> Objet : PrependJavaScript to replace a composant with animation
> 
> Hello,
> 
> I use the functionnality of prependJavaScript to replace a composant with
> animation, but I have I a problem when I have two functions (on difference
> composants), one with normal syntax like this :
> 
> target.prependJavaScript("$('" + c.getMarkupId() +
> "').selectpicker('destroy')");
> 
> and I other one with special syntax for animation :
> 
> target.prependJavaScript(String.format("notify|var
> c=$('#%s.collapse');if(c.length){c.on('hidden.bs.collapse',function(){notify();}
> );c.collapse('hide');}else{notify();}", c.getMarkupId()));
> 
> I get a error when wicket evaluate the javascript :
> 
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript:
> SyntaxError: expected expression, got keyword 'var', text:
> (function(){$('#identifiedPerson17f').selectpicker('destroy');})();(function(){n
> otify|var
> c=$('#identifiedPersonContainer161.collapse');if(c.length){c.on('hidden.bs.co
> llapse',function(){notify();});c.collapse('hide');}else{notify();}})();
> 
> Thanks advance for your help
> 
> Duto


RE: PrependJavaScript to replace a composant with animation

2017-10-28 Thread Olivier DUTRIEUX
Hello,

I have time to check this problem :

The problem is that the regexp "scriptWithIdentifierR" tests that the 
javascript is in form of *start with* "identifier|code" or my javascript don't 
start with "identifier|code" because is :

(function(){$('#var1').selectpicker('destroy');})();(function(){notify|var 
c=$('#var2.collapse');if(c.length){c.on('hidden.bs.collapse',function(){notify();});c.collapse('hide');}else{notify();}})();

There is 2 functions : the first is a normal function but the second is 
"identifier|code" function.

If I change the var "scriptWithIdentifierR" (https://tinyurl.com/y8r24b5m) to :

new RegExp("\\(function\\(\\)\\{([a-zA-Z_]\\w*)\\|((.|\\n)*)?\\}\\)\\(\\);$");

without the ^ of the first caractere that work nicely.


-- 
Duto


> -Message d'origine-
> De : Martin Grigorov [mailto:mgrigo...@apache.org]
> Envoyé : mercredi 4 octobre 2017 10:13
> À : users@wicket.apache.org
> Objet : Re: PrependJavaScript to replace a composant with animation
> 
> Hi,
> 
> Put a breakpoint inside processEvaluation() method [1] and see what goes
> wrong.
> 
> 
> 1.
> https://github.com/apache/wicket/blob/58a7106d74de02cc9f193d95613b6c1
> f3483ca7b/wicket-
> core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-
> jquery.js#L1158
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov


RE: PrependJavaScript to replace a composant with animation

2017-10-03 Thread Olivier DUTRIEUX
This is a special syntax of wicket : 
http://wicketinaction.com/2013/02/replace-components-with-animation/

Anybody can't help me ?

-- 
Olivier Dutrieux
Groupe Projets (Tél : 31 62)

> -Message d'origine-
> De : Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com]
> Envoyé : dimanche 1 octobre 2017 00:35
> À : users@wicket.apache.org
> Objet : Re: PrependJavaScript to replace a composant with animation
> 
> Hi,
> 
> are you able to try to replace this by a normal if block:
> 
> ..format("notify|var..
> 
> Seems that this shortcut is causing the issue.
> 
> kind regards
> 
> Tobias
> 
> > Am 30.09.2017 um 23:21 schrieb Olivier DUTRIEUX
> <olivier.dutri...@pasteur.fr>:
> >
> > Hello,
> >
> > I use the functionnality of prependJavaScript to replace a composant with
> animation, but I have I a problem when I have two functions (on difference
> composants), one with normal syntax like this :
> >
> > target.prependJavaScript("$('" + c.getMarkupId() +
> "').selectpicker('destroy')");
> >
> > and I other one with special syntax for animation :
> >
> > target.prependJavaScript(String.format("notify|var
> c=$('#%s.collapse');if(c.length){c.on('hidden.bs.collapse',function(){notify();}
> );c.collapse('hide');}else{notify();}", c.getMarkupId()));
> >
> > I get a error when wicket evaluate the javascript :
> >
> > ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript:
> SyntaxError: expected expression, got keyword 'var', text:
> (function(){$('#identifiedPerson17f').selectpicker('destroy');})();(function(){n
> otify|var
> c=$('#identifiedPersonContainer161.collapse');if(c.length){c.on('hidden.bs.co
> llapse',function(){notify();});c.collapse('hide');}else{notify();}})();
> >
> > Thanks advance for your help
> >
> > Duto
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org



PrependJavaScript to replace a composant with animation

2017-09-30 Thread Olivier DUTRIEUX
Hello,

I use the functionnality of prependJavaScript to replace a composant with 
animation, but I have I a problem when I have two functions (on difference 
composants), one with normal syntax like this :

target.prependJavaScript("$('" + c.getMarkupId() + 
"').selectpicker('destroy')");

and I other one with special syntax for animation :

target.prependJavaScript(String.format("notify|var 
c=$('#%s.collapse');if(c.length){c.on('hidden.bs.collapse',function(){notify();});c.collapse('hide');}else{notify();}",
 c.getMarkupId()));

I get a error when wicket evaluate the javascript :

ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: 
SyntaxError: expected expression, got keyword 'var', text: 
(function(){$('#identifiedPerson17f').selectpicker('destroy');})();(function(){notify|var
 
c=$('#identifiedPersonContainer161.collapse');if(c.length){c.on('hidden.bs.collapse',function(){notify();});c.collapse('hide');}else{notify();}})();

Thanks advance for your help

Duto


PrependJavaScript to replace à composant with animation

2017-09-30 Thread Olivier Dutrieux
Hello,

I use the functionnality of prependJavaScript to replace à composant with
animation, but I have I a problem when I have two functions (on difference
composants), one with normal syntax like this :



and I other one with special syntax for animation :



I get a error when wicket evaluate the javascript : 



Thanks advance for your help

Duto

-
Duto
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: FormComponentPanel with tag

2016-12-22 Thread Olivier Dutrieux
Hi Martin,

Sorry for the problem with the visibility of the code on email :s

And you are all rights wicket generate ...
not ... : sorry I don't check the raw generated
html.

Thx for reply.

Duto

-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FormComponentPanel-with-input-type-test-tag-tp4676516p4676520.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



FormComponentPanel with tag

2016-12-22 Thread Olivier Dutrieux
I discover that if I do :



And I attach this composantForm to 


When wicket render the page I obtain :

   
 * I'm surprisely that's a work : I thought for FormComponentPanel.class
it's necessary to have a tag like  (with open and close tag) : it
is normal ?

 * when I update the afterFieldComponent (FormComponentPanel) by ajax
(AjaxRequestTarget) the label () is add (not replace) on the dom each
time a update the afterFieldComponent : I think it's a bug
 
 Best regarde
 
 Duto

-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FormComponentPanel-with-input-type-test-tag-tp4676516.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



Change language

2016-12-15 Thread Olivier Dutrieux
I have ajax dropdown list like this :

 
where I can change the language of the application :

 
I use StringResourceModel on class and wicket:message key='...' and
wicket:message attribute on tag : everythink work fine.

At this time to switch language I use :

But I have a problem with some composants where some parameters are not
model like for example DateTextField where the patternDate is a string not a
model :

For french this parameter need to be dd/MM/ and for english need to be
MM/dd/.

To solve this problem I need to recreate the page like this :


I have the same problem with behavior like ConfirmationBehavior (wicket
Bootstrap) where on config you can specify label of button.

To solve this problem I can use the solution above or add the behavior on
onConfigure method and set temporary (but it's not clean but that's work).

So I would like to know what is the best practice (recommendation) for this
use case (switch language) :

create new page : setResponsePage(getPage().class);
or 
re-use page : setResponsePage(getPage());
Thx advance for your reply

Duto

-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Change-language-tp4676460.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: Wicket atmosphere

2014-05-19 Thread Olivier Dutrieux
I do it : https://issues.apache.org/jira/browse/WICKET-5595

Bet regards

Duto

Le 19/05/2014 08:57, Papegaaij [via Apache Wicket] a écrit :
 Could you create a JIRA issue for this, so we (and other users) can track
 this issue? A short sample is not needed, because I can see in the code
 that this can indeed go wrong. I'll make sure this gets fixed in the next
 version.

 Best regards,
 Emond



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-atmosphere-tp4665687p4665923.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: Wicket atmosphere

2014-05-17 Thread Olivier Dutrieux
Hello Emond,

Very thanks to the update but I found a problem when I use long polling 
for the transport :

When the EventBus loop to the list of AtmosphereResource (on post 
method) and if the update is too long of each AtmosphereResource, the 
list of AtmosphereResource is update and reorder (because atmosphere 
remove and registry the AtmosphereResource due to long polling) and then 
the loop on EventBus never stop and update is infinitie.

To solve the probleme I do that on line 366 of EventBus.java :

for (AtmosphereResource resource : 
ImmutableList.copyOf(broadcaster.getAtmosphereResources()))

rather than

for (AtmosphereResource resource : broadcaster.getAtmosphereResources())


I can if you want attach I short sample.

Duto


Le 17/05/2014 01:22, Papegaaij [via Apache Wicket] a écrit :
 I replied to your mail already, but it seems my message was lost in 
 the mail
 outage. Atmosphere and the JS are upgraded on the wicket-6.x and
 master branches. I've also fixed the filter.

 https://issues.apache.org/jira/browse/WICKET-5589

 Best regards,
 Emond

 On Monday 05 May 2014 14:08:20 Olivier Dutrieux wrote:
  Could you please update the wicket-atmosphere with the last release
 2.1.4 :
  I know that this version depend of jquery 2.0.3+ but there is a pure
  javascript version (no jquery depend) :
 
  https://github.com/Atmosphere/atmosphere-javascript
 
  And I notice that's your version of TrackMessageSizeFilter don't extend
 the
  org.atmosphere.client.TrackMessageSizeFilter but it's necessary to be
 use
  everywhere my atmosphere : check line 72 of this JavaScriptProtocol 
 file
 for
  why :
 
  
 https://github.com/Atmosphere/atmosphere/blob/atmosphere-project-2.1.4/modul
 
 es/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java#L
 72

 
  I can pull a request if you want.
 
  Duto
 
  -
  Duto
  --
  View this message in context:
  
 http://apache-wicket.1842946.n4.nabble.com/Wicket-atmosphere-tp4665687.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=4665902i=0
  For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=4665902i=1



 
 If you reply to this email, your message will be added to the 
 discussion below:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-atmosphere-tp4665687p4665902.html
  

 To unsubscribe from Wicket atmosphere, click here 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4665687code=b2xpdmllci5kdXRyaWV1eEBwYXN0ZXVyLmZyfDQ2NjU2ODd8LTExODI0MjM1MTg=.
 NAML 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
  


-- 
Olivier Dutrieux
Groupe Projets (Tél : 31 62)


-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-atmosphere-tp4665687p4665909.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: Wicket atmosphere

2014-05-15 Thread Olivier Dutrieux

Hello,

I up my question : someone can help me ?

Duto

On 05/05/2014 23:08, Olivier Dutrieux wrote :

Could you please update the wicket-atmosphere with the last release 2.1.4 : I
know that this version depend of jquery 2.0.3+ but there is a pure
javascript version (no jquery depend) :

https://github.com/Atmosphere/atmosphere-javascript

And I notice that's your version of TrackMessageSizeFilter don't extend the
org.atmosphere.client.TrackMessageSizeFilter but it's necessary to be use
everywhere my atmosphere : check line 72 of this JavaScriptProtocol file for
why :

https://github.com/Atmosphere/atmosphere/blob/atmosphere-project-2.1.4/modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java#L72

I can pull a request if you want.

Duto


-
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



Wicket atmosphere

2014-05-05 Thread Olivier Dutrieux
Could you please update the wicket-atmosphere with the last release 2.1.4 : I
know that this version depend of jquery 2.0.3+ but there is a pure
javascript version (no jquery depend) : 

https://github.com/Atmosphere/atmosphere-javascript

And I notice that's your version of TrackMessageSizeFilter don't extend the
org.atmosphere.client.TrackMessageSizeFilter but it's necessary to be use
everywhere my atmosphere : check line 72 of this JavaScriptProtocol file for
why :

https://github.com/Atmosphere/atmosphere/blob/atmosphere-project-2.1.4/modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java#L72

I can pull a request if you want.

Duto

-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-atmosphere-tp4665687.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



property media of link css

2013-11-26 Thread Olivier Dutrieux
Media property of link (css) is not set if addResourceReplacement is set on
WebApplication.init :I set a css file on page via renderHead(IHeaderResponse
response) with screen media :and after if I defined a resourceReplacement on
application init :I don't have the property  media=screen when wicket
generated page.duto



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/property-media-of-link-css-tp4662677.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: property media of link css

2013-11-26 Thread Olivier Dutrieux
I add a sample of this problem : see attach Sample.rar
http://apache-wicket.1842946.n4.nabble.com/file/n4662678/Sample.rar  



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/property-media-of-link-css-tp4662677p4662678.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: Handler after jqXhR success et before ajax response proccess

2013-11-11 Thread Olivier Dutrieux
thx for your response Martin,

Maybe a handler in the IAjaxCallListener (between jqXHR.success and Ajax
response is process) will be very nice feature in the future version of
wicket :)

Duto





-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239p4662294.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



Handler after jqXhR success et before ajax response proccess

2013-11-08 Thread Olivier Dutrieux
I use a AjaxCallListener (getBeforeHandler) to execute some javascript before
the ajax processing, but I don't find a handler to execute some javascript
after jqXHR.success et before the Ajax response is process.

Is there a aim ?

Duto



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239.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: Handler after jqXhR success et before ajax response proccess

2013-11-08 Thread Olivier Dutrieux
To simple explain : on before XHRHttpRequest I change some div and want to
restore the div before Ajax response is processed because sometime the
respond processed update the div and sometime not. and if the ajax response
update the div I want to keep it (don't restore it) and if the div is not
update I want to restore it and for me the best think is to restore it in
all case before the response is processed ...

Sorry for my english :s

Duto



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239p4662242.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: Handler after jqXhR success et before ajax response proccess

2013-11-08 Thread Olivier Dutrieux
Is there a aim to execute processAjaxResponse (javascript method to handled
the ajax response by wicket-ajax.js) in IAjaxCallListener's success handler
if I set wr ajaxAttribute to false ?

Duto





-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handler-after-jqXhR-success-et-before-ajax-response-proccess-tp4662239p4662245.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



AjaxFormChoiceComponentUpdatingBehavior with onchange event

2013-09-30 Thread Olivier Dutrieux
Hello all,

Is there a way where I can use AjaxFormChoiceComponentUpdatingBehavior with
the onchange event (javascript) rather tha onclick ?

Because I need only ajax when the group radio change, because with the
onclick event, every time I click on the same radio button, the ajax event
is fire.

maybe it's not the right way ...

thx advance for your reply 

Duto



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-with-onchange-event-tp4661614.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: AjaxFormChoiceComponentUpdatingBehavior with onchange event

2013-09-30 Thread Olivier Dutrieux
thx : wicket is so amazing 



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-with-onchange-event-tp4661614p4661618.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: [ANNOUNCE] Wicket JQuery UI 6.11.0 is released

2013-09-28 Thread Olivier Dutrieux
Nice very nice



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ANNOUNCE-Wicket-JQuery-UI-6-11-0-is-released-tp4661596p4661598.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: Free Wicket guide now available!

2013-04-02 Thread Olivier Dutrieux
amazing work, thx

Duto



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Free-Wicket-guide-now-available-tp4657407p4657686.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: The Apache Software Foundation Announces Apache Wicket™ 6.0.0

2012-09-06 Thread Olivier Dutrieux
Very very nice, very very greatest job 

thx

Duto



-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/The-Apache-Software-Foundation-Announces-Apache-Wicket-6-0-0-tp4651780p4651815.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: Apache Wicket releases Wicket 1.5

2011-09-09 Thread Olivier Dutrieux
very very nice. Thx for all your hard works

Best regards 

Duto

-
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-releases-Wicket-1-5-tp3797412p3800920.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: TextField submit via Ajax

2011-02-10 Thread Olivier Dutrieux

Hello,

Just a question : why we can't add Behavior on onsubmit event on form to do
that ?


-
Duto
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3298726.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: TextField submit via Ajax

2011-02-10 Thread Olivier Dutrieux

I do that to intercept (by submit btn or ENTER key on every components form)
the submit form : 

form.add(new AjaxFormValidatingBehavior(form, onsubmit) {

@Override
protected void onSubmit(AjaxRequestTarget target) {
setResponsePage(ResultPage.class, null);
}

@Override
protected CharSequence getEventHandler() {
AppendingStringBuffer handler = new AppendingStringBuffer();
handler.append(super.getEventHandler());
handler.append(; return false;); //  very importante
return handler;
   }

});

If that can help.

Best regards

-
Duto
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3298872.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: Form/Enter Key Problem

2011-02-10 Thread Olivier Dutrieux

My solution is to AjaxFormValidatingBehavior on form :

I do that to intercept (by submit btn or ENTER key on every components form)
the submit form :

form.add(new AjaxFormValidatingBehavior(form, onsubmit) {

@Override
protected CharSequence getEventHandler() {
AppendingStringBuffer handler = new AppendingStringBuffer();
handler.append(super.getEventHandler());
handler.append(; return false;); //  very importante
return handler;
   }

});

If that's can help.

Best regards 

-
Duto
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Enter-Key-Problem-tp1869795p3298877.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



StatelessForm growing url when there is errorvalidation

2011-02-09 Thread Olivier Dutrieux

Hello,

I have a strange problem with statelessForm :

I would like a stateless application with 2 statelessForm and with somes
required validators on form :

public class HomePage extends WebPage {

private static final long serialVersionUID = 1L;

public HomePage(final PageParameters parameters) {
super(parameters);
setVersioned(false);
Form form1 = new StatelessForm(form1) {
@Override
protected void onSubmit() {
setResponsePage(ResultPage.class);
}
};
form1.add(new TextFieldString(input1).setRequired(true));
add(form1);

Form form2 = new StatelessForm(form2) {
@Override
protected void onSubmit() {
setResponsePage(ResultPage.class);
}
};
form2.add(new TextFieldString(input1).setRequired(true));
add(form2);
}
}

The problem is when I submit alternatively each form (I don't fill the
Textfield required intentionally), the url growing like this :

1st submit :
http://localhost:8080/Wicket-Test/HomePage.html?wicket:interface=:0:form2::IFormSubmitListener::
2nd submit :
http://localhost:8080/Wicket-Test/HomePage.html?form22_hf_0=wicket:interface=:0:form1::IFormSubmitListener::
3th submit :
http://localhost:8080/Wicket-Test/HomePage.html?form22_hf_0=form12_hf_0=wicket:interface=:0:form2::IFormSubmitListener::
4th submit :
http://localhost:8080/Wicket-Test/HomePage.html?form22_hf_0=form22_hf_0=form12_hf_0=wicket:interface=:0:form1::IFormSubmitListener::
...

Is there a solution to solve this problem ?

Best regards

I use wicket 1.4.15 

http://apache-wicket.1842946.n4.nabble.com/file/n3296950/Wicket-test.rar
Wicket-test.rar 

-
Duto
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StatelessForm-growing-url-when-there-is-errorvalidation-tp3296950p3296950.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: StatelessForm growing url when there is errorvalidation

2011-02-09 Thread Olivier Dutrieux

I already attach on my first post a sample (quickstart) :
http://apache-wicket.1842946.n4.nabble.com/file/n3296950/Wicket-test.rar

I fill too a jira ticket : https://issues.apache.org/jira/browse/WICKET-3438

Best regards



-
Duto
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StatelessForm-growing-url-when-there-is-errorvalidation-tp3296950p3298027.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: pb to access to this on event onchange on the AutoCompleteTextField

2009-01-05 Thread Olivier Dutrieux

I file a jira issue here : https://issues.apache.org/jira/browse/WICKET-2005
(with a example that's show the problem)



Gerolf Seitz wrote:
 
 hi,
 in case you haven't done it, can you please file a jira issue with an
 attached
 example quickstart project that leads to the error? i will take a look at
 it
 later
 today.
 
 thanks,
   gerolf
 
 On Sun, Jan 4, 2009 at 6:15 PM, Olivier Dutrieux
 dutri...@pasteur.frwrote:
 

 I would like create a component that extends AjaxEditableLabel with
 replace
 TextField with AjaxEditableAutoComplete.


 And I discovert a problem in the wicket-autocomplete.js when the event
 onchange is rewriting (line 83) :

 // WICKET-1280
objonchangeoriginal=obj.onchange;
obj.onchange=function(event){
if(mouseactive==1)return false;
if(typeof
 objonchangeoriginal==function)objonchangeoriginal();
}
objonchange=obj.onchange;



 the problem is that the objonchangeoriginal function can't access to the
 this object, and it's necessary because I change the onchange event on
 AjaxEditableAutoComplete in case I extends AjaxEditableLabel with this :


editor.add(new EditorAjaxBehavior() {
private static final long serialVersionUID = 1L;
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
final String saveCall = {wicketAjaxGet('
 +
 getCallbackUrl() +
 save=true'+this.name+'='+wicketEncode(this.value)); return true;};
tag.put(onchange, saveCall);
}
});


 then the best way to solve the problem is to change the invocation of
 objonchangeoriginal function with that :


 84// WICKET-1280
 85objonchangeoriginal=obj.onchange;
 86obj.onchange=function(event){
 87  if(mouseactive==1)return false;
 88  if(typeof
 objonchangeoriginal==function)objonchangeoriginal.apply(this, [event]);
 89  }
 90objonchange=obj.onchange;


 all invocation of function need to be change this with new invocation on
 the
 wicket-autocomplete.js file.

 --
 View this message in context:
 http://www.nabble.com/pb-to-access-to-this-on-event-onchange-on-the-AutoCompleteTextField-tp21278638p21278638.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 
 


-
Duto
-- 
View this message in context: 
http://www.nabble.com/pb-to-access-to-this-on-event-onchange-on-the-AutoCompleteTextField-tp21278638p21298647.html
Sent from the Wicket - User 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



pb to access to this on event onchange on the AutoCompleteTextField

2009-01-04 Thread Olivier Dutrieux

I would like create a component that extends AjaxEditableLabel with replace
TextField with AjaxEditableAutoComplete.


And I discovert a problem in the wicket-autocomplete.js when the event
onchange is rewriting (line 83) :

// WICKET-1280
objonchangeoriginal=obj.onchange; 
obj.onchange=function(event){
if(mouseactive==1)return false;
if(typeof objonchangeoriginal==function)objonchangeoriginal();
}
objonchange=obj.onchange;



the problem is that the objonchangeoriginal function can't access to the
this object, and it's necessary because I change the onchange event on
AjaxEditableAutoComplete in case I extends AjaxEditableLabel with this : 


editor.add(new EditorAjaxBehavior() {
private static final long serialVersionUID = 1L;
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
final String saveCall = {wicketAjaxGet(' + 
getCallbackUrl() +
save=true'+this.name+'='+wicketEncode(this.value)); return true;};
tag.put(onchange, saveCall);
}
});


then the best way to solve the problem is to change the invocation of
objonchangeoriginal function with that :


84// WICKET-1280
85objonchangeoriginal=obj.onchange; 
86obj.onchange=function(event){
87  if(mouseactive==1)return false;
88  if(typeof
objonchangeoriginal==function)objonchangeoriginal.apply(this, [event]);
89  }
90objonchange=obj.onchange;


all invocation of function need to be change this with new invocation on the
wicket-autocomplete.js file.

-- 
View this message in context: 
http://www.nabble.com/pb-to-access-to-this-on-event-onchange-on-the-AutoCompleteTextField-tp21278638p21278638.html
Sent from the Wicket - User mailing list archive at Nabble.com.