Oh an by the way. The constructor for my summary page looks like this at the
moment:

public RegistrationResultPage(final int user_id)
{
        super(null);

        // model setup
        IModel model = new CompoundPropertyModel(new LoadableDetachableModel()
        {
                public Object load()
                {
                        return userAccountService.getUser(user_id);
                }
        });
        setModel(model);

        add(new Label("info", new PropertyModel(getModel(), "email")));
}

What's the recommended way to format the output for label "info" before it
get's rendered. For example. The property getter for the "email" property
returns [EMAIL PROTECTED] but I would like to apply a format string like "%s
foo bar" to the value resulting in "[EMAIL PROTECTED] foo bar" as the label
text.

Edvin Syse wrote:
> 
>>>   Can't you just proceed this way:
>>> setResponsePage(new SummaryPage(userdId));
>>>
>>> i.e. pass the id as a parameter to the summary page constructor ?
>>>
>>> Regards
>>>
>> 
>> This works - kind of. Because even though the response page is mounted, I
>> not see a pretty url in the browser.
> 
> You can mount the page with HybridUrlCodingStrategy to get a pretty URL
> even after redirecting:
> 
> mount(new HybridUrlCodingStrategy("/summary", SummaryPage.class));
> 
> -- Edvin
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Short-Design-Question-tp15243739p15246920.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to