Hi,

for user interface reasons I want to use button on an otherwise
read-only page that would simply open another page (e.g. act just like
a link would). What would be the simplest way to achieve that
(including i18n)?

I'm currently using form like this:
<form wicket:id="signButtonForm">
    <button type="submit"><wicket:message key="i18nKey">Placeholder:
Execute</wicket:message></button>
</form>

---

Form<?> form = new Form<Object>("signButtonForm")
{
    protected void onSubmit()
    {
        setResponsePage(new OtherPage());
    }
};
add(form);

---

This works, but seems rather verbose and roundabout. Is there a better way?

Thanks in advance!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to