Hi Martin<br><br>I have been thinking a lot about it and for this one just add two simple methods on UIComponent could do the job:<br><br> public Object getTransient(Serializable key)<br> {<br> TransientStateHelper helper = getTransientStateHelper(false);<br>
if (helper != null)<br> {<br> return helper.get(key);<br> }<br> return null;<br> }<br> <br> public Object putTransient(Serializable key, Object value)<br> {<br> return getTransientStateHelper().put(key, value);<br>
}<br><br><br>Just like TransientStateHelper. <br><br>In theory, these methods will be used by the vdl or renderers, so this two simple methods will handle these cases correctly.<br><br>From my point of view, these methods in some way looks similar to the ones used for handle ValueBinding / ValueExpression on UIComponent.<br>
<br>best regards,<br><br>Leonardo Uribe<br><br><div class="gmail_quote">2010/9/16 Martin Marinschek <span dir="ltr"><<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Leo,<br>
<div class="im"><br>
> I was thinking if the interface provided for handle transient properties<br>
> should be exposed in some<br>
> way, adding some methods (getter/setter) on UIComponent, to make possible<br>
> manipulate them from "outside"<br>
> the component instance. It will be very useful, specially for UIViewRoot.<br>
<br>
</div>+1!<br>
<br>
what would be your proposed API?<br>
<br>
best regards,<br>
<br>
Martin<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="h5"><br>
<a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br>
<br>
Your JSF powerhouse -<br>
JSF Consulting, Development and<br>
Courses in English and German<br>
<br>
Professional Support for Apache MyFaces<br>
</div></div></blockquote></div><br>