creating a textarea with a radiobutton using Listview

2011-09-21 Thread wholalotta
Hi, I want to create a form which contains textareas and radiobuttons line by line like; Textarea Radiobutton Textarea Radiobutton My object to fill via a form contains two fields; public Class Line () { private String textInput; private Boolean isSelected; } My aim is to take some in

Re: creating a textarea with a radiobutton using Listview

2011-09-21 Thread wholalotta
Thanks but still couldnt figure out how will i set the boolean values according to the selected radiobutton in List? Can I do something with the index value? Is it stored in radiogroup that I attached my List into? Accessing the cell/row index: protected void populateItem(ListItem item) {

Re: creating a textarea with a radiobutton using Listview

2011-09-21 Thread wholalotta
Hi manuelbarzi, Thanks for the usefull websites I reviewed all of them and I tried the following. I created a radiogroup but still i can select all radiobuttons right now..I just want to be able to select one radiobutton and set the boolean attribute true in related NameWrapper object. And also r

Re: creating a textarea with a radiobutton using Listview

2011-09-22 Thread wholalotta
It is getting weird. I got your point. You are right, it is more logical to give boolean true or false value. I tried your suggestion but this time I had four radiobutton and all of them appeared as checked. How is it possible? And When I give Boolean.TRUE, this time all of them are displayed as un

Re: creating a textarea with a radiobutton using Listview

2011-09-22 Thread wholalotta
Oh ok I got it right now. In each listitem we should create at least two radio item to get true or false values for that field. I thought creating one radiobutton in each iteration, after 4 iteration, will give me 4 radiobuttons which all of them reacts as one group. And so, i wanted to be able to

Re: creating a textarea with a radiobutton using Listview

2011-09-26 Thread wholalotta
I tried the following but couldnt get into "onUpdate" method while debugging. I need to use checkgroup to be able to use AjaxFormChoiceComponentUpdatingBehavior. So I created a checkgroup and added the checkboxes into it. So I guess in each iteration I am creating one text area, one check group and

Re: creating a textarea with a radiobutton using Listview

2011-09-26 Thread wholalotta
Thanks a lot. I wish I have seen the obvious solution by myself but anyway everything is clear now..I should have iterated the Listview not the list item. My plan was iterating the list component and updating the model value in it. But you are right, iterating "item" wont give me the all the item l

Re: creating a textarea with a radiobutton using Listview

2011-09-27 Thread wholalotta
BTW, i just figured out that changing selected checkbox removed the data in the textareas. First you need to save and then change the selected checkboxes. Rendering form in each ajax update behaviour deletes the model value..How can we solve this? Thanks -- View this message in context: http://a

ajax form submit, loading gif and swap panels

2011-10-05 Thread wholalotta
Hi all, I want to remove the form component after hitting submit button and display a loading animated gif. After ajax submit operation finished, i want to display a new panel instead of form component which has a button to generate a new form page..I think I can swap the panels into onSubmit butt

Re: ajax form submit, loading gif and swap panels

2011-10-06 Thread wholalotta
Thanks guys..I overrided the methots and it worked. When I submit the form, animated gif appears until ajax request is completed. But I dont know javascripting so much so I couldnt remove animated gif and fade out form div block at the same time..I want to fade out the form area slowly and display

Re: ajax form submit, loading gif and swap panels

2011-10-07 Thread wholalotta
Any comment or documentation to learn how to call jquery function inside of this methot? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ajax-form-submit-loading-gif-and-swap-panels-tp3876326p3881810.html Sent from the Users forum mailing list archive at Nab

Re: creating a textarea with a radiobutton using Listview

2011-10-12 Thread wholalotta
Hi Manuelbarzi, I still cant figure out why the texts in the textareas are removed when I unset the checkbox that I selected. I think the following line is used to prevent this problem but it doesnt work. Do you have any idea? listView.setReuseItems(true); Thanks -- View this message in con

Re: Bookmarkable link within AjaxLazyLoadPanel

2011-10-27 Thread wholalotta
I think you forgot to close the following link.add(new Label(""+count)*)*; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-link-within-AjaxLazyLoadPanel-tp3943587p3943617.html Sent from the Users forum mailing list archive at Nabble.com. ---

DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
Hi, I want to make a filter to update a table according to selected user. I am filling a hashmap to retrieve some data from database. To accomplish that I overrided "wantOnSelectionChangedNotifications" method. But the problem is; when I choose the user1, the model value is updated as it is exptec

Re: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
Thanks for the quick response Sven...But eclipse gives error for the code you suggested I changed it as below; @Override protected void onSelectionChanged(Object criteria) { criteriaMap.put("user",((Criteria) criteria).getUserCriteria()); } But using onSelec

Re: AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
Ok I am overriding the both methods but still cannot update the userCriteria..It always contains the the value that I selected first.. new PropertyModel(criteria, "userCriteria") The whole code is as following; public class ListQuestionsPage extends AdminBasePage { @SpringBean UserDao

Re: AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
I think I am doing something wrong or there is a bug..newSelection is not contain the new selected user..like model value.. If I dont override any methods, selectbox model value is updated as it is expected.. But the the both of them always show the first selection... new PropertyModel(criteria,

Re: AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-12 Thread wholalotta
Any suggestion? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-model-is-not-updated-when-wantOnSelectionChangedNotifications-is-overriden-tp4031368p4033965.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-12 Thread wholalotta
Yes I checked the FormInput example..The only difference is that example has custem dropwdown component which stated in the same class..Also it uses the following in onSelectionChanged method.. // force re-render by setting the page to render to the bookmarkable // instance, so that the page will