Menu

#147 Eclipse Plugin: Doesn\'t Recognise \"!\"

undecided
closed
nobody
5
2014-09-14
2006-09-01
Anonymous
No

Example:
${account.physicalAddress.city!}

I recieve the following error:
Encountered "!" at Line X, Column Y.
Was expecting one of:
"}"...
"."...
"["...

and so on. Looks like you just need to update a regular
expression that validates the string inside of ${} to
handle some of the newer features.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    It's not just the eclipse plugin.

    I get the following error on this line of code.
    <input type="hidden" name="feedId"
    value="${(dataBaseFeed.feedId)!}">

    org.springframework.context.ApplicationContextException:
    Failed to parse FreeMarker template for URL [AddFeed.ftl];
    nested exception is freemarker.core.ParseException:
    Encountered "!" at line 39, column 98.
    Was expecting one of:
    ".." ...
    "=" ...
    "==" ...
    "!=" ...
    <LESS_THAN> ...
    <LESS_THAN_EQUALS> ...
    <ESCAPED_GT> ...
    <ESCAPED_GTE> ...
    "}" ...
    ">" ...
    ">=" ...
    "." ...
    "[" ...
    "(" ...
    "?" ...
    "+" ...
    "-" ...
    "*" ...
    "/" ...
    "%" ...
    <AND> ...
    <OR> ...

     
  • Jeff Nichols

    Jeff Nichols - 2006-11-30

    Logged In: YES
    user_id=880145
    Originator: NO

    I confirm that the default value operator (!) does not work properly in the eclipse plugin. I took a (quick) look at the code but did not find an obvious solution.

    A workaround is to replace

    ${mouse!}

    with

    ${mouse?default("")}

    which as far as I can tell, does the same thing.

     
  • Attila Szegedi

    Attila Szegedi - 2007-04-17
    • labels: --> Eclipse plugin
    • summary: Eclipse Plugin: Doesn't Recognise "!" --> Eclipse Plugin: Doesn\'t Recognise \"!\"
     
  • Dániel Dékány

    • status: open --> closed
    • Group: --> undecided
     
  • Dániel Dékány

    The old Eclipse plugin was replaced by JBoss IDE's FreeMarker IDE since then.

     

Log in to post a comment.

MongoDB Logo MongoDB