> Something maybe that should improved is when the symbol value is null 
> instead of getting a nullpointer exception maybe do like Tiles does. 
> 

Clay's behavior handling symbol replacement should be as follows:

If a symbol is null, it will be replaced as an empty string within the token if 
the token length is greater than the symbol.

<set name="@myvalue">
"testing @myvalue a symbol" --> "testing  a symbol "

If the symbol is null and the target expression's length is zero, the attribute 
is ignored and not passed to the component.

<set name="@myvalue">
"@myvalue" --> N/A, ignored

If a symbol is not defined, it will not be replaced with the token.

"@myvalue" --> "@myvalue"

Somthing that I fixed last weekend was the case sensitivity on symbols.  HTML 
attributes that are not defined by a bound component using the jsfid attribute, 
are considered symbols.  

<span jsfid="outputText" class="displayclass" />

<set name="styleClass" value="@Class"/>

The HTML parser normalizes the case of attributes to lower case.  The token 
replacement is now case insensitive.  The example above will now work. 

What is the scenario that you are talking about?  Please give an example.

> -- 
> Alexandre Poitras 
> Québec, Canada 
> 

Gary

Reply via email to