Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13739

Placeholder in collapsibleSubTable template

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.0.Alpha3
    • Fix Version/s: 4.5.0.Beta1
    • Component/s: component-misc
    • Labels:
      None
    • Environment:

      RichFaces 4.5.0-SNAPSHOT
      Metamer 4.5.0-SNAPSHOT
      Mojarra 2.2.6-jbossorg-4
      JBoss AS 8.1.0.Final
      Java(TM) SE Runtime Environment 1.7.0_25-b15 @ Linux
      Firefox 30.0 @ Linux x86_64

    • Steps to Reproduce:
      Hide
      • Start Wildfly 8.1
      • Deploy Metamer
      • There are two different pages for this. Also note that the URLs contain ?templates=richCollapsibleSubTable, this will load the page with the template
      • See that the input boxes are empty. However with selector set to empty string, all three fields should contain "Watermark text"
      Show
      Start Wildfly 8.1 Deploy Metamer There are two different pages for this. Also note that the URLs contain ?templates=richCollapsibleSubTable , this will load the page with the template For input go to this page For textarea go to this page See that the input boxes are empty. However with selector set to empty string, all three fields should contain "Watermark text"
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      As a parent of textarea or input you can add <h:panelGroup id="someId". This will resolve the problem as the selector will bind to this parent. You need to set the id (or style) in order to make it generate any HTML code.
      So the code might look like this:

      <h:panelGroup id="panelGroup">
          <input type="text" name="input3" id="input3" />
          <rich:placeholder id=".."/>
      </h:panelGroup>
      

      Show
      As a parent of textarea or input you can add <h:panelGroup id="someId" . This will resolve the problem as the selector will bind to this parent. You need to set the id (or style) in order to make it generate any HTML code. So the code might look like this: <h:panelGroup id="panelGroup"> <input type="text" name="input3" id="input3" /> <rich:placeholder id=".."/> </h:panelGroup>

      Description

      Placeholder selector set to empty string (selector="") does not work when nested inside richCollapsibleSubTable template. The expected result is that all inputs will contains the placeholder text, however none of them does. If you set selector to a specific ID, the test succeeds.

      This only happens when you attach the placeholder to <textarea> or <input>.
      For both cases we have facelets and tests in Metamer and Jenkins job which runs the tests.
      Link to facelet and test for textarea.
      Link to facelet and test for input.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                manovotn Matej Novotny
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: