Yes that is the issue. I need to have all these in different columns for look
& feel reasons. Is there any way that I can wrap the entire table row in a
form? SubmitLink won;t work for me since I have another column which will
have a date picker and I will need tp pick up the value of that too. I
originally had tried to use one form for the entire table but I had the same
issue with not getting the updates. That was awhile ago, do you think I
should try that again, perhaps the reuse strategy was the problem at that
time? The best thing would be to have a form per row but I am not sure how
to do this using the panels in the table columns.


igor.vaynberg wrote:
> 
> well, the problem is that you put your button outside the form. if you
> need
> to do this you can use submitlink and pass it the form instance you wish
> it
> to submit. you can still attach submitlink to <input type="button"> if you
> want the button look.
> 
> -igor
> 
> 
> On 8/16/07, salmas <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi Igor:
>> I have attached the source folder from the quickstart. The project has no
>> additional dependencies so just replacing the source folder in the
>> quickstart should do it. I tried attaching a zip of the entire thing but
>> with the libraries and docs it's too big to attach here. Let me know if I
>> am
>> missing anything or if you need the entire project and I can ftp/email it
>> to
>> you.
>> The basic issue is that for look/feel reasons I have a form in one column
>> of
>> a table and a submit button in the next column. However, edits to the
>> form
>> controls in the first panel are not detected. When you run the quickstart
>> then edit the textfield and let me know how I can capture the input when
>> submit is pressed in the submit panel.
>>
>> Regards
>>
>>
>> igor.vaynberg wrote:
>> >
>> > set up a quickstart so there is something to play with and then someone
>> > might be able to help you. as it is right now there simply isnt enough
>> > information.
>> >
>> > -igor
>> >
>> >
>> > On 8/15/07, salmas <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I hadn't but I just tried it and no difference. The issue is that when
>> I
>> >> type
>> >> into the textfield the value of "amount" is not changed. Do you have
>> any
>> >> idea why this would be? I do resue the textfield twice setting it
>> >> invisible
>> >> once because if I don't add it to the second row I'll get an exception
>> >> because the markup expects an object with that wicket id. I only need
>> it
>> >> to
>> >> show along with the first choice in the radio group. Should I be doing
>> >> this
>> >> panel differently?
>> >>
>> >>
>> >> igor.vaynberg wrote:
>> >> >
>> >> > did you call listview.setreuseitems(true)?
>> >> > -igor
>> >> >
>> >> >
>> >> > On 8/15/07, salmas <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >>
>> >> >> Hi Igor:
>> >> >>
>> >> >> Yes the button/Link works but it still does not solve my issue. I
>> have
>> >> a
>> >> >> table where two of the columns have panels. One of the panels has a
>> >> >> textField and a radio choice and the other panel has the submit
>> >> button.
>> >> >> When
>> >> >> I hit submit I need the values in the textfield and in the choice.
>> >> While
>> >> >> the
>> >> >> textfield has a propertymodel this model is never updated when I
>> type
>> >> in
>> >> >> the
>> >> >> field and I never get an updated value for it. I have tried
>> >> >>
>> >> >> ReuseIfModelsEqualStrategy strategy = new
>> >> ReuseIfModelsEqualStrategy();
>> >> >> table.setItemReuseStrategy(strategy);
>> >> >> and making sure my model has equals and hashcode implemented
>> properly
>> >> and
>> >> >> I
>> >> >> have made sure that the table is not redrawn using the button/link
>> >> combo
>> >> >> so
>> >> >> I am not sure why the panel with the textfield never "sets" a value
>> >> when
>> >> >> I
>> >> >> type into the textfield?
>> >> >>
>> >> >> Below is the code for the ListView that I use to populate the
>> >> textfield
>> >> >> and
>> >> >> choice in my panel. It contains the "amountfield" but when I edit
>> the
>> >> >> amount
>> >> >> "setAmount" is never called when I type values in the textfield.
>> >> >>
>> >> >>         class OptionsListView extends ListView {
>> >> >>                 private String amount="0.00";
>> >> >>
>> >> >>                 public OptionsListView(java.lang.String id,
>> >> >>                 java.util.List list) {
>> >> >>                         super(id,list);
>> >> >>                 }
>> >> >>
>> >> >>                 protected void populateItem(ListItem item)
>> >> >>                 {
>> >> >>                         TextField amountField = new
>> >> TextField("amount",
>> >> >> new
>> >> >> PropertyModel(this,"amount"));
>> >> >>                         Radio radio = new
>> >> >> Radio(workflowFrame_radioPanel_radioOption,
>> >> >> item.getModel());
>> >> >>                         item.add(radio);
>> >> >>
>> >> >>                         if (item.getIndex() == 0) {
>> >> >>                                 choice.setModel(item.getModel());
>> >> >>                                 item.add(amountField);
>> >> >>                         } else {
>> >> >>                                 amountField.setVisible(false);
>> >> >>                                 item.add(amountField);
>> >> >>                         }
>> >> >>
>> >> >>                         Label label = (Label)(item.getModel
>> >> >> ().getObject(this));
>> >> >>                         item.add(label);
>> >> >>                 System.out.println("amountField " +
>> >> amountField.getValue
>> >> >> ());
>> >> >>                 }
>> >> >>
>> >> >>                 public String getAmount() {
>> >> >>                         System.out.println(amount);
>> >> >>                         return amount;
>> >> >>                 }
>> >> >>
>> >> >>                 public void setAmount(String amount) {
>> >> >>                         this.amount = amount;
>> >> >>                         System.out.println("Setting amount " +
>> >> amount);
>> >> >>                 }
>> >> >>         };
>> >> >>
>> >> >>
>> >> >>
>> >> >> igor.vaynberg wrote:
>> >> >> >
>> >> >> > simply do this
>> >> >> >
>> >> >> > <input type="button" wicket:id="button" value="foo"/>
>> >> >> >
>> >> >> > add(new Link("button") { onclick() {...}});
>> >> >> >
>> >> >> > Link is smart to figure out that it isnt attached to anchor tag
>> and
>> >> >> will
>> >> >> > generate an onclick attr.
>> >> >> >
>> >> >> > -igor
>> >> >> >
>> >> >> >
>> >> >> > On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> >> >> >>
>> >> >> >> It's been awhile since I posted to this thread but I have been
>> out
>> >> >> sick
>> >> >> >> for about two weeks. I had a thread going titled "Updates within
>> >> >> Panels
>> >> >> >> in
>> >> >> >> datatable" on the old list but I am posting to the new one so I
>> >> don't
>> >> >> >> think the older messages will show.
>> >> >> >> Is there a way that I can have a button which has a java handler
>> >> for
>> >> >> an
>> >> >> >> onclick event but does not submit the page (redraw the table) I
>> >> >> believe
>> >> >> >> that this would solve my problem. I cannot use the 1.3 beta
>> since
>> >> the
>> >> >> >> company I am working for doesn't want to use that yet.
>> >> >> >>
>> >> >> >> Thanks
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Updates-within-Panels-in-datatable-tf4274165.html#a12170198
>> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Updates-within-Panels-in-datatable-tf4274165.html#a12170489
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> http://www.nabble.com/file/p12188949/src.zip src.zip
>> --
>> View this message in context:
>> http://www.nabble.com/Updates-within-Panels-in-datatable-tf4274165.html#a12188949
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Updates-within-Panels-in-datatable-tf4274165.html#a12189864
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to