RE: Could not find child with id: cart:prezzo in the wicket:enclosure

2012-03-27 Thread Wilhelmsen Tor Iver
Last cause: Could not find child with id: cart:prezzo in the wicket:enclosure You are running into an issue with repeaters: Their subelements have the index as part of the path, so the relative element id for the first row element would be cart:0:prezzo - and with no rows there is no element

RE: AjaxIndicatingDropDownChoice

2012-03-27 Thread Wilhelmsen Tor Iver
How do I change the cursor to Wait as long as the spinner is also spinning? Use CSS (cursor: progress;) for the element used as the busy indicator, either on id or on class with or without the :hover pseudoclass. - Tor Iver

Re: What real life scenario calls for page ID?

2012-03-27 Thread Martin Grigorov
On Tue, Mar 27, 2012 at 12:51 AM, Paolo irresistible...@gmail.com wrote: Alle giovedì 22 marzo 2012, Pointbreak ha scritto: On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: No that is not what happens with NoVersionMount: i didnt say it was an ajax twistie Not being an

RE: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-27 Thread Wilhelmsen Tor Iver
I want to know how to input date into database using form. I am using Timestamp in mysql. The Wicket-related psrt of that question is that you use a TextFieldDate with a model, and you then get the model object value in onSubmit() and use normal SQL to insert or update. - Tor Iver

Re: Dynamic Select and SelectOptions

2012-03-27 Thread Gytis
Hi, I just had the problem alike, where if my list of selectoptions was empty, optgroup header was shown without any elements below, needed to hide this optgroup tag: Instead of developing OptGroup class, I used WebMarkupContainer and SelectOptions components, together they worked fine for me,

Re: How to populate data from Database in combo box using DropDownChoice

2012-03-27 Thread Martin Grigorov
Hi, DropDownChoice works with simple java.util.ListYourObject. See http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.DropDownChoicePage for examples. It is up to you to read your data from the database (plain JDBC, Hibernate, ...) and

Re: What real life scenario calls for page ID?

2012-03-27 Thread Paolo
Alle martedì 27 marzo 2012, Martin Grigorov ha scritto: On Tue, Mar 27, 2012 at 12:51 AM, Paolo irresistible...@gmail.com wrote: Alle giovedì 22 marzo 2012, Pointbreak ha scritto: On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: No that is not what happens with NoVersionMount:

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-27 Thread Richard W. Adams
Just parse the date string into a Timestamp. That's Java, not Wicket. RAM /abr./: Rarely Adequate Memory. From: SudeepShakya shakyasud...@live.com To: users@wicket.apache.org Date: 03/26/2012 11:03 PM Subject:Re: Creating a submit form which takes date and a string as input

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-27 Thread SudeepShakya
I have used Date.valueOf(String). But submitting the form Null Pointer Exception is thrown. While submitting i have created an object of Application.java and the class with getter and setters. -- View this message in context:

Re: Adding extra request parameters to AJAX calls

2012-03-27 Thread gmparker2000
Follow up: I managed to get this working with an entirely different approach. By creating my own WebRequestCodingStrategy implementation I was able to add a conversation id parameter to every URL that Wicket generates. Essentially things look like this: WebApplication class: @Override

Re: Adding extra request parameters to AJAX calls

2012-03-27 Thread Martin Grigorov
On Tue, Mar 27, 2012 at 4:26 PM, gmparker2000 greg.par...@brovada.com wrote: Follow up: I managed to get this working with an entirely different approach.  By creating my own WebRequestCodingStrategy implementation I was able to add a conversation id parameter to every URL that Wicket

Re: What DTD is correct to use with wicket 6?

2012-03-27 Thread Martin Grigorov
I use the .xsd /home/martin/git/apache/wicket/wicket-core/src/main/resources/META-INF/wicket-1.5.xsd I added a mapping in my IDE so when xmlns:wicket=http://wicket.apache.org; is used it will actually use the .xsd from the local file system. I guess it is possible to read it from wicket-core.jar.

Wicket Session ID and Tomcat Session ID not equal

2012-03-27 Thread Thomas Rohde
Hi Wicket users, we are using Wicket 1.4.19 with Tomcat 7.0.21 and we observered a curious behavior. If we log the Session ID we get two different ID's. HttpSession httpSession = ((ServletWebRequest) RequestCycle.get().getRequest()).getHttpServletRequest().getSession(false); The value of

Re: Adding extra request parameters to AJAX calls

2012-03-27 Thread gmparker2000
Good to know. I am planning on making the move some time in the coming months and had anticipated that this may not work exactly like this in 1.5. From what I have described is there any reason to think this can't be done in 1.5? Can I take reimplement it completely to mean that it is possible

RE: AjaxIndicatingDropDownChoice

2012-03-27 Thread eugenebalt
Thanks, good solution. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatingDropDownChoice-tp4506224p4509566.html Sent from the Users forum mailing list archive at Nabble.com. - To

Redirect to external URL from AjaxLink

2012-03-27 Thread Chris Colman
Is it possible to redirect to an external URL when the AjaxLink onClick is called? I frequently use setReponsePage to redirect to a mounted page from within an onClick but this redirects based on page class/parameters.. I can't see a setResponseUrl (or similar method). Can we use a throw

RE: Redirect to external URL from AjaxLink

2012-03-27 Thread Chris Colman
RedirectToUrlException works fine from within an AJAX response handler in Wicket. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 28 March 2012 6:09 AM To: users@wicket.apache.org Subject: Redirect to external URL from AjaxLink Is it possible

Re: What real life scenario calls for page ID?

2012-03-27 Thread armhold
Martin wrote: HomePageMapper is explicitly registered in SystemMapper (the default compound root mapper). The resource mapper example in wicket-examples also mounts custom home mapper. Thanks Martin. I managed to get something working based on this. Here's a gist, in case anyone else is

Re: What real life scenario calls for page ID?

2012-03-27 Thread Igor Vaynberg
On Tue, Mar 27, 2012 at 2:53 PM, armhold armh...@gmail.com wrote: Martin wrote: HomePageMapper is explicitly registered in SystemMapper (the default compound root mapper).  The resource mapper example in wicket-examples also mounts custom home mapper. Thanks Martin. I managed to get

How dataNeedsToBeWritten() be false in newReosurceResponse

2012-03-27 Thread terasaka.k
How does the conditional statement 'if (resourceResponse.dataNeedsToBeWritten(attributes))' in PackageResource$newResourceResponse turn false? dataNeedsToBeWritten() method internally uses its own lastModified field, which is null (by default) and always returns true at that point. Any useful