Thanks a lot Igor for your quick response and the fix. That did the trick. Cheers, Satish
-----Original Message----- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Thursday, August 12, 2010 4:49 PM To: users@wicket.apache.org Subject: Re: style=\"display:none\" should be fixed in branch. now is a good time to build a snapshot and use it since 1.4.10 was just released and there are not too many commits into the branch yet. -igor On Thu, Aug 12, 2010 at 4:15 PM, Satish Nekkalapudi <snekkalap...@walmart.com> wrote: > Thank you Igor for your response. > > The style="display:none" for div is causing the problem. The reason why the > forms are not working is the hidden variables like "wicket:interface" within > div with 'style="display:none'is ignored by large number of mobile devices. > They are working if "display:none" is removed. > > This is how I confirmed this. > > I created two sample forms with method="get" and accessed on mobile devices > with problems: > one with style="display:none" http://ieagleye.com/w5/ (On form > submission in the mobile this never showed the hidden variables in the > url ) > <div style="display:none;"> > <input id="hidden_data" type="hidden" > name="hidden_data" value="hiddenData"/> > </div> > > other with style="visibility:hidden" http://ieagleye.com/w6/ (On form > submission in the mobile the hidden variables showed up in the url) > <div style="visibility:hidden;"> > <input id="hidden_data" type="hidden" > name="hidden_data" value="hiddenData"/> > </div> > > Please note that this has to be tested in mobile devices with problems and > it works fine in the browser. > > Cheers, > Satish > > -----Original Message----- > From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] > Sent: Thursday, August 12, 2010 3:42 PM > To: users@wicket.apache.org > Subject: Re: style=\"display:none\" > > are you completely sure that the div is causing the problem? doesnt make > sense. > > -igor > > On Thu, Aug 12, 2010 at 3:00 PM, Satish Nekkalapudi > <snekkalap...@walmart.com> wrote: >> Hi, >> >> We are using Wicket 1.4.9 for very large mobile application. We are unable >> to process any forms on a large number of mobile devices. >> >> The problem caused by line 1923 of org.apache.wicket.markup.html.form.Form. >> This line adds a style=\"display:none\" to <div> inside of the form: >> >> // render the hidden field >> AppendingStringBuffer buffer = new AppendingStringBuffer( >> "<div style=\"display:none\"><input type=\"hidden\" >> name=\"").append(nameAndId) >> .append("\" id=\"") >> .append(nameAndId) >> .append("\" />"); >> >> Does anyone have suggestion for how to suppress the style=\"display:none\" >> so that we can make our forms work for all devices? >> >> Cheers, >> >> Satish >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org