You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Satish Nekkalapudi <sn...@walmart.com> on 2010/08/13 00:00:09 UTC

style=\"display:none\"

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



RE: style=\"display:none\"

Posted by Satish Nekkalapudi <sn...@walmart.com>.
Thanks a lot Igor for your quick response and the fix. That did the trick.

Cheers,
Satish 

-----Original Message-----
From: Igor Vaynberg [mailto:igor.vaynberg@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 <sn...@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.vaynberg@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 <sn...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: style=\"display:none\"

Posted by Igor Vaynberg <ig...@gmail.com>.
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
<sn...@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.vaynberg@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 <sn...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: style=\"display:none\"

Posted by "Joachim F. Kainz" <jf...@jolira.com>.
Satish,

Can you give Igor a few examples for mobile devices that have these
issues? Maybe he has access to them so he can see for himself. At the
very least they should all be available at his local Walmart... :)

Best regards,

Joachim

On Thu, 2010-08-12 at 16:15 -0700, Satish Nekkalapudi 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.vaynberg@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 <sn...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

RE: style=\"display:none\"

Posted by Satish Nekkalapudi <sn...@walmart.com>.
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.vaynberg@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 <sn...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: style=\"display:none\"

Posted by Igor Vaynberg <ig...@gmail.com>.
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
<sn...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org