Re: How can i reset the data in TextFields?

2011-06-27 Thread HarryBakker
Hi Igor, I think i get the idea. To summarise in my own brief way: Every TextField (among others) has besides a Model, also an input buffer. This buffer contains what the user typed. It is also the contents of this buffer that is subject to validation. Only when validation succeeds, the buffers

RE: Override modal.js functionality because of issue with form inside form

2011-06-27 Thread Brown, Berlin [GCG-PFS]
Either way, if I wanted to override that functionality. What is a way to do so? I am going to try adding the modal-override.js javascript And then getting rid of the inner form: Wicket.Window.getMarkup = ... CustomModal extends ModalWindow

Upgrade Wicket to 1.5-RC5.1 - 'Page expired'

2011-06-27 Thread Thomas Franconville
Hi, Upgrading wicket from 1.5-RC4.2 to 1.5-RC5.1 make my Junit Test down with the error 'Page expired' /** * Simple test using the WicketTester */ public class TestHomePage { private WicketTester tester; @Before public void setUp() { tester = new WicketTester(new

Re: Upgrade Wicket to 1.5-RC5.1 - 'Page expired'

2011-06-27 Thread Martin Grigorov
Put a breakpoint in org.apache.wicket.request.handler.PageProvider.getPageInstance() and see what happens. It seems the test tries to retrieve a page from the page store by id but there is no such. On Mon, Jun 27, 2011 at 12:20 PM, Thomas Franconville tfranconvi...@tetraedge.com wrote: Hi,

Re: Upgrade Wicket to 1.5-RC5.1 - 'Page expired'

2011-06-27 Thread Thomas Franconville
yes, It happens in org.apache.wicket.request.handler.PageProvider.getPageInstance() , but not for the WelcomePage, but the redirection page (RedirectPage). the CASPageAuthorizationStrategy as we are not authentified a org.apache.wicket.RestartResponseAtInterceptPageException with in parameter

Re: Upgrade Wicket to 1.5-RC5.1 - 'Page expired'

2011-06-27 Thread Martin Grigorov
Please create a quickstart app and attach it to Jira On Mon, Jun 27, 2011 at 12:49 PM, Thomas Franconville tfranconvi...@tetraedge.com wrote: yes, It happens in org.apache.wicket.request.handler.PageProvider.getPageInstance() , but not for the WelcomePage, but the redirection page

GMap2 in a Wiquery Dialog

2011-06-27 Thread Philipp
I am trying to open a Google Map using GMap2 in a WiQuery Dialog modal window. The goal is to use the modal window in order to show a large map (800 x 500 px). However, when I open the modal window only the small part of the map is shown, whereas the rest is only a grey area. If I open the

RE: GMap2 in a Wiquery Dialog

2011-06-27 Thread Hielke Hoeve
This looks like a styling issue as the google layer (controls and buttons) does fill the window. Have you tried inspecting the html elements (chrome and firefox+firebug are easiest to use) to see if maybe one of the html elements in the window have wrong css classes assigned? Hielke

Re: Override modal.js functionality because of issue with form inside form

2011-06-27 Thread Pedro Santos
On Mon, Jun 27, 2011 at 6:06 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Either way, if I wanted to override that functionality.  What is a way to do so? I am going to try adding the modal-override.js javascript OK, just add the following lines to the new model-override.js

Re: How can i reset the data in TextFields?

2011-06-27 Thread Igor Vaynberg
On Mon, Jun 27, 2011 at 12:54 AM, HarryBakker harmengo...@gmail.com wrote: Hi Igor, I think i get the idea. To summarise in my own brief way: Every TextField (among others) has besides a Model, also an input buffer. This buffer contains what the user typed. It is also the contents of this

How to List/Iterate Through All Components?

2011-06-27 Thread eugenebalt
Guys, sorry for the stupid question, but I need to know, How do I list all components on my current page? I expected to see a Page.getComponents() that would return an Iterator of all my Components, or a List, but I didn't see a method like that. Thanks a lot -- View this message in context:

Re: How to List/Iterate Through All Components?

2011-06-27 Thread Per Newgro
Am 27.06.2011 18:58, schrieb eugenebalt: Guys, sorry for the stupid question, but I need to know, How do I list all components on my current page? I expected to see a Page.getComponents() that would return an Iterator of all my Components, or a List, but I didn't see a method like that. Thanks

Distinguish between error messages for date

2011-06-27 Thread Anna Simbirtsev
Hi, I have a date text field and I want to give 2 different error messages for different errors: 1) invalid date 2) invalid date format DateTextField myField = new DateTextField(myField, -MM-dd) { private static final long serialVersionUID = 1L;

using a different pagemap

2011-06-27 Thread Douglas Ferguson
We are using ResourceStreamRequestTarget for streaming an export. Is there a way to have this request use a different page map, sorta like the way that when you open a new tab it uses a different page map? Douglas

Re: streaming files with wicket

2011-06-27 Thread Douglas Ferguson
Yeah.. I thought of that, but I liked the idea of streaming without hitting disc. On Mon, Jun 20, 2011 at 3:55 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: i dont think there is a way once you start streaming with an attachment header... you can try rendering the page into memory and

Re: Distinguish between error messages for date

2011-06-27 Thread Igor Vaynberg
you can write your own converter that distinguishes the two situations and throws a ConversionException with an appropriate resource key. -igor On Mon, Jun 27, 2011 at 10:48 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, I have a date text field and I want to give 2 different error

Re: Wicket and OSGi

2011-06-27 Thread Harald Wellmann
There is now a new module wicket-osgi in wicketstuff/core at Github with some glue code to adapt Wicket to OSGi house rules. Summary: - wicket-osgi supports bootstrapping a WicketApplication from the OSGi service registry, matching a property value specified as a WicketFilter init parameter

Re: streaming files with wicket

2011-06-27 Thread Martin Grigorov
Igor's response doesn't mention hitting disk. You can do it in memory On Mon, Jun 27, 2011 at 9:17 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Yeah.. I thought of that, but I liked the idea of streaming without hitting disc. On Mon, Jun 20, 2011 at 3:55 PM, Igor Vaynberg

Re: using a different pagemap

2011-06-27 Thread Martin Grigorov
I guess to not lock the access to that page from Ajax requests. Douglas: you can use shared resource to do the streaming, On Mon, Jun 27, 2011 at 9:20 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: pagemaps are for managing page expirations. why would you want to stream something in a

Re: Wicket and OSGi

2011-06-27 Thread Attila Király
Good work. Could you also document the new module on wicketstuff wiki? https://github.com/wicketstuff/core/wiki Thanks, Attila 2011/6/27 Harald Wellmann harald.wellm...@gmx.de There is now a new module wicket-osgi in wicketstuff/core at Github with some glue code to adapt Wicket to OSGi

Re: Wicket and OSGi

2011-06-27 Thread Martin Grigorov
I also reviewed the code - good job! I saw that you basically copy/pasted DefaultClassResolver to OsgiClassResolver with minor modifications. I think it will be better if we make DCR easier to extend so there is no need to copy/paste its code. On Mon, Jun 27, 2011 at 10:53 PM, Attila Király

Re: Wicket and OSGi

2011-06-27 Thread Harald Wellmann
Am 27.06.2011 22:13, schrieb Martin Grigorov: I also reviewed the code - good job! Thanks :-) I saw that you basically copy/pasted DefaultClassResolver to OsgiClassResolver with minor modifications. I think it will be better if we make DCR easier to extend so there is no need to copy/paste