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

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

From: Michael Müller <michael.mueller_at_mueller-bruehl.de>
Date: Fri, 16 Jan 2015 19:09:43 +0100

Hello together,

Am 15.01.2015 um 23:43 schrieb arjan tijms:
> If I understood the case correctly, I'd say just as you normally do.
> The execute attribute is about what fields the server processes. For
> instance suppose you have:
>
> <h:inputText id="name" value="#{bean.name}" />
> <h:inputText id="email" value="#{bean.email}" />
>
> Now consider that in some cases you only want that "name" is
> processed, and that "email" is ignored (server side). Ignored here
> then means no converter or validator runs for the "email" component
> and no value (if any was provided) is pushed into the model.
Ok, I got you point.
@Cagatay Is this your intention? Not a real parial request, but to
ignore some elements?

Hazem's mention of subform is quite interesting. Thus, only parts might
be send during the post back, still initiating a full response (?).

Now, let's consider a situation where you dynamically want to decide,
which parts (not a whole [sub]form, just a single or couple of elements)
shall be processed at server side or not.
What about adding a special attribute? Missing defaults to false which
is existing behavior.

<h:inputText id="name" value="#{bean.name}" ignore="#{bean.ignoreNameCondition}"/>
<h:inputText id="email" value="#{bean.email}" ignore="#{bean.ignoreNameCondition}"/>

Might this be a usefull addition to [sub]form?

Best,
Michael