You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by rosecorp <ro...@gmail.com> on 2013/01/30 23:04:15 UTC

datatables tapestry-jquery refresh

Guys,

I have functionality on place where I remove a record from
datatables(server-side support). What's the easiest way to refresh it after
deleting a record? 

Thanks a lot for any suggestions...



--
View this message in context: http://tapestry.1045711.n5.nabble.com/datatables-tapestry-jquery-refresh-tp5719681.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: datatables tapestry-jquery refresh

Posted by rosecorp <ro...@gmail.com>.
Thanks Manu,

I'll give it a go and write what was a result.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/datatables-tapestry-jquery-refresh-tp5719681p5719697.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: datatables tapestry-jquery refresh

Posted by Emmanuel DEMEY <de...@gmail.com>.
In your page, you can maybe use the AjaxResponseRenderer and its
addCallback(JavaScriptCallBack) method. In your JavaScriptCallBack
implementation, you will call the fnDeleteRow method of the DataTable
widget : http://www.datatables.net/api




2013/1/31 rosecorp <ro...@gmail.com>

> Hi Manu,
>
> Sorry I wasn't accurate enough.
>
> I Java code I listent to the event:
>
>         @OnEvent(value = "removeItem")
>         boolean onAd(String id) {
>                 service.deleteItem(id);
>                 return true;
>         }
>
> in tml:
>
> <p:removeCell>
>                                           <#>
>
>                                                  Remove
>
>                                 </p:removeCell>
>
>
> Removal works fine but ajax refresh still is a question to you :) how to do
> it in an easy an correct way.
>
> Cheers,
> Manu.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/datatables-tapestry-jquery-refresh-tp5719681p5719695.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey

Re: datatables tapestry-jquery refresh

Posted by rosecorp <ro...@gmail.com>.
Hi Manu,

Sorry I wasn't accurate enough.

I Java code I listent to the event:

        @OnEvent(value = "removeItem")
	boolean onAd(String id) {
		service.deleteItem(id);
		return true;
	}

in tml:

<p:removeCell>
					  <#> 
						
						 Remove 
					 
				</p:removeCell>


Removal works fine but ajax refresh still is a question to you :) how to do
it in an easy an correct way.

Cheers,
Manu.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/datatables-tapestry-jquery-refresh-tp5719681p5719695.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: datatables tapestry-jquery refresh

Posted by Emmanuel DEMEY <de...@gmail.com>.
Hi,

can you explain more in details how you remove your row ?? in order to find
the best solution to your problem.

You can maybe return a JavaScriptCallBack to your Ajax Request, that will
delete the row with the DataTable API.

Manu


2013/1/30 rosecorp <ro...@gmail.com>

> Guys,
>
> I have functionality on place where I remove a record from
> datatables(server-side support). What's the easiest way to refresh it after
> deleting a record?
>
> Thanks a lot for any suggestions...
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/datatables-tapestry-jquery-refresh-tp5719681.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey