[
https://issues.apache.org/jira/browse/OFBIZ-11957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17180543#comment-17180543
]
Jacques Le Roux commented on OFBIZ-11957:
-----------------------------------------
HI Dennis I applied your changes and I see no Id for submit, like at
https://localhost:8443/catalog/control/login?USERNAME=admin&PASSWORD=ofbiz&JavaScriptEnabled=Y
I see
{noformat}
<div>
<input type="submit" name="find" value="Find" class="buttontext">
</div>
</fieldset>
</form>
<form name="advancedsearchform" id="advancedSearchForm" method="post"
action="https://localhost:8443/catalog/control/advancedsearch">
<fieldset>
<div> <label for="searchCategoryId">Category ID:</label> <!--
@renderLookupField --> <span class="field-lookup"> <input type="text"
name="SEARCH_CATEGORY_ID" size="20" maxlength="20" id="searchCategoryId"
data-lookup-ajax-enabled="true" data-lookup-presentation="layer"
data-lookup-request-url="LookupProductCategory"
data-lookup-form-name="advancedsearchform" data-lookup-optional-target=""
data-lookup-width="640" data-lookup-height="500" data-lookup-position="topleft"
data-lookup-modal="true" data-lookup-show-description="true"
data-lookup-default-minlength="2" data-lookup-default-delay="300"
data-lookup-args=""
data-lookup-ajax-url="searchCategoryId,https://localhost:8443/catalog/control/LookupProductCategory,ajaxLookup=Y&searchValueFieldName=SEARCH_CATEGORY_ID">
</span>
</div>
<div>
<input type="submit" value="Advanced Search">
</div>
{noformat}
Also at https://localhost:8443/catalog/control/FindCategory
I see this error in screen:
{noformat}
Macro "renderSubmitField" has no parameter with name "id". Valid parameter
names are: buttonType, className, alert, formName, action, imgSrc, ajaxUrl,
title, name, event, confirmation, containerId, tabindex ---- FTL stack trace
("~" means nesting-related): - Failed at: @renderSubmitField
buttonType="button... [in template "5fa970bd:17406df4b82:-7fe4" at line 1,
column 1] ----
{noformat}
Do I miss something?
> Form-Fields of certain types won't render IDs
> ---------------------------------------------
>
> Key: OFBIZ-11957
> URL: https://issues.apache.org/jira/browse/OFBIZ-11957
> Project: OFBiz
> Issue Type: Improvement
> Affects Versions: Trunk
> Reporter: Dennis Balkir
> Assignee: Dennis Balkir
> Priority: Minor
>
> While implementing some OFBiz-Forms, I noticed, that certain types of
> form-fields will not render the set ID.
> Field-Types that won't work for sure are {{submit}} and {{hyperlink}} where
> the set name for the parameter {{id-name}} simply will not be rendered in the
> HTML-Code that is generetad by OFBiz.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)