Panel not refreshed from ModalWindow via Ajax Button

2010-05-28 Thread jammyjohn
Hi, Could any one please help me fixing this panel refresh issue. first time the panel is refreshed. and that too with (setResponsePage() as workaround). Afterwards it is not getting refreshed at all. Always retains the previous value... 1.I have an Ajaxbutton, on click of it- opens a

Re: Panel not refreshed from ModalWindow via Ajax Button

2010-06-01 Thread jammyjohn
Could any one help me in solving this issue Jamuna. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-not-refreshed-from-ModalWindow-via-Ajax-Button-tp2235354p2238945.html Sent from the Wicket - User mailing list archive at Nabble.com.

Turning of the labels in the Panel when reused

2010-06-01 Thread jammyjohn
Hi, I am having a panel with labels and textfields. I am reusing this panel twice next to each other on the form. Is there a way to turn off the rendering of labels only, while displaying the panel for the second time in order to avoid repetition of labels on the form. Please suggest. Jamuna

Re: Panel not refreshed from ModalWindow via Ajax Button

2010-06-01 Thread jammyjohn
Thanks for your reply. I first went in the direction of changing the model object which did not work. Then I started using replacewith which is still a issue. Jamuna. -- View this message in context:

How to get a value of textfield on onBlur event..

2010-06-08 Thread jammyjohn
Hi, How to get the value of the textfield on onBlur event? The below code always prints null for shipIdTf.getInput() final TextField shipIdTf = new TextField(ship.id); shipIdTf.setOutputMarkupId(true); mawbForm.add(shipIdTf);

Re: How to get a value of textfield on onBlur event..

2010-06-08 Thread jammyjohn
Thanks for your reply. It worked. But I ran into another problem. Instead of getting the value of textfield value getInput(), I tried getting it from my model as dtoModel.getObject().getShipId(). This gives me the correct value(the value entered in the text field) for the first time. If I

DateTime rendered in a single textfield (FORMAT =MM/dd/yy kk:mm)does not hold to kk:mm values when a date is selected in a datepicker

2010-06-11 Thread jammyjohn
I wrote my own class MilitaryDateTimeField extends TextFieldDateTime implements AbstractTextComponent.ITextFormatProvider which displays both date and time in a single text field in the format mentioned above. But the problem is, if I select a different date, the textfield renders with

How to create a Popup Button

2010-06-15 Thread jammyjohn
Could anybody suggest how to create a popup button. I read in the forum that a link can be attached to a button. But it did not help me. Not sure, where is the mistake in the below code. html code -- //having a link id inside a button.. input type=button wicket:id=mawbNotes

AjaxFormComponentUpdatingBehavior is not called when the textfield is set as required field.

2010-06-21 Thread jammyjohn
Hi, If the setRequired is set to true, then the println statement is not called, otherwise it is called. Not sure, where I am doing wrong. Please suggest. final TextFieldString name= new TextFieldString(name); name.setRequired(true);

Re: AjaxFormComponentUpdatingBehavior is not called when the textfield is set as required field.

2010-06-22 Thread jammyjohn
Thanks for your input. It was very useful. J. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-is-not-called-when-the-textfield-is-set-as-required-field-tp2263486p2264933.html Sent from the Wicket - User mailing list archive at

Submitting a component value on a ajax call of a different component

2010-06-22 Thread jammyjohn
Hi, I have a dropdown box and a text field as below //dropdownbox final DropDownChoice typeOption=new DropDownChoice(type, dataList){ protected boolean wantOnSelectionChangedNotifications() { return true;

Re: Submitting a component value on a ajax call of a different component

2010-06-23 Thread jammyjohn
Hi, I am looking to submit the selected value from the dropdown to the server , on the onblur of the textfield component. Is there a way to do it, though I have attached the AjaxFormComponentUpdatingBehavior to the textfield but not to the dropdown box. Appreciate your help in this regard.

Re: Submitting a component value on a ajax call of a different component

2010-06-25 Thread jammyjohn
Thank you so much for your reply. I tried using getCallbackScript on my dropdown box. But it is never been called and also the fetch value on the wicket side returns null for the dropdown box. Not sure where I am doing wrong. Please suggest. My code is as below..

Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread jammyjohn
Hi, The page loads address panel with couple of text fields . When the search is made for a particular address id, the address panel is rendered twice (one panel with the data, the second panel without the data). Not sure how to avoid re-rendering of panel twice, setResponsePage(getPage())

Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread jammyjohn
Ed, Thanks for your reply. I already tried this. But still the problem exists. :( setResponsePage(getPage(this)) seems to be the work around for this issue. But the problem is, the other inputfields that have values on this page are lost when the panel is re-rendered. I am not sure how to

Re: Panel re-rendered twice, when the data is pulled in.

2010-06-28 Thread jammyjohn
Ed, Thank you so much for the reply. Could you please send me the link to the working example. I would like to compare with the one I have. Btw, thanks for pointing out the improper usage of table fragment as panel. I have modified to div Appreciate your help in this regard. J. -- View this

Re: Submitting a component value on a ajax call of a different component

2010-06-28 Thread jammyjohn
Why is getCallbackScript(boolean onlyTargetActivePage) is not called in the below code. I realized that it is not a @Override method. Not sure what is wrong here Instead of using typeOption.add(new AbstractDefaultAjaxBehavior(), I also tried using typeOption.add(new

Re: passing a map into PageParameters

2010-06-28 Thread jammyjohn
PageParameters parameters = new PageParameters(swfParameters); This is how the hashmap is constructed in PageParameters.. Thanks, J -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/passing-a-map-into-PageParameters-tp2271341p2271351.html Sent from the Wicket - User

Re: Panel re-rendered twice, when the data is fetched.

2010-06-28 Thread jammyjohn
Hi, I figured out the issue for panel being rendered twice :) The addresspanel.html was not started with table tag... It directly has a tr tag.. It worked fine, when I constructed the tags with proper tabletrtd../td/tr/table. Thanks a lot... J -- View this message in context:

Adding vertical scrollbar to the listview

2010-07-15 Thread jammyjohn
Hi, I have a list view that displays 5 blank rows. When I click the add blank row button, it adds 5 more rows to the existing 5 blank rows. Likewise, my listview may grow. Is there a possibility to add a scrollbar to my listview. Appreciate your help in this regard. Thanks J -- View this