Re: Integrate Ofbiz into Frontend-App

2017-07-08 Thread Mandeep Sidhu
Done already, pretty easy to setup.

On Jul 8, 2017 8:35 AM, "Divesh Dutta" 
wrote:

> Hi Mandeep,
>
> Thanks for replying. Is this something you already did or it's a basic idea
> which can be done?
>
> Thanks
> --
> Divesh Dutta
>
> On Mon, Jul 3, 2017 at 1:12 PM, Mandeep Sidhu 
> wrote:
>
> > Wrap around the core services by integrating something like RESTEasy as a
> > separate hot-deploy component, use swagger with codegen to generate stubs
> > using api specs file swagger.json.
> >
> > ~
> > Mandeep
> >
> > On Jul 3, 2017 12:08 AM, "Thomas Deniffel"  wrote:
> >
> > > Hello,
> > >
> > > we have an existing frontend. Now I was asked to integrate
> OFBiz-Services
> > > into this Frontend. The front end is entirely written in JavaScript (on
> > > Angular Basis), so REST would be the easiest solution. Is there any way
> > to
> > > export (all) Services as REST - may be a wrapper or something like
> this.
> > > What would you do in this situation? The only thing, the customer does
> > not
> > > want is HTML-Transfers.
> > >
> > > Best and thank you
> > >
> > > Thomas
> > >
> >
>


Re: Integrate Ofbiz into Frontend-App

2017-07-03 Thread Mandeep Sidhu
Wrap around the core services by integrating something like RESTEasy as a
separate hot-deploy component, use swagger with codegen to generate stubs
using api specs file swagger.json.

~
Mandeep

On Jul 3, 2017 12:08 AM, "Thomas Deniffel"  wrote:

> Hello,
>
> we have an existing frontend. Now I was asked to integrate OFBiz-Services
> into this Frontend. The front end is entirely written in JavaScript (on
> Angular Basis), so REST would be the easiest solution. Is there any way to
> export (all) Services as REST - may be a wrapper or something like this.
> What would you do in this situation? The only thing, the customer does not
> want is HTML-Transfers.
>
> Best and thank you
>
> Thomas
>


Re: How to configure multiple sellers for the same product

2016-10-12 Thread Mandeep Sidhu
Assign the supplier to the virtual product as you'd need that for the
invoicing/shipping workflow. Virtual product is just like a regular product
with isVirtual flag set to Y, it still has SupplierProduct entity
relationship so you need to associate your supplierPartyId with variant
product as well. I didn't use the SupplierProductFeature table for any kind
of association.

Regards,
Mandeep

On Wed, Oct 12, 2016 at 6:36 PM, sachin garg 
wrote:

> Hi Mandeep,
>
> I started working on your suggestion.
> Lets say a product has got variants (may come in 4 colors). So, I created a
> virtual product and created 4 variants for it. Now I want to associate two
> suppliers with this product as you suggested. I have a related query:
> Shall I assign a supplier to virtual product or variant product? If I
> assign to virtual then how can I configure which supplier provides which
> variant? There is a table supplier_product_feature but I am not sure how to
> configure and make use of the same.
>
>
> On Wed, Oct 12, 2016 at 10:28 PM, sachin garg 
> wrote:
>
> > I just wanted to clarify if there is a defined way already in ofbiz for
> > achieving marketplace config. I understand now that probably i will have
> to
> > tweak the code to achieve my objective. Thanks for giving some hint in
> this
> > direction ;)
> >
> > On Oct 12, 2016 10:01 PM, "Mandeep Sidhu" 
> > wrote:
> >
> >> I've a full fledged seller marketplace implemented over this :)
> >> https://seller.simbacart.com/sellercentral/c/home I am pretty sure it
> >> works, you'd have to extend SupplierProduct to track inventory though.
> >> For the pricing you need to configure appropriate SECAs to do auto
> >> adjustments, if you are looking at 100% OOTB solution I am afraid that's
> >> not the luxury you have here.
> >>
> >> Thanks,
> >> Mandeep
> >>
> >> On Wed, Oct 12, 2016 at 9:18 AM, sachin garg 
> >> wrote:
> >>
> >> > Hi Mandeep,
> >> >
> >> > Making use of SupplierTab won't be logically correct. Example: In a
> >> > marketplace, the price range of the item is determined by the minimum
> >> and
> >> > maximum price listed by the vendors against the same product. But
> >> pricing
> >> > in ofbiz doesn't depend on supplier pricing as different suppliers are
> >> > supposed to feed inventory to same vendor. If pricing from suppliers
> >> > increase then vendor will have to adjust the product pricing manually.
> >> But
> >> > in marketplace, the price must go up and down automatically.
> >> >
> >> > On Wed, Oct 12, 2016 at 8:02 PM, Mandeep Sidhu <
> >> mandeep1985s...@gmail.com>
> >> > wrote:
> >> >
> >> > > Use SupplierProduct tab instead, add each supplier with their own
> SKU
> >> and
> >> > > pricing. Also, make sure the product's inventory type is set to
> >> > > Dropshipment only, you would have to build couple of new ECAs to
> take
> >> > care
> >> > > of billing and email notifications. Additionally, some modification
> is
> >> > > required to the Dropshipment workflow if you want to support split
> >> > > shipment.
> >> > >
> >> > > Thanks,
> >> > > Mandeep
> >> > >
> >> > > On Wed, Oct 12, 2016 at 4:34 AM, sachin garg <
> sachingarg...@gmail.com
> >> >
> >> > > wrote:
> >> > >
> >> > > > Hi,
> >> > > >
> >> > > > I am trying to implement a market place using ofbiz on the lines
> of
> >> > > Amazon.
> >> > > > I am not sure how to configure multiple sellers for the same
> >> product? I
> >> > > > thought of creating each product as a virtual product and the
> >> variants
> >> > > > shall come from any seller. But then I will have to add a feature
> >> > > category
> >> > > > (say seller) and list down all the possible sellers to the virtual
> >> > > product
> >> > > > as "selectable". Is there a better way of doing it using ofbiz?
> >> > > >
> >> > >
> >> >
> >>
> >
>


Re: How to configure multiple sellers for the same product

2016-10-12 Thread Mandeep Sidhu
I've a full fledged seller marketplace implemented over this :)
https://seller.simbacart.com/sellercentral/c/home I am pretty sure it
works, you'd have to extend SupplierProduct to track inventory though.
For the pricing you need to configure appropriate SECAs to do auto
adjustments, if you are looking at 100% OOTB solution I am afraid that's
not the luxury you have here.

Thanks,
Mandeep

On Wed, Oct 12, 2016 at 9:18 AM, sachin garg 
wrote:

> Hi Mandeep,
>
> Making use of SupplierTab won't be logically correct. Example: In a
> marketplace, the price range of the item is determined by the minimum and
> maximum price listed by the vendors against the same product. But pricing
> in ofbiz doesn't depend on supplier pricing as different suppliers are
> supposed to feed inventory to same vendor. If pricing from suppliers
> increase then vendor will have to adjust the product pricing manually. But
> in marketplace, the price must go up and down automatically.
>
> On Wed, Oct 12, 2016 at 8:02 PM, Mandeep Sidhu 
> wrote:
>
> > Use SupplierProduct tab instead, add each supplier with their own SKU and
> > pricing. Also, make sure the product's inventory type is set to
> > Dropshipment only, you would have to build couple of new ECAs to take
> care
> > of billing and email notifications. Additionally, some modification is
> > required to the Dropshipment workflow if you want to support split
> > shipment.
> >
> > Thanks,
> > Mandeep
> >
> > On Wed, Oct 12, 2016 at 4:34 AM, sachin garg 
> > wrote:
> >
> > > Hi,
> > >
> > > I am trying to implement a market place using ofbiz on the lines of
> > Amazon.
> > > I am not sure how to configure multiple sellers for the same product? I
> > > thought of creating each product as a virtual product and the variants
> > > shall come from any seller. But then I will have to add a feature
> > category
> > > (say seller) and list down all the possible sellers to the virtual
> > product
> > > as "selectable". Is there a better way of doing it using ofbiz?
> > >
> >
>


Re: How to configure multiple sellers for the same product

2016-10-12 Thread Mandeep Sidhu
Use SupplierProduct tab instead, add each supplier with their own SKU and
pricing. Also, make sure the product's inventory type is set to
Dropshipment only, you would have to build couple of new ECAs to take care
of billing and email notifications. Additionally, some modification is
required to the Dropshipment workflow if you want to support split shipment.

Thanks,
Mandeep

On Wed, Oct 12, 2016 at 4:34 AM, sachin garg 
wrote:

> Hi,
>
> I am trying to implement a market place using ofbiz on the lines of Amazon.
> I am not sure how to configure multiple sellers for the same product? I
> thought of creating each product as a virtual product and the variants
> shall come from any seller. But then I will have to add a feature category
> (say seller) and list down all the possible sellers to the virtual product
> as "selectable". Is there a better way of doing it using ofbiz?
>


Re: Change URL

2015-06-22 Thread Mandeep Sidhu
Change the port in url.properties to 80 and set mount point of your
ecommerce component (ofbiz-component.xml) to "/".
port.http=80

For production deployments it's always better to use virtual hosts
configured in your apache HTTPD config file.

On Mon, Jun 22, 2015 at 1:38 PM, Tom Running  wrote:

> I need the ecommerce website to run on port 80 with a shorter URL.
>
> How to change this URL
>
> http://erp1.test.com:8080/ecommerce/control/main
>
> To
>
> http://erp1.test.com
>
> Permanently
>
>
> Thanks,
> -T
>


Re: Please Complete the OFBiz Documentation Survey

2014-09-22 Thread Mandeep Sidhu
Completed :).

On Mon, Sep 22, 2014 at 2:46 PM, Nicolas Malin <
malin.nico...@librenberry.net> wrote:

> Cool Sharan, I propage it to my local group :)
>
> And I complete the survey of course ;)
>
> Nicolas
>
> Le 22/09/2014 14:12, Sharan-F a écrit :
>
>  Hi Everyone
>>
>> I’ve put together a short survey that I hope will help give us a snapshot
>> of
>> the community profile and their use of the existing documentation.The
>> information gathered will be used to help us update and re-organise the
>> documentation in a way that will make it easier for people to use.
>>
>> I'll publish the results on this mailing list - which I think will be
>> useful
>> for everyone to see.
>>
>> So please feel free to complete the survey which can be found at the
>> following link.
>>
>> https://www.surveymonkey.com/s/TXD9DJF
>> 
>>
>> Please be aware that the Survey Monkey free account limits me to a maximum
>> of 100 responses per survey but once we reach that limit I think I'll be
>> able to launch another copy of the same survey to capture additional
>> responses. I think it's going to be interesting to see how many responses
>> we
>> get...
>>
>> Thanks
>> Sharan
>>
>> PS: Please feel free to circulate and communicate this survey request via
>> the OFBiz LinkedIn Groups, Twitter etc as we want to get as full coverage
>> as
>> possible.
>>
>>
>>
>>
>> --
>> View this message in context: http://ofbiz.135035.n4.nabble.
>> com/Please-Complete-the-OFBiz-Documentation-Survey-tp4655913.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
>


Re: MRP requirements recieving Items

2014-09-16 Thread Mandeep Sidhu
There's a store level setting that states "One Inventory Facility", see
what value is set there, if you've only one facility set it to Y, things
get a lot easier that way.

Regards,
Mandeep

On Tue, Sep 16, 2014 at 10:53 AM, jfrad...@styleline.com <
jfrad...@styleline.com> wrote:

> I did approve the P.O.
> It works fine if I hand enter a P.O.
> If I do it by entering a min qty and using MRP to generate requirements it
> appears to work ok until I have a approved P.O. I do not see the quick
> receive or receive.
> I debugged it and it does not have a list of warehouses.
>
> On my custom app in hot deploy I removed the drop down as I only have one
> facility, and I commented out the validation and I can do a quick receive
> and it appears to work.
>
> Since this is an issue with the last release, I thought I would see if any
> other folks had the same issue using the current 12 release with a P.O.
> generated from requirements.
>
> If so I can enter a Jirra.
>
>
>
> -
> Joel Fradkin
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/MRP-requirements-recieving-Items-tp4655264p4655309.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: Generic xml import & export functionality

2014-06-27 Thread Mandeep Sidhu
Entity Import and Entity Import Dir are two great tools in Ofbiz to achieve
that.

*Entity Import: *To import XML text
http://demo-stable-ofbiz.apache.org/webtools/control/EntityImport
*Entity Import Dir: *To import entity XML files loaded with data kept in a
directory relative to Ofbiz home directory
http://demo-stable-ofbiz.apache.org/webtools/control/EntityImportDir

Seed writer utilities are also available in the base framework to generate
Seed XML using GenericValue or Maps.


On Fri, Jun 27, 2014 at 2:14 PM, Mike  wrote:

> Maybe kettle.
>
> http://community.pentaho.com/projects/data-integration/
>
>
>
>
> On Fri, Jun 27, 2014 at 2:17 AM, Pierre Smits 
> wrote:
>
> > Hi all,
> >
> > I am looking for a generic XML import & export functionality in OFBiz,
> but
> > have a hard time finding it.
> >
> > Can you point me towards the right direction?
> >
> > Regards,
> >
> > Pierre Smits
> >
> > *ORRTIZ.COM *
> > Services & Solutions for Cloud-
> > Based Manufacturing, Professional
> > Services and Retail & Trade
> > http://www.orrtiz.com
> >
>


Re: OFBiz Data Model book

2014-05-28 Thread Mandeep Sidhu
Awesome...this is so very useful. Thanks for sharing Paul.

How did you find it?

Thanks,
Mandeep


On Wed, May 28, 2014 at 1:59 PM, Paul Mandeltort  wrote:

> Hey all, was going through my docs and found this little gem that I really
> wish I had found earlier in my OFBiz journey:
> https://cwiki.apache.org/confluence/display/OFBTECH/Data+Model+Diagrams
>
> I printed up a few copies of 11x17in double-sided and keep it by my desk.
> It’s incredibly useful when trying to pick apart/understand a new part of
> OFBiz I haven’t worked with before.
>
> —P
> Paul Mandeltort - pman...@gmail.com
>
>


Re: Offbiz Ecommarce

2014-05-19 Thread Mandeep Sidhu
You've three 'm' in your url, correct would be
http://192.168.1.10:8080/ecommerce 


On Mon, May 19, 2014 at 11:11 PM, pushkar sawant
wrote:

> Hi All,
>
> I am trying to access eCommerce page from link -
>  http://192.168.1.10:8080/ecommmerce
>
> But it gives me attached error massage,please help me sort out this.
>
> Note - My Apache Tomcat7 is also working on same 8080 port.
>
> Thanks
> Pushkar s
>


Re: Actionable tasks of the week - volunteers?

2014-03-22 Thread Mandeep Sidhu
My apologies, seems I've accidentally clicked on the provide patch button
for the below issue.
https://issues.apache.org/jira/browse/OFBIZ-5589

Kindly ignore, I've started working on this issue, will provide the patch
files once I've them ready and tested.

Thanks,
Mandeep


On Fri, Mar 21, 2014 at 2:10 AM, Nicolas Malin <
malin.nico...@librenberry.net> wrote:

> Thanks Rong,
>
> I will check this issue this sunday
>
> Nicolas
>
> Le 21/03/2014 08:41, Rong Nguyen a écrit :
>
>  Hi Jacopo,
>> I have just reformatted  Bug-
>>    patch from git to
>> svn.
>> Sorry for my mistake!
>>
>>
>>
>> -
>> Rong Nguyen
>>
>> Olbius JSC
>> Deliver highest business value
>> http://www.olbius.com/
>> --
>> View this message in context: http://ofbiz.135035.n4.nabble.
>> com/Actionable-tasks-of-the-week-volunteers-tp4649590p4649627.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
>


Re: Actionable tasks of the week - volunteers?

2014-03-20 Thread Mandeep Sidhu
I'd like to take up the first two issues to begin with. Unfortunately I am
little confused with the documentation you shared earlier as to how I can
become a committer.

Would a patch work in this case? Or I need to be on the committers list?

Let me know.

Thanks,
Mandeep


On Thu, Mar 20, 2014 at 10:01 AM, Jacopo Cappellato <
jacopo.cappell...@hotwaxmedia.com> wrote:

> In order to encourage the participation of the community into the
> development of OFBiz and specifically in the resolution of tickets filed in
> Jira, I would like to try this experiment.
>
> From time to time I will review a series of tickets, select the ones that
> look not too complex, actionable but still need some work, I will do a
> preliminary research and study and will provide some directions/hints for a
> resolution; then I will send an email (this email) with the list of
> tickets, looking for volunteers to try to fix them.
> If you want to give it a try, just assign the ticket to yourself and start
> playing with it. I will then take care of reviewing the work and committing
> it to the official repository (of course recognizing merit to the author in
> the commit log).
>
> If the experiment will work other committers may want to do the same in
> order to process more tickets from our backlog.
>
> Here is the first batch of tasks that I have reviewed:
>
> https://issues.apache.org/jira/browse/OFBIZ-5589 (see my analysis in the
> comment, create a patch with the suggested enhancements)
> https://issues.apache.org/jira/browse/OFBIZ-5590 (try to get some more
> info from the reporter and then probably resolve as "not a problem")
> https://issues.apache.org/jira/browse/OFBIZ-5551 (get more information
> from the reporter - see my questions - and try to recreate the issue
> gathering more details)
> https://issues.apache.org/jira/browse/OFBIZ-5543 (see my comments: the
> bug has been reported in 11.04; it works in the trunk; try to recreate in
> 11.04 and then identify the oldest branch where it works and try to
> backport the fix)
> https://issues.apache.org/jira/browse/OFBIZ-5559 (the patch available
> should be good for the trunk but it would be great to have a deeper review
> before its committed)
> https://issues.apache.org/jira/browse/OFBIZ- (recreate the error,
> review and test the patch, convert it from git to svn patch)
> https://issues.apache.org/jira/browse/OFBIZ-5553 (review and test the
> patch that converts an ftl into widgets; is the new version functionally
> equivalent? is the code well formatted and written?)
>
> Thanks in advance,
>
> Jacopo
>
>


Re: Entity Find Entity Condition Case sensitive

2014-03-17 Thread Mandeep Sidhu
This should do the trick;

EntityCondition.makeCondition(EntityFunction.UPPER_FIELD("supplierProductId"),
EntityOperator.LIKE, EntityFunction.UPPER(((String)
testCondition).toUpperCase())

Regards,
Mandeep Sidhu
www.simbacart.com
( Ofbiz based )



On Mon, Mar 17, 2014 at 7:25 AM, Robert Gan  wrote:

> Hey guys,
>
> I just have a short question:
> How can I make an entiy find request which is not case sensitive.
>
> My current request (not case sensitive is like):
> condList.add(EntityCondition.makeCondition("supplierProductId",
> EntityOperator.LIKE, "%"+testCondition+"%");
> ...
> ...
> EntityCondition condition = EntityCondition.makeCondition(condList,
> EntityOperator.AND);
> List test = delegator.findList("SupplierProduct", condition,
> UtilMisc.toSet("productId"), null, null, false);
>
> how can I include the case sensitive option?
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Entity-Find-Entity-Condition-Case-sensitive-tp4649374.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: Help on testing, reviewing patches before committing

2014-03-08 Thread Mandeep Sidhu
Can I be added to the list of committers please? I'd like to contribute
back.

Thanks,
Mandeep


On Sat, Mar 8, 2014 at 1:41 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Please re-read my initial question. I was not talking about the how (task)
> but the why (goal)
>
> Jacques
>
> Le 07/03/2014 10:23, Pierre Smits a écrit :
>
>  Jacques,
>>
>> With a consistent reference to the person providing the contribution in
>> commits it would be easy to capture such info. See here
>> http://www.apache.org/dev/committers.html#applying-patches
>>
>> Regards,
>>
>> Pierre Smits
>>
>> *ORRTIZ.COM *
>> Services & Solutions for Cloud-
>> Based Manufacturing, Professional
>> Services and Retail & Trade
>> http://www.orrtiz.com
>>
>>
>> On Wed, Mar 5, 2014 at 4:20 PM, Jacques Le Roux <
>> jacques.le.r...@les7arts.com> wrote:
>>
>>  Le 05/03/2014 15:52, Pierre Smits a écrit :
>>>
>>>   Jacques,
>>>
 What kind of effort are you talking about?

  You said:
>>>
>>>   The ASF has instruments available to identify who contributed on
>>> commits
>>>
 (based on texts in the commits). This can be used to do some analysis
> and
> reporting.
>
>  Does this mean that you would like to use these tools for something
>>> related to contributions?
>>>
>>> Jacques
>>>
>>>
>>>  Regards,

 Pierre Smits

 *ORRTIZ.COM *
 Services & Solutions for Cloud-
 Based Manufacturing, Professional
 Services and Retail & Trade
 http://www.orrtiz.com





Re: General login page for all users?

2014-02-07 Thread Mandeep Sidhu
For all the backend applications the single sign on file is located at the
below location.
framework/common/webcommon/login.ftl

If you want to include this sign on in any of your apps all you need to do
is include the below controller entry in your apps *controller.xml *file
which is mostly located under the WEB-INF directory for e.g.
applications/marketing/webapp/marketing/WEB-INF/controller.xml

#Entry for single sign on in any controller.xml


Regards,
Mandeep
www.simbacart.com
(Ofbiz based)


On Fri, Feb 7, 2014 at 6:59 PM, apf  wrote:

> That's extremely helpful for ecommerce login, thank you. But I am looking
> to
> do this for the back-end applications login.
>
>
> Mandeep Sidhu wrote
> > There are two different login flows actually. Single sign on is for all
> > back end applications (AR/AP/Accounting/Catalog etc.). For the front end
> > store the login is handled in the ecommerce app located at
> > speciapurpose/ecommerce/webapp/ecommerce/login.ftl
> >
> > To change the front end store's look and feel you'll have to change files
> > under ecommerce app.
> >
> > Regards,
> > Mandeep
> > www.simbacart.com
> > (Ofbiz based)
> >
> >
> > On Fri, Feb 7, 2014 at 6:40 PM, apf <
>
> > alex.paredes.flores@
>
> > > wrote:
> >
> >> I have a fresh Ofbiz install, no hot-deploy apps. I'm not looking to
> >> change
> >> the looks, just get the "single sign on" working as you said. If it's
> >> well
> >> implemented, how can I setup a page for all users to login from there
> >> successfully? Thanks.
> >>
> >>
> >> Mandeep Sidhu wrote
> >> > I think single sign on is well implemented in ofbiz. If you got a
> >> > hot-deploy app, don't add an entry to handle login. The controller
> will
> >> > automatically handle it.
> >> >
> >> > If you want to customize the login page to give a look and feel of
> your
> >> > org, which I did as well you need to modify the file at the following
> >> > location.
> >> > framework\common\webcommon\login.ftl
> >> >
> >> > All the users will be presented with this login page then.
> >> >
> >> > Hope this helps.
> >> >
> >> > Regards,
> >> > Mandeep
> >> > www.simbacart.com
> >> > (ofbiz based)
> >> >
> >> >
> >> > On Fri, Feb 7, 2014 at 5:15 PM, apf <
> >>
> >> > alex.paredes.flores@
> >>
> >> > > wrote:
> >> >
> >> >> I can't seem to find info on how to go about creating a custom "home"
> >> >> page
> >> >> or
> >> >> login form. Experienced web developer here, but new to Ofbiz. Point
> me
> >> in
> >> >> the right direction? Google/archives aren't showing anything about
> >> this
> >> >> topic.
> >> >>
> >> >>
> >> >> Adrian Crum-3 wrote
> >> >> > A common solution is to create a custom "home" page that all users
> >> log
> >> >> > into.
> >> >> >
> >> >> > Adrian Crum
> >> >> > Sandglass Software
> >> >> > www.sandglass-software.com
> >> >> >
> >> >> > On 2/7/2014 3:26 PM, apf wrote:
> >> >> >> Thanks for clarifying that. I'd be more than glad to share my
> >> >> solution,
> >> >> >> once
> >> >> >> I come up with one...
> >> >> >>
> >> >> >> So if I understood correctly, Ofbiz login process requires a user
> >> to
> >> >> go
> >> >> >> to
> >> >> >> the specific URL of the application they have access to, otherwise
> >> >> they
> >> >> >> can't log in. And there is no common login page that exists, which
> >> can
> >> >> >> send
> >> >> >> the user to the correct URL after logging in, or display a page
> >> which
> >> >> >> shows
> >> >> >> the apps the have access to.
> >> >> >>
> >> >> >> Best Regards,
> >> >> >> AP
> >> >> >>
> >> >> >>
> >> >> >> Pierre Smits wrote
> >> >> >>> Alex,
> >> >> >

Re: General login page for all users?

2014-02-07 Thread Mandeep Sidhu
There are two different login flows actually. Single sign on is for all
back end applications (AR/AP/Accounting/Catalog etc.). For the front end
store the login is handled in the ecommerce app located at
speciapurpose/ecommerce/webapp/ecommerce/login.ftl

To change the front end store's look and feel you'll have to change files
under ecommerce app.

Regards,
Mandeep
www.simbacart.com
(Ofbiz based)


On Fri, Feb 7, 2014 at 6:40 PM, apf  wrote:

> I have a fresh Ofbiz install, no hot-deploy apps. I'm not looking to change
> the looks, just get the "single sign on" working as you said. If it's well
> implemented, how can I setup a page for all users to login from there
> successfully? Thanks.
>
>
> Mandeep Sidhu wrote
> > I think single sign on is well implemented in ofbiz. If you got a
> > hot-deploy app, don't add an entry to handle login. The controller will
> > automatically handle it.
> >
> > If you want to customize the login page to give a look and feel of your
> > org, which I did as well you need to modify the file at the following
> > location.
> > framework\common\webcommon\login.ftl
> >
> > All the users will be presented with this login page then.
> >
> > Hope this helps.
> >
> > Regards,
> > Mandeep
> > www.simbacart.com
> > (ofbiz based)
> >
> >
> > On Fri, Feb 7, 2014 at 5:15 PM, apf <
>
> > alex.paredes.flores@
>
> > > wrote:
> >
> >> I can't seem to find info on how to go about creating a custom "home"
> >> page
> >> or
> >> login form. Experienced web developer here, but new to Ofbiz. Point me
> in
> >> the right direction? Google/archives aren't showing anything about this
> >> topic.
> >>
> >>
> >> Adrian Crum-3 wrote
> >> > A common solution is to create a custom "home" page that all users log
> >> > into.
> >> >
> >> > Adrian Crum
> >> > Sandglass Software
> >> > www.sandglass-software.com
> >> >
> >> > On 2/7/2014 3:26 PM, apf wrote:
> >> >> Thanks for clarifying that. I'd be more than glad to share my
> >> solution,
> >> >> once
> >> >> I come up with one...
> >> >>
> >> >> So if I understood correctly, Ofbiz login process requires a user to
> >> go
> >> >> to
> >> >> the specific URL of the application they have access to, otherwise
> >> they
> >> >> can't log in. And there is no common login page that exists, which
> can
> >> >> send
> >> >> the user to the correct URL after logging in, or display a page which
> >> >> shows
> >> >> the apps the have access to.
> >> >>
> >> >> Best Regards,
> >> >> AP
> >> >>
> >> >>
> >> >> Pierre Smits wrote
> >> >>> Alex,
> >> >>>
> >> >>> Opentaps is not OFBiz, OFBiz is not Opentaps. If the were one and
> the
> >> >>> same
> >> >>> the login would be the same.
> >> >>>
> >> >>> Access to applications is determined by the permissions a user has.
> >> >>> Unfortunately, there is not one application that will serve a a
> >> >>> placeholder
> >> >>> for login and logout. I you feel up to it, please share your
> >> solution.
> >> >>>
> >> >>> Regards,
> >> >>>
> >> >>> Pierre Smits
> >> >>>
> >> >>> *ORRTIZ.COM <http://www.orrtiz.com>*
> >> >>> Services & Solutions for Cloud-
> >> >>> Based Manufacturing, Professional
> >> >>> Services and Retail & Trade
> >> >>> http://www.orrtiz.com
> >> >>>
> >> >>>
> >> >>> On Sat, Feb 8, 2014 at 12:04 AM, apf <
> >> >>
> >> >>> alex.paredes.flores@
> >> >>
> >> >>> > wrote:
> >> >>>
> >> >>>> Hi, thanks for the reply. I'm aware those links exist, but my
> >> question
> >> >>>> is
> >> >>>> if
> >> >>>> there is a page that allows all users to login regardless of what
> >> >>>> applications they have access to? And once logged in, show them
> only
> >> >>>> the
> >> >>>> apps they have access to? This is the login process for Opentaps,
> >> just
> >> >>>> wondering how to achieve this in Ofbiz.
> >> >>>>
> >> >>>> Kind Regards,
> >> >>>> AP
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>> --
> >> >>>> View this message in context:
> >> >>>>
> >>
> http://ofbiz.135035.n4.nabble.com/General-login-page-for-all-users-tp4648156p4648159.html
> >> >>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >> >>>>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://ofbiz.135035.n4.nabble.com/General-login-page-for-all-users-tp4648156p4648161.html
> >> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://ofbiz.135035.n4.nabble.com/General-login-page-for-all-users-tp4648156p4648163.html
> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >>
>
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/General-login-page-for-all-users-tp4648156p4648165.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: General login page for all users?

2014-02-07 Thread Mandeep Sidhu
I think single sign on is well implemented in ofbiz. If you got a
hot-deploy app, don't add an entry to handle login. The controller will
automatically handle it.

If you want to customize the login page to give a look and feel of your
org, which I did as well you need to modify the file at the following
location.
framework\common\webcommon\login.ftl

All the users will be presented with this login page then.

Hope this helps.

Regards,
Mandeep
www.simbacart.com
(ofbiz based)


On Fri, Feb 7, 2014 at 5:15 PM, apf  wrote:

> I can't seem to find info on how to go about creating a custom "home" page
> or
> login form. Experienced web developer here, but new to Ofbiz. Point me in
> the right direction? Google/archives aren't showing anything about this
> topic.
>
>
> Adrian Crum-3 wrote
> > A common solution is to create a custom "home" page that all users log
> > into.
> >
> > Adrian Crum
> > Sandglass Software
> > www.sandglass-software.com
> >
> > On 2/7/2014 3:26 PM, apf wrote:
> >> Thanks for clarifying that. I'd be more than glad to share my solution,
> >> once
> >> I come up with one...
> >>
> >> So if I understood correctly, Ofbiz login process requires a user to go
> >> to
> >> the specific URL of the application they have access to, otherwise they
> >> can't log in. And there is no common login page that exists, which can
> >> send
> >> the user to the correct URL after logging in, or display a page which
> >> shows
> >> the apps the have access to.
> >>
> >> Best Regards,
> >> AP
> >>
> >>
> >> Pierre Smits wrote
> >>> Alex,
> >>>
> >>> Opentaps is not OFBiz, OFBiz is not Opentaps. If the were one and the
> >>> same
> >>> the login would be the same.
> >>>
> >>> Access to applications is determined by the permissions a user has.
> >>> Unfortunately, there is not one application that will serve a a
> >>> placeholder
> >>> for login and logout. I you feel up to it, please share your solution.
> >>>
> >>> Regards,
> >>>
> >>> Pierre Smits
> >>>
> >>> *ORRTIZ.COM *
> >>> Services & Solutions for Cloud-
> >>> Based Manufacturing, Professional
> >>> Services and Retail & Trade
> >>> http://www.orrtiz.com
> >>>
> >>>
> >>> On Sat, Feb 8, 2014 at 12:04 AM, apf <
> >>
> >>> alex.paredes.flores@
> >>
> >>> > wrote:
> >>>
>  Hi, thanks for the reply. I'm aware those links exist, but my question
>  is
>  if
>  there is a page that allows all users to login regardless of what
>  applications they have access to? And once logged in, show them only
>  the
>  apps they have access to? This is the login process for Opentaps, just
>  wondering how to achieve this in Ofbiz.
> 
>  Kind Regards,
>  AP
> 
> 
> 
>  --
>  View this message in context:
> 
> http://ofbiz.135035.n4.nabble.com/General-login-page-for-all-users-tp4648156p4648159.html
>  Sent from the OFBiz - User mailing list archive at Nabble.com.
> 
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://ofbiz.135035.n4.nabble.com/General-login-page-for-all-users-tp4648156p4648161.html
> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >>
>
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/General-login-page-for-all-users-tp4648156p4648163.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: Axis webservice in ofbiz

2013-11-29 Thread Mandeep Sidhu
Inside any service*.xml file use the attribute *export *with value as *true
*to expose the given service as a SOAP based service. Default value for
this attribute is *false*. Sample entry below;

*before export="true"*

*after export="true"*
*

All exposed services are listed at the below url
https:///webtools/control/ServiceList

Regards,
Mandeep
www.simbacart.com



On Fri, Nov 29, 2013 at 6:20 PM, jignesh  wrote:

> Hi All,
>
> How to expose given service as SOAP based webservice?
>
>
> Regards,
>
> JSM
>


Re: A task management component based on OFBiz and ExtJS Sencha

2013-09-10 Thread Mandeep Sidhu
Perhaps because Dojo and ExtJS provide very rich UI components and are
recommended for one page applications.
Their UI widgets save a lot of time writing your own components to get
things done. I am a big fan of jQuery myself but for fast and quick single
page applications I prefer Dojo or ExtJs.

Dojo has a relatively easy licence, perhaps that's one reason for choosing
it.

Just my two cents.

Regards,
Mandeep


On Tue, Sep 10, 2013 at 8:42 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Then why not jQuery?
>
> Jacques
>
> Mandeep Sidhu wrote:
> > This is really cool!!! Great job.
> > I am also preparing a customized dojo library to ajaxify ofbiz
> > applications. Single page applications are more appealing to me :).
> >
> > Starred your repo on Github.
> >
> > Regards,
> > Mandeep
> >
> >
> > On Tue, Sep 10, 2013 at 7:36 AM, Bilgin Ibryam 
> wrote:
> >
> >> On 10 September 2013 15:21, Adrian Crum
> >> wrote:
> >>
> >>> Is the Sencha code only in FreeMarker templates, or did you integrate
> >>> Sencha with the OFBiz screen widgets?
> >>>
> >>
> >> It is only in FreeMarker templates.
> >> This is a Sencha app with OFBiz backend. Not a Sencha-OFBiz integration.
> >>
> >>
> >>>
> >>> I'm currently integrating Sencha with the OFBiz screen widget library.
> >>>
> >>
> >> That's an awesome news!
> >>
> >>
> >>
> >>>
> >>> Adrian Crum
> >>> Sandglass Software
> >>> http://www.sandglass-software.**com <http://www.sandglass-software.com
> >
> >>>
> >>>
> >>> On 9/10/2013 4:26 AM, Bilgin Ibryam wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> some time ago I created a pet project for task management using ExtJS
> and
> >>>> OFBiz.
> >>>> Decided to put int on github [1] so if anyone want to use, do it on
> your
> >>>> own risk ;)
> >>>>
> >>>> Have a look at the screenshot or the LIVE DEMO running on amazon. It
> will
> >>>> be there for couple of days.
> >>>>
> >>>> Github https://github.com/bibryam/**lazyplanner<
> >> https://github.com/bibryam/lazyplanner>
> >>>>
> >>>> Screenshot http://bit.ly/14HFQLs
> >>>>
> >>>> LIVE DEMO http://lazyplanner.ofbizian.**com<
> >> http://lazyplanner.ofbizian.com>
> >>>>
> >>>> Blog
> >>>> http://www.ofbizian.com/2013/**09/an-old-pet-project-based-**
> >>>> on-sencha-ext.html<
> http://www.ofbizian.com/2013/09/an-old-pet-project-based-on-sencha-ext.html
> >>>>
> >>>> Regards
> >>>> Bilgin Ibryam
> >>>>
> >>>>
> >>
> >>
> >> --
> >> Bilgin Ibryam
> >>
> >> Apache Camel & Apache OFBiz committer
> >> Blog: ofbizian.com
> >> Twitter: @bibryam <https://twitter.com/bibryam>
> >>
> >> Author of Instant Apache Camel Message Routing
> >> packtpub.com/apache-camel-message-routing/book<
> >> http://www.packtpub.com/apache-camel-message-routing/book>
>


Re: A task management component based on OFBiz and ExtJS Sencha

2013-09-10 Thread Mandeep Sidhu
This is really cool!!! Great job.
I am also preparing a customized dojo library to ajaxify ofbiz
applications. Single page applications are more appealing to me :).

Starred your repo on Github.

Regards,
Mandeep


On Tue, Sep 10, 2013 at 7:36 AM, Bilgin Ibryam  wrote:

> On 10 September 2013 15:21, Adrian Crum
> wrote:
>
> > Is the Sencha code only in FreeMarker templates, or did you integrate
> > Sencha with the OFBiz screen widgets?
> >
>
> It is only in FreeMarker templates.
> This is a Sencha app with OFBiz backend. Not a Sencha-OFBiz integration.
>
>
> >
> > I'm currently integrating Sencha with the OFBiz screen widget library.
> >
>
> That's an awesome news!
>
>
>
> >
> > Adrian Crum
> > Sandglass Software
> > http://www.sandglass-software.**com 
> >
> >
> > On 9/10/2013 4:26 AM, Bilgin Ibryam wrote:
> >
> >> Hi all,
> >>
> >> some time ago I created a pet project for task management using ExtJS
> and
> >> OFBiz.
> >> Decided to put int on github [1] so if anyone want to use, do it on your
> >> own risk ;)
> >>
> >> Have a look at the screenshot or the LIVE DEMO running on amazon. It
> will
> >> be there for couple of days.
> >>
> >> Github https://github.com/bibryam/**lazyplanner<
> https://github.com/bibryam/lazyplanner>
> >>
> >> Screenshot http://bit.ly/14HFQLs
> >>
> >> LIVE DEMO http://lazyplanner.ofbizian.**com<
> http://lazyplanner.ofbizian.com>
> >>
> >> Blog
> >> http://www.ofbizian.com/2013/**09/an-old-pet-project-based-**
> >> on-sencha-ext.html<
> http://www.ofbizian.com/2013/09/an-old-pet-project-based-on-sencha-ext.html
> >
> >>
> >> Regards
> >> Bilgin Ibryam
> >>
> >>
>
>
> --
> Bilgin Ibryam
>
> Apache Camel & Apache OFBiz committer
> Blog: ofbizian.com
> Twitter: @bibryam 
>
> Author of Instant Apache Camel Message Routing
> packtpub.com/apache-camel-message-routing/book<
> http://www.packtpub.com/apache-camel-message-routing/book>
>


Re: Subscribing for beginning

2013-09-02 Thread Mandeep Sidhu
what does the log say?


On Mon, Sep 2, 2013 at 3:20 PM, Antony Adopo  wrote:

> it doesn't work again
>
>
> 2013/9/3 Mandeep Sidhu 
>
> > It should be in "/practice/widget" not in
> > "/practice/webapp/practice/widget/"
> > Fix the path and restart ofbiz.
> >
> > It should work just fine now.
> >
> >
> > On Mon, Sep 2, 2013 at 2:28 PM, Antony Adopo  wrote:
> >
> > > Thanks , but even, it doesn't work
> > >
> >
>


Re: Subscribing for beginning

2013-09-02 Thread Mandeep Sidhu
It should be in "/practice/widget" not in
"/practice/webapp/practice/widget/"
Fix the path and restart ofbiz.

It should work just fine now.


On Mon, Sep 2, 2013 at 2:28 PM, Antony Adopo  wrote:

> Thanks , but even, it doesn't work
>


Re: Subscribing for beginning

2013-09-02 Thread Mandeep Sidhu
Okay, first things first. To ensure your component is registered by the
application navigate to the following link on your machine.
https://localhost:8443/webtools/control/ViewComponents

That should list down all the components registered by ofbiz. Try finding
your component "Practice", ideally it should be there at the end of it.

If you see the component there then look into the
/practice/webapp/practice/widget/PracticeScreens.xml file and ensure you
have a screen named "main" defined there.

If you don't see the component, that means your component configuration has
issues.


On Mon, Sep 2, 2013 at 12:45 PM, Antony Adopo  wrote:

> this the controller xml code:
>
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
>xsi:noNamespaceSchemaLocation="
> http://ofbiz.apache.org/dtds/site-conf.xsd";>
> location="component://common/webcommon/WEB-INF/common-controller.xml"/>
>Practice Component Site Configuration
> File
>Copyright 2001-2009 The Apache Software Foundation
>
> class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
>
>
>
>
>
>
>    
>     page="component://practice/widget/PracticeScreens.xml#main"/>
>
>
>
>
> 
>
>
> 2013/9/2 Mandeep Sidhu 
>
> > Can you share the code in your application's Controller.xml?
> >
> > Looks more like a mapping issue to me.
> >
> >
> > On Mon, Sep 2, 2013 at 3:31 AM, Antony Adopo  wrote:
> >
> > > Hello,
> > > I'm Antony and I'm beginner on apache ofbiz.
> > > I want to build a ecommerce website for tailor clothe with ofbiz. so I
> > > decided to follow :
> > >
> > >
> >
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide
> > >
> > > but I have A problem  at the end on part 1. When I launch "
> > > http://localhost:8080/practice/control/main";, it gives me "404 error"
> > > page.
> > > but "http://localhost:8080/ecommerce"; works without problems. So help
> me
> > > resolve this problem
> > >
> > > And at the same time, could have I some tutos or directives to build
> > > ecommerce website with ofbiz and the way to add some kind of
> > > personnalisation as javascript scripts, etc?
> > >
> > > Thanks for your help.
> > >
> > > Sincerly
> > >
> >
>


Re: Subscribing for beginning

2013-09-02 Thread Mandeep Sidhu
Can you share the code in your application's Controller.xml?

Looks more like a mapping issue to me.


On Mon, Sep 2, 2013 at 3:31 AM, Antony Adopo  wrote:

> Hello,
> I'm Antony and I'm beginner on apache ofbiz.
> I want to build a ecommerce website for tailor clothe with ofbiz. so I
> decided to follow :
>
> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide
>
> but I have A problem  at the end on part 1. When I launch "
> http://localhost:8080/practice/control/main";, it gives me "404 error"
> page.
> but "http://localhost:8080/ecommerce"; works without problems. So help me
> resolve this problem
>
> And at the same time, could have I some tutos or directives to build
> ecommerce website with ofbiz and the way to add some kind of
> personnalisation as javascript scripts, etc?
>
> Thanks for your help.
>
> Sincerly
>


Re: Pack Multiple orders without creating reservation

2013-08-28 Thread Mandeep Sidhu
Open the order in order manager, on the widgets on the right hand side
under "Actions" you can find this button.

A typical order url should look something like this.
xyz.com/ordermgr/control/orderview?orderId=


On Wed, Aug 28, 2013 at 9:48 PM, jyoti  wrote:

> Hi Deepak,
>
> Thanks for the help. But i am not much familiar with 'Force Complete', so
> don't have any idea where i can find this button and how its going to work.
> It will be really helpful if you could give me some brief description of
> it.
>
> Thanks,
> Jyoti
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Pack-Multiple-orders-without-creating-reservation-tp4643480p4643569.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: OFBiz Tutorial - A Beginners Development Guide(Part 1)

2013-08-12 Thread Mandeep Sidhu
I believe it's a unix box, navigate to the directory where your web.xml
file resides and do a "ls -l" and then "pwd" and share the logs here.

Let's see if that helps.


On Mon, Aug 12, 2013 at 7:06 AM, İhsan Koçak  wrote:

> Thank you for your patience :) This from ofbiz.log:
>
> *2013-08-11 16:43:43,538 (main) [ ComponentContainer.java:180:INFO ]
> Auto-Loading component directory :
> [/home/abc/ihsan/workspace/ofbiz/hot-deploy]*
> *2013-08-11 16:43:43,547 (main) [ ComponentContainer.java:241:INFO ]
> Loading component : [practice]*
> *2013-08-11 16:43:43,559 (main) [ ComponentContainer.java:149:INFO ] All
> components loaded*
> ...
> ...
> ...
> 2013-08-11 16:43:55,574 (main) [  CatalinaContainer.java:372:INFO ]
> createHost(StandardEngine[default-server], 0.0.0.0)
> 2013-08-11 16:43:55,597 (main) [  CatalinaContainer.java:512:INFO ]
> Creating connector for address='0.0.0.0' port='8009' protocol='ajp'
> 2013-08-11 16:43:55,656 (main) [  CatalinaContainer.java:512:INFO ]
> Creating connector for address='0.0.0.0' port='8080' protocol='http'
> 2013-08-11 16:43:55,677 (main) [  CatalinaContainer.java:512:INFO ]
> Creating connector for address='0.0.0.0' port='8443' protocol='https'
> 2013-08-11 16:43:56,174 (main) [ContainerLoader.java:223:INFO ]
> [Startup] Starting containers...
> 2013-08-11 16:43:56,180 (main) [  GenericDispatcher.java:69 :INFO ]
> Creating new dispatcher [RMIDispatcher] (main)
> *2013-08-11 16:43:57,115 (main) [  CatalinaContainer.java:562:INFO ]
> createContext(practice)*
> 2013-08-11 16:43:57,116 (main) [  CatalinaContainer.java:562:INFO ]
> createContext(exampleext)
> ...
> ...
> ...
> 2013-08-11 16:43:57,120 (main) [  CatalinaContainer.java:562:INFO ]
> createContext(images)
> 2013-08-11 16:43:57,120 (main) [  CatalinaContainer.java:562:INFO ]
> createContext(webtools)
> 2013-08-11 16:43:57,120 (main) [  CatalinaContainer.java:562:INFO ]
> createContext(bi)
> *2013-08-11 16:43:57,121 (catalina-startup-0) [
>  CatalinaContainer.java:647:INFO ]
>
> file:home/abc/ihsan/workspace/ofbiz/hot-deploy/practice/webapp/practice/WEB-INF/web.xml
> not found.*
> 2013-08-11 16:43:57,191 (catalina-startup-2) [
>  CatalinaContainer.java:682:INFO ]
>
> host[StandardEngine[default-server].StandardHost[0.0.0.0]].addChild(StandardEngine[default-server].StandardHost[0.0.0.0].StandardContext[/exampleext])
> 2013-08-11 16:43:57,196 (catalina-startup-1) [
>  CatalinaContainer.java:682:INFO ]
>
> host[StandardEngine[default-server].StandardHost[0.0.0.0]].addChild(StandardEngine[default-server].StandardHost[0.0.0.0].StandardContext[/birt])
> *2013-08-11 16:43:57,199 (catalina-startup-0) [
>  CatalinaContainer.java:682:INFO ]
>
> host[StandardEngine[default-server].StandardHost[0.0.0.0]].addChild(StandardEngine[default-server].StandardHost[0.0.0.0].StandardContext[/practice])
> *
>
>
>
> On Mon, Aug 12, 2013 at 4:53 PM, Jacques Le Roux <
> jacques.le.r...@les7arts.com> wrote:
>
> > Simply put a copy of your log snippet in your email. Prefer to use text
> > format than HTML. HTML gets higher spam scores because of phishing done
> in
> > HTML not text
> >
> > Jacques
> >   - Original Message -
> >   From: İhsan Koçak
> >   To: user@ofbiz.apache.org
> >   Sent: Monday, August 12, 2013 2:57 PM
> >   Subject: Re: OFBiz Tutorial - A Beginners Development Guide(Part 1)
> >
> >
> >   Sorry, i attached screenshot and logs.
> >
> >
> >
> >   On Mon, Aug 12, 2013 at 8:48 AM, Jacques Le Roux <
> > jacques.le.r...@les7arts.com> wrote:
> >
> > Most of the time attachments don't work (it rarely works).
> > Better to use text (log snippet) than snapshot.
> > When really needed you still can attach on Nabble user forum
> >
> > Jacques
> >
> >
> > Mandeep Sidhu wrote:
> > > Hmm...either attachments don't work on this email address or you
> > forgot to
> > > attach it.
> > >
> > >
> > > On Sun, Aug 11, 2013 at 5:23 PM, İhsan Koçak  >
> > wrote:
> > >
> > >> Thank you for your reply.Snapshot:[image: Inline image 1]
> > >>
> > >>
> > >> On Sun, Aug 11, 2013 at 9:59 PM, Mandeep Sidhu <
> > mandeep1985s...@gmail.com>wrote:
> > >>
> > >>> Can you share directory snapshot as well? Perhaps that would help
> > >>> troubleshoot further.
> > >>>
> > >>>
>

Re: OFBiz Tutorial - A Beginners Development Guide(Part 1)

2013-08-11 Thread Mandeep Sidhu
Hmm...either attachments don't work on this email address or you forgot to
attach it.


On Sun, Aug 11, 2013 at 5:23 PM, İhsan Koçak  wrote:

> Thank you for your reply.Snapshot:[image: Inline image 1]
>
>
> On Sun, Aug 11, 2013 at 9:59 PM, Mandeep Sidhu 
> wrote:
>
>> Can you share directory snapshot as well? Perhaps that would help
>> troubleshoot further.
>>
>>
>> On Sun, Aug 11, 2013 at 3:05 AM, İhsan Koçak 
>> wrote:
>>
>> > I have found an error in the logs.it says:[
>> >  CatalinaContainer.java:646:INFO ]
>> >
>> >
>> file:home/abc/ihsan/ofbiz/apache-ofbiz-12.04.02/hot-deploy/practice/webapp/practice/WEB-INF/web.xml
>> > not found.
>> > It does exist in the right folder hierarchy i could not understand why
>> it
>> > says like that.I use Tomcat embedded 7.0.42.
>> >
>> >
>> > On Sun, Aug 11, 2013 at 11:17 AM, Taher Alkhateeb <
>> > slidingfilame...@gmail.com> wrote:
>> >
>> > > Your issue seems to have nothing todo with commonscreens. It could be
>> > many
>> > > things: a typo, incorrect directory structure, etc. Look at similar
>> > > components (example component) for reference
>> > > On Aug 11, 2013 10:55 AM, "İhsan Koçak"  wrote:
>> > >
>> > > > Hi all.I did all things at part 1.But it gives a 404 error.Do you
>> know
>> > if
>> > > > there is something that was not said in the tutorial.For example in
>> web
>> > > xml
>> > > > there is:  component:
>> > > > //practice/widget/CommonScreens.xml
>> > > >
>> > > > But in tutorial, nothing said about this file(CommonScreens.xml).I
>> put
>> > > > CommonScreens.xml under practice/widget but nothing has
>> changed.itgives
>> > > > 404 error.Do you have any idea what can be problem?
>> > > > Regards.
>> > > >
>> > >
>> >
>>
>
>


Re: OFBiz Tutorial - A Beginners Development Guide(Part 1)

2013-08-11 Thread Mandeep Sidhu
Can you share directory snapshot as well? Perhaps that would help
troubleshoot further.


On Sun, Aug 11, 2013 at 3:05 AM, İhsan Koçak  wrote:

> I have found an error in the logs.it says:[
>  CatalinaContainer.java:646:INFO ]
>
> file:home/abc/ihsan/ofbiz/apache-ofbiz-12.04.02/hot-deploy/practice/webapp/practice/WEB-INF/web.xml
> not found.
> It does exist in the right folder hierarchy i could not understand why it
> says like that.I use Tomcat embedded 7.0.42.
>
>
> On Sun, Aug 11, 2013 at 11:17 AM, Taher Alkhateeb <
> slidingfilame...@gmail.com> wrote:
>
> > Your issue seems to have nothing todo with commonscreens. It could be
> many
> > things: a typo, incorrect directory structure, etc. Look at similar
> > components (example component) for reference
> > On Aug 11, 2013 10:55 AM, "İhsan Koçak"  wrote:
> >
> > > Hi all.I did all things at part 1.But it gives a 404 error.Do you know
> if
> > > there is something that was not said in the tutorial.For example in web
> > xml
> > > there is:  component:
> > > //practice/widget/CommonScreens.xml
> > >
> > > But in tutorial, nothing said about this file(CommonScreens.xml).I put
> > > CommonScreens.xml under practice/widget but nothing has changed.itgives
> > > 404 error.Do you have any idea what can be problem?
> > > Regards.
> > >
> >
>


Re: Root domain shopping cart

2013-07-03 Thread Mandeep Sidhu
I am not so sure about that, perhaps you should read more about tomcat's
integration with ofbiz.

I see that under framework/catalina but like I said, not so sure

Regards,
Mandeep


On Tue, Jul 2, 2013 at 7:34 PM, Ofbiz 开发  wrote:

> Hi Mandeep,
>
> Thank you very much. I am new to OFBIZ.
>
> I searched online and found that since Tomcat 6 you can specify the session
> cookie domain to be on root domain, by adding
>
> 
>
> According to Tomcat 7's document this is best to be added to the
> context.xml  ( http://tomcat.apache.org/tomcat-7.0-doc/config/context.html)
>
> However I can't seem to find context.xml in OFBIZ. The CATALINA_HOME is
> $OFBIZ_HOME/runtime/catalina  and CATALINA_BASE is $OFBIZ_HOME, and a
> default context.xml is normally in $CATALINA_BASE/conf/context.xml
>
> So could I create a new folder "conf" under OFBIZ_HOME and add a
> context.xml in it please? Would that work for OFBIZ? Thank you very much.
>
> Kind Regards
>
> Fong
>
>
>
>
> On Wed, Jul 3, 2013 at 2:12 AM, Mandeep Sidhu  >wrote:
>
> > I believe you can do so by passing the jsessionid as one of the query
> > parameters when the redirect is happening.
> >
> > Mandeep
> >
> >
> > On Tue, Jul 2, 2013 at 2:26 AM, Ofbiz 开发  wrote:
> >
> > > Hi everyone,
> > >
> > > Could someone help me on this please?
> > >
> > > At the moment when the shopping cart is created on www.example.com,
> when
> > > the user browse to another subdomain, say abc.example.com, he will
> lose
> > > the
> > > shopping cart, is it because the session is tied to the subdomain
> please?
> > >
> > > Is there a way to make the session tied to the root domain
> > > example.complease? Or how can I go about make the shopping cart cross
> > > sub-domains
> > > please? Thank you very much.
> > >
> > > Kind Regards
> > >
> > > Fong
> > >
> >
> >
> >
> > --
> > Regards,
> > Mandeep Singh Sidhu
> > http://www.simbacart.com (ofbiz based)
> > http://www.sidsol.com
> >
>



-- 
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com


Re: Root domain shopping cart

2013-07-02 Thread Mandeep Sidhu
I believe you can do so by passing the jsessionid as one of the query
parameters when the redirect is happening.

Mandeep


On Tue, Jul 2, 2013 at 2:26 AM, Ofbiz 开发  wrote:

> Hi everyone,
>
> Could someone help me on this please?
>
> At the moment when the shopping cart is created on www.example.com, when
> the user browse to another subdomain, say abc.example.com, he will lose
> the
> shopping cart, is it because the session is tied to the subdomain please?
>
> Is there a way to make the session tied to the root domain
> example.complease? Or how can I go about make the shopping cart cross
> sub-domains
> please? Thank you very much.
>
> Kind Regards
>
> Fong
>



-- 
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com


Re: International Shipping

2013-06-19 Thread Mandeep Sidhu
CheckOutHelper.calcAndAddTax
Tax authorities are configured under accouting module, so it can be
configured via the accounting module of admin application.


On Wed, Jun 19, 2013 at 1:02 PM, David Saenz  wrote:

> Thanks!  What about calculating taxes and duty, is there site or
> database to get the formulas or rates?
>
> On 6/19/2013 1:56 PM, Mandeep Sidhu wrote:
> > You might want to check out method getShipEstimate in the following class
> > org.ofbiz.order.shoppingcart.shipping.ShippingEvents
> >
> > During debugging I found this is used to calculate any shipping related
> > estimates and adds to the cart.getSubTotal (cart.getGrandTotal
> eventually).
> >
> > Regards,
> > Mandeep
> >
> > On Wed, Jun 19, 2013 at 12:33 PM, David Saenz  wrote:
> >
> >> Any idea how I could implement a international shipping calculator,
> >> import / export?
> >>
> >> Formula, Lookup Data, etc.
> >>
> >> Does Ofbiz have such functionality?
> >>
> >> Thanks,
> >> DS
> >>
> >
> >
> >
>



-- 
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com


Re: International Shipping

2013-06-19 Thread Mandeep Sidhu
You might want to check out method getShipEstimate in the following class
org.ofbiz.order.shoppingcart.shipping.ShippingEvents

During debugging I found this is used to calculate any shipping related
estimates and adds to the cart.getSubTotal (cart.getGrandTotal eventually).

Regards,
Mandeep

On Wed, Jun 19, 2013 at 12:33 PM, David Saenz  wrote:

> Any idea how I could implement a international shipping calculator,
> import / export?
>
> Formula, Lookup Data, etc.
>
> Does Ofbiz have such functionality?
>
> Thanks,
> DS
>



-- 
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com


Re: Problem with default currency USD - INR

2013-05-30 Thread Mandeep Sidhu
I think I too ran into the same issue. Here's something that might fix it,
if you have already completed the steps listed below, You need to update
the baseCurrencyUomId column entry for your company in the table
PartyAcctgPreference, set it to INR and that should do the trick.

Letme know if that works for you.

Regards,
Mandeep
www.simbacart.com
On May 29, 2013 5:11 AM, "Bhaumik Patel"  wrote:

> Hi Praveen,
>
> Thanks for providing settings but those i already have done and still it is
> not reflecting on said module's view page.
>
> Please let me know if their is any other way of doing it and setting it up.
>
>
> Thanks,
> Bhaumik
>
>
> On Tue, May 28, 2013 at 8:33 PM, Praveen Agrawal  >wrote:
>
> > Hi Bhaumik,
> >
> > Please re-check your currency.uom.id.default property in
> general.properties
> > file. It must be set to INR. Also Set the
> > Default Currency Uom Id as INR in Product Store Entity.
> >
> > You can take reference from http://bigfish.solveda.com/bfDemo.html.
> > Here Electronic Store Demo is fully setup for Indian Market.
> >
> > Thanks,
> > Praveen Agrawal
> > Solveda India
> > (formerly known as Salmon India)
> > Ph. +91-9971771837
> > Email. pagra...@solveda.com
> > Skype.  praveen.agrawal18
> >
> > -Original Message-
> > From: Bhaumik Patel [mailto:bpa...@surekhatech.com]
> > Sent: Tuesday, May 28, 2013 7:18 PM
> > To: user@ofbiz.apache.org
> > Subject: Problem with default currency USD - INR
> >
> > Hi,
> >
> > I would like to report an issue regarding USD to INR conversion in OFBiz
> (v
> > 12.04.01).
> >
> > I setup company with INR as my default currency, then I add some products
> > with INR (it is coming as default currency there) but in the product,
> > payment, billing account in profile etc pages it displays amount in *$
> > (Dollar)* instead of *Rs (Rupees)*.
> >
> > I have changed currency as INR in below file and setup:
> > - commons.properties
> > - In web tool > entity engine tool > entity data maintenance
> >
> > By doing above setups i am expecting Rs instead of $ at all locations.
> >
> > It is showing as INR in drop downs but while displaying on said pages it
> > shows $ (Dollar) instead of Rs (Rupees).
> >
> > Thanks,
> > Bhaumik
> >
> >
> >
>


Re: Looking for an experience Java programmer with OFBiz experience

2013-05-20 Thread Mandeep Sidhu
Hi Carlos,

I would like to know more about this opportunity, I am a java developer
with 6.9 years or experience and a passionate ofbiz developer as well. I am
launching my own ofbiz based ecommerce site www.simbacart.com in coming few
days.

Let me know if we can share a quick chat over gtalk.

Regards,
Mandeep


On Mon, May 20, 2013 at 6:49 PM, Carlos Cruz wrote:

> Hi;
>
> ** **
>
> I'm looking for a Java programmer that is familiar with OFBiz.
> Particularly with OFBiz Web Services and OFBiz Entity Engine.
>
> ** **
>
> I'm interested in hosting OFBiz for some very specific industries and I
> want to develop some very specific interfaces. 
>
> ** **
>
> This is a long term project, I could be flexible with the hours.
>
> ** **
>
> If you're interested email me for more details. 
>
> ** **
>
> Also feel free to forward this email to someone you think might be
> interested.
>
> ** **
>
> Thanks!!
>
> Carlos
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> [image: logo-for-social-media-sites-email_signature]
>
> CruzControl Radius
>
> Your Success Is Our Service
>
> www.ccradius.com
>
> email:car...@ccradius.com
>
> 1-877-285-5499
>
> ** **
>



-- 
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com


Re: How to get response in json for autocomplete

2013-03-06 Thread Mandeep Sidhu
Invoke a java event instead of a service, set the view to none and render
the response as json, you can break down regular java objects into json
using codeheues jackson library.


On Tue, Mar 5, 2013 at 1:23 AM, Deepak Agarwal  wrote:

> Well I am not sure if this is the best way to do but I achieved by adding a
> new ftl ajaxAutocompleteOptionsJson.ftl (in place
> of ajaxAutocompleteOptions.ftl ) , modified it to return just the data and
> set the content-type="application/json" in my controller.xml view-map
>
> On Tue, Mar 5, 2013 at 2:30 PM, Deepak Agarwal 
> wrote:
>
> > Current autocomplete is returning a html. How can I get it as json.
> >
> > --
> > Thanks,
> > Deepak Agarwal,
> >
> > Mobile: +91 9501190044
>
>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Mobile: +91 9501190044
>



-- 
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com


Re: Advice on Hosting Ofbiz

2013-02-25 Thread Mandeep Sidhu
I've my own online store (ofbiz based) hosted on godaddy's dedicated server.

Performance wise it's good and seems economical as well.
Here's the link to my store http://www.simbacart.com

Lemme know if you've more questions regardingy godaddy hosting.


On Mon, Feb 25, 2013 at 6:58 PM, David Saenz  wrote:

> Need advice from users having already launched ofbiz.
> What are the best solutions to host ofbiz in USA.  Price and Performance.
> Thanks so much,
> David Saenz
>



-- 
Regards,
Mandeep Singh Sidhu
http://www.simbacart.com (ofbiz based)
http://www.sidsol.com


Re: out of PermGen Space

2012-10-04 Thread Mandeep Sidhu
Kindly check if some of them have not been finished yet (check for job
status), they might be running in the background, I suggest you clean up
this table if you want to give some space to other jobs.

Regards,
Mandeep
http://www.simbacart.com
http://www.sidsol.com

On Thu, Oct 4, 2012 at 12:26 PM, Parm Lehal  wrote:

> There are 622 entries in there.
>
>
>
> On Thu, Oct 4, 2012 at 12:13 PM, Mandeep Sidhu  >wrote:
>
> > when I encountered the PermSpace issue, I found out (with the help of
> Mike
> > :)) that the job scheduler running in the background was the the culprit.
> >
> > try select * from job_sandbox; from your database to see the number of
> > entries there.
> >
> > Regards,
> > Mandeep Sidhu
> >
> > On Thu, Oct 4, 2012 at 12:06 PM, Parm Lehal  wrote:
> >
> > > I am  trying to test ofbiz 10.04.02 and whenever I try to get a PDF
> > > document shown (e.g. an invoice etc) ofbiz. throws out of PermGen space
> > > error. I have changed the PermSpace to be 1024m but it still fails.
> What
> > > may be causing it? The setup has only the demo data loaded running
> > against
> > > mysql database.
> > >
> >
> >
> >
> > --
> > Mandeep Singh Sidhu
> >
>



-- 
Mandeep Singh Sidhu


Re: out of PermGen Space

2012-10-04 Thread Mandeep Sidhu
when I encountered the PermSpace issue, I found out (with the help of Mike
:)) that the job scheduler running in the background was the the culprit.

try select * from job_sandbox; from your database to see the number of
entries there.

Regards,
Mandeep Sidhu

On Thu, Oct 4, 2012 at 12:06 PM, Parm Lehal  wrote:

> I am  trying to test ofbiz 10.04.02 and whenever I try to get a PDF
> document shown (e.g. an invoice etc) ofbiz. throws out of PermGen space
> error. I have changed the PermSpace to be 1024m but it still fails. What
> may be causing it? The setup has only the demo data loaded running against
> mysql database.
>



-- 
Mandeep Singh Sidhu


Re: Removing port number from the url in production setup

2012-06-03 Thread Mandeep Sidhu
Perfect, that worked for me, thanks a ton Mike :)

On Mon, Jun 4, 2012 at 7:55 AM,  wrote:

> Just comment out the 8080 and 8443 lines out of url.properties, and
> restart. You still need the https line (see my example).
>
> Sent via BlackBerry by AT&T
>
> -Original Message-
> From: Mandeep Sidhu 
> Date: Mon, 4 Jun 2012 07:43:01
> To: 
> Reply-To: user@ofbiz.apache.org
> Subject: Re: Removing port number from the url in production setup
>
> So what exact change will remove the 8080 and 8443 from the url that's
> generated when I user <@ofbizurl> tag to render a url??
> I mean, instead of
> https://www.example.com:8443/control/newcustomer
>
> I'd require something like
> https://www.example.com/control/newcustomer
>
> how can I achieve that in production.
>
> On Mon, Jun 4, 2012 at 3:55 AM, Mike  wrote:
>
> > I just checked mine:  It looks like I'm still listening in on 8080 and
> > 8443:
> >
> > root@vm-120:/opt/ofbiz.1104/runtime# lsof -p 18326 -P | grep LISTEN
> > java18326 ofbiz6u  IPv4 508592  0t0 TCP
> localhost:10523
> > (LISTEN)
> > java18326 ofbiz  114u  IPv4 508688  0t0 TCP *:1099
> (LISTEN)
> > java18326 ofbiz  297u  IPv4 509471  0t0 TCP *:8080
> (LISTEN)
> > java18326 ofbiz  300u  IPv4 509483  0t0 TCP *:8443
> (LISTEN)
> > java18326 ofbiz  302u  IPv4 508690  0t0 TCP *:52139
> > (LISTEN)
> > java18326 ofbiz  361u  IPv4 509537  0t0 TCP *:8009
> (LISTEN)
> >
> > So, I don't think you need to mess with ofbiz-containers.  Regarding the
> > other ports, I'm behind a firewall, and I'm fronted by apache via AJP
> > (8009).
> >
> > On Sun, Jun 3, 2012 at 10:50 AM, Mandeep Sidhu <
> mandeep1985s...@gmail.com
> > >wrote:
> >
> > > One quick q here Mike, the configuration you shared with me worked
> fine.
> > >
> > > However I still see the port 8443 and 8080 on my website, this happens
> > when
> > > the user clicks on any link which is generated using <@ofbizurl>.
> > >
> > > Any idea, as to how do I get rid of these port numbers appended to the
> > url.
> > >
> > > I tried removing entry 8443 from ofbiz-containers.xml and
> url.properties
> > > file, but after doing that, the webtools link on https stopped working.
> > >
> > > Any help is much appreciated.
> > >
> > > Thanks and regards,
> > > Mandeep Sidhu
> > >
> > > On Thu, May 31, 2012 at 7:09 AM, Mandeep Sidhu <
> > mandeep1985s...@gmail.com
> > > >wrote:
> > >
> > > > Excellent, Thanks Mike for such a detailed explanation, definitely I
> am
> > > > going for mod_jk now, will keep you posted.
> > > >
> > > > Thanks a ton everybody :)
> > > >
> > > > Cheers,
> > > > Mandeep
> > > >
> > > >
> > > > On Wed, May 30, 2012 at 9:02 PM, Mike  wrote:
> > > >
> > > >> Mandeep.  Nice looking site.
> > > >>
> > > >> Regarding your issue, you REALLY want to use apache using mod_jk in
> > > front
> > > >> of ofbiz.  Here is why:
> > > >>
> > > >> 1) You can offload the processing of images to apache (less load on
> > > ofbiz)
> > > >> 2) You can easily set cache timeouts for images, css, and other
> static
> > > >> content.
> > > >> 3) You can easily add a normal HTML static pages (/static/*.html)
> w/o
> > > >> using
> > > >> ofbiz
> > > >> 4) It is easier to offload SSL certificate management to apache
> > > >> 5) You can setup gzip compression (DEFLATE)
> > > >> 6) You can load balance to multiple instances of ofbiz via apache
> > > mod-jk.
> > > >> 7) Apache runs as the user 'nobody' (not root).  Ofbiz can do the
> > same.
> > > >> 8) Most Important:  You can add security to your site by locking out
> > > admin
> > > >> links.
> > > >>
> > > >> Regarding #8.  If you are running an ecommerce site, you DON'T want
> > > people
> > > >> from the internet to even attempt to gain access (i.e. login as
> > 'admin'
> > > to
> > > >> 'catalog').  Do you think amazon.com allows 'admin' login to the
> > > backend
> > > >> from their m

Re: Removing port number from the url in production setup

2012-06-03 Thread Mandeep Sidhu
So what exact change will remove the 8080 and 8443 from the url that's
generated when I user <@ofbizurl> tag to render a url??
I mean, instead of
https://www.example.com:8443/control/newcustomer

I'd require something like
https://www.example.com/control/newcustomer

how can I achieve that in production.

On Mon, Jun 4, 2012 at 3:55 AM, Mike  wrote:

> I just checked mine:  It looks like I'm still listening in on 8080 and
> 8443:
>
> root@vm-120:/opt/ofbiz.1104/runtime# lsof -p 18326 -P | grep LISTEN
> java18326 ofbiz6u  IPv4 508592  0t0 TCP localhost:10523
> (LISTEN)
> java18326 ofbiz  114u  IPv4 508688  0t0 TCP *:1099 (LISTEN)
> java18326 ofbiz  297u  IPv4 509471  0t0 TCP *:8080 (LISTEN)
> java18326 ofbiz  300u  IPv4 509483  0t0 TCP *:8443 (LISTEN)
> java18326 ofbiz  302u  IPv4 508690  0t0 TCP *:52139
> (LISTEN)
> java18326 ofbiz  361u  IPv4 509537  0t0 TCP *:8009 (LISTEN)
>
> So, I don't think you need to mess with ofbiz-containers.  Regarding the
> other ports, I'm behind a firewall, and I'm fronted by apache via AJP
> (8009).
>
> On Sun, Jun 3, 2012 at 10:50 AM, Mandeep Sidhu  >wrote:
>
> > One quick q here Mike, the configuration you shared with me worked fine.
> >
> > However I still see the port 8443 and 8080 on my website, this happens
> when
> > the user clicks on any link which is generated using <@ofbizurl>.
> >
> > Any idea, as to how do I get rid of these port numbers appended to the
> url.
> >
> > I tried removing entry 8443 from ofbiz-containers.xml and url.properties
> > file, but after doing that, the webtools link on https stopped working.
> >
> > Any help is much appreciated.
> >
> > Thanks and regards,
> > Mandeep Sidhu
> >
> > On Thu, May 31, 2012 at 7:09 AM, Mandeep Sidhu <
> mandeep1985s...@gmail.com
> > >wrote:
> >
> > > Excellent, Thanks Mike for such a detailed explanation, definitely I am
> > > going for mod_jk now, will keep you posted.
> > >
> > > Thanks a ton everybody :)
> > >
> > > Cheers,
> > > Mandeep
> > >
> > >
> > > On Wed, May 30, 2012 at 9:02 PM, Mike  wrote:
> > >
> > >> Mandeep.  Nice looking site.
> > >>
> > >> Regarding your issue, you REALLY want to use apache using mod_jk in
> > front
> > >> of ofbiz.  Here is why:
> > >>
> > >> 1) You can offload the processing of images to apache (less load on
> > ofbiz)
> > >> 2) You can easily set cache timeouts for images, css, and other static
> > >> content.
> > >> 3) You can easily add a normal HTML static pages (/static/*.html) w/o
> > >> using
> > >> ofbiz
> > >> 4) It is easier to offload SSL certificate management to apache
> > >> 5) You can setup gzip compression (DEFLATE)
> > >> 6) You can load balance to multiple instances of ofbiz via apache
> > mod-jk.
> > >> 7) Apache runs as the user 'nobody' (not root).  Ofbiz can do the
> same.
> > >> 8) Most Important:  You can add security to your site by locking out
> > admin
> > >> links.
> > >>
> > >> Regarding #8.  If you are running an ecommerce site, you DON'T want
> > people
> > >> from the internet to even attempt to gain access (i.e. login as
> 'admin'
> > to
> > >> 'catalog').  Do you think amazon.com allows 'admin' login to the
> > backend
> > >> from their main site?  Absurd to even ask.  This is basic internet
> > >> security.
> > >>
> > >> Instead, have front-end machines that serve ecommerce, and have
> back-end
> > >> machines that allows access to /catalog, etc. via a VPN, or a local
> > >> subnet.
> > >>
> > >> I have found that this setup runs faster, and you have more
> flexibility.
> > >>
> > >> Here is a sample apache (port 80) configuration file:
> > >>
> >
> --
> > >> Alias /images/ /opt/ofbiz/framework/images/webapp/images/
> > >> DocumentRoot /var/www/
> > >> 
> > >>   Options FollowSymLinks
> > >>   AllowOverride None
> > >> 
> > >> 
> > >>   Options FollowSymLinks MultiViews
> > >>   AllowOverride None
> > >>   Order allow,deny
> > >>   allow f

Re: Removing port number from the url in production setup

2012-06-03 Thread Mandeep Sidhu
so what configuration should I give here for production usage?

On Sun, Jun 3, 2012 at 11:44 PM, Deepak Agarwal wrote:

> Go to Content->website , choose ur website. there you will find it.
>
> On Sun, Jun 3, 2012 at 11:20 PM, Mandeep Sidhu  >wrote:
>
> > One quick q here Mike, the configuration you shared with me worked fine.
> >
> > However I still see the port 8443 and 8080 on my website, this happens
> when
> > the user clicks on any link which is generated using <@ofbizurl>.
> >
> > Any idea, as to how do I get rid of these port numbers appended to the
> url.
> >
> > I tried removing entry 8443 from ofbiz-containers.xml and url.properties
> > file, but after doing that, the webtools link on https stopped working.
> >
> > Any help is much appreciated.
> >
> > Thanks and regards,
> > Mandeep Sidhu
> >
> > On Thu, May 31, 2012 at 7:09 AM, Mandeep Sidhu <
> mandeep1985s...@gmail.com
> > >wrote:
> >
> > > Excellent, Thanks Mike for such a detailed explanation, definitely I am
> > > going for mod_jk now, will keep you posted.
> > >
> > > Thanks a ton everybody :)
> > >
> > > Cheers,
> > > Mandeep
> > >
> > >
> > > On Wed, May 30, 2012 at 9:02 PM, Mike  wrote:
> > >
> > >> Mandeep.  Nice looking site.
> > >>
> > >> Regarding your issue, you REALLY want to use apache using mod_jk in
> > front
> > >> of ofbiz.  Here is why:
> > >>
> > >> 1) You can offload the processing of images to apache (less load on
> > ofbiz)
> > >> 2) You can easily set cache timeouts for images, css, and other static
> > >> content.
> > >> 3) You can easily add a normal HTML static pages (/static/*.html) w/o
> > >> using
> > >> ofbiz
> > >> 4) It is easier to offload SSL certificate management to apache
> > >> 5) You can setup gzip compression (DEFLATE)
> > >> 6) You can load balance to multiple instances of ofbiz via apache
> > mod-jk.
> > >> 7) Apache runs as the user 'nobody' (not root).  Ofbiz can do the
> same.
> > >> 8) Most Important:  You can add security to your site by locking out
> > admin
> > >> links.
> > >>
> > >> Regarding #8.  If you are running an ecommerce site, you DON'T want
> > people
> > >> from the internet to even attempt to gain access (i.e. login as
> 'admin'
> > to
> > >> 'catalog').  Do you think amazon.com allows 'admin' login to the
> > backend
> > >> from their main site?  Absurd to even ask.  This is basic internet
> > >> security.
> > >>
> > >> Instead, have front-end machines that serve ecommerce, and have
> back-end
> > >> machines that allows access to /catalog, etc. via a VPN, or a local
> > >> subnet.
> > >>
> > >> I have found that this setup runs faster, and you have more
> flexibility.
> > >>
> > >> Here is a sample apache (port 80) configuration file:
> > >>
> >
> --
> > >> Alias /images/ /opt/ofbiz/framework/images/webapp/images/
> > >> DocumentRoot /var/www/
> > >> 
> > >>   Options FollowSymLinks
> > >>   AllowOverride None
> > >> 
> > >> 
> > >>   Options FollowSymLinks MultiViews
> > >>   AllowOverride None
> > >>   Order allow,deny
> > >>   allow from all
> > >> 
> > >>
> > >> ExpiresActive On
> > >> #ExpiresByType text/html "access plus 1 day"
> > >> ExpiresByType text/css "access plus 1 day"
> > >> ExpiresByType text/javascript "access plus 1 day"
> > >> ExpiresByType image/gif "access plus 1 week"
> > >> ExpiresByType image/jpeg "access plus 1 week"
> > >> ExpiresByType image/png "access plus 1 week"
> > >> ExpiresByType image/bmp "access plus 1 week"
> > >> ExpiresByType application/x-javascript "access plus 1 day"
> > >> ExpiresByType application/x-shockwave-flash "access plus 1 day"
> > >>
> > >> ProxyRequests Off
> > >> 
> > >>AddDefaultCharset off
> > >>Order deny,allow
> > >>Allow from all
> > >> 
> &

Re: Removing port number from the url in production setup

2012-06-03 Thread Mandeep Sidhu
One quick q here Mike, the configuration you shared with me worked fine.

However I still see the port 8443 and 8080 on my website, this happens when
the user clicks on any link which is generated using <@ofbizurl>.

Any idea, as to how do I get rid of these port numbers appended to the url.

I tried removing entry 8443 from ofbiz-containers.xml and url.properties
file, but after doing that, the webtools link on https stopped working.

Any help is much appreciated.

Thanks and regards,
Mandeep Sidhu

On Thu, May 31, 2012 at 7:09 AM, Mandeep Sidhu wrote:

> Excellent, Thanks Mike for such a detailed explanation, definitely I am
> going for mod_jk now, will keep you posted.
>
> Thanks a ton everybody :)
>
> Cheers,
> Mandeep
>
>
> On Wed, May 30, 2012 at 9:02 PM, Mike  wrote:
>
>> Mandeep.  Nice looking site.
>>
>> Regarding your issue, you REALLY want to use apache using mod_jk in front
>> of ofbiz.  Here is why:
>>
>> 1) You can offload the processing of images to apache (less load on ofbiz)
>> 2) You can easily set cache timeouts for images, css, and other static
>> content.
>> 3) You can easily add a normal HTML static pages (/static/*.html) w/o
>> using
>> ofbiz
>> 4) It is easier to offload SSL certificate management to apache
>> 5) You can setup gzip compression (DEFLATE)
>> 6) You can load balance to multiple instances of ofbiz via apache mod-jk.
>> 7) Apache runs as the user 'nobody' (not root).  Ofbiz can do the same.
>> 8) Most Important:  You can add security to your site by locking out admin
>> links.
>>
>> Regarding #8.  If you are running an ecommerce site, you DON'T want people
>> from the internet to even attempt to gain access (i.e. login as 'admin' to
>> 'catalog').  Do you think amazon.com allows 'admin' login to the backend
>> from their main site?  Absurd to even ask.  This is basic internet
>> security.
>>
>> Instead, have front-end machines that serve ecommerce, and have back-end
>> machines that allows access to /catalog, etc. via a VPN, or a local
>> subnet.
>>
>> I have found that this setup runs faster, and you have more flexibility.
>>
>> Here is a sample apache (port 80) configuration file:
>> --
>> Alias /images/ /opt/ofbiz/framework/images/webapp/images/
>> DocumentRoot /var/www/
>> 
>>   Options FollowSymLinks
>>   AllowOverride None
>> 
>> 
>>   Options FollowSymLinks MultiViews
>>   AllowOverride None
>>   Order allow,deny
>>   allow from all
>> 
>>
>> ExpiresActive On
>> #ExpiresByType text/html "access plus 1 day"
>> ExpiresByType text/css "access plus 1 day"
>> ExpiresByType text/javascript "access plus 1 day"
>> ExpiresByType image/gif "access plus 1 week"
>> ExpiresByType image/jpeg "access plus 1 week"
>> ExpiresByType image/png "access plus 1 week"
>> ExpiresByType image/bmp "access plus 1 week"
>> ExpiresByType application/x-javascript "access plus 1 day"
>> ExpiresByType application/x-shockwave-flash "access plus 1 day"
>>
>> ProxyRequests Off
>> 
>>AddDefaultCharset off
>>Order deny,allow
>>Allow from all
>> 
>>
>> ProxyVia On
>>
>> NameVirtualHost *:80
>>
>> 
>>#   General setup for the virtual host.
>>ServerName example.com
>>ServerAdmin m...@example.com
>>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
>> application/x-javascript text/javascript text/x-js application/json
>> application/xml application/javascript
>>BrowserMatch ^Mozilla/4 gzip-only-text/html
>>BrowserMatch ^Mozilla/4\.0[678] no-gzip
>>BrowserMatch \bMSIE\s7 !no-gzip !gzip-only-text/html
>>BrowserMatch \bMSIE\s8 !no-gzip !gzip-only-text/html
>>
>>ProxyRequests Off
>>ProxyPreserveHost On
>>
>>ProxyPassMatch ^(/images/.*)$ !
>>proxyPass /content   ajp://127.0.0.1:8009/content
>>proxyPass /ecommerce ajp://127.0.0.1:8009/ecommerce
>>proxyPass /tempfiles ajp://127.0.0.1:8009/tempfiles
>>#proxyPass /ajp://127.0.0.1:8009/
>>
>>RewriteEngine On
>>ReWriteRule ^/(.*);jsessionid=.*$ /$1 [R=301]
>>RewriteRule ^/(images/.+);jsessionid=\w+$ /$1
>>RewriteRule ^/.*\.svn /some-non-existant-404-causing-page
>> 
>> --
&g

Re: Removing port number from the url in production setup

2012-05-30 Thread Mandeep Sidhu
cateFile/etc/ssl/certs/example.com.crt
>SSLCertificateKeyFile /etc/ssl/private/example.com.key
>
>
>SSLOptions +StdEnvVars
>
>
>SSLOptions +StdEnvVars
>
>
>BrowserMatch "MSIE [2-6]" \
>        nokeepalive ssl-unclean-shutdown \
>downgrade-1.0 force-response-1.0
># MSIE 7 and newer should be able to use keepalive
>BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
> 
> 
> --
>
> If you decide that you don't care about locking out /catalog and other
> admin stuff, just use the:
>
> proxyPass /ajp://127.0.0.1:8009/
>
> And comment out the other proxy statements.
>
> On Tue, May 29, 2012 at 6:29 PM, Mandeep Sidhu  >wrote:
>
> > Hi,
> >
> > I am developing an ecommerce store using ofbiz, can be found here
> >
> > http://www.simbacart.com
> >
> >
> > The production system is a Unix box, running apache server and then Ofbiz
> > as a service.
> >
> > My question to you is, how to map the 80 port of prod server with the
> > ofbiz's 8080 port, also about the mapping of 8443 port.
> >
> > I was able to map the 80 port by making an entry into the IP table of the
> > Unix system thereby forwarding requests from 80 port to 8080.
> >
> > http://www.simbacart.com
> >
> > Above mentioned is the store in conversation.
> >
> > Now, here's the problem, till 80 port it is fine, but when it comes to
> 8443
> > this is the kind of URL I get.
> >
> >
> >
> https://www.simbacart.com:8443/control/newcustomer;jsessionid=E34540BB92549853EAC60AC175ACECE6.jvm1
> >
> > Notice the 8443 in the url.
> > This url came when I used the tag <@ofbizUrl>/newcustomer.
> >
> > Can you please help me out in setting up this, I'd really appreciate it.
> >
> > --
> > Mandeep Singh Sidhu
> >
>



-- 
Mandeep Singh Sidhu


Removing port number from the url in production setup

2012-05-29 Thread Mandeep Sidhu
Hi,

I am developing an ecommerce store using ofbiz, can be found here

http://www.simbacart.com


The production system is a Unix box, running apache server and then Ofbiz
as a service.

My question to you is, how to map the 80 port of prod server with the
ofbiz's 8080 port, also about the mapping of 8443 port.

I was able to map the 80 port by making an entry into the IP table of the
Unix system thereby forwarding requests from 80 port to 8080.

http://www.simbacart.com

Above mentioned is the store in conversation.

Now, here's the problem, till 80 port it is fine, but when it comes to 8443
this is the kind of URL I get.

https://www.simbacart.com:8443/control/newcustomer;jsessionid=E34540BB92549853EAC60AC175ACECE6.jvm1

Notice the 8443 in the url.
This url came when I used the tag <@ofbizUrl>/newcustomer.

Can you please help me out in setting up this, I'd really appreciate it.

-- 
Mandeep Singh Sidhu


Re: Custom product detail screen configuration

2012-04-18 Thread Mandeep Sidhu
Thanks all for your valuable inputs!!!
Here's how I achieved what I was looking for.

On product page under webtools, I went into content tab and under the
"Override Simple Fields" section simply entered my detail screen name.

*Detail Screen : component://ecommerce/widget/MyScreens.xml#myproductDetail

*which did the trick :).

Page renders perfectly as per the requirements.*
*
On Wed, Apr 18, 2012 at 4:34 PM, Rishi Solanki wrote:

> Mandeep,
> In general, the product entity detailScreen field works. But if you are
> looking for each product level then it is not very good ideal to keep one
> detail screen for each product in a way you need to implement that screen.
> Other way to achieve this is to setup different types of product content
> and render it on product details page, the detail page will show the n
> types of content setup for that detail. In general, The product detail page
> have no functional differences but if it has, then we should go for product
> detail. In other way if you want to show some specific information about
> product then product content will work perfectly.
>
> Please have a look into the ProductContent entity and checkout how
> different content can be associated with it.
>
> HTH!
>
> --
> Rishi Solanki
> Manager, Enterprise Software Development
> HotWax Media Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxmedia.com
>
>
> On Wed, Apr 18, 2012 at 1:39 PM, Vikas Mayur  wrote:
>
> > I think you can use a similar field 'detailScreen' on the Product table.
> >
> > Regards
> > Vikas
> >
> > On Apr 17, 2012, at 11:00 PM, Mandeep Sidhu wrote:
> >
> > > I was wondering if it is possible to provide a custom product detail
> > screen
> > > for each product by providing the url:
> > > something like:
> > > "component://ecommerce/widget/CatalogScreens.xml#categorydetail"
> > >
> > > This feature is available for category pages though, but not sure if
> it's
> > > available for each product as well.
> > >
> > > Please throw some light on this, I am looking for custom look and feel
> > for
> > > different products based on the product type.
> > >
> > > Thanks and regards,
> > > Mandeep Singh Sidhu
> >
> >
>



-- 
Mandeep Singh Sidhu


Re: Custom product detail screen configuration

2012-04-17 Thread Mandeep Sidhu
Jacques, what do you suggest? what would be the best way to acheive my
requirement?

Regards,
Mandeep Sidhu

On Wed, Apr 18, 2012 at 12:46 AM, Robert G.  wrote:

> I see. Sorry I cannot help yet, cause Im still on implementing the
> functions
> in my ecommerce which I need. The CMS I havent looked over yet :) Should
> someone else help.
>
> Kindly
>
> Robert
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Custom-product-detail-screen-configuration-tp4565483p4565765.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



-- 
Mandeep Singh Sidhu


Re: Custom product detail screen configuration

2012-04-17 Thread Mandeep Sidhu
hmm, but that'll be last resort for me.

I was wondering if like a custom category detail page, I can have custom
product detail page screen defined while configuring my product via the
catalog manager.

can you guide me through the changes required to incorporate this, I just
want to make the product detail page dynamic.

Regards,
Mandeep Sidhu

On Wed, Apr 18, 2012 at 12:09 AM, Robert G.  wrote:

> What do you mean? productsummary page is rendered with  widgets as well
> (Widget name="productsummary").
>
> So you can create different views, but I think you are more looking for
> something what you can define in the backend / CMS, arent you?
>
> If you do it with the ftl, xml files you need to make your own condition,
> i.ex. <#if categoryId == xy>do sth.
>
> Im not sure if it is allready integreated in backend CMS, cause I do not
> now
> much about the CMS system.
>
> hope this helps.
>
> Robert
>
>
> Mandeep Sidhu wrote
> >
> > I was wondering if it is possible to provide a custom product detail
> > screen
> > for each product by providing the url:
> > something like:
> > "component://ecommerce/widget/CatalogScreens.xml#categorydetail"
> >
> > This feature is available for category pages though, but not sure if it's
> > available for each product as well.
> >
> > Please throw some light on this, I am looking for custom look and feel
> for
> > different products based on the product type.
> >
> > Thanks and regards,
> > Mandeep Singh Sidhu
> >
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Custom-product-detail-screen-configuration-tp4565483p4565684.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



-- 
Mandeep Singh Sidhu


Re: Using GZip compression for js files in Ecommerce module

2012-04-08 Thread Mandeep Sidhu
my bad, I am just being ignorant here, I was looking at the response
header, my bad, it's working perfectly fine.
apologies

On Sun, Apr 8, 2012 at 5:48 PM, Mandeep Sidhu wrote:

> Jacques,
>
> I analyzed the URL being accessed by my application, I am trying to
> consume a version of jquery from google's CDN.
> URL: http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
>
> the size I am getting back is around 72KB, which is not gzipped, although
> Ofbiz is sending gzip as part of content-encoding. Here's what OFbiz is
> requesting
>
> Vary Accept-EncodingContent-EncodinggzipContent-Typetext/javascript;
> charset=UTF-8 Last-ModifiedMon, 02 Apr 2012 18:24:28 GMTDateWed, 04 Apr
> 2012 16:56:11 GMT ExpiresThu, 04 Apr 2013 16:56:11 GMT
> X-Content-Type-OptionsnosniffServer GFE/2.0Content-Length24605
> X-XSS-Protection1; mode=block Cache-Controlpublic, max-age=31536000Age
> 328756
> One thing to note here is that it is not sending the user-agent header,
> and surprisingly google's CDN doesn't understand this and expects an
> established user-agent header,
> I used some tool to hit the same url and sent user-agent explicitly,
> surprisingly the received file size was 25Kb.
>
> do you've any idea as to why OFBIZ(tomcat server ) is omitting the
> user-agent header.
>
> Regards,
> Mandeep
>
>
>
> On Sun, Apr 8, 2012 at 2:43 PM, Jacques Le Roux <
> jacques.le.r...@les7arts.com> wrote:
>
>> You are missing a point Mandeep.
>>
>> OFBiz is already compressing text files. This is done through the
>> embedded Tomcat. See in ofbiz-containers.xml
>> {code}
>> 
>> 
>> {code}
>>
>> Reference: 
>> http://tomcat.apache.org/**tomcat-7.0-doc/config/http.**html<http://tomcat.apache.org/tomcat-7.0-doc/config/http.html>
>>
>> So my proposition was only to add an yui-compressor-ant-task to compress
>> js/css files as described here
>> http://developer.yahoo.com/**yui/compressor/<http://developer.yahoo.com/yui/compressor/>
>>
>> Note that for bigest files we already use compressed versions (ending by
>> min.js, see framework/common/widget/**CommonScreens.xml and
>> specialpurpose/ecommerce/**widget/CommonScreens.xml)
>>
>>
>> Jacques
>>
>> From: "Mandeep Sidhu" 
>>
>>> created Jira 4792
>>>
>>> https://issues.apache.org/**jira/browse/OFBIZ-4792<https://issues.apache.org/jira/browse/OFBIZ-4792>
>>> but still this will only compress the files Jacques, what if the
>>> application is consuming external jss/css files, if the remote server has
>>> the capability to server GZip encoded content to the requesting client,
>>> we'd need to send the GZip encoding option in the http header for which I
>>> believe Ofbiz needs to be touched.
>>>
>>> Correct me if I am wrong.
>>>
>>> Regards,
>>> Mandeep Sidhu
>>>
>>> On Sun, Apr 8, 2012 at 11:21 AM, Jacques Le Roux <
>>> jacques.le.r...@les7arts.com> wrote:
>>>
>>>  I'd suggest to do it also for css 
>>> http://code.google.com/p/yui-<http://code.google.com/p/yui-**>
>>>> compressor-ant-task/ <http://code.google.com/p/yui-**
>>>> compressor-ant-task/<http://code.google.com/p/yui-compressor-ant-task/>
>>>> >
>>>> You could create a Jira and contribute https://cwiki.apache.org/**
>>>> confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices<
>>>> https://cwiki.**apache.org/confluence/display/**
>>>> OFBADMIN/OFBiz+Contributors+**Best+Practices<https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices>
>>>> >,
>>>>
>>>> this
>>>> would be appreciated of course, not only for eCommerce BTW...
>>>>
>>>> Jacques
>>>>
>>>> From: "Mandeep Sidhu" 
>>>>
>>>>  Hi,
>>>>
>>>>>
>>>>> I was wondering if it is possible to reduce the size of external
>>>>> javascript's being fetched by making use of GZip encoding.
>>>>>
>>>>> The feeding server does understand and responds to GZip encoding,
>>>>> however
>>>>> Ofbiz is not requesting the content in GZip format.
>>>>>
>>>>> Can anybody please guide me as to what all modifications I need to
>>>>> make so
>>>>> that Ofbiz will include the GZip encoding option in the http header
>>>>> while
>>>>> requesting the external javascript file ?
>>>>>
>>>>> Regards,
>>>>> Mandeeep Sidhu
>>>>>
>>>>>
>>>>>
>>>
>>> --
>>> Mandeep Singh Sidhu
>>>
>>>
>
>
> --
> Mandeep Singh Sidhu
>



-- 
Mandeep Singh Sidhu


Re: Using GZip compression for js files in Ecommerce module

2012-04-08 Thread Mandeep Sidhu
Jacques,

I analyzed the URL being accessed by my application, I am trying to consume
a version of jquery from google's CDN.
URL: http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

the size I am getting back is around 72KB, which is not gzipped, although
Ofbiz is sending gzip as part of content-encoding. Here's what OFbiz is
requesting

VaryAccept-EncodingContent-EncodinggzipContent-Typetext/javascript;
charset=UTF-8Last-ModifiedMon, 02 Apr 2012 18:24:28 GMTDateWed, 04 Apr 2012
16:56:11 GMTExpiresThu, 04 Apr 2013 16:56:11 GMTX-Content-Type-Options
nosniffServerGFE/2.0Content-Length24605X-XSS-Protection1; mode=block
Cache-Controlpublic, max-age=31536000Age328756
One thing to note here is that it is not sending the user-agent header, and
surprisingly google's CDN doesn't understand this and expects an
established user-agent header,
I used some tool to hit the same url and sent user-agent explicitly,
surprisingly the received file size was 25Kb.

do you've any idea as to why OFBIZ(tomcat server ) is omitting the
user-agent header.

Regards,
Mandeep


On Sun, Apr 8, 2012 at 2:43 PM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> You are missing a point Mandeep.
>
> OFBiz is already compressing text files. This is done through the embedded
> Tomcat. See in ofbiz-containers.xml
> {code}
> 
> 
> {code}
>
> Reference: 
> http://tomcat.apache.org/**tomcat-7.0-doc/config/http.**html<http://tomcat.apache.org/tomcat-7.0-doc/config/http.html>
>
> So my proposition was only to add an yui-compressor-ant-task to compress
> js/css files as described here
> http://developer.yahoo.com/**yui/compressor/<http://developer.yahoo.com/yui/compressor/>
>
> Note that for bigest files we already use compressed versions (ending by
> min.js, see framework/common/widget/**CommonScreens.xml and
> specialpurpose/ecommerce/**widget/CommonScreens.xml)
>
>
> Jacques
>
> From: "Mandeep Sidhu" 
>
>> created Jira 4792
>>
>> https://issues.apache.org/**jira/browse/OFBIZ-4792<https://issues.apache.org/jira/browse/OFBIZ-4792>
>> but still this will only compress the files Jacques, what if the
>> application is consuming external jss/css files, if the remote server has
>> the capability to server GZip encoded content to the requesting client,
>> we'd need to send the GZip encoding option in the http header for which I
>> believe Ofbiz needs to be touched.
>>
>> Correct me if I am wrong.
>>
>> Regards,
>> Mandeep Sidhu
>>
>> On Sun, Apr 8, 2012 at 11:21 AM, Jacques Le Roux <
>> jacques.le.r...@les7arts.com> wrote:
>>
>>  I'd suggest to do it also for css 
>> http://code.google.com/p/yui-<http://code.google.com/p/yui-**>
>>> compressor-ant-task/ <http://code.google.com/p/yui-**
>>> compressor-ant-task/ <http://code.google.com/p/yui-compressor-ant-task/>
>>> >
>>> You could create a Jira and contribute https://cwiki.apache.org/**
>>> confluence/display/OFBADMIN/OFBiz+Contributors+Best+****Practices<
>>> https://cwiki.**apache.org/confluence/display/**
>>> OFBADMIN/OFBiz+Contributors+**Best+Practices<https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices>
>>> >,
>>>
>>> this
>>> would be appreciated of course, not only for eCommerce BTW...
>>>
>>> Jacques
>>>
>>> From: "Mandeep Sidhu" 
>>>
>>>  Hi,
>>>
>>>>
>>>> I was wondering if it is possible to reduce the size of external
>>>> javascript's being fetched by making use of GZip encoding.
>>>>
>>>> The feeding server does understand and responds to GZip encoding,
>>>> however
>>>> Ofbiz is not requesting the content in GZip format.
>>>>
>>>> Can anybody please guide me as to what all modifications I need to make
>>>> so
>>>> that Ofbiz will include the GZip encoding option in the http header
>>>> while
>>>> requesting the external javascript file ?
>>>>
>>>> Regards,
>>>> Mandeeep Sidhu
>>>>
>>>>
>>>>
>>
>> --
>> Mandeep Singh Sidhu
>>
>>


-- 
Mandeep Singh Sidhu


Re: Using GZip compression for js files in Ecommerce module

2012-04-08 Thread Mandeep Sidhu
Perfect Jacques, that makes sense.

Thanks for the detailed explanation.

Regards,
Mandeep

On Sun, Apr 8, 2012 at 2:43 PM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> You are missing a point Mandeep.
>
> OFBiz is already compressing text files. This is done through the embedded
> Tomcat. See in ofbiz-containers.xml
> {code}
> 
> 
> {code}
>
> Reference: 
> http://tomcat.apache.org/**tomcat-7.0-doc/config/http.**html<http://tomcat.apache.org/tomcat-7.0-doc/config/http.html>
>
> So my proposition was only to add an yui-compressor-ant-task to compress
> js/css files as described here
> http://developer.yahoo.com/**yui/compressor/<http://developer.yahoo.com/yui/compressor/>
>
> Note that for bigest files we already use compressed versions (ending by
> min.js, see framework/common/widget/**CommonScreens.xml and
> specialpurpose/ecommerce/**widget/CommonScreens.xml)
>
>
> Jacques
>
> From: "Mandeep Sidhu" 
>
>> created Jira 4792
>>
>> https://issues.apache.org/**jira/browse/OFBIZ-4792<https://issues.apache.org/jira/browse/OFBIZ-4792>
>> but still this will only compress the files Jacques, what if the
>> application is consuming external jss/css files, if the remote server has
>> the capability to server GZip encoded content to the requesting client,
>> we'd need to send the GZip encoding option in the http header for which I
>> believe Ofbiz needs to be touched.
>>
>> Correct me if I am wrong.
>>
>> Regards,
>> Mandeep Sidhu
>>
>> On Sun, Apr 8, 2012 at 11:21 AM, Jacques Le Roux <
>> jacques.le.r...@les7arts.com> wrote:
>>
>>  I'd suggest to do it also for css 
>> http://code.google.com/p/yui-<http://code.google.com/p/yui-**>
>>> compressor-ant-task/ <http://code.google.com/p/yui-**
>>> compressor-ant-task/ <http://code.google.com/p/yui-compressor-ant-task/>
>>> >
>>> You could create a Jira and contribute https://cwiki.apache.org/**
>>> confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices<
>>> https://cwiki.**apache.org/confluence/display/**
>>> OFBADMIN/OFBiz+Contributors+**Best+Practices<https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices>
>>> >,
>>>
>>> this
>>> would be appreciated of course, not only for eCommerce BTW...
>>>
>>> Jacques
>>>
>>> From: "Mandeep Sidhu" 
>>>
>>>  Hi,
>>>
>>>>
>>>> I was wondering if it is possible to reduce the size of external
>>>> javascript's being fetched by making use of GZip encoding.
>>>>
>>>> The feeding server does understand and responds to GZip encoding,
>>>> however
>>>> Ofbiz is not requesting the content in GZip format.
>>>>
>>>> Can anybody please guide me as to what all modifications I need to make
>>>> so
>>>> that Ofbiz will include the GZip encoding option in the http header
>>>> while
>>>> requesting the external javascript file ?
>>>>
>>>> Regards,
>>>> Mandeeep Sidhu
>>>>
>>>>
>>>>
>>
>> --
>> Mandeep Singh Sidhu
>>
>>


-- 
Mandeep Singh Sidhu


Re: Using GZip compression for js files in Ecommerce module

2012-04-07 Thread Mandeep Sidhu
created Jira 4792
https://issues.apache.org/jira/browse/OFBIZ-4792
but still this will only compress the files Jacques, what if the
application is consuming external jss/css files, if the remote server has
the capability to server GZip encoded content to the requesting client,
we'd need to send the GZip encoding option in the http header for which I
believe Ofbiz needs to be touched.

Correct me if I am wrong.

Regards,
Mandeep Sidhu

On Sun, Apr 8, 2012 at 11:21 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> I'd suggest to do it also for css http://code.google.com/p/yui-**
> compressor-ant-task/ <http://code.google.com/p/yui-compressor-ant-task/>
> You could create a Jira and contribute https://cwiki.apache.org/**
> confluence/display/OFBADMIN/**OFBiz+Contributors+Best+**Practices<https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices>,
> this
> would be appreciated of course, not only for eCommerce BTW...
>
> Jacques
>
> From: "Mandeep Sidhu" 
>
>  Hi,
>>
>> I was wondering if it is possible to reduce the size of external
>> javascript's being fetched by making use of GZip encoding.
>>
>> The feeding server does understand and responds to GZip encoding, however
>> Ofbiz is not requesting the content in GZip format.
>>
>> Can anybody please guide me as to what all modifications I need to make so
>> that Ofbiz will include the GZip encoding option in the http header while
>> requesting the external javascript file ?
>>
>> Regards,
>> Mandeeep Sidhu
>>
>>


-- 
Mandeep Singh Sidhu


Using GZip compression for js files in Ecommerce module

2012-04-07 Thread Mandeep Sidhu
Hi,

I was wondering if it is possible to reduce the size of external
javascript's being fetched by making use of GZip encoding.

The feeding server does understand and responds to GZip encoding, however
Ofbiz is not requesting the content in GZip format.

Can anybody please guide me as to what all modifications I need to make so
that Ofbiz will include the GZip encoding option in the http header while
requesting the external javascript file ?

Regards,
Mandeeep Sidhu


Error in latest trunk build admin module(Receive Inventory)

2012-03-15 Thread Mandeep Sidhu
Hi,

I was going through the admin module, looked at the Tiny Gizmo product,
received the following error upon clicking the receive inventory link.

URL:
https://demo-trunk.ofbiz.apache.org/facility/control/ReceiveInventory?facilityId=WebStoreWarehouse&productId=GZ-1000&externLoginKey=EL933558864889


*ERROR MESSAGE:*
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://product/widget/facility/FacilityScreens.xml#ReceiveInventory]:
java.lang.IllegalArgumentException: Error running script at location
[component://product/webapp/facility/WEB-INF/actions/inventory/ReceiveInventory.groovy]:
javax.script.ScriptException: org.ofbiz.service.ServiceAuthException:
Security Error: To run getPartyAccountingPreferences you must have the one
of the following permissions: ACCTG_PREF_VIEW, ACCTG_PREF_ADMIN (Error
running script at location
[component://product/webapp/facility/WEB-INF/actions/inventory/ReceiveInventory.groovy]:
javax.script.ScriptException: org.ofbiz.service.ServiceAuthException:
Security Error: To run getPartyAccountingPreferences you must have the one
of the following permissions: ACCTG_PREF_VIEW, ACCTG_PREF_ADMIN)



Regards,
Mandeep Singh Sidhu