I typically write this out longhand (is that bad or unpopular) for ez
debugging):

    add(new Label("quote", new ResourceModel("default-quote")));

would often be:

    IModel<String> model = new ResourceModel("default-quote")));
    Label label = new Label("quote", model);
    add(label);

My question is, am I correct to assume that a ResourceModel is an
IModel<String>? I think that is what the source has but typing my
application based on what the black box library uses today seems like a bad
practice. I'm afraid to rely on this -- since, the source could change ... ?
False alarm? Am I misunderstanding something maybe?

Thanks,

-Luther

Reply via email to