[jira] [Commented] (OFBIZ-11968) Error when rendering renderSubmitField macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-11968) Error when rendering renderSubmitField macro

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-11968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17181822#comment-17181822 ]

Jacques Le Roux commented on OFBIZ-11968:
-----------------------------------------

James,

Like Dennnis, I have not this problem w/ trunk HEAD reverting your patch. This is what I get as generated HTML:

{code}
<!-- Begin Form Widget - Form Element component://humanres/widget/forms/PartySkillForms.xml#FindPartySkills --><form method="post" action="/humanres/control/FindPartySkills" id="FindPartySkills" class="basic-form" onsubmit="javascript:submitFormDisableSubmits(this)" name="FindPartySkills">
 <input type="hidden" name="noConditionFind" value="Y" id="FindPartySkills_noConditionFind"/>

[...]

<select name="startedUsingDate_fld0_op" class="selectBox"> <option value="equals">égal</option> <option value="sameDay">même jour</option> <option value="greaterThanFromDayStart">plus grand que le jour</option> <option value="greaterThan" selected="selected">plus grand</option> </select> <input id="FindPartySkills_startedUsingDate_fld1_value" type="text" class=" date-time-picker"
name="startedUsingDate_fld1_value"
 title="Format: JJ/MM/AAAA hh:mm:ss.sss"
 
 size="25"
 maxlength="30"
 data-shortdate="false"
 /> <select name="startedUsingDate_fld1_op" class="selectBox"> <option value="opLessThan" selected="selected">plus petit</option> <option value="upToDay">Jusqu'au jour</option> <option value="upThruDay">Inclus ce jour</option> <option value="empty">est vide</option> </select> </span>
 
 </td>
 </tr>
 <tr>
 <td class="label">
&nbsp; </td>
 <td colspan="4">
 <input type="submit" class="smallSubmit"
id="FindPartySkills_searchButton" name="searchButton" value="Rechercher"
 
 />
 
 </td>
 </tr>
 </table>
</form>
{code}
 
We of course get the same when your push is in. THat's normak since, as explained Dennis, a default value is generated by ModelFormField::getIdName

 You should get the same...

> Error when rendering renderSubmitField macro
> --------------------------------------------
>
>                 Key: OFBIZ-11968
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11968
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework/widget
>    Affects Versions: Upcoming Branch
>            Reporter: James Yong
>            Assignee: James Yong
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>         Attachments: FindSkillsPageError.png, Image 001.png
>
>
> Error shown on page when accessing /humanres/control/FindPartySkills page
> {code:java}
> When calling macro "renderSubmitField", required parameter "id" (parameter #8) was not specified{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)