Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10867

New line in a4j:commandbutton value is removed after reRender

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • EAP_EWP 5.3.0.GA
    • EAP_EWP 5.2.0
    • RichFaces
    • Hide

      Steps to Reproduce using Booking examples
      -------------
      1. modify jboss.home in seam/build.properties
      2. create test.xhtml in seam/examples/booking/view

      test.xhtml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:a4j="http://richfaces.org/a4j">
      <head>
      <title>Test</title>
      </head>
      <body>
              <a4j:form id="form1">
                      <a4j:commandButton id="btn1" value="AAAA&#13;&#10;BBBB"
                              reRender="form1"/>
              </a4j:form>
      </body>
      </html>

      3. ant deploy in seam/examples/booking
      4. access to http://localhost:8080/seam-booking/test.seam
      5. click a button

      Show
      Steps to Reproduce using Booking examples ------------- 1. modify jboss.home in seam/build.properties 2. create test.xhtml in seam/examples/booking/view test.xhtml <?xml version= "1.0" encoding= "UTF-8" ?> <!DOCTYPE html PUBLIC "- //W3C//DTD XHTML 1.0 Transitional//EN" "http: //www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns= "http: //www.w3.org/1999/xhtml" xmlns:a4j= "http: //richfaces.org/a4j" > <head> <title>Test</title> </head> <body> <a4j:form id= "form1" > <a4j:commandButton id= "btn1" value= "AAAA&#13;&#10;BBBB" reRender= "form1" /> </a4j:form> </body> </html> 3. ant deploy in seam/examples/booking 4. access to http://localhost:8080/seam-booking/test.seam 5. click a button
    • Release Notes
    • Workaround Exists
    • Hide

      Use style.

      Example code
           <a4j:commandButton id="btn1" value="AAAA BBBB" style="width: 50px;  height: 75px; padding-left: 25px; padding-right: 25px; white-space: normal" reRender="form1"/>
      Show
      Use style. Example code <a4j:commandButton id= "btn1" value= "AAAA BBBB" style= "width: 50px; height: 75px; padding-left: 25px; padding-right: 25px; white-space: normal" reRender= "form1" />
    • Not Yet Documented
    • NEW

      New line in value is changed to space when it's re-rendered.

      Example code
          <a4j:commandButton id="btn1" value="AAAA&#13;&#10;BBBB"
                             reRender="form1"/>

      Before

      AAAA
      BBBB

      After

      AAAA BBBB

              bleathem@redhat.com Brian Leathem (Inactive)
              rhn-support-enagai Eiichi Nagai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: