AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Hi, I have a datatable inside a filterform. Everything works fine but I need to filter table on every single typed characters in my filterform. To achieve this I added an AjaxFormSubmitBehavior to my filterform. There is one small problem with it. If I type one char it works fine but if I type

Re: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Martin Grigorov
Hi, It seems the text input field is re-rendered with Ajax after typing a character. Try to not re-render the input field. Or you can use target.appendJavaScript(...) and use something like http://bytes.com/topic/javascript/answers/429209-how-unselect-text-input-box Martin Grigorov Wicket

Re: Modular Wicket Application

2014-02-13 Thread IowA
Thanks! Martin Grigorov-4 wrote https://github.com/ReginaldasR/wicket-modular/pull/1 Martin Grigorov Wicket Training and Consulting On Wed, Feb 12, 2014 at 5:51 PM, IowA lt; reginaldasr@ gt; wrote: Hello, I was not using annotations, so after removing it from pom.xml I am

Re: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Hi Martin, Thanks for the prompt answer. First I try to not re-render filterform's field. How could I do that ? My panel looks like this: I changed target.add from container to table to refresh table only but that did not help. Regards., Sandor -- View this message in context:

Re: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Martin Grigorov
Do you use org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilteredPropertyColumn ? Where is the filtering text input field ? Is it in the table ? If YES, then rerendering the table will rerender the input field too. See the JS solution or move the filtering text field out of

Re: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Yes, I use TextFilteredPropertyColumn and FilterToolbar. So it might better to use js to solve this. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormSubmitBehavior-and-FilterForm-problem-tp4664422p4664429.html Sent from the Users forum mailing list archive at

RE: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Richter, Marvin
I implemented a Search for a simple ListView but could be used also for any DataView. This solution also highlights the found String if you add the class 'highlighted' to you CSS. The table part: final WebMarkupContainer table = new WebMarkupContainer(table);

how bind CompoundPropertyModel to items of DataView

2014-02-13 Thread Farrukh SATTOROV
Hi everyone, is there any example or explanation of using CompundPropertyModel for wciket output component (like table).

Re: how bind CompoundPropertyModel to items of DataView

2014-02-13 Thread Martin Grigorov
Hi, CompoundPropertyModel (CPM) works by using the component path between the component with the model and its children. I.e. if you set CPM to the DataView then you must make sure its object has the same structure as the items in the dataview. This could be challenging to setup and to maintain!

Re: Error in Modal opening two diffrent instances of Wicket applicaiton.

2014-02-13 Thread eaglei22
Okay, so I was able to try some more scenerios, and it looks like if I have one instance of the application open in one tab, and open a modal window and now do anything.. Then open another instance of the application but not even click on anything, and go back to the first intance and just hit

RE: AjaxFormSubmitBehavior and FilterForm problem

2014-02-13 Thread Sandor Feher
Hi, Thanks for the tip. I have almost done it. Just one annoying problem. I can't set filter fields' markup up. Not the td where the input field resides but the input tag itself. I have five filter fields on my filtertoolbar. To use javascript trick I have to set id for every filter fields.(Now

Hybrid palette with DropDownChoice and ListView

2014-02-13 Thread ChambreNoire
Hello, I'd like to create a hybrid 'palette'. First there's a DropDownChoice with an 'Add' link and next to this a vertical list of selected items, each with a 'remove' link. Of course, adding an item removes it from the DropDownChoice and adds it to the list and vice-versa for item 'removal'.

Re: Hybrid palette with DropDownChoice and ListView

2014-02-13 Thread Paul Bors
I don't think you need to go nuts and worry much about a ListView. Use a Select2 instead of the drop-down and have a custom panel instead of the plain old option. You can place an Add button or something or better yet, check boxes and then you won't need the second list. Suppose you do stick to

Re: Hybrid palette with DropDownChoice and ListView

2014-02-13 Thread Paul Bors
Btw, Select2 demos are at: http://ivaynberg.github.io/select2/ Its Wicket integration at: https://github.com/ivaynberg/select2 That's Igor's baby (you might have seen Igor's name in Wicket's API JavaDocs :) On Thu, Feb 13, 2014 at 11:34 AM, Paul Bors p...@bors.ws wrote: I don't think you

Re: Hybrid palette with DropDownChoice and ListView

2014-02-13 Thread ChambreNoire
Thanks for the suggestions. Regrettably the spec requires a vertical list of labels and specifically not a multi choice list as used in the extensions Palette component otherwise yes it would be trivial to make the right hand side a one row drop down as you mention... -- View this message in

Re: How to make a Wiket DropDownChoice with complex a model return a simple String

2014-02-13 Thread Andrea Del Bene
Your welcome! I will try to publish this snippet somewhere in the guide. Thanks Andrea, I was trying what you sent in your previous message and I was having trouble figuring out how to get the value set on the target property model. Your code here, especially this line: