Page 1 of 1

pe:resetInput on p:dataTable

Posted: 11 Jul 2012, 22:02
by akoskm
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.

Re: pe:resetInput on p:dataTable

Posted: 12 Jul 2012, 09:19
by tandraschko
Hi,

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

Re: pe:resetInput on p:dataTable

Posted: 12 Jul 2012, 09:28
by Oleg
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?

Re: pe:resetInput on p:dataTable

Posted: 12 Jul 2012, 09:38
by akoskm
@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.

Re: pe:resetInput on p:dataTable

Posted: 12 Jul 2012, 09:41
by Oleg
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."

Re: pe:resetInput on p:dataTable

Posted: 12 Jul 2012, 09:50
by akoskm
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.