You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Malcolm Edgar <ma...@gmail.com> on 2010/09/02 01:59:03 UTC

Re: IE6/IE7 Form rendering problems

Hi,

The simplest way to implement this would be to subclass the TextArea
class and override the render method.

    @Override
    public void render(HtmlStringBuffer buffer) {
          buffer.append("<span>");
          super.render(buffer);
          buffer.append("</span>");
    }

regards Malcolm Edgar

On Thu, Sep 2, 2010 at 6:28 AM, J.F. Zarama <jf...@gmail.com> wrote:
> Malcom:
> could you forward this message where appropriate; I am attempting sending to
> user@click.apache.org but it bounces back;
> thanks;
>
> --
> J.F. Zarama
> http://jfzarama.blogspot.com/
>
> I have an application that works well with other browsers except IE6 and
> IE7.
> It cuts-off the form and/or clips the right side on entry fields, as
> described here and here where it referred to a double float-margin bug in
> IE6.
> It is particularly bad when one has a TextArea, or TinyMCE. The entry
> fieldas above the TextArea are clipped and the Forms renders about 1/2;
> input TextFields do not show clossing portion of the input outline box.
> Using a TextArea one way to render it properly is to to pre-fill the
> TextArea with blank-characters. This 'pushes' the TextArea, expands it,
> along with the fields above it.
> This is fine except that once blanks are pre-filled in the TextArea it
> behaves improperly when entering text; this method does not work for
> TinyMCE.
> One mentioned solution is to enclose the affected input fields with
> <div></div> or <span></span> tags.
> Question: how do I enclose, selected TextFields and/or TexttArea, or
> TynyMCE, with <span> </span>. Do I need a subclass of TextArea, TextField or
> Form?
> Please advice should you have encountered and corrected this
> very annoying problem with IE7 ad IE6.
> A comment in one of the entries reads as follows:
>
> Thanx for the menu of suggestions Mathew. I had the same problem and I
> enclosed the textarea tag inside of a span tag and viola! Instant fix.
>
> Your input on resolving this problem is appreciated; thanks;
>
>
>
>
>
>

Re: IE6/IE7 Form rendering problems

Posted by Bob Schellink <sa...@gmail.com>.
You could also create a "wrapper" field that renders a <div> tag.
(extend from AbstractContainerField) Then add wrapper field to form
and field to wrapper.

Bob

On Thu, Sep 2, 2010 at 9:59 AM, Malcolm Edgar <ma...@gmail.com> wrote:
> Hi,
>
> The simplest way to implement this would be to subclass the TextArea
> class and override the render method.
>
>    @Override
>    public void render(HtmlStringBuffer buffer) {
>          buffer.append("<span>");
>          super.render(buffer);
>          buffer.append("</span>");
>    }
>
> regards Malcolm Edgar
>
> On Thu, Sep 2, 2010 at 6:28 AM, J.F. Zarama <jf...@gmail.com> wrote:
>> Malcom:
>> could you forward this message where appropriate; I am attempting sending to
>> user@click.apache.org but it bounces back;
>> thanks;
>>
>> --
>> J.F. Zarama
>> http://jfzarama.blogspot.com/
>>
>> I have an application that works well with other browsers except IE6 and
>> IE7.
>> It cuts-off the form and/or clips the right side on entry fields, as
>> described here and here where it referred to a double float-margin bug in
>> IE6.
>> It is particularly bad when one has a TextArea, or TinyMCE. The entry
>> fieldas above the TextArea are clipped and the Forms renders about 1/2;
>> input TextFields do not show clossing portion of the input outline box.
>> Using a TextArea one way to render it properly is to to pre-fill the
>> TextArea with blank-characters. This 'pushes' the TextArea, expands it,
>> along with the fields above it.
>> This is fine except that once blanks are pre-filled in the TextArea it
>> behaves improperly when entering text; this method does not work for
>> TinyMCE.
>> One mentioned solution is to enclose the affected input fields with
>> <div></div> or <span></span> tags.
>> Question: how do I enclose, selected TextFields and/or TexttArea, or
>> TynyMCE, with <span> </span>. Do I need a subclass of TextArea, TextField or
>> Form?
>> Please advice should you have encountered and corrected this
>> very annoying problem with IE7 ad IE6.
>> A comment in one of the entries reads as follows:
>>
>> Thanx for the menu of suggestions Mathew. I had the same problem and I
>> enclosed the textarea tag inside of a span tag and viola! Instant fix.
>>
>> Your input on resolving this problem is appreciated; thanks;
>>
>>
>>
>>
>>
>>
>