You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Inge Solvoll <in...@gmail.com> on 2008/10/28 13:59:36 UTC

T5: Crash on messages.format()

I'm trying this in T 5.0.13:

messages.format("view.last.x", Integer.toString(VIEW_LIMIT));

In my properties file:
view.last.x = View last %d

The following exception occurs:

An unexpected application exception has occurred.

Render queue error in Expansion[PropBinding[expansion
profiles/ChangeLog(toggleViewAllLabel)]]: d != java.lang.String


Any ideas? Am I doing something wrong?

Regards
Inge

Re: T5: Crash on messages.format()

Posted by Howard Lewis Ship <hl...@gmail.com>.
Use %s for strings, %d for integers (or other numbers).

I'd change this to:

messages.format("view.last.x", VIEW_LIMIT);

On Tue, Oct 28, 2008 at 5:59 AM, Inge Solvoll <in...@gmail.com> wrote:
> I'm trying this in T 5.0.13:
>
> messages.format("view.last.x", Integer.toString(VIEW_LIMIT));
>
> In my properties file:
> view.last.x = View last %d
>
> The following exception occurs:
>
> An unexpected application exception has occurred.
>
> Render queue error in Expansion[PropBinding[expansion
> profiles/ChangeLog(toggleViewAllLabel)]]: d != java.lang.String
>
>
> Any ideas? Am I doing something wrong?
>
> Regards
> Inge
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org