ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OFBIZ-5856) js "form.null.focus()" error if no focusFieldName set
Date Thu, 06 Nov 2014 07:47:33 GMT

     [ https://issues.apache.org/jira/browse/OFBIZ-5856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leon updated OFBIZ-5856:
------------------------
    Attachment: OFBIZ-5856.patch

use empty string for focusFieldName if it's null.

Note that is a temporary workaround. According w3c, better to set attribute to empty string
if element does not have attribute and no default value either.

> js "form.null.focus()" error if no focusFieldName set
> -----------------------------------------------------
>
>                 Key: OFBIZ-5856
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5856
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Leon
>             Fix For: Trunk
>
>         Attachments: OFBIZ-5856.patch
>
>
> In current revision, the modelForm.getfocusFieldName() returns null instead of empty
string "" if there's no "focus-field-name" set to form element. Then  string "null" is written
out when call StringWriter.append(focusFieldName) method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message