Re: jQuery reference with context relative path

2013-09-03 Thread divad91
Thank you again, it's working ! Dav -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/jQuery-reference-with-context-relative-path-tp4661155p4661180.html Sent from the Users forum mailing list archive at Nabble.com.

jQuery reference with context relative path

2013-08-30 Thread divad91
Hi, I am using wicket 6.8.0. I need to use a custom jquery reference. My custom js file is in my webapp/scripts/lib folder. I cannot figure out how to create a ResourceReference base on a url like HeaderItem. *Application.init:*

Re: Form submit without redirection

2013-06-18 Thread divad91
Yeah it would be much easier that way. We have ajax for every actions in our form but when we want to change page, we use the full submit. I could do the same thing with an abstract behavior. I will give it a try. Thanks. -- View this message in context:

Re: Form submit without redirection

2013-06-17 Thread divad91
Hi thanks for your response. The errors that I want to send back are my form business error. I use jQuery validate to do my frontend validation and to display them. We build a custom plugin to display the business errors the same way the frontend errors are displayed. So basically, I send back a

Form submit without redirection

2013-06-14 Thread divad91
Hi, I migrated my application from wicket 1.4.21 to 6.8.0. In the onSubmit method of a SubmitLink, if errors are present in the submitted values, I want to display the same page with the specified errors. In wicket 1.4, I was doing this : public void handleErrors() { if

Re: Form submit without redirection

2013-06-14 Thread divad91
Or is there a way I can add extra post parameters to my request ? I don't want to put my errors in my session (too much management). I would like to add my errors to my request only for the current request (request scope) Is there a way I can achieve this ? Thanks -- View this message in

Re: RadioChoice AjaxFormChoiceComponentUpdatingBehavior and validation

2013-06-12 Thread divad91
Thanks Sven, I had not tested the setEventPropagation(BUBBLE), only the setAllowDefault(true). It's working perfectly right now ! @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { attributes.setAllowDefault(true);

Re: RadioChoice AjaxFormChoiceComponentUpdatingBehavior and validation

2013-06-04 Thread divad91
Thank you for your response. By overriding the updateAjaxAttributes and adding attributes.setAllowDefault(true), my javascript validation works but my behavior (ajax call) is not triggered. @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {

Re: RadioChoice AjaxFormChoiceComponentUpdatingBehavior and validation

2013-06-04 Thread divad91
The ajax response are the same if I compare with a Wicket 6.6.0 application version. Looks like the AjaxFormChoiceComponentUpdatingBehavior is blocking the jQuery Validation to unhighlight my field before the ajax call is triggered. -- View this message in context:

Re: RadioChoice AjaxFormChoiceComponentUpdatingBehavior and validation

2013-06-04 Thread divad91
The problem is really related with the onClick event. I copied the class AjaxFormChoiceComponentUpdatingBehavior in my project (hijacking) and changed the event click by onchange. The validation and the ajax call are working perfectly. Jquery validation bind a click event on my radioChoice.

Re: AbstractDefaultAjaxBehavior complete handler

2013-06-04 Thread divad91
You could override the getSuccessScript() method. Return the javascript code or method to be executed. David -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AbstractDefaultAjaxBehavior-complete-handler-tp4659230p4659232.html Sent from the Users forum mailing list

Re: AbstractDefaultAjaxBehavior complete handler

2013-06-04 Thread divad91
I am using wicket 6.6.0 and these behaviors: AjaxFormComponentUpdatingBehavior AjaxFormSubmitBehavior. In both case, I am overriding the getPreconditionScript() and getSuccessScript() method to display and hide a please wait gif around each ajax call. @Override protected

RadioChoice AjaxFormChoiceComponentUpdatingBehavior and validation

2013-06-03 Thread divad91
Hi, Im not sure if my problem is related to wicket or jQuery but since I upgraded from wicket 6.6.0 to 6.8.0, my required validation on RadioChoice is not working anymore. The problems occurs on every RadioChoice with an AjaxFormChoiceComponentUpdatingBehavior behavior. If I removed the

getPrefixToContextPath and optional named parameters

2013-04-12 Thread divad91
Hi, I am migrating from wicket 1.4.21 to wicket 6.6.0. In a javascript template, I need to get the path of an image. In wicket 1.4.21, I used to do : values.put(datePickerImageUrl, String.format(%simages/icn-calendar.png, RequestCycle.get().getRequest().getRelativePathPrefixToContextRoot()));

Re: getPrefixToContextPath and optional named parameters

2013-04-12 Thread divad91
Great it's working ! I did not know this util class. A huge thank you ! I was writing my own getPrefixToContextPath method base on the request url ! Thanks again ! David -- View this message in context:

Re: Browser Cookie detection

2013-04-08 Thread divad91
In wicket 1.4.21, I was using the RedirectException class. Cookies were transfered. public HomePage(final PageParameters parameters) { super(parameters); if (MySession.session().isSessionSetup()) { Cookie requestCookie =

Re: Browser Cookie detection

2013-04-08 Thread divad91
thanks it's working ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Cookie-detection-tp4657744p4657826.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: Browser Cookie detection

2013-04-05 Thread divad91
Does NonResettingRestartException suppose to keep the cookies in the response ? I am using wicket 6.6.0 on jboss 6 and when I throw a NonResettingRestartException, the cookies are not present in the request after. Cookie appCookie = new Cookie(appCoookie, 1); ((WebResponse)

Re: Browser Cookie detection

2013-04-05 Thread divad91
Sorry this was just a test cookie. Even with the age, Cookie appCookie = new Cookie(appCoookie, 1); appCookie.setMaxAge(3600 * 5); appCookie.setPath(/); appCookie.setSecure(false); the cookie is not transfer. When i debug, in the transferResponseMetaData of the NonResettingRestartException

Re: Browser Cookie detection

2013-04-05 Thread divad91
I just created a new wicket 6.6.0 quickstart project (http://wicket.apache.org/start/quickstart.html) and I have the same problem. If I add the following code in the HomePage class, Cookie requestCookie = ((WebRequest) getRequest()).getCookie(appCoookie);

Browser Cookie detection

2013-04-04 Thread divad91
Hi I just migrated to wicket 6.6.0 and I need display a page to the customer when his browser cookies are disabled. Is there a better approach to do this ? Is it better to - add a cookie to the response and redirect to the same page and then check the presence of the cookie in the request Or

Re: Browser Cookie detection

2013-04-04 Thread divad91
Thanks for your answer ! If I check the presence of the cookies in Javascript, how would you redirect the client to the cookie disabled page ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Cookie-detection-tp4657744p4657749.html Sent from the Users forum

Re: Browser Cookie detection

2013-04-04 Thread divad91
Thanks for your help I will consider this option ! David -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Cookie-detection-tp4657744p4657753.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AjaxEventBehavior called twice because of javascript onchange

2013-02-15 Thread divad91
My mistake, I works great with the nullvalid. I just realize that if I have an onchange behavior and a javascript (jQuery) onchange function bind on the same dropdown, with IE, calling the javascript onchange function will also call the wicket onchange behavior. Can't figure out why. -- View

AjaxEventBehavior called twice because of javascript onchange

2013-02-13 Thread divad91
Hi, I using wicket 1.4.21 and developing an application that needs to work in IE7 and +., firefox, chrome etc. I have a problem with IE. Ajax listener are called twice because I have javascript that remove the dropdown default empty option Choose One. My ajax listener is called on first time

IE DropDown onChange behavior not triggered on first time

2013-02-11 Thread divad91
Hi, I have a strange behavior on dropdowns with Internet Explorer and wicket onchange behavior. I have a basic DropDownChoice with a basic onchange AjaxFormComponentUpdatingBehavior. The first time I enter the page, the onchange event will not be triggered on first click. To make the onchange

Re: IE DropDown onChange behavior not triggered on first time

2013-02-11 Thread divad91
Sorry, i am using wicket 1.4.21. My onchange behavior does not change the value. My behavior only prepend javascript only for a specific value. I am not changing the value programatically. On first page acces, if I select any option in the drowndown, the onchange event will not be trigger

Ad dynamic javascript to a component

2013-01-30 Thread divad91
Hi, I would like to add javascript inside a panel. The problem is that I need to get server informations inside the javascript. I know we can an abstract behavior and add the javascript in the header by overriding the renderHead method but i don't want my script in the head. I would like my

Re: urls with localization

2013-01-16 Thread divad91
Hi, Do you think it's possible to replace the url language part /en/ , /fr/ by other english or french url ? Instead of having /fr/home /en/home could we have /frenchCompanyName/home /englishCompanyName/home I changed the LocaleUrlCodingStrategyDecorator class to do so but I have lots of

Re: Wicket Layout Design

2012-07-23 Thread divad91
Thanks Jesse for your reply. The only drawback of this method is that I will need to override theses 3 methods (createNewHeader, createNewFooter...) in all pages that extends BasePage.java.Ideally I would like to avoid copying code but I think it's the cleaner way to override layout components.

Wicket Layout Design

2012-07-19 Thread divad91
Hi, I am new to Wicket. I'm working on a multi province web application. The goal is to use the same web application for all provinces. CSS and some business logic will differ for each province. I want to know the best ways to instantiate my layout components in my base page. (Using markup