>
> Not sure what the best way to create the labelkey is, but the above is
> consistent with how it was created before the change.
It didn't exist yet. How can it be consistent or not consistent?
> One little caveat of the above is that if wicket is configured not to throw
> an exception on a missing resource the label variable will be populated with
> a "[...warning resource not found...]" string since that's what the
> localizer will return. Not sure how to recover from it since it would be
> nice to have the formcomponent.getid() be the default label if all else
> fails like its doing right now.
>
yes, I agree this awkward. A workaround though I think is
// TODO I didn't find a simpler way to getString() throw a
MissingResourceException
// without changes the application settings. I guess this is something
to change in
// 1.2 or 1.3
String message = localizer.getString(resourceKey, formComponent,
resourceModel, "");
if ((message == null) || (message.length() == 0))
{
The trick is the default value of "". But I think it is not 100% save either
Juergen
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop