[
https://issues.apache.org/jira/browse/OFBIZ-4926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290724#comment-13290724
]
Chatree Srichart commented on OFBIZ-4926:
-----------------------------------------
Hello Jacques,
I am sorry to make you confuse. I think I make confusing with my description.
Let me correct myself.
What I would like to change the renderLookupField macro is changing the
reference to the lookup element:
from: document.${formName}.${fieldName}
to: document.getElementById("${id}") which "id" is an id attribute of the
lookup element.
because sometimes I want to render the lookup field without form element.
To change this will not cause a problem with the lookup fields which already
used in the system because there always be "id" for the lookup fields.
Regards,
Chatree Srichart
> renderLookupField macro: get a form element by "ID" instead of "Name"
> ---------------------------------------------------------------------
>
> Key: OFBIZ-4926
> URL: https://issues.apache.org/jira/browse/OFBIZ-4926
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: SVN trunk
> Environment: Ubuntu 10.04
> Reporter: Chatree Srichart
> Fix For: SVN trunk
>
> Attachments: lookup.patch
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Hello all,
> We have a problem to render a lookup field in a form element without a "name"
> attribute.
> We need to improve a lookup field because if we render the field without form
> or different form then the lookup field doesn't work, so we will change the
> lookup field by not get a from element by a "name" attribute but get by an
> "id" attribute.
> Regards,
> Chatree Srichart
--
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