Re: Anyone have a phone number formatter?

2007-03-30 Thread Kevin Windham
On Mar 29, 2007, at 6:58 PM, Kevin Windham wrote: I am looking for info on how to create a formatter for phone numbers. I have surmised that I am supposed to use java.text.format in some fashion, but I am having trouble finding any examples. Does anyone have any examples they can share, or

Component rendered in java vs. via component

2007-03-30 Thread James Cicenia
Hello - I am now using javascript with YUI and I have a need to render the outputted html where it is normally rendered via one of my components. My normal component basically wraps around the text and creates an href that fires a method. Now I need to render this in java to fit in my javasc

Re: Generate HTML from a WOComponent programmatically

2007-03-30 Thread Mike Schrag
override appendToResponse and do: WOResponse newResponse = new WOResponse(); super.appendToResponse(newResponse, wocontext); String yourChildrenAsText = newResponse.contentString(); String transformedText = // perform your

Re: Network change

2007-03-30 Thread Kieran Kelleher
Thanks a lot Chuck. It was not obvious! On Mar 30, 2007, at 10:49 AM, Chuck Hill wrote: In case it is not obvious, you need to edit /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ Resources/Properties and add this line: WOHost=localhost

Re: Generate HTML from a WOComponent programmatically

2007-03-30 Thread Jacky Gagnon
On 07-03-30, at 17:13, Chuck Hill wrote: This sounds like a terrible idea. Yes I know ;-) Why not use a WORepetition and some custom components? What are you trying to do that can't be done that way? Its because I have already a Java class who can apply a complex transformation to my

Re: WebObjects classloader fun.

2007-03-30 Thread Q
On 30/03/2007, at 9:43 PM, Mike Schrag wrote: You need to use reflection to do that so you can poke at the underlying dictionary directly, which isn't pretty, but it works. Yikes ... I meant "via API". That's just evil :) If you think that's evil, I am not going to tell you what I am going

Killer WO Coders Needed in New York!

2007-03-30 Thread Alex Cone
Anyone in (or wanting to be in) the NY area who wants to be paid to code WO? CodeFab is hiring again! We are looking for a couple of WO engineers to work out of our offices in the "Hell's Kitchen" area of New York City. We'd like people with actual Web Objects and Java experience, with ex

Re: WOForm Question

2007-03-30 Thread Chuck Hill
On Mar 30, 2007, at 3:01 PM, David Avendasora wrote: I've got a somewhat complicated form I'm working on and I'm running into problems. I can't find detailed documentation on WOForm so here's my question (please point me to any useful documentation other than the WOBuiler Dynamic Component

WOForm Question

2007-03-30 Thread David Avendasora
I've got a somewhat complicated form I'm working on and I'm running into problems. I can't find detailed documentation on WOForm so here's my question (please point me to any useful documentation other than the WOBuiler Dynamic Components Reference): I have three entities Routing, RoutingSt

Re: Generate HTML from a WOComponent programmatically

2007-03-30 Thread Chuck Hill
This sounds like a terrible idea. Why not use a WORepetition and some custom components? What are you trying to do that can't be done that way? Chuck On Mar 30, 2007, at 1:38 PM, Jacky Gagnon wrote: Hi, I want to be able to generate HTML code from a WOComponent programmatically and i

Generate HTML from a WOComponent programmatically

2007-03-30 Thread Jacky Gagnon
Hi, I want to be able to generate HTML code from a WOComponent programmatically and insert the response into a String (to be display into a parent component). I tried something like this : public class ParentComponent extends WOComponent { //A WOString will display the res

Re: DBUnit configuration WOLips

2007-03-30 Thread Chuck Hill
The same as any other resource. There is a menu option to Include as Resource under the WOLips context menu. Or (safer IMHO), edit woproject/resources.include.patternset and add one of these **/small.xml **/*.xml The first is more specific, the second very generic, perhaps too generic.

DBUnit configuration WOLips

2007-03-30 Thread Michael Warner
I have a small xml file representing a dataset for DBUnit. During the build, I believe that I should add this file to the /Content/Resources directory of the .woa Can I add an ant task to the build.xml file that will do this in a handy way, then use code like the following (obtained fro

Re: Best non-Apple platform for WO?

2007-03-30 Thread Steve Sharman
Ken, I've recently deployed some of our applications across a set of Linux systems in a three tier config web, application server and database. Standard Dell hardware, and I used CentOS 4.4 as the operating system, with Apache 2.2 and MySQL 5. I used the instructions on the Wikibook for d

Re: Best non-Apple platform for WO?

2007-03-30 Thread Miguel Arroz
Hi! Check for FreeBSD, en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/ Deployment/Linux> for Linux and

Re: Best non-Apple platform for WO?

2007-03-30 Thread Mike Schrag
It's pretty painless, actually ... There's a wikibook entry on doing the full setup w/ JavaMonitor, etc. One of our sites is on Linux, actually. Ray also posted a blog entry just recently on a "stripped down" install, though he was doing direct connect via Apache rewriting. ms On Mar 30

Spell checkers

2007-03-30 Thread Bjerke, Michael A.
Has anyone had experience with adding a spell checker to a WO application? I have a trial version of JSpell Evolution from The Solution Café but can't get it to work with my application. It comes as a WAR file. I put the WAR file into my JBoss deployment directory. When JBoss expands it, the

Best non-Apple platform for WO?

2007-03-30 Thread Ken Anderson
It looks like I'm going to have to deploy WO on non-Apple hardware : ( I'm still trying, but I want to be prepared. Can anyone chime in with what they do, and how they do it? I would still like to use wotaskd, and I understand that it's no problem to do that. Any and all thoughts are appr

Re: Network change

2007-03-30 Thread Chuck Hill
In case it is not obvious, you need to edit /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ Resources/Properties and add this line: WOHost=localhost And, of course, restart wotaskd after that. Mike mentioned editing /etc/httpd/httpd.conf and setting ServerName localhost I ju

Re: snapshot does not contain value for attribute named x with snapshot key: x ?

2007-03-30 Thread Chuck Hill
Hi Alan, On Mar 30, 2007, at 7:14 AM, Alan Zebchuk wrote: Does anyone know what would cause the following error and what the solution is? You are not properly locking all of the editing contexts and / or violating EOF Commandments (Google that term for the details). er.extensions.ERXAp

Re: snapshot does not contain value for attribute named x with snapshot key: x ?

2007-03-30 Thread Jacky Gagnon
Hi Alan, Check if you follow the EOF commandments : http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ The_EOF_Commandments And be sure to lock correctly your editing context : http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Context_and_Database_Locking

snapshot does not contain value for attribute named x with snapshot key: x ?

2007-03-30 Thread Alan Zebchuk
Does anyone know what would cause the following error and what the solution is? er.extensions.ERXApplication (ERXApplication.java:904) - Exception caught: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation {_dbSnapshot = {}; _entity = "MyEntity"; _newRow = {c

RE: Anyone have a phone number formatter?

2007-03-30 Thread David Aspinall
Message formatting is hard with Exchange WebMail (sucks) but here is a method we use to strip out the garbage and then submit the different parsed values for area code, number and extension. /** assumes the phone number is "(111) 222- extension 444" which we reduce to 111222444 an

Re: Network change

2007-03-30 Thread Kieran Kelleher
I have been using my Bonjour hostname "kieranbook.local". I will try localhost. Thanks, Kieran On Mar 29, 2007, at 11:45 PM, Chuck Hill wrote: What do you use for a host name? I have set my wotaskd to run under localhost and also launch my apps with -WOHost localhost. Chuck On Mar 29,

Re: Adding attributes to markup

2007-03-30 Thread Zak Burke
Webobjects Developer wrote on 3/29/07 5:33 PM: If I have an HTML template and I want to use a WO component to provide an attribute on markup, what is the best way to do that? I've used the following type of construct, but I'm uncomfortable with it, at best: class="alt"> I use something the f

Re: WebObjects classloader fun.

2007-03-30 Thread Mike Schrag
You need to use reflection to do that so you can poke at the underlying dictionary directly, which isn't pretty, but it works. Yikes ... I meant "via API". That's just evil :) ms ___ Do not post admin requests to the list. They will be ignored. Web