Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-07 Thread Sven Meier
Hi David, the CheckGroupSelector fails to select all checks, because the first changed check already submits the form and then re-renders the page :(. You can use an AjaxFormChoiceComponentUpdatingBehavior instead of #wantOnSelectionChangedNotifications(true). Regards Sven On 05/07/2013

Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-06 Thread Sven Meier
You have to wrap you whole table in a form, otherwise only the value of the single check is sent to the server. Sven On 05/06/2013 03:34 PM, David Beer wrote: Hi All I am trying to add Checkgroup selection behaviour to my table, this all works fins so far. I can use the select all

Re: Wicket MarkupContainer error, the component failed to render

2013-05-05 Thread Sven Meier
*is* a dropdownchoice already, why are you adding another one to it? Regards Sven On 05/05/2013 02:26 AM, Bruno Moura wrote: I need to add components in a listView and associate all of them with a model,for allow keep the state of each object saved in this listView. I'm using wicket 1.4 with scala. The code

Re: May Ajax handlers in Wicket 6 slow down rendering?

2013-05-03 Thread Sven Meier
have one listener for a whole table instead of one on each row (or worse on each cell). Regards Sven On 05/03/2013 10:59 AM, Martin Dietze wrote: Thank you for this very enlightening comment. On Fri, May 03, 2013, Martin Grigorov wrote: There are many articles in the web about javascript

Re: Wierd ajax thing

2013-05-03 Thread Sven Meier
the underlying model. Sven On 05/03/2013 10:50 PM, Entropy wrote: I have a panel that consists of several combo boxes that hierarchically allow selection of an office/org hierarchy. Mostly the 1st combo filters the second which filters the third and so forth. I have a requirement to use this in a fashion

Re: Validation messages go missing in ajax form example

2013-05-03 Thread Sven Meier
Works fine here: Messages show up with either button (and as you type too). Sven On 05/03/2013 11:11 PM, Taro Fukunaga wrote: Hi, I'm having a problem with validation in a form with ajax buttons. I am using Wicket 6.7.0 and running Form Example: shows ajax form processing on my local box (I

Re: How to Perform LessThan or GreaterThan Validations Effectively?

2013-04-30 Thread Sven Meier
IFormValidator Regards Sven On 04/30/2013 09:09 AM, madmax108 wrote: Hi, I have a form in which I'm taking in numeric values from the user, let's say 1,2,3,4,5. Now, I also have defaults specifying the maximum or minimum values for the entered numbers (eg. 1,2,3 should be greater than x,y

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread Sven Meier
Hi, I didn't check the code with a compiler so please excuse any errors. 1) see ListView#newItem(int, IModel) 2) see Component#onConfigure() 3) enabled could be a member variable of the containing panel Regards Sven On 04/29/2013 04:47 PM, eugenebalt wrote: Thanks Sven, let me clarify

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread Sven Meier
1.4.7 ... that's really old :/. Sven On 04/29/2013 09:13 PM, eugenebalt wrote: Thanks Sven. We don't have the below methods. We are using Wicket 1.4.7, probably time to upgrade. ListView#newItem(int, IModel) see Component#onConfigure() -- View this message in context: http://apache

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread Sven Meier
this helps Sven On 04/28/2013 10:59 PM, eugenebalt wrote: Here is the full code. This is an urgent problem so any advice much appreciated. ISSUE: Cannot enable/disable Checks in an Ajax update, their state remains the same. The Checks in the CheckGroup are supposed to change depending

Re: Wicket stack on a netbook

2013-04-26 Thread Sven Meier
I did my Wicket development on a netbook a few years ago and it worked fine. Running Eclipse on XGA display resolution was a PITA though :(. Sven On 04/25/2013 09:17 PM, Rafael Barrera Oro wrote: Hello everyone! I was wandering if anyone was successful in developing wicket apps from a netbook

Re: Understanding Wicket's Session

2013-04-26 Thread Sven Meier
().getDownloadBag(); Your application should not have a field pointing to a session object. Sven On 04/25/2013 11:45 PM, dhongyt wrote: I may have the wrong understanding of this and I'm trying to get the correct understanding. I have created a SessionService that extends a AuthenticatedWebSession

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

2013-04-23 Thread Sven Meier
Is this the expected behavior? No, it isn't. Please create a quickstart and attach it to a new Jira issue. Sven On 04/22/2013 06:57 PM, pureza wrote: 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

Re: Custom Error Message with StringValidator.length Between

2013-04-23 Thread Sven Meier
What Wicket version? The key should be myField.StringValidator.range, see StringValidator's javadoc. Sven On 04/23/2013 12:12 PM, madmax108 wrote: Hi, I'm validating a field with StringValidator.lengthBetween, but somehow, it only displays the default error message rather than one I've

Re: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Sven Meier
Show us your #onSubmit(ART) ... formatted please. Sven On 04/23/2013 02:54 PM, christoph.ma...@t-systems.com wrote: Hello, I have a Problem with the DefaultDataTable and the Export csv. Here is my code: DefaultDataTableProtocolSearchData,String searchTable = new

Re: AW: DefaultDataTable will not render bottomtoolbar for export

2013-04-23 Thread Sven Meier
(), new ProtocolDataSortDataProvider(protocolData), 100))); Sven On 04/23/2013 03:29 PM, christoph.ma...@t-systems.com wrote: Hello, here is the code of onSubmit method of the AjaxFallbackButton. FormFilterCreatorProtocol protocollSearchForm

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-20 Thread Sven Meier
(table, columns, dataProvider, 8)); Hope this helps Sven On 04/19/2013 09:52 PM, dhongyt wrote: Right which is what I have but I'm having a tough time understanding how I need to override the navigator. I have done it many ways and none of them seem to work. I think I'm supposed to override

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-19 Thread Sven Meier
Check SubmitLinkPagingNavigator's markup. Sven On 04/19/2013 12:03 AM, dhongyt wrote: I think I wrapped my head on it a bit more and starting to understand what navigation is. So now I have this. I believe I need to override the PagingNavigator populateItem function but I'm trying to get

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-19 Thread Sven Meier
Easiest is to wrap the whole table in a form. Sven On 04/19/2013 07:34 PM, dhongyt wrote: I have been playing some more with the code and I'm now thinking that maybe I should just overrite the newNavigation function. That will allow me to override the newPagingNavigationLink function. My

Re: setResponsePage in AjaxSubmitLink causing AjaxError

2013-04-17 Thread Sven Meier
Hi Jeremy, redirects via ajax work fine here. See wicket-examples' LinksPage.java for an example. Sven On 04/16/2013 11:30 PM, Jeremy Levy wrote: I'm using Wicket 6.6.0, in an AjaxSubmitLink when I do a setResponsepage(myclass.class) or (throw new RedirectResponse) i get the following error

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-17 Thread Sven Meier
Either you have a AjaxFormComponentUpdatingBehavior on each Checkbox, so a selection is automatically synced to the server. Or you make the paging submit a containing form: http://apache-wicket.1842946.n4.nabble.com/Wicket-user-Editable-DataTable-with-Paging-td1925442.html Regards Sven On 04

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-16 Thread Sven Meier
http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.CheckGroupPage It uses a ListView instead of a DataTable, but usage of CheckGroup/Check is the same. Hope this helps Sven On 04/15/2013 10:53 PM, dhongyt wrote: Thanks Sven

Re: Infomessage ExternalLink in case of a missing URL

2013-04-16 Thread Sven Meier
while he stays on the same page. At that point, I can't add or remove components anymore...? With Wicket you can replace components (almost) when ever you want. Just override #onConfigure() and use #addOrReplace(). Regards Sven On 04/16/2013 02:24 PM, hfriederichs wrote: Hi, Thank you

Re: Problem with ListView and Feedback Panel

2013-04-16 Thread Sven Meier
Hi Natalie, you should try to make your components ready to be used in ListViews. If you're chaining your models correctly, there's no why ListView#setReuseItems(true) should be a problem. Regards Sven On 04/16/2013 05:23 PM, N. Metzger wrote: Ok, I understand the philosophy behind it. My

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-16 Thread Sven Meier
Hi, you'll have to add FormChoiceComponentUpdatingBehavior to your Check components, so selection is sent to the server immediately. Regards Sven On 04/16/2013 05:05 PM, dhongyt wrote: Thanks again Sven. I was able to implement the CheckGroup/Check functionality to the DataTable

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-16 Thread Sven Meier
in your own collection. Sven On 04/16/2013 07:32 PM, dhongyt wrote: Looks like it does save. I created an AjaxFormChoiceComponentBehavior on my CheckGroup. When I do the check on page one, go to page 2, and return the checks are still there. When I do the check on page one, go to page 2, and check

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-16 Thread Sven Meier
. Hope this helps Sven On 04/16/2013 08:37 PM, dhongyt wrote: Could you please explain the reason why we lose the CheckGroup from the previous paging? Is it because the CheckGroup is set on the first 50 and when going to the next 50 it creates a new CheckGroup therefore losing the first

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-15 Thread Sven Meier
)); } In your #onSubmit() iterate over all files and filter out the selected ones. Otherwise I'd recommend using a CheckGroup and Check components for each row. See wicket-examples' CheckGroupPage.java (no DataTable used though). Regards Sven On 04/15/2013 10:12 PM, dhongyt wrote: I'm having

Re: AjaxFallbackDefaultDataTable and CheckBox Column

2013-04-15 Thread Sven Meier
Wicket iterates all files anyway for rendering, so iterating them once again to find the selected ones will be no problem. If you want to keep selection across paging on your DataTable, you should definitely look into using CheckGroup/Check. Sven On 04/15/2013 10:32 PM, dhongyt wrote

Re: Validation of 3 dependent fields

2013-04-14 Thread Sven Meier
(validatable); } } } Sven On 04/14/2013 10:28 AM, ajac2010-s...@yahoo.de wrote: Hi, i'd like to implement a 3-Field-Validator. This means if one optional field in a form is set, two other fields become mandatory as well. What's the best way to implement this? My first thought was to use

Re: Component containing a repeater with customizable item markup

2013-04-11 Thread Sven Meier
Hi, a Border should work fine here. Are you using #add() and #addToBorder() correctly? Regards Sven On 04/11/2013 05:04 PM, pureza wrote: 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

Re: Question / extracting models in constructors

2013-04-10 Thread Sven Meier
(); } }; Regards Sven On 04/10/2013 03:56 PM, Patrick Davids wrote: Hi together, I'm in a discussion with my collegues about extracting models in constructors of components. Best practices says: DONT, because of accidently holding references of extrated objects / out of mems / etc

Re: Question / extracting models in constructors

2013-04-10 Thread Sven Meier
later. But you don't have to be overzealous about this. If it works for you, it's fine. Best regards Sven On 04/10/2013 05:54 PM, Patrick Davids wrote: Thank you. :-) Interesting concept... Unfortunately still have the question: Why is it recommended not to extract a given model (1

Re: Ajax updating panel inside ModalWindow

2013-04-08 Thread Sven Meier
You're probably not wrapping the modal window in a Form, please read ModalWindow's javadoc. Sven On 04/08/2013 10:38 PM, jarnis wrote: Hey Guys I'm using a panel inside wicket's native ModalWindow. The panel contains a form with an AjaxSubmitLink. The onSubmit method of the form does some

Re: can't get the TextField's Model

2013-04-07 Thread Sven Meier
Hi David, the idea of #setDefaultFormProcessing(false) is to skip form processing, thus textField doesn't write into its model. What are you trying to accomplish? Sven On 04/07/2013 12:04 PM, david.li wrote: Hi,the code like this: form.add(new TextField(aaa,new PropertyModel(this, aaa

Re: can't get the TextField's Model

2013-04-07 Thread Sven Meier
Sven On 04/07/2013 03:54 PM, david.li wrote: Hi,Sven Meier,I want to achieve the function like this:there are some TextFields in the page.Some of TextFields need to check via the event whether the value entered. so when user enter the value,then click the button to verify the value. how

Re: AbstractDefaultAjaxBehavior response handling

2013-04-03 Thread Sven Meier
See AutoCompleteBehavior on how to response with a non-ajax-response. Sven On 04/03/2013 07:14 PM, heikki wrote: hello, I've a question about using AbstractDefaultAjaxBehavior. I can succesfully create some dynamic script that calls Wicket.Ajax.get(), and its respond() is correctly invoked

Re: AbstractDefaultAjaxBehavior response handling

2013-04-03 Thread Sven Meier
Do you just want to display the json or do want to do something with it in the browser? Sven On 04/03/2013 08:17 PM, heikki wrote: thanks for your response, but I'm not quite sure what you mean. How so is my response a non-Ajax response ? I'd have thought that when doing an Ajax request

Re: AbstractDefaultAjaxBehavior response handling

2013-04-03 Thread Sven Meier
Wicket's default Ajax handling is for repainting of components. As I have written, take a look at AutoCompleteBehavior#onRequest() Sven On 04/03/2013 09:52 PM, heikki wrote: Eventually I'd probably do something with it other than only displaying it :-) So maybe my approach is not ideal

Re: Nested forms ...

2013-04-02 Thread Sven Meier
Hi, the values of all form components are submitted, but only the ones from the submitted nested form are processed. See Form#wantSubmitOnNestedFormSubmit() and the tests in NestedFormSubmitTest. Sven On 04/02/2013 12:40 PM, RalfButler wrote: Hi there, to my understanding the forms

Re: Nested forms ...

2013-04-02 Thread Sven Meier
Ah, you're not using any button components, so there's no way for Wicket to know which form was submitted. Sven On 04/02/2013 01:48 PM, RalfButler wrote: Thanks for the quick reply Sven! Still confusing to me; for wantSubmitOnNestedFormSubmit() it says By default, this is false, so when

Re: Need help setting visibility via AjaxFormChoiceComponentUpdatingBehavior

2013-03-28 Thread Sven Meier
is always display:none. Using setVisible or using setVisibilityAllowed does not make any changes. So your container disappears but does not show up again after setting it visible? Sven On 03/28/2013 11:12 AM, Patrick Davids wrote: Hi together, I searched the web for several hours and always get

Re: HttpsMapper not Switching to SSL When there is no JsessionId Cookie

2013-03-28 Thread Sven Meier
Please create a quickstart and attach it to a jira issue. Sven On 03/27/2013 06:41 PM, Tim Urberg wrote: Hi Everyone, I'm having an issue with HttpsMapper not switching to SSL when there is no JSESSIONID cookie. It's happening with wicket-auth-roles when the user goes to the home page

Re: Ajax and validators

2013-03-27 Thread Sven Meier
Hi, an ajaxbutton submits the form, see its javadoc. You probably want to use #setDefaultFormProcessing(false) on your button. Sven On 03/27/2013 03:43 PM, Entropy wrote: I had an ajaxbutton to add selected items from a multiple choice control to another multiple choice control. This worked

Re: Ajax and validators

2013-03-27 Thread Sven Meier
AjaxLink doesn't submit the form, thus no input for FormComponents. Sven On 03/27/2013 06:34 PM, Entropy wrote: Thanks Sven, that was what I needed. Just for my learning, why doesn't AjaxLink report the user input? If it is not meant to, it doesn't seem to serve a purpose, so I have

Re: Exception with validator

2013-03-27 Thread Sven Meier
LookupService is probably coming from another class loader than the Wicket classes. Any particular reason, why you're using Wicket 1.4.x? The code to resolve the class on deserialization has been improved with Wicket 1.5.x to use the current thread's context class loader. Regards Sven

Re: NullPointerException in Page constructor

2013-03-26 Thread Sven Meier
Hi Josh, a stacktrace would help to identify the problem. Sven On 03/26/2013 02:51 AM, jchappelle wrote: We have just upgraded from wicket 1.5.4 to 1.5.10 and we are getting a NullPointerException in the constructor of all the pages. It is happening because our

Re: Adding to the existing AjaxBehavior of a component

2013-03-25 Thread Sven Meier
final DropDownChoice struct = (DropDownChoice) orgPanel.get(StructureL); This way you're breaking the encapsulation of orgPanel :(. Why doesn't orgPanel offer the #onOfficeChange() hook in the first place? Sven On 03/25/2013 04:18 PM, Entropy wrote: I am Eugene's co-worker. The entire

Re: Wicket Ajax Debug Errors - how to debug?

2013-03-21 Thread Sven Meier
You can ignore it for now. Thanks Sven On 03/17/2013 11:08 PM, Marios Skounakis wrote: Did so - WICKET-5104 https://issues.apache.org/jira/browse/WICKET-5104 I still don't understand what the problem is. Despite the error things seem to be working. Is it safe to ignore it, or should I find

Re: UrlValidator issue

2013-03-21 Thread Sven Meier
It seems UrlValidator chokes on parantheses. Please open an Jira issue. Thanks Sven On 03/21/2013 04:33 PM, Teresa Batista Neto wrote: Dear all, One of our users got an error message when trying to add a new URL: 'http://en.wikipedia.org/wiki/Genus_(mathematics)' is not a valid URL I just

Re: Wicket Application Design Question

2013-03-20 Thread Sven Meier
Wicket Application Design Point your colleagues to the components in wicket-core and wicket-extensions: Is there a global .js file or many component specific ones? *After* you've experienced performance problems, you should look into ResourceBundles. Hope this helps Sven On 03/20/2013 09

Re: CompoundPropertyModel binding direction

2013-03-19 Thread Sven Meier
this helps Sven On 03/18/2013 10:23 PM, Lucio Crusca wrote: I'm trying to use CompoundPropertyModel in a form I dynamically create with a RepeatingView. I use the CompoundPropertyModel#bind method to bind each input tag to the corresponding java bean property. Binding from java bean to html does

Re: CompoundPropertyModel binding direction

2013-03-19 Thread Sven Meier
However I'm curious to know if a possible solution would be to create the DetailPage instance inside the onClick method of the Link, so that it becomes a local variable that gets collected asap. Sure, that's perfectly fine. Sven On 03/19/2013 11:39 AM, Lucio Crusca wrote: In data Tuesday 19

Re: TableTree#addTopToolbar(AbstractToolbar abstractToolbar)

2013-03-19 Thread Sven Meier
tableTree.getTable().add*Toolbar() Sven On 03/19/2013 05:09 PM, Ramin wrote: Hi TableTree has been moved to wicket-core now and both addTopToolbar(AbstractToolbar abstractToolbar) and addBottomToolbar(AbstractToolbar abstractToolbar) has been removed from TableTree in Wicket-tree. I

Re: bind the treenode with the object

2013-03-19 Thread Sven Meier
Hi David, it's not clear to me where you need help here. Sven On 03/19/2013 07:35 PM, david.li wrote: hello. I use the wicket tree component in my project.I bind the tree node with the modelbean class。I wang the treenode display the modelbean value and get the treenode key via the nodeclick

Re: Wicket Ajax Debug Errors - how to debug?

2013-03-16 Thread Sven Meier
Seems like this is caused by WICKET-4959. Please file a Jira issue. Sven On 03/15/2013 09:56 PM, Marios Skounakis wrote: Hi all, I am using a modal window as a substitute for messageboxes. E.g. I have a few forms with an ajax submit button, and I am using the modal window to first display

Re: ajax submit form on keyup

2013-03-15 Thread Sven Meier
Use AjaxFormSubmitBehavior Regards Sven On 03/15/2013 03:01 PM, M Kili wrote: Hi, I have a simple filter form for a table, currently with one textfield, to which this behavior is added: new AjaxEventBehavior(keyup) { protected void onEvent(AjaxRequestTarget target

Re: PageableListView item removal

2013-03-15 Thread Sven Meier
Hi, you're probably using #setReuseItems(true) ? Show us your #populateItem() please. Sven On 03/15/2013 07:04 PM, N. Metzger wrote: Hi all, I'm looking at a strange behavior of my PageableListView. I have a PageableListView with an AjaxPagingNavigator within a WebMarkupContainer. Recently

Re: Datatable Filtercolumn is not reacting

2013-03-15 Thread Sven Meier
What does your FilterForm's model object look like? Sven On 03/15/2013 09:04 PM, Delange wrote: I use a datatable with FilterColumn. I specially made a IntegerColumn. It works fine, but if the user enters a blank or nothing the table is not refreshed. I can see that the old value is used

Re: FormComponentPanel / counterpart of convertInput() ?

2013-03-11 Thread Sven Meier
You should set up your nested components with appropriate models. See DateTimeField for inspirations. Regards Sven On 03/11/2013 04:16 PM, Patrick Davids wrote: Hi all, I'm implementing a FormComponent which devides Date from Time in two input fields. It results in a simple Date Object

Re: on models and Panels

2013-03-10 Thread Sven Meier
, getAutocompleteRenderer()) { Sven On 03/10/2013 02:41 PM, grazia wrote: I have a panel containing an autocomplete. The autocomplete contains its own converter. The model of the page that contains the autocomplete-panel should be updated to the converted object of the autocomplete

Re: Page Hierachy and Packages

2013-03-08 Thread Sven Meier
Hi, if you keep style.css in your web root, you'll have to remove the wicket:link tag in your markup. Otherwise AutoLinkResolver will think yoy're keeping the css beside your component. Sven On 03/08/2013 03:17 PM, David Beer wrote: Hi All I am new Wicket and like what I have found so far

Re: Page Hierachy and Packages

2013-03-08 Thread Sven Meier
Hi David, if your post was a question, I didn't understand it. Regards Sven On 03/08/2013 05:15 PM, David Beer wrote: Hi Sven Thanks for this so it is better to add the css outside of the wicket:head like you would with normal html pages. Is it possible to get the navigation to go up a level

Re: Timer-based update to various regions in a page - best approach?

2013-03-07 Thread Sven Meier
of their last rendering time and add themself to the ART automatically after a configurable duration. Our customer can live with the limitations of this solution: As long as the user doesn't do anything, he won't see any updated data. Hope this helps Sven On 03/07/2013 11:20 AM, Martin

Re: Persisting optional fields (null vs empty object)

2013-03-05 Thread Sven Meier
A FormComponentPanel might help, implement #convertInput() to set the model object to null. Sven On 03/05/2013 12:17 PM, pureza wrote: Hi, I have a form with a few inputs to fill-in Address information. When creating the form I pass it an IModel.of(new Address()) and then I use

Re: Loading different ApplicationContexts(Spring) for each WicketServlet

2013-03-05 Thread Sven Meier
for two applications, each having their own context and both sharing a common web context. Sven On 03/05/2013 01:18 PM, MG wrote: You can try with different interfaces for the different beans, or by using @ Qualifier I don't think I understand what do you mean here. Do you propose I should

Re: Persisting optional fields (null vs empty object)

2013-03-05 Thread Sven Meier
suggested) would a better solution. Sven On 03/05/2013 03:46 PM, pureza wrote: 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

Re: Persisting optional fields (null vs empty object)

2013-03-05 Thread Sven Meier
Wicket's form handling with let the textfields write their values to their models first. FormComponentPanel#updateModel() is called after that. Sven On 03/05/2013 04:12 PM, pureza wrote: Just let the textFields work on their models as usual. I can't do that, because if I set the Address

Re: AutoCompleteTextField displays null

2013-03-05 Thread Sven Meier
Works fine here: http://www.wicket-library.com/wicket-examples/ajax/autocomplete Check whether your model contains null. Sven On 03/05/2013 04:58 PM, grazia wrote: Hi ! My AutoCompleteTextField displays null when no selection has been made. I tried setConvertEmptyInputStringToNull(false

Re: Persisting optional fields (null vs empty object)

2013-03-05 Thread Sven Meier
Hi Luis, a custom PropertyModel ... would you recommend against this? models are one of Wicket's key selling points. If it works for you, go for it :). Sven On 03/05/2013 06:40 PM, pureza wrote: Sven, I was somehow able to get the behavior I want by implementing a custom PropertyModel

Re: AutoCompleteTextField displays null

2013-03-05 Thread Sven Meier
What does AllPersonnel's #toString() look like? Sven On 03/05/2013 05:23 PM, grazia wrote: my difficulty is that I am using a compoundpropertyModel this way: private final CompoundPropertyModelAllPersonnel personnelModel = new CompoundPropertyModelAllPersonnel(new AllPersonnel

Re: TextField to ArrayList

2013-03-04 Thread Sven Meier
Write your own IConverter that converts ListTag to comma separated string and vice-versa. Sven On 03/05/2013 02:20 AM, Stephen Walsh wrote: I have an object that has a ListTag which is a simple object with a name, id, etc. I'm attempting to use wicketstuff tagit, and my form has

Re: AjaxSubmitLink.onSubmit() Not Called in FormComponentPanel

2013-03-01 Thread Sven Meier
Do you have unrendered feedback messages? Override #onError() and see if it gets invoked. Sven On 03/01/2013 06:53 PM, Richard W. Adams wrote: I created an AjaxSubmitLink in a FormComponent Panel, and set a break point in its onSubmit() method. For some reason, the breakpoint never gets hit

Re: radio button ajax behaviour

2013-03-01 Thread Sven Meier
What is your problem? Usually you would use FormChoiceComponentUpdatingBehavior on the RadioGroup. Sven david.li lxw_fi...@hotmail.com schrieb: Hi,I am unable to apply ajax behavior to radio button. there are two radio button in radiogroup.but when click month radio button,i can't check

Re: Serialzation Problem

2013-02-28 Thread Sven Meier
() { public Customer load() { return new Customer(); } }; Note however that this creates a new Customer for each incoming request. For simple forms this might be sufficient though. Hope this helps Sven On 03/01/2013 07:40 AM, yka wrote: Ok, but what exactly does that mean? And how can I avoid

Re: Application name can only be set once

2013-02-27 Thread Sven Meier
Perhaps you have defined WicketFilter *and* a WicketServlet in your web.xml? Sven On 02/26/2013 04:51 PM, Tom Norton wrote: We use the SpringWebApplicationFactory. Tom On Tue, Feb 26, 2013 at 10:26 AM, Sven Meier s...@meiers.net wrote: How do you create your Application? Do you have

Re: Feedback panel not found? AjaxButton#onSubmit()

2013-02-27 Thread Sven Meier
You're responsible to add all components to be updated to the ART, i.e. in onError(): target.add(feedback); Sven On 02/27/2013 12:50 PM, Ondrej Zizka wrote: Hi all, I have a Form, with .setOutputMarkupId(true); and with: a FeedbackPanel added to it. a RequiredTextField

Re: Application name can only be set once

2013-02-27 Thread Sven Meier
Connect via remote debugger and see which stracktraces trigger #setName(). Sven On 02/27/2013 03:28 PM, Tom Norton wrote: I only have WicketServlets. You see the WicketFilter in the stack trace because the WicketServlet calls the WicketFilter logic. And as I said, I haven't changed anything

Re: Application name can only be set once

2013-02-26 Thread Sven Meier
How do you create your Application? Do you have a custom IWebApplicationFactory? Sven On 02/26/2013 03:35 PM, Tom Norton wrote: We're upgrading from Wicket 1.5.4 to 1.5.9. The upgrade runs fine on our local development machines, which run WebLogic 11g. However, our staging server, which

Re: How to Keep ChooseOne option in DropDownChoice

2013-02-25 Thread Sven Meier
Hi, could you compare your case with DropDownChoicePage from wicket-examples? If I add #setNullValid(true) true the dropDown, it works as expected: form.add(new DropDownChoiceString(site, SITES).setNullValid(true)); Sven On 02/25/2013 01:21 PM, venkat wrote: Hi , Anyone please

Re: Possible bug in ListView [Cannot change attributes in ListView div]

2013-02-24 Thread Sven Meier
like {@link #setRenderBodyOnly(boolean)} and * {@link #add(org.apache.wicket.behavior.Behavior...)} should be invoked on the {@link ListItem} * that is given in {@link #populateItem(ListItem)} method. * /p Sven On 02/24/2013 02:40 AM, Gonzalo Aguilar Delgado wrote: Hello, I think I found

Re: Loadable non-detachable list model for listView

2013-02-24 Thread Sven Meier
()); // force reload imagesGroupsModel.detach(); target.add(imagesGroupsForm); } }; listItem.add(deleteImagesGroup); } }; Can you spot the difference? Sven On 02/24/2013 08:12 AM, meduolis wrote: This does not solves the issue. Heres my code: -- View this message

Re: Loadable non-detachable list model for listView

2013-02-24 Thread Sven Meier
You'll need to apply the OSIV pattern for that. Sven -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loadable-non-detachable-list-model-for-listView-tp4656216p4656734.html Sent from the Users forum mailing list archive at Nabble.com

Re: JavsScriptUtils.writeJavaScript() in onRender() after Ajax updates

2013-02-22 Thread Sven Meier
That should work. Which Wicket version? Is this rendered on an Ajax request? Sven On 02/22/2013 05:07 PM, Martin Dietze wrote: I've implemented a live search functionality where after changes the search results get displayed in a flyout menu. In the search results I add a css class

[ANN] wicketstuff-lazymodel

2013-02-18 Thread Sven Meier
examples: IModelString model = model(from(a).getB().getStrings().get(key)); new LazyColumnA, B(header, from(A.class).getB()); Read more here: https://github.com/wicketstuff/core/wiki/LazyModel Have fun Sven

Re: Fundamental forms/models issue

2013-02-18 Thread Sven Meier
Since a Wicket WebPage has it's constructor invoked only one time in the application lifecycle Usually a new page instance is created each time you visit a bookmarkable url. WebPages are never shared between clients. Sven On 02/18/2013 06:47 PM, Michael Chandler wrote: Good morning

Re: Label with default text if model empty + CompoundPropertyModel

2013-02-18 Thread Sven Meier
You can override Label#initModel(): protected IModel? initModel() { return new DefaultTextModel(defaultModel, super.initModel()); } A simpler solution is to override Label#onComponentTagBody() and just apply your default text there. Sven On 02/19/2013 06:29 AM, Ondrej

Re: Several Form onSubmit, is it possible add via AbstractBehavior?

2013-02-15 Thread Sven Meier
You could add a custom Behavior to your FormCompoments. Let this Behavior implement IValidator and it will get notice of a form submit via #validate(). Hope this helps Sven On 02/14/2013 07:05 AM, Alex wrote: Hi. I have AjaxFallbackButton on the form with defined onSubmit handler. There also

Re: Submit form before handle onclick

2013-02-15 Thread Sven Meier
Use AjaxFormSubmitBehavior with #setDefaultProcessing(false). Sven On 02/15/2013 11:01 AM, Gonzalo Aguilar Delgado wrote: Hello, We have just a situation were the information of the form needs to be updated before handling an ajax click event. The page has a form, with a bean and some

Re: Why does a ModalWindow create a form Tag to be rendered in?

2013-02-15 Thread Sven Meier
been proposals already on how to improve this, see WICKET-1826 and WICKET-3404 for inspirations. Hopefully this is something we can address in Wicket 7 (i.e. this won't be possible without API breaks). Regards Sven On 02/15/2013 11:51 AM, mwwbf wrote: Hi Everyone, I'm using ModalWindows

Re: DropDownChoice - single choice, preselect automatically

2013-02-15 Thread Sven Meier
#onConfigure() would be a good place to preselect something. Sven On 02/15/2013 05:21 PM, prasopes wrote: I know I can preselect the value of DropDownChoice by setting the corresponding value in the model. My use case is this: I have several DropDownChoice with OnChangeAjaxBehaviors

Re: DropDownChoice not updating model

2013-02-15 Thread Sven Meier
You are so f***ing smart :) Sometimes :P. Sven On 02/15/2013 04:43 PM, Lucio Crusca wrote: In data Thursday 14 February 2013 12:59:05, Sven Meier ha scritto: Then the DropDownChoice should work fine. Try to create a quickstart please. You are so f***ing smart :) The quickstart just

Re: DropDownChoice not updating model

2013-02-14 Thread Sven Meier
OpenSessionInView) https://issues.apache.org/jira/browse/WICKET-4353 might give you more information. Best regards Sven On 02/14/2013 12:01 PM, Ernesto Reinaldo Barreiro wrote: I don't know if this has anything to do... but make sure class StreetAddress implements equals On Thu, Feb 14, 2013

Re: DropDownChoice not updating model

2013-02-14 Thread Sven Meier
Then the DropDownChoice should work fine. Try to create a quickstart please. Sven On 02/14/2013 12:53 PM, Lucio Crusca wrote: In data giovedì 14 febbraio 2013 12:21:58, Sven Meier ha scritto: On 02/14/2013 12:01 PM, Ernesto Reinaldo Barreiro wrote: I don't know if this has anything to do

Re: problems with AJAX function processEvaluation (1.4.x - 6.x)

2013-02-13 Thread Sven Meier
This I think is an error... as if eval fails... processing should continue. Shall I create an issue for this? Please create an issue for Wicket 6 (or 1.5.x). As you know, 1.4.x doesn't get bug fixes any longer. Sven On 02/13/2013 10:25 AM, Ernesto Reinaldo Barreiro wrote: Hi, On Wed, Feb

Re: FormComponentPanel.convertInput()

2013-02-13 Thread Sven Meier
Hi, #convertInput() should not modify the current model object, because form submission might still fail with a conversion error on another field. Pushing the new input in the FormComponent's model is done later in #updateModel(). Hope this helps Sven On 02/13/2013 03:33 PM, Richard W

Re: AjaxEventBehavior called twice because of javascript onchange

2013-02-13 Thread Sven Meier
How do you remove the option? Show us some code. Sven On 02/13/2013 08:22 PM, divad91 wrote: More precisely, removing an option of a dropdown list with Internet Explorer (IE7 - IE8) triggers the Wicket Onchange Behavior. Any workaround too avoid this ? -- View this message in context

Re: AjaxEventBehavior called twice because of javascript onchange

2013-02-13 Thread Sven Meier
Hi, your code didn't come through with you initial post. Regretfully I don't have an idea what's going wrong here: Removing an option via Javascript shouldn't trigger any change event handler. Sven On 02/13/2013 08:56 PM, divad91 wrote: The code is in my first post at the end. With jQuery

Re: find html tag

2013-02-10 Thread Sven Meier
Sure, with #getMarkup() you can get hold of the component's markup. With a MarkupStream you can iterate over it. Sven On 02/10/2013 10:23 PM, Michael Jaruska wrote: again with my question: is it possible to get markup in onRender() of the component? have found this article: https

Re: find html tag

2013-02-10 Thread Sven Meier
See BorderBehavior#beforeRender(Component) on how to iterate over the markup. Sven On 02/10/2013 11:09 PM, Michael Jaruska wrote: my quick test: @Override protected void onRender() { super.onRender(); System.out.println(this.getMarkup().toString()); } get me just top-level tag in my

<    5   6   7   8   9   10   11   12   13   14   >