Add syntactical checking to Clay
--------------------------------
Key: SHALE-433
URL: https://issues.apache.org/struts/browse/SHALE-433
Project: Shale
Issue Type: Improvement
Components: Clay
Affects Versions: 1.0.4
Reporter: Hermod Opstvedt
Priority: Minor
If you by mistake forget to close a curly bracket expression in a Clay
definition, it is threated as a regular string. Consider the following example:
<component jsfid="leftMenu" extends="clay" id="leftMenu">
<element jsfid="infoPanel" renderId="0"></element>
<element jsfid="loginpanel" renderId="1">
<attributes>
<set name="rendered" value="[EMAIL
PROTECTED]"></set>
</attributes>
</element>
......
</component>
As one can see, this was "meant" to be a method call to the viewcontroller, but
since it is not closed it is threated as string and evaluates to false. We
should add some sort of check, so that if the expression starts with "#{", then
we should issue a warning at least if the "}" is missing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.