[jboss-user] [JBoss Seam] - Re: When a component is not found should Seam warn or fail?
max.andersen@jboss.com
do-not-reply at jboss.com
Wed Sep 20 04:16:35 EDT 2006
Is there anything in EL that allows you to force existence of a variable ?
This is similar to the struggles i had with velocity vs freemarker.
Velocity assumes non-existence is ok and just output null where as FreeMarker takes the opposite stance and complains if it does not exist plus having syntax for allowing you to provide the default in case of "non-existence".
I like the freemarker way much better since you are explicit about wether null/not-there is expected or not.
In any case, providing a way for an EL expression to say "this variable should/must be here" + a decent exception message in case it is not, would be a good help to everyone trying to write an application.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972840#3972840
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972840
More information about the jboss-user
mailing list