Re: problem with ajax buttons + fields with AjaxFormComponentUpdatingBehavior

2013-07-24 Thread Martin Grigorov
On Tue, Jul 23, 2013 at 6:44 PM, Andrew Geery andrew.ge...@gmail.comwrote: Just to make sure I'm understanding this correctly, it should be enough to simply override updateAjaxAttributes on AjaxButton and specify a channel that does not have ACTIVE behavior, like this: @Override

Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Martin Grigorov
Hi, On Tue, Jul 23, 2013 at 10:57 PM, Andrew Schetinin ascheti...@gmail.comwrote: Hi Cedric, I'm not sure what you mean by a quick start, but here you may find the piece of code I'm using: This is how the shared resource is initialized with the application: @Override protected void

Re: How to make an own panel work like an e.g. TextField / joining the model hierarchy of page/form

2013-07-24 Thread Patrick Davids
Hi Martin, concerning the IComponentInheritedModel I did not not try anything in my panel since yet, because I suppose it should work from the scratch, when a manually wrap the ModelObject on form level into CompundPropertyModel. As I can see CompoundPropertyModel is an

access denied to Resource

2013-07-24 Thread Piratenvisier
I want to give access to a file *.xslt I tried SecurePackageResourceGuard guard = new SecurePackageResourceGuard(); guard.addPattern(+*.xslt); getResourceSettings().setPackageResourceGuard(guard); but no success always the error WARN -

Re: How to make an own panel work like an e.g. TextField / joining the model hierarchy of page/form

2013-07-24 Thread Martin Grigorov
Hi Patrick, On Wed, Jul 24, 2013 at 10:36 AM, Patrick Davids patrick.dav...@nuboit.dewrote: Hi Martin, concerning the IComponentInheritedModel I did not not try anything in my panel since yet, because I suppose it should work from the scratch, when a manually wrap the ModelObject on form

Re: access denied to Resource

2013-07-24 Thread Martin Grigorov
On Wed, Jul 24, 2013 at 10:52 AM, Piratenvisier hansheinrichbr...@yahoo.dewrote: I want to give access to a file *.xslt I tried SecurePackageResourceGuard guard = new SecurePackageResourceGuard(); guard.addPattern(+*.xslt); Add

NumberFormatException from Requests with invalid URIs

2013-07-24 Thread Mathias Binder
Hi, we became aware of a problem caused by requests with invalid URIs on our wicket-application. The URI contains strings like *://*:*, so wicket tries to determine and parse a port number, that is not present. This leads to NumberFormatExceptions with URIs like, e.g. http://host/h@@p://h@@p://

Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Andrew Schetinin
Hi Martin, Thank you for the advise with attributes.getPageParameters() .get(id) - I did not know about it. You wrote: *Wicket won't call MediaStorageResourceReference#* *getResource() if the request url doesn't match the mount path.* Now, that's not quite correct - when I create a resource

Re: Reading placeholder parameters in mounted resources

2013-07-24 Thread Martin Grigorov
On Wed, Jul 24, 2013 at 11:31 AM, Andrew Schetinin ascheti...@gmail.comwrote: Hi Martin, Thank you for the advise with attributes.getPageParameters() .get(id) - I did not know about it. You wrote: *Wicket won't call MediaStorageResourceReference#* *getResource() if the request url

Re: NumberFormatException from Requests with invalid URIs

2013-07-24 Thread Sven Meier
Hi, which Wicket version? Url parsing has been improved on lately: @Test public void weirdUrl() { Url url = Url.parse(http://wicket.apache.org/h@@p://h@@p://;); assertEquals(wicket.apache.org, url.getHost()); assertEquals(/h@@p://h@@p://, url.getPath());

Re: NumberFormatException from Requests with invalid URIs

2013-07-24 Thread Mathias Binder
We work with Version 6.7.0 Mathias 2013/7/24 Sven Meier s...@meiers.net: Hi, which Wicket version? Url parsing has been improved on lately: @Test public void weirdUrl() { Url url = Url.parse(http://wicket.apache.org/h@@p://h@@p://;);

DropDownChoice with Confirm Dialog

2013-07-24 Thread Marco Di Sabatino Di Diodoro
Hi all, I like implement a DropDownChoice with an Confirm Dialog. I used an AjaxFormComponentUpdatingBehavior(on change) to intercept the change in the DropDownChoice. In addition, the user must first confirm the operation with a dialog before changing the value in the DropDownChoice. To do

Re: DropDownChoice with Confirm Dialog

2013-07-24 Thread Martin Grigorov
Hi, On Wed, Jul 24, 2013 at 11:54 AM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi all, I like implement a DropDownChoice with an Confirm Dialog. I used an AjaxFormComponentUpdatingBehavior(on change) to intercept the change in the DropDownChoice. In addition, the

Re: DropDownChoice with Confirm Dialog

2013-07-24 Thread Marco Di Sabatino Di Diodoro
Hi Martin, attrs.event.preventDefault() not work. My DropDownChoice changes always. M Il giorno 24/lug/2013, alle ore 10:59, Martin Grigorov mgrigo...@apache.org ha scritto: Hi, On Wed, Jul 24, 2013 at 11:54 AM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi

Re: DropDownChoice with Confirm Dialog

2013-07-24 Thread Martin Grigorov
This is purely JS problem. I don't find anything in the web that can do this automatically for you. Here is a possible solution: store the previous selected value in a custom attribute, e.g. data-prev-index=... then in the precondition code replace attrs.event.preventDefault() with : var $select =

cannot import org.apache.wicket.authroles.authorization.role.Roles in Wicket 6.9

2013-07-24 Thread daspegren
Hi all, I am new to Wicket and am trying to build my first page with authorization. But I cannot do: Import org.apache.wicket.authroles.authorization.role.Roles; It just says that it cannot resolve 'org.apache.wicket.authroles'. Why is that? If somebody has a good tutorial or example

Jquery tooltip for multiple fields in wicket

2013-07-24 Thread Murugan
AM Using wicket framework , I need jquery tooltip till the mouse focus on the field. There are multiple fields in the screen, whenever the user scroll the mouse to the different fields tooltip should appear until the mouse take away from the particular field. -- View this message in context:

Re: Jquery tooltip for multiple fields in wicket

2013-07-24 Thread Martin Grigorov
Hi, If you use Twitter Bootstrap then you can check http://wb.agilecoders.de/demo/js#tooltips Otherwise for jQuery UI see: http://www.7thweb.net/wicket-jquery-ui/ On Wed, Jul 24, 2013 at 8:57 AM, Murugan murugan4...@gmail.com wrote: AM Using wicket framework , I need jquery tooltip till the

Re: cannot import org.apache.wicket.authroles.authorization.role.Roles in Wicket 6.9

2013-07-24 Thread Martin Grigorov
Hi, You need to add dependency to wicket-auth-roles project ( http://search.maven.org/#artifactdetails%7Corg.apache.wicket%7Cwicket-auth-roles%7C6.9.1%7Cjar ) See wicket-examples.war. It shows how to use it ( http://www.wicket-library.com/wicket-examples-6.0.x/index.html - three authentication

Re: access denied to Resource

2013-07-24 Thread Piratenvisier
I now have SecurePackageResourceGuard guard = new SecurePackageResourceGuard(); guard.addPattern(+*.xslt); guard.setAllowAccessToRootResources(true); getResourceSettings().setPackageResourceGuard(guard); and I get the following results for

file upload in nested form with CPM needs dummy model

2013-07-24 Thread Tom Eicher
Hello, I have an outer form, with a CPM for a business entity. An inner form FormVoid uploadImageForm = new Form(UploadImageForm); has a FileUploadField uploadImageField = new FileUploadField(UploadImageField); and when I submit the inner form, wicket tries to find getters/setters for

Re: problem with ajax buttons + fields with AjaxFormComponentUpdatingBehavior

2013-07-24 Thread Andrew Geery
The problem is the ajax-loader-mask. As per this posting ( http://stackoverflow.com/questions/12403999/jquery-click-event-doesnt-work-after-change-event), the click happens (but no js click event yet), the js change event is sent for the modified form field, Wicket handles the change event, the

Re: NumberFormatException from Requests with invalid URIs

2013-07-24 Thread Martin Funk
Hi Sven, we still can reproduce this on any version. Maybe this git diff gives a clearer picture: diff --git a/wicket-core/src/test/java/org/apache/wicket/protocol/http/servlet/ServletWebRequestTest.java

RE: Form questions

2013-07-24 Thread Paul Bors
Is okay for your form to receive an IModel and is also okay not to receive any models and use a LodableDetachableModel warpped in a CompoundPropertyModel internally as per my precious e-mail. Okay, let's stick with the form constructor having an IModel argument. What's this model?

Re: access denied to Resource

2013-07-24 Thread Piratenvisier
Problem is solved! Am 24.07.2013 14:32, schrieb Piratenvisier: I now have SecurePackageResourceGuard guard = new SecurePackageResourceGuard(); guard.addPattern(+*.xslt); guard.setAllowAccessToRootResources(true);

Re: TinyMCE Twitter Bootstrap Toggle

2013-07-24 Thread Alec Swan
I noticed that TinyMce plugin in WicketStuff 1.5.9.1 packages an old version of TinyMce. Does anybody know what is the latest TinyMce Wicket plugin release compatible with Wicket 1.5.9? Thanks, Alec On Tue, Jul 23, 2013 at 2:13 PM, Alec Swan alecs...@gmail.com wrote: I am on Wicket 1.5.9

Re: Wicket Atmosphere - Encoding and MultiTab issues

2013-07-24 Thread fliptaboada
Ticket filed :) https://issues.apache.org/jira/browse/WICKET-5285 The browsers have a limit of max opened connections to a domain. For Firefox and Chrome it is 6 connections. For IE 7/8 (not sure about the newer versions) it is 2. Interesting, Is this diferent when using websocket? We

Re: TinyMCE Twitter Bootstrap Toggle

2013-07-24 Thread Andrea Del Bene
ver 1.5.9.1 is the latest one. Look here: http://mvnrepository.com/artifact/org.wicketstuff/wicketstuff-tinymce I noticed that TinyMce plugin in WicketStuff 1.5.9.1 packages an old version of TinyMce. Does anybody know what is the latest TinyMce Wicket plugin release compatible with Wicket