pe:resetInput on p:dataTable

Community Driven Extensions Project
Post Reply
akoskm
Posts: 12
Joined: 29 Mar 2012, 11:55

11 Jul 2012, 22:02

Hi!

The showcase says that the pe:resetInput component can be applied to UICommand components.
Is there any way to get pe:resetInput work with UIData components too?

In my special case:
I have a master detail scenario with p:dataTable and with instant selection enabled.
I would like to reset the details panel on the p:dataTable rowSelect event.

Any ideas are appreciated.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

12 Jul 2012, 09:19

Hi,

<p:ajax event="rowSelect" .... >
<pe:resetInput event="rowSelect" ...>
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

12 Jul 2012, 09:28

Yes, the last release 0.5.1 supports p:ajax. I think I desribed this. See this example with p:selectOneMenu to see how it works with p:ajax. Where did you read about UICommand?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

akoskm
Posts: 12
Joined: 29 Mar 2012, 11:55

12 Jul 2012, 09:38

@zoigl
Thank you for your input, it worked!

@Oleg
Yeah I know that it should work with ajax, I read about the event option on the showcase. However on the same page pe:resetInput it also says that "ResetInput is a component which can be applied to any UICommand component like ...".
This is why I thought that there could be some limitations, but no, I just applied this component on UIData too.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

12 Jul 2012, 09:41

Quote from the showcase: "ResetInput is a component which can be applied to any UICommand component like CommandLink, CommandButton, MenuItem, RemoteCommand, HotKey and any ajaxified component with attached f:ajax / p:ajax."
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

akoskm
Posts: 12
Joined: 29 Mar 2012, 11:55

12 Jul 2012, 09:50

Oleg wrote:Quote from the showcase: "ResetInput is a component which can be applied to any UICommand component like CommandLink, CommandButton, MenuItem, RemoteCommand, HotKey and any ajaxified component with attached f:ajax / p:ajax."
My bad, thanks for pointing that out.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 5 guests