Vince Clark wrote: > > Amit > > I am doing basically the same thing as you, and am a few steps ahead so > I will detail what I've done so far. Hopefully someone else will then > help me past my next hurdle. > > 1. Copied the ecommerce component (/applications/ecommerce) to > hot-deploy and renamed ecommerce to webstore (call it whatever you want, > I will use "webstore" for the remainder of this thread.) > 2. Change all the necessary references from ecommerce to your new > webstore name. Search and replace in eclipse works well for this. I > started with my new folder under hot-deploy and replaced from there. You > need to replace all references to: > component://ecommerce/webapp/ecommerce with the new path. Something > like: component://webstore/webapp/webstore > 3. Update the ofbiz-component.xml file in your new component. Change the > component name to webstore and change the webapp settings: > <webapp name="webstore" > title="eCommerce" > server="default-server" > location="webapp/webstore" > mount-point="/webstore" > app-bar-display="false"/> > > <webapp name="images" > title="Webstore Images" > server="default-server" > location="webapp/images" > mount-point="/webstore/images" > app-bar-display="false"/> > > Note that I added an "images" webapp to keep custom style sheets and > images separate from the default image location. > > There is a document set available on Sourceforge from the OpenTaps > project that does a very good job of explaining all of the changes that > need to be made in this process. I suggest you review it. Download the > zip file and look in the eCommerce Online Store folder. There is a doc > called "customizing your online store.doc". > > When I first tried accessing my webapp I received some errors. I found a > few other references that needed to be changed but the errors are good > indicators and will lead you to what is wrong. > > Once you have your new component established it is now time to start > making changes. > > In my particular case, I am retaining basically the same layout but want > to change most of the information and/or navigation in the left and > right columns of the eCommerce window. I used existing "screenlets" as a > point of reference and created additional ones for my custom use. > Examples are sidedeepcategory, keywordsearch, etc. You will find file > pairs like: > sidedeepcategory.bsh > sidedeepcategory.ftl > > Add your custom ftl to CatalogScreens.xml (under your widget directory) > Add and rearrange items on the eCommerce window in CommonScreens.xml > Each of these files contains plenty of good examples so I will not > elaborate. > > That's the basics. Now to the next step, customizing the information in > the screenlets. This is where I am stuck. As far as I can tell the > process is basically to execute the bean shell (bsh file) defined in the > <action> tag of the screen definition. This interacts with the service > layer and puts information in the request object so it is accessible to > the ftl file for rendering. > > I am struggling with understanding how beanshell puts the data in the > request. I see "context.put" and assume it happens here. I am also > struggling with what classes to use to get the information I need, and > how to pass these classes constraints to limit the result. > > Amit Gangadhar Mehetre wrote: >> Hello there, >> >> >> >> I am new to Ofbiz, n just started to know it..... >> >> >> >> I don't know how to create a totally new screen portlet in Ofbiz .... >> Also on how to add it to the existing ecommerce site...... >> >> >> >> Is there any configurations ...that needs to be changed..... I went >> through many xml files in the application.... But couldn't figure where >> exactly to make the changes,,,, >> >> >> >> Actually I have created one new web application and I want to integrate >> that in the Ofbiz ecommerce site.... >> >> >> >> >> >> Kindly..help me out with this,,,,, >> >> >> >> >> >> Regards >> >> Amit >> >> >> >> >> >> **************** CAUTION - Disclaimer ***************** >> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended >> solely for the use of the addressee(s). If you are not the intended >> recipient, please notify the sender by e-mail and delete the original >> message. Further, you are not to copy, disclose, or distribute this >> e-mail or its contents to any other person and any such actions are >> unlawful. This e-mail may contain viruses. Infosys has taken every >> reasonable precaution to minimize this risk, but is not liable for any >> damage you may sustain as a result of any virus in this e-mail. You >> should carry out your own virus checks before opening the e-mail or >> attachment. Infosys reserves the right to monitor and review the content >> of all messages sent to or from this e-mail address. Messages sent to or >> from this e-mail address may be stored on the Infosys e-mail system. >> ***INFOSYS******** End of Disclaimer ********INFOSYS*** >> > > -- > Vince Clark > Global Era > The freedom of open source. > (303) 493-6723 > (303) 455-2409 fax > [email protected] <mailto:[email protected]> > www.globalera.com > > ======================================= Hi Vince and Amit and all according to previous mails. i did not found any component under applications:(i.e folder under (/applications/ecommerce) i am not sure that it is folder otherwise anyother configuration it is in specialpurpose folder: (/applications/ecommerce please let me know asap jitender9717989688 -- View this message in context: http://n4.nabble.com/How-to-create-a-new-screen-portlet-n-integrate-that-in-Ofbiz-ecommerce-tp146912p277394.html Sent from the OFBiz - User mailing list archive at Nabble.com.
