You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Robin Shine (JIRA)" <ji...@apache.org> on 2011/04/21 14:36:05 UTC

[jira] [Created] (WICKET-3629) ComponentNotFoundException is raised when submit a stateless form added to a stateless page through the onInitialize method

ComponentNotFoundException is raised when submit a stateless form added to a stateless page through the onInitialize method
---------------------------------------------------------------------------------------------------------------------------

                 Key: WICKET-3629
                 URL: https://issues.apache.org/jira/browse/WICKET-3629
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
    Affects Versions: 1.5-RC3
            Reporter: Robin Shine


A very simple page to demonstrate this problem:

TestPage.java:

package test;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.StatelessForm;

public class SignInPage extends WebPage {

	@Override
	protected void onInitialize() {
		super.onInitialize();
		
		add(new StatelessForm<SignInPage>("form"));
	}
}

TestPage.html:

<html>
	<head>
		<title>Test</title>
	</head>
	<body>
		<form wicket:id="form">
			<input type="submit" value="Click me"></input>
		</form>
	</body>
</html>

Put this page into a wicket application, mount the page and open a browser to access it, click the button and the ComponentNotFoundException will be thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WICKET-3629) ComponentNotFoundException is raised when submit a stateless form added to a stateless page through the onInitialize method

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-3629.
-------------------------------------

    Resolution: Duplicate

Duplicate of WICKET-3562

> ComponentNotFoundException is raised when submit a stateless form added to a stateless page through the onInitialize method
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3629
>                 URL: https://issues.apache.org/jira/browse/WICKET-3629
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC3
>            Reporter: Robin Shine
>
> A very simple page to demonstrate this problem:
> TestPage.java:
> package test;
> import org.apache.wicket.markup.html.WebPage;
> import org.apache.wicket.markup.html.form.StatelessForm;
> public class SignInPage extends WebPage {
>   @Override
>   protected void onInitialize() {
>     super.onInitialize();		
>     add(new StatelessForm<SignInPage>("form"));
>   }
> }
> TestPage.html:
> <html>
>   <head>
>     <title>Test</title>
>   </head>
>   <body>
>     <form wicket:id="form">
>       <input type="submit" value="Click me"></input>
>     </form>
>   </body>
> </html>
> Put this page into a wicket application, mount the page and open a browser to access it, click the button and the ComponentNotFoundException will be thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3629) ComponentNotFoundException is raised when submit a stateless form added to a stateless page through the onInitialize method

Posted by "Robin Shine (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Shine updated WICKET-3629:
--------------------------------

    Description: 
A very simple page to demonstrate this problem:

TestPage.java:

package test;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.StatelessForm;

public class SignInPage extends WebPage {
  @Override
  protected void onInitialize() {
    super.onInitialize();		
    add(new StatelessForm<SignInPage>("form"));
  }
}

TestPage.html:

<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <form wicket:id="form">
      <input type="submit" value="Click me"></input>
    </form>
  </body>
</html>

Put this page into a wicket application, mount the page and open a browser to access it, click the button and the ComponentNotFoundException will be thrown.

  was:
A very simple page to demonstrate this problem:

TestPage.java:

package test;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.StatelessForm;

public class SignInPage extends WebPage {

	@Override
	protected void onInitialize() {
		super.onInitialize();
		
		add(new StatelessForm<SignInPage>("form"));
	}
}

TestPage.html:

<html>
	<head>
		<title>Test</title>
	</head>
	<body>
		<form wicket:id="form">
			<input type="submit" value="Click me"></input>
		</form>
	</body>
</html>

Put this page into a wicket application, mount the page and open a browser to access it, click the button and the ComponentNotFoundException will be thrown.


> ComponentNotFoundException is raised when submit a stateless form added to a stateless page through the onInitialize method
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3629
>                 URL: https://issues.apache.org/jira/browse/WICKET-3629
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC3
>            Reporter: Robin Shine
>
> A very simple page to demonstrate this problem:
> TestPage.java:
> package test;
> import org.apache.wicket.markup.html.WebPage;
> import org.apache.wicket.markup.html.form.StatelessForm;
> public class SignInPage extends WebPage {
>   @Override
>   protected void onInitialize() {
>     super.onInitialize();		
>     add(new StatelessForm<SignInPage>("form"));
>   }
> }
> TestPage.html:
> <html>
>   <head>
>     <title>Test</title>
>   </head>
>   <body>
>     <form wicket:id="form">
>       <input type="submit" value="Click me"></input>
>     </form>
>   </body>
> </html>
> Put this page into a wicket application, mount the page and open a browser to access it, click the button and the ComponentNotFoundException will be thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira