Thanks for the reply, I was afraid I was going to get this answer. :-) I can understand it though.

Igor Vaynberg wrote:
im afraid we cannot do that. because the contract is that when a
resource is not found we output the body, which is supposed to be the
default text.

Am I pushing my luck if I interpret this as: if the resource is not found, replace it by the body *if there is one*. :-)))

Practically speaking if I don't supply a body I'd like to be informed (at least in development mode) if the resource is not found... If I really intend an empty string to be shown I can always define it to be empty in the properties file.

Just my two cents... :-)

Regards,
Sebastiaan



to do what you want we need to change that contract. i am not opposed
to that per se, but there needs to be a discussion followed by a vote.

-igor


On 11/3/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote:
Hi,

I was wondering if it is possible to configure wicket to make
wicket:message output the key in braces when the key is not found (at
least in development mode), because that would make it a lot easier to
spot missing labels...

That is, what I'd like to do is:

        <wicket:message key="bla" />

And have wicket output "[bla]" if the key bla cannot be found. I know I
could do this:

        <wicket:message key="bla">[bla]</wicket:message>

but this is a lot more verbose and it requires me to correctly type the
key name twice every time. Currently if the resource is not found it
just outputs nothing at all (which is hard to spot).

Regards,
Sebastiaan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to