You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ciaran Wood <ci...@gamesys.co.uk> on 2009/05/20 14:18:28 UTC
Encoding of single quotes for an ajax request using Internet Explorer
I¹ve encountered what I think is a bug in the rendering of an ajax response.
Basically, we¹re returning a block that contains a textfield component. The
value of that textfield component is something with a single quote in it,
for example ³o¹reilly². The response markup for that textfield is:
<input value='o'reilly' id='addressLine1-1215dd60f22'
name='addressLine1' type='text'><\/input>
which renders as ³o¹reilly² in Firefox, but in IE the value renders as
³o'reilly². According to
http://cssvault.com/blog/2007/10/17/internet-explorer-apos-feature/ , it
should be rendering out ' instead.
I¹ve looked into where the ' is coming from and its in the
AbstractMarkupModel class, which doesn't look to be easily overridable or
replaceable unless you replace the whole of the MarkupWriterFactory service.
Is there a known way of fixing this? I've tried using Translators, but that
doesn't work as my new String based Translator clashes with Tapestry's own
StringTranslator. I've tried adding an event handler for the 'toClient'
event emitted by the textfield, but since I'm using a beaneditor, the event
gets fired to the page where the edit block comes from (PropertyEditBlocks)
rather than the page the beaneditor is on.
Ciaran Wood
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Encoding of single quotes for an ajax request using Internet
Explorer
Posted by Ciaran Wood <ci...@gamesys.co.uk>.
I've created this issue: https://issues.apache.org/jira/browse/TAP5-714
Ciaran Wood
On 20/05/2009 4:16pm, "Howard Lewis Ship" <hl...@gmail.com> wrote:
> Please add an issue for this.
>
> On Wed, May 20, 2009 at 5:18 AM, Ciaran Wood <ci...@gamesys.co.uk> wrote:
>> I¹ve encountered what I think is a bug in the rendering of an ajax response.
>> Basically, we¹re returning a block that contains a textfield component. The
>> value of that textfield component is something with a single quote in it,
>> for example ³o¹reilly². The response markup for that textfield is:
>>
>> <input value='o'reilly' id='addressLine1-1215dd60f22'
>> name='addressLine1' type='text'><\/input>
>>
>> which renders as ³o¹reilly² in Firefox, but in IE the value renders as
>> ³o'reilly². According to
>> http://cssvault.com/blog/2007/10/17/internet-explorer-apos-feature/ , it
>> should be rendering out ' instead.
>>
>> I¹ve looked into where the ' is coming from and its in the
>> AbstractMarkupModel class, which doesn't look to be easily overridable or
>> replaceable unless you replace the whole of the MarkupWriterFactory service.
>>
>> Is there a known way of fixing this? I've tried using Translators, but that
>> doesn't work as my new String based Translator clashes with Tapestry's own
>> StringTranslator. I've tried adding an event handler for the 'toClient'
>> event emitted by the textfield, but since I'm using a beaneditor, the event
>> gets fired to the page where the edit block comes from (PropertyEditBlocks)
>> rather than the page the beaneditor is on.
>>
>> Ciaran Wood
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Encoding of single quotes for an ajax request using Internet
Explorer
Posted by Howard Lewis Ship <hl...@gmail.com>.
Please add an issue for this.
On Wed, May 20, 2009 at 5:18 AM, Ciaran Wood <ci...@gamesys.co.uk> wrote:
> I¹ve encountered what I think is a bug in the rendering of an ajax response.
> Basically, we¹re returning a block that contains a textfield component. The
> value of that textfield component is something with a single quote in it,
> for example ³o¹reilly². The response markup for that textfield is:
>
> <input value='o'reilly' id='addressLine1-1215dd60f22'
> name='addressLine1' type='text'><\/input>
>
> which renders as ³o¹reilly² in Firefox, but in IE the value renders as
> ³o'reilly². According to
> http://cssvault.com/blog/2007/10/17/internet-explorer-apos-feature/ , it
> should be rendering out ' instead.
>
> I¹ve looked into where the ' is coming from and its in the
> AbstractMarkupModel class, which doesn't look to be easily overridable or
> replaceable unless you replace the whole of the MarkupWriterFactory service.
>
> Is there a known way of fixing this? I've tried using Translators, but that
> doesn't work as my new String based Translator clashes with Tapestry's own
> StringTranslator. I've tried adding an event handler for the 'toClient'
> event emitted by the textfield, but since I'm using a beaneditor, the event
> gets fired to the page where the edit block comes from (PropertyEditBlocks)
> rather than the page the beaneditor is on.
>
> Ciaran Wood
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
Director of Open Source Technology at Formos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org