Re: [Wicket-user] A question about DataTable Component.

2007-07-25 Thread Evgeniy Platonov

Hi there,

I have similar situation. AjaxFallBackDataTable and New AjaxButton on a
form. New button calls ajax Modal dialog which itself contains textfield
and AjaxButton Save. 
Save button's onSubmit looks aproximetly like this

protected void onSubmit( AjaxRequestTarget target, Form form ) {
String description =
descriptionField.getModelObjectAsString();
dataProvider.save( description );
target.addComponent( refreshableComponent );
modalWindow.close( target );
}

where refreshableComponent is the AjaxFallBackDataTable from first page.
In runtime new record is saved, the dialog is closed, but table is not
refreshed :(
So something is wrong there.
Could you be so good to show me the way?

Thanks a lot.
Evgeniy.


igor.vaynberg wrote:
 
 On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I am using the AjaxFallBackDataTable from the wicket-extensions project.
 Using this component I am rendering some entities, and I also have a
 delete link
 for deleting the displayed entities.
 The delete link is AjaxFallBackLink.
 My question is, once the link is submitted over ajax, and the entity is
 deleted, is there
 a way to force the Table to update, (over ajax ), without having to
 reload
 the page ?
 
 
 add it to the ajaxrequesttarget available in your link's onclick. since
 its
 a fallback link make sure you test the target for null. see javadoc.
 
 -igor
 
 

-- 
View this message in context: 
http://www.nabble.com/A-question-about-DataTable-Component.-tf4012562.html#a11782138
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] A question about DataTable Component.

2007-07-25 Thread Evgeniy Platonov

The question is closed. I've found a solution there 
http://www.nabble.com/ModalWindow%2C-Forms%2C-and-Updating-underlying-Panels-tf3578768.html#a1827
http://www.nabble.com/ModalWindow%2C-Forms%2C-and-Updating-underlying-Panels-tf3578768.html#a1827
 

It's not so intuitive as I wish, but it works :)

Evgeniy Platonov wrote:
 
 Hi there,
 
 I have similar situation. AjaxFallBackDataTable and New AjaxButton on a
 form. New button calls ajax Modal dialog which itself contains textfield
 and AjaxButton Save. 
 Save button's onSubmit looks aproximetly like this
 
 protected void onSubmit( AjaxRequestTarget target, Form form )
 {
 String description =
 descriptionField.getModelObjectAsString();
 dataProvider.save( description );
 target.addComponent( refreshableComponent );
 modalWindow.close( target );
 }
 
 where refreshableComponent is the AjaxFallBackDataTable from first page.
 In runtime new record is saved, the dialog is closed, but table is not
 refreshed :(
 So something is wrong there.
 Could you be so good to show me the way?
 
 Thanks a lot.
 Evgeniy.
 
 
 igor.vaynberg wrote:
 
 On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I am using the AjaxFallBackDataTable from the wicket-extensions project.
 Using this component I am rendering some entities, and I also have a
 delete link
 for deleting the displayed entities.
 The delete link is AjaxFallBackLink.
 My question is, once the link is submitted over ajax, and the entity is
 deleted, is there
 a way to force the Table to update, (over ajax ), without having to
 reload
 the page ?
 
 
 add it to the ajaxrequesttarget available in your link's onclick. since
 its
 a fallback link make sure you test the target for null. see javadoc.
 
 -igor
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/A-question-about-DataTable-Component.-tf4012562.html#a11786496
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] A question about DataTable Component.

2007-07-02 Thread Igor Vaynberg

On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


I am using the AjaxFallBackDataTable from the wicket-extensions project.
Using this component I am rendering some entities, and I also have a
delete link
for deleting the displayed entities.
The delete link is AjaxFallBackLink.
My question is, once the link is submitted over ajax, and the entity is
deleted, is there
a way to force the Table to update, (over ajax ), without having to reload
the page ?



add it to the ajaxrequesttarget available in your link's onclick. since its
a fallback link make sure you test the target for null. see javadoc.

-igor





thanks


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user