Re: Feedback Panel

2011-08-18 Thread Martin Grigorov
Enable DEBUG logging for org.apache.wicket.Localizer and see what is attempted. On Wed, Aug 17, 2011 at 3:38 PM, McDulin, Bill bmcdu...@cardinalsolutions.com wrote: Hi, I am using the BigDecimalConverter which is being fired before the Validation occurs inside of a form. This is then in turn

Re: onchane not working with jquery numeric plugin

2011-08-18 Thread Rodrigo Heffner
Hi Rebecca, I'm quite new to wicket but I've had a similar problem before. I would imagine that the jquery function must be binded to the same behaviour (onchange) that you're using in your code. If you change your code to be triggered onblur, does this happen as well? On 18 Aug 2011 06:31,

Re: Simple non ajax callback

2011-08-18 Thread nino martinez wael
ok that was also what I looked into but was unsure if there was another even simpler way. Thanks -Nino 2011/8/17 Igor Vaynberg igor.vaynb...@gmail.com: see how Link does it... all you need to do is implement one of the listener interfaces and call urlfor(component, interface) to generate a

Re: Simple non ajax callback

2011-08-18 Thread Martin Grigorov
mount a Page or Resource at given url and fire requests to that url ... On Thu, Aug 18, 2011 at 10:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: ok that was also what I looked into but was unsure if there was another even simpler way. Thanks -Nino 2011/8/17 Igor Vaynberg

Re: onchange not working with jquery numeric plugin

2011-08-18 Thread rebecca
The ajax did work with onkeyup but i really need the onchange event. What do you mean by the jquery function must be binded to the same behaviour ? Thanks Rebecca -- View this message in context:

onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
Hi all, I have a little problem to test a form in my application. I have a FileUploadField with an abstractValidator like that : FileUploadField fuploadField = new FileUploadField(uploadImage, new ModelFileUpload()); fuploadField.add(new AbstractValidatorFileUpload() {

Re: onchane not working with jquery numeric plugin

2011-08-18 Thread Martin Grigorov
It sounds like TexoTela plugin kills the JavaScript event, i.e. it does something like: event.preventDefault(), event.stopPropagation(). Better check the plugin code and see what happens. On Thu, Aug 18, 2011 at 8:30 AM, rebecca rivka.shis...@gmail.com wrote: hello, I'm using wicket 1.4.16. I

Re: onchange not working with jquery numeric plugin

2011-08-18 Thread Rodrigo Heffner
I mean that the numeric() function may have logic that changes / overrides wicket's onchange calls, either the numeric() function works or (if removed) the AjaxFormComponentUpdatingBehavior works. On Thu, Aug 18, 2011 at 9:03 AM, rebecca rivka.shis...@gmail.com wrote: The ajax did work with

Re: Wicket-auth issue

2011-08-18 Thread Martin Grigorov
Indeed this check looks wrong. Please file a ticket in our Jira to fix it. On Wed, Aug 17, 2011 at 4:11 PM, mathieu.marcotte-gag...@bell.ca mathieu.marcotte-gag...@bell.ca wrote: Hi wicket developers and users, I am developing a web application that uses the wicket-auth framework 1.4.17, more

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
little precision : it the same thing for file size validation. I have a maxSize to my form : form.setMaxSize(Bytes.kilobytes(50)); when I test it manually, I have error message, but not when I test it by wicketTester and formTester... I don't understand what I forgot or what I doing wrong

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Martin Grigorov
Which version of Wicket ? Looking at both 1.4.x and 1.5-SNAPSHOT code I think validation should be executed. 1.5 code is much cleaner ... On Thu, Aug 18, 2011 at 11:26 AM, Mathilde Pellerin mathilde.pelle...@statlife.fr wrote: little precision : it the same thing for file size validation. I

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
I use Wicket 1.4.17. Validation is not execute only when testing. I mean, only validation of my FileUploadField : maxSize error and my own abstractValidation errors are not executed. It's why I thought I made a mistake in my test...

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Martin Grigorov
ticket+quickstart On Thu, Aug 18, 2011 at 11:44 AM, Mathilde Pellerin mathilde.pelle...@statlife.fr wrote: I use Wicket 1.4.17. Validation is not execute only when testing. I mean, only validation of my FileUploadField : maxSize error and my own abstractValidation errors are not executed.

Re: onchane not working with jquery numeric plugin

2011-08-18 Thread rebecca
Hi Martin, I checked the plug-in js file and did not find use of the functions you mentioned. Anyways, even with my poor JS knowledge i understood that there is a clash with the plug-in. Can you recommend of another package that i can use for client side numeric restriction on text field. Is

Re: onchane not working with jquery numeric plugin

2011-08-18 Thread Martin Grigorov
The question is: do you really need this client side validation ? If YES then override getAjaxCallDecorator of the AjaxFormComponentUpdatingBehavior and do something like: onDecorateScript(String script) { return if (parseInt(this.value) !== NaN) { + script + }; } On Thu, Aug 18, 2011 at

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
you can find it here : https://issues.apache.org/jira/browse/WICKET-3973

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Martin Grigorov
thanks! On Thu, Aug 18, 2011 at 12:45 PM, Mathilde Pellerin mathilde.pelle...@statlife.fr wrote: you can find it here : https://issues.apache.org/jira/browse/WICKET-3973 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com

Re: onchane not working with jquery numeric plugin

2011-08-18 Thread rebecca
I wish things were dependent on what i need (it's a business requirement) :-) About your example - I don't want to show a message on parse error, I just don't want to let the user to input characters that are not numbers. -- View this message in context:

Re: onValidate() not called by FormTester.submit()

2011-08-18 Thread Mathilde Pellerin
problem solved on Jira : I used formTester.setValue() instead of formTester.setFile() in my tests. With FormTester.setFile() it works well. Thank you Martin for your help.

Log bookmarkable page link execution

2011-08-18 Thread Mike Mander
Hi, i would like to log execution of bookmarkable page links. I know that they are only renderered in markup and call the page from the browser. Maybe someone has a hint for me here? Thanks Mike - To unsubscribe, e-mail:

Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread aksarben
How can I make a Wicket page open in a new browser tab/window? I'm not talking about a popup, but a standard window. I have an app that needs to open a GIS map viewer in a separate window, based on the user's current context. The map viewer requires that I submit a form with GPS coordinates, so I

Re: Wicket 1.5 and Automatic Link Disabling

2011-08-18 Thread Jonathan Locke
Well, even with HEAD of trunk, I'm still not getting link disabling so I may try to create a quickstart. However, those funny errors trying to resolve style.css have a workaround: simply stop using mountPackage and they go away. -- View this message in context:

Re: Wicket 1.5 and Automatic Link Disabling

2011-08-18 Thread Martin Grigorov
add style.css problem in the quickstart too On Thu, Aug 18, 2011 at 4:28 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: Well, even with HEAD of trunk, I'm still not getting link disabling so I may try to create a quickstart. However, those funny errors trying to resolve style.css have a

Re: Simple non ajax callback

2011-08-18 Thread Igor Vaynberg
how could it possibly be _even_ simpler? -igor On Thu, Aug 18, 2011 at 12:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: ok that was also what I looked into but was unsure if there was another even simpler way. Thanks -Nino 2011/8/17 Igor Vaynberg igor.vaynb...@gmail.com:

Re: How to Handle ResourceStreamNotFoundException

2011-08-18 Thread hfriederichs
Firstly, thank you very much for your advice, it helps to a certain extend, but it also raises new questions. Unfortunately, there's only one way to determine whether a zip-file contains an installation manual. Since the zip-file is on another server (where the nexus repository resides), I have

Re: How to Handle ResourceStreamNotFoundException

2011-08-18 Thread Dan Retzlaff
Hans, Something like the following will probably work better for you. The key concept is changing the request target. Sorry if my previous suggestion put you down a dead end. add(new LinkDeployVersion(manualLink, deployVersionModel) { @Override public void onClick() { IResourceStream

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread Dan Retzlaff
Did you try putting target=_black on the form tag? On Thu, Aug 18, 2011 at 5:30 AM, aksarben rwada...@up.com wrote: How can I make a Wicket page open in a new browser tab/window? I'm not talking about a popup, but a standard window. I have an app that needs to open a GIS map viewer in a

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread Dan Retzlaff
s/black/blank/ :) On Thu, Aug 18, 2011 at 10:41 AM, Dan Retzlaff dretzl...@gmail.com wrote: Did you try putting target=_black on the form tag? On Thu, Aug 18, 2011 at 5:30 AM, aksarben rwada...@up.com wrote: How can I make a Wicket page open in a new browser tab/window? I'm not talking

Re: Log bookmarkable page link execution

2011-08-18 Thread Dan Retzlaff
Is your goal to understand which links are used to open certain bookmarkable pages? If so, here's an approach that might get you started. Create a Behavior which appends a tracking query parameter to BookmarkablePageLinks. You could add it manually to each link you want to track, or apply it

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread aksarben
Unfortunately, by that point, it's too late. The small HTML form has already appeared in my app window, even the map viewer subsequently opens in a new window, my app content has been destroyed. Since I posted this topic, I decided to go with PopupSettings. Since my corporate target audience all

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread Dan Retzlaff
On Thu, Aug 18, 2011 at 11:03 AM, aksarben rwada...@up.com wrote: Unfortunately, by that point, it's too late. The small HTML form has already appeared in my app window, even the map viewer subsequently opens in a new window, my app content has been destroyed. Is it necessary to replace

Cache Wicket Pages rather than Construct New Objects

2011-08-18 Thread eugenebalt
We have several Wicket pages that get constructed and then are available to the user via hyperlinks. There is no need to re-construct those Wicket pages because they never change from that point on. They are static info pages. However, each time the user accesses a page, we construct a new

Re: Cache Wicket Pages rather than Construct New Objects

2011-08-18 Thread Martin Grigorov
The problem is elsewhere. setResponsePage(Class) creates a new instance but this instance is later reclaimed by the GC. If you keep any reference to the created Page instance then it will stay around until this reference is GC-ed. You can use setResponsePage(Page) method to link to an existing

Re: Cache Wicket Pages rather than Construct New Objects

2011-08-18 Thread Hans Lesmeister
The link's action is to setResponsePage(MyPage.class), but that creates a new object. Suppose we were keeping all our Page objects in a Session. Is there a way to setResponsePage() to an existing Page instance? You can replace or extend the DefaultPageFactory (IPageFactory) Regards Hans

Re: Cache Wicket Pages rather than Construct New Objects

2011-08-18 Thread Mauro Ciancio
Yes, but AFAIR there could be multithreading issues if you share a page object among differents threads. Am I wrong? Regards. On Thu, Aug 18, 2011 at 4:26 PM, Hans Lesmeister hans.lesmeis...@lessy-software.de wrote: The link's action is to setResponsePage(MyPage.class), but that creates a

Re: Cache Wicket Pages rather than Construct New Objects

2011-08-18 Thread Sven Meier
Hi, each time the user accesses a page, we construct a new instance, which decreases memory by 3 MB. hopefully the memory is reclaimed by the garbage collector afterwards, isn't it? Sven On 08/18/2011 08:58 PM, eugenebalt wrote: We have several Wicket pages that get constructed and then

Re: Opening Wicket Page in New Browser Tab/Window

2011-08-18 Thread Gregor Kaczor
Some months ago I had the same/similar problem. You have to add the attribute by overriding onComponentTag(ComponentTag tag). As far as I remember you should use the usual org.apache.wicket.markup.html.form.Button with it, AjaxButton won't work. FormVoid form = new

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-18 Thread Dan Retzlaff
It looks like you have multiple versions of the Wicket JARs on your classpath. Since that function was removed in https://issues.apache.org/jira/browse/WICKET-3702, I'd guess that your extensions JAR is older than your main wicket JAR. Hope that helps, Dan On Thu, Aug 18, 2011 at 5:47 PM,