Re: get page instance in AtmosphereRequestHandler

2014-02-24 Thread Martin Grigorov
Hi, You should have started a page before sending websocket requests to it, as in the real usage. By using tester.startPage(thePage) Wicket will store the page in MockPageManager and later you can find it by its id. Martin Grigorov Wicket Training and Consulting On Sat, Feb 22, 2014 at 5:13

Re: bug or new feature

2014-02-24 Thread Martin Grigorov
Hi Ernesto, On Sat, Feb 22, 2014 at 8:46 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: On Wicket 6.13.0 following code script type=text/template id=message-template div class=sender pull-left div class=icon img src=img/2.jpg class=img-circle

Translate wicket app to new domain

2014-02-24 Thread Tron Walseth
Hi all We have made a wicket app for a very specific domain (animal tracking) Now we have multiple customer requests for completely different domains, but the functionality is mainly the same. Is there an easy way of translating our web pages to new solution domains? Tron

Re: Translate wicket app to new domain

2014-02-24 Thread Martin Grigorov
Hi, Is this helpful - http://wicket.apache.org/guide/guide/i18n.html ? Martin Grigorov Wicket Training and Consulting On Mon, Feb 24, 2014 at 10:56 AM, Tron Walseth t...@telespor.no wrote: Hi all We have made a wicket app for a very specific domain (animal tracking) Now we have multiple

Re: get page instance in AtmosphereRequestHandler

2014-02-24 Thread Pierre Goupil
Well, that's what I did, indeed. But it wasn't enough. I've found a way, I need more deep testing of it, but for the moment it looks OK. Regards, Pierre On Mon, Feb 24, 2014 at 9:07 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, You should have started a page before sending websocket

Re: bug or new feature

2014-02-24 Thread Ernesto Reinaldo Barreiro
3) was what i have suggested in issue... wicket:nosacan=true but for backward compatibility it would be nice if it the other way around. wicket:scan='true' On Mon, Feb 24, 2014 at 9:11 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi Ernesto, On Sat, Feb 22, 2014 at 8:46 AM, Ernesto

Re: bug or new feature

2014-02-24 Thread Martin Grigorov
On Mon, Feb 24, 2014 at 11:56 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: 3) was what i have suggested in issue... wicket:nosacan=true but for backward compatibility it would be nice if it the other way around. wicket:scan='true' The question is: is it really needed ? I'd

Re: bug or new feature

2014-02-24 Thread Ernesto Reinaldo Barreiro
Well I have not tried adding a CDATA but I do not see why it should not work... My point is backward compatibility. As a user this is an unexpected change: I just upgrade my application and it suddenly stops working. On Mon, Feb 24, 2014 at 10:59 AM, Martin Grigorov

Re: Translate wicket app to new domain

2014-02-24 Thread haiko
Hi Tron, If you mean a new domain on a object level, you could try to create an abstract level of your domain which fits animals and the other domains and have wicket components and models use that. Regards, Haiko Tron Walseth t...@telespor.no schreef: Hi all We have made a wicket app

Re: Problem with FormTester and EJB Injection

2014-02-24 Thread Martin Grigorov
I'd bet that @Override public void init() { super.init(); try { new CdiConfiguration(CDI.current().getBeanManager()).configure(this); } catch (IllegalStateException e) { } } fails when running in unit test environment. Fix it. Martin Grigorov Wicket Training and Consulting On Mon, Feb 24,

Re: double type text field - auto roundsoff

2014-02-24 Thread nazeem
Today i noticed the same behaviour in another text field of type double. But on refresh the issue was not repeating. So.. any clue to trouble shoot this issue in this form ? where it is consistently reproduced. -- View this message in context:

Re: double type text field - auto roundsoff

2014-02-24 Thread Sven Meier
Are you using HTML5's type=number? Sven On 02/24/2014 02:43 PM, nazeem wrote: Today i noticed the same behaviour in another text field of type double. But on refresh the issue was not repeating. So.. any clue to trouble shoot this issue in this form ? where it is consistently reproduced. --

Re: double type text field - auto roundsoff

2014-02-24 Thread Martin Grigorov
Hi, What type attribute do you use for the input ? Maybe the rounding happens at the client side. Martin Grigorov Wicket Training and Consulting On Mon, Feb 24, 2014 at 3:43 PM, nazeem md.naz...@gmail.com wrote: Today i noticed the same behaviour in another text field of type double. But

Forwarding to 404 Page

2014-02-24 Thread Tom Norton
Let's say I have a detail page with url /widgets/${id}. If there is no widget for the given id, how would I redirect the user to the 404 page? I'm using wicket 1.5. Thanks, Tom

Re: Forwarding to 404 Page

2014-02-24 Thread Martin Grigorov
Hi, Since the application code reads the value of 'id' parameter and checks the DB for an item with this id it is in your control to do: setResponsePage(My404.class) Another way is to define a page for 404 in web.xml and just throw AbortWithHttpErrorCodeException(404). The rest will be handled

[ANNOUNCE] WicketStuff 6.14.0 is released

2014-02-24 Thread Martin Grigorov
Hi, WicketStuff core 6.14.0 based on Apache Wicket 6.14.0 is released and will be available in Maven Central soon. The changelog for this release is: Rob Sonke (10): Compile against wicket 6.14 Rewrote the fitBounds functionality partially to let it work in a non ajax environment

Re: double type text field - auto roundsoff

2014-02-24 Thread nazeem
Here is the generated html input type=text id=txInput209 name=forceForm_body:plannedQty:txfCntr:txInput value=1 class=full-width On inspecting the DOM i see the set range text property set to setRangeText : setRangeText() If i remove the on blur event , the value remains as decimal, but

Re: Generating Dynamic PDF using AjaxFallbackButton

2014-02-24 Thread Abigail
HI there In modern enterprise's document management system, people often need to process and handle large volumes of multi-page PDF document files. Therefore, a professional PDF document page processing http://www.rasteredge.com/how-to/csharp-imaging/pdf-processing/ utility will bring much