jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: Partial Execution with Non-Ajax

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Thu, 15 Jan 2015 17:38:59 +0100

Hi,

On Thu, Jan 15, 2015 at 10:48 AM, Cagatay Civici
<cagatay.civici_at_gmail.com> wrote:
> I wonder why partial lifecycle execution is only specific to ajax requests?

I don't know the answer, but I could only guess that partial execution
just came naturally with AJAX, since it naturally does partial
updates.

> What can’t we do something like;
>
> <h:commandButton execute=“@this someinput” value=“Cancel” />

I think that would be useful indeed. Before AJAX the immediate
attribute was (ab)used for this, and after AJAX the answer was to just
use AJAX if you wanted this, even for those situations where AJAX
might not necessarily have been needed otherwise.

There is (or was) a request for sub-forms on the spec issue tracker
that is strongly related to this as well.

Kind regards,
Arjan



>
> It should be easy to support by sending a parameter to the server and
> override isPartial() in PartialViewContext.
>
> Do I miss something?
>
> Regards,
>
> Cagatay Civici
> PrimeFaces Lead
> PrimeTek Informatics
> www.primefaces.org