I noticed today that StringResourceModel could be slightly nicer to
use if the Object[] parameter used by the underlying MessageFormat was
replaced with a vararg in the StringResourceModel constructor.  Sure
enough, there was an old thread that touched on this topic.  The
defaultValue would have to move in a couple of the constructor
signatures.  Thoughts?  Worth doing?

Old thread:

http://www.mail-archive.com/[email protected]/msg24385.html

Tested briefly in my code with:

    public class VarArgResourceModel extends StringResourceModel
    {
        public VarArgResourceModel( String resourceKey, IModel<?>
model, Object... parameters )
        {
            super( resourceKey, model, parameters );
        }
    }

Enrique

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to