OFBiz
  1. OFBiz
  2. OFBIZ-1382

Setup Folder to make Configuration easier.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Later
    • Affects Version/s: SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: framework
    • Labels:
      None
    • Environment:

      svn 591598

      Description

      New application to pull all setup functions into one area.
      The menus and screens only organize the configuration and setup that already exist.
      might add some service to validate all configurations that are changed are valid in the future.

      1. Setup.zip
        90 kB
        BJ Freeman

        Issue Links

          Activity

          Hide
          BJ Freeman added a comment -
          Show
          BJ Freeman added a comment - see https://issues.apache.org/jira/browse/OFBIZ-635 for a different approach
          Hide
          BJ Freeman added a comment -

          The Setup I uploaded is minus the "wizard"
          I guess I did not explain good enough.
          First I was hoping to see if anyone was interested this approach.
          apparently not.
          so I will not put more energy in to it at this point.
          I have it work for my purposes for my clients.

          So I will close it.

          Show
          BJ Freeman added a comment - The Setup I uploaded is minus the "wizard" I guess I did not explain good enough. First I was hoping to see if anyone was interested this approach. apparently not. so I will not put more energy in to it at this point. I have it work for my purposes for my clients. So I will close it.
          Hide
          Jacques Le Roux added a comment -

          I don't know what others think, and I know that there are other will to do similar things in maybe other ways, but I wonder if you approach should not use a Wizard to really facilitate setup. One more time this is just an idle idea, my 2 cents in other words...

          Show
          Jacques Le Roux added a comment - I don't know what others think, and I know that there are other will to do similar things in maybe other ways, but I wonder if you approach should not use a Wizard to really facilitate setup. One more time this is just an idle idea, my 2 cents in other words...
          Hide
          BJ Freeman added a comment -

          I am already using it in ver 3.0.
          this is just a trunk version.
          I believe once I implement the actual code that tracks the setup you will see it is easier.
          My main purpose at this point is to show the structure.
          But based on Japaco comments. I doubt it will stay open for long, if there is not any interest.

          Show
          BJ Freeman added a comment - I am already using it in ver 3.0. this is just a trunk version. I believe once I implement the actual code that tracks the setup you will see it is easier. My main purpose at this point is to show the structure. But based on Japaco comments. I doubt it will stay open for long, if there is not any interest.
          Hide
          Jacques Le Roux added a comment -

          I just tried and I wonder if this will actually not bring confusion. Be sure that you get a consensus before working on this application unless you need it for your own purposes...

          Show
          Jacques Le Roux added a comment - I just tried and I wonder if this will actually not bring confusion. Be sure that you get a consensus before working on this application unless you need it for your own purposes...
          Hide
          BJ Freeman added a comment -

          This version has one menu completed to show how it works.
          click on Setup Tab
          then
          Do setups for the Applications
          then
          SetupProduct
          then
          SetupWebsite

          you will see the website setup page
          /content/control/EditWebSite

          you notice that is ask for product Store in the page.
          so this SetupWebsite menu would be grayed out till the Product Store setup was done.

          any other setup code wold not be in the Setup folder.
          the setup code would be in the app folder it was meant for.

          if others wish to put some time on this or just list the setup page you are aware of I will put them in.

          Show
          BJ Freeman added a comment - This version has one menu completed to show how it works. click on Setup Tab then Do setups for the Applications then SetupProduct then SetupWebsite you will see the website setup page /content/control/EditWebSite you notice that is ask for product Store in the page. so this SetupWebsite menu would be grayed out till the Product Store setup was done. any other setup code wold not be in the Setup folder. the setup code would be in the app folder it was meant for. if others wish to put some time on this or just list the setup page you are aware of I will put them in.
          Hide
          BJ Freeman added a comment -

          this is cleaned up some what.
          still needs to be fleshed out.
          I choose the stepproducts to finish.
          right now only the setup/widets/setup/applcation/prouct/Screens.xml shows how I am implementing gathering the setups.
          see <screen name="SetupWebsite">

          you can drill down by selecting
          Set up applications.
          Setup Products
          Setup Websites.

          again this phase is more proof of concept.
          I will keep filling it out unless others want to assist or have input.

          also Note that any special form of added testing should go in the application folder under setup for webapp and widgets.
          the application-controller.xm in the Setup main folder should be updated.

          Show
          BJ Freeman added a comment - this is cleaned up some what. still needs to be fleshed out. I choose the stepproducts to finish. right now only the setup/widets/setup/applcation/prouct/Screens.xml shows how I am implementing gathering the setups. see <screen name="SetupWebsite"> you can drill down by selecting Set up applications. Setup Products Setup Websites. again this phase is more proof of concept. I will keep filling it out unless others want to assist or have input. also Note that any special form of added testing should go in the application folder under setup for webapp and widgets. the application-controller.xm in the Setup main folder should be updated.
          Hide
          BJ Freeman added a comment -

          as per the previous comments, the setuptab is suppressed.
          I can change this so that only someone with SETUP permissions sees it.
          I am trying to do this with as little src as possible,
          I think for what needs to be done I can accomplish this in the simple-methods and services.
          this is just for the menu system where menus are presented as certain task are completed.
          The whole Idea is to keep all the configuration code in the actual applications.
          This is just a menu driven way to consolidate them.

          I did get this error
          2007-12-16 06:54:55,140 (main) [ComponentLocationResolver.java:43 :WARN ] Unable to get file URL for component location; expanded location was [ofbiz_svn/specialpurpose/setup/webapp/WEB-INF/accounting-controller.xml], original location was [component://setup/webapp/WEB-INF/accounting-controller.xml]
          2007-12-16 06:54:55,140 (main) [ UtilXml.java:174:WARN ] [UtilXml.readXmlDocument] URL was null, doing nothing

          for the included controllers
          so will fix and upload with the the next version.

          Show
          BJ Freeman added a comment - as per the previous comments, the setuptab is suppressed. I can change this so that only someone with SETUP permissions sees it. I am trying to do this with as little src as possible, I think for what needs to be done I can accomplish this in the simple-methods and services. this is just for the menu system where menus are presented as certain task are completed. The whole Idea is to keep all the configuration code in the actual applications. This is just a menu driven way to consolidate them. I did get this error 2007-12-16 06:54:55,140 (main) [ComponentLocationResolver.java:43 :WARN ] Unable to get file URL for component location; expanded location was [ofbiz_svn/specialpurpose/setup/webapp/WEB-INF/accounting-controller.xml] , original location was [component://setup/webapp/WEB-INF/accounting-controller.xml] 2007-12-16 06:54:55,140 (main) [ UtilXml.java:174:WARN ] [UtilXml.readXmlDocument] URL was null, doing nothing for the included controllers so will fix and upload with the the next version.
          Hide
          Jacques Le Roux added a comment -

          This is the kind of messages I get:

          2007-12-16 10:59:33,234 (main) [ ControlServlet.java:65 :INFO ] [ControlServlet.init] Loading Control Servlet mounted on path D:\workspace\ofbizRun\specialpurpose\setup\webapp\setup\
          2007-12-16 10:59:33,234 (main) [ RequestHandler.java:72 :INFO ] [RequestHandler Loading...]
          2007-12-16 10:59:33,328 (Dispatcher-Thread-1) [ ?:? :ERROR] Discarded 6 messages due to full event buffer including:
          ---- runtime exception report --------------------------------------------------
          Exception: java.lang.NullPointerException
          Message: null
          ---- stack trace ---------------------------------------------------------------
          java.lang.NullPointerException
          org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:148)
          org.ofbiz.webapp.control.ConfigXMLReader.loadConfigMap(ConfigXMLReader.java:406)
          org.ofbiz.webapp.control.ConfigXMLReader.loadConfigMap(ConfigXMLReader.java:420)
          org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:77)
          org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:53)
          org.ofbiz.webapp.control.ConfigXMLReader.getConfigMap(ConfigXMLReader.java:397)
          org.ofbiz.webapp.control.RequestManager.<init>(RequestManager.java:56)
          org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:74)
          org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:61)
          org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:302)
          org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:71)
          org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
          org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          org.apache.catalina.startup.Embedded.start(Embedded.java:822)
          org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:218)
          org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79)
          org.ofbiz.base.start.Start.startStartLoaders(Start.java:261)
          org.ofbiz.base.start.Start.startServer(Start.java:310)
          org.ofbiz.base.start.Start.start(Start.java:314)
          org.ofbiz.base.start.Start.main(Start.java:397)

          No Setup tab appears

          Show
          Jacques Le Roux added a comment - This is the kind of messages I get: 2007-12-16 10:59:33,234 (main) [ ControlServlet.java:65 :INFO ] [ControlServlet.init] Loading Control Servlet mounted on path D:\workspace\ofbizRun\specialpurpose\setup\webapp\setup\ 2007-12-16 10:59:33,234 (main) [ RequestHandler.java:72 :INFO ] [RequestHandler Loading...] 2007-12-16 10:59:33,328 (Dispatcher-Thread-1) [ ?:? :ERROR] Discarded 6 messages due to full event buffer including: ---- runtime exception report -------------------------------------------------- Exception: java.lang.NullPointerException Message: null ---- stack trace --------------------------------------------------------------- java.lang.NullPointerException org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:148) org.ofbiz.webapp.control.ConfigXMLReader.loadConfigMap(ConfigXMLReader.java:406) org.ofbiz.webapp.control.ConfigXMLReader.loadConfigMap(ConfigXMLReader.java:420) org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:77) org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:53) org.ofbiz.webapp.control.ConfigXMLReader.getConfigMap(ConfigXMLReader.java:397) org.ofbiz.webapp.control.RequestManager.<init>(RequestManager.java:56) org.ofbiz.webapp.control.RequestHandler.init(RequestHandler.java:74) org.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:61) org.ofbiz.webapp.control.ControlServlet.getRequestHandler(ControlServlet.java:302) org.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:71) org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) org.apache.catalina.core.StandardHost.start(StandardHost.java:736) org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) org.apache.catalina.startup.Embedded.start(Embedded.java:822) org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:218) org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) org.ofbiz.base.start.Start.startServer(Start.java:310) org.ofbiz.base.start.Start.start(Start.java:314) org.ofbiz.base.start.Start.main(Start.java:397) No Setup tab appears
          Hide
          Jacques Le Roux added a comment - - edited

          Hi BJ,

          There is no sources, nor libs, so as is this can't work. Am I missing something ?

          Show
          Jacques Le Roux added a comment - - edited Hi BJ, There is no sources, nor libs, so as is this can't work. Am I missing something ?
          Hide
          BJ Freeman added a comment -

          this is the complete folder structure and implementation form
          I did not know how to make it into a patch.
          you will see that the widgets and controllers for each application is seperate.
          this allows those to be moved into the appropiate applications if it is decided that that part should be with the application.

          Note this is a work in progress I should finish sometime this weekend.
          i submitted it so others may comment and/or help.

          Show
          BJ Freeman added a comment - this is the complete folder structure and implementation form I did not know how to make it into a patch. you will see that the widgets and controllers for each application is seperate. this allows those to be moved into the appropiate applications if it is decided that that part should be with the application. Note this is a work in progress I should finish sometime this weekend. i submitted it so others may comment and/or help.
          Hide
          BJ Freeman added a comment -

          this is a complete application
          setup has it own top tabs
          it will be run only as a separate operations from the URL http://localhost:8443/setup/control/main
          if this is accepted may use ant or a command like to activate this the first time.
          It has its own SETUP security permissions
          I put the folder in the specialpurpose but can be moved around
          The widgets are broken out by application and framework so if it wants to be re-factored it can be done easier.
          i status system has been imployed to build if the menu will appear.
          so by setting up the status sequence and/or changes you can determine how the User will initialize each application.
          This is just a frame work to include pages from the different applications and framework that need to be implemented.
          The bsh files that are needed are called out from the Screens. and reference from their original location.

          Show
          BJ Freeman added a comment - this is a complete application setup has it own top tabs it will be run only as a separate operations from the URL http://localhost:8443/setup/control/main if this is accepted may use ant or a command like to activate this the first time. It has its own SETUP security permissions I put the folder in the specialpurpose but can be moved around The widgets are broken out by application and framework so if it wants to be re-factored it can be done easier. i status system has been imployed to build if the menu will appear. so by setting up the status sequence and/or changes you can determine how the User will initialize each application. This is just a frame work to include pages from the different applications and framework that need to be implemented. The bsh files that are needed are called out from the Screens. and reference from their original location.
          Hide
          BJ Freeman added a comment -

          Don't have one for Trunk.
          now you have asked will make it a priority.
          in a few days.

          Show
          BJ Freeman added a comment - Don't have one for Trunk. now you have asked will make it a priority. in a few days.
          Hide
          Jacques Le Roux added a comment -

          BJ,

          Do you have a patch ?

          Show
          Jacques Le Roux added a comment - BJ, Do you have a patch ?
          Hide
          BJ Freeman added a comment -

          Jacques:
          this does not created new setup pages, only menus and screens that pull in the already available setup pages.
          the confusing part might be that the Screens are just a way to reference the already available widgets or Ftls that deal with setups.

          Show
          BJ Freeman added a comment - Jacques: this does not created new setup pages, only menus and screens that pull in the already available setup pages. the confusing part might be that the Screens are just a way to reference the already available widgets or Ftls that deal with setups.
          Hide
          Jacques Le Roux added a comment -

          My answer on ML was that setting applications parameters should be done in their respective applications. This enforces modularisation which is a recommended best practice and should never be forget. I say that for the person who put fiscal year setting in webtools while it should be in accouting. Except if I'm missing something ?

          Show
          Jacques Le Roux added a comment - My answer on ML was that setting applications parameters should be done in their respective applications. This enforces modularisation which is a recommended best practice and should never be forget. I say that for the person who put fiscal year setting in webtools while it should be in accouting. Except if I'm missing something ?
          Hide
          BJ Freeman added a comment -

          BTW I factored out the configuration stuff for framework and left it in the webtools

          Show
          BJ Freeman added a comment - BTW I factored out the configuration stuff for framework and left it in the webtools
          Hide
          BJ Freeman added a comment -

          I posted an email about dependencies suject configuration files and Framework Dependency
          in the dev ML
          however if dependencies is not an issue then I will post my current webtools menu and screens.
          we can close this and put it under webtools refactoring if you want

          Show
          BJ Freeman added a comment - I posted an email about dependencies suject configuration files and Framework Dependency in the dev ML however if dependencies is not an issue then I will post my current webtools menu and screens. we can close this and put it under webtools refactoring if you want
          Hide
          Adrian Crum added a comment -

          BJ,

          When we discussed a setup/configuration UI in the past, it was suggested that it go in the Webtools component. What do you think?

          I'd like to help out with this.

          Show
          Adrian Crum added a comment - BJ, When we discussed a setup/configuration UI in the past, it was suggested that it go in the Webtools component. What do you think? I'd like to help out with this.

            People

            • Assignee:
              Unassigned
              Reporter:
              BJ Freeman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development