You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by sreekar <sr...@mahindrasatyam.com> on 2010/12/27 16:18:11 UTC

On submit using AjaxButton+mobile apps

Hi,

Am developing web app for mobile using apache wicket 1.3 and html5.

I am able to deploy the web app successfully in weblogic server, i could see
the html/page thru blackberry browser and IE7 too.

In one page i have button, on click of which i need to redirect to another
page.when i click on that button am not able to redirect to another page
when i access the app thru blackberry browser.(am getting an error), but on
the click of same button by accessing the app thru IE7 is working fine.

Please check the screen shot which has error info.

Below is my code


****** Html *****

<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width = device-width">
<title>On Job Training</title>

</head>
<body>
<form wicket:id="form">

<table>
	<tr>
		<td><input type="submit" wicket:id="nextButton" class="mobileBtn"
			value="Next" /></td>
	</tr>
</table>

</form>
</body>
</html>
**** HTML end ********

******** Java Code **********
 form = new Form("form");
    form.setMarkupId("form");
    nextButton = new AjaxButton("nextButton"){

      /**
       * 
       */
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target, Form form) {
        setResponsePage(SampleMobile.class);
      }
    };
    nextButton.setMarkupId("nextButton");

********** Java Code End *********

Thanks http://apache-wicket.1842946.n4.nabble.com/file/n3165097/BB_issue.gif 
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/On-submit-using-AjaxButton-mobile-apps-tp3165097p3165097.html
Sent from the Forum for Wicket Core developers mailing list archive at Nabble.com.

Re: On submit using AjaxButton+mobile apps

Posted by Martin Grigorov <mg...@apache.org>.
I can only suggest you to upgrade to a newer version of Wicket - 1.4.15.

On Mon, Dec 27, 2010 at 4:18 PM, sreekar <sreekar_vanguru@mahindrasatyam.com
> wrote:

>
> Hi,
>
> Am developing web app for mobile using apache wicket 1.3 and html5.
>
> I am able to deploy the web app successfully in weblogic server, i could
> see
> the html/page thru blackberry browser and IE7 too.
>
> In one page i have button, on click of which i need to redirect to another
> page.when i click on that button am not able to redirect to another page
> when i access the app thru blackberry browser.(am getting an error), but on
> the click of same button by accessing the app thru IE7 is working fine.
>
> Please check the screen shot which has error info.
>
> Below is my code
>
>
> ****** Html *****
>
> <!DOCTYPE HTML>
> <html>
> <head>
> <meta name="viewport" content="width = device-width">
> <title>On Job Training</title>
>
> </head>
> <body>
> <form wicket:id="form">
>
> <table>
>        <tr>
>                <td><input type="submit" wicket:id="nextButton"
> class="mobileBtn"
>                        value="Next" /></td>
>        </tr>
> </table>
>
> </form>
> </body>
> </html>
> **** HTML end ********
>
> ******** Java Code **********
>  form = new Form("form");
>    form.setMarkupId("form");
>    nextButton = new AjaxButton("nextButton"){
>
>      /**
>       *
>       */
>      private static final long serialVersionUID = 1L;
>
>      @Override
>      protected void onSubmit(AjaxRequestTarget target, Form form) {
>        setResponsePage(SampleMobile.class);
>      }
>    };
>    nextButton.setMarkupId("nextButton");
>
> ********** Java Code End *********
>
> Thanks
> http://apache-wicket.1842946.n4.nabble.com/file/n3165097/BB_issue.gif
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/On-submit-using-AjaxButton-mobile-apps-tp3165097p3165097.html
> Sent from the Forum for Wicket Core developers mailing list archive at
> Nabble.com.
>

Re: On submit using AjaxButton+mobile apps

Posted by Pointbreak <po...@ml1.net>.
Why are you using an AjaxButton? What you are doing in your example
could be done with a normal submit button. It's probably failing on the
blackberry because blackberry the browser does not support
javascript(?). AjaxButton needs javascript...

Also, I don't think this is an appropriate question for
dev@wicket.apache.org, use users@ instead please.

On Mon, 27 Dec 2010 07:18 -0800, "sreekar"
<sr...@mahindrasatyam.com> wrote:
> 
> Hi,
> 
> Am developing web app for mobile using apache wicket 1.3 and html5.
> 
> I am able to deploy the web app successfully in weblogic server, i could
> see
> the html/page thru blackberry browser and IE7 too.
> 
> In one page i have button, on click of which i need to redirect to
> another
> page.when i click on that button am not able to redirect to another page
> when i access the app thru blackberry browser.(am getting an error), but
> on
> the click of same button by accessing the app thru IE7 is working fine.
> 
> Please check the screen shot which has error info.
> 
> Below is my code
> 
> 
> ****** Html *****
> 
> <!DOCTYPE HTML>
> <html>
> <head>
> <meta name="viewport" content="width = device-width">
> <title>On Job Training</title>
> 
> </head>
> <body>
> <form wicket:id="form">
> 
> <table>
> 	<tr>
> 		<td><input type="submit" wicket:id="nextButton" class="mobileBtn"
> 			value="Next" /></td>
> 	</tr>
> </table>
> 
> </form>
> </body>
> </html>
> **** HTML end ********
> 
> ******** Java Code **********
>  form = new Form("form");
>     form.setMarkupId("form");
>     nextButton = new AjaxButton("nextButton"){
> 
>       /**
>        * 
>        */
>       private static final long serialVersionUID = 1L;
> 
>       @Override
>       protected void onSubmit(AjaxRequestTarget target, Form form) {
>         setResponsePage(SampleMobile.class);
>       }
>     };
>     nextButton.setMarkupId("nextButton");
> 
> ********** Java Code End *********
> 
> Thanks
> http://apache-wicket.1842946.n4.nabble.com/file/n3165097/BB_issue.gif 
> -- 
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/On-submit-using-AjaxButton-mobile-apps-tp3165097p3165097.html
> Sent from the Forum for Wicket Core developers mailing list archive at
> Nabble.com.
>