Continuing on seam-dev:

It would technically be possible to alter the UIViewRoot during the PreRenderViewEvent. But... explain to me again the benefit of doing this? Not doubting you, just would like to know the end-value you are trying to provide, since we already have UIInputContainer for building composite components that can be used to decorate input fields.

--LB

On Thu, Jun 3, 2010 at 5:27 PM, Nicklas Karlsson <nickarls@gmail.com> wrote:
(continuing from my brainstorming session with Lincoln on #seam-dev)

Do you think it would be possible to have automatic invalid field decoration for the seam-faces module in the same style has
Seam 2 had for s:decorate?

you would place a 

<facet name="aroundInvalidField>
   html code with (perhaps) markers for the component and message
</facet>

on the page and then (in a phase listener?) check for components with messages and decorate them with the facet contents in the UIView somehow?
Not sure how it fits the JSF lifecycle to go manipulate the tree at that point, though. But it would be handy to be able to do it without the s:decorate stuff.

---
Nik



--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"