Status: Unconfirmed
Owner: [EMAIL PROTECTED]
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 4744 by nantanatin: Using JSP tag inside INPUT tag doesn't render  
correctly
http://code.google.com/p/chromium/issues/detail?id=4744

Chrome Version       : 0.3.154.9
URLs (if applicable) :
Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 3: FAILED
     Firefox 3: OK
          IE 7: OK

My web page has an INPUT tag to display a phone number as follows:

<input id="phoneNumber" name="phonenumber" value="<myCustomTag:formatPhone
value='${business.primaryPhone.number}'/>" type="text">

I use a JSP tag, myCustomTag:formatPhone, to format a value from the
backend.

My JSP tag looks like this:

<%@ tag import="com.mycomp.common.MycompUtils" %>

<[EMAIL PROTECTED] description="Format phone number" pageEncoding="UTF-8"%>
<[EMAIL PROTECTED] name="value" required="true" type="java.lang.String" %>
<[EMAIL PROTECTED] name="pattern"  required="false" type="java.lang.String" %>

<%
     out.print(MycompUtils.formatPhone(value, pattern));
%>

When the page is rendered, the text box is empty. Page source is as
follows:

<input id="primaryPhone.number" name="primaryPhone.number"
             value="




(111) 111-1111" type="text">

Seems Chrome doesn't ignore white spaces and new lines in JSP tag before
out.print() is called.
My workaround is to put all code in JSP tag in one line with no whitespace
and Chrome will render it correctly.

It would be nice if Chrome could trim those spaces out.

Thank you.



-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to chromium-bugs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to