Hi *,

I've implemented a proposal for "partial validation and model update".

Essentially what I've done is I've given the commandLink and
commandButton a new attribute, "actionFor". This attribute is a
comma-separated lists of container-component-ids for which validation
and model update should happen.

So if you have a

<h:panelGroup id="xxx">
<h:inputText .../>
</h:panelGroup>

and a

<t:commandButton actionFor="xxx"/>

the validation and model-update phases will only be triggered for
components which are descendants of the panelGroup with id="xxx".

Sounds good?

Fellow developers, I had to tweak the API-classes a little to make
this happen - I didn't change any signature or so, but I store stuff
in the externalContext.getRequestMap(). Maybe someone of you can come
up with a better, less intrusive solution to the problem?

The only other solution I could think of would have been to implement
processValidations() and processUpdates() for every extended
component, not a very interesting outlook!

regards,

Martin

--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to