HybridUrlCodingStrategy & FeedbackPanel when Cookies are disabed
----------------------------------------------------------------
Key: WICKET-2198
URL: https://issues.apache.org/jira/browse/WICKET-2198
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4-RC2
Reporter: Alexandru Objelean
Priority: Critical
In my application I use HybridUrlCodingStrategy for all my pages. I've noticed
that when cookies are disabled, the FeedbackPanel isn't visible any more (when
the form is submitted and there are errors or other types of messages -> they
are simply not shown). When I disable the HybridUrlCodingStrategy, everything
is ok.
Here is the quickstart:
in Application class:
{code}
public class MyApplication extends AuthenticatedWebApplication {
@Override
protected void init() {
super.init();
mount(new HybridUrlCodingStrategy(url, HomePage.class));
}
}
{code}
In HomePage.java, I have a form
{code}
public class HomePage extends WebPage {
private final class SignInForm extends Form {
private final ValueMap properties = new ValueMap();
public SignInForm(final String id) {
super(id);
add(new FeedbackPanel("feedback"));
add(new TextField<String>("username", new
PropertyModel<String>(properties, "username")).setRequired(true));
add(new PasswordTextField<String>("password", new
PropertyModel<String>(properties, "password")).setRequired(true));
}
}
{code}
Then, disable cookies in FF3 using Developer Toolbar. Access the page, hit the
submit button when all fields are empty. Feedback messages are expected to be
shown. But with cookies disabled, nothing happens. If you remove
HybridUrlCodingStrategy mount, it works ok.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.