Hello

It would be fine to implement strict attribute to JSF components. If this 
attribute was true and binding in value attribute was invalid, then component 
wouldn't be rendered. It is useful if someone use one JSF page whith 
components bounded to backing bean where the bean is not allways of the same 
class.

For example I have some page.jsp using backing bean BeanCaseA that extends 
BeanCaseGeneric or BeanCaseB that extends BeanCaseGeneric. The bean is 
accessible through beanHolder.beanCase. Then:

#{beanHolder.beanCase.propertyX} - exists in BeanCaseGeneric (so in BeanCaseA 
and BeanCaseB too)
#{beanHolder.beanCase.propertyA} - only exists in BeanCaseA
#{beanHolder.beanCase.propertyB} - only exists in BeanCaseB


The syntax would be eg:

<h:outputText value="#{beanHolder.beanCase.propertyX}" strict="false" />

If strict parameter is't specified then the default value would be true.

Is this possible? Or is there some way to do this without modifying MyFaces?

PS: sorry if I am posting to wrong mailinglist (eg. not users at 
myfaces.apache.org)

-- 
Martin Zdila
Analyst/Developer

EpiSoftware Slovakia Ltd.
Letna 27, 043 14 Kosice

cellular: +421 908 363 848
   phone: +421 55 6770 420
     fax: +421 55 6770 420
  e-mail: [EMAIL PROTECTED]
     www: www.episoftware.com

Reply via email to