Re: Newbie WOImageButton Question
Re: Newbie WOImageButton Question
- Subject: Re: Newbie WOImageButton Question
- From: Chuck Hill <email@hidden>
- Date: Wed, 11 Oct 2006 21:31:30 -0700
On Oct 11, 2006, at 9:22 PM, Tarun Reddy wrote:
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).
Perzactly!
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....
Not much to do. Just go into System Preferences - Sharing and turn
on Personal Web Sharing. It should just work from that point. If
you want SSL and to use mod_webobjects instead of the CGI adaptor it
is a small bit more work.
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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