A strange problem illegal colon after argument expression;

2,489 views
Skip to first unread message

nile black

unread,
Apr 8, 2010, 1:30:46 AM4/8/10
to play-fr...@googlegroups.com
does not compile : illegal colon after argument expression; solution: a complex label expression before a colon must be parenthesized

my template like this

    #{list items : lastPosts,as:'post'}
        <a href="@{Postz.show(post.author.fullname,post.id)}">${post.title}</a> <br/>
    #{/list}


it work fine last night!

Nile Black
-----------------
http://www.jsxnc.com

nile black

unread,
Apr 8, 2010, 1:44:04 AM4/8/10
to play-fr...@googlegroups.com
the error stack is

play.exceptions.TemplateCompilationException: illegal colon after argument expre
ssion;

   solution: a complex label expression before a colon must be parenthesized
        at play.templates.Template.compile(Template.java:173)
        at play.templates.Template.render(Template.java:184)
        at play.mvc.results.RenderTemplate.<init>(RenderTemplate.java:22)
        at play.mvc.Controller.renderTemplate(Controller.java:388)
        at play.mvc.Controller.render(Controller.java:420)
        at controllers.Searchv.search(Searchv.java:38)
        at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:332)

        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:154)
        at Invocation.HTTP Request(Play!)


Nile Black
-----------------
http://www.jsxnc.com


nile black

unread,
Apr 8, 2010, 1:50:31 AM4/8/10
to play-fr...@googlegroups.com
OOOOOOOO!
i got it!

#{list items : lastPosts,as:'post'}
i remove the red space  items :, it work fine!!!



Nile Black
-----------------
http://www.jsxnc.com


Reply all
Reply to author
Forward
0 new messages