Re: WOText Escape HTML Broken?

2008-08-03 Thread Rams

On Aug 2, 2008, at 4:06 PM, Mr. Frank Cobia wrote:

The escapeHTML binding has not effect on WOText (or ERXWOText). Is  
this the way it is supposed to behave or is it broken. I am using WO  
5.4.2 on Mac OS.


I think escapeHTML is only for text display (WOString) and not for  
text input(WOText).  Only bindings for name, value, and disabled seem  
to be available for WOText.


As a follow up question, whether it is broken or not, is there a way  
for me to create a textarea without the HTML being escaped? All I am  
really looking for is to insert br into the text.


If you want to display a WOString without escaping HTML, you'll  
probably have to parse the input from your WOText and remove anything  
that isn't a br / yourself.  I'm using Jericho HTML parser and it  
works quite nicely.


For your purposes, that may be overkill.  Alternately, although I've  
never used it myself, it appears you could bind an  
er.extensions.formatters.ERXSimpleHTMLFormatter to your WOString's  
formatter binding to convert the line breaks.


rg

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Parameterized NSArray in 5.3.3

2008-07-23 Thread Rams

Okay, now I feel dumb :-)~

Generics wasn't broken!  The problem was I was using WOContext's  
directActionURLForActionNamed with generics and it only accepts a  
NSDictionaryString, Object and I was trying to pass it a  
NSDictionaryString, String in almost every case.  That worked in  
5.3.3 since arguments weren't parameterized so I though the  
generics were disabled.  Yeah, dumb mistake. Anyway, after watching,


http://www.youtube.com/watch?v=pi_I7oD_uGI

Shouldn't that parameter be NSDictionary? extends String, ? extends  
Object instead, according to PECS?  Is there some reason Apple isn't  
doing that?


rg

On Jul 23, 2008, at 12:15 AM, Guido Neitzer wrote:


On 22.07.2008, at 22:05, Rams wrote:

There doesn't seem to be a way to move just the Wonder frameworks  
there.  Moving all the WebObjects frameworks to the top or the  
bottom of the list has no effect.


The best is to checkout the source from SVN from the Wonder  
frameworks you use and use that in Eclipse. You can then move the  
frameworks.


Check this here:

http://wiki.objectstyle.org/confluence/display/WONDER/Working+with+Wonder+source+in+Eclipse

cug

--
http://www.event-s.net





smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Parameterized NSArray in 5.3.3

2008-07-23 Thread Rams

Just reported :-)

On Jul 23, 2008, at 6:26 PM, Lachlan Deck wrote:


On 24/07/2008, at 1:12 AM, Rams wrote:


Okay, now I feel dumb :-)~

Generics wasn't broken!  The problem was I was using WOContext's  
directActionURLForActionNamed with generics and it only accepts a  
NSDictionaryString, Object and I was trying to pass it a  
NSDictionaryString, String in almost every case.  That worked in  
5.3.3 since arguments weren't parameterized so I though the  
generics were disabled.  Yeah, dumb mistake. Anyway, after watching,


http://www.youtube.com/watch?v=pi_I7oD_uGI

Shouldn't that parameter be NSDictionary? extends String, ?  
extends Object instead, according to PECS?  Is there some reason  
Apple isn't doing that?


As Mike suggested (NSDictionaryString,? extends Object) and yes...  
according to PECS. Please submit a bug report to radar.apple.com.

Return values should be NSDictionaryString,Object however.

with regards,
--

Lachlan Deck





smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Parameterized NSArray in 5.3.3

2008-07-22 Thread Rams

Hi all,

At risk of asking a stupid question, how exactly does one change the  
load order?


rg

On Jun 4, 2008, at 1:42 AM, Guido Neitzer wrote:


On 03.06.2008, at 13:38, Qi Yang wrote:


In the project I'm working on I need to use 5.3 because of some
compatibility problems, and I added both JavaWOExtensions and
ERExtensions frameworks in the build path, but can't seem to get  
rid of

the NSArray can't be parameterized error.

Is there any special way I need to set it up to make this work?


1. You really WANT that *beeep*?

2. Move ERExtensions in the load order before the WO Frameworks.

cug


--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley 
%40mac.com


This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Parameterized NSArray in 5.3.3

2008-07-22 Thread Rams

Hi Guido,

There doesn't seem to be a way to move just the Wonder frameworks  
there.  Moving all the WebObjects frameworks to the top or the bottom  
of the list has no effect. I still get errors in 5.4 that don't exist  
if I switch back to 5.3.  If I go to the Libraries tab and select  
edit, I can change the load order of individual libraries there, but  
moving ERExtensions and JavaWOExtensions to the top or bottom of that  
list has no effect either.  Nor does moving all the Wonder frameworks  
to the top or bottom.  Finally, the order of both lists is unchanged  
from the switch... I'm stumped.


rg


On Jul 22, 2008, at 10:58 PM, Guido Neitzer wrote:


On 22.07.2008, at 20:38, Rams wrote:

At risk of asking a stupid question, how exactly does one change  
the load order?


There is an Order and Export tab in the build path settings for  
the project in Eclipse.


cug

--
http://www.event-s.net





smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Localization Help! (was Localizer Default vs. Browser)

2008-07-20 Thread Rams

Hi yllan!

Without seeing your code, it's sorta hard for me to say what is wrong,  
so I apologize if I am covering basic things you already know... :-)   
I'll try to answer your question the best I can though!


On Jul 19, 2008, at 11:16 PM, Yung-Luen Lan wrote:


Hi Rams,

I'm quite confused about this code. I copied this to my DirectAction
class but it didn't work.


Keep in mind, this only works if you've defaulted to the direct action  
handler and you have not created a session in your code.  David LeBer  
has a great series of articles on direct actions.  If you haven't read  
them already, the first one of the series is located here:


http://davidleber.net/?p=63

Now, just because you're using direct actions, that is no guarantee  
you have not accidently created a session anyway.  It's actually  
pretty tough to not create them sometimes. I log all my sessions in  
the Session constructor to eliminate confusion:


public Session() {
NSLog.out.appendln(Session created:  + sessionID());
}

If you have created a session, the browser's default language should  
be presented thanks to ERXSession.  The code below will be doing  
nothing.


When there is no session, the language delivered to the browser should  
be whatever you set with er.extensions.ERXLocalizer.defaultLanguage in  
the properties file every time.  The overridden performActionNamed()  
method below is designed to change that behavior.  If you've set the  
default language to English in your properties file, your browser  
language is set to English, and your app is delivering zh_CH... try  
logging context().request().browserLanguages() and see what you get.



In my project, I have English.lproj, zh_TW.lproj, zh_CN.lproj.
I have my Properies file setup with:

er.extensions.ERXLocalizer.defaultLanguage=English
er 
.extensions 
.ERXLocalizer 
.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings)

er.extensions.ERXLocalizer.availableLanguages=(English, zh_TW, zh_CN)
er 
.extensions 
.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions)


My system/browser is English. Default language is English. I print out
context().request().browserLanguages(), which is exactly English. But
at the top of my action, I print out session().languages() and got
zh_TW (Traditional Chinese) localizer.

Why the localizer change its language after the performActionNamed()
but before myAction actually being called?


Are you saying you tried something like this:

public WOActionResults performActionNamed(String actionName) {
if(!context().hasSession()) {
			NSLog.out.appendln(1:  +  
ERXLocalizer.currentLocalizer().language());

ERXLocalizer localizer =
 
ERXLocalizer 
.localizerForLanguages(context().request().browserLanguages());

NSLog.out.appendln(2:  + localizer.language());
ERXLocalizer.setCurrentLocalizer(localizer);
			NSLog.out.appendln(3:  +  
ERXLocalizer.currentLocalizer().language());

}
WOActionResults woar = super.performActionNamed(actionName);
		NSLog.out.appendln(4:  +  
ERXLocalizer.currentLocalizer().language());

return woar;
}

And output something like:

1: English
2: English
3: English
4: zh_CH

?  If not, try it, and let us know what you get :-)


My guess is, setup the current localizer not necessary change the
localizer of sessions. Any idea on how to make the code actually work?


If there's a session, and you want to change the localizer, then you'd  
want to use ERXSession's setLanguage() or setLanguages() method.  But  
you wouldn't want to do that in the performActionNamed method.   
Perhaps with a language popup and a component action tied to it?


I hope that helped.  It should at least be a starting point.  If you  
are still having problems after trying the above suggestions, let me  
know!


rg


Regards,
yllan

On Fri, Jun 13, 2008 at 7:46 AM, Rams [EMAIL PROTECTED] wrote:

--Direct Actions--

If you're using direct actions, you can stick this in your direct  
action

class:

  @Override
  public WOActionResults performActionNamed(String actionName) {
  if(!context().hasSession()) {
  ERXLocalizer localizer =

ERXLocalizer 
.localizerForLanguages(context().request().browserLanguages());

  ERXLocalizer.setCurrentLocalizer(localizer);
  }
  return super.performActionNamed(actionName);
  }

That will give the user their browser's default language instead of  
your
server's default language if there is no session and their language  
is
available.  If you aren't defaulting to direct actions though, a  
session is
going to be created, that will happen anyway, and this will be  
superfluous.






smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests

403 Forbidden ([Was] Re: App instance dies on startup)

2008-07-16 Thread Rams
I sent this almost two hours ago and it seems to have failed to  
deliver, so I'm resending the message.   Please pardon if it is a  
duplicate.

+++

Thanks for the quick response!

I'm a bit confused.  I was told earlier by more than one person on  
this list that in order to deploy a 5.3.3 app on a server running  
5.4.1 that I would need to embed the frameworks.  I thought that meant  
using the ssdd or the war from the dist directory, but it appears I've  
misunderstood what I was being told...


Anyway, I have nothing in my /Library/WebObjects/Application/ on my  
build machine.  I just did a right click on the build.xml file and  
selected Run as-Ant Build.  I'm guessing that whatever lands in / 
Library/WebObjects/Application/ is the same as the myapp.woa in the  
dist directory... I tried using that build product and it appears to  
be running, but I can't connect to it.  Clicking WOStats or the app  
name on the app details page gives me



Forbidden
You don't have permission to access /cgi-bin/WebObjects/myapp.woa/1 on  
this server.


Clicking on the host-port link there gives me a  
kCFErrorDomainCFNetwork error 302 in Safari.



My log in /Library/WebObjects/Logs/ tells me:

(ERXApplication.java:497) INFO  er.extensions.ERXApplication 
$JarChecker  - The following packages appear multiple times:


Followed by a long list of frameworks, then:

(ERXApplication.java:513) WARN  er.extensions.ERXApplication 
$JarChecker  - The following packages have different versions, you  
should remove the version you don't want:


Followed by another long list of frameworks, and finally:

(ERXConfigurationManager.java:199) INFO   
er.extensions.ERXConfigurationManager  - WOCachingEnabled is true.  
Disabling the rapid turnaround for Properties files
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog  - Finished initialization  
after launch: ERXExtensions

(Ajax.java:35) INFO  er.ajax.Ajax  - AjaxRequestHandler installed
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog  - Finished initialization  
after launch: Ajax
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog  - Finished initialization  
after launch: ERJavaMail
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog  - Finished initialization  
after launch: ERPrototypes

(ERXNSLogLog4jBridge.java:38) INFO  NSLog  - Welcome to myapp !
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog  - The URL for webserver  
connect is:

http://localhost/cgi-bin/WebObjects/myapp.woa/-2001
(ERXNSLogLog4jBridge.java:41) WARN  NSLog  -
(ERXNSLogLog4jBridge.java:44) DEBUG NSLog  - Waiting for requests...

Trying the URL listed there gives me another 403 forbidden...

I tried enabling logging with a $ sudo touch /tmp/logWebObjects and so  
far I see no WebObjects.log in the tmp directory or anything WO  
related in /var/log either.


So at least it's running, but it's still broken.  Can anyone tell what  
I've done wrong here?


rg


On Jul 16, 2008, at 2:50 AM, D Tim Cummings wrote:

Building the app with servletDeployment=true is good to embed the WO  
5.3.3 and Wonder frameworks.  However, if you are using wotaskd you  
do not deploy the SSDD.  Instead deploy the app as installed in / 
Library/WebObjects/Applications/myapp.woa on your build machine.


Tim


On 16/07/2008, at 3:57 PM, Rams wrote:


Hi all,

I'm trying to deploy my first app on wotaskd/JavaMonitor and I'm  
having trouble getting instances to start.


I have WO 5.4.1 installed on a Mac mini running OS X 10.5.4  
client.  After installing, I configured the deployment with


sudo /Developer/Examples/JavaWebObjects/Deployment/configure.sh

That seems to get Monitor and wotaskd running fine and launching on  
boot properly.  So, in my sharing preferences, I turned on web  
sharing to start apache. Then, for the host name I created a host  
entry with dscl


sudo dscl localhost -create /Local/Default/Hosts/my.domain.com  
IPAddress 127.0.0.1


[I recall trying with my 10.0.1.x address assigned by my NAT  
(airport express), but setting the host wouldn't work in Monitor  
unless I used the loopback address... ]


Since I'm using WO 5.3.3 and Wonder, I then build my app as a  
servlet deployment.  I do this in WOLips by adding to  
build.properties the following


webXML=true
servletDeployment=true

and to build.xml

!-- fix the web.xml file to use a custom Servlet Adaptor that  
allows for Project Wonder initialization --


replaceregexp file=${dest.dir}/${project.name}/WEB-INF/web.xml  
match=com.webobjects.jspservlet.WOServletAdaptor  
replace=er.extensions.jspservlet.ERXServletAdaptor byline=true /


[I think this is okay because I did manage to get the war file to  
launch under Tomcat.  Anyway, I've tried unzipping the war and  
using the SSDD, and both fail to start in Monitor.]


After building, I moved a copy of the SSDD to the mini.  I copied  
the WebServerResources folder from the deployment directory into / 
Library/WebServer/Documents/WebObjects/myapp.woa/Contents/ 
WebServerResources and copied the SSDD into /Library/WebObjects

Re: One Less Mystery

2008-07-14 Thread Rams

Nice tip! :-)

Thanks Mike,

I've been wondering how to fix that for a while now.

On Jul 14, 2008, at 7:27 PM, Mike Schrag wrote:

One of our guys got tripped up because his hostname was floating  
between what we expected it to be and his IP address.  After some  
digging, I've resolved a mystery (well, it was a mystery to me ..  
maybe other people knew about it :) ).


If your CGI adaptor URL is http://127.0.0.1/cgi-bin/WebObjects, at  
runtime, WOApplication converts that to http:// 
application.hostAddress()/cgi-bin/WebObjects.
If you CGI adaptor URL is http://localhost/cgi-bin/WebObjects, at  
runtime, WOApplication converts that to http://application.host()/ 
cgi-bin/WebObjects.


application.host() considers your -WOHost setting, hostAddress uses  
InetAddress.getByName(host()).  So if you've ever been confused and  
perplexed as to why your app keeps using your IP address even when  
you set WOHost, this is why.  This is especially a problem when  
you're testing with cookies on your local machine, which is really  
sensitive to host name changing.


Part of the confusing part here is that WOLips defaults to  
127.0.0.1.  I think this is wrong and I'm about to change it (unless  
someone has a good reason behind it).  In the meantime, you can to  
several things:


1) Change the WOAdaptorURL in your launch config (to change this on  
a per-app basis)
2) Change the WOAdaptorURL in Preferences=WOLips=Launch.  This  
will change the defaults globally.  I don't recall if this cascades  
to existing run configs or not.


So to be safe and make sure your app works in dev like it does in  
deployment (which would have a consistent hostname), set  
WOAdaptorURL to http://localhost/cgi-bin/WebObjects and add a - 
WOHost yourhost.local (or whatever your fixed hostname is).


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley 
%40mac.com


This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Component action context().hasSession() returns false? [Was Re: context().hasSession() returns false... then true?]

2008-06-30 Thread Rams
I'd like to say upfront that I'm no longer considering Tomcat a viable  
option for me.  I will detail my problems with it further for anyone  
interested, but I now need to work through the Java Monitor/wotaskd  
tutorials to replace my appserver.  I'm hoping that replacing the  
appserver will yield behavior that is more consistent with the  
development environment.


On Jun 29, 2008, at 8:43 PM, Lachlan Deck wrote:


On 28/06/2008, at 1:20 AM, Rams wrote:


Hi everyone...

I should add, I am currently using component actions. I'm not  
defaulting to direct actions yet... so I'm under the impression  
that there should always be a session present.


Not always so. But you can force a session to be invoked by  
referencing session() in your component.


The only time session() is called in my Main WO or any of it's  
embedded components, is in the authenticated method.


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

But since I'm logging session creation in the Session() constructor, I  
know one should already exists.  context().hasSession() is returning  
false even though a session exists.  Here's what my Main WO looks like:


wo:PageWrapper
ul
wo:if condition = $authenticated
wo:link directActionName = logout 1
2
3
/wo:if
wo:else
wo:link pageName = Login 4
5
6
/wo:else
wo:link 7

wo:ERXBatchNavigationBar
wo:loop
wo:MyStatelessDisplayItem authenticated = $authenticated 
/wo:loop

/wo:PageWrapper

I only check context().hasSession() now because I had planned to  
move to direct actions at a future date.  At least Tomcat is  
failing consistently at the same places, so I guess that's a small  
ray of hope.


Failing how?



Miserably! ;-)  I click my login link (let's say link 4), which takes  
me to my login component.  I'm returned to my main page after  
submitting valid credentials to a component action.  There I am  
presented with links 1, 2, 3.  After that, failures begin.  For  
example, clicking my logout directaction link, context().hasSession()  
evals to false and logout fails to session().terminate().


public WOActionResults logoutAction() {
if(context().hasSession()) {
NSLog.out.appendln(Terminating session:  + 
session().sessionID());
session().terminate();
}

	WORedirect mainPage = (WORedirect)  
pageWithName(WORedirect.class.getName());

mainPage.setUrl(
context().directActionURLForActionNamed(
	default, new NSDictionaryObject,Object(Boolean.FALSE,  
wosid)));


return mainPage;
}

When I come back to main, the first call to $auth evals to false, then  
subsequent calls eval to true making all MyStatelessDisplayItems  
display as logged in.  I log session creation in the Session  
constructor, so I know there is no new session being created.  What I  
find even more wonky is that clicking link 4 to go to the login page  
again does not take me to my login component at all.  It refreshes  
main and gives me link 1, 2, 3.


All of this works fine on the dev machine.  It fails consistently, in  
the same places, on the Tomcat deployment.


But at this point, I think using Tomcat is just going to be a  
thoroughly bad idea.  Aside from the app simply not working in a  
manner consistent with the development environment, I have other  
reservations about using Tomcat.  The JSessionID, in particular,  
bothers me.   I *have* to have a second, useless session object adding  
overhead to my app?  AND it's probably going to bork my search engine  
rankings by adding that uselessness to the URL when cookies are  
disabled?


Needless to say, my patience with Tomcat is pretty much exhausted. I'm  
hoping Java Monitor and wotaskd can give me results that are a little  
more consistent with the development environment :-)


However, thanks again to everyone who has responded!  I do appreciate  
all the help.

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Component action context().hasSession() returns false? [Was Re: context().hasSession() returns false... then true?]

2008-06-27 Thread Rams

Hi everyone...

I should add, I am currently using component actions. I'm not  
defaulting to direct actions yet... so I'm under the impression that  
there should always be a session present.  I only check  
context().hasSession() now because I had planned to move to direct  
actions at a future date.  At least Tomcat is failing consistently at  
the same places, so I guess that's a small ray of hope.


BTW, if the wise regulars here think using Tomcat is just a bad idea  
to begin with, please say so.  I'm perfectly willing to move to  
something different... perhaps Java Monitor and wotaskd.  I only  
started with Tomcat in an attempt to be as flexible as possible with  
commercial deployment options.  However, I've learned in my lifetime  
that it's generally not productive to fight the tool.  If using Tomcat  
is going to be a huge pain and produce one failure after another, I'll  
switch.  I'm sure there have to be a few WebObjects hosting options  
out there.


Any opinions??  Thanks again everybody.

On Jun 26, 2008, at 8:40 PM, Rams wrote:

Yes, the application has a login with the logged in user entity  
stored in the session.  I do have an error in the log file, although  
I don't know what it means...


Jun 26, 2008 6:05:13 PM org.apache.catalina.core.StandardContext  
processTlds SEVERE: Error reading tld listeners  
javax.servlet.ServletException: Exception processing TLD at resource  
path /WEB-INF/tlds/WOtaglib_1_0.tld in context /myapp  
javax.servlet.ServletException: Exception processing TLD at resource  
path /WEB-INF/tlds/WOtaglib_1_0.tld in context /myapp at  
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:557)  
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295)  
at


snip


On Jun 26, 2008, at 8:07 PM, Don Lindsay wrote:


Hello;

Are there any errors in your catalina.out or localhost_%DATETIME 
%.log files?  Is this an application that requires a user to login?


Don

Sorry this was supposed to apply to this message not Wonder/Tomcat  
Documentation.


Don
On Jun 26, 2008, at 7:21 PM, Rams wrote:


Hi Everyone...

I have an app deployed on Tomcat 6.0.16 and it appears that  
context().hasSession() is failing to produce reliable results.  In  
my Main WO I have:


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

and in my Main WO, that resolves to false, and then true.  I'm not  
calling session() anywhere.  I'm logging session creation in my  
Application.createSessionForRequest method and the session  
*should* exist before the first call.  It's also failing in my  
logout direct action


public WOActionResults logoutAction() {
if(context().hasSession()) {
			NSLog.out.appendln(Terminating session:  +  
session().sessionID());

session().terminate();
} else {
			NSLog.out.appendln(logoutAction(): context().hasSession() ==  
FALSE);

}

	WORedirect mainPage = (WORedirect)  
pageWithName(WORedirect.class.getName());

mainPage.setUrl(
context().directActionURLForActionNamed(
	default, new NSDictionaryObject,Object(Boolean.FALSE,  
wosid)));


return mainPage;
}

All of this works fine in WOLips.  It's failing on Tomcat.  I'm  
using WO 5.3.3 and Wonder.  Is this a known bug with a known  
workaround?  Am I doing something dumb?  Any help/advice/insight  
would be appreciated.


Thanks all!


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pccdonl%40mac.com

This email sent to [EMAIL PROTECTED]




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley 
%40mac.com


This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Wonder/Tomcat Deployment

2008-06-26 Thread Rams

Hi everybody,

I'm testing deployment of an app on Tomcat with a WAR file.  I am  
using WO 5.3.3, Project Wonder, Tomcat 6.0.16.  After discovering that  
I needed to include the JavaWOJSPServlet.jar in my build path, I was  
able to run the app on the server.  However, I'm getting some  
wonkiness.  In my search for answers, I ran across this page:


http://wiki.objectstyle.org/confluence/display/WONDER/Creating+a+wonder+app+to+deploy+as+a+servlet

Which leaves me wondering... Does the One last thing still apply?   
There doesn't seem to be a er.extensions.jspservlet.ERXServletAdaptor  
in the API docs.  Is that information still valid, or has Wonder been  
updated so that this is no longer necessary?


Thanks everyone!

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

context().hasSession() returns false... then true?

2008-06-26 Thread Rams

Hi Everyone...

I have an app deployed on Tomcat 6.0.16 and it appears that  
context().hasSession() is failing to produce reliable results.  In my  
Main WO I have:


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

and in my Main WO, that resolves to false, and then true.  I'm not  
calling session() anywhere.  I'm logging session creation in my  
Application.createSessionForRequest method and the session *should*  
exist before the first call.  It's also failing in my logout direct  
action


public WOActionResults logoutAction() {
if(context().hasSession()) {
NSLog.out.appendln(Terminating session:  + 
session().sessionID());
session().terminate();
} else {
			NSLog.out.appendln(logoutAction(): context().hasSession() ==  
FALSE);

}

	WORedirect mainPage = (WORedirect)  
pageWithName(WORedirect.class.getName());

mainPage.setUrl(
context().directActionURLForActionNamed(
	default, new NSDictionaryObject,Object(Boolean.FALSE,  
wosid)));


return mainPage;
}

All of this works fine in WOLips.  It's failing on Tomcat.  I'm using  
WO 5.3.3 and Wonder.  Is this a known bug with a known workaround?  Am  
I doing something dumb?  Any help/advice/insight would be appreciated.


Thanks all!




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: context().hasSession() returns false... then true?

2008-06-26 Thread Rams
Yes, the application has a login with the logged in user entity stored  
in the session.  I do have an error in the log file, although I don't  
know what it means...


Jun 26, 2008 6:05:13 PM org.apache.catalina.core.StandardContext  
processTlds SEVERE: Error reading tld listeners  
javax.servlet.ServletException: Exception processing TLD at resource  
path /WEB-INF/tlds/WOtaglib_1_0.tld in context /myapp  
javax.servlet.ServletException: Exception processing TLD at resource  
path /WEB-INF/tlds/WOtaglib_1_0.tld in context /myapp at  
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:557)  
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295)  
at  
org 
.apache.catalina.core.StandardContext.processTlds(StandardContext.java: 
4441) at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4248) at  
org 
.apache 
.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)  
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 
771) at  
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)  
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java: 
829) at  
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)  
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java: 
490) at org.apache.catalina.startup.HostConfig.check(HostConfig.java: 
1215) at  
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java: 
293) at  
org 
.apache 
.catalina 
.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)  
at  
org 
.apache 
.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java: 
1337) at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)  
at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)  
at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.run(ContainerBase.java:1590) at  
java.lang.Thread.run(Thread.java:613) Caused by:  
java.lang.NullPointerException at  
org 
.apache 
.xerces.impl.dtd.models.DFAContentModel.buildDFA(DFAContentModel.java: 
538) at  
org 
.apache 
.xerces.impl.dtd.models.DFAContentModel.init(DFAContentModel.java: 
253) at  
org.apache.xerces.impl.dtd.DTDGrammar.createChildModel(DTDGrammar.java: 
2271) at  
org 
.apache 
.xerces 
.impl.dtd.DTDGrammar.getElementContentModelValidator(DTDGrammar.java: 
1727) at  
org.apache.xerces.impl.dtd.DTDGrammar.getElementDecl(DTDGrammar.java: 
1271) at  
org 
.apache 
.xerces 
.impl.dtd.XMLDTDValidator.getContentSpecType(XMLDTDValidator.java: 
1645) at  
org 
.apache 
.xerces 
.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java: 
1831) at  
org 
.apache 
.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java: 
724) at  
org 
.apache 
.xerces 
.impl 
.XMLDocumentFragmentScannerImpl 
.scanStartElement(XMLDocumentFragmentScannerImpl.java:759) at  
org.apache.xerces.impl.XMLDocumentScannerImpl 
$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java: 
957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl 
$ 
FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java: 
1544) at  
org 
.apache 
.xerces 
.impl 
.XMLDocumentFragmentScannerImpl 
.scanDocument(XMLDocumentFragmentScannerImpl.java:329) at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
525) at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)  
at  
org 
.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 
1175) at org.apache.tomcat.util.digester.Digester.parse(Digester.java: 
1644) at  
org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java: 
518) at  
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java: 
555) ... 17 more


On Jun 26, 2008, at 8:07 PM, Don Lindsay wrote:


Hello;

Are there any errors in your catalina.out or localhost_%DATETIME 
%.log files?  Is this an application that requires a user to login?


Don

Sorry this was supposed to apply to this message not Wonder/Tomcat  
Documentation.


Don
On Jun 26, 2008, at 7:21 PM, Rams wrote:


Hi Everyone...

I have an app deployed on Tomcat 6.0.16 and it appears that  
context().hasSession() is failing to produce reliable results.  In  
my Main WO I have:


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

and in my Main WO, that resolves to false, and then true.  I'm not  
calling session() anywhere.  I'm logging session creation in my  
Application.createSessionForRequest method and the session *should*  
exist before the first call.  It's also failing in my logout direct  
action


public WOActionResults logoutAction() {
if(context().hasSession()) {
			NSLog.out.appendln(Terminating

Re: mod_gzip + WO problems

2008-06-24 Thread Rams


On Jun 24, 2008, at 5:28 PM, Mike Schrag wrote:

I'm trying to get mod_gzip running on one of my WO apps.  It works  
for static pages (index.html) and static resources (like css) in my  
WO app, but not on the html returned from the WO app.  I'm guessing  
this has something to do with the fact that the content is being  
dynamically generated.  Any tips on how to get this working?
If you're using Wonder, it can do response compression on dynamic  
content if Apache is giving you a hard time.  Search for  
compression in the example Properties file.


ms


Sorry to butt in, but I've been wondering how to do this for a  
while... FWIW, I couldn't find the magic to make gzip happen in the  
sample properties file in the ERExtension documentation, but I did  
find this:


http://groups.google.com/group/wotips/browse_thread/thread/89630c7b743a248c

So assuming nothing has changed in 15 months, that would make the  
magic string:


er.extensions.ERXApplication.responseCompressionEnabled=true

Thanks Mike!



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Disabling a form element server-side

2008-06-12 Thread Rams

Hi Dan,

My first thought would be to use an NSValidation validateKey() method  
in your WOComponent.  This is called before setKey() and would allow  
you to check credentials and throw an NSValidation.ValidationException  
to block the update if the user is not allowed to edit the setting.   
If you're operating directly on your model object, validateKey should  
still work, but you'll still need to have your  
validationFailedWithException method located in the WOComponent that  
is accessing the model object.


But beware, all the really smart regulars are at WOWODC right now.   
I'm just throwing an idea out there.


Good luck.

On Jun 12, 2008, at 7:13 PM, Dan Grec wrote:


All,

We're currently using the disabled binding (and thus HTML) to stop  
text entry into fields when a user doesn't have access.

(i.e. WOTextField, WOCheckbox, etc)

This presents a problem, as users can use an inline proxy or firebug  
to submit the data anyway, which gets saved.
Our customers are complaining this is a security risk, so we have to  
do something.


We're trying to come up with a way to handle the disabling on the  
server side, rather than letter the browser deal with it.
We thought about conditionally rending them as a text equivelant (ie  
WOString instead of WOTextField) but this will be pretty annoying  
for WOCheckbox  WORadioButton.


Does anyone have any suggestions?

Thanks,
-Dan

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley 
%40mac.com


This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Basic HTML parsing for input?

2008-06-04 Thread Rams

Hi everyone,

Sorry if this is a really n00b question, but what do you use to parse  
input for html tags?  Is there anything built in?  I'm using WO 5.3.3  
and Wonder.


Thanks!

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Basic HTML parsing for input?

2008-06-04 Thread Rams


On Jun 4, 2008, at 11:07 PM, Chuck Hill wrote:



On Jun 4, 2008, at 7:34 PM, Rams wrote:


Hi everyone,

Sorry if this is a really n00b question, but what do you use to  
parse input for html tags?  Is there anything built in?  I'm using  
WO 5.3.3 and Wonder.


Thanks!


What is it you want to do?

Chuck


Well, I have a WOText for user input that will be displayed once it is  
saved... think: typical weblog.


Ideally, I'd like to allow a handful of html elements so that my users  
can have line breaks, paragraphs, and not just a solid block of text.   
At the same time, I'd also like to allow class attributes so that  
certain elements can be styled for different uses... like a shell code  
div, or a paragraph with a drop cap at the beginning.  Naturally, I  
want to strip out mismatched tags so they can't escape their own  
little area on the page, strip out scripts, and pretty much anything  
else that could be easily abused.  Basically, whitelist a few things  
and strip out everything else :-)


Rams

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Basic HTML parsing for input?

2008-06-04 Thread Rams
I've used that one before too... yick!  I was hoping you wouldn't say  
that ;-)


On Jun 4, 2008, at 11:43 PM, Andrew Lindesay wrote:


Hello Rams;

I have used the Swing HTML parser built into J2SE with some success  
although it is not flawless.


cheers.

Sorry if this is a really n00b question, but what do you use to  
parse input for html tags?  Is there anything built in?  I'm using  
WO 5.3.3 and Wonder.


___
Andrew Lindesay
www.lindesay.co.nz





smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

model.validateKey intercepted on null?

2008-06-02 Thread Rams

Hi everyone,

I have a model object using the WonderEntity template and my  
validateKey methods are being intercepted higher up with a  
NullPropertyException (ERXValidationException).  I'd like to handle  
the null values myself and throw a localized exception message, but my  
validateKey method never gets called if the value is null.  Does  
anyone know how I can catch that null value myself?


Thank you! :-)

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

ERCaptcha and DirectActions?

2008-05-27 Thread Rams

Hi everyone,

A few questions about ERCaptcha:

1. Is it possible to use ERCaptcha with DirectActions instead of  
component actions?
2. Is there any way to set the alt attribute of the img tag so so that  
the component will validate with XHTML 1.0 strict?
3. Is it possible to change the captcha style to the fisheye or  
something less English-language-centric?


Thanks everyone :-)

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

n00b EO questions :-)

2008-05-22 Thread Rams

Hi Everyone,

Please pardon me if I am asking extremely stupid questions, but I'm  
starting to do some work with my database and I have a few questions  
about EnterpriseObjects and database things in general...


The first question is about creating unique data... I have a user  
object and I need unique usernames for obvious reasons.  Now, I know  
it is unlikely, but let's say that two visitors attempt to create a  
user at the same time and they happen to pick the same username.


EOQualifier qualifier = User.SCREEN_NAME.eq(username);
if(User.fetchUser(ec, qualifier) == null) {
User.createUser(ec, email, password, username);
ec.saveChanges();
}

If these fired at the same time, is it possible that two users with  
the same username could be created?  If so, does anyone have any  
pointers to prevent duplicate data?



The second question regards security/sql injection.  Is there any sort  
of user input I should be on the lookout for in my validateUsername  
method?  Like username admin'--  or some such?  I assume that as  
long as I stick to EOQualifiers and don't touch the SQL myself that  
all the input will be properly escaped...



Finally, third question... I'm using MySQL.  I will ensure InnoDB is  
used by default as mentioned here:


http://homepage.mac.com/kelleherk/iblog/C711669388/E20070719095201/index.html

Is there anything else I need to do in order to produce ACID  
transactions with WO?  It doesn't hurt to be buzzword compliant you  
know ;-)



Thanks everybody!  I really appreciate the help everyone here provides.

smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Get hyperlink from WOComponent?

2008-05-21 Thread Rams

Hi everyone,

Does anyone know how to get a plaintext hyperlink from an instance of  
a WOComponent?  There has to be a way, but i can't seem to find it.


Thanks in advance :-)

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Get hyperlink from WOComponent?

2008-05-21 Thread Rams


On May 21, 2008, at 6:37 PM, Guido Neitzer wrote:


On 21.05.2008, at 16:15, Rams wrote:

Does anyone know how to get a plaintext hyperlink from an instance  
of a WOComponent?  There has to be a way, but i can't seem to find  
it.


What do you want to get back? The link to an action? Have you  
checked WOActionURL?



That *almost* works!  I didn't know about WOActionURL, so thanks for  
that... but it only gives me a url from the /cgi-bin part onward.  It  
omits the http://host:port/ at the very beginning.  Any ideas how to  
get that back?


Thank you again!!

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

XHTML Strict Validation errors WOTextfield, WOImage

2008-05-20 Thread Rams

Hi all,

I've noticed that certain components do not validate on w3c's  
validator.  Specifically, html tags for img and input  never  
close.  Anytime I use a WOTextfield I get multiple validation errors  
with XHTML 1.0 Strict as a result.  Is there a reason WO does this, is  
it a known issue, or am I doing something incorrectly?


Thanks

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Localize WOLips project [SOLVED]

2008-05-16 Thread Rams

Beautiful solution Guido!  I cleaned it up a bit and it looks like:

public WOActionResults performActionNamed(String actionName) {
if(!context().hasSession()) {
ERXLocalizer localizer =
 
ERXLocalizer 
.localizerForLanguages(context().request().browserLanguages());

ERXLocalizer.setCurrentLocalizer(localizer);
}
return super.performActionNamed(actionName);
}

Thank you all for your assistance!

On May 16, 2008, at 12:09 AM, Guido Neitzer wrote:


On 15.05.2008, at 17:34, Rams wrote:

I think I will look into direct actions and hiding the session in a  
cookie perhaps :-)


Why? You can use a sessionless application easily with the correct  
localizer!


Do something like this in your base performActionNamed:

public WOActionResults performActionNamed(String actionName) {
ERXLocalizer localizer = null;
Session session = (Session) this.existingSession();
if (session != null) {
localizer = ERXLocalizer.currentLocalizer();
}
else {
		localizer =  
ERXLocalizer.localizerForLanguages(this.context().request().

browserLanguages());
ERXLocalizer.setCurrentLocalizer(localizer);
}

return super.performActionNamed(actionName);
}


Hope this works as I just typed it from memory. Try and it and see  
what happens.


cug

--
http://www.event-s.net




--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Localize WOLips project

2008-05-15 Thread Rams

Almost there I think...

That works, but now my sessionless localizer in my ERXComponent is  
broken.


wo:str value = localizer.LOCALIZED_KEY /

returns English strings in both components where

wo:str value = session.localizer.LOCALIZED_KEY /

returns the proper string in the Japanese component.  Anyone ideas?

Thank you everyone!

On May 15, 2008, at 4:38 AM, Daniele Corti wrote:




2008/5/15 Rams [EMAIL PROTECTED]:
Thank you both for responding!  It has taken me a while to get back  
to this.


Localizing strings seems to work fine.  I have my English.lproj and  
Japanese.lproj folders in my Resources folder.  I moved my Main.wo  
(ERXComponent) to my English.lproj folder, and when I attempt to  
create a Main.wo in my Japanese.lproj folder, WOLips complains about  
the duplicate. It seems to break WOLips and I get  
NullPointerExceptions making it impossible to edit either component  
until one or the other is deleted.  Is there a naming convention I'm  
unaware of or some other magic that I am missing?


You can have any .wo file duplicate (one in each .lproj dir), but  
ony one .api file, check if there is only one Main.api, and put it  
in the Components directory (no sub dir).



Thanks again.

On Apr 13, 2008, at 7:59 AM, Cail Borrell wrote:

Hi TIA

In addition if you are not using sessions you can get your localizer  
with


   ERXLocalizer.defaultLocalizer()

and if you are using ERXComponent's you can call

   localizer()

directly from the component

Regards,
Cail


and if you are not using sessions
On 13/04/2008, at 10.35, Helmut Schottmüller wrote:

Hi TIA,

very simple and Apple Style as usual...
Just add the language resources you need in your Resources folder. I  
for example have a


German.lproj and
English.lproj

Inside these folders add your Localizable.strings file with the key- 
value-pairs for the localized strings (if you use Unicode encoding  
in your application, please make sure that the localized.strings  
files are UTF-16 encoded).


In the Application constructor you should set your default language  
using


 ERXLocalizer.setDefaultLanguage(German);

In the component bindings simply use

session.localizer.YOUR_LANGUAGE_ENTRY_KEY

in the code

session().localizer().valueForKey(YOUR_LANGUAGE_ENTRY_KEY)

If you need to offer localized components with a bit more than some  
localized language entries, you may create the components in the  
Resource/LANGUAGE.lproj directory for every language you use.


I am sure there is also an article in the Confluence Wiki about that  
(http://wiki.objectstyle.org).


Regards,
Helmut


Am 12.04.2008 um 21:14 schrieb Rams:
Hi all,

Can anyone point me in the direction of information regarding how to  
localize a WOLips project.  The process was fairly straightforward  
in xcode, but I can't seem to find any info on WOLips.  I would like  
to know how to localize components as well as strings.


TIA

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/helmut.schottmueller%40mac.com

This email sent to [EMAIL PROTECTED]

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/cail%40frontbase.com

This email sent to [EMAIL PROTECTED]

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley 
%40mac.com


This email sent to [EMAIL PROTECTED]


--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if  
you open

WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young



--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime

Re: Localize WOLips project

2008-05-15 Thread Rams


On May 15, 2008, at 11:46 AM, Daniele Corti wrote:


2008/5/15 Rams [EMAIL PROTECTED]:
Almost there I think...

That works, but now my sessionless localizer in my ERXComponent is  
broken.


wo:str value = localizer.LOCALIZED_KEY /

returns English strings in both components where

Because when you change ERXSession.setLanguage() to Japanese, or  
using Properties file er.extensions.ERXLocalizer.defaultLanguage  
(hope i've written it right), only the ERXSession.localizer change  
the language.
In order to change the sessionless component you need to use  
ERXLocalizer.localizerForLanguage(Japanese), when call it in your  
component.


I don't follow  I'm not touching the language settings  
programatically at all. I'm testing this by changing my system  
language from english to japanese in the Internationalization  
prefspane.  I do have


er.extensions.ERXLocalizer.defaultLanguage=English

in my properties file, but the sessionless localizer.KEY works fine in  
a non-localized component.  Only when I localize the component does  
the sessionless localizer break.


I suggest you to do this onnly if you REALLY need to have a  
sessionless component:


Well, I would very much like to have bookmarkable URLs in my app.  I'm  
under the impression that in order to do that, I'm going to have to  
default to direct actions instead of using component actions and  
creating sessions everywhere.  I'm curious as to how to handle a  
bookmarked url with a session in such a case, but I think that is a  
whole other thread worth of discussion :-)


public String language; //assume this contain tha language you want  
to use


public ERXLocalizer localizer()
{
 return ERXLocalizer.ERXLocalizer.localizerForLanguage(language);
}

then when you call wo:str value=$localizer.KEY / you'll get the  
correct localized string.


Eventually, I do plan to implement a language menu so the user can  
select a different language, but I would like to greet them with their  
default system language.



wo:str value = session.localizer.LOCALIZED_KEY /

It would be usefull to use ERXLocalizedString that call the same  
method, you have a shortcut wo:localized value=LOCALIZED_KEY /


Thank you!  I didn't realize that was a shortcut.  Unfortunately, it  
does not display the language set in the system prefs either :-/



returns the proper string in the Japanese component.  Anyone ideas?

Thank you everyone!

On May 15, 2008, at 4:38 AM, Daniele Corti wrote:




2008/5/15 Rams [EMAIL PROTECTED]:
Thank you both for responding!  It has taken me a while to get back  
to this.


Localizing strings seems to work fine.  I have my English.lproj and  
Japanese.lproj folders in my Resources folder.  I moved my Main.wo  
(ERXComponent) to my English.lproj folder, and when I attempt to  
create a Main.wo in my Japanese.lproj folder, WOLips complains  
about the duplicate. It seems to break WOLips and I get  
NullPointerExceptions making it impossible to edit either component  
until one or the other is deleted.  Is there a naming convention  
I'm unaware of or some other magic that I am missing?


You can have any .wo file duplicate (one in each .lproj dir), but  
ony one .api file, check if there is only one Main.api, and put it  
in the Components directory (no sub dir).



Thanks again.

On Apr 13, 2008, at 7:59 AM, Cail Borrell wrote:

Hi TIA

In addition if you are not using sessions you can get your  
localizer with


   ERXLocalizer.defaultLocalizer()

and if you are using ERXComponent's you can call

   localizer()

directly from the component

Regards,
Cail


and if you are not using sessions
On 13/04/2008, at 10.35, Helmut Schottmüller wrote:

Hi TIA,

very simple and Apple Style as usual...
Just add the language resources you need in your Resources folder.  
I for example have a


German.lproj and
English.lproj

Inside these folders add your Localizable.strings file with the key- 
value-pairs for the localized strings (if you use Unicode encoding  
in your application, please make sure that the localized.strings  
files are UTF-16 encoded).


In the Application constructor you should set your default language  
using


 ERXLocalizer.setDefaultLanguage(German);

In the component bindings simply use

session.localizer.YOUR_LANGUAGE_ENTRY_KEY

in the code

session().localizer().valueForKey(YOUR_LANGUAGE_ENTRY_KEY)

If you need to offer localized components with a bit more than some  
localized language entries, you may create the components in the  
Resource/LANGUAGE.lproj directory for every language you use.


I am sure there is also an article in the Confluence Wiki about  
that (http://wiki.objectstyle.org).


Regards,
Helmut


Am 12.04.2008 um 21:14 schrieb Rams:
Hi all,

Can anyone point me in the direction of information regarding how  
to localize a WOLips project.  The process was fairly  
straightforward in xcode, but I can't seem to find any info on  
WOLips.  I would like to know how to localize components

Shorter URLs without mod_rewrite?

2008-05-15 Thread Rams

Hi Everybody!

Is it possible to clean up the urls generated by WO in WO?  I don't  
plan on using Apache, so that sorta eliminates mod_rewrite :-)   
Shorter URLs aren't a necessity, but it would be nice to have.


Thanks!

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Localize WOLips project

2008-05-14 Thread Rams
Thank you both for responding!  It has taken me a while to get back to  
this.


Localizing strings seems to work fine.  I have my English.lproj and  
Japanese.lproj folders in my Resources folder.  I moved my Main.wo  
(ERXComponent) to my English.lproj folder, and when I attempt to  
create a Main.wo in my Japanese.lproj folder, WOLips complains about  
the duplicate. It seems to break WOLips and I get  
NullPointerExceptions making it impossible to edit either component  
until one or the other is deleted.  Is there a naming convention I'm  
unaware of or some other magic that I am missing?


Thanks again.

On Apr 13, 2008, at 7:59 AM, Cail Borrell wrote:


Hi TIA

In addition if you are not using sessions you can get your localizer  
with


ERXLocalizer.defaultLocalizer()

and if you are using ERXComponent's you can call

localizer()

directly from the component

Regards,
Cail


and if you are not using sessions
On 13/04/2008, at 10.35, Helmut Schottmüller wrote:


Hi TIA,

very simple and Apple Style as usual...
Just add the language resources you need in your Resources folder.  
I for example have a


German.lproj and
English.lproj

Inside these folders add your Localizable.strings file with the key- 
value-pairs for the localized strings (if you use Unicode encoding  
in your application, please make sure that the localized.strings  
files are UTF-16 encoded).


In the Application constructor you should set your default language  
using


 ERXLocalizer.setDefaultLanguage(German);

In the component bindings simply use

session.localizer.YOUR_LANGUAGE_ENTRY_KEY

in the code

session().localizer().valueForKey(YOUR_LANGUAGE_ENTRY_KEY)

If you need to offer localized components with a bit more than some  
localized language entries, you may create the components in the  
Resource/LANGUAGE.lproj directory for every language you use.


I am sure there is also an article in the Confluence Wiki about  
that (http://wiki.objectstyle.org).


Regards,
Helmut


Am 12.04.2008 um 21:14 schrieb Rams:

Hi all,

Can anyone point me in the direction of information regarding how  
to localize a WOLips project.  The process was fairly  
straightforward in xcode, but I can't seem to find any info on  
WOLips.  I would like to know how to localize components as well  
as strings.


TIA

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/helmut.schottmueller%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/cail%40frontbase.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley 
%40mac.com


This email sent to [EMAIL PROTECTED]



--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: How to get rid of ?wosid=

2008-05-04 Thread Rams

Hi Gennady,

I'm told you can suppress that behavior.

http://davidleber.net/?p=274

Good luck!


On May 4, 2008, at 8:01 AM, Gennady Kushnir wrote:


Yes, I do create session
And I repeat once again : it is not expected behavior for WOHyperlink
to append ?wosid to href-bound instances
In 5.3 there were no wosids

Gennady

2008/5/4 John Huss [EMAIL PROTECTED]:
You must be creating a session accidentally somewhere.  There is a  
method in

Application that you can override to check when the session is being
created.  I think it's something like createSessionForRequest, but  
you
should be able to find it.  If you can eliminate the session  
creation, that

should take care of it.

John

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/genkush%40rujel.net

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley 
%40mac.com


This email sent to [EMAIL PROTECTED]



--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: IIS and URLScan

2008-05-01 Thread Rams


On May 1, 2008, at 1:49 AM, Don Lindsay wrote:

I ran into an issue on a deployed application.  IIS has a tool  
called URLScan, which refuses URLs that could exploit security flaws  
in IIS server.  I have a tomcat 5 instance running a Web Objects  
5.4.2 application, connecting to IIS using the JK connector.  When  
running the application, any page that had a paginated worepetition  
and WODisplayGroup, if a user clicked the next button which called  
displayNextBatch they would get a 404 error message.


After a few hours I started checking the URLs both running directly  
from tomcat and IIS.   The URLs were identical, but then I had a a  
thought that maybe URLScan was blocking the request.


Turns out this was right on the money.  Some URLs generated by  
WebObjects have periods in them.  URLScan, by default, is configured  
to refuse URLs that contain periods.


To fix this problem:  Edit %WINDIR%\system32\inetsrv\urlscan 
\urlscan.ini  Modify the option AllowDotInPath and set it equal to  
1.  Then goto the [AllowExtensions] and add .woa and .wo to the end  
of the listing.  Save the file and restart the IIS services.


Isn't that in place to prevent SQL injection attacks though?   
Microsoft just finished blaming developers for exposing 500,000 IIS  
servers to SQL injection about two days ago...


http://www.itpro.co.uk/news/192510/microsoft-denies-fault-for-massive-sql-attack.html

I think some may have trouble getting this particular solution past  
our hosting company or management types who now have this on the  
radar.  Perhaps this could be accomplished with URL rewriting  
instead?  I'm using Tomcat standalone currently, but throwing the idea  
out there anyway.  I may be in your predicament sooner or later :-)


Good Luck!

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: a little unclear on the quoting issue of Entity Modeler

2008-05-01 Thread Rams


On May 1, 2008, at 8:24 PM, Jaime Magiera wrote:


Hello,

After not having done much WO programming for several years, I'm  
starting to delve into WOLips. I'm noticing that Entity Modeler is  
quoting my column names during generation, which is causing the  
MySQL to fail.


I've tried reading up on all the threads on the list. However, I'm  
still not clear how folks are working around this. Should I update  
the MySQL installation to include the quoting module? Or is there a  
tweak in Entity Modeler to get it to generate quote-less column names.


Thanks for any help. So far, WOLips is pretty sweet (though I do  
miss drag-n-drop).


Jaime Magiera

Sensory Research
http://www.sensoryresearch.net


Hi Jaime,

I had the exact same problem when I started back a few weeks ago...  
The SQL generator is completely broken.  You will need to switch to  
5.3 if you want to generate sql for your database.  Fortunately, it  
isn't terribly difficult if you know where to go.  You'll find a  
script called woswitch that makes switching back and forth between  
5.3/5.4 easy at the bottom of this page:


http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting+Started

The script doesn't touch your 5.4 install.  You will need to exit  
Eclipse completely before attempting to switch between 53/54.  If you  
are using wonder, you will also need to install the 5.3 wonder  
frameworks in the path


/Developer/WebObjects53/Library/Frameworks

Good Luck!

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

WO 5.4.2 standalone...

2008-04-23 Thread Rams

Hi all,

Any word on when we will see a WO 5.4.2 standalone update?  It is my  
understanding that it is already available with the iPhone SDK.


Thanks in advance.

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Upgraded to Leopard - what do I need to do?

2008-04-16 Thread Rams


On Apr 16, 2008, at 1:20 PM, Daniel DeCovnick wrote:
So I finally upgraded to Leopard and installed Xcode 3 and WO 5.4. I  
know I need to get the 5.4 Wonder frameworks, and I know I can't use  
migrations until 5.4.2. But is there anything else I need to get  
back to work? An updated version of Eclipse and/or WOLips? And are  
there any other major pitfalls I should be wary of?


Thanks,

Daniel

Daniel DeCovnick
danhd123 at mac dot com


The SQL generator is completely broken, hence the reason you  cannot  
use Migrations.  You will need to switch to 5.3 if you want to  
generate sql for your database.  Fortunately, it isn't terribly  
difficult if you know where to go.  You'll find a script called  
woswitch that makes switching back and forth between 5.3/5.4 easy at  
the bottom of this page:


http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting+Started

The script doesn't touch your 5.4 install.  You will need to exit  
Eclipse completely before attempting to switch between 53/54.  If you  
are using wonder, you will also need to install the 5.3 wonder  
frameworks in the path


/Developer/WebObjects53/Library/Frameworks

Good Luck!

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Localize WOLips project

2008-04-12 Thread Rams

Hi all,

Can anyone point me in the direction of information regarding how to  
localize a WOLips project.  The process was fairly straightforward in  
xcode, but I can't seem to find any info on WOLips.  I would like to  
know how to localize components as well as strings.


TIA

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Generate SQL fails

2008-04-07 Thread Rams


I'm trying to Generate SQL to create my tables and it is  
failing.  My searching leads me to believe it is due to my setup  
as described here...


http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829

I'm using:

OS X 10.5
WO 5.4.1
WOLips 3.5?
MySQL 5.0.51a
and Connector J 5.0.8.

Is there a workaround for this issue until there is a fix?


Yes, set up your project linked to the WO5.3.3 frameworks.

Also, does anyone have a rough timetable on when a fix will be  
available?


Apple would, but nothing publicly announced.


Wouldn't that require downgrading my entire system to Tiger?   
Honestly, that doesn't sound very reasonable.  I've been using  
Leopard for six months.  It would be rather difficult to uninstall/ 
downgrade now.  I think it would be easier to learn enough SQL to  
set up tables manually... or is the Generate SQL issue only the tip  
of the iceberg?


Search the wiki for a script called woswitch, it will do  
everything for you included downloading and installing the 5.3.3.  
frameworks all you need to do is quit eclipse, run the script and  
restart eclipse and your done. It doesn't touch any of your  
installed frameworks, only downloads some files and modifies your  
wolips build properties file.


Ok, I found woswitch at the very bottom of the page here:

http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting+Started

Ran the script and now I have numerous problems.  I tried switching to  
53, create an eomodel, generate sql.  That worked in generating a  
simple entity in the database, I didn't try any relationships.  Once  
done, I closed the project (without closing eclipse), switched back to  
54, reopened the project, and the entity no longer exists in the  
EOModel file.  I assume that has something to do with the roughly 38  
errors complaining about not being able to resolve the enitity... I'm  
guessing I don't have the proper frameworks selected.


In addition to that, previously working apps no longer open correctly  
complaining with two errors that:


Invalid classpath container: 'WebObjects Frameworks' in project  
'WOLipsTest'

The project cannot be built until build path errors are resolved

So it seems either I'm doing something wrong, or I'm going to need to  
select my frameworks anytime I switch between the two... ??


Finally, WOnder is nowhere to be found.  I get errors relating to  
anything WOnder and even though the frameworks are right where they  
were previous to running woswitch.sh, I cannot find them in the  
configure build path dialog any longer.  I'm guessing that has  
something to do with the NEXT_ROOT business mentioned in the wiki, but  
I really have no idea how to get it back.


Assistance will be greatly appreciated if anyone can clue me into what  
I'm doing wrong...


--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

[SOLVED] Generate SQL fails

2008-04-07 Thread Rams


On Apr 7, 2008, at 2:19 AM, Rams wrote:


I'm trying to Generate SQL to create my tables and it is  
failing.  My searching leads me to believe it is due to my setup  
as described here...


http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829

I'm using:

OS X 10.5
WO 5.4.1
WOLips 3.5?
MySQL 5.0.51a
and Connector J 5.0.8.

Is there a workaround for this issue until there is a fix?


Yes, set up your project linked to the WO5.3.3 frameworks.

Also, does anyone have a rough timetable on when a fix will be  
available?


Apple would, but nothing publicly announced.


Wouldn't that require downgrading my entire system to Tiger?   
Honestly, that doesn't sound very reasonable.  I've been using  
Leopard for six months.  It would be rather difficult to uninstall/ 
downgrade now.  I think it would be easier to learn enough SQL to  
set up tables manually... or is the Generate SQL issue only the  
tip of the iceberg?


Search the wiki for a script called woswitch, it will do  
everything for you included downloading and installing the 5.3.3.  
frameworks all you need to do is quit eclipse, run the script and  
restart eclipse and your done. It doesn't touch any of your  
installed frameworks, only downloads some files and modifies your  
wolips build properties file.


Ok, I found woswitch at the very bottom of the page here:

http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting+Started

Ran the script and now I have numerous problems.  I tried switching  
to 53, create an eomodel, generate sql.  That worked in generating a  
simple entity in the database, I didn't try any relationships.  Once  
done, I closed the project (without closing eclipse), switched back  
to 54, reopened the project, and the entity no longer exists in the  
EOModel file.  I assume that has something to do with the roughly 38  
errors complaining about not being able to resolve the enitity...  
I'm guessing I don't have the proper frameworks selected.


In addition to that, previously working apps no longer open  
correctly complaining with two errors that:


Invalid classpath container: 'WebObjects Frameworks' in project  
'WOLipsTest'

The project cannot be built until build path errors are resolved

So it seems either I'm doing something wrong, or I'm going to need  
to select my frameworks anytime I switch between the two... ??


Finally, WOnder is nowhere to be found.  I get errors relating to  
anything WOnder and even though the frameworks are right where they  
were previous to running woswitch.sh, I cannot find them in the  
configure build path dialog any longer.  I'm guessing that has  
something to do with the NEXT_ROOT business mentioned in the wiki,  
but I really have no idea how to get it back.


Assistance will be greatly appreciated if anyone can clue me into  
what I'm doing wrong...



Posting my solution for posterity... the reason wonder could not be  
found is because the wonder frameworks needed to be installed for 5.3  
as well.  Download the appropriate wonder latest frameworks here:


http://webobjects.mdimension.com/wonder/

Then unpack the 5.3 frameworks and drop them into /Developer/ 
WebObjects53/Library/Frameworks


As for the other issues, it seems that simply closing the project  
isn't enough.  I have to close eclipse, change between 53/54 and then  
start eclipse back up.


I finally have a working eclipse installation and I am happy at the  
moment.  I do appreciate everyone's assistance and I thank you all for  
your patience as well.


--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Generate SQL fails

2008-04-06 Thread Rams

Hello everyone,

I'm trying to Generate SQL to create my tables and it is failing.  My  
searching leads me to believe it is due to my setup as described here...


http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829

I'm using:

OS X 10.5
WO 5.4.1
WOLips 3.5?
MySQL 5.0.51a
and Connector J 5.0.8.

Is there a workaround for this issue until there is a fix? Also, does  
anyone have a rough timetable on when a fix will be available?


TIA

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Generate SQL fails

2008-04-06 Thread Rams
I'm trying to Generate SQL to create my tables and it is failing.   
My searching leads me to believe it is due to my setup as described  
here...


http://wiki.objectstyle.org/confluence/display/WOL/mail/3047829

I'm using:

OS X 10.5
WO 5.4.1
WOLips 3.5?
MySQL 5.0.51a
and Connector J 5.0.8.

Is there a workaround for this issue until there is a fix?


Yes, set up your project linked to the WO5.3.3 frameworks.

Also, does anyone have a rough timetable on when a fix will be  
available?


Apple would, but nothing publicly announced.


Wouldn't that require downgrading my entire system to Tiger?   
Honestly, that doesn't sound very reasonable.  I've been using Leopard  
for six months.  It would be rather difficult to uninstall/downgrade  
now.  I think it would be easier to learn enough SQL to set up tables  
manually... or is the Generate SQL issue only the tip of the iceberg?


Anyone else have a working solution?  Different choice in database  
perhaps?


TIA

--
Learn how to secure your email
(Mac OS X 10.3+) http://www.joar.com/certificates/
(Windows) http://www.marknoble.com/tutorial/smime/smime.aspx




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]