Configuration for several stores and only one company
Hi, I have : # One company : FABIOTIC (for accountancy ...) # Two web sites : FABIANCE, STENIOR (different logos, catalogs, products, themes) So I configure two different stores : FABIANCE & STENIOR for sale order. On the field "Pay To Party Id", I configure "FABIOTIC" for both stores. But on order, payment and invoice communications (email and pdf) I have to display the right party "FABIANCE" or "STENIOR" informations (logo, address, phone, bank account ...) Can "Store roles" with the same "Pay To Party Id" can differentiate order, payment, invoice ... I believe the parameter "billFromVendorPartyId" ("BILL_FROM_VENDOR" role) works only for purchase order ? Could you help me please ? Thanks Eric
Re: Ofbiz shutdows at start time : JCR / RMI
Thanks Jacques & Sasha, I don't master this part with Jackrabbit. Eric On Wed, 2012-01-25 at 10:02 +0100, Sascha Rodekamp wrote: > Hm Jackrabbit uses Derby as internal DataStore. > > you can find the configuration in the jackrabbit.xml: > > > > > > > > This could be made configurable to avoid problems. I have to check how > it works with PostgreSQL . > > 2012/1/25 Jacques Le Roux : > > This could be the reason why we crossed issues with trunk demo last week. > > But it seems to work there since 21/01 > > > > Jacques > > > > From: "Eric de Maulde" > > > >> Hi, > >> > >> From the trunk 1234563 > >> > >> My OFBiz shutdowns at start time on PostgreSQL (with my own data) and > >> doesn't with a configured entity engine on Derby. > >> > >> Here is errors : > >> > >> ... > >> 9924 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting > >> repository... > >> 9928 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > >> LocalFileSystem initialized at path runtime/data/jcr/repository > >> 10112 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > >> LocalFileSystem initialized at path runtime/data/jcr/version > >> 12805 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - > >> initializing workspace 'default'... > >> 12806 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > >> LocalFileSystem initialized at path runtime/data/jcr/workspaces/default > >> 13349 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace > >> 'default' initialized > >> 13355 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - > >> SecurityManager = class > >> org.apache.jackrabbit.core.security.simple.SimpleSecurityManager > >> 13355 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - > >> initializing workspace 'security'... > >> 13355 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > >> LocalFileSystem initialized at path runtime/data/jcr/workspaces/security > >> 13715 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace > >> 'security' initialized > >> 13716 [main] INFO > >> org.apache.jackrabbit.core.security.simple.SimpleSecurityManager - init: > >> using Repository LoginModule configuration for Jackrabbit > >> 13722 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository > >> started (3798ms) > >> 13722 [main] INFO org.apache.jackrabbit.core.TransientRepository - > >> Transient repository initialized > >> 13725 [main] INFO org.ofbiz.service.GenericDispatcher - Creating new > >> dispatcher [auth-dispatcher] (main) > >> 13744 [main] INFO org.ofbiz.service.engine.AbstractEngine - Loaded > >> Service Locations : {main-rmi=rmi://localhost:1099/RMIDispatcher, > >> main-http=http://localhost:8080/webtools/control/httpService, > >> entity-sync-rmi=rmi://localhost:1099/RMIDispatcher, > >> entity-sync-http=http://localhost:8080/webtools/control/httpService, > >> rita-rmi=rmi://localhost:1099/RMIDispatcher, > >> eedcc-test=http://localhost:8080/webtools/control/httpService} > >> 13876 [main] INFO org.ofbiz.base.util.UtilProperties - ResourceBundle > >> SecurityextUiLabels (en) created in 0.078s with 55 properties > >> 14007 [main] ERROR org.ofbiz.service.ServiceDispatcher - Error in > >> Service [userLogin]: The account for user login id "system" has been > >> disabled.. It is not scheduled to be re-enabled. > >> 14010 [main] ERROR org.ofbiz.entity.transaction.TransactionUtil - > >> exception report > >> -- > >> [TransactionUtil.rollback] > >> Exception: java.lang.Exception > >> Message: Stack Trace > >> stack trace > >> --- > >> java.lang.Exception: Stack Trace > >> > >> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:341) > >> > >> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:318) > >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:547) > >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) > >> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) > >&
Ofbiz shutdows at start time : JCR / RMI
Hi, >From the trunk 1234563 My OFBiz shutdowns at start time on PostgreSQL (with my own data) and doesn't with a configured entity engine on Derby. Here is errors : ... 9924 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting repository... 9928 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem initialized at path runtime/data/jcr/repository 10112 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem initialized at path runtime/data/jcr/version 12805 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing workspace 'default'... 12806 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem initialized at path runtime/data/jcr/workspaces/default 13349 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace 'default' initialized 13355 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - SecurityManager = class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager 13355 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing workspace 'security'... 13355 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem initialized at path runtime/data/jcr/workspaces/security 13715 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace 'security' initialized 13716 [main] INFO org.apache.jackrabbit.core.security.simple.SimpleSecurityManager - init: using Repository LoginModule configuration for Jackrabbit 13722 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository started (3798ms) 13722 [main] INFO org.apache.jackrabbit.core.TransientRepository - Transient repository initialized 13725 [main] INFO org.ofbiz.service.GenericDispatcher - Creating new dispatcher [auth-dispatcher] (main) 13744 [main] INFO org.ofbiz.service.engine.AbstractEngine - Loaded Service Locations : {main-rmi=rmi://localhost:1099/RMIDispatcher, main-http=http://localhost:8080/webtools/control/httpService, entity-sync-rmi=rmi://localhost:1099/RMIDispatcher, entity-sync-http=http://localhost:8080/webtools/control/httpService, rita-rmi=rmi://localhost:1099/RMIDispatcher, eedcc-test=http://localhost:8080/webtools/control/httpService} 13876 [main] INFO org.ofbiz.base.util.UtilProperties - ResourceBundle SecurityextUiLabels (en) created in 0.078s with 55 properties 14007 [main] ERROR org.ofbiz.service.ServiceDispatcher - Error in Service [userLogin]: The account for user login id "system" has been disabled.. It is not scheduled to be re-enabled. 14010 [main] ERROR org.ofbiz.entity.transaction.TransactionUtil - exception report -- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace stack trace --- java.lang.Exception: Stack Trace org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:341) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:318) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:547) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.jcr.loader.OFBizLoginModule.login(OFBizLoginModule.java:127) org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:86) org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1458) org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:381) org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:123) org.ofbiz.jcr.loader.jackrabbit.JCRFactoryImpl.createSession(JCRFactoryImpl.java:146) org.ofbiz.jcr.loader.jackrabbit.JCRFactoryImpl.start(JCRFactoryImpl.java:100) org.ofbiz.jcr.loader.JCRContainer.start(JCRContainer.java:129) org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) org.ofbiz.base.start.Start.startStartLoaders(Start.java:310) org.ofbiz.base.start.Start.start(Start.java:289) org.ofbiz.base.start.Start.main(Start.java:119) ... Configuration on Derby doesn't load RMI service. ... 14814 [main] INFO org.apache.jackrabbit.core.TransientRepository - Transient repository initialized 14817 [main] INFO org.ofbiz.service.GenericDispatcher - Creating new dispatcher [auth-dispatcher] (main) 14891 [main] INFO org.apache.jackrabbit.core.TransientRepository - Session opened 14893 [main] INFO org.apache.jackrabbit.ocm.nodemanagement.impl.RepositoryUtil - Setup Jcr session setup ... 14900 [main] INFO org.apache.jackrabbit.ocm.nodemanagement.impl.RepositoryUtil - Jcr session setup successfull. 14981 [main] INFO org.ofbiz.jcr.loader.JCRContainer - Repository bound to JNDI as jcr/local ... Why RMI service loads here ? User login "system" isn't valid !!! (Jackrabbit service or RMI service ?) Do you have a line of thought ? Thank you very much Eric
Re: Building Ofbiz with new code
See https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html On Mon, 2012-01-16 at 09:52 +1300, Ofbiz 开发 wrote: > Hi everyone, > > Sorry this might be a dumb question, I am new to Ofbiz. > > I am connecting to TRUNK, after I have downloaded new code, do I need to > rebuild the application? Should I use "ant clean" and "ant build" to just > build the code and not initializing the database again? Will it duplicate > the data if calling "ant run-install" ? Thanks very much. > > Kind Regards
Re: Pages display is slower / progressive
If the same menu is static, without request to the database, Menu displays silmutaneous with the header. It's OK. The Freemarker version is same : 2.3.10 So do you believe slowness depends on database server connection/configuration ? But I don't understand why page display is now progressive ! Thanks Eric On Fri, 2012-01-06 at 16:03 +0100, Eric de Maulde wrote: > Hi Jacques, Pierre, > > Thanks for your help. > > On my home page & category pages, I don't have any query/lookup load by > jquery. > Just right images are loaded in a second time with a jquery code loads > the image attribute "url" to the source. > Jquery doesn't request the server. > > ex. url="http://test.fabiance.eu/images/products/NAOMI/additional1/HomePageSlideShow.png"; > /> > > So even if I doesn't enable Javascript on browser, there is a > slower/progressive pages display. > > The first slower screen is the Menu ... > > Main decorator calls menu : > location="component://mobilier/widget/CommonScreens.xml"/> > > And the Menu screen definition is : > > > > location="component://mobilier/webapp/mobilier/menu/Menu.ftl"/> > > > > > I'm checking logs. > > Eric > > On Fri, 2012-01-06 at 11:24 +0100, Jacques Le Roux wrote: > > > Hi Pierre, Eric, > > > > http://svn.apache.org/viewvc?view=revision&revision=1170985 is fairly > > recent. I did not expect major lookup changes since then. > > Could be though. Could you confirm Eric? Because what reported Eric looks > > more like a eCommerce UI where no lookups are used > > > > Thanks > > > > Jacques > > > > From: "pierre.gaudin" > > > HI Jacques and Eric, > > > > > > I think Eric is right. Page display are slower due to lookup display by > > > Jquery. If there are many lookup on a page, display is slower and > > > progressive because each time a lookup is diplay a query is done to the > > > server... > > > You can see request with firebug. > > > > > > I don't know why a query to the server is needed just to display a > > > lookup... > > > > > > > > > Pierre > > > > > > On 06/01/2012 06:56, Jacques Le Roux wrote: > > >> Hi Eric, > > >> > > >> I guess you have tested with both versions on the same server? > > >> Because it's the 1st time a such report is done > > >> > > >> I'd 1st check for a configuration change. You are not using a cluster? > > >> > > >> Jacques > > >> > > >> From: "Eric de Maulde" > > >>> Hi, > > >>> > > >>> I updated my ofbiz with the official trunk (version 1220649). > > >>> > > >>> Now pages display is slower and/or progressive. > > >>> > > >>> The current test version 1220649 is on "test.fabiance.eu" > > >>> (this test server is slower than the production server) > > >>> > > >>> The production server is on www.fabiance.fr (Old trunk version 1170985 : > > >>> page speed is OK) > > >>> > > >>> The first slowness is between header and menu. > > >>> > > >>> Has calling a screen become slower or has configuration/code changed ? > > >>> > > >>> My database is PostgreSQL 8.4 on Linux Debian with JDK 1.6 > > >>> Thanks > > >>> > > >>> Eric > > >>> > > >>> > > >> > > > > > > > >
Re: Pages display is slower / progressive
Hi Jacques, Pierre, Thanks for your help. On my home page & category pages, I don't have any query/lookup load by jquery. Just right images are loaded in a second time with a jquery code loads the image attribute "url" to the source. Jquery doesn't request the server. ex. http://test.fabiance.eu/images/products/NAOMI/additional1/HomePageSlideShow.png"; /> So even if I doesn't enable Javascript on browser, there is a slower/progressive pages display. The first slower screen is the Menu ... Main decorator calls menu : And the Menu screen definition is : I'm checking logs. Eric On Fri, 2012-01-06 at 11:24 +0100, Jacques Le Roux wrote: > Hi Pierre, Eric, > > http://svn.apache.org/viewvc?view=revision&revision=1170985 is fairly recent. > I did not expect major lookup changes since then. > Could be though. Could you confirm Eric? Because what reported Eric looks > more like a eCommerce UI where no lookups are used > > Thanks > > Jacques > > From: "pierre.gaudin" > > HI Jacques and Eric, > > > > I think Eric is right. Page display are slower due to lookup display by > > Jquery. If there are many lookup on a page, display is slower and > > progressive because each time a lookup is diplay a query is done to the > > server... > > You can see request with firebug. > > > > I don't know why a query to the server is needed just to display a lookup... > > > > > > Pierre > > > > On 06/01/2012 06:56, Jacques Le Roux wrote: > >> Hi Eric, > >> > >> I guess you have tested with both versions on the same server? > >> Because it's the 1st time a such report is done > >> > >> I'd 1st check for a configuration change. You are not using a cluster? > >> > >> Jacques > >> > >> From: "Eric de Maulde" > >>> Hi, > >>> > >>> I updated my ofbiz with the official trunk (version 1220649). > >>> > >>> Now pages display is slower and/or progressive. > >>> > >>> The current test version 1220649 is on "test.fabiance.eu" > >>> (this test server is slower than the production server) > >>> > >>> The production server is on www.fabiance.fr (Old trunk version 1170985 : > >>> page speed is OK) > >>> > >>> The first slowness is between header and menu. > >>> > >>> Has calling a screen become slower or has configuration/code changed ? > >>> > >>> My database is PostgreSQL 8.4 on Linux Debian with JDK 1.6 > >>> Thanks > >>> > >>> Eric > >>> > >>> > >> > > > >
Pages display is slower / progressive
Hi, I updated my ofbiz with the official trunk (version 1220649). Now pages display is slower and/or progressive. The current test version 1220649 is on "test.fabiance.eu" (this test server is slower than the production server) The production server is on www.fabiance.fr (Old trunk version 1170985 : page speed is OK) The first slowness is between header and menu. Has calling a screen become slower or has configuration/code changed ? My database is PostgreSQL 8.4 on Linux Debian with JDK 1.6 Thanks Eric
Re: maincss.css : relative path error
Thanks Ryan I don't have a solution to manage maincss.css according to the theme. For example, mails are a better display with maincss.css than ecommain.css Eric - Original Message - From: "Ryan Foster" To: Sent: Monday, September 14, 2009 5:58 AM Subject: Re: maincss.css : relative path error Jacques, That is correct. There is only one maincss.css file. It used to be located in the images folder when "flatgrey" was the only/default theme for the OFBiz back office applications. It was moved to the / flatgrey webapp theme when we added the additional themes (bizznesstime and bluelight) and made bizznesstime the default theme. Eric, It does appear the files you listed do have an incorrect relative path. However, it seems to me that there is another problem beyond the relative path issue. The files mentioned below apply to the ecommerce component don't they? They should be referencing ecommain.css not maincss.css. Also, any back office screen view should not have a hard-coded path to maincss.css anyway. The stylesheet should be controlled by the themes component. Ryan Foster HotWax Media 801.671.0769 ryan.fos...@hotwaxmedia.com On Sep 10, 2009, at 2:06 AM, Jacques Le Roux wrote: Hi Eric, I'm not totally sure, but as there are no other maincss.css file I guess so... Maybe there is something else to change, themes gurus ? Jacques From: "Eric DE MAULDE" Hi maincss.css file is into the webapp "flatgrey" So its relative path is "/flatgrey/maincss.css" But a lot of files include a wrong relative path : ${baseUrl}/images/maincss.css Files are : OrderNoticeEmail.ftl ContactListVerifyEmail.ftl /ecommerce/blog/main.ftl webpos/widget/CommonScreens.xml ... Is there an error ? Have I to create a patch ? Eric
_QUICK_REORDER_PRODUCT_QUANTITIES_ session error
Hi, In ProductDisplayWorker.java, the line 218 : BigDecimal nqint = quantity.divide(new BigDecimal(occs), new MathContext(10)); creates a product quantity with decimal, to set session with _QUICK_REORDER_PRODUCT_QUANTITIES_ This variable implements minireorderprods screen, a product can't have a quantity = 1.33 For me it's impossible to sell the tenth of a product. So, is there an error or ... Thanks Eric
Re: Webapp mount point internationalization
Thanks Carsten for your work points Eric From: "Carsten Schinzer" Well, if it is that important: A shop per language But then: Only one single default language is possible for the setup. I'd rather go with different URLs for your shop and mount ecommerce at root. The single defaultlocale issue will remain. Then, next idea, you could engage an apache with mod_rewrite to do a rewrite specifying the ?lang=xx parameter on the url to the /ecommerce, so the URLs go to Apache and are rewritten to be translated. Thats how my larger business customers (Online Travel Agencies) do this using a single application with multi lang. Or you mount ecommerce (which is pretty i18n ready allready as a term IMHO) at another i18n-term e.g. /shop. Hope this gives some ideas. Regards Carsten 2009/9/11 Eric DE MAULDE Hi, Does somebody know a possibility to internationalize (translate) a mount point for an ecommerce webapp ? It's better for SEO Thanks Eric -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany
Re: Email confirmation subject error : OFBiz Demo - Order Confirmation #WSCO10400 [To: of...@yahoo.com, Cc: null, Bcc: of...@yahoo.com]
It's a mistake This formed subject is available only if "mail.notification.redirectTo" is completed into general.properties Eric From: "Jacques Le Roux" As an example https://localhost:8443/catalog/control/EditProductStoreEmails?productStoreId=9000 Look at the top to identify each field (I agree it's not very clear, as there are no columns and we should better have a label on each line) Jacques From: "Eric DE MAULDE" Hi, When a customer orders an item and OFBiz sends an automatic order confirmation email, its subject is : "OFBiz Demo - Order Confirmation #WSCO10400 [To: of...@yahoo.com, Cc: null, Bcc: of...@yahoo.com]" I don't want to display into subject field : [To: ..., Cc: ..., Bcc: ...] is it a current problem ? How to correct it ? Thanks Eric
Email confirmation subject error : OFBiz Demo - Order Confirmation #WSCO10400 [To: of...@yahoo.com, Cc: null, Bcc: of...@yahoo.com]
Hi, When a customer orders an item and OFBiz sends an automatic order confirmation email, its subject is : "OFBiz Demo - Order Confirmation #WSCO10400 [To: of...@yahoo.com, Cc: null, Bcc: of...@yahoo.com]" I don't want to display into subject field : [To: ..., Cc: ..., Bcc: ...] is it a current problem ? How to correct it ? Thanks Eric
Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available
I try to answer : net.jawr.web.servlet.JawrServlet need properties to configure files compression and groupings. My own application has its own JS and CSS files and need too JS and CSS files from "images" application. I wasn't able to dynamically implement configuration So, I've created manually each properties file (into my "config" directory) in order to configure JawrServlet for images application and my own application. Eric From: "Jacques Le Roux" It was not my question : why did you need it ? Thanks Jacques From: "Eric DE MAULDE" this library, JAWR, allows to bundle and compress Javascript and CSS files ... images too in order to decrease page weight and files number So to increase its loading speed Or is there this service into OFBiz, already implemented ? Eric From: "Jacques Le Roux" Hi Eric, Why did you need it ? Jacques From: "Eric DE MAULDE" I've resolved the problem We have to write "jawr.properties" files with different names for each application, into config directory Ex. ecommerce-jawr.properties, images-jawr.properties Because just the first/last loaded "jawr.properties" file is taken into account Eric - Original Message - From: "Eric DE MAULDE" To: Sent: Tuesday, September 01, 2009 8:15 PM Subject: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available Hi, Has somebody tried to implement this library : JAWR to minify, bundle and compress Javascript, CSS and CSS Image files https://jawr.dev.java.net/ I try with "jawr.properties" file (just for javascript files) and implemented JavascriptServlet in web.xml Into Ecommerce application, it works well, with : "jawr.js.bundle.ecolib.id=/bundles/ecolib.js" "jawr.js.bundle.ecolib.mappings=/images/**" I get the file : http://mydomain/ecommerce/images/bundles/ecolib.js Into My Application, with : "jawr.js.bundle.mylib.id=/bundles/mylib.js" "jawr.js.bundle.mylib.mappings=/images/**" If I call http://mydomain/mymountpoint/images/bundles/mylib.js = The requested resource () is not available. But http://mydomain/mymountpoint/images/bundles/ecolib.js works well I need a lot your help Tank you so much in advance Eric
Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available
this library, JAWR, allows to bundle and compress Javascript and CSS files ... images too in order to decrease page weight and files number So to increase its loading speed Or is there this service into OFBiz, already implemented ? Eric From: "Jacques Le Roux" Hi Eric, Why did you need it ? Jacques From: "Eric DE MAULDE" I've resolved the problem We have to write "jawr.properties" files with different names for each application, into config directory Ex. ecommerce-jawr.properties, images-jawr.properties Because just the first/last loaded "jawr.properties" file is taken into account Eric - Original Message - From: "Eric DE MAULDE" To: Sent: Tuesday, September 01, 2009 8:15 PM Subject: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available Hi, Has somebody tried to implement this library : JAWR to minify, bundle and compress Javascript, CSS and CSS Image files https://jawr.dev.java.net/ I try with "jawr.properties" file (just for javascript files) and implemented JavascriptServlet in web.xml Into Ecommerce application, it works well, with : "jawr.js.bundle.ecolib.id=/bundles/ecolib.js" "jawr.js.bundle.ecolib.mappings=/images/**" I get the file : http://mydomain/ecommerce/images/bundles/ecolib.js Into My Application, with : "jawr.js.bundle.mylib.id=/bundles/mylib.js" "jawr.js.bundle.mylib.mappings=/images/**" If I call http://mydomain/mymountpoint/images/bundles/mylib.js = The requested resource () is not available. But http://mydomain/mymountpoint/images/bundles/ecolib.js works well I need a lot your help Tank you so much in advance Eric
Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available
I've resolved the problem We have to write "jawr.properties" files with different names for each application, into config directory Ex. ecommerce-jawr.properties, images-jawr.properties Because just the first/last loaded "jawr.properties" file is taken into account Eric - Original Message ----- From: "Eric DE MAULDE" To: Sent: Tuesday, September 01, 2009 8:15 PM Subject: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available Hi, Has somebody tried to implement this library : JAWR to minify, bundle and compress Javascript, CSS and CSS Image files https://jawr.dev.java.net/ I try with "jawr.properties" file (just for javascript files) and implemented JavascriptServlet in web.xml Into Ecommerce application, it works well, with : "jawr.js.bundle.ecolib.id=/bundles/ecolib.js" "jawr.js.bundle.ecolib.mappings=/images/**" I get the file : http://mydomain/ecommerce/images/bundles/ecolib.js Into My Application, with : "jawr.js.bundle.mylib.id=/bundles/mylib.js" "jawr.js.bundle.mylib.mappings=/images/**" If I call http://mydomain/mymountpoint/images/bundles/mylib.js = The requested resource () is not available. But http://mydomain/mymountpoint/images/bundles/ecolib.js works well I need a lot your help Tank you so much in advance Eric
JAWR - bundling and compression for Javascript and CSS : The requested resource is not available
Hi, Has somebody tried to implement this library : JAWR to minify, bundle and compress Javascript, CSS and CSS Image files https://jawr.dev.java.net/ I try with "jawr.properties" file (just for javascript files) and implemented JavascriptServlet in web.xml Into Ecommerce application, it works well, with : "jawr.js.bundle.ecolib.id=/bundles/ecolib.js" "jawr.js.bundle.ecolib.mappings=/images/**" I get the file : http://mydomain/ecommerce/images/bundles/ecolib.js Into My Application, with : "jawr.js.bundle.mylib.id=/bundles/mylib.js" "jawr.js.bundle.mylib.mappings=/images/**" If I call http://mydomain/mymountpoint/images/bundles/mylib.js = The requested resource () is not available. But http://mydomain/mymountpoint/images/bundles/ecolib.js works well I need a lot your help Tank you so much in advance Eric
Re: OFBiz doesn't start : Exception in thread "main" java.lang.IncompatibleClassChangeError
OFBiz starts Easy !!! Thank you very much Eric - Original Message - From: "Adrian Crum" To: Sent: Tuesday, August 18, 2009 6:07 PM Subject: Re: OFBiz doesn't start : Exception in thread "main" java.lang.IncompatibleClassChangeError Run ant clean, then ant build. -Adrian eric...@free.fr wrote: Hi, I've updated my custom OFBiz from the trunk, version 805338 Now, I can't start OFBiz I obtain this error into console.log : 2009-08-18 16:22:43,105 (main) [ DelegatorImpl.java:169:INFO ] Doing entity definition check... Exception in thread "main" java.lang.IncompatibleClassChangeError at org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:43) at org.ofbiz.entity.DelegatorImpl.(DelegatorImpl.java:171) at org.ofbiz.entity.DelegatorFactory.getGenericDelegator(DelegatorFactory.java:40) at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:172) at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190) at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66) at org.ofbiz.base.start.Start.initStartLoaders(Start.java:259) at org.ofbiz.base.start.Start.init(Start.java:97) at org.ofbiz.base.start.Start.main(Start.java:408) Do you have the same problem after an update ? Thanks for your feedback Eric
Rounding a price with no decimal
Hi, I can't round a price with no decimal ($29 instead of $29.0) to display with the Freemarker macro "ofbizCurrency" Here is a solution https://issues.apache.org/jira/browse/OFBIZ-2757 Eric
Re: How does product promos work.
Hi, For a product with variants, Price rules and promos have to apply a condition to a category and each variant has to be a member of this category Eric - Original Message - From: "rohit2006" To: Sent: Tuesday, July 21, 2009 9:15 AM Subject: How does product promos work. Hi, the default ofbiz svn has a product promo id 9020, which reads as 'Get 1 Free [WG-], between 15:00 - 18:00 at weekdays'. This basically means that a promotion will be active during specific days of the week and at specific times during those days. However i could not find it where these settings are set, for eg, where are the settings for days and hours of the day set. I am not sure if such functionality at all exists. If it does i will appreciate if someone can direct me towards that. Also i observed a potential buy in product pricing when promos are used in conjunction with virtaul products. For we have a virtual product A (with list price 100 for the top end) and A-1(with default price 100, to end) and A-2 (with default price 80, basic version) are variants of A. Now consider a case where you want to run a promo for variant A-2 and want to offer a discount of 10% on A-2. After setting the appropriate promotion settings under the tab "promos", the discount was applied to the list price of the virtual product and not to the variant product as should be the case. Setting a price rule also failed in this case. I guess the promos does not work properly with variant products with different prices. Please share your thoughts on this issue. Rohit -- View this message in context: http://www.nabble.com/How-does-product-promos-work.-tp24582836p24582836.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: prob. to call in build methods in ofbiz.
Hi, Add into your build.xml application file, the path to imported libraries, like : Eric - Original Message - From: "Abhishek Ray" To: Sent: Wednesday, June 24, 2009 9:15 AM Subject: prob. to call in build methods in ofbiz. Hi, I wrote a java class to integratet the openID in ofbiz.So I had to call some login method already in the ofbiz. But it is unable to to import the proper package and gives the error.. import org.ofbiz.securityext.login.LoginEvents; [javac15] ^ how can I come out of this problem.. thanks and regards, abhishek ray
Re: Product Category Name Priority
Hi, Example is with "Account Activation" category https://demo.ofbiz.org/catalog/control/EditCategoryContent?productCategoryId=FA-100 Content is multilingual But with this data configuration, it's unable to find this category with key word "account" or "activation" into the screen "Lookup Product Category" Could I try to change content priority for menu and browse category ... ? Eric - Original Message - From: "BJ Freeman" To: Sent: Thursday, June 18, 2009 4:21 PM Subject: Re: Product Category Name Priority I believe I follow you, first let me address the multilingual the would be a major design change to implement the content (not the content Category page) Component to allow to replace or work with the current entities and display pages. there are some examples in the content component Datafiles that show how to create this content, for products. i think it is a good effort if someone want to take it on. Eric DE MAULDE sent the following on 6/18/2009 2:13 AM: Hi, Priority between "Product Category Name" and "Product Category Content (Category Name)" Ecommerce menu and Browse categories display first "Product Category Name" and not "Product Category Content (Category Name)" if this one exists. If we have to select a category with "Lookup Product Category" popup, the field "category name" takes into consideration only "Product Category Name" data. If we want a multilingual menu (and Browse Categories), we don't have to save data into the "Product Category Name" field. Could you change "Product Category Content (Category Name)" priority for Ecommerce menu and Browse categories ? Eric -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Product Category Name Priority
Hi, Priority between "Product Category Name" and "Product Category Content (Category Name)" Ecommerce menu and Browse categories display first "Product Category Name" and not "Product Category Content (Category Name)" if this one exists. If we have to select a category with "Lookup Product Category" popup, the field "category name" takes into consideration only "Product Category Name" data. If we want a multilingual menu (and Browse Categories), we don't have to save data into the "Product Category Name" field. Could you change "Product Category Content (Category Name)" priority for Ecommerce menu and Browse categories ? Eric
uploaded Image Data Resource Type = Short Text ?
Hi, When I upload an image from product content (or category content) This image data resource type is "Short Text" and not "Image" Why ? Can I modify data resource type to "Image" ? Eric
Re: Filter product by price
Hi, Call 2 entities "ProductCategoryAndMember" and "ProductPrice" with EntityCondition and EntityOperator class ex : ... EntityCondition.makeCondition("price", EntityOperator.BETWEEN, UtilMisc.toList(50,100)); ... or into a screen in order to group your SQL result Eric - Original Message - From: "Abhishake Agarwal" To: Sent: Thursday, May 14, 2009 2:13 PM Subject: Filter product by price Hi, I want to filter product by price on category detail screen. e.g. If user clicks on link $50 - $100, Product between this two price range should only be viewable. Please let me know what can be the best way of implementing this. Regards, Abhishake
Re: Price = Percent of Average Cost
Solution : I have to create 2 actions 01 : Percent Of Average Cost = -100 02 : Percent Of Average Cost = 150 Into my own server I have to write 02 : Percent Of Average Cost = 100 Eric - Original Message - From: "Eric DE MAULDE" To: Sent: Wednesday, May 13, 2009 12:45 AM Subject: Price = Percent of Average Cost Hi, If I read documentation : "2.3.11.3.6.3 Percent of Average Cost Take the assigned percentage times the established Average Cost. For example, if you wanted to have 100 percent margin over the Average Cost, enter 200 for the value." I've added an average cost ($10) for the product "GZ-1000" in the demo server : https://demo.ofbiz.org/ecommerce/products/100/100/p_GZ-1000 And I've added a price rule for this product Percent Of Average Cost = 200 But the final price is $35 (listPrice + averageCost * 2) and not $20. I don't understand. I would like to manage price related to only its average cost Thanks Eric
Price = Percent of Average Cost
Hi, If I read documentation : "2.3.11.3.6.3 Percent of Average Cost Take the assigned percentage times the established Average Cost. For example, if you wanted to have 100 percent margin over the Average Cost, enter 200 for the value." I've added an average cost ($10) for the product "GZ-1000" in the demo server : https://demo.ofbiz.org/ecommerce/products/100/100/p_GZ-1000 And I've added a price rule for this product Percent Of Average Cost = 200 But the final price is $35 (listPrice + averageCost * 2) and not $20. I don't understand. I would like to manage price related to only its average cost Thanks Eric
Price rounding
Hi, I'm trying to round prices display, I can't get a price without decimal : <@ofbizCurrency amount priceMap.price?ceiling isoCode=priceMap.currencyUsed rounding=0/> with "rounding=1", I get 1 deciaml, but with "rounding=0", I get 2 decimals (currency=EUR, locale=fr) thanks Eric
Re: Force language from a different locale
Hi Adrian, I've configured start.properties with : ofbiz.locale.default=fr Always I have the same problem ! Do you have another idea ? Thanks Eric - Original Message - From: "Adrian Crum" To: Sent: Sunday, May 03, 2009 12:03 PM Subject: Re: Force language from a different locale The command-line option won't work, because OFBiz sets the default locale when it starts up. The default locale is configured in start.properties. -Adrian --- On Sun, 5/3/09, Eric DE MAULDE wrote: From: Eric DE MAULDE Subject: Re: Force language from a different locale To: user@ofbiz.apache.org, "Jacques Le Roux" Date: Sunday, May 3, 2009, 2:52 AM Hi Jacques, Where can I type "-Duser.language=fr" I tried into ${ofbiz dir}/rc.ofbiz JAVA_VMOPTIONS="-Xms1024M -Xmx1024M -Duser.language=fr" Always my ecommerce pages are in English with an English browser Thanks Eric P.S. : my server is under Debian Etch, with the cron file "rc.ofbiz.for.debian" ofbiz doesn't start when I boot my server. When I restart ofbiz with this file, it works. With the file "rc.ofbiz" it works in both case. - Original Message - From: "Jacques Le Roux" To: Sent: Friday, May 01, 2009 4:57 PM Subject: Re: Force language from a different locale > Hi Eric, > > You will have to force the JVM using -Duser.language=en (there is lso -Duser.country=US for instance) > This was used for another reason in OFBiz before (actually a kind of Sun's bug) > > Jacques > > From: "Eric DE MAULDE" > Hi, > > I would like to force default language into ecommerce application, > even if the browser is setted with another language and translations into the browser's language are available. > > For example, my browser is setted with English language, > I want to display pages into French (by default, without change language) > > Thanks > > > Eric > >
Re: Force language from a different locale
Hi Jacques, Where can I type "-Duser.language=fr" I tried into ${ofbiz dir}/rc.ofbiz JAVA_VMOPTIONS="-Xms1024M -Xmx1024M -Duser.language=fr" Always my ecommerce pages are in English with an English browser Thanks Eric P.S. : my server is under Debian Etch, with the cron file "rc.ofbiz.for.debian" ofbiz doesn't start when I boot my server. When I restart ofbiz with this file, it works. With the file "rc.ofbiz" it works in both case. - Original Message - From: "Jacques Le Roux" To: Sent: Friday, May 01, 2009 4:57 PM Subject: Re: Force language from a different locale Hi Eric, You will have to force the JVM using -Duser.language=en (there is lso -Duser.country=US for instance) This was used for another reason in OFBiz before (actually a kind of Sun's bug) Jacques From: "Eric DE MAULDE" Hi, I would like to force default language into ecommerce application, even if the browser is setted with another language and translations into the browser's language are available. For example, my browser is setted with English language, I want to display pages into French (by default, without change language) Thanks Eric
Force language from a different locale
Hi, I would like to force default language into ecommerce application, even if the browser is setted with another language and translations into the browser's language are available. For example, my browser is setted with English language, I want to display pages into French (by default, without change language) Thanks Eric
OFBiz Debug Settings
Hi, ${OFBIZ directory}/framework/base/config/debug.properties Is it the right "ft" into "print.verbose=ftrue" Eric
Re: Visual themes error
Resolved The problem was into USER_PREFERENCE table with user_login_id='admin' user_pref_type_id='VISUAL_THEME' user_pref_value='DEFAULT' I changed user_pref_value into by ex. "FLAT_GREY" Where does 'DEFAULT' come from : seed data ? Eric - Original Message - From: "Eric DE MAULDE" To: ; Sent: Saturday, April 25, 2009 3:34 AM Subject: Re: Visual themes error I ran this command several times but always this error appends thanks Eric - Original Message - From: "Adrian Crum" To: Sent: Saturday, April 25, 2009 2:34 AM Subject: Re: Visual themes error Make sure you run ant install-seed after updating from the trunk. -Adrian --- On Fri, 4/24/09, Eric DE MAULDE wrote: From: Eric DE MAULDE Subject: Visual themes error To: user@ofbiz.apache.org Date: Friday, April 24, 2009, 4:28 PM Hello, My development server works fine. But my production server (same official trunk version 768363) has a problem with visual themes. After I logged into any applications, the page doesn't have an header, footer and appbar : "Error rendering included template at location [component://common/webcommon/includes/header.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/header.ftl Error rendering included template at location [component://common/webcommon/includes/appbar.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/appbar.ftl" The error message is : org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/catalog/CommonScreens.xml#leftbar]: org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Get visual theme resources [file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Get visual theme resources [file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.]) Into ${ofbiz directory}/framework/common/widget/CommonScreens.xml, there are (I think) wrong default values : Because default files don't exist. I don't know why 2 servers runs differently with the same official trunk version (768363) Eric
Re: Permissions Issue with Web Customers
The user of the service "createAcctgTransAndEntries" has to be a member of one "ACCTG_ATX_CREATE" or "ACCTG_ATX_ADMIN" from security permission The related user is a parameter of this service. Eric - Original Message - From: "Alan" To: Sent: Saturday, April 25, 2009 12:03 PM Subject: Permissions Issue with Web Customers Hi We use the webapp but at the end of each sale we get the following error message. I suspect I have a configuration error somewhere to do with permissions being allocated to new customers but don't know where. Any help would be appreciated. Alan Halley 2009-04-21 13:05:16,751 (TP-Processor18) [ Log.java:100:INFO ] Checking for primary permission ACCTG_ATX_CREATE 2009-04-21 13:05:16,752 (TP-Processor18) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/acctgTransactionPermissionCheck] finished in [69] milliseconds 2009-04-21 13:05:16,753 (TP-Processor18) [ ServiceDispatcher.java:497:INFO ] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'ecommerce / createAcctgTransAndEntries' 2009-04-21 13:05:16,811 (TP-Processor18) [ ServiceDispatcher.java:500:ERROR] exception report -- Service [createAcctgTransAndEntries] threw an unexpected exception/error Exception: org.ofbiz.service.ServiceAuthException Message: Security Error: To run createAcctgTransAndEntries you must have the one of the following permissions: ACCTG_ATX_CREATE, ACCTG_ATX_ADMIN stack trace --- org.ofbiz.service.ServiceAuthException: Security Error: To run createAcctgTransAndEntries you must have the one of the following permissions: ACCTG_ATX_CREATE, ACCTG_ATX_ADMIN org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:908) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:342) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:245) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
Re: Visual themes error
I ran this command several times but always this error appends thanks Eric - Original Message - From: "Adrian Crum" To: Sent: Saturday, April 25, 2009 2:34 AM Subject: Re: Visual themes error Make sure you run ant install-seed after updating from the trunk. -Adrian --- On Fri, 4/24/09, Eric DE MAULDE wrote: From: Eric DE MAULDE Subject: Visual themes error To: user@ofbiz.apache.org Date: Friday, April 24, 2009, 4:28 PM Hello, My development server works fine. But my production server (same official trunk version 768363) has a problem with visual themes. After I logged into any applications, the page doesn't have an header, footer and appbar : "Error rendering included template at location [component://common/webcommon/includes/header.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/header.ftl Error rendering included template at location [component://common/webcommon/includes/appbar.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/appbar.ftl" The error message is : org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/catalog/CommonScreens.xml#leftbar]: org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Get visual theme resources [file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Get visual theme resources [file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.]) Into ${ofbiz directory}/framework/common/widget/CommonScreens.xml, there are (I think) wrong default values : Because default files don't exist. I don't know why 2 servers runs differently with the same official trunk version (768363) Eric
Visual themes error
Hello, My development server works fine. But my production server (same official trunk version 768363) has a problem with visual themes. After I logged into any applications, the page doesn't have an header, footer and appbar : "Error rendering included template at location [component://common/webcommon/includes/header.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/header.ftl Error rendering included template at location [component://common/webcommon/includes/appbar.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/appbar.ftl" The error message is : org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/catalog/CommonScreens.xml#leftbar]: org.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Get visual theme resources [file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.] (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Error in simple-method [Get visual theme resources [file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]: ; [Visual Theme resources not found.]) Into ${ofbiz directory}/framework/common/widget/CommonScreens.xml, there are (I think) wrong default values : Because default files don't exist. I don't know why 2 servers runs differently with the same official trunk version (768363) Eric
Re: ./ant run : doesn't compile new changes (Linux)
Thank you for your explanation. Eric - Original Message - From: "Jacopo Cappellato" To: Sent: Friday, April 10, 2009 1:20 PM Subject: Re: ./ant run : doesn't compile new changes (Linux) I'd suggest: ant build or ant (they are the same) or in one shot: ant build run Jacopo On Apr 10, 2009, at 4:45 PM, aswath narayana wrote: see run target in build.xml file ./ant run - It just starts OFBiz whereas ./ant run-install-seed target depends on the target build. so it builds new files. Then do ./ant run to start OFBiz. -Aswath On Fri, Apr 10, 2009 at 4:35 PM, Eric DE MAULDE wrote: Hi, If I execute (Linux) : "./ant run" It doesn't compile new files changes. I don't have any error. I have to execute, by example : "./ant run-install-seed" And my new changes are compiled Have you an idea ? Thanks Eric
./ant run : doesn't compile new changes (Linux)
Hi, If I execute (Linux) : "./ant run" It doesn't compile new files changes. I don't have any error. I have to execute, by example : "./ant run-install-seed" And my new changes are compiled Have you an idea ? Thanks Eric
Re: Specialcharacters
Hi, See http://www.nabble.com/Javascript-is-parsed-to-HTML-(Freemarker--)-to22041767.html#a22041767 Eric - Original Message - From: "Roel Veldhuizen" To: Sent: Tuesday, March 03, 2009 4:21 PM Subject: Specialcharacters Hi All, I just downloaded the last trunk version(749545) from the repository. Now, some, not all, specialcharacters are converted. Like bellow; OFBiz: Relatie Manager: Relatie(s) vinden
Re: Cart and same Product Id but different configuration
Hi, The problem is with the same configuration OPTION, when its component is virtual. *** Example with Product PIZZA and "select the toppings" question : _ I add to cart one with Pepper : type GREEN _ I add to cart one with Pepper : type HOT The cart displays only one reference fot these two different products. Eric - Original Message - From: "Jacques Le Roux" To: Sent: Sunday, February 15, 2009 3:05 PM Subject: Re: Cart and same Product Id but different configuration Hi Eric, No problem like that OOTB. You can check on alternate server where I have created an order WSCO10000 Jacques From: "Eric DE MAULDE" Hi, When a customer put into the cart different configurations from the same product (same product ID) The cart doesn't differenciate products. For the cart it's the same refence and line. Do you have the same problem ? An idea ? Thanks Eric
Re: multilingual Sub-content and alternate locale
I reproduce the error to create an alternate locale for Warning content, I type "en" for locale string : https://demo.hotwaxmedia.com/catalog/control/EditProductContent?productId=WG-9943 Eric - Original Message - From: "Jacques Le Roux" To: Sent: Saturday, February 21, 2009 4:20 PM Subject: Re: multilingual Sub-content and alternate locale Hi Eric, Could you please detail more the actions. I was able to create alternate locale simple texts (descriptions) in french (either fr and fr_FR) for a product from the ui without any problems. To see the result in eCommerce, I simply delete the std description in product content Jacques From: "Eric DE MAULDE" Hi, *** Error (in Demo server and revision 746495) To add an alternate locale in Catalog / Product / Content / Create Simple Text Content For Alternate Locale The error is : ... ERROR: insert or update on table "content_assoc" violates foreign key constraint "contentassc_to" Detail: Key (content_id_to)=([contentId=null]) is not present in table "content".))] calling service createContentAssoc in createSimpleTextContentForAlternateLocale Eric - Original Message - From: "Jacques Le Roux" To: Sent: Thursday, February 19, 2009 10:19 AM Subject: Re: multilingual Sub-content and alternate locale Follow the same scheme using subdivisions. It should work (never testesd) Jacques From: "masionas" Hi, I have another issue. I need localization within "en" locale. Example having two different descriptions for category in "en_US" and "en_GB". Below files operates with localeString as localeString="en", localeString="fr" etc. Vince Clark wrote: DemoProductI18nData.xml DemoProductCategoriesI18nData.xml -- View this message in context: http://www.nabble.com/multilingual-Sub-content-and-alternate-locale-tp20953155p22090347.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: multilingual Sub-content and alternate locale
Hi, *** Error (in Demo server and revision 746495) To add an alternate locale in Catalog / Product / Content / Create Simple Text Content For Alternate Locale The error is : ... ERROR: insert or update on table "content_assoc" violates foreign key constraint "contentassc_to" Detail: Key (content_id_to)=([contentId=null]) is not present in table "content".))] calling service createContentAssoc in createSimpleTextContentForAlternateLocale Eric - Original Message - From: "Jacques Le Roux" To: Sent: Thursday, February 19, 2009 10:19 AM Subject: Re: multilingual Sub-content and alternate locale Follow the same scheme using subdivisions. It should work (never testesd) Jacques From: "masionas" Hi, I have another issue. I need localization within "en" locale. Example having two different descriptions for category in "en_US" and "en_GB". Below files operates with localeString as localeString="en", localeString="fr" etc. Vince Clark wrote: DemoProductI18nData.xml DemoProductCategoriesI18nData.xml -- View this message in context: http://www.nabble.com/multilingual-Sub-content-and-alternate-locale-tp20953155p22090347.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Error : OFBiz server is unreachable - connection impossible
Hi I can't connect to the OFBiz trunk server from a French Internet connection Eric
Re: Javascript is parsed to HTML (Freemarker ?)
David, Thank you so much You have got me out of a spot Sorry, I'm not regular Eric - Original Message - From: "David E Jones" To: Sent: Monday, February 16, 2009 11:34 PM Subject: Re: Javascript is parsed to HTML (Freemarker ?) Have you been following the discussion on the mailing lists about the XSS/etc prevention efforts? As a general practice when you run into things like this you can usually find your answer pretty quickly by looking at commit logs, and by looking at code in OOTB OFBiz that does something similar to what you are trying to do. In this case, for example looking at the productdetail screen and the groovy and ftl files that it uses will give you an example of how to handle this now. The important thing to know is that now all String objects are automatically HTML encoded (using the OWASP ESAPI library). To avoid it, just use anything other than a String object. The normal way to do this is to create your script dynamically using a StringBuilder, and then just leave it as a StringBuilder instead of calling toString() on it before putting it in the context. Then it won't get HTML encoded... On a side note, I know that the OOTB code isn't the best example of this, but usually it is best to generate your JavaScript in the FTL file. If you are dynamically generating any sort of text a template file is usually the best tool to use and results in the cleanest and easiest to maintain code. And as a bonus, you'll avoid this encoding issue too. In fact, part of the decision to do this general encoding is to encourage the practice of using templates for what they are meant to be used for. Best of luck, -David On Feb 16, 2009, at 11:06 AM, Eric DE MAULDE wrote: A precision : *** Error comes from Groovy Because I have the problem only with generated Javascript script with Groovy. An idea ? Thanks Eric - Original Message - From: "Eric DE MAULDE" To: Sent: Monday, February 16, 2009 6:24 PM Subject: Javascript is parsed to HTML (Freemarker ?) Hi, I updated my working copy *** Now all javascript are parsed to HTML (and appear in screen, just for my own application, Ecommerce is OK) Script tags are ok. Ex. in source : <script language="JavaScript" type="text/javascript"><!-- Do you know where I can configure Freemarker ? In HTML head tag, some chars are parsed too. Eric
Re: Javascript is parsed to HTML (Freemarker ?)
A precision : *** Error comes from Groovy Because I have the problem only with generated Javascript script with Groovy. An idea ? Thanks Eric - Original Message - From: "Eric DE MAULDE" To: Sent: Monday, February 16, 2009 6:24 PM Subject: Javascript is parsed to HTML (Freemarker ?) Hi, I updated my working copy *** Now all javascript are parsed to HTML (and appear in screen, just for my own application, Ecommerce is OK) Script tags are ok. Ex. in source : <script language="JavaScript" type="text/javascript"><!-- Do you know where I can configure Freemarker ? In HTML head tag, some chars are parsed too. Eric
Javascript is parsed to HTML (Freemarker ?)
Hi, I updated my working copy *** Now all javascript are parsed to HTML (and appear in screen, just for my own application, Ecommerce is OK) Script tags are ok. Ex. in source :