Re: Newbie WOImageButton Question
Re: Newbie WOImageButton Question
- Subject: Re: Newbie WOImageButton Question
- From: Tarun Reddy <email@hidden>
- Date: Wed, 11 Oct 2006 22:22:38 -0600
On Oct 11, 2006, at 10:01 PM, Chuck Hill wrote:
On Oct 11, 2006, at 8:37 PM, Tarun Reddy wrote:
It seems a bit of an over kill to use a WOImage for the images
(and I believe there is a Project Wonder component for CSS) if
they are static and have no access restrictions. Ideally, I would
be able to put the entire hierarchy in my WOLips project directory
and reference them from there.
You can pretty much put them where ever you want. I tend to keep
them in a directory separate from the project (makes it easier to
share among applications, easier to work with designers that don't
know WO). But, really, the choice is up to you as to where to keep
them. The one thing you need to do, and ought to do anyway, is to
not use Direct Connect (launch with -WODirectConnectEnabled false)
and run Apache to serve the images. Direct Connect is not your
friend for this. Then (thanks to Art for this, I think), create a
soft link from the doc root to the static resources for your
project. Then for WOImage, you can make a binding like src="/MyApp/
images/button.gif";
Ah yes.. that would make more sense. Basically set up my Mac to act
like my deployment environment and use it's Apache for the serving up
the static resources (and I assume to setup up the webobjects cgi-
wrapper). Haven't looked into the second part since I was originally
planning on using tomcat to deploy my app, but maybe this is the time
to look at it.
Off to figure that out....
Thanks again!
Tarun
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden