Cannot find the form error caused.

2014-03-20 Thread chathuraka.waas
hi, i'm trying to migrate my applicatioin to 6.14, i'm having a form which has a AjaxSubmitLink. i have attached a form validator to the form as well. for debugging purposes i have placed debug points at validator method,inside onSubmit() of AjaxSubmit link and inside onError() of

Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14

2014-03-20 Thread Heshani
I migrated from wicket 1.4 to 6.14, when trying to update an radio button I'm getting the below exception, java.io.NotSerializableException: org.apache.wicket.resource.loader.ComponentStringResourceLoader Below is the the implementation for the RadioChoice, and when i debugged it doesn't go

Additional Parameter fro AutoComplete

2014-03-20 Thread Jan Moxter
Hello Wicket, is there a way to send additional parameters from the UserInterface for the ajax call on an AutoComplete. The reason for it is that in an form the User can use parameters as a filter for the AutoComplete and i do not want to make so much Ajax Calls just to now what the User

Re: Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14

2014-03-20 Thread Martin Grigorov
Hi, Please paste the exception message for the error: java.io.NotSerializableException: org.apache.wicket.resource.loader.ComponentStringResourceLoader Martin Grigorov Wicket Training and Consulting On Thu, Mar 20, 2014 at 1:44 PM, Heshani heshni.per...@gmail.com wrote: I migrated from

multiple jQuery libraries in Wicket 6

2014-03-20 Thread trlt
Hi, I recently tried to upgrade my wicket application from 1.5.10 to 6.14.0. One of my wicket pages has a component that is generated by someone else which still runs on jQuery 1.4.4 (and there, jQuery 1.4.4 library is included in the header). Including jQuery 1.4.4 breaks my Wicket Ajax links

custom bootstrap stylesheet

2014-03-20 Thread Richter, Marvin
Hi, How do I use a customized Bootstrap CCS file in wicket-bootstrap? I tried this: new BootstrapSettings().setCssResourceReference(new PackageResourceReference(CcaWebApplication.class, customized-bootstrap.css)); Unfortunately getCssResourceReference will never be called, instead the

Re: multiple jQuery libraries in Wicket 6

2014-03-20 Thread Martin Grigorov
Hi, I'm afraid this won't be possible. To use two versions of jQuery you will need to call var myJQuery = jQuery.noConflict() on one of them. But wicket-ajax-jquery.js expects window.jQuery to be available so you will need to call .noConflict() on jQuery 1.4.4, but since it is not in your control

Re: Additional Parameter fro AutoComplete

2014-03-20 Thread Martin Grigorov
Hi, This is not possible at the moment. You should either use a copy of wicket-autocomplete.js or monkey-patch it to override the methods that deal with the Ajax requests. There was a ticket with a patch about making this more friendly in Wicket 7.x but I cannot find it right now. Martin

RE: custom bootstrap stylesheet

2014-03-20 Thread Richter, Marvin
Where should I set this? The BootstrapSettings only provide the method : setThemeProvider(ThemeProvider t); but not: setTheme(Theme t); Marvin Richter -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, March 20, 2014 3:23 PM To:

Re: custom bootstrap stylesheet

2014-03-20 Thread Martin Grigorov
See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an example Martin Grigorov Wicket Training and Consulting On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin marvin.rich...@jestadigital.com wrote: Where should I set this? The BootstrapSettings only provide the method :

Re: custom bootstrap stylesheet

2014-03-20 Thread Martin Grigorov
Hi, Set BootstrapTheme(IBootstrapSettings) as a default theme. Martin Grigorov Wicket Training and Consulting On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin marvin.rich...@jestadigital.com wrote: Hi, How do I use a customized Bootstrap CCS file in wicket-bootstrap? I tried this: new

Re: Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14

2014-03-20 Thread Heshani
A problem occurred while checking object with type: org.apache.wicket.resource.loader.ComponentStringResourceLoader Field hierarchy is: 5 [class=com.fanminder.merchant.app.programs.offers.PublishOfferPage, path=5] private java.lang.Object org.apache.wicket.MarkupContainer.children

Re: Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14

2014-03-20 Thread Martin Grigorov
Hi, ContentBoxSetupForm has a member field with name 'componentStringResourceLoader' that causes the problem. You should not keep a reference to it. You should use getApplication().getResourceSettings().getStringResourceLoaders() where/when needed instead Martin Grigorov Wicket Training and

Re: Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14

2014-03-20 Thread Heshani
Thanks Martin, the above exception got fixed. but right now im getting the below exception, org.apache.wicket.WicketRuntimeException: Attempted to set property value on a null object. Property expression: settings Value: com.fanminder.entity.ContentBoxSettings[ id=2 ] at

RE: custom bootstrap stylesheet

2014-03-20 Thread Richter, Marvin
So I do have to override DefaultThemeProvider and return a BootstrapTheme(ISettings), where in Settings is my custom CssResourceReference? And then set this ThemeProvider as activeThemeProvider in the Settings? That sounds really strange to me. Marvin Richter -Original Message- From:

Re: Gets an NotSerializableException on RadioChoice update after migrating to wicket 6.14

2014-03-20 Thread Martin Grigorov
New problem = new mail thread ! ;) The exception happens when you use something like : new PropertyModel(object, x.y) If object is null or object.x is null then this error happens Martin Grigorov Wicket Training and Consulting On Thu, Mar 20, 2014 at 5:46 PM, Heshani heshni.per...@gmail.com

RE: custom bootstrap stylesheet

2014-03-20 Thread Richter, Marvin
Ok, I'll think about a better solution and will open a ticket. When will you expect your first final Major release? So maybe we could implement a better Configuration but with API breaks? Marvin Richter -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent:

Re: custom bootstrap stylesheet

2014-03-20 Thread Martin Grigorov
I think it is OK to make API breaks now - we are still in less-than-1.0.0 so according to SemVer it is allowed. Martin Grigorov Wicket Training and Consulting On Thu, Mar 20, 2014 at 6:03 PM, Richter, Marvin marvin.rich...@jestadigital.com wrote: Ok, I'll think about a better solution and

Re: Show textfield as plaintext when disabled?

2014-03-20 Thread Entropy
*bump* I still need help making this technique work for TextAreas whose onComponentTagBody methods are final. I have also discovered the need for this in a RadioGroup. I apply RadioGroup to a wicket:container which wraps some markup that includes my radio buttons. Works fine. In readonly, I

DefaultExceptionMapper-Connection lost, give up responding.

2014-03-20 Thread eaglei22
I am getting this error in IE while using a modal window to perform a search of the database: Mar 20 09:50:10 ERROR DefaultExceptionMapper-Connection lost, give up responding. org.apache.wicket.protocol.http.servlet.ResponseIOException: ClientAbortException: java.net.SocketException: Broken pipe

Re: Show textfield as plaintext when disabled?

2014-03-20 Thread Entropy
Of course the instant I submit the question, I thought of something else to try. I stopped overriding onComponentTag and changed the body to: @SuppressWarnings(unchecked) public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) {

Wicket-Bootstrap 0.9.2 js resource not found.

2014-03-20 Thread David Beer
Hi All I am updating a wicket-bootstrap application from 0.9.0-SNAPSHOT to 0.9.2 and am getting the following error message logged. I am running JBoss AS 7.1. None of the js seems to work. [org.apache.wicket.request.resource.ResourceReferenceRegistry] (http--127.0.0.1-8080-5) A ResourceReference

Re: Additional Parameter fro AutoComplete

2014-03-20 Thread Jan Moxter
Hallo Martin, the tickets I found do not include the thins I would need. Just to get your opinion on the way i am planning to do this. I want to add a a String to AutoCompleteSettings that allows to have a js -function called. That would allow me to alter the Attributes used for the Ajax