Query related to displaying ListView items in a particular way
Hi, I have a List View. I want to display the items in this list view in 2 columns. The logic for this is as follows: If only 1 item in list then there will 1 item in left columns, and no right column. For 2 items there will be 1 item in left and 1 in right. For 3 items there will be 1st item in left and then 2nd in right and in the next line 3rd in left. For 4 items there will be 1st item in left and then 2nd in right and in the next line 3rd in left and 4th in right. And so on for N items. How can I achieve this? I am interested in both, the HTML markup & code. Thanks. Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Please HELP - Value of the model not getting updated in a Panel
No luck. This did not work... :( Regards, Vinay Karmarkar -Original Message- From: Stefan Lindner [mailto:lind...@visionet.de] Sent: Monday, November 30, 2009 1:27 PM To: users@wicket.apache.org Subject: RE: Please HELP - Value of the model not getting updated in a Panel Try final TextField nameTextField = new TextField("reviwer"); nameTextField.add( new AjaxFormComponentUpdatingBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { // Do nothing } }); Then in your onSubmot method check if the value of nameTextField is present. Stefan -Original Message- From: Vinay Karmarkar (WT01 - BANKING & FINANCIAL SERVICES) Sent: Monday, November 30, 2009 2:29 PM To: users@wicket.apache.org Subject: RE: Please HELP - Value of the model not getting updated in a Panel Could you please provide some details. I am new to Wicket. Thanks. Regards, Vinay Karmarkar -Original Message- From: Stefan Lindner [mailto:lind...@visionet.de] Sent: Monday, November 30, 2009 1:27 PM To: users@wicket.apache.org Subject: RE: Please HELP - Value of the model not getting updated in a Panel I think your input fields need an AjaxFormUpdatingBehavior Stefan -Ursprüngliche Nachricht- Von: vinay.karmar...@wipro.com [mailto:vinay.karmar...@wipro.com] Gesendet: Montag, 30. November 2009 08:45 An: users@wicket.apache.org Betreff: Please HELP - Value of the model not getting updated in a Panel Hi, I have a panel which is present on a page. The panel consists of a link. By using JQuery I am opening a pop-up when this link is clicked. The pop-up contains a drop-down, text field and a save button. When the Save button is clicked, I am not able to get the new values entered in the drop-down and text field. The related code is as follows: MyPanel.html: Click to open pop-up Title Name Comments MyPanel.java: public class MyPanel extends Panel { private WebMarkupContainer popupPanelWMC; public MyPanel (String id, IModel model, List titleList) { super(id, model); add(new PanelForm("panelForm", model, titleList)); } private class PanelForm extends Form { @SuppressWarnings("unchecked") public PanelForm(String id, IModel model, List titleList) { super(id); final ReviewByVO reviewByVO = model.getObject(); this.setModel(new CompoundPropertyModel(reviewByVO)); AjaxLink popupLink = new AjaxLink("invoker") { @Override public void onClick(AjaxRequestTarget ajaxrequesttarget) { } }; popupPanelWMC = new WebMarkupContainer("popupPanel"); popupPanelWMC.setOutputMarkupId(true); popupLink.add(new AttributeModifier("data-showid", new Model("#" + popupPanelWMC.getMarkupId(; popupLink.add(new AttributeModifier("title", new Model( "Reviewed By"))); final TextField nameTextField = new TextField( "reviwer"); final TextArea commentsTextArea = new TextArea( "reviewComments"); final DropDownChoice titleDropDown = new DropDownChoice( "fnaTitle", new PropertyModel(model.getObject(), "titleList"), titleList, new TitleRenderer()); add(popupLink); popupPanelWMC.add(nameTextField); popupPanelWMC.add(commentsTextArea); popupPanelWMC.add(titleDropDown); popupPanelWMC.add(new Button("cancelPopup")); popupPanelWMC.add(new AjaxSubmitLink("savePopup") { @Override public void onSubmit(AjaxRequestTarget target, Form form) { nameTextField.processInput(); nameTextField.inputChanged(); System.out.println("nameTextField.getRawInput():" + nameTextField.getRawInput()); System.out.println("nameTextField.ge
RE: Please HELP - Value of the model not getting updated in a Panel
Could you please provide some details. I am new to Wicket. Thanks. Regards, Vinay Karmarkar -Original Message- From: Stefan Lindner [mailto:lind...@visionet.de] Sent: Monday, November 30, 2009 1:27 PM To: users@wicket.apache.org Subject: RE: Please HELP - Value of the model not getting updated in a Panel I think your input fields need an AjaxFormUpdatingBehavior Stefan -Ursprüngliche Nachricht- Von: vinay.karmar...@wipro.com [mailto:vinay.karmar...@wipro.com] Gesendet: Montag, 30. November 2009 08:45 An: users@wicket.apache.org Betreff: Please HELP - Value of the model not getting updated in a Panel Hi, I have a panel which is present on a page. The panel consists of a link. By using JQuery I am opening a pop-up when this link is clicked. The pop-up contains a drop-down, text field and a save button. When the Save button is clicked, I am not able to get the new values entered in the drop-down and text field. The related code is as follows: MyPanel.html: Click to open pop-up Title Name Comments MyPanel.java: public class MyPanel extends Panel { private WebMarkupContainer popupPanelWMC; public MyPanel (String id, IModel model, List titleList) { super(id, model); add(new PanelForm("panelForm", model, titleList)); } private class PanelForm extends Form { @SuppressWarnings("unchecked") public PanelForm(String id, IModel model, List titleList) { super(id); final ReviewByVO reviewByVO = model.getObject(); this.setModel(new CompoundPropertyModel(reviewByVO)); AjaxLink popupLink = new AjaxLink("invoker") { @Override public void onClick(AjaxRequestTarget ajaxrequesttarget) { } }; popupPanelWMC = new WebMarkupContainer("popupPanel"); popupPanelWMC.setOutputMarkupId(true); popupLink.add(new AttributeModifier("data-showid", new Model("#" + popupPanelWMC.getMarkupId(; popupLink.add(new AttributeModifier("title", new Model( "Reviewed By"))); final TextField nameTextField = new TextField( "reviwer"); final TextArea commentsTextArea = new TextArea( "reviewComments"); final DropDownChoice titleDropDown = new DropDownChoice( "fnaTitle", new PropertyModel(model.getObject(), "titleList"), titleList, new TitleRenderer()); add(popupLink); popupPanelWMC.add(nameTextField); popupPanelWMC.add(commentsTextArea); popupPanelWMC.add(titleDropDown); popupPanelWMC.add(new Button("cancelPopup")); popupPanelWMC.add(new AjaxSubmitLink("savePopup") { @Override public void onSubmit(AjaxRequestTarget target, Form form) { nameTextField.processInput(); nameTextField.inputChanged(); System.out.println("nameTextField.getRawInput():" + nameTextField.getRawInput()); System.out.println("nameTextField.getValue():" + nameTextField.getValue()); System.out.println("nameTextField.hasRawInput():" + nameTextField.hasRawInput()); }); add(popupPanelWMC); } } } Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attach
Please HELP - Value of the model not getting updated in a Panel
Hi, I have a panel which is present on a page. The panel consists of a link. By using JQuery I am opening a pop-up when this link is clicked. The pop-up contains a drop-down, text field and a save button. When the Save button is clicked, I am not able to get the new values entered in the drop-down and text field. The related code is as follows: MyPanel.html: Click to open pop-up Title Name Comments MyPanel.java: public class MyPanel extends Panel { private WebMarkupContainer popupPanelWMC; public MyPanel (String id, IModel model, List titleList) { super(id, model); add(new PanelForm("panelForm", model, titleList)); } private class PanelForm extends Form { @SuppressWarnings("unchecked") public PanelForm(String id, IModel model, List titleList) { super(id); final ReviewByVO reviewByVO = model.getObject(); this.setModel(new CompoundPropertyModel(reviewByVO)); AjaxLink popupLink = new AjaxLink("invoker") { @Override public void onClick(AjaxRequestTarget ajaxrequesttarget) { } }; popupPanelWMC = new WebMarkupContainer("popupPanel"); popupPanelWMC.setOutputMarkupId(true); popupLink.add(new AttributeModifier("data-showid", new Model("#" + popupPanelWMC.getMarkupId(; popupLink.add(new AttributeModifier("title", new Model( "Reviewed By"))); final TextField nameTextField = new TextField( "reviwer"); final TextArea commentsTextArea = new TextArea( "reviewComments"); final DropDownChoice titleDropDown = new DropDownChoice( "fnaTitle", new PropertyModel(model.getObject(), "titleList"), titleList, new TitleRenderer()); add(popupLink); popupPanelWMC.add(nameTextField); popupPanelWMC.add(commentsTextArea); popupPanelWMC.add(titleDropDown); popupPanelWMC.add(new Button("cancelPopup")); popupPanelWMC.add(new AjaxSubmitLink("savePopup") { @Override public void onSubmit(AjaxRequestTarget target, Form form) { nameTextField.processInput(); nameTextField.inputChanged(); System.out.println("nameTextField.getRawInput():" + nameTextField.getRawInput()); System.out.println("nameTextField.getValue():" + nameTextField.getValue()); System.out.println("nameTextField.hasRawInput():" + nameTextField.hasRawInput()); }); add(popupPanelWMC); } } } Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Error on Websphere 6.1 for Wicket Application
Hi, I am using Websphere 6.1 as App Server & Rational Application Developer environment for development of Wicket Application. I am getting the following error while trying to access the application. [11/12/09 10:34:24:033 IST] 0031 SystemErr R *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** [11/12/09 10:34:24:065 IST] 0031 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv09\logs\ffdc\server1_1b 381b38_09.11.12_10.34.24_0.txt [11/12/09 10:34:24:393 IST] 0031 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv09\logs\ffdc\server1_1b 381b38_09.11.12_10.34.24_0.txt [11/12/09 10:34:24:424 IST] 0031 SRTServletRes W WARNING: Cannot set status. Response already committed. [11/12/09 10:34:24:487 IST] 0031 SRTServletRes W WARNING: Cannot set header. Response already committed. Can anyone suggest any solution for this problem? Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Updating values of components inside a ListView
Hi, I am using a list view to display the data in a tabular format. Each row consists of a Label, TextField, DropDownChoice and Save Button components. The values of each of these components are pre-populated from the database. Now if I change value of the TextField and/or DropDownChoice and click Save button (which is a AjaxFallbackLink) I should get the updated/new values. How do I do this? Thanks. Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Getting the "Choose Option" on page reload
Thank you for the responses. theDropdownComponent.nullValid=Choose one worked. Regards, Vinay Karmarkar -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Monday, November 09, 2009 6:37 PM To: users@wicket.apache.org Subject: Re: Getting the "Choose Option" on page reload > I have 2 drop-downs and a search button my page. When the page is > loaded > for the first time, the first option in both the drop-downs is "Choose > Option". Now if I select some value and click Search, the page is > rendered again and the Choose Option is gone forever. But I want it > back. How do I go this? It is a consequence of disabling null values; you need to tell the dropdown to accept null values which is what "Choose Option" represents: theDropdownComponent.setNullValid(true); You will also want to override the display value property in the .properties file: theDropdownComponent.null_valid=Not set - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Getting the "Choose Option" on page reload
Hi, I have 2 drop-downs and a search button my page. When the page is loaded for the first time, the first option in both the drop-downs is "Choose Option". Now if I select some value and click Search, the page is rendered again and the Choose Option is gone forever. But I want it back. How do I go this? Thanks. Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com