Well I'm back at it again, and have run into a few more problems..
Whenever I open a wocomponent in WOBuilder, I get a little message in
the top right corner "could not find project" and there is nothing in
the bottom half of my screen where the class variables should be.
Additionally, when I try to add a custom wocomponent none of mine show
up in the "WebObjects class to use" dropdown box. I'm sure this has
to do with my PB.project file, but i'm not 100% sure how to go about
fixing it.
Do you recommend using the PB project file or Xcode project file?
(Different recommendations between Panther & Tiger? WO5.2.3 and
WO5.2.4?)
Does each subproject need a project file in it? If so, does that mean
each subproject also needs a build.xml to contain the ant targets
which generate that project file?
Many Thanks,
Will
On 4/1/05, Chuck Hill <chil..lobal-village.net> wrote:
>
> On Apr 1, 2005, at 8:04 AM, Will Norris wrote:
>
> > Searching google provided only
> > <http://www.objectstyle.org/woproject/lists/woproject-dev/2002/10/
> > 0009.html>
> > and I'm afraid I may already know the answer to my question, but let's
> > try anyway. If there is another thread discussing this, just point me
> > in that direction.
> >
> > In trying to structure all of my project files in a more logical way,
> > I'm running into some problems with the PB.project file that is
> > generated. My directory structure goes a little something like..
> >
> > src/java -- *.java
> Use packages. This should be
> Project/src/com/foo/bar/*.java
>
> > src/resources -- eomodels and such
> >
> Use a sub-project:
> Project/Resources.subproj/
>
> > src/web -- web resources
>
> Use a subproject:
> Project/Web.subproj/
>
> > src/components -- *.java for wocomponents
> >
> Use packages
> Project/src/com/foo/bar/components/*.java
>
>
> > src/components/resources -- *.api & *.wo
> >
> Use a sub-project:
> Projects/Components.subproj/
> You have to manually move the .java files to
> Project/src/com/foo/bar/components/*.java after WOBuilder creates them,
> but only once.
>
> HTH
> Chuck
>
>
> > because of the location of my component resource files, my PB.project
> > file contains something similar to
> > WO_COMPONENTS =
> > (
> > src/wocomponents/resources/Main.wo,
> > src/wocomponents/resources/PageWrapper.wo,
> > ....
> > )
> >
> > When I want to add a PageWrapper component to my Main component, I can
> > do one of two things in WOBuilder for the class name...
> >
> > 1) "src/wocomponents/resources/PageWrapper" -- If i choose this, then
> > WOBuilder finds the correct files and allows me to set the bindings
> > normally; everything seems normal. However, when I actually run the
> > application, it is unable to find the component. At runtime, all the
> > components are in "Contents/Resources", but I believe it is looking
> > for this one in "Contents/Resources/src/wocomponents/resources/"
> >
> > 2) "PageWrapper" -- with this, it finds the correct component at
> > runtime but WOBuilder can't find the component at design time.
> >
> >
> > I know the easy solution is to place all my components in the root
> > directory (as Ulrich mentioned in his post), but this provides for a
> > very messy Project directory and just feels like a bad way to do
> > things. Am I stuck with doing that, or is there another way people
> > have figured out?
> >
> > Thanks,
> > Will
> >
> --
> Practical WebObjects - a book for intermediate WebObjects developers
> who want to increase their overall knowledge of WebObjects, or those
> who are trying to solve specific application development problems.
> http://www.global-village.net/products/practical_webobjects
>
>
This archive was generated by hypermail 2.0.0 : Wed May 04 2005 - 16:13:10 EDT