[ 
https://issues.apache.org/jira/browse/OFBIZ-5341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17485087#comment-17485087
 ] 

ASF subversion and git services commented on OFBIZ-5341:
--------------------------------------------------------

Commit 3e76bb7193bd8cb040ba14f445ceb88ad7f58940 in ofbiz-plugins's branch 
refs/heads/release18.12 from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=3e76bb7 ]

Fixed: placeholder text has been implemented but seems to do nothing 
(OFBIZ-12548)

Adding this to a form in a widget/somethingForms.xml file:

<field name="description" title="${uiLabelMap.CommonDescription}"
required-field="true"><text placeholder="This is placeholder text"/></field>

Does not throw a error, but when the form is displayed, no placeholder text
appears.  I've checked the html code in the browser to confirm that it wasn't
white placeholder text on a white background, and it does not define the
placeholder property in the generated html.

Are there any cases where placeholder text does work?  If so, it would be nice
if a working example could be added somewhere (like someone in ofbiz,
or maybe in the "example" plugin)

Thanks: ddev for report and spotting the missed commit of
OFBIZ-5341-Example.patch in OFBIZ-5341


> Adding placeholder attribute to text fields rendered via Form-Widget's text 
> tag.
> --------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5341
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5341
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Sumit Pandit
>            Assignee: Adrian Crum
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: OFBIZ-5341-Example.patch, OFBIZ-5341-Framework.patch, 
> OFBIZ-5341-Framework.patch
>
>
> Adding placeholder attribute to text fields rendered via Form-Widget's text 
> tag.
> Form widget : 
> {code}
> <field name="partyId" title="${uiLabelMap.FormFieldTitle_partyId}" ><text 
> placeholder="${uiLabelMap.FormFieldTitle_partyId}"/></field>
> {code}
> Rendered as :
> {code}
> <input type="text" placeholder="Party Id" autocomplete="off" id="partyId" 
> size="25" name="partyId">
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to