Re: Save place to set http response status?

2013-07-03 Thread Sven Meier
HttpServletResponse has no data to push until the very end of the request cycle. That's not quite right: As soon as WebPageRenderer writes the buffered page into the real response, Tomcat has something to flush. If it does flush (for whatever reason), any additional header set in

Re: Feedback message is not available for behaviors added to nested form components

2013-07-03 Thread Jesse Long
Hi James, This is a shortened list of events happening, including only the ones affecting you. They are in the order in which they occur. * IFormSubmitListener#onFormSubmitted() * ListView#onBeforeRender() * Page#onRender() ListView#onBeforeRender() calls ListView#onPopulate(). If you are

Re: Save place to set http response status?

2013-07-03 Thread Martin Grigorov
On Wed, Jul 3, 2013 at 10:02 AM, Sven Meier s...@meiers.net wrote: HttpServletResponse has no data to push until the very end of the request cycle. That's not quite right: As soon as WebPageRenderer writes the buffered page into the real response, Tomcat has something to flush. If it does

Re: Save place to set http response status?

2013-07-03 Thread Sven Meier
Yes, WebPageRenderer renders the page into a BufferedWebResponse. But after that it writes it into the response of the RequestCycle: response.writeTo((WebResponse)requestCycle.getResponse()); That's the point of no return. By default the RequestCycle's response is a ServletWebResponse nested

Re: Save place to set http response status?

2013-07-03 Thread Martin Grigorov
Correct. On Wed, Jul 3, 2013 at 10:29 AM, Sven Meier s...@meiers.net wrote: Yes, WebPageRenderer renders the page into a BufferedWebResponse. But after that it writes it into the response of the RequestCycle: response.writeTo((WebResponse)**requestCycle.getResponse()); By default

Re: wickettester and wizard next step submit response

2013-07-03 Thread ludo_xiv
Thanks a lot. IT WORKS now. :) - Pôvodná správa - Od: Paul Bors p...@bors.ws Komu: users@wicket.apache.org Odoslané: utorok, 2. júl 2013 20:15:38 Predmet: RE: wickettester and wizard next step submit response If you read the API docs for the FromTester you'll find out that you can only

Strict date pattern for DateTextField in Wicket

2013-07-03 Thread Jayakrishnan R
Hi All, I have a DateTextField component in my application and I want the input of date using a predefined pattern. The pattern that I need is -MM-dd. I created the DateTextField using the following code. DateTextField dtf_ExpiryDate = DateTextField.forDatePattern(ExpDate, -MM-dd);

cryptic error messages

2013-07-03 Thread Lucio Crusca
Hi *, I have the following markup snippet: div wicket:id=repeatingDocTypes span wicket:id=docTypeNameOrders/spanbr/ hr/ div wicket:id=repeatingDocRef a href=# wicket:id=doclinkspan wicket:id=docid/span/abr/ /div /div which is

Re: cryptic error messages [SOLVED]

2013-07-03 Thread Lucio Crusca
I've found that between this line of code: RepeatingView rv = new RepeatingView(repeatingDocTypes); and these ones: for (...) addDocTypeBox(rv, docs); I actually had an extra rv.newChildId() hidden in calls which obviously bumped the next id value... Still I can't understand the

Re: Strict date pattern for DateTextField in Wicket

2013-07-03 Thread francois meillet
search StrictPatternDateConverter in the forum François On Wed, Jul 3, 2013 at 12:21 PM, Jayakrishnan R jk.h...@gmail.com wrote: Hi All, I have a DateTextField component in my application and I want the input of date using a predefined pattern. The pattern that I need is -MM-dd. I

Re: Save place to set http response status?

2013-07-03 Thread Martin Funk
Besides the 'non' buffering trait of the BufferedWebResponse it is a little irritating, that the 'setStatus(int)' method doesn't signal if its execution is not successfull. Though locking into code like: org.apache.catalina.connector.ResponseFacade of Tomcat shows that it doesn't signal anything

Re: cryptic error messages [SOLVED]

2013-07-03 Thread Sven Meier
Hi, the dot is a leftover from the days when Wicket used '.' to separate component paths. I've fixed the exception message to use PATH_SEPARATOR, i.e. ':' Thanks Sven On 07/03/2013 01:17 PM, Lucio Crusca wrote: I've found that between this line of code: RepeatingView rv = new

Double validation in textfield

2013-07-03 Thread Lemke, Michael SZ/HZA-ZSW
We've seen some strange behavior with TextFieldDouble, which you can easily verify on http://www.wicket-library.com/wicket-examples/forminput In an English locale enter into the Double field: 6.5 result: 6.5 6,4 result: 64 6,4 result: 64 6,4, result: '6,4,' is not a valid Double.

Re: Double validation in textfield

2013-07-03 Thread Sven Meier
http://stackoverflow.com/questions/15809225/java-numberformat-ignoring-comma-in-us-locale i.e. a grouping separator can be at any position *between* digits. Sven On 07/03/2013 03:45 PM, Lemke, Michael SZ/HZA-ZSW wrote: We've seen some strange behavior with TextFieldDouble, which you can

RE: Double validation in textfield

2013-07-03 Thread Lemke, Michael SZ/HZA-ZSW
On Wednesday, July 03, 2013 4:02 PM, Sven Meier wrote: http://stackoverflow.com/questions/15809225/java-numberformat-ignoring-comma-in-us-locale i.e. a grouping separator can be at any position *between* digits. Thanks. Whoever came up with that idea... Oh well. Michael On 07/03/2013 03:45

How to call Java Function from JavaScript

2013-07-03 Thread Andun Sameera
Hi All, I have looked in to this topic in many places and found some ways. In this particular scenario, I have used https://cwiki.apache.org/confluence/display/WICKET/Calling+Wicket+from+Javascriptarticle as the reference. What I did in Java, public class HomePage extends WebPage { private

Re: How to call Java Function from JavaScript

2013-07-03 Thread Bas Gooren
Wicket's ajax functions require you to load the wicket ajax javascript. This is handled by the AbstractDefaultAjaxBahavior out of the box. However, since you do not call super.renderHead(component,response) in your code, the required javascript files are not loaded. Met vriendelijke groet,

fault in tree view

2013-07-03 Thread Piratenvisier
When you look at the tree structure in advanced nested view there is a wrong branch A AB ABB ABBA ABBB ABBBA ABC ABD AC I would like to use a tree structure where the nodes are links to wicket pages or where you can open a nodes panel in accordion style

Re: How to call Java Function from JavaScript

2013-07-03 Thread Andun Sameera
Thanks Bas! I have fixed the problem. On Thu, Jul 4, 2013 at 1:10 AM, Bas Gooren b...@iswd.nl wrote: Wicket's ajax functions require you to load the wicket ajax javascript. This is handled by the AbstractDefaultAjaxBahavior out of the box. However, since you do not call

Re: fault in tree view

2013-07-03 Thread Sven Meier
Hi, can you please explain how the branch is faulty or 'wrong'? You can override NestedTree#newContentComponent(String, IModel) to decide the representation of a node's content: MyNestedTree extends NestedTree { @Override public Component newContentComponent(String id, final

Re: fault in tree view

2013-07-03 Thread Piratenvisier
If you open the stucture in beginners view you have an other sequence of nodes than in advanced nested view Follow the path A AB ABB ABBA ABBB ABBBA ABC ABD AC in advanced nested view and try to follow it in beginners view. Am 03.07.2013 22:53, schrieb Sven Meier: Hi, can you please explain

Re: Feedback message is not available for behaviors added to nested form components

2013-07-03 Thread James Selvakumar
Hi Jesse, I was not aware of this before. Thanks for the insight But I do add/remove components to the ListView dynamically. Will ListView#setReuseItems(true) affect that? On Wed, Jul 3, 2013 at 3:12 PM, Jesse Long j...@unknown.za.net wrote: Hi James, This is a shortened list of events

markup not found exception for fragment which is part of wicket:extend

2013-07-03 Thread Rakesh A
Hi, I am using Wicket v6.5.0, I've code where wicket fragments are part of 'wicket:extend/' tag and I get exception that Markup is not found for the fragment, same piece of code works in Wicket v1.4.21. I created attached a quick start with code similar to my case. fragmentTest.zip