Re: NumberTextFieldDouble Issue

2013-03-11 Thread Paul Bors
Funny, I never had to use the number attribute thus far. But I'm using HTMl 4.01 and not 5. In HTML my browser can input decimals so it could be something else funky. ~ Thank you, Paul C Bors On Mar 10, 2013, at 16:26, William Speirs wspe...@apache.org wrote: I tried that and get the

Re: ThreadLocal with ajax

2013-03-11 Thread Ann Baert
Hi, Is their anything on the page that is triggered when an ajaxcall has happened? The onBeforeRenderer of the page is not called when their was an ajaxcall. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ThreadLocal-with-ajax-tp4657018p4657141.html Sent from the

Re: ThreadLocal with ajax

2013-03-11 Thread Martin Grigorov
Hi, #onBeforeRender() is called only for the components which are added to the AjaxRequestTarget. What you need is #onEvent(). For each Ajax request an event is broadcasted for the page and all components and behaviors inside it with an event which payload is AjaxRequestTarget. For example:

Re: NumberTextFieldDouble Issue

2013-03-11 Thread Martin Grigorov
Hi, On Sun, Mar 10, 2013 at 9:38 PM, William Speirs wspe...@apache.org wrote: I'm trying to use a NumberTextField with a type of Double and the form will only let me type in integers (or doubles that end in .0). Is this a known issue? Is there a workaround? Can you explain more ? I don't

Re: atmosphere: urls erased from response

2013-03-11 Thread Martin Grigorov
Hi, This is a known bug in Atmosphere. https://github.com/Atmosphere/atmosphere/issues/949 https://issues.apache.org/jira/browse/WICKET-5084 I think you can use the previous version of wicket-atmosphere until the fix is incorporated. On Sun, Mar 10, 2013 at 4:46 PM, Martin Geisse

Wicket 6 Migration (ITestPanelSource and ITestPageSource)

2013-03-11 Thread ramin
Hi What has ITestPanelSource and ITestPageSource been replaced with in Wicket 6? I have a few methods (in 1.5) that return these types and don't know what to replace them with. Thanks -- View this message in context:

Re: Wicket 6 Migration (ITestPanelSource and ITestPageSource)

2013-03-11 Thread Martin Grigorov
Hi, Those were deprecated in 1.5 and completely removed in 6.0. The replacement is #startComponentInPage(). All you have to do is to pass the panel class or instance to this new method. Wicket will create a Page for the test for you. On Mon, Mar 11, 2013 at 2:25 PM, ramin ramin.es...@gmail.com

Re: Wicket 6 Migration (ITestPanelSource and ITestPageSource)

2013-03-11 Thread ramin
Thanks for the reply. I am very new to Wicket so please accept my apologies for being a bit confused. Say in a class I have: WicketTester t = getTester(); t.startComponentInPage( myMethod() ); and in a super class I have: ITestPanelSource myMethod(){ return new ITestPanelSource() {

Re: Wicket 6 Migration (ITestPanelSource and ITestPageSource)

2013-03-11 Thread Martin Grigorov
Hi, On Mon, Mar 11, 2013 at 3:15 PM, ramin ramin.es...@gmail.com wrote: Thanks for the reply. I am very new to Wicket so please accept my apologies for being a bit confused. Say in a class I have: WicketTester t = getTester(); t.startComponentInPage( myMethod() ); and in a super

FormComponentPanel / counterpart of convertInput() ?

2013-03-11 Thread Patrick Davids
Hi all, I'm implementing a FormComponent which devides Date from Time in two input fields. It results in a simple Date Object... due to the method convertInput(). Works so far... But how to fill/load the FormComponent fields by Date on init? I'm looking for the counterpart of convertInput(),

Re: FormComponentPanel / counterpart of convertInput() ?

2013-03-11 Thread Sven Meier
You should set up your nested components with appropriate models. See DateTimeField for inspirations. Regards Sven On 03/11/2013 04:16 PM, Patrick Davids wrote: Hi all, I'm implementing a FormComponent which devides Date from Time in two input fields. It results in a simple Date Object...

Re: wiquery ResizableBehavior weird results on stop

2013-03-11 Thread Pieter Claassen
Ernesto, This is very strange. When I use your snapshot code in a quickstart project, it functions fine. But when I include it in my project, I always get the old x and y values (of one resize ago) in my callback. Can you think of any reason why this would be happening? Could this be an issue

Re: Does page know it was loaded with back button ?

2013-03-11 Thread Martin Grigorov
Hi, No. This is just a normal request that contains the page version/id in the url, e.g. some/url?3 - Wicket will load page with id==3 from the disk store. What is the use case ? Maybe there is another solution. On Mon, Mar 11, 2013 at 4:26 PM, armandoxxx armando@dropchop.comwrote: Hey

Re: Does page know it was loaded with back button ?

2013-03-11 Thread armandoxxx
Hey .. my use case is actually very simple ... I have a page with charts .. and by pressing on chart point you get redirected to another page with search results .. but there's a catch ... pages share search parameters .. which means by selecting search parameters on one page, another page

Re: wiquery ResizableBehavior weird results on stop

2013-03-11 Thread Pieter Claassen
Ok, I can confirm that the request URI contains the wrong (old parameters). Below is a request URI I get after resizing the window to max width (note the width here is 4px while the real panel is 800px). Could this be that I have some dud JS floating around that is messing this up?

RE: DropDown in palette's header ?

2013-03-11 Thread Paul Bors
@Override protected Component newAvailableHeader(String componentId) { return new AvailableHeaderPanel(componentId, form); } Where AvailableHeaderPanel is your own panel. ~ Thank you, Paul Bors -Original Message- From: grazia [mailto:grazia.russolass...@gmail.com] Sent:

RE: DropDown in palette's header ?

2013-03-11 Thread Paul Bors
Sorry, you wanted inside the selected header... same thing only a different override. Look up the API of the Palette. ~ Thank you, Paul Bors -Original Message- From: Paul Bors [mailto:p...@bors.ws] Sent: Monday, March 11, 2013 12:25 PM To: users@wicket.apache.org Subject: RE: DropDown

Re: DropDown in palette's header ?

2013-03-11 Thread grazia
oh, so my dropdown would have to go into a panel. I'll try it. Is there a way I can keep track of the items that the user might move from the left side to the right side of the palette ? And viceversa ? On Mon, Mar 11, 2013 at 11:25 AM, Paul Bors [via Apache Wicket]

Wicket 6 Migration (getEventHandler())

2013-03-11 Thread Ramin
Hi In my code, getEventHandler() has been Overriden a few times but now getEventHandler() of AjaxFormSubmitBehavior/AjaxEventBehavior no longer exists in Wicket 6. I keep finding myself on the following page when looking for an answer but even after reading it a few times I still don't

Re: wiquery ResizableBehavior weird results on stop

2013-03-11 Thread Ernesto Reinaldo Barreiro
Check your JS libraries inclusion against quick-start... There might be something weird going on (like several versions of wiquery-UI) On Mon, Mar 11, 2013 at 5:17 PM, Pieter Claassen pie...@musmato.com wrote: Ok, I can confirm that the request URI contains the wrong (old parameters). Below is

Re: DropDown in palette's header ?

2013-03-11 Thread grazia
If this is the statespanel; ?xml version=1.0 encoding=UTF-8 ? wicket:panel xmlns:wicket=http://wicket.apache.org; div label class='dataEntryLabel'Select a State:/label select wicket:id=states/select /div /wicket:panel public class StatePanel extends Panel { /**

Re: atmosphere: urls erased from response

2013-03-11 Thread Martin Geisse
Thank you very much. After reading the bugs you linked to, I ended up using an older version of Atmosphere (not wicket-atmosphere) -- atmosphere 1.0.9 -- and it works fine now. Greetings, Martin Geisse On Mar 11, 2013, at 10:58 AM, Martin Grigorov wrote: Hi, This is a known bug in

Re: Wicket 6 Migration (getEventHandler())

2013-03-11 Thread Martin Grigorov
Hi, What do you do in this method ? On Mon, Mar 11, 2013 at 6:37 PM, Ramin ramin.es...@gmail.com wrote: Hi In my code, getEventHandler() has been Overriden a few times but now getEventHandler() of AjaxFormSubmitBehavior/AjaxEventBehavior no longer exists in Wicket 6. I keep finding

Re: NumberTextFieldDouble Issue

2013-03-11 Thread William Speirs
I'll need to double check and get back to you, but I think it might be a bootstrap issue. The input box gets styled with controls to increase and decrease the number and that might be the issue. Thanks... Bill- On Mar 11, 2013 5:30 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Sun,

Re: NumberTextFieldDouble Issue

2013-03-11 Thread William Speirs
OK... so it's not Wicket related, it is a combination of Bootstrap + Chrome + HTML5. This blog post I found actually explains it quite well: http://blog.isotoma.com/2012/03/html5-input-typenumber-and-decimalsfloats-in-chrome/ The short version is that there is a step attribute when an input's

RSS

2013-03-11 Thread Stephen Walsh
Anyone have a working solution for producing RSS feeds from content stored in a DB on a Wicket 6.5+ page? I've been reading through all of the old docs on wicketstuff-rome, but it seems it's not supported with the changes made to 6.5+. I can generate my xml file, but not really sure how to go