AutoCompleteTextField with position: fixed

2014-12-10 Thread pureza
/mod_mbox/wicket-users/201301.mbox/%3c1358755750041-4655560.p...@n4.nabble.com%3E. Could you tell me what's the best way of achieving this? Thank you, Luis Pureza -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-with-position-fixed-tp4668713.html Sent

Re: Stateful StatelessForm works most of the time. How to make it crash?

2014-10-20 Thread pureza
Sorry, I can't. It is way too much code and, as I said, I can't reproduce the issue, so if I simplify the code it might go away. I was just wondering if there is a simple way to make a stateful-StatelessForm to produce the wrong behavior. -- View this message in context:

Stateful StatelessForm works most of the time. How to make it crash?

2014-10-17 Thread pureza
Dear Wicket users, I believe I have found the cause of a long standing issue in my application. Basically, a form would submit with everything set to null or the default values even when the user filled in all the information. The problem is that this only happened once in a while and I was never

Re: AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector

2014-10-01 Thread pureza
Nevermind, I think I got it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-CheckGroup-and-CheckGroupSelector-tp4641921p4667773.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector

2014-09-30 Thread pureza
Martin Grigorov-4 wrote I'd write a custom selector that changes the checkboxes's state to 'selected' and then uses ajax to make a batch update. Hi, Could you expand on this, please? I have the exact same problem. Thanks, Luis Pureza -- View this message in context: http://apache-wicket

Wicket 6.10 required attribute and cancel buttons

2013-09-04 Thread pureza
Hi, I have a form with a cancel button with type=submit as suggested here: https://cwiki.apache.org/confluence/display/WICKET/Multiple+submit+buttons. Since version 6.10.0, Wicket adds the HTML5 required attribute which causes the browser validation to fail when the user clicks the Cancel

Re: Wicket 6.10 required attribute and cancel buttons

2013-09-04 Thread pureza
Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-10-required-attribute-and-cancel-buttons-tp4661191p4661193.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Nested forms: error messages of the inner form now showing up

2013-04-23 Thread pureza
Hi, I've fixed this. It seems I forgot to call #setReuseItems(true) in a ListView :-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-forms-error-messages-of-the-inner-form-now-showing-up-tp4658166p4658202.html Sent from the Users forum mailing list archive

Nested forms: error messages of the inner form now showing up

2013-04-22 Thread pureza
I have two nested forms. When I submit the outer form, the inner form's validation fails but no error is shown. I know the validation fails because the #onError() method of the inner form is being called. It is as if Wicket creates a brand-new, error-free, inner form after the page refreshes. Is

Component containing a repeater with customizable item markup

2013-04-11 Thread pureza
Hi, I want to create a custom component with a repeater, where the markup for each item in the repeater is specified by the users of the component, not in its internal definition. That is, the internal markup of the component looks like this: And the component is used with: So, for each

Re: Component containing a repeater with customizable item markup

2013-04-11 Thread pureza
I don't think a Border should work, because the Border constructor calls addToBorder(body), but I want my body to be added to each of the list items, not to the border itself. Anyway, I'm using #addToBorder() to add the button and the menu. -- View this message in context:

Re: Component containing a repeater with customizable item markup

2013-04-11 Thread pureza
I managed to make it work by using panels and fragments. Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Component-containing-a-repeater-with-customizable-item-markup-tp4657895p4657899.html Sent from the Users forum mailing list archive at Nabble.com.

Loading the contents of an expensive panel asynchronously

2013-04-10 Thread pureza
Hi, I am using a bootstrap dropdown (http://twitter.github.io/bootstrap/javascript.html#dropdowns) and I want its submenu to load only when the user clicks the dropdown, because its contents are expensive to retrieve. To be more concrete, this is the behavior that I'm looking for: when the user

Re: Loading the contents of an expensive panel asynchronously

2013-04-10 Thread pureza
Thanks, that did it! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loading-the-contents-of-an-expensive-panel-asynchronously-tp4657864p4657870.html Sent from the Users forum mailing list archive at Nabble.com.

Draft-mode validation

2013-03-14 Thread pureza
? Is there a nice way of defining application-wide validation settings? Thanks, Luis Pureza -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Draft-mode-validation-tp4657252.html Sent from the Users forum mailing list archive at Nabble.com

Re: Draft-mode validation

2013-03-14 Thread pureza
I just found out about Form.findSubmittingButton(). That should do it, but if you know of any better way, please let me know :-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Draft-mode-validation-tp4657252p4657253.html Sent from the Users forum mailing list

Persisting optional fields (null vs empty object)

2013-03-05 Thread pureza
like to save NULL to the database, instead of the empty Address instance. Any ideas on how to achieve this? Thanks, Luís Pureza -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Persisting-optional-fields-null-vs-empty-object-tp4656979.html Sent from the Users forum

Re: Persisting optional fields (null vs empty object)

2013-03-05 Thread pureza
Hi Sven, Thanks for your reply. Your solution works, but unfortunately I have too many optional fields and the resulting code feels kind of unnatural. The way I applied your solution was by creating the TextFields without any model (or with an empty model, to be precise). Then, convertInput()

Re: Persisting optional fields (null vs empty object)

2013-03-05 Thread pureza
Just let the textFields work on their models as usual. I can't do that, because if I set the Address to null the textfields will try to update fields of a null object. -- View this message in context:

Re: Upload file and display its contents using AJAX

2012-12-05 Thread pureza
Thanks Martin, I had just found https://issues.apache.org/jira/browse/WICKET-2420 before reading your reply! I guess that clears things. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473p4654510.html Sent from

Upload file and display its contents using AJAX

2012-12-04 Thread pureza
Hi, I need to upload a file, parse it and display its contents inside a textarea, all this using ajax. At first I tried to use jquery-file-upload, and I was able to upload the file to an IResource as explained at http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/. However, I

Re: Upload file and display its contents using AJAX

2012-12-04 Thread pureza
Nick, As I said on my previous email, I can't access the file contents within an AjaxBehavior, because FileInputField.getModelObject() is always null (maybe I'm not setting it up correctly when I instantiate the FileInputField?). -- View this message in context:

Re: Upload file and display its contents using AJAX

2012-12-04 Thread pureza
Hi again, I was able to get the desired result by putting an AjaxButton on the form containing the input type=file component. So, the user selects a file, presses submit and everything works. However, I'd prefer if the upload would start immediately after the user selects a file. Can I get rid

Re: Disallowing a logged-in user to access some page

2012-11-20 Thread pureza
Hi Martijn, Thanks for your reply. I am currently using wicket-shiro. Do you know if it is possible to mix auth-roles and wicket-shiro in the same project? Regards, Luis -- View this message in context:

Disallowing a logged-in user to access some page

2012-11-19 Thread pureza
Hi, How can I prevent access to certain pages (such as the sign-in page or the account creation page) for logged-in users? Right now I'm just adding a check to every such page and redirect to another page if the user is signed-in, but I'd like to know if there is a cleaner solution. Thanks

Re: Wicket+Spring Security the Wicket way

2012-09-22 Thread pureza
Hi Michal, In the end I opted for shiro instead. Much simpler and does everything I need. See this: https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/shiro-security/ -- View this message in context:

Wicket+Spring Security the Wicket way

2012-09-18 Thread Luis Pureza
on this? Thanks! Luis Pureza