You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Shumbola (JIRA)" <ji...@apache.org> on 2007/04/24 23:26:15 UTC
[jira] Created: (WICKET-497) For stateless mounted page incorrect
url is generated
For stateless mounted page incorrect url is generated
-----------------------------------------------------
Key: WICKET-497
URL: https://issues.apache.org/jira/browse/WICKET-497
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3
Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
Reporter: Shumbola
There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Shumbola (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503826 ]
Shumbola commented on WICKET-497:
---------------------------------
Sorry, I was busy, but I manged to test this with June 11 snapshot. I see no difference. Exception from this behavior is when set response page to be Home.class, instead new Home(). And If I do not call setRedirect manually, after logging in, if i hit F5 (refresh) it asks me repost the data.
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta1
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Assignee: Alastair Maw
> Fix For: 1.3.0-beta2
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw updated WICKET-497:
--------------------------------
Fix Version/s: (was: trunk)
1.3.0-rc1
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: trunk
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Assigned To: Alastair Maw
> Fix For: 1.3.0-rc1
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw updated WICKET-497:
--------------------------------
Fix Version/s: (was: 1.3.0-beta2)
1.3.0-beta3
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta1
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Assignee: Alastair Maw
> Fix For: 1.3.0-beta3
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw updated WICKET-497:
--------------------------------
Fix Version/s: 1.3
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Fix For: 1.3
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw reassigned WICKET-497:
-----------------------------------
Assignee: Alastair Maw
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Assigned To: Alastair Maw
> Fix For: 1.3
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw reopened WICKET-497:
---------------------------------
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta1
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Assignee: Alastair Maw
> Fix For: 1.3.0-beta3
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Shumbola (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494803 ]
Shumbola commented on WICKET-497:
---------------------------------
Here is an example code, look for //*:
public final class SignIn extends WebPage
{
public SignIn()
{
add(new FeedbackPanel("feedback"));
add(new SignInForm("signInForm"));
}
public final class SignInForm extends StatelessForm
{
private final ValueMap properties = new ValueMap();
public SignInForm(final String id)
{
super(id);
add(new RequiredTextField("username", new PropertyModel(properties, "username")));
add(new PasswordTextField("password", new PropertyModel(properties, "password")));
}
public final void onSubmit()
{
if ( ("user".equals(properties.getString("username")) && "password".equals(properties.getString("password")))
{
if(session.isTemporary()) {
session.bind();
}
if (!continueToOriginalDestination())
{
RequestCycle.get().setRedirect(true);
setResponsePage(new Home()); //no matter using explicit redirect or not, this adds form listener to the URL
//* setResponsePage(Home.class); does work !!!
}
} else {
error("username or password wrong");
}
}
}
}
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alastair Maw resolved WICKET-497.
---------------------------------
Resolution: Duplicate
Fix Version/s: (was: 1.3.0-rc1)
1.3.0-beta2
This now works properly regardless of whether you manually call setRedirect or not. It is actually a duplicate of WICKET-526.
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: trunk
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Assignee: Alastair Maw
> Fix For: 1.3.0-beta2
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-497) For stateless mounted page incorrect
url is generated
Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497769 ]
Alastair Maw commented on WICKET-497:
-------------------------------------
I have just fixed a related issue to this. Can you try again and see if this now works?
> For stateless mounted page incorrect url is generated
> -----------------------------------------------------
>
> Key: WICKET-497
> URL: https://issues.apache.org/jira/browse/WICKET-497
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0
> Environment: wicket-1.3.0-incubating-snapshot.jar from 21 Apr 2007
> Reporter: Shumbola
> Assigned To: Alastair Maw
> Fix For: 1.3.0
>
>
> There is no redirect by default if I use setResponsePage(new Home()) inside onSubmit() handler. If set redirect explicitly, after login from stateless SignIn page the url contains form submission listener. Example: http://localhost:8888/app/signin/wicket:interface/%3A0%3AsignInForm%3A%3AIFormSubmitListener%3A?wicket:interface=:1:::.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.