[
https://issues.apache.org/jira/browse/OFBIZ-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Taher Alkhateeb updated OFBIZ-4915:
-----------------------------------
Description:
Any field in a form that uses the <lookup target-form-name="WhateverForm"/>
would not return results when searching in Arabic. I suspect the main offender
is javascript/jQuery when parsing user input.
For example, if I go to https://localhost:8443/ordermgr/control/findorders and
click on "Party ID", and search the firstname or lastname in arabic, no values
are returned and the value in the search box changes from arabic to some weird
encoding ( e.g. "حسن" becomes ØØ³Ù )
Also, after some investigation, I came to the realization that this only
happens when the lookup field has presentation="layer", if however, the
presentation="window" then it works normally which leads me to conclude
definitely that this is javascript/jQuery issue of parsing input data.
was:
Any form that uses the LookupDecorator in
framework/common/widget/CommonScreens.xml would not return results when
searching in Arabic. I suspect the main offender is javascript/jQuery when
parsing user input.
For example, if I go to https://localhost:8443/ordermgr/control/findorders and
click on "Party ID" pop-up window, and search the firstname or lastname in
arabic, no values are returned and the value in the search box changes from
arabic to some weird encoding ( e.g. "حسن" becomes ØØ³Ù )
Also, after some investigation, it seems definitely the case of a unicode not
being applied. When I convert the above Arabic to unicode and then paste the
unicode directly to the input box it works!
Summary: Lookup Form not working with Arabic characters (was:
LookupDecorator not working with Arabic characters)
> Lookup Form not working with Arabic characters
> ----------------------------------------------
>
> Key: OFBIZ-4915
> URL: https://issues.apache.org/jira/browse/OFBIZ-4915
> Project: OFBiz
> Issue Type: Bug
> Components: ALL COMPONENTS
> Affects Versions: Release Branch 12.04
> Reporter: Taher Alkhateeb
> Priority: Minor
> Labels: decorator, javascript, lookup
> Attachments: search_party_after_submit.png,
> search_party_before_submit.png
>
>
> Any field in a form that uses the <lookup target-form-name="WhateverForm"/>
> would not return results when searching in Arabic. I suspect the main
> offender is javascript/jQuery when parsing user input.
> For example, if I go to https://localhost:8443/ordermgr/control/findorders
> and click on "Party ID", and search the firstname or lastname in arabic, no
> values are returned and the value in the search box changes from arabic to
> some weird encoding ( e.g. "حسن" becomes ØØ³Ù )
> Also, after some investigation, I came to the realization that this only
> happens when the lookup field has presentation="layer", if however, the
> presentation="window" then it works normally which leads me to conclude
> definitely that this is javascript/jQuery issue of parsing input data.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira