Hi All,
I have updated to latest ofbiz release *14.12-v14.0* I am facing js related issue here. Js files are not getting included. <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=" http://ofbiz.apache.org/dtds/widget-screen.xsd"> <screen name="CheckInits"> <section> <actions> <set field="titleProperty" value="PageTitleOrderInits"/> <set field="headerItem" value="orderentry"/> * <set field="layoutSettings.javaScripts[]" value="/ordermgr/images/test.js" global="true"/>* <script location="component://customorder/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy"/> </actions> test.js is not getting included. but framerwork's images folder which has all js lib's is getting included. i am not getting the issue here. Anyone has idea about this? Regards, Aashish Repal |
Hi Ashish,
Can you please have a look at your *web.xml* file of ordermgr component? I think you missed the entry of your images folder into allowedPaths param. Code snippet is as below: <init-param> <param-name>allowedPaths</param-name> <param-value>/error:/control:/products:/select:/index.html:/index.jsp:/default.html:/default.jsp:/js:/includes/maincss.css *:/images*</param-value> </init-param> Hope this will help you. Thanks & Regards, -- *Pritam Kute* *HotWax Systems* | www.hotwaxsystems.com On Fri, Sep 25, 2015 at 10:02 AM, Ashish Repal <[hidden email]> wrote: > Hi All, > > I have updated to latest ofbiz release *14.12-v14.0* > I am facing js related issue here. Js files are not getting included. > > > <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation=" > http://ofbiz.apache.org/dtds/widget-screen.xsd"> > <screen name="CheckInits"> > <section> > <actions> > > <set field="titleProperty" value="PageTitleOrderInits"/> > <set field="headerItem" value="orderentry"/> > * <set field="layoutSettings.javaScripts[]" > value="/ordermgr/images/test.js" global="true"/>* > <script > > location="component://customorder/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy"/> > </actions> > > test.js is not getting included. > but framerwork's images folder which has all js lib's is getting included. > i am not getting the issue here. > Anyone has idea about this? > > > Regards, > Aashish Repal > |
Hi Ashish,
You need to add order related js under application/commonext/webapp/ordermgr-js. As birt component override the ordermgr webapp, hence js added under application/ordermgr will not be loaded. To fix this issue we added ordermgr-js webapp under commonext. Please add all the order related js under ordergr-js webapp. Thanks & Regards — Deepak Dixit > On Sep 25, 2015, at 10:38 AM, Pritam Kute <[hidden email]> wrote: > > Hi Ashish, > > Can you please have a look at your *web.xml* file of ordermgr component? I > think you missed the entry of your images folder into allowedPaths param. > Code snippet is as below: > > <init-param> > <param-name>allowedPaths</param-name> > > <param-value>/error:/control:/products:/select:/index.html:/index.jsp:/default.html:/default.jsp:/js:/includes/maincss.css > *:/images*</param-value> > </init-param> > > Hope this will help you. > > Thanks & Regards, > -- > *Pritam Kute* > *HotWax Systems* | www.hotwaxsystems.com > > On Fri, Sep 25, 2015 at 10:02 AM, Ashish Repal <[hidden email]> > wrote: > >> Hi All, >> >> I have updated to latest ofbiz release *14.12-v14.0* >> I am facing js related issue here. Js files are not getting included. >> >> >> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:noNamespaceSchemaLocation=" >> http://ofbiz.apache.org/dtds/widget-screen.xsd"> >> <screen name="CheckInits"> >> <section> >> <actions> >> >> <set field="titleProperty" value="PageTitleOrderInits"/> >> <set field="headerItem" value="orderentry"/> >> * <set field="layoutSettings.javaScripts[]" >> value="/ordermgr/images/test.js" global="true"/>* >> <script >> >> location="component://customorder/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy"/> >> </actions> >> >> test.js is not getting included. >> but framerwork's images folder which has all js lib's is getting included. >> i am not getting the issue here. >> Anyone has idea about this? >> >> >> Regards, >> Aashish Repal >> |
Hi Deepak,
Where is the configuration done for this? I have extended the order module of previous version in hot-deploy, where i have added custom js file. Pritam, entry is already there for images folder in allowedPaths. Regards, Aashish Repal 09623381664 On Fri, Sep 25, 2015 at 10:55 AM, Deepak Dixit < [hidden email]> wrote: > Hi Ashish, > > You need to add order related js under > application/commonext/webapp/ordermgr-js. > As birt component override the ordermgr webapp, hence js added under > application/ordermgr will not be loaded. > > To fix this issue we added ordermgr-js webapp under commonext. Please add > all the order related js under ordergr-js webapp. > > Thanks & Regards > — > Deepak Dixit > > > > On Sep 25, 2015, at 10:38 AM, Pritam Kute <[hidden email]> > wrote: > > > > Hi Ashish, > > > > Can you please have a look at your *web.xml* file of ordermgr component? > I > > think you missed the entry of your images folder into allowedPaths param. > > Code snippet is as below: > > > > <init-param> > > <param-name>allowedPaths</param-name> > > > > > <param-value>/error:/control:/products:/select:/index.html:/index.jsp:/default.html:/default.jsp:/js:/includes/maincss.css > > *:/images*</param-value> > > </init-param> > > > > Hope this will help you. > > > > Thanks & Regards, > > -- > > *Pritam Kute* > > *HotWax Systems* | www.hotwaxsystems.com > > > > On Fri, Sep 25, 2015 at 10:02 AM, Ashish Repal <[hidden email]> > > wrote: > > > >> Hi All, > >> > >> I have updated to latest ofbiz release *14.12-v14.0* > >> I am facing js related issue here. Js files are not getting included. > >> > >> > >> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> xsi:noNamespaceSchemaLocation=" > >> http://ofbiz.apache.org/dtds/widget-screen.xsd"> > >> <screen name="CheckInits"> > >> <section> > >> <actions> > >> > >> <set field="titleProperty" value="PageTitleOrderInits"/> > >> <set field="headerItem" value="orderentry"/> > >> * <set field="layoutSettings.javaScripts[]" > >> value="/ordermgr/images/test.js" global="true"/>* > >> <script > >> > >> > location="component://customorder/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy"/> > >> </actions> > >> > >> test.js is not getting included. > >> but framerwork's images folder which has all js lib's is getting > included. > >> i am not getting the issue here. > >> Anyone has idea about this? > >> > >> > >> Regards, > >> Aashish Repal > >> > > |
Hi Ashish,
This is introduced at r1612202. http://markmail.org/message/eyr37djjpdllsjn7 Thanks & Regards — Deepak Dixit > On Sep 25, 2015, at 12:48 PM, Ashish Repal <[hidden email]> wrote: > > Hi Deepak, > > Where is the configuration done for this? > I have extended the order module of previous version in hot-deploy, where i > have added custom js file. > > > Pritam, > entry is already there for images folder in allowedPaths. > > > > > Regards, > Aashish Repal > 09623381664 > > On Fri, Sep 25, 2015 at 10:55 AM, Deepak Dixit < > [hidden email]> wrote: > >> Hi Ashish, >> >> You need to add order related js under >> application/commonext/webapp/ordermgr-js. >> As birt component override the ordermgr webapp, hence js added under >> application/ordermgr will not be loaded. >> >> To fix this issue we added ordermgr-js webapp under commonext. Please add >> all the order related js under ordergr-js webapp. >> >> Thanks & Regards >> — >> Deepak Dixit >> >> >>> On Sep 25, 2015, at 10:38 AM, Pritam Kute <[hidden email]> >> wrote: >>> >>> Hi Ashish, >>> >>> Can you please have a look at your *web.xml* file of ordermgr component? >> I >>> think you missed the entry of your images folder into allowedPaths param. >>> Code snippet is as below: >>> >>> <init-param> >>> <param-name>allowedPaths</param-name> >>> >>> >> <param-value>/error:/control:/products:/select:/index.html:/index.jsp:/default.html:/default.jsp:/js:/includes/maincss.css >>> *:/images*</param-value> >>> </init-param> >>> >>> Hope this will help you. >>> >>> Thanks & Regards, >>> -- >>> *Pritam Kute* >>> *HotWax Systems* | www.hotwaxsystems.com >>> >>> On Fri, Sep 25, 2015 at 10:02 AM, Ashish Repal <[hidden email]> >>> wrote: >>> >>>> Hi All, >>>> >>>> I have updated to latest ofbiz release *14.12-v14.0* >>>> I am facing js related issue here. Js files are not getting included. >>>> >>>> >>>> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:noNamespaceSchemaLocation=" >>>> http://ofbiz.apache.org/dtds/widget-screen.xsd"> >>>> <screen name="CheckInits"> >>>> <section> >>>> <actions> >>>> >>>> <set field="titleProperty" value="PageTitleOrderInits"/> >>>> <set field="headerItem" value="orderentry"/> >>>> * <set field="layoutSettings.javaScripts[]" >>>> value="/ordermgr/images/test.js" global="true"/>* >>>> <script >>>> >>>> >> location="component://customorder/webapp/ordermgr/WEB-INF/actions/entry/CheckInits.groovy"/> >>>> </actions> >>>> >>>> test.js is not getting included. >>>> but framerwork's images folder which has all js lib's is getting >> included. >>>> i am not getting the issue here. >>>> Anyone has idea about this? >>>> >>>> >>>> Regards, >>>> Aashish Repal >>>> >> >> |
Free forum by Nabble | Edit this page |