[jboss-user] [JBoss Seam] - Re: Avoiding the DRY Principle with beans

gavin.king@jboss.com do-not-reply at jboss.com
Tue Jul 11 12:16:33 EDT 2006


"bfo81" wrote : BUT: What about casting? I mean when you access the employee, e.g.
  | <h:outputText value="#{employee.name}" />
  | then JSF accesses the getName() method of the employee object. But since this one is a java.lang.Object and not a Employee I fear that we might get a MethodNotFoundError. Or is the reflection mechanism in Java smart enough for this?

No problem. EL totally ignores the declared type.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957058#3957058

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957058



More information about the jboss-user mailing list