[richfaces-issues] [JBoss JIRA] (RF-13739) Placeholder in collapsibleSubTable template

Matej Novotny (JIRA) issues at jboss.org
Fri Jul 25 04:29:29 EDT 2014


     [ https://issues.jboss.org/browse/RF-13739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matej Novotny reopened RF-13739:
--------------------------------



Reopening, the fix caused some more problems.

Placeholder now affect *all inputs* on the page when there is no template used (e.g. in plain template) and no selector set. Even the attribute setting inputs in the footer part of Metamer. 
* Such behaviour was not present before and leads to test failures.
** I tried {{testSelector*}} tests and most of them fail atm because setting placeholder value with {{placeholderAttributes.set(PlaceholderAttributes.selector, "");}} has stopped working. Whichever value I set, no field is ever targeted.
** When setting the same thing manually , it works (but still, all fields will be targeted including those in footer when selector is empty string).
** This behavior only happens with plain template, in other templates value can be set both, manually and via placeholderAttributes.set() ans hence the tests pass correctly.
* The fields for setting placeholder value and selector are affected as well and contain watermark text. Once you change the template, they are no longer affected. I believe this causes the inability to set the values from code while in plain template.


> Placeholder in collapsibleSubTable template
> -------------------------------------------
>
>                 Key: RF-13739
>                 URL: https://issues.jboss.org/browse/RF-13739
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-misc
>    Affects Versions: 4.5.0.Alpha3
>         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
>            Reporter: Matej Novotny
>            Assignee: Michal Petrov
>              Labels: needs-qe
>             Fix For: 4.5.0.Beta1
>
>
> 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|https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RichFaces/view/4.5/job/richfaces-4.5-metamer-ftest--server-compatibility--misc/] which runs the tests.
> Link to [facelet|https://github.com/richfaces/richfaces-qa/blob/master/metamer/application/src/main/webapp/components/richPlaceholder/textarea.xhtml] and [test|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richPlaceholder/TestPlaceholderWithTextarea.java#L65] for textarea.
> Link to [facelet|https://github.com/richfaces/richfaces-qa/blob/master/metamer/application/src/main/webapp/components/richPlaceholder/input.xhtml] and [test|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richPlaceholder/TestPlaceholderWithInput.java#L65] for input.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the richfaces-issues mailing list