[jira] [Created] (OFBIZ-4311) Call to eprecated javascript function "call_cal_notime" and "call_cal"

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

[jira] [Created] (OFBIZ-4311) Call to eprecated javascript function "call_cal_notime" and "call_cal"

Nicolas Malin (Jira)
Call to eprecated javascript function "call_cal_notime" and "call_cal"
----------------------------------------------------------------------

                 Key: OFBIZ-4311
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4311
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Leon
            Priority: Minor


In the method "renderDateTimeField" of HtmlFormRenderer.java, there's code which call unexist javascript "call_cal_notime" and "call_cal".

The affected application what I met is party. In "EditPartyRelationships" screen, the calendar icon that intends to popup a small window for datetime selection to set thruDate value is no use now.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4311) Call to eprecated javascript function "call_cal_notime" and "call_cal"

Nicolas Malin (Jira)

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

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

I had a look but did not had eough time to fix it yet. HtmlFormRenderer is called underneath when MacroFormRenderer should be used.

If you compare with (for instance chosen by chance)
https://localhost:8443/ordermgr/control/createCustRequestParty
It works there (ie I guess MacroFormRenderer is called)

There are few differences in the forms definitions, and I tried to apply the same without luck.
<form name="ListPartyRelationships" type="list" list-name="partyRelationships" default-table-style="basic-table" target="updatePartyRelationship">
<form name="ListRequestRoles" type="list" use-row-submit="true" title="" list-name="custRequestParties" target="updateCustRequestParty">

I also replaced
<field name="thruDate"><date-time/></field>
by
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><date-time/></field>
no luck either.

I also had a look at the calling screen, but did not find anything obvious...



> Call to eprecated javascript function "call_cal_notime" and "call_cal"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4311
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4311
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Minor
>
> In the method "renderDateTimeField" of HtmlFormRenderer.java, there's code which call unexist javascript "call_cal_notime" and "call_cal".
> The affected application what I met is party. In "EditPartyRelationships" screen, the calendar icon that intends to popup a small window for datetime selection to set thruDate value is no use now.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Assigned] (OFBIZ-4311) Call to eprecated javascript function "call_cal_notime" and "call_cal"

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-4311:
--------------------------------------

    Assignee: Jacques Le Roux

> Call to eprecated javascript function "call_cal_notime" and "call_cal"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4311
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4311
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> In the method "renderDateTimeField" of HtmlFormRenderer.java, there's code which call unexist javascript "call_cal_notime" and "call_cal".
> The affected application what I met is party. In "EditPartyRelationships" screen, the calendar icon that intends to popup a small window for datetime selection to set thruDate value is no use now.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4311) Call to eprecated javascript function "call_cal_notime" and "call_cal"

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Leon commented on OFBIZ-4311:
-----------------------------

Generally, framework will call MacroFormRenderer. But if you use screenlet
with attribute "navigation-form-name" set as same form as the same one
contained in screenlet, the error occurs.

May this info help.




> Call to eprecated javascript function "call_cal_notime" and "call_cal"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4311
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4311
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> In the method "renderDateTimeField" of HtmlFormRenderer.java, there's code which call unexist javascript "call_cal_notime" and "call_cal".
> The affected application what I met is party. In "EditPartyRelationships" screen, the calendar icon that intends to popup a small window for datetime selection to set thruDate value is no use now.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4311) Call to eprecated javascript function "call_cal_notime" and "call_cal"

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

Thanks Leon, this was the missing piece. It works well w/out it. The doc says
{quote}
Name of the screenlet include-form sub element that will be used for screenlet navigation. The form's pagination menu will be included in the screenlet title bar.
{quote}
I don't see much but cosmetic changes when I remove it.

Now we need to understand why it uses HtmlFormRenderer  rather than the MacroFormRenderer. And even if it's needed at all

> Call to eprecated javascript function "call_cal_notime" and "call_cal"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4311
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4311
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> In the method "renderDateTimeField" of HtmlFormRenderer.java, there's code which call unexist javascript "call_cal_notime" and "call_cal".
> The affected application what I met is party. In "EditPartyRelationships" screen, the calendar icon that intends to popup a small window for datetime selection to set thruDate value is no use now.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4311) Call to eprecated javascript function "call_cal_notime" and "call_cal"

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

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

OK of course, it needs pagination to be shown...

So we need to replace HtmlFormRenderer by MacroFormRenderer or see why it was not done... There is a workaround for now...

> Call to eprecated javascript function "call_cal_notime" and "call_cal"
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4311
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4311
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> In the method "renderDateTimeField" of HtmlFormRenderer.java, there's code which call unexist javascript "call_cal_notime" and "call_cal".
> The affected application what I met is party. In "EditPartyRelationships" screen, the calendar icon that intends to popup a small window for datetime selection to set thruDate value is no use now.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira