loops delimiter

12 views
Skip to first unread message

omax

unread,
Aug 3, 2008, 3:10:13 PM8/3/08
to gxp-users
I can't make delimiter work as per example:

<gxp:loop var="nam" type="String" iterable="names" delimiter=", ">
<gxp:eval expr="nam" />
</gxp:loop>

But I get:
src\main\gxp\test\HelloGxp.gxp:12:2:12:2: 'delimeter' attribute is
unknown in <gxp:loop>.

Is there any trick here?

Thanks, Oleksandr Maksymchuk

Laurence Gonsalves

unread,
Aug 3, 2008, 3:58:55 PM8/3/08
to gxp-users
Based on the error message, it looks like the code you're trying to
compile says "delimeter" rather than "delimiter".

Maybe we should add a "did you mean?" bit to this type of error
message. The jikes Java compiler did this, and it was very helpful.

Oleksandr Maksymchuk

unread,
Aug 4, 2008, 1:07:13 AM8/4/08
to gxp-...@googlegroups.com
Sorry, but I tried both before posting and checked dictionary.

The same with: delimiter:

src\main\gxp\test\HelloGxp.gxp:14:2:14:2: unextractable 'delimiter' attribute

Oleksandr Maksymchuk

unread,
Aug 4, 2008, 1:08:50 AM8/4/08
to gxp-...@googlegroups.com
almost the same... it's uexpectable... and I have no clue why, as per
doc and examples everything is ok, no?

Laurence Gonsalves

unread,
Aug 4, 2008, 2:47:16 AM8/4/08
to gxp-users
On Aug 3, 10:08 pm, "Oleksandr Maksymchuk" <o...@omax.org.ua> wrote:
> almost the same... it's uexpectable... and I have no clue why, as per
> doc and examples everything is ok, no?

The compiler is complaining that there's free text that hasn't been
marked up for translation. You can add a <gxp:msg> or <gxp:nomsg>
around the unextractable text, or add i18nwarn="false" in your ant
script to disable these warnings.

Since delimiter is an attribute, you'll either need to use <gxp:attr>
with the <gxp:msg>/<gxp:nomsg> or use the msg:/nomsg namespace on the
attribute.
Reply all
Reply to author
Forward
0 new messages