You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Leon (JIRA)" <ji...@apache.org> on 2014/11/06 08:47:33 UTC

[jira] [Updated] (OFBIZ-5856) js "form.null.focus()" error if no focusFieldName set

     [ 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)