I fixed bug 206469 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=206469).
In tag attributes, JET is supposed to be treating \ as an escape character.
For symetry with the handling of \ in directives, the fix removes the \ and
leaves the following character as a literal even if that character does not
require quoting. I'll take a closer look at how JSP handles this issue and
consider adjusting the behavior.
In the meantime, the easiest work around is to use \\s.
Paul
"Edoardo Comar" <ecomar@uk.ibm.com> wrote in message
news:fua08u$oue$1@build.eclipse.org...
> With the latest integration build, my java output is uncompilable.
>
> where I should get
>
> public class Connection extends MyResource implements IConnection {
>
> I get
>
> public class Connection extends
> MyReource implements IConnection {
>
>
> I think this is related to the fix posted for
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=206469
> as I use <f:replaceAll value="\s+" ...>
> which to strip out whitespace
>
>
> my template is like this
>
> ...
> public class <c:get select="$resourceDef/javaInfo/class"/> extends
> <f:replaceAll value="\s+" replacement="" regex="true">
> <c:choose>
> <c:when test="$resourceDef/type = 'MyDefinition' ">MyDefinition</c:when>
> <c:when test="$resourceDef/type = 'MyManager' ">MyManager</c:when>
> <c:otherwise>MyResource</c:otherwise>
> </c:choose>
> </f:replaceAll> implements <c:get
> select="$resourceDef/javaInfo/interface"/> {
> ...
Paul Elder wrote:
> Edoardo:
>
> I fixed bug 206469 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=206469).
> In tag attributes, JET is supposed to be treating \ as an escape character.
> For symetry with the handling of \ in directives, the fix removes the \ and
> leaves the following character as a literal even if that character does not
> require quoting. I'll take a closer look at how JSP handles this issue and
> consider adjusting the behavior.
>
> In the meantime, the easiest work around is to use \\s.
>
> Paul
Paul, this is what I did, I don't think you need to change anything -
except that the sample in the HTML reference for the tag needs to be
updated :-)