Remote Debugging : 2 copies of OFBiz? How to make code changes?
Hello, Nobody seems to have asked this question before, so here it goes... First of all, I managed to get Eclipse to connect to a remote instance of OFBiz (by following the instructions in docs.ofbiz.org and used the Official debugging method.) The Debugger perspective is active, and shows that there are many OFBiz threads running. There was no Java Project in Eclipse at the moment. Since I need to set break points and make code changes, I am kinda stuck here. So, I created a new Java Project, "Link Source" to the folder containing the running instance of OFBiz. I can set break points, play with OFBiz in Safari, and Eclipse will stop the OFBiz at break points. However, upon checking the Eclipse Workspace I found another copy of OFBiz in it! The question is, have I done anything incorrectly here? I mean, if I make changes in Eclipse I don't think the changes are reflected in the original copy of OFBiz. Without the Java Project, there seems to be no way to set breakpoints and step thru the code... Comments please! -- View this message in context: http://www.nabble.com/Remote-Debugging-%3A-2-copies-of-OFBiz--How-to-make-code-changes--tp16367181p16367181.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Content type for Party Logo Image URL?
Hello Ritesh, Here I would like to add one more thing that you should check the way the image is being saved either in ImageDataResource or its being saved on local file system by giving "objectInfo" in "DataResource" entity. I think the content type will be dependent on that. Thanks and Regards -- Pranay Pandey Jyotsna wrote: ritesh, I think you can use content type "DOCUMENT" for images . Ritz123 wrote: Hi, Was looking to add Logo Image to the Manufacturer party using party content. Looking at the content types, I cant really tell what would be a good content type for Images? Out of the box types dont seem to match with image/binary content. Thanks
Re: Content type for Party Logo Image URL?
ritesh, I think you can use content type "DOCUMENT" for images . Ritz123 wrote: Hi, Was looking to add Logo Image to the Manufacturer party using party content. Looking at the content types, I cant really tell what would be a good content type for Images? Out of the box types dont seem to match with image/binary content. Thanks
Re: XSS exploit countermeasure? Filtering user input
there has been some input about this: https://issues.apache.org/jira/browse/OFBIZ-260 http://jira.undersunconsulting.com/browse/OFBIZ-559 https://issues.apache.org/jira/browse/OFBIZ-1193 https://issues.apache.org/jira/browse/OFBIZ-1476 Peter Felts sent the following on 3/28/2008 3:29 PM: > I'm creating my own application using java services. What is the best way to > filter out user input to avoid XSS and buffer-overruns (do you even need to > worry about buffer-overruns in Java?), etc? For example, if the user inputs > the string: > > alert('XSS vulnerability test'); > > In a form, what is the best way to prevent this script from being executed > (Once the form data is passed to a service of course)? Is there some > super-cool Java utility to validate HTML user input? > > > > > > > > > >
XSS exploit countermeasure? Filtering user input
I'm creating my own application using java services. What is the best way to filter out user input to avoid XSS and buffer-overruns (do you even need to worry about buffer-overruns in Java?), etc? For example, if the user inputs the string: alert('XSS vulnerability test'); In a form, what is the best way to prevent this script from being executed (Once the form data is passed to a service of course)? Is there some super-cool Java utility to validate HTML user input?
Re: Error while receiving inventory in inventory
Hello All, We are getting the same error, but getting it during completePacking or quickShipEntireOrder. Thanks, Evangelina Rupinder wrote: > > > Hi > While receiving an product item in inventory I am getting the > following > error: > > "Error:Error trying to begin transaction, could not process method: The > current transaction is marked for rollback, not beginning a new > transaction > and aborting current operation; the rollbackOnly was caused by: Service > [createAcctgTransAndEntries] threw an unexpected > exception/errororg.ofbiz.service.ServiceValidationException: The following > required parameter is missing: [OUT] > [createAcctgTransAndEntries.acctgTransId] (The following required > parameter > is missing: [OUT] [createAcctgTransAndEntries.acctgTransId]) calling > service > balanceInventoryItems in receiveInventoryProduct". > > I am getting this error after upating ofbiz through SVN 15 days ago. The > previous version, which was around one year old, didn't gave any such > error. > > Can somebody shed light on this. > -- > View this message in context: > http://www.nabble.com/Error-while-receiving-inventory-in-inventory-tp16348992p16348992.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Error-while-receiving-inventory-in-inventory-tp16349162p16359454.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Error while receiving inventory in inventory
We ARE using accounting, and are getting this error on pretty much anything we try to do that involves movement of inventory. Right now we are running into it trying to pack or ship an order. Commenting out secas_ledger.xml avoids the problem rather than solve it. I've seen multiple errors related to this issue, but they all seem to come down to createAcctgTransAndEntries.acctgTransId - Original Message - From: "Mridul Pathak" <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Friday, March 28, 2008 3:06:16 AM (GMT-0700) America/Chihuahua Subject: Re: Error while receiving inventory in inventory If you are not using the Accounting module much and specifically the GL section, than go to accounting --> ofbiz-component.xml and comment the entry for secas_ledger.xml in that file, restart the server and try again. I think this may solve your problem. On Fri, Mar 28, 2008 at 3:23 PM, Rupinder <[EMAIL PROTECTED]> wrote: > > Hi > While receiving an product item in inventory I am getting the following > error: > > "Error:Error trying to begin transaction, could not process method: The > current transaction is marked for rollback, not beginning a new > transaction > and aborting current operation; the rollbackOnly was caused by: Service > [createAcctgTransAndEntries] threw an unexpected > exception/errororg.ofbiz.service.ServiceValidationException: The following > required parameter is missing: [OUT] > [createAcctgTransAndEntries.acctgTransId] (The following required > parameter > is missing: [OUT] [createAcctgTransAndEntries.acctgTransId]) calling > service > balanceInventoryItems in receiveInventoryProduct". > > I am getting this error after upating ofbiz through SVN 15 days ago. The > previous version, which was around one year old, didn't gave any such > error. > > Can somebody shed light on this. > -- > View this message in context: > http://www.nabble.com/Error-while-receiving-inventory-in-inventory-tp16348992p16348992.html > > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED] __ Office : 509.855.4113 Mobile : +919425926892
Content type for Party Logo Image URL?
Hi, Was looking to add Logo Image to the Manufacturer party using party content. Looking at the content types, I cant really tell what would be a good content type for Images? Out of the box types dont seem to match with image/binary content. Thanks -- View this message in context: http://www.nabble.com/Content-type-for-Party-Logo-Image-URL--tp16357825p16357825.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: FLEXADMIN
Logins determine what you can access. https://localhost:8443/webtools/control/FindGeneric?entityName=SecurityGroupPermission will let you see how the securtitygroups relate to the security permissions. https://localhost:8443/partymgr/control/viewprofile?partyId=admin is a party for Admins it has many logins. of which flexadmin is one. this is how you can determine what any lognin has https://localhost:8443/partymgr/control/EditSecurityGroupPermissions?groupId=FLEXADMIN james yong sent the following on 3/28/2008 12:57 AM: > Hi All, > > May I know what is a flexadmin? > > Regards. > James
Re: Can't Approve Orders with service products
Hi Enrique,Please see my comments below. On Fri, Mar 28, 2008 at 5:46 AM, Enrique Ruibal <[EMAIL PROTECTED]> wrote: > > Hello Mridul. with regard to your comments below: > > >This is fairly simple. Any service or digital product is a non > >shippable item, so it can be fulfilled as soon as it has been ordered. > Just > >think about some membership product on an online store of a Club. If a > user > >orders such product, and provides the required billing information like > >Credit Card etc, then we can at the same moment fulfill his order by > >capturing the payment from his credit card, and therefore at same time > >invoice is generated and its status is updated to PAID as well. > >But this does not apply for general inventory products which are > >shippable items. First the order is created by the customer, which need > to > >be than approved by the CSR. You need to check if the product is > available > >in the inventory, then pick, pack and ship. This is a simple abstract of > >the complete process, may be I have missed out something. > > > Since the logic of fulfillment is different for such products, than > >obviously different business rules will be applied to them. > > I see your point, but what if: > > 1) A customer places a multi-line item order containing several finished > 'inventory goods' as well as some service items WITHIN THE SAME ORDER, > shouldn't ofbiz business logic be able to handle this nicely? I tried this out and was successful at that. I added one service product and one general inventory product and created an order for that. The digital Item got fulfilled when I created the order and the inventory item was in approves status. Only one invoice was generated for them. Now I quick shipped entire order and was again successful at that. The inventory product that I ordered was in completed status and the order as well. But the change I saw was that now there were two invoice for the same order, one for digital product and the other for inventory product. Didn't get any errors at all. I think this logic is handled pretty well in OFBiz. At this point I would like to ask you that are you using the latest version of OFBiz? > > 2) The CSR needs to place some service orders required by customers > without > an upfront payment, I mean in many cases there is no credit card or a > check > paid on advance, and this is a pretty common business situation too. I think all these situations are handled in OFBiz and you may need to explore it well. Go through the ProductStore entity and the Demo Data it contains using webtools. You can find this data in ecommerce/data/DemoProduct.xml as well. There you can find lots of fields which can be used to manage the Order Process. For example, there is a field autoApproveOrder which can be set to Y if you want to automatically approve the order when it is created. There are some fields to control invoicing too. You can use the perfect combination for you while defining your own ProductStore. Finally I would like to suggest you to follow the back end logic for the order processing and get a better understanding of what is happening there. Go through the requests, events called on these requests, eca's triggered on different service events, etc. This will take a lot of time, but I think that will help you to understand the process well and use it perfectly according to your requirements. > > > Please, let me know your advise on this.. > > -Enrique > > > > > > > -- > Thanks & Regards > Mridul Pathak > Hotwax Media > http://www.hotwaxmedia.com > [EMAIL PROTECTED] > __ > Office : 509.855.4113 > Mobile : +919425926892 > > > > -- > View this message in context: > http://www.nabble.com/Can%27t-Approve-Orders-with-service-products-tp16242722p16343111.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED] __ Office : 509.855.4113 Mobile : +919425926892
Re: Error while receiving inventory in inventory
If you are not using the Accounting module much and specifically the GL section, than go to accounting --> ofbiz-component.xml and comment the entry for secas_ledger.xml in that file, restart the server and try again. I think this may solve your problem. On Fri, Mar 28, 2008 at 3:23 PM, Rupinder <[EMAIL PROTECTED]> wrote: > > Hi >While receiving an product item in inventory I am getting the following > error: > > "Error:Error trying to begin transaction, could not process method: The > current transaction is marked for rollback, not beginning a new > transaction > and aborting current operation; the rollbackOnly was caused by: Service > [createAcctgTransAndEntries] threw an unexpected > exception/errororg.ofbiz.service.ServiceValidationException: The following > required parameter is missing: [OUT] > [createAcctgTransAndEntries.acctgTransId] (The following required > parameter > is missing: [OUT] [createAcctgTransAndEntries.acctgTransId]) calling > service > balanceInventoryItems in receiveInventoryProduct". > > I am getting this error after upating ofbiz through SVN 15 days ago. The > previous version, which was around one year old, didn't gave any such > error. > > Can somebody shed light on this. > -- > View this message in context: > http://www.nabble.com/Error-while-receiving-inventory-in-inventory-tp16348992p16348992.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED] __ Office : 509.855.4113 Mobile : +919425926892
Re: how to return the response directly?
Hi Ryan, that looks like a good approach... however you might have to be careful on the size of your session over time. I would be interested if you would like to share the code... I am looking at approaches of connecting to ofbiz via HTTP without exporting all the commands... In essence what you are doing with a bit more work could provide a REST interface to Ofbiz? or am I off track Thanks in advance.. Regards Mark On Thu, Mar 27, 2008 at 8:09 PM, Ryan Sweet <[EMAIL PROTECTED]> wrote: > > > On Thu, 27 Mar 2008, BJ Freeman wrote: > > > not sure why you can't pass it back thru the controller and specify the > > view you want to use. > > it would seem a lot less efforts and keep it simple. > > When you say client, are you speaking of a http client of some other. > > an http client (another app, not a browser). > > I think I got it worked out: > > I went ahead and changed my request handler to put the return values in > the session object, and return success/error and then built a ViewHandler > that gets the values from the session. > > Seems like extra lifting but maybe it will make sense to me later. > > thanks, > -Ryan > > > > > > > Ryan Sweet sent the following on 3/27/2008 10:25 AM: > >> > >> I want to be able to have the request handler pass the response from > the > >> event handler directly back to the client. In this case, the request > >> handler is just sending back simple strings. I'd like to be able to > >> either just pass these directly back to the client, or pass them > through > >> a StringViewHandler class if I have to have a view handler. > >> > >>> From going through RequestHandler it doesn't seem like >> type="none"> does what I want. > >> > >> In this particular case, I don't need freemarker templates or any other > >> munging of the response data, and so I'm reluctant to setup the normal > >> pile of views/templates. Is there a way in controller.xml to tell the > >> ControlServlet to just pass on the values spit out by the request > handler? > >> > >> If not, is there a way to setup the element such that name= > >> can match whatever is returned (ie default response if no match on name > >> is found)? > >> > >> Does that make sense? > >> > >> regards, > >> -Ryan > >> > >> > >> > > > > >
Error while receiving items in inventory..
Hi While receiving an product item in inventory I am getting the following error: "Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service [createAcctgTransAndEntries] threw an unexpected exception/errororg.ofbiz.service.ServiceValidationException: The following required parameter is missing: [OUT] [createAcctgTransAndEntries.acctgTransId] (The following required parameter is missing: [OUT] [createAcctgTransAndEntries.acctgTransId]) calling service balanceInventoryItems in receiveInventoryProduct". I am getting this error after upating ofbiz through SVN 15 days ago. The previous version, which was around one year old, didn't gave any such error. Can somebody shed light on this. -- View this message in context: http://www.nabble.com/Error-while-receiving-items-in-inventory..-tp16348996p16348996.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Error while receiving inventory in inventory
Hi While receiving an product item in inventory I am getting the following error: "Error:Error trying to begin transaction, could not process method: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service [createAcctgTransAndEntries] threw an unexpected exception/errororg.ofbiz.service.ServiceValidationException: The following required parameter is missing: [OUT] [createAcctgTransAndEntries.acctgTransId] (The following required parameter is missing: [OUT] [createAcctgTransAndEntries.acctgTransId]) calling service balanceInventoryItems in receiveInventoryProduct". I am getting this error after upating ofbiz through SVN 15 days ago. The previous version, which was around one year old, didn't gave any such error. Can somebody shed light on this. -- View this message in context: http://www.nabble.com/Error-while-receiving-inventory-in-inventory-tp16348992p16348992.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: FLEXADMIN
One of the user login of the party " Mr. THE PRIVILEGED ADMINISTRATOR" the others are admin 1 demoadmin 1 is for the POS Jacques From: "james yong" <[EMAIL PROTECTED]> Hi All, May I know what is a flexadmin? Regards. James -- View this message in context: http://www.nabble.com/FLEXADMIN-tp16348099p16348099.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: FLEXADMIN
James, 1) If we talk about flexadmin, than it is userLoginId for admin (Party). Go to the profile of this party and you can find it there. 2) It is a special userLoginId which is associated with a special SecurityGroup FLEXADMIN. 3) This SecurityGroup has a set of permissions, which allows (permits) the admin to access the application and perform View/Add/Edit/Delete operations. 4) The following description is given for this SecurityGroup in OFBiz itself --> Flexible Admin group, has all granular permissions. On Fri, Mar 28, 2008 at 2:27 PM, james yong <[EMAIL PROTECTED]> wrote: > > Hi All, > > May I know what is a flexadmin? > > Regards. > James > -- > View this message in context: > http://www.nabble.com/FLEXADMIN-tp16348099p16348099.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED] __ Office : 509.855.4113 Mobile : +919425926892
Re: FLEXADMIN
James, "flexadmin" is the user that has some less previledge then the "admin" user. You can see the name of user's that can access the application in the UserLogin entity. For getting more insight about the permission you can see the entities SecurityGroup,SecurityPermission,UserLoginSecurityGroup & SecurityGroupPermission. On Fri, Mar 28, 2008 at 4:57 AM, james yong <[EMAIL PROTECTED]> wrote: > > Hi All, > > May I know what is a flexadmin? > > Regards. > James > -- > View this message in context: > http://www.nabble.com/FLEXADMIN-tp16348099p16348099.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- Thanks & Regards Ashish Vijaywargiya +919893479711
FLEXADMIN
Hi All, May I know what is a flexadmin? Regards. James -- View this message in context: http://www.nabble.com/FLEXADMIN-tp16348099p16348099.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Product features, virtuals and variants: an alternative approach.
From: "Mridul Pathak" <[EMAIL PROTECTED]> Please see the comments below. On Thu, Mar 27, 2008 at 4:57 PM, Jacopo Cappellato < [EMAIL PROTECTED]> wrote: Hans, it looks good to me; please see my comment below: On Mar 26, 2008, at 9:02 PM, Hans Bakker wrote: > Good morning! (at least for me it is...) > > As I have written before I have a customer who has many variants > (>1000) > which do not really fit in categories or configurations and it has to > work with drop-shipments. > This alternative proposal has practically no limit on the number of > variants and is largely compatible with the current implementation. > > Please let me know for comments/questions and enhancements and what > the > opinion of the community is, and if this is a valuable addition to the > current system. > > Regards, > Hans > > > > Current function in OFBiz. > -- > The OFBiz system has a facility to allow the selection of variants > of a > basic product called a 'virtual' product, for example a t-shirt. This > shirt can have colors and sizes. These colors and sizes can be defined > in features types. Features relate to these feature types and specify > the actual sizes and colors. These features can be specified on the > virtual product as selectable features and as standard features on the > variant products. Not all feature combinations need to be there if > certain features combinations are not available or compatible. Only > feature combinations which result in existing variant products can be > selected when the product is ordered. > > Current implementation. > --- > The current OFBiz implementation builds a variant tree according the > features listed on the virtual product, checks if the related > variant is > present. When not found, the feature will not be in the tree and > cannot > be selected. This is fine upto about 200 variants. if more variants > are > present, the time to built the tree and the size become too big. The > service used is called 'getProductVariantTree' and is called from the > productdetail.bsh program. > > Proposed alternative approach. > -- > Instead of creating a variant tree, a feature tree should be created > using the specified features on the virtual product without checking > the > available variants. In order to be able to specify incompatibilities > between features the existing entity 'ProductFeatureIactn' should be > used where general (no productId) or specific (with productId) > dependencies or incompatibilities can be specified. > If a feature selection is done at order entry, the related variant > should be found which has all these standard features. If the variant > can be found, the processing is the same as it is now: this variant > will > be added to the shoppingcart using the variant prices. > If the variant cannot be found, the system will create the variant > automatically, using the prices in the to be created 'FeaturePrice' > entity similar to the 'ProductPrice' entity. The prices in this table > however are price adjustments to the price specified on the virtual > product. > > This new approach can be added to the existing implementation by > adding > a field to the product or allow more values in the 'isVirtual' field > and > change the processing accordingly. > We may also use a new product type for this. Or may be we can add another field (something like isVirtual) to the entity and use it in combination with isVariant in the same way it is done for Virtual and Variant. Another option can be to add a field in ProductStore or Product itself which can be used to select one of the two approaches, i.e. use Feature Tree or Variant Tree for the Virtual/Variant products (we can create enumeration for this field). This way the Virtual/Variant logic will remain untouched and you will just need to specify the approach to be used while dealing with such products. This sounds like an interesting approach indeed. Jacues Jacopo
Re: Product features, virtuals and variants: an alternative approach.
Please see the comments below. On Thu, Mar 27, 2008 at 4:57 PM, Jacopo Cappellato < [EMAIL PROTECTED]> wrote: > Hans, > > it looks good to me; please see my comment below: > > On Mar 26, 2008, at 9:02 PM, Hans Bakker wrote: > > Good morning! (at least for me it is...) > > > > As I have written before I have a customer who has many variants > > (>1000) > > which do not really fit in categories or configurations and it has to > > work with drop-shipments. > > This alternative proposal has practically no limit on the number of > > variants and is largely compatible with the current implementation. > > > > Please let me know for comments/questions and enhancements and what > > the > > opinion of the community is, and if this is a valuable addition to the > > current system. > > > > Regards, > > Hans > > > > > > > > Current function in OFBiz. > > -- > > The OFBiz system has a facility to allow the selection of variants > > of a > > basic product called a 'virtual' product, for example a t-shirt. This > > shirt can have colors and sizes. These colors and sizes can be defined > > in features types. Features relate to these feature types and specify > > the actual sizes and colors. These features can be specified on the > > virtual product as selectable features and as standard features on the > > variant products. Not all feature combinations need to be there if > > certain features combinations are not available or compatible. Only > > feature combinations which result in existing variant products can be > > selected when the product is ordered. > > > > Current implementation. > > --- > > The current OFBiz implementation builds a variant tree according the > > features listed on the virtual product, checks if the related > > variant is > > present. When not found, the feature will not be in the tree and > > cannot > > be selected. This is fine upto about 200 variants. if more variants > > are > > present, the time to built the tree and the size become too big. The > > service used is called 'getProductVariantTree' and is called from the > > productdetail.bsh program. > > > > Proposed alternative approach. > > -- > > Instead of creating a variant tree, a feature tree should be created > > using the specified features on the virtual product without checking > > the > > available variants. In order to be able to specify incompatibilities > > between features the existing entity 'ProductFeatureIactn' should be > > used where general (no productId) or specific (with productId) > > dependencies or incompatibilities can be specified. > > If a feature selection is done at order entry, the related variant > > should be found which has all these standard features. If the variant > > can be found, the processing is the same as it is now: this variant > > will > > be added to the shoppingcart using the variant prices. > > If the variant cannot be found, the system will create the variant > > automatically, using the prices in the to be created 'FeaturePrice' > > entity similar to the 'ProductPrice' entity. The prices in this table > > however are price adjustments to the price specified on the virtual > > product. > > > > This new approach can be added to the existing implementation by > > adding > > a field to the product or allow more values in the 'isVirtual' field > > and > > change the processing accordingly. > > > > We may also use a new product type for this. Or may be we can add another field (something like isVirtual) to the entity and use it in combination with isVariant in the same way it is done for Virtual and Variant. Another option can be to add a field in ProductStore or Product itself which can be used to select one of the two approaches, i.e. use Feature Tree or Variant Tree for the Virtual/Variant products (we can create enumeration for this field). This way the Virtual/Variant logic will remain untouched and you will just need to specify the approach to be used while dealing with such products. > > Jacopo > > > > -- > > AntWebsystems.com: Quality OFBiz services for competitive rates. > > > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED] __ Office : 509.855.4113 Mobile : +919425926892
RE: org.ofbiz.minerva.pool.jdbc.xa
Jacques Don't know why it took so long, but the source I wanted is in this old repository. Didn't think to look there. Thanks a load Skip -Original Message- From: Jacques Le Roux [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 11:39 PM To: user@ofbiz.apache.org Subject: Re: org.ofbiz.minerva.pool.jdbc.xa I sent this mail more than 7h ago, it has still not reached the ML, any ideas why ? Jacques From: "Jacques Le Roux" <[EMAIL PROTECTED]> To: Sent: Friday, March 28, 2008 12:00 AM > http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Source+Repository+and+Access#OF BizSourceRepositoryandAccess-TheOldOFBizSVNRepository > > IIRW, it comes from ObjectWeb but was patched for OFBiz > > Jacques > > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >> Anyone know where I can find the source for the >> org.ofbiz.minerva.pool.jdbc.xa and decendant packages? >> >> I find the class files in ofbiz-minerva.jar, but can't find the source >> anywhere. >> >> Skip >> No virus found in this outgoing message. >> Checked by AVG. >> Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008 >> 4:43 PM >> No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008 4:43 PM No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008 4:43 PM
Re: Product features, virtuals and variants: an alternative approach.
Thanks Hans for clarifying my doubts. This is really a nice functionality and will be very useful if added to OFBiz. On Fri, Mar 28, 2008 at 6:52 AM, Hans Bakker <[EMAIL PROTECTED]> wrote: > Hi Mridul. > > On Thu, 2008-03-27 at 20:21 +0530, Mridul Pathak wrote: > > . > > My question is, can't it be possible that a customer selects a set of > > features for which no variant exists and also the company does not sell > such > > a product? > > These incompabilities of features can be entered in a existing table > called 'ProductFeatureIactn'. We will add some screens to maintain this > table. > > Regards, > Hans > > > > > > > > > Current function in OFBiz. > > > -- > > > The OFBiz system has a facility to allow the selection of variants > > of a > > > basic product called a 'virtual' product, for example a t-shirt. > > This > > > shirt can have colors and sizes. These colors and sizes can be > > defined > > > in features types. Features relate to these feature types and > > specify > > > the actual sizes and colors. These features can be specified on the > > > virtual product as selectable features and as standard features on > > the > > > variant products. Not all feature combinations need to be there if > > > certain features combinations are not available or compatible. Only > > > feature combinations which result in existing variant products can > > be > > > selected when the product is ordered. > > > > > > Current implementation. > > > --- > > > The current OFBiz implementation builds a variant tree according the > > > features listed on the virtual product, checks if the related > > variant is > > > present. When not found, the feature will not be in the tree and > > cannot > > > be selected. This is fine upto about 200 variants. if more variants > > are > > > present, the time to built the tree and the size become too big. The > > > service used is called 'getProductVariantTree' and is called from > > the > > > productdetail.bsh program. > > > > > > Proposed alternative approach. > > > -- > > > Instead of creating a variant tree, a feature tree should be created > > > using the specified features on the virtual product without checking > > the > > > available variants. In order to be able to specify incompatibilities > > > between features the existing entity 'ProductFeatureIactn' should be > > > used where general (no productId) or specific (with productId) > > > dependencies or incompatibilities can be specified. > > > If a feature selection is done at order entry, the related variant > > > should be found which has all these standard features. If the > > variant > > > can be found, the processing is the same as it is now: this variant > > will > > > be added to the shoppingcart using the variant prices. > > > If the variant cannot be found, the system will create the variant > > > automatically, using the prices in the to be created 'FeaturePrice' > > > entity similar to the 'ProductPrice' entity. The prices in this > > table > > > however are price adjustments to the price specified on the virtual > > > product. > > > > > > This new approach can be added to the existing implementation by > > adding > > > a field to the product or allow more values in the 'isVirtual' field > > and > > > change the processing accordingly. > > > > > > -- > > > AntWebsystems.com: Quality OFBiz services for competitive rates. > > > > > > > > > > > -- > AntWebsystems.com: Quality OFBiz services for competitive rates. > > -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com [EMAIL PROTECTED] __ Office : 509.855.4113 Mobile : +919425926892
Moving Next and Previous through a ordered table/view using an ftl
I have create a Jira issue here: https://issues.apache.org/jira/browse/OFBIZ-1723 Included is code to allow you to create a ftl/widget based screen to allow users to move through an arbitrary ordered list using next and previous buttons. This code creates a self-referencing hash table. The entries are removed on a timer after 5 minutes and the class is garbage collected. It would be way nicer to be able to have a listener on the servlet controller so that when the user moved to a different url base, the container could kill itself. Alas, I can find no such interface and would love to hear from someone that knows of a way to do this. Fortunately, the unused overhead is under a hundred bytes and only hangs around for 5 minutes. This could be improved on very large tables on some DBs using a binary search in find() instead of the current sequential one. However, the last() call required to determine the size reads the entire table on some DBs, so I didn't think it prudent, and the time consumption on a 10k record table is more than adequately small in my testing. The code likely has some tabs in it and does have the opening { on the next line unlike the ofbiz guidelines, but it is still entirely functional as well as easier to me to read. Skip No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008 4:43 PM