Re: Reporting form errors to the user

2005-12-08 Thread wojingo
[EMAIL PROTECTED] wrote: In my day job I build websites in a scripted environment. The "conventional wisdom" on handling form validation errors goes like this: the user goes to /foo and fills in the form. When they hit the submit button, they are routed back to /foo again, except this ti

Reporting form errors to the user

2005-12-08 Thread womail
In my day job I build websites in a scripted environment. The "conventional wisdom" on handling form validation errors goes like this: the user goes to /foo and fills in the form. When they hit the submit button, they are routed back to /foo again, except this time it's a POST instead of

Re: WOExceptionPage (etc) customisation

2005-12-08 Thread Lachlan Deck
Hi Andrew, On 09/12/2005, at 3:33 PM, [EMAIL PROTECTED] wrote: I'm not 100% sure how you're vending these pages or how the problem is expressing itself, but I did an article on error pages in WO some time ago on STEPWISE which might shed some light on the mechanics of this for you. You ca

RE: WOExceptionPage (etc) customisation

2005-12-08 Thread apl
Hello Lachlan; I'm not 100% sure how you're vending these pages or how the problem is expressing itself, but I did an article on error pages in WO some time ago on STEPWISE which might shed some light on the mechanics of this for you. You can get a PDF dump of this article here... http:

Re: WOExceptionPage (etc) customisation

2005-12-08 Thread Chuck Hill
I am not sure I understand. You are creating a custom component named WOExceptionPage? When it is in the application it is used automatically, but not when in a framework? If so, I am not sure what you expected. That fact that it works at all in the Application is is probably (I am gues

Re: Encrypted Database

2005-12-08 Thread Arturo Pérez
On Dec 7, 2005, at 8:29 AM, James Cicenia wrote: All great thoughts, critiques, etc., I especially like the mySQLToy reference. ;-) Maybe this will all go away, I don't know, but this could be a very large account for us. They want their own box on their own network with all the data encr

WOExceptionPage (etc) customisation

2005-12-08 Thread Lachlan Deck
Hi there, I'm wanting to create a custom component for WOExceptionPage (and for similar pages) I'm finding that if I create these in the application project - no problems - but if they're in a custom framework they're not used. Does anyone have any ideas on this? Thanks. with regard

Re: Finding the top level component

2005-12-08 Thread Galen Rhodes
This is quick and dirty but works really well. /** Returns the root parent component for this component. The root component * is the component whose parent is null.  If this is the root component * then this method returns 'this'. * @return The root parent component. */ public WOComponent rootC

Re: Zip file unlock?

2005-12-08 Thread David Holt
Kieran, The only one that I could find that may do it is: http://www.nsoftware.com/ipworks/zip/ (see the java link on the left hand side) It's not cheap. David -- Freedom of will is the ability to do gladly that which I must do. Carl Jung from Sunbeams: http://www.thesunmagazine.org On 7 D

Re: Help deciphering SocketException, (anchor problem)

2005-12-08 Thread Chuck Hill
Check the page source for bad HTML. Are you sure there are quotes around the #EditRow61? Broken pipe means the woadaptor or browser hung up on the app before receiving a response. Chuck On Dec 8, 2005, at 11:23 AM, Baiss Eric Magnusson wrote: I had dynamic anchors working, but when I sw

Re: WOResourceManager and localization issue

2005-12-08 Thread Chuck Hill
Just because you read it in my book, does not mean it is 100% correct. I am an English speaker in an English speaking area, so my experience with this is limited. Jean-François is correct, it is trying to guess and guessing wrong. His UTF-16 method is one solution. Another is to use NS

Re: Finding the top level component

2005-12-08 Thread Peter Vandoros
I believe context().page() will give the current page (top level component) that you are working with. Thanks Peter Miguel Arroz wrote: Hi! When working in a method of a sub-component, is there a straightforward way to get the top level component (assuming that there is more that one

Finding the top level component

2005-12-08 Thread Miguel Arroz
Hi! When working in a method of a sub-component, is there a straightforward way to get the top level component (assuming that there is more that one component level, so that the component's parent () is also not the top level one)? Yours Miguel Arroz "GUERRA E' PAZ LIBER

Re: WOFileUpload: checking against Windows filepath

2005-12-08 Thread David Holt
Xavier, Please don't cross post to both lists. See below for a solution that I found and posted last year. David Begin forwarded message: From: David Holt <[EMAIL PROTECTED]> Date: 15 December 2004 3:26:01 PM GMT-08:00 To: Chuck Hill <[EMAIL PROTECTED]> Cc: WebObjectsDev Subject: Re: WOFileUp

WOFileUpload: checking against Windows filepath

2005-12-08 Thread Dev WO
Hi all, searching for solving an issue (I thought weren't be there) I found this thread... I'm using NSPathUtilities.lastPathComponent, but it appears I still get the entire path!! like in the post below. I'll ask my client tomorrow to check which version of IE was used. But does anyone knows

Re: using an int for a EOQualifier

2005-12-08 Thread Boris Herman
Hi I'm actually having issue using an int in a qualifier. here probably is an easier and more elegant way but this is what I did in the doSearch() action when I encountered the exact same problem: String webid; webid=(String)qryDict.valueForKey("persWebid"); if (webid!=null) { qryDict.take

Re: How to install JavaMail

2005-12-08 Thread Benjamin Miller
try something like:public class Mobile { public javax.mail.Session mailTransSession; public Properties properties; public void someMethod() { properties = new Properties(); mailTransSession =  javax.mail.Session.getInstance(properties); }The mail transport session is becoming mixed up with WOSess

Help deciphering SocketException, (anchor problem)

2005-12-08 Thread Baiss Eric Magnusson
I had dynamic anchors working, but when I switched Review page to a SubComponent structured web page, the anchors stopped working. In below SecureComponent (SC) is my super class of WOComponent, and prefixes all the web pages. When I add the anchor to the response I get a SocketException: B

Re: WOResourceManager and localization issue

2005-12-08 Thread Jean-François Veillette
WOResourceManager try to 'guess' the encoding of the file. For all 8bits encoding, it cannot guess it and revert to ISO-Latin1. The only way for WOResourceManager to guess it properly is to use UTF-16. - jfv Le 05-12-08, à 14:15, Miguel Arroz a écrit : Hi! I'm reading a string from a .s

WOResourceManager and localization issue

2005-12-08 Thread Miguel Arroz
Hi! I'm reading a string from a .strings file that contains accentuated characters. The code is the following: public static String portugueseLanguageName() { return Application.application().resourceManager ().stringForKey(Session.PORTUGUESE_LANGUAGE_KEY, Applica

Re: AJAX and You backtracked too far error

2005-12-08 Thread Stirling Olson
Just in case anyone uses this in the future, I believe you need the following line at the bottom of the setIsRPCMethod() function: context().request().setUserInfo( ui ); Otherwise, this works like a charm. Thanks Greg. -Stirling On Nov 15, 2005, at 4:47 PM, Greg Hulands wrote: In you su

Re: Request for feedback on proposed project

2005-12-08 Thread Chuck Hill
On Dec 7, 2005, at 9:24 PM, [EMAIL PROTECTED] wrote: Chuck Hill <[EMAIL PROTECTED]> wrote on 12/06/2005 02:18:10 PM: > With Jasper quickly gaining popularity in the Java world, I think it > would be valuable to the community to have this WO integration > available. It sounds like you have do

Re: UTF-8 multilingual form input

2005-12-08 Thread Chuck Hill
On Dec 8, 2005, at 3:11 AM, Ralph Scheuer wrote: Hi everybody, we have an application with UTF-8 HTML encoding where we input multilingual form data (Czech, Polish, English, German, Slovenian, Russian, Bulgarian, Turkish, etc.). This works in almost every case. It _always_ works for cyri

Switching to document style...

2005-12-08 Thread Alexander Kholodovitch
Hi all, how can i switch my web service from rpc to document style? I have in my application constructor following line: WOWebServiceRegistrar.registerWebService(myClass.class, false); With the the boolean set to true (rpc style) it works, but set to false (document style) i get following Exce

Re: How to install JavaMail

2005-12-08 Thread David LeBer
On 8-Dec-05, at 11:05 AM, Peteris Krisjanis wrote: :) Yeah, I know, I hate sometimes JB for not showing all classes. However, another problem accoured with JavaMail - I have such Java class. import com.webobjects.foundation.*; import com.webobjects.eocontrol.*; import com.webobjects.appse

Switching to document style...

2005-12-08 Thread Александр Холодович
Hi all, how can i switch my web service from rpc to document style? I have in my application constructor following line: WOWebServiceRegistrar.registerWebService(myClass.class, false); With the the boolean set to true (rpc style) it works, but set to false (document style) i get followin

Re: How to install JavaMail

2005-12-08 Thread Peteris Krisjanis
:)Yeah, I know, I hate sometimes JB  for not showing all classes.However, another problem accoured with JavaMail - I have such Java class.import com.webobjects.foundation.*;import com.webobjects.eocontrol.*;import com.webobjects.appserver.*;import com.webobjects.eoaccess.*;import java.util.Properti

Re: How to install JavaMail

2005-12-08 Thread Helge Staedtler
Am 08.12.2005 14:44 Uhr schrieb "Peteris Krisjanis" unter <[EMAIL PROTECTED]>: > It could be rahter simple and stupid question, but how install > JavaMail, where to find mail.jar un activation.jar according to this > page which should be used. > > http://developer.apple.com/documentation/WebOb

Re: How to install JavaMail

2005-12-08 Thread Ralph Scheuer
For portability reasons, you might also want to consider sticking the jars into a framework: just copy them into a subdir called "Java" and make a copy files build phase to your application server target in XCode. Add your jars to that build phase and set the copy target to "Resources / Jav

Re: How to install JavaMail

2005-12-08 Thread Robert Walker
Download JavaMail here: http://java.sun.com/products/javamail/downloads/index.html Install mail.jar and activation.jar in either: Option 1: /Library/WebObjects/Extenstions or Option 2: /Library/Java/Extensions Option 1 makes JavaMail available to all WebObjects applications on the box. Op

How to install JavaMail

2005-12-08 Thread Peteris Krisjanis
It could be rahter simple and stupid question, but how install JavaMail, where to find mail.jar un activation.jar according to this page which should be used. http://developer.apple.com/documentation/WebObjects/Reference/API/com/ webobjects/appserver/WOMailDelivery.html Also I can't find a

Re: WODisplayGroup Multiple deletion

2005-12-08 Thread David LeBer
On 8-Dec-05, at 3:57 AM, .::welemski::. wrote: Hi, I am using WODisplayGroup to display all the items in my Entity. I am able to delete using "selectObject(EntityName) then calling the delete() method" Is it possible to do a multiple deletion using WODisplayGroup with checkbox? Grab an

UTF-8 multilingual form input

2005-12-08 Thread Ralph Scheuer
Hi everybody, we have an application with UTF-8 HTML encoding where we input multilingual form data (Czech, Polish, English, German, Slovenian, Russian, Bulgarian, Turkish, etc.). This works in almost every case. It _always_ works for cyrillic input and in most cases, for all other langua

WODisplayGroup Multiple deletion

2005-12-08 Thread .::welemski::.
Hi, I am using WODisplayGroup to display all the items in my Entity. I am able to delete using "selectObject(EntityName) then calling the delete() method" Is it possible to do a multiple deletion using WODisplayGroup with checkbox? :D--  -- -- -- -- -- -- -- -- -- -- --   welemski --