You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Joachim F. Kainz (JIRA)" <ji...@apache.org> on 2010/03/11 05:09:27 UTC

[jira] Created: (WICKET-2774) onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, final Class)

onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, final Class<T>)
------------------------------------------------------------------------------------------------------------------

                 Key: WICKET-2774
                 URL: https://issues.apache.org/jira/browse/WICKET-2774
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.7, 1.4.6
         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
jfk@preding:~/workspace/wicket-stateless$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

            Reporter: Joachim F. Kainz


I am using the following simple application class:

public class WicketApplication extends WebApplication {
    @Override
    public Class<HomePage> getHomePage() {
        return HomePage.class;
    }

    @Override
    protected void init() {
        mountBookmarkablePage("home", HomePage.class);
    }

    @Override
    protected IRequestCycleProcessor newRequestCycleProcessor() {
        return new StatelessWebRequestCycleProcessor();
    }
}

HomePage.html looks like this:

<html
  xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<head>
<title>Stateless Wicket</title>
</head>
<body>
counter 2:
<form wicket:id="inputForm" method="get">
<label for="a">a:</label>
<input wicket:id="a" id="a" type="text" size="15"/><br/>
<label for="b">b:</label>
<input wicket:id="b" id="b" type="text" size="15"/><br/>
<input type="submit" value="Execute" />
</form>
</body>
</html>

HomePage.java:

public class HomePage extends WebPage {
    public HomePage(final PageParameters parameters) {
        final Form<String> form = new StatelessForm<String>("inputForm") {
            private static final long serialVersionUID = -1804691502079814185L;

            @Override
            protected void onSubmit() {
                info("clicked sumbit");
            }

        };
        final TextField<String> a = new TextField<String>("a",
                new Model<String>(_a));
        final TextField<String> b = new TextField<String>("b",
                new Model<String>(_b));

        form.add(a);
        form.add(b);
        add(form);
    }
}

This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Joachim F. Kainz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843930#action_12843930 ] 

Joachim F. Kainz commented on WICKET-2774:
------------------------------------------

Without mountBookmarkablePage("home", HomePage.class) in WicketApplication#init() Form#urlFor(RequestListenerInterface) returns the string "?wicket:bookmarkablePage=:com.jolira.stateless.HomePage&wicket:interface=:0:inputForm::IFormSubmitListener::"

With mountBookmarkablePage("home", HomePage.class) this function returns "home/wicket:interface/:0:inputForm::IFormSubmitListener::"

One more important piece of information: This problem only occurs when I use <form method="get">. With  <form method="post"> the problem does not occur. Unfortunately I try to solve this problem for mobile.walmart.com and we really prefers gets over posts as this is easier for many mobile phones...


> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Joachim F. Kainz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843912#action_12843912 ] 

Joachim F. Kainz commented on WICKET-2774:
------------------------------------------

Igor, the problem may be in BookmarkablePageRequestTargetUrlCodingStrategy#decode(RequestParameters). This method tries tires to retrieves the interface parameters using the following name:

		String interfaceParameter = (String)parameters.remove(WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME);

This method return null, because the RequestParameters does not contain this entry. Instead is contains: [RequestParameters  parameters={home/wicket:interface/:10:inputForm::IFormSubmitListener::=,b=2,inputForm9_hf_0=,a=1} onlyProcessIfPathActive=false]


> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Joachim F. Kainz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845746#action_12845746 ] 

Joachim F. Kainz commented on WICKET-2774:
------------------------------------------

How would I do that in the example above?

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>            Priority: Minor
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Joachim F. Kainz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843917#action_12843917 ] 

Joachim F. Kainz edited comment on WICKET-2774 at 3/11/10 5:26 AM:
-------------------------------------------------------------------

this is what my Jetty request object looks like:

GET /home?inputForma_hf_0=&home%2Fwicket%3Ainterface%2F%3A11%3AinputForm%3A%3AIFormSubmitListener%3A%3A=&a=1&b=2 HTTP/1.1
Host: preding.walmart.com:8080
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100216 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://preding.walmart.com:8080/home?inputForm9_hf_0=&home%2Fwicket%3Ainterface%2F%3A10%3AinputForm%3A%3AIFormSubmitListener%3A%3A=&a=1&b=2

When WebRequestCodingStrategy#addInterfaceParameters(Request, RequestParameters) tries to extract the wicket:interface parameter it gets null.


      was (Author: jolira):
    this is what my Jetty request object looks like:

GET /home?inputForma_hf_0=&home%2Fwicket%3Ainterface%2F%3A11%3AinputForm%3A%3AIFormSubmitListener%3A%3A=&a=1&b=2 HTTP/1.1
Host: preding.walmart.com:8080
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100216 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://preding.walmart.com:8080/home?inputForm9_hf_0=&home%2Fwicket%3Ainterface%2F%3A10%3AinputForm%3A%3AIFormSubmitListener%3A%3A=&a=1&b=2
Cookie: cef.secureenv=wmomsq3; s_vid=e3942a0c1b7c314a8a1847e179f937e8cfda; com.wm.anoncart=106062620377231400; com.wm.visitor=1060626203; com.wm.reflector="reflectorid:0000000000000000000000@lastupd:1268277148677@firstcreate:1268277148676"; cef.env=wmomsq3; WMSessionID=000000007c63fc173fd65963dbaea3b23fdd477f51b82628_1268277095059_SSL201_172-28-184-22_1268277148639_10.3_N_; JSESSIONID=6hw04lrsdxzx

When WebRequestCodingStrategy#addInterfaceParameters(Request, RequestParameters) tries to extract the wicket:interface parameter it gets null.

  
> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846062#action_12846062 ] 

Igor Vaynberg commented on WICKET-2774:
---------------------------------------

mount(new querystringurlcodingstrategy("home", HomePage.class))

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>            Priority: Minor
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

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

Joachim F. Kainz updated WICKET-2774:
-------------------------------------

    Summary: Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)  (was: onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, final Class<T>))

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
>     @Override
>     protected IRequestCycleProcessor newRequestCycleProcessor() {
>         return new StatelessWebRequestCycleProcessor();
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

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

Igor Vaynberg resolved WICKET-2774.
-----------------------------------

         Assignee: Igor Vaynberg
    Fix Version/s: 1.5-M2
       Resolution: Fixed

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.5-M2
>
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

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

Joachim F. Kainz updated WICKET-2774:
-------------------------------------

    Priority: Minor  (was: Major)

Adjusting the priority. This issue only affects form that use "get" as the method and only when mountBookmarkablePage is used on the page that contains the form.

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>            Priority: Minor
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

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

Joachim F. Kainz updated WICKET-2774:
-------------------------------------

    Description: 
I am using the following simple application class:

public class WicketApplication extends WebApplication {
    @Override
    public Class<HomePage> getHomePage() {
        return HomePage.class;
    }

    @Override
    protected void init() {
        mountBookmarkablePage("home", HomePage.class);
    }
}

HomePage.html looks like this:

<html
  xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<head>
<title>Stateless Wicket</title>
</head>
<body>
counter 2:
<form wicket:id="inputForm" method="get">
<label for="a">a:</label>
<input wicket:id="a" id="a" type="text" size="15"/><br/>
<label for="b">b:</label>
<input wicket:id="b" id="b" type="text" size="15"/><br/>
<input type="submit" value="Execute" />
</form>
</body>
</html>

HomePage.java:

public class HomePage extends WebPage {
    public HomePage(final PageParameters parameters) {
        final Form<String> form = new StatelessForm<String>("inputForm") {
            private static final long serialVersionUID = -1804691502079814185L;

            @Override
            protected void onSubmit() {
                info("clicked sumbit");
            }

        };
        final TextField<String> a = new TextField<String>("a",
                new Model<String>(_a));
        final TextField<String> b = new TextField<String>("b",
                new Model<String>(_b));

        form.add(a);
        form.add(b);
        add(form);
    }
}

This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.


  was:
I am using the following simple application class:

public class WicketApplication extends WebApplication {
    @Override
    public Class<HomePage> getHomePage() {
        return HomePage.class;
    }

    @Override
    protected void init() {
        mountBookmarkablePage("home", HomePage.class);
    }

    @Override
    protected IRequestCycleProcessor newRequestCycleProcessor() {
        return new StatelessWebRequestCycleProcessor();
    }
}

HomePage.html looks like this:

<html
  xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<head>
<title>Stateless Wicket</title>
</head>
<body>
counter 2:
<form wicket:id="inputForm" method="get">
<label for="a">a:</label>
<input wicket:id="a" id="a" type="text" size="15"/><br/>
<label for="b">b:</label>
<input wicket:id="b" id="b" type="text" size="15"/><br/>
<input type="submit" value="Execute" />
</form>
</body>
</html>

HomePage.java:

public class HomePage extends WebPage {
    public HomePage(final PageParameters parameters) {
        final Form<String> form = new StatelessForm<String>("inputForm") {
            private static final long serialVersionUID = -1804691502079814185L;

            @Override
            protected void onSubmit() {
                info("clicked sumbit");
            }

        };
        final TextField<String> a = new TextField<String>("a",
                new Model<String>(_a));
        final TextField<String> b = new TextField<String>("b",
                new Model<String>(_b));

        form.add(a);
        form.add(b);
        add(form);
    }
}

This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.



I can still reproduce the problem after removing the StatelessWebRequestCycleProcessor. (Sorry, but i was recycling one of the examples of my wicket-stateless package and forgot to remove this method.)

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Joachim F. Kainz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846075#action_12846075 ] 

Joachim F. Kainz commented on WICKET-2774:
------------------------------------------

Yup! The mount you gave me works perfectly. There is my updated application that behaves as expected:

public class WicketApplication extends WebApplication {
    @Override
    public Class<HomePage> getHomePage() {
        return HomePage.class;
    }

    @Override
    protected void init() {
        mount(new QueryStringUrlCodingStrategy("home", HomePage.class));
    }
}

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>            Priority: Minor
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843903#action_12843903 ] 

Igor Vaynberg commented on WICKET-2774:
---------------------------------------

does it work if you remove the StatelessWebRequestCycleProcessor? that is not a class we ship with wicket...

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
>     @Override
>     protected IRequestCycleProcessor newRequestCycleProcessor() {
>         return new StatelessWebRequestCycleProcessor();
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Joachim F. Kainz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843917#action_12843917 ] 

Joachim F. Kainz commented on WICKET-2774:
------------------------------------------

this is what my Jetty request object looks like:

GET /home?inputForma_hf_0=&home%2Fwicket%3Ainterface%2F%3A11%3AinputForm%3A%3AIFormSubmitListener%3A%3A=&a=1&b=2 HTTP/1.1
Host: preding.walmart.com:8080
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100216 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://preding.walmart.com:8080/home?inputForm9_hf_0=&home%2Fwicket%3Ainterface%2F%3A10%3AinputForm%3A%3AIFormSubmitListener%3A%3A=&a=1&b=2
Cookie: cef.secureenv=wmomsq3; s_vid=e3942a0c1b7c314a8a1847e179f937e8cfda; com.wm.anoncart=106062620377231400; com.wm.visitor=1060626203; com.wm.reflector="reflectorid:0000000000000000000000@lastupd:1268277148677@firstcreate:1268277148676"; cef.env=wmomsq3; WMSessionID=000000007c63fc173fd65963dbaea3b23fdd477f51b82628_1268277095059_SSL201_172-28-184-22_1268277148639_10.3_N_; JSESSIONID=6hw04lrsdxzx

When WebRequestCodingStrategy#addInterfaceParameters(Request, RequestParameters) tries to extract the wicket:interface parameter it gets null.


> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2774) Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845386#action_12845386 ] 

Igor Vaynberg commented on WICKET-2774:
---------------------------------------

have you tried mounting the page with a querystringurlcodingstrategy instead?

> Form#onSubmit() not called in StatlessForm on pages mounted using WebPage#mountBookmarkablePage(String, Class)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2774
>                 URL: https://issues.apache.org/jira/browse/WICKET-2774
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.6, 1.4.7
>         Environment: jfk@preding:~/workspace/wicket-stateless$ uname -a
> Linux preding.walmart.com 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
> jfk@preding:~/workspace/wicket-stateless$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
>            Reporter: Joachim F. Kainz
>            Priority: Minor
>
> I am using the following simple application class:
> public class WicketApplication extends WebApplication {
>     @Override
>     public Class<HomePage> getHomePage() {
>         return HomePage.class;
>     }
>     @Override
>     protected void init() {
>         mountBookmarkablePage("home", HomePage.class);
>     }
> }
> HomePage.html looks like this:
> <html
>   xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <head>
> <title>Stateless Wicket</title>
> </head>
> <body>
> counter 2:
> <form wicket:id="inputForm" method="get">
> <label for="a">a:</label>
> <input wicket:id="a" id="a" type="text" size="15"/><br/>
> <label for="b">b:</label>
> <input wicket:id="b" id="b" type="text" size="15"/><br/>
> <input type="submit" value="Execute" />
> </form>
> </body>
> </html>
> HomePage.java:
> public class HomePage extends WebPage {
>     public HomePage(final PageParameters parameters) {
>         final Form<String> form = new StatelessForm<String>("inputForm") {
>             private static final long serialVersionUID = -1804691502079814185L;
>             @Override
>             protected void onSubmit() {
>                 info("clicked sumbit");
>             }
>         };
>         final TextField<String> a = new TextField<String>("a",
>                 new Model<String>(_a));
>         final TextField<String> b = new TextField<String>("b",
>                 new Model<String>(_b));
>         form.add(a);
>         form.add(b);
>         add(form);
>     }
> }
> This very simple code example shows that the StatlessForm#onSubmit() function is never called iff mountBookmarkablePage("home", HomePage.class) is in WicketApplication#init(). If I remove this statement from the code, the onSubmit() method is called as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.