Validating form components in a refreshing view

2012-07-17 Thread Tobias Knierim
Hi there, I'm new to wicket and have a problem I can't find out for myself. Maybe some of you can help me out with this. I have a refreshingview with input fields each row. I can add new rows on click of a button, but when I submit the form, I want to validate 2 input fields from different rows.

Re: Validating form components in a refreshing view

2012-07-17 Thread Josh Kamau
Hi ; Is the whole listview wrapped in 1 form or there is a form for each row? Josh. On Tue, Jul 17, 2012 at 10:02 AM, Tobias Knierim tobias.knie...@googlemail.com wrote: Hi there, I'm new to wicket and have a problem I can't find out for myself. Maybe some of you can help me out with this.

Re: Validating form components in a refreshing view

2012-07-17 Thread Tobias Knierim
Hi Josh, The whole view is wrapped in one form. Greetings Tobi Am 17.07.2012 um 09:04 schrieb Josh Kamau joshnet2...@gmail.com: Hi ; Is the whole listview wrapped in 1 form or there is a form for each row? Josh. On Tue, Jul 17, 2012 at 10:02 AM, Tobias Knierim

Re: Validating form components in a refreshing view

2012-07-17 Thread Josh Kamau
Tobi ; May be you can paste some code to show how you are constructing the forms... I believe if you just add the validators to the components and then submit the forms, it just works.. Josh. On Tue, Jul 17, 2012 at 10:22 AM, Tobias Knierim tobias.knie...@googlemail.com wrote: Hi Josh,

InvalidBehaviorIdException when closing modal windows

2012-07-17 Thread ashindler
Hi, Can someone help me figure out what would be the cause why I am suddenly getting the following error when I close one of my modal windows? Cannot find behavior with id '0' on component 'org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow:srScreen' in page '[Page class =

Re: Validating form components in a refreshing view

2012-07-17 Thread Tobias Knierim
Hi Josh, I just created a little example of how my application is working: I want to compare value2 from Entry1 with value1 from Entry2 and so on. Any ideas? FormValues form = new FormValues(form); add(form); RefreshingViewEntry refreshingView =

Apache Wicket 6.0.0-beta3 is released

2012-07-17 Thread Martijn Dashorst
The Wicket team is proud to announce the third beta release of the Wicket 6.x series. This release is an intermediary release just before we give you 6.0.0 final. There are no more planned API breaks but if you find something that can be made better now it the time to discuss it! The next planned

Re: Validating form components in a refreshing view

2012-07-17 Thread Josh Kamau
Hi Tobi ; I cant see any Validation code.. Josh. On Tue, Jul 17, 2012 at 12:01 PM, Tobias Knierim tobias.knie...@googlemail.com wrote: Hi Josh, I just created a little example of how my application is working: I want to compare value2 from Entry1 with value1 from Entry2 and so on. Any

Re: Validating form components in a refreshing view

2012-07-17 Thread Tobias Knierim
Hi Josh, you're right, I haven't put any in this example because I am really not sure how I should accomplish this. If I choose a FormValidator with the FormComponents textOne and textTwo, I can just compare the values of one row. I will extend my example later. Tobi 2012/7/17 Josh Kamau

Datatable with filter: string inpput for numeric columns

2012-07-17 Thread lang
I have a datatable with a filter. It works fine, but.. I have numeric columns. I want the user to enter a String instead of a number. This is because we add more functions to the input so the user can enter more filter commands like 1020 Now this is not possible in the filter. Who can help

Re: Determine session size for Wicket 1.5

2012-07-17 Thread Jochen Mader
Get a heapdump, use yourkit/visualvm. On Mon, Jul 16, 2012 at 11:14 AM, Ian Marshall ianmarshall...@gmail.com wrote: I don't think that I am getting the session size in the right place. Despite my session sizes being logged as very small at ~1.7kB using the Google App Engine (GAE) web

Re: Determine session size for Wicket 1.5

2012-07-17 Thread Ian Marshall
Thanks for the tip, Jochen. I'm already doing that now, using Oracle's Java VisualVM Jochen Mader wrote Get a heapdump, use yourkit/visualvm. On Mon, Jul 16, 2012 at 11:14 AM, Ian Marshall lt;IanMarshall.UK@gt; wrote: I don't think that I am getting the session size in the right

Re: Understanding Wicket redirect behavior

2012-07-17 Thread Alec Swan
Anybody? On Sat, Jul 14, 2012 at 5:24 PM, Alec Swan alecs...@gmail.com wrote: Is there a way in 1.4.x to avoid a 302 redirect to /lrm/ms/oid/123.0 when the user opens /lrm/ms/oid/123? Thanks, Alec On Sat, Jul 14, 2012 at 5:09 PM, Alec Swan alecs...@gmail.com wrote: Michael, I

RE: Validating form components in a refreshing view

2012-07-17 Thread Paul Bors
For example of how you could validate a form given multiple form fields take a look at how EqualInputValidator is implemented. You would have to keep references to the form fields that are related and return them as an array via IFormValidator. getDependentFormComponents() of your own

Re: Wicket examples in new version

2012-07-17 Thread michael fliegner
Had the same Question. Look at FormPage.java, FormPage.html and FormPage$ActionPanel.html in the wicket examples. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-examples-in-new-version-tp3729204p4650570.html Sent from the Users forum mailing list archive at

Next database key pre-filled in form and associated with PropertyModel returns null

2012-07-17 Thread Ian
G'day Short form: how do I pre-fill a form field with the dynamic value of the next free database key Long form: I'd like to pre-fill a form field with the value of the next free database key. I can do this by associating the form input field with a static model of a string value and replacing

Re: Next database key pre-filled in form and associated with PropertyModel returns null

2012-07-17 Thread Alec Swan
How do you determine which next key is available? If two users open the form at the same time will they see the same key? If so, then you need to handle errors from concurrent form submissions with the same key. Which means for one of these concurrent requests you will have to issue a different

Re: Understanding Wicket redirect behavior

2012-07-17 Thread Michael Mosmann
I am still working on this.. but it takes time. -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Alec Swan alecs...@gmail.com schrieb: Anybody? On Sat, Jul 14, 2012 at 5:24 PM, Alec Swan alecs...@gmail.com wrote: Is there a way in 1.4.x to avoid a 302 redirect

Form Submission problem

2012-07-17 Thread wicket user
Hi , I have inserted my custom filter in which i have specified url-pattern as /*, but now the form submission is not going just getting a blank page, Please advise how to handle this. I dont see any Exceptions on my logs too. Thanks, -- View this message in context:

Re: Next database key pre-filled in form and associated with PropertyModel returns null

2012-07-17 Thread Eric Jablow
On Sat, Jul 14, 2012 at 3:03 AM, Ian blav...@dodo.com.au wrote: G'day Short form: how do I pre-fill a form field with the dynamic value of the next free database key Is your customer demanding that the database ids end up without any gaps? If so, try to work hard to dissuade your customer.

Re: Form Submission problem

2012-07-17 Thread Andrea Del Bene
Hi, can you post the code of your custom filter? Hi , I have inserted my custom filter in which i have specified url-pattern as /*, but now the form submission is not going just getting a blank page, Please advise how to handle this. I dont see any Exceptions on my logs too. Thanks, -- View

Update JavaDoc for AbstractChoice#setType(java.lang.Class)

2012-07-17 Thread Paul Bors
How should we as Wicket users request updates to JavaDocs as we come across them? AbstractChoice.setType throws an UnsupportedOperationException but that's not reflected in its JavaDoc at:

wicket ajax question

2012-07-17 Thread mlabs
I have a panel with some content. It has an AjaxLink that I use to refresh the panel. In the onclick handler I refresh the content and target.add(component..) .. that all works great... but I want to do it another way. I add an AbstractAjaxBehavior to the panel, because I want to make ajax calls

Preventing users from re-submitting wizards

2012-07-17 Thread Dan Retzlaff
Hi all, We have a wizard workflow for our users that collects various inputs, and when submitted, persists entities and kicks off some processing. After the wizard is submitted, the user should not be able to navigate back and resubmit the wizard. The obvious solution of maintaining a boolean

Re: Next database key pre-filled in form and associated with PropertyModel returns null

2012-07-17 Thread Ian
G'day In part the question was based on a misunderstanding which I have now overcome. I thought that all the columns of the database table had to be present in the form as form fields. But that is not the case. So any column whose value I know ahead of time I don't present on the form - I just

Re: Next database key pre-filled in form and associated with PropertyModel returns null

2012-07-17 Thread Ian
G'day In part the question was based on a misunderstanding which I have now overcome. I thought that all the columns of the database table had to be present in the form as form fields. This meant that I had to pre-fill values for the key fields. This indeed has the difficulties that you raise.

Re: wicket ajax question

2012-07-17 Thread mlabs
the problem was that i wasn't passing the target back as the response.. found it better to reuse the wicket ajax stuff when it comes to updating wicket panels... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-ajax-question-tp4650579p4650583.html Sent from the