[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Location of dispatcherinfo.xml  XML
Forum Index -> Development
Author Message
jmewes

Active

Joined: 19/11/2017 06:20:00
Messages: 16
Offline

Hi,

In the Developer's Guide page 26 it is mentioned that the "dispatcherinfo.xml" need to be located in the same package as the Dispatcher:

Code:
 managedbeans                 <== Package
   Dispatcher 
   AddressDetailUI
   dispatcherinfo.xml
 


I tried to put it in the Java package but placing it here did not work out:
Code:
 /src/main/java/io/github/kschworkflows/Dispatcher.java
 /src/main/java/io/github/kschworkflows/dispatcherinfo.xml
 

After some time I successfully tried to put it here:
Code:
 /src/main/resources/io/github/kschworkflows/dispatcherinfo.xml
 


Maybe the documentation could be improved with a more detailed description where the "dispatcherinfo.xml" actually needs to reside.

Kind regards,

Jan
[WWW]
fhuellmantel

Active

Joined: 02/02/2016 13:57:32
Messages: 7
Offline

Hello,

check http://www.captaincasa.com/pdf/eclnt_DevelopersGuide.pdf page 27:

The Dispatcher class that is referenced also was added to your project when creating the
project. Of course you can update the faces-config.xml to your needs, e.g. by moving the
Dispatcher-class into a different package then the one proposed! 


So check YourProject\webcontent\WEB-INF\faces-config.xml and chance it:

Code:
<managed-bean>
      <managed-bean-name>d</managed-bean-name>
      <managed-bean-class>managedbeans.Dispatcher</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>


BR
jmewes

Active

Joined: 19/11/2017 06:20:00
Messages: 16
Offline

fhuellmantel wrote:
Hello,

check http://www.captaincasa.com/pdf/eclnt_DevelopersGuide.pdf page 27:

The Dispatcher class that is referenced also was added to your project when creating the
project. Of course you can update the faces-config.xml to your needs, e.g. by moving the
Dispatcher-class into a different package then the one proposed! 


So check YourProject\webcontent\WEB-INF\faces-config.xml and chance it:

Code:
<managed-bean>
      <managed-bean-name>d</managed-bean-name>
      <managed-bean-class>managedbeans.Dispatcher</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>


BR 


Hi,

The "faces-config.xml" was already adjusted. The point is that when the "dispatcherinfo.xml" resides in the same directory as the Java code, it's configuration doesn't get applied. Maybe it is "common sense" to put it in the resources directory. However, it might be useful to point this out in the docs in order to make building an application with CaptainCasa as smooth as possible.
[WWW]
jmewes

Active

Joined: 19/11/2017 06:20:00
Messages: 16
Offline

The point when you need this is when you want to structure your page beans in different packages ....
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team