[
https://issues.apache.org/jira/browse/OFBIZ-9325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15975803#comment-15975803
]
Wei Zhang commented on OFBIZ-9325:
----------------------------------
Hi Jacopo,
I think it is caused by component://common/template/includes/HtmlTemplate.ftl
is included inapplications/party/template/party/EditShoppingList.ftl directly.
The error can be fixed by adding <#include
"component://widget/templates/HtmlFormMacroLibrary.ftl"/> at the start of
HtmlTemplate.ftl . But I don't think it is you expected. So I assigned this
issue to you.
Kind Regards,
Wei
> Error in Party Manager->Parties->SHOPPING LIST->QUICK ADD TO SHOPPING LIST
> section
> ----------------------------------------------------------------------------------
>
> Key: OFBIZ-9325
> URL: https://issues.apache.org/jira/browse/OFBIZ-9325
> Project: OFBiz
> Issue Type: Bug
> Components: party
> Affects Versions: Trunk
> Reporter: Wei Zhang
> Assignee: Jacopo Cappellato
> Priority: Minor
>
> To reproduce it:
> 1. Open partymgr/control/editShoppingList?partyId=admin
> 2. Add a product to shopping list in QUICK ADD TO SHOPPING LIST section by
> clicking ADD TO SHOPPING LIST button
> 3. You should be able to get error message below
> _The following has evaluated to null or missing: ==> renderLookupField [in
> template "component://common/template/includes/HtmlTemplate.ftl" at line 38,
> column 5] ---- Tip: If the failing expression is known to be legally refer to
> something that's sometimes null or missing, either specify a default value
> like myOptionalVar!myDefault, or use <#if
> myOptionalVar??>when-present<#else>when-missing. (These only cover the last
> step of the expression; to cover the whole expression, use parenthesis:
> (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack
> trace ("~" means nesting-related): - Failed at: @renderLookupField name,
> formName, fi... [in template
> "component://common/template/includes/HtmlTemplate.ftl" in macro
> "lookupField" at line 38, column 3] - Reached through:
> @htmlTemplate.lookupField formName="a... [in template
> "component://party/template/party/EditShoppingList.ftl" at line 256, column
> 7] ----_
> [~jacopoc] Can you please check it? As I dont understand your commits in
> 1785581 and 1762227. Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)