Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Re: T5: Crash on messages.format()

Howard Lewis Ship

2008-10-28


Author LoginPost Reply
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 <inge.tapestry@(protected):
> 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@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.