You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by roy huang <li...@hotmail.com> on 2005/11/10 07:51:27 UTC

Ajax bug:update textarea wrong.

Hi,all:
  In sample:http://localhost:8888/samples/blocks/forms/do-datasourceChooser.flow
  Change <ft:widget id="name"/> to <ft:widget id="name"><fi:styling type="textarea" rows="5" cols="65"></fi:styling>
    </ft:widget>
  and don't enter datasource name,click "OK":
  the textarea appear :
<a class="forms-validation-message" href="#" onclick="alert('此域是必须的'); return false;"> ! </a><span class="forms-field-required"> * </span></span>
  Obviously this message update before </textarea> tag ,I think the js believe empty textarea all render as <textarea/>

  Can this be fixed before release?

  Roy Huang

Re: Ajax bug:update textarea wrong.

Posted by Sylvain Wallez <sy...@apache.org>.
roy huang wrote:
> Hi,all:
>   In sample:http://localhost:8888/samples/blocks/forms/do-datasourceChooser.flow
>   Change <ft:widget id="name"/> to <ft:widget id="name"><fi:styling type="textarea" rows="5" cols="65"></fi:styling>
>     </ft:widget>
>   and don't enter datasource name,click "OK":
>   the textarea appear :
> <a class="forms-validation-message" href="#" onclick="alert('此域是必须的'); return false;"> ! </a><span class="forms-field-required"> * </span></span>
>   Obviously this message update before </textarea> tag ,I think the js believe empty textarea all render as <textarea/>
>
>   Can this be fixed before release?
>   

Sorry, but I can't reproduce this: I did the change and clicked "ok",
and the textarea was displayed correctly...

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director