Re: Slack WO channel

2016-09-16 Thread Henrique Gomes
> 
> On 08/09/2016, at 18:31, Raymond NANEON <rnan...@me.com> wrote:
> 
>> Re,
>> 
>> Please add me too :
>> 
>> rnan...@gmail.com
>> 
>> Thanks
>> 


Me too, pretty please.

Henrique Gomes

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Anyone using Kepler?

2013-09-19 Thread Henrique Gomes
Thank you for bringing this up, I was using different versions of eclipse for 
WO and other work (embedded systems, C) because when I tried to work with 
eclipse 4.x, it crashed with NPE's on the WO editor so I was still using Indigo 
(3.?) for WO.

After trying again with 4.3, I found out that a new workspace solves the 
problem, but I also found out that I only need to erase the prefs stored in 
.metadata/.plugins/org.eclipse.core.runtime/.settings I delete all the org 
org.objectstyle.* and org.eclipse.wst.* files in there.

I'm know using the same eclipse for all my work, great.

Henrique Gomes


On Sep 6, 2013, at 6:02 PM, Ramsey Gurley rgur...@smarthealth.com wrote:

 I'm using 4.3 without issues for about 6 weeks now. My coworkers are not able 
 to make the same claim. We've all decided I'm charmed :-)
 
 https://github.com/wolips/wolips/issues/102
 
 On Sep 6, 2013, at 9:40 AM, Hugi Thordarson wrote:
 
 Hi all.
 I'm setting up a new team on WO. Just wondering if anyone is using Eclipse 4 
 with any success now or if I should start them off on 3.x?
 
 Cheers,
 - hugi
 
 // Hugi Þórðarson
 // Góður kóði
 // 895-6688 / 561-0896
 
 


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

What does NEXT_ROOT has to do with launching a java VM??!?!?

2013-03-27 Thread Henrique Gomes

Can any one explain this?

bash-3.2# java -version
java version 1.7.0_17
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

bash-3.2# export NEXT_ROOT=/opt/apple/

bash-3.2# java -version
Unable to locate a Java Runtime to invoke.


Why would setting NEXT_ROOT stop java from even launching?

Henrique Gomes

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: What does NEXT_ROOT has to do with launching a java VM??!?!?

2013-03-27 Thread Henrique Gomes

Oh, I guess setting NEXT_ROOT will prevent 
/System/Library/Frameworks/JavaVM.framework from being found?



On Mar 27, 2013, at 12:09 PM, Henrique Gomes li...@farol.pt wrote:

 
 Can any one explain this?
 
 bash-3.2# java -version
 java version 1.7.0_17
 Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
 
 bash-3.2# export NEXT_ROOT=/opt/apple/
 
 bash-3.2# java -version
 Unable to locate a Java Runtime to invoke.
 
 
 Why would setting NEXT_ROOT stop java from even launching?
 
 Henrique Gomes
 


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Apache adaptor for OS X 10.8

2013-03-26 Thread Henrique Gomes
Hello,

I started today trying to get 10.8 *Server* to use mod_WebObjects. Before I had 
to leave, I did found out that /etc/apache2 files are not used if Server.app is 
installed. That's why httpd -M list looks like it's configured but not working. 
I was trying to configure a virtual host on the Server.app interface and then 
change the configuration file to Include webobjects.conf and got the 'No 
application running' screen. More tomorrow…

Kind regards,

Henrique Gomes


On 26/03/2013, at 19:29, Johann Werner j...@oyosys.de wrote:

 Hi Pascal,
 
 some months ago I did a 10.8 (with installed server tools) setup for WO. The 
 problem is that Apple changed a lot in the directory structure of apache, 
 e.g. the config files in /etc/apache2 are not used anymore by the apache that 
 comes with the system. I can't remember exactly what I did but looking at the 
 config files of the system now I have those places where WO related things 
 are found:
 
 file: /Library/Server/Web/Config/apache2/httpd.conf
 added Include path to your webobjects apache conf to the end of the file
 
 file: /Library/Server/Web/Config/apache2/httpd_server_app.conf
 added Include path to your webobjects apache conf to the end of the file
 within the IfModule alias_module directive there is ScriptAliasMatch 
 ^/cgi-bin/((?!(?i:webobjects)).*$) 
 /Library/Server/Web/Data/CGI-Executables/$1
 
 Probably the changes in the httpd.conf are unnecessary though. The web server 
 resources of your WO applications have to be placed in 
 /Library/Server/Web/Data/Sites/Default/WebObjects to be accessible to the 
 world. There too the directory /Library/WebServer/Documents used in the past 
 is not used anymore on OS X 10.8.
 
 Hope that helps.
 
 jw
 
 
 Am 26.03.2013 um 19:45 schrieb Pascal Robert prob...@macti.ca:
 
 So it seems that the Apache adaptor (mod_WebObjects) is having a couple of 
 problems on 10.8. The problem is that the module is loading (httpd -M list 
 it), but all directives related to the adaptor (WebObjectsAlias, etc.) are 
 not loaded, even if the configuration file IS loaded. Does anyone have a 
 working adaptor for 10.8? 
 
 And no, going to Apache 2.4 is not an option, at least not for me. The place 
 I'm trying to install the adaptor needs to keep the Apache installation that 
 is coming with OS X.
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Apache adaptor for OS X 10.8

2013-03-26 Thread Henrique Gomes
apachectl configtest is using the default files (/etc/apache2) unless given 
the -f option.


Just do a ps -aux to see how Server is launching apache. You will see this:
-f /Library/Server/Web/Config/apache2/httpd_server_app.conf 


HG


On 26/03/2013, at 19:59, Pascal Robert prob...@macti.ca wrote:

 
 Le 2013-03-26 à 15:51, Henrique Gomes li...@farol.pt a écrit :
 
 Hello,
 
 I started today trying to get 10.8 *Server* to use mod_WebObjects. Before I 
 had to leave, I did found out that /etc/apache2 files are not used if 
 Server.app is installed. That's why httpd -M list looks like it's configured 
 but not working. 
 I was trying to configure a virtual host on the Server.app interface and 
 then change the configuration file to Include webobjects.conf and got the 
 'No application running' screen. More tomorrow…
 
 This is weird. I installed my copy of apache.conf (renamed as 
 webobjects.conf) in /etc/apache2/other and if I uncomment the LoadModule 
 directive, apachectl configtest tells me that the module is already loaded 
 (because it was also added to httpd.conf).
 
 Kind regards,
 
 Henrique Gomes
 
 
 On 26/03/2013, at 19:29, Johann Werner j...@oyosys.de wrote:
 
 Hi Pascal,
 
 some months ago I did a 10.8 (with installed server tools) setup for WO. 
 The problem is that Apple changed a lot in the directory structure of 
 apache, e.g. the config files in /etc/apache2 are not used anymore by the 
 apache that comes with the system. I can't remember exactly what I did but 
 looking at the config files of the system now I have those places where WO 
 related things are found:
 
 file: /Library/Server/Web/Config/apache2/httpd.conf
 added Include path to your webobjects apache conf to the end of the file
 
 file: /Library/Server/Web/Config/apache2/httpd_server_app.conf
 added Include path to your webobjects apache conf to the end of the file
 within the IfModule alias_module directive there is ScriptAliasMatch 
 ^/cgi-bin/((?!(?i:webobjects)).*$) 
 /Library/Server/Web/Data/CGI-Executables/$1
 
 Probably the changes in the httpd.conf are unnecessary though. The web 
 server resources of your WO applications have to be placed in 
 /Library/Server/Web/Data/Sites/Default/WebObjects to be accessible to the 
 world. There too the directory /Library/WebServer/Documents used in the 
 past is not used anymore on OS X 10.8.
 
 Hope that helps.
 
 jw
 
 
 Am 26.03.2013 um 19:45 schrieb Pascal Robert prob...@macti.ca:
 
 So it seems that the Apache adaptor (mod_WebObjects) is having a couple of 
 problems on 10.8. The problem is that the module is loading (httpd -M list 
 it), but all directives related to the adaptor (WebObjectsAlias, etc.) are 
 not loaded, even if the configuration file IS loaded. Does anyone have a 
 working adaptor for 10.8? 
 
 And no, going to Apache 2.4 is not an option, at least not for me. The 
 place I'm trying to install the adaptor needs to keep the Apache 
 installation that is coming with OS X.
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt
 
 


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: [Announce] WOCommunity repository for CentOS/RedHat Linux

2013-01-08 Thread Henrique Gomes
Thanks, that's a real time saver!

HG


On Jan 7, 2013, at 3:56 PM, Pascal Robert prob...@macti.ca wrote:

 Hello,
 
 The deployment tools are now available under a Yum repository for even easier 
 installation! If you are using CentOS 5.x/6.x, RedHat Enterprise Linux 
 5.x/6.x or Amazon Linux, you can simply grab the repo file:
 
  
 https://raw.github.com/projectwonder/wonder/3e152ee904a9499e231daf00cff302b5795a13e6/Utilities/Linux/wocommunity.repo
 
 into /etc/yum.repos.d/, and do:
 
  yum install wotaskd
  yum install womonitor
  yum install woadaptor 
 
 to install everything. Please note that I just find out that Amazon Linux 
 installs Apache 2.4 by default, and the adaptor don't work on it, so you will 
 have to install Apache 2.2 BEFORE installing woadaptor. Also, the adaptor is 
 not available for 32 bit systems for now, I have to create to find a way to 
 build it along the 64 bit version.
 
 It's the first time I'm building RPM packages, so it might not be perfect, 
 but it worked well on my CentOS 5.5, CentOS 6.2 and Amazon Linux VMs, so 
 please report any problems. The spec files to build the RPMs are also in the 
 integration branch of Wonder.
 
 Thanks.
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JDK really necessary for deployment?

2012-10-26 Thread Henrique Gomes
I can say I had an app running on JRE for several months, and only found out 
about it precisely because I needed to use jvisualvm and it wasn't there :-)

Henrique Gomes

On 26/10/2012, at 19:32, Ramsey Gurley wrote:

 A client making suggestions about a deployment config is like airline 
 passengers making suggestions about jet engine design…
 
 I don't think a JDK is required, but I would use it anyway. I don't think you 
 get tools like jvisualvm with JRE.  The first time the app falls over with an 
 OutOfMemoryException, you're going to regret having a JRE.
 
 Ramsey
 
 On Oct 26, 2012, at 10:57 AM, Nilton Lessa wrote:
 
 Hi Jesse,
 
 I already have some applications running for a long time in CentOS and 
 Tomcat. But I always, in fact almost as a habit, installed the JDK in 
 deployemnt, never the JRE. And today a client asked me: hi, but is it 
 really necessary the JDK in deployemnt?  and I got stucked. :-P ..because  
 i NEVER deployed a WO app using JRE but JDK. Conceptually I think: no 
 problem. But I feel insecure if there is a detail around JDK/JRE/WebObjects 
 that I am missing. 
 
 
 On 26/10/2012, at 15:50, Jesse Tayler jtay...@oeinc.com wrote:
 
 IFIRC I don't think I do anything to centOS but install WO and setup some 
 standard folders and files.
 
 there's scripts on the wiki which you can find to setup centOS on AWS and 
 those are fantastic if you're not already using them.
 
 are you having any specific troubles?
 
 
 
 
 On Oct 26, 2012, at 1:42 PM, Nilton Lessa nle...@moleque.com.br wrote:
 
 Hi list,
 
 After several years using WebObjects, posting this questions makes me a 
 bit ashamed. :-)
 But the question is: to deploy WO application in CentOS, Tomcat based, is 
 necessary to install a JDK? Or the JRE would be enough?
 
 I always deployed installing the JDK and I remember in the old days I had 
 problems in Windows deployment with JRE.
 
 Could a good soul clarify it for me?
 
 Bests, 
 
 Nilton Lessa
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
 
 This email sent to jtay...@oeinc.com
 
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: centos deploy problems

2012-10-24 Thread Henrique Gomes


On 24 de Out de 2012, at 13:41, Theodore Petrosky tedp...@yahoo.com wrote:

 Failed to get localhost address

use -WOHost

Sent from my iPhone
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Passing WOActionResult to Custom Component

2012-10-24 Thread Henrique Gomes

On Oct 24, 2012, at 3:14 PM, Daniele Corti wrote:

 wo:MyComponent action = $myAction linkLabel = Delete confirmMessage = 
 Confirm Delete continueValue = Continue cancelValue = Cancel /
 
 How can I handle the passed WOActionResult in the action bind to fire it when 
 the user press the SubmitButton?


valueForBinding(action);

It will invoke the action.

Henrique Gomes


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Migrations in parallel code branches

2012-10-09 Thread Henrique Gomes
IMHO, I  think you are over complicating for no obvious gain. If two features 
are developed in parallel, either reconcile them before release / production 
or, if they are released separated, just rename the latter migration before 
release. You are using development databases for each developer, and 
periodically reseting them, right?

I have the exact situation that i'm developing two different features on two 
different branches of code. The migrations on each branch are named the same 
because I do not know which one I'll release first. Then I'll rename the other. 
The only pain, that last 5 seconds, is reseting the database when I change 
branch. That's a simple gzip -dc db.dump.gz | psql dbname 

Schema changes are always a bottleneck and a natural serialization path for 
parallel developments.

Just the way I see it. anybody is welcome to prove me wrong ;-)

Henrique Gomes

On Oct 9, 2012, at 10:53 AM, Maik Musall wrote:

 Hi,
 
 of course there would need to be some possibility to specify such a 
 dependency.
 
 Maik
 
 
 Am 09.10.2012 um 11:45 schrieb Johann Werner j...@oyosys.de:
 
 You would still have the problem of the order in which the migrations have 
 to be run in. Often the migrations are independent of each other but 
 sometimes they aren't.
 
 jw
 
 
 Am 09.10.2012 um 09:11 schrieb Maik Musall m...@selbstdenker.ag:
 
 Hi,
 
 is there a best practice that I'm not aware of if features are developed in 
 two separate branches which both contain migrations, like by two 
 developers? Those migrations typically end up having the same sequence 
 number p, so they can't easily be merged. Even worse, if you rename one to 
 have a higher number q and then merge them, you have to manually pay 
 attention to which migration has already been executed on which database as 
 number p. If you don't, either could end up not being executed, and/or 
 startup fails because the migration is attempted to be executed twice.
 
 Wouldn't it be better, instead of just a single number, to have one entry 
 per migration in the _dbupdater table so that
 * migration classes could be named freely
 * merges would be painless
 * all databases would update automagically again?
 
 I'd like some feedback on that idea. If everybody finds it a good proposal, 
 I'd start implementing that.
 
 Maik
 
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Migrations in parallel code branches

2012-10-09 Thread Henrique Gomes

On Oct 9, 2012, at 12:13 PM, Maik Musall wrote:

 
 Yes, but only on weekends usually, because resetting a 40 GB database takes 
 some time, multiplied by 3 developer databases, a staging system and an 
 integration system. Jenkins builds automatically and I don't want tests to 
 fail there just because someone checked in something in the wrong order.
 

Well, I guess 40GB databases do slow down things a bit  Still think a tree 
of dependencies will not solve all problems, but I guess you get to choose if 
your time is better spent implementing it, or sorting the parallel migrations 
manually ;-)

Henrique Gomes


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: creating a second database connection

2012-08-23 Thread Henrique Gomes

On 23/08/2012, at 20:37, Theodore Petrosky wrote:

 so i am having a problem.
 
 db1 is a postgresql db on machine1
 db2 is an oracledb on machine2
 
 I have a framework for each model and I am importing the frameworks into a 
 newly created D2W wonder app.
 
 If I start the app with either framework, I get a 'good' app that can query 
 the database in question. 
 
 However, if I have both frameworks the app starts but if I try to access the 
 oracle data it blows up.
 
 it look like (from the logs) that with both frameworks in the path, 
 postgresqlplugin is being used. Hence oracle bites the dust.
 
 what should the property file look like for these frameworks?
 
 connection dict from the property file of db1 (postgresql)
 # Connection Dictionary
 dbConnectURLGLOBAL=jdbc:postgresql://localhost/asfreelancedb?capitalizeTypenames=truezeroDateTimeBehavior=convertToNull
 dbConnectUserGLOBAL=admin
 dbConnectPasswordGLOBAL=4004
 dbConnectPluginGLOBAL=PostgresqlPlugIn
 # dbConnectDriverGLOBAL=org.postgresql.Driver
 dbEOPrototypesEntityGLOBAL=EOJDBCPostgresqlPrototypes
 
 connection dict from the property file of db2 (oracle)
 # Connection Dictionary
 dbConnectURLGLOBAL=jdbc:oracle:thin:@10.1.3.250:1521/XE
 dbConnectUserGLOBAL=user
 dbConnectPasswordGLOBAL=as4004
 
 Interesting on the home tab search all I see all the correct columns in the 
 search all popups. But if I click the find button on a table that lives in 
 the oracle db it blows up with:
 
 NFO  er.transaction.adaptor.Exceptions  - Database Exception occured: ERROR: 
 relation job does not exist
  Position: 1240at 
 org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
 
 postgresql???
 
 I am sure I am missing something simple.
 
 Ted 
 


Yes you are :-)
The GLOBAL properties are just that: GLOBAL. Like for ALL models. The last one 
loaded wins. You must replace the 'GLOBAL' by the model name in each.

dbConnectURLModel = 

HG


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: MacBook Air/Mountain Lion

2012-08-07 Thread Henrique Gomes
Hey, I also have a 2008 MBP, but it does have a SSD drive…. 

Couldn't you also just bring an airport base station? One less cable to plug...

HG


On 07/08/2012, at 14:49, Pascal Robert wrote:

 So I'm really tired of my poor Early 2008 MBP, so I'm thinking to moving to a 
 MacBook Air with the i7/8 GB upgrade. I just did a GeekBench test on my MBP 
 and it's almost half the speed of a MBA… 
 
 My main concerns with the MBA is the lack of ports and Mountain Lion. So 
 anyone have moved to Mountain Lion yet? I did move the family's Mac Mini to 
 Mountain Lion and so far so good, but I don't do anything development on it.
 
 I also need to buy a Ethernet adaptor because the co-working space I rent 
 only have Ethernet. That means I need to buy the USB Ethernet adaptor because 
 I need the Thunderbolt port to connect my external display. Does anyone here 
 using the USB Ethernet adaptor with the new MacBook Air and Mountain Lion?
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Startup in deployment hangs

2012-08-03 Thread Henrique Gomes

I can't guess, the only thing I see is that I recall reading warnings about not 
using Bonjour names (the *.local addresses) but really dns names.

HG

On Aug 3, 2012, at 11:55 AM, Markus Ruggiero wrote:

 Hi,
 
 I have a simple ERD2W application that is in ongoing development. For the 
 customer to be able to see progress I decided to set up an out-of-the-box Mac 
 Mini with Lion Server 10.7.4 and make a preliminary version of the app 
 available. Absolute minimum configured, installed wotaskd and womonitor with 
 Ken Ishimotos script (thanks Ken, good thing). Monitor and Taskd seem to be 
 fine, Monitor is reachable with Safari, added one Host (taskd is ok, can get 
 config xml file). Built my application embedding everything (using build.xml 
 in Eclipse). Application and instance configured properly in Monitor but 
 instance does not start. Trying to start the app from terminal with all the 
 command line args copied from Monitor brings the app halfway up, then it sits 
 there and hangs.
 
 
 
  
 /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
   
 /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
   
 /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
   
 /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar
   
 /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
   
 /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar
   
 /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar
 [2012-8-3 12:40:18 CEST] main Initialized : er.extensions.ERXExtensions
 [2012-8-3 12:40:19 CEST] main The bundle ImmoData has malformed version 
 number: 
 Aug 03 12:40:20 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
 configuration with the current system properties.
 Aug 03 12:40:20 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
 configuration with the current system properties.
 Aug 03 12:40:20 N/A[N/A] WARN  NSLog  - Couldn't load properties file: 
 /var/root/WebObjects.properties at path: /var/root
 Aug 03 12:40:20 N/A[N/A] DEBUG NSLog  - Initialized : 
 er.prototypes.ERPrototypes
 Aug 03 12:40:20 N/A[N/A] WARN  NSLog  - Principal class 
 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents
 Aug 03 12:40:20 N/A[N/A] DEBUG NSLog  - Initialized : 
 er.directtoweb.ERDirectToWeb
 Aug 03 12:40:20 N/A[N/A] DEBUG NSLog  - Initialized : er.ajax.Ajax
 Aug 03 12:40:20 N/A[N/A] DEBUG NSLog  - WebObjects version = 5.4.3
 Aug 03 12:40:20 ImmoData[N/A] DEBUG NSLog  - Created adaptor of class 
 WODefaultAdaptor on port 2001 and address public2.local/192.168.56.110 with 
 WOWorkerThread minimum of 16 and maximum of 256
 Aug 03 12:40:21 ImmoData[2001] DEBUG NSLog  - Creating LifebeatThread now 
 with: ImmoData 2001 public2.local/192.168.56.110 1085 3
 
 here it just sits and waits, nothing happens anymore.
 
 Any idea why? Any tips how to find out what it is waiting for and how to fix 
 things?
 
 Thanks a lot
 ---markus---
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Trouble Shooting Mountain Lion

2012-07-27 Thread Henrique Gomes
Why would you want to shoot Mountain Lion? And why are you having trouble doing 
it?

HG


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Logging on LINUX

2012-07-24 Thread Henrique Gomes

On Jul 18, 2012, at 1:19 PM, jp.malr...@free.fr wrote:

 It is logging now. Don't know if it's because it took time to start logging 
 output or if it is because I made the directory writable by apache...

It's not apache writing to the log folder It's the user running wotaskd... 
Unless they are the same on your setup.

HG



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: what did I break with ant?

2012-07-23 Thread Henrique Gomes

On Jul 23, 2012, at 4:59 PM, Theodore Petrosky wrote:

 
 BUILD FAILED
 /Users/asacksadmin/Documents/workspaceAS_II/ASPOOpenProjectsFW/build.xml:57: 
 Directory /Library/Frameworks/ASPOOpenProjectsFW.framework creation was not 
 successful for an unknown reason
 
 Total time: 3 seconds
 
 --
 for Unknown reason.

Can you create de dir on the command line?

$ mkdir  /Library/Frameworks/ASPOOpenProjectsFW.framework 

HG


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Migrating from EOF to Cayenne

2012-07-13 Thread Henrique Gomes

On Jul 12, 2012, at 8:06 PM, Chuck Hill wrote:

 
 You want to know the biggest unfixable problem with WO for me? WO apps can't 
 be deployed on any mobile platform.  That really sucks.
 
 For that, you need to change the paradigm from interface vending servers to 
 servers that vend data and processing.  Use a mobile client technology like 
 Sencha or Montage.  Or write D2iOS.  :-)
 
 (..)
 Chuck

I actually think that's the way to go. You mentioned that switching to Cayenne  
leaves 1/3 of WO, aka the presentation layer, but, really, is there a future on 
server side interface vending? 
I have been very happy with WO, but if/when I switch it will be for HTML5 
native apps. 

Just my 2 € cents

Henrique Gomes


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WOLips integration branch

2012-06-28 Thread Henrique Gomes
Just tried it now, with 'Eclipse for Java Developers', no luck:

Cannot complete the install because one or more required items could not be 
found.
  Software being installed: WOLips 3.7.20120626.31 
(org.objectstyle.wolips.feature.feature.group 3.7.20120626.31)
  Missing requirement: WOLips 3.7.20120626.31 
(org.objectstyle.wolips.feature.feature.group 3.7.20120626.31) requires 
'org.eclipse.update.ui 0.0.0' but it could not be found


HG


On Jun 28, 2012, at 1:21 PM, Michael Schmiedgen wrote:

 Hi Pascal,
 
 does WOLips integrate into Eclipse 4.2 Juno, or are there plans
 to get it working?
 
 Michael
 
 -- 
 ___
 
 Michael Schmiedgen, BSc
 Senior Software Engineer
 
 Takwa GmbH
 Friedrich-List-Str. 36
 99096 Erfurt GERMANY
 
 Tel  +49 361 6534096
 Fax  +49 361 6534097
 Mail schmied...@takwa.de
 Web  http://www.takwa.de/
 ___
 
 
 Amtsgericht Jena HRB 112964
 Geschäftsführung: Ingo Buchholz
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: fetchLimit don't affect SQL fetching limit?

2012-06-27 Thread Henrique Gomes

Also, 

I had trouble some time ago, because a fetch *was* using LIMIT (on Postgres) 
but the subsequent fetch of  prefetchingRelationshipKeyPaths were NOT. 
Is that expected behavior? I assume so, the result of LIMITing the fetch might 
not bring the relation tuples corresponding to the initial LIMITed fetch. Right?

HG

On Jun 27, 2012, at 12:55 PM, Kieran Kelleher wrote:

 Also, you can verify by checking the SQL that is being sent to the database 
 rather than just guessing that LIMIT is not being applied. It might be a big 
 relationship that is causing OOM exception. Or maybe you have not allocated 
 enough memory to your app.
 
 On Jun 27, 2012, at 7:52 AM, Kieran Kelleher wrote:
 
 LIMIT is supported by the Wonder MySQL PlugIn since Nov 22, 2011, commit 
 6c511bb. You would need the MySQLPlugIn in your build path.
 
 
 On Jun 27, 2012, at 3:13 AM, Gennady Kushnir wrote:
 
 I assumed that (
 How can I force LIMIT to SQL statement in MySQL?
 
 2012/6/26 Kieran Kelleher kelleh...@gmail.com:
 It depends on the database plugin you are using. Some plugins take the 
 fetchSpec fetchLimit and incorporate it into the SQL statement in the 
 plugin's EOSQLExpression subclass. The default behaviour of EOF is to 
 limit in memory after the fetch.
 
 On Jun 26, 2012, at 10:23 AM, Gennady Kushnir wrote:
 
 Hello all!
 I am fetching from a table that has lots of records. So I decided to
 fs.setFetchLimit(10) on my EOFetchSpecification, but nevertheless when
 I perform ec.objectsWithFetchSpecification(fs) I get
 JavaOutOfMemoryError.
 It seems to me that fetchLimit does not actually convert to a LIMIT
 clause in a SELECT statement in underlaying SQL. So the actual
 limitation is made in memory after fetch.
 Is it a conventional behavior or it is me doing something wrong?
 
 Gennady
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
 
 This email sent to kelleh...@gmail.com
 
 
 
 
 -- 
 С уважением,
 Геннадий Кушнир
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Problrems with 'Removed ERXEOSerializationUtilities since it is not necessary anymore · 4a98a64 '

2012-06-01 Thread Henrique Gomes

https://github.com/projectwonder/wonder/commit/4a98a64abbab509455ac7330ec1cf5a08343f99c


Am I missing something or is these causing ERModern[Look|DirecttoWeb] to not 
compile?

Henrique


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Problrems with 'Removed ERXEOSerializationUtilities since it is not necessary anymore · 4a98a64 '

2012-06-01 Thread Henrique Gomes
Glad the problem isn't me :-)

HG


On Jun 1, 2012, at 6:27 PM, Ramsey Gurley wrote:

 Crap. I didn't see a red x on that one when I removed it. I'll fix it asap. 
 Thanks for the heads up Henrique.
 
 Ramsey
 
 On Jun 1, 2012, at 10:10 AM, Henrique Gomes wrote:
 
 
 https://github.com/projectwonder/wonder/commit/4a98a64abbab509455ac7330ec1cf5a08343f99c
 
 
 Am I missing something or is these causing ERModern[Look|DirecttoWeb] to not 
 compile?
 
 Henrique
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: AjaxUpdateContainer Empty Reponse

2012-05-17 Thread Henrique Gomes
Looking at your code; are you sure $regStatusExists is true? If it's null or 
false the container will be empty.
You can place an wo:else after the /wo:if  just to show sometting in that 
case.

HG

On May 16, 2012, at 3:39 PM, Pranathi Chepur wrote:

 Hi,
 
 I see some weird behavior with AjaxUpdateContainer which is being triggered 
 by a AjaxObserveField as shown in the code below. Container is updated, but 
 the response is empty. This makes the UI field vanish all of the sudden. This 
 behavior is not consistent and changes each time. Anyone experiencing similar 
 issue? I am using Wonder_5_54_11763 version.
 
 Thanks for any help
 Pranathi  
 
 formRow
 divColumn1 style=text-indent:135px;Registration Approval 
 Status/divColumn1
  spanwo:popUpButton noSelectionString=Any 
 list=$regApprovalStatusList item=$regApprovalStatusItem 
 displayString=$regApprovalStatusItem.displayName id=regtestid 
 selection=$selectedRegApprovalStatus/
wo:AjaxObserveField observeFieldID=regtestid 
 updateContainerID=regYearContainer fullSubmit=$false/
 /span 
 nbsp;nbsp;
  wo:AjaxUpdateContainer id=regYearContainer elementName=span 
 class=dataLabel   
 wo:if condition=$regStatusExists
wo:str value=Year: class=dataLabel/
wo:WOPopUpButton list=$allYears item=$year 
 displayString=$year.yearString selection=$regYearSelected /
/wo:if

/wo:AjaxUpdateContainer  
 /formRow
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JQueryMobile Fall 2012

2012-05-13 Thread Henrique Gomes
Very nice, can't wait to see it in action.

Best Regards,

HG


On 13/05/2012, at 14:51, ISHIMOTO Ken wrote:

 Hi all,
 
 Short intro Video : http://www.youtube.com/watch?v=mnjKSNKLQAU
 
 Thank you
 
 Ken Ishimoto
 
 
 K's ROOM
 
 [E-Mail]  k...@ksroom.com
 [iChat:]   ibase_...@mac.com
 [HP]  http://www.ksroom.com/
 _
 This e-mail has not been scanned for viruses because it was written on an Mac,
 and there are NO Viruses on an Apple Computer.
 For further information visit http://www.apple.com
 
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entirely independent EOF on Quartz Threads - How to do?

2012-05-10 Thread Henrique Gomes

Philippe,

Did you manage to get this framework on github?
I was going to 'transplant' some code from a project to a new one where I also 
need background, scheduled tasks. I thought your code might be a better start 
pointing.
And if you want to get it integrated in wonder let me know if I can help.

Best regards,

Henrique Gomes


On Feb 17, 2012, at 1:37 PM, Philippe Rabier wrote:

 Hi Paul, 
 
 I can give you a complete framework I presented at the last WOWODC that 
 allows Quartz integration in a Wonder app.
 Every class is documented, there is a package-info, … and it allows of course 
 the execution of jobs in // There is also a UI (simple) to see the jobs 
 running and the scheduled jobs.
 
 I have to put on Github, I know and Pascal is ready to help me so it will 
 come…
 It's based on Quartz 2.0. I have to adapt it to Quartz 2.1 (there are some 
 nice enhancements like stop a running job).
 
 So let me know. If you are interested to get the source code, send me an 
 email directly at sophiacom.fr (same user)
 
 Philippe
 @prabier
 
 On 16 févr. 2012, at 23:20, Paul Dunkler wrote:
 
 And Wonder have ERCayenne :-)
 
 ... i know - Wonder got everything :D I've learned loving it in it's special 
 way. I will take a look at ERCayenne...
 
 I think it is possible, but not very practical. The last time I looked 
 (long time ago admittedly) you could achieve multithreading, at the 
 expense of throughput (threads waiting on a shared lock). 
 
 I'd use Cayenne for this. Seriously ... there's no tie in to the WO UI in 
 case of Quartz headless processor, so it should be much easier switch 
 compared to a webapp. I've done a bunch of Cayenne/Quartz projects for 
 different customers, and parallel execution has never been a problem.
 
 I got a mid sized codebase which is highly based on webobjects / wonder and 
 don't have the resources to convert that to a cayenne application. For the 
 first, it would be nice to achieve that with Webobjects/Wonder stuff.
 
 And for the other postings - I will take a look at these Background Tasks... 
 thanks
 
 
 Just my 0.02
 
 Andrus
 
 ---
 Andrus Adamchik
 Apache Cayenne ORM: http://cayenne.apache.org/
 Twitter: http://twitter.com/andrus_a
 
 
 On Feb 16, 2012, at 1:29 PM, Paul Dunkler wrote:
 
 Hi Community,
 
 i'm currently working on a WebObjects-Application which uses the Quartz 
 Scheduler to schedule and run thousand but thousand of jobs. Every job is 
 doing some work in the database (Like reading, computing and then 
 Updating/Deleting some Details from the database).
 
 This works quite well when i only allow Quartz to start one Single Thread 
 for Job Execution. But when i configure more than one thread, it seams 
 that i have problems with EditingContext / ObjectStoreCoordinator-Locking 
 or something else.
 
 The Question is: What should i do to achieve an entirely independent 
 EOF-Stack per Quartz Thread? If it is possible without ramping up a 
 complete EOF-Stack per Thread, this would be even better ;)
 
 Currently i just tried to Create a new EditingContext per Job at the 
 start, lock the rootObjectStore, do some things and then unlock the 
 rootObjectStore and dispose the editingContext. But that doesn't seem to 
 work for me.
  // Job Start
  EOEditingContext anEditingContext = ERXEC.newEditingContext();
  anEditingContext.rootObjectStore().lock();
 
  // Job Execution
 
 // Job End
  anEditingContext.saveChanges();
  anEditingContext.rootObjectStore().unlock();
 
 
 It would be nice to get your suggestions about this Topic.
 
 --
 Mit freundlichen Grüßen
 
 Paul Dunkler
 
 
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 
 
 --
 Mit freundlichen Grüßen / Kind regards
 
 Paul Dunkler
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com
 
 This email sent to prab...@me.com
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options

Re: Entirely independent EOF on Quartz Threads - How to do?

2012-05-10 Thread Henrique Gomes

On May 10, 2012, at 11:48 AM, Henrique Gomes wrote:

 
 Philippe,
 
 Did you manage to get this framework on github?
 I was going to 'transplant' some code from a project to a new one where I 
 also need background, scheduled tasks. I thought your code might be a better 
 start pointing.

 I meant  'starting point'.  

HG


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Dev on Win ... deploy on *NIX and/or Mac

2012-04-29 Thread Henrique Gomes
I don't , but let me ask,  are you talking about building or developing on 
windows? You might be able to *develop* on windows but use Jenkins on Mac or 
Linux to build.


HG

On Apr 29, 2012, at 3:55 AM, Robert B. Hanviriyapunt wrote:

 Anybody build on Windows for deployment on UNIX or Mac?
 
 I have issues with the final WOA having windows paths in the Mac or Unix 
 classpath files (instead of the the correct APPROOT variable).
 
 Any fix for this?
 
 = Robert =
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Problem with download link in 'appendToResponse'

2012-04-26 Thread Henrique Gomes
You can have a D2W component with a link to downloadable content, but that link 
needs to return a component that only vends the downloadable file. At least 
that's the way I've done always.
Create an empty component (does not need any html, just the .java and .api) and 
place the appendToResponse code on that component.

HG


On Apr 25, 2012, at 4:06 PM, Juergen Lorenz Simon wrote:

 Hi,
 
 I'm trying to generate some file content on the fly and return it when the 
 user clicks a link. I'm doing this in a D2W context, the component is a 
 propoerty level component. I had some success by overwriting appendToResponse 
 like so:
 
 public void appendToResponse(com.webobjects.appserver.WOResponse response, 
 WOContext context) 
 {
 if ( shouldDownloadFile )
 {
 String fileName = generated.properties;
 String contentType = text/ascii;
 response.setHeader( contentType + ; name=\ + fileName + \, 
 Content-Type ); 
 response.setHeader( 
 attachment; filename=\ + fileName + \, Content-Disposition);
 String content = this.configuration();
 response.setContent( content );
   }
   else
   {
   super.appendToResponse( response, context );
   }
 }
 
 The flag 'shouldDownloadFile' is set to true when the link contained in the 
 component is clicked (normal action binding).
 
 However, instead of only the generated content, I also get some other 
 generated HTML in the file. Does somebody know what the problem is?
 
 Kind Regards,
 J.L.Simon
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Errors on integration branch

2012-04-17 Thread Henrique Gomes


On Apr 17, 2012, at 6:30 PM, Pascal Robert wrote:

 Sounds like @Override annotations where the original method is from an 
 interface. You will get those errors if you are using Java 1.5 (works fine 
 for Java 1.6).

Well, that is correct. Thanks.

HG
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERModernLook/ERModernDefaultSkin deployment

2012-04-16 Thread Henrique Gomes

On Apr 15, 2012, at 12:09 PM, Jürgen Tabert wrote:
 I have a little problem with my deployment (all frameworks emdedded)
 as follows:
 
 1. accessing the application using apache works (split deployment)
 
 2. if I access the application server only the css-files gets loaded
 
 (...)

 What am I doing wrong?


What exactly are you doing on 2?

Henrique Gomes


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ERModernLook/ERModernDefaultSkin deployment

2012-04-16 Thread Henrique Gomes

On Apr 16, 2012, at 12:34 PM, Jürgen Tabert wrote:

 I use the url of the application server (http://host:2001/...)
 

I think, that unless you have Direct Connect enabled (and it should be off on 
deployment) you can't point your browser at those ports. They are used by the 
Apache module to forward the requests it receives on port 80 (or 443)

Henrique Gomes


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: SQL

2012-04-13 Thread Henrique Gomes

On Apr 13, 2012, at 9:19 AM, Ron X wrote:

 @Override
 public WOActionResults defaultAction() {
 NSArrayChart result = 
 EOUtilities.rawRowsForSQL(session().defaultEditingContext(), 
 Chart.ENTITY_NAME, SELECT count(*), sum(size));
 
 return pageWithName(Main.class);
 }
 

 ERROR 47.15 MB used/33.91 MB free [WorkerThread0] 
 (ERD2WDirectAction.java:480) (Error) - Error with action 
 default:com.webobjects.eoaccess.EOObjectNotAvailableException: 

The second argument is the Model name, not the entity / table:

 databaseContextForModelNamed: cannot find model named Chart associated with 
 this EOEditingContext, formValues:{}

and the sql must be a complete sentence; SELECT ... FROM table;

HG



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: D2W: Pattern for complex object creation

2012-03-29 Thread Henrique Gomes

On Mar 29, 2012, at 10:31 AM, Paul Hoadley wrote:

 the app breaks with every OS X upgrade (because Ruby and/or Rails changes).

Thanks for the (implicit) warning :-) I'll stay clear of that framework.

Slightly more serious; is it really an intrinsic problem of Rails, or just your 
app?

Henrique Gomes


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSMutableDictionary OR NSDictionary

2012-03-23 Thread Henrique Gomes
So you want the value for that key to be an Array, with two elements, each one 
a Dictionary?

HG

On Mar 23, 2012, at 10:35 AM, Raymond NANEON wrote:

 Hi,
 
 I Want to add dictionary to a key that already has dictionary in order to 
 have two dictionaries for the same key.
 
 i.e : Data.valueForkey(28)={uv = CMX4; salle = B001; temp = 8; semaine = 
 2; type = TP; id = 0; weekname = A; }
 And add this value {uv = CMX4; salle = B001; temp = 8; semaine = 2; 
 type = TP; id = 0; weekname = A; } for the same key 28
 
 finally : Data.valueForkey(28) = { {uv = CMX4; salle = B001; temp = 8; 
 semaine = 2; type = TP; id = 0; weekname = A; };{uv = CMX4; salle = 
 B001; temp = 8; semaine = 2; type = TP; id = 0; weekname = A; } } 
 like nested dictionary
 
 Impossible to use append of StringBuilder
 
 Thanks for your help
 Envoyé depuis iCloud
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt
 
 This email sent to li...@farol.pt


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

D2W, entity with two relationships to the same entity?

2012-01-06 Thread Henrique Gomes

Hello,

I've got an entity that has two relationships to the same entity:

A.r1 - B
A.r2 - B

The problem is that with ERModern, the second ERMDRelationship on the Edit page 
does no work.
I guess it has to do with both having the same AjaxUpdateContainer id, which 
looking at ERMODRequiredWrapper, is taken from d2wContext.idForMainContainer.
I can't figure out a way to give them different id's. 
Any thoughts?

On a related note, I solved for the NEW page by using tabs:

http://wiki.wocommunity.org/display/WO/Using+ERD2WWizardCreationPage

But that fails on the edit task; '(Page1)' key not found.

Best regards,

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: Seriously now… where is the hidden rule, css or ? to allow deleting of an ERAttachment?

2012-01-02 Thread Henrique Gomes

On Jan 2, 2012, at 4:58 PM, David LeBer wrote:

 That is correct.
 
 Oversight on my part.
 
 In my defence we never model an attachment directly there is always an 
 intermediate parent object, i.e:
 
 Person - Avatar - ERAttachment.
 
 So deletion happens on the Avatar which cascades to the attachment.
 
 OK, not much of a defence, but that's all I've got. ;-)
 
 Back to enjoying the last day of holidays with my family...
 
 --
 David LeBer
 Codeferous Software
 
 On 2012-01-02, at 11:31 AM, Ramsey Gurley wrote:
 
 It looks like ERModern uses the ERAttachmentFlexibleEditor found in the 
 ERAttachment framework. I don't see a remove/delete button in there.
 
 Ramsey
 

Well, I'm using ERModern, and on the edit page, it's using ERD2WEditAttachment, 
which *does* allow removing. Did not do anything to get that.

Now, the Inspect page, is getting on my nerves, sometimes, it switches to 
ERD2WDisplayToOne, instead of ERD2WDisplayAttachment. Going through the 
rules now

Henrique Gomes


 ___
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 arch...@mail-archive.com


joda LocalDate and D2W?

2011-12-29 Thread Henrique Gomes


Hello,

So what are people using on D2W edit pages for jodaLocalDate fields?
For display, a simple ERD2WEditString will do it,  although  I don't think I 
can can apply a custom format then.
But for editing all the (ER)D2EEditDate* that I find want a string for format. 
I wanted a formatter object to create the jodaLocalDate from the string and the 
other way around.

Do I have to roll my own component, patch one of the existing components or is 
there a simpler solution?

Many thanks.

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: Community needs

2011-12-10 Thread Henrique Gomes

On Dec 9, 2011, at 1:09 PM, Jérémy DE ROYER [INGENCYS] wrote:

 Hello,
 
 What about a forum we could mix with the mailing list to build up a knowledge 
 base ?
 
 Jérémy
 

No, please NO!! I hate forums. Hate searching on them, hate having to check 
them, hate the structure they impose.

If you want a KB, what we can do is have an archive of the mailing list hosted 
by the community, although with the number of archives on the internet, and the 
speed at which information ceases to be relevant, don't really think it is 
worth it.

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: Using NTLM Authentication in WO apps

2011-11-21 Thread Henrique Gomes

On Nov 21, 2011, at 8:34 AM, Karl wrote:

 Hi,
 
 We have a client who wants to use NTLM authentication for our WOApp to 
 provide single sign on for their Windows users.  Has anyone actually done 
 this before?
 
 We are hosting the app on Mac OS X 10.7 using Java 6 and Apache 2.x.
 
 Any information would be appreciated.
 
 Karl


The way I would do it (and will really soon for a project) is to have apache 
handle the authentication of the user if the URL is something like /wa/login.
You could use the ntlm module for apache.

Actually, since I never done in WO, that leads me to question how I would 
retrieve the REMOTE_USER from the apache request?

(Since windows domains are really kerberos, you could also use kerberos 
authentication, you would need a HTTP/hostname principal created on the windows 
kerberos server. There are mails about in on the archives)

HG

 ___
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 arch...@mail-archive.com


Re: Help with ERXEOAccessUtilities

2011-11-17 Thread Henrique Gomes

I really do not know much about mysql security model. Are you sure you have 
permissions? Have you tried running that statement on the command line client 
for mysql?

Can't really help more than that, sorry.

HG


On Nov 15, 2011, at 12:08 PM, Gino Pacitti wrote:

 But how is that so?
 
 Other SQL statements are evaluated using the WO EOUtilities Class with no 
 problem... Am I not providing using info?
 
 GIno
 On 15 Nov 2011, at 09:47, Henrique Gomes wrote:
 
 
 On Nov 14, 2011, at 11:34 PM, Gino Pacitti wrote:
 
 Access denied for user 'admin'@'127.0.0.1'
 
 Sounds like the root cause right there
 
 HG
 
 ___
 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/ginokris%40mac.com
 
 This email sent to ginok...@mac.com
 

 ___
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 arch...@mail-archive.com


Re: Help with ERXEOAccessUtilities

2011-11-15 Thread Henrique Gomes

On Nov 14, 2011, at 11:34 PM, Gino Pacitti wrote:

 Access denied for user 'admin'@'127.0.0.1' 

Sounds like the root cause right there

HG

 ___
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 arch...@mail-archive.com


Re: Golipse installs Eclipse 3.7

2011-09-23 Thread Henrique Gomes

On Sep 23, 2011, at 9:43 AM, Pascal Robert wrote:

 
 Le 2011-09-22 à 23:31, ISHIMOTO Ken a écrit :
 
 I am using the Workspace Mechanics from day one, but have no Problems.
 
 Workspace Mechanics do work for me too. I found that the exception I'm 
 getting is when bundle-less is enabled and the project have the WOLips 
 framework, and the default Workspace Mechanics sets bundle-less by default.
 
 Does only David Holt and myself are getting this problem?
 

I'm getting it! Used Golipse yesterday to get to eclipse 3.7, NO WOLIPS on this 
project, bundles or no bundles it refuses to start. Workspace Mechanics left as 
installed by golipse.
Altought this particular project has had the occasional problem on the past.

[2011-9-23 11:31:6 WEST] main A fatal exception occurred: ERXExtensions have 
not been initialized. Please report the classpath and the rest of the bundles 
to the Wonder mailing list: 
Remaining frameworks: [ExcelGenerator, Ajax, ERAttachment, PostgresqlPlugIn, 
ERPrototypes, JavaWOExtensions, ERExtensions, WOOgnl]
Classpath: 

Re: Golipse installs Eclipse 3.7

2011-09-23 Thread Henrique Gomes

On Sep 23, 2011, at 11:36 AM, Henrique Gomes wrote:

 
 On Sep 23, 2011, at 9:43 AM, Pascal Robert wrote:
 
 
 Le 2011-09-22 à 23:31, ISHIMOTO Ken a écrit :
 
 I am using the Workspace Mechanics from day one, but have no Problems.
 
 Workspace Mechanics do work for me too. I found that the exception I'm 
 getting is when bundle-less is enabled and the project have the WOLips 
 framework, and the default Workspace Mechanics sets bundle-less by default.
 
 Does only David Holt and myself are getting this problem?
 
 
 I'm getting it! Used Golipse yesterday to get to eclipse 3.7, NO WOLIPS on 
 this project, bundles or no bundles it refuses to start. Workspace Mechanics 
 left as installed by golipse.
 Altought this particular project has had the occasional problem on the past.

I got it working with Generate bundles ON. After the usual clean, restart, 
clean again, restart once more voodoo  Other projects on other workspaces 
are working fine with Generate Bundles OFF  and WOLips on the build path so the 
problem is with this project. Will have to figure it out latter. 

HG

 ___
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 arch...@mail-archive.com


Re: Cleanup of Jira for WOLips

2011-09-21 Thread Henrique Gomes
You can always uuencode the file an place it  on the comments :-)

I bet 90% of the members of this list would know what to do it .

HG

On Sep 20, 2011, at 11:39 PM, Ramsey Gurley wrote:

 Good point. I didn't realize there was no way to attach files to an issue on 
 GitHub. Although, when I think about it, it's rare that I'll attach anything 
 other than a patch.
 
 Ramsey
 
 On Sep 20, 2011, at 3:32 PM, Pascal Robert wrote:
 
 Downside of GitHub is that you can't attach files to an issue, so you can't 
 upload stacktraces, patches (they will have to be pull requests), etc. But 
 since most of us have Web servers or are using DropBox, I guess it's small 
 issue (no pun intended).
 
 I tend to agree. Having two places where issues exist is a bit tedious.  
 Plus moving them to github will naturally weed out the outdated/irrelevant 
 issues. I've noticed traffic on the JIRA tracker has all but died since we 
 moved to github anyway.
 
 Ramsey
 
 On Sep 20, 2011, at 1:52 PM, Mike Schrag wrote:
 
 or drop jira and just start fresh with github issues ...
 
 On Sep 20, 2011, at 10:52 AM, Pascal Robert wrote:
 
 We have 451 open Jira for WOLips/WOProject... And looking at some of 
 them, I think we can close some of them. So if you opened a Jira for 
 WOLips in the past, can you check out your Jira and add a comment to say 
 if the problem has been fixed? I will clean them up based on the comments.
 
 http://issues.objectstyle.org/jira/browse/WOL
 
 Thanks. ___
 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/mschrag%40pobox.com
 
 This email sent to msch...@pobox.com
 
 ___
 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%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 
 
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: How to get SelectedObject from AjaxAutoComplete

2011-09-21 Thread Henrique Gomes

Is the AutoComplete inside a form?

Also, AjaxAutoComplete has both a value and a selection binding. You can use 
either of both.

HG


On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote:

 Help please, my project is stuck on this problem.
 
 When I use WORequest and use formValueForkey(autoComp1) I get a String of a 
 textField component . Where is the selectedMotClefs I chose to fill the field?
 
 Thanks
 Envoyé depuis iCloud
 
 Le 21 sep 2011 à 03:05, Raymond NANEON rnan...@me.com a écrit :
 
 Hi All,
 
 I have a lill' problem with AjaxAutoComplete. I am having difficult to get 
 the selected Object bind to selection attribute.
 
 Here is my HMTL code : 
 
 div id = searchFormwo name = autoCompAOF1webobject name = 
 motClefsAutoComplete1//wo/div
 
 Here is WOD code :
 
 motClefsAutoComplete1 : AjaxAutoComplete {
 id = autoComp1;
 list = session.matchMotcClefs;
 value = session.motClefs;
 item = session.motClefsRepetition;
 displayString = session.motClefsRepetition.refidxval;
 selection = session.selectedMotClefs;
 //afterUpdateElement = ctrl.refreshPop2;
 }
 
 autoCompAOF1 : AjaxObserveField {
 fullSubmit = true;
 elementName = span;
 action = ctrl.refreshPop2;
 updateContainerID = pop2;
 }
 
 Here is my java method to get Selected Object :
 
// Module de recherches
 public WOActionResults refreshPop2() {
 if (getSelectedMotClefs() != null) {
 //
 }
 return null;
 }
 
 What is the way to have data of selectedMotClefs?
 
 Thanks
 Envoyé depuis iCloud
 ___
 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/rnaneon%40me.com
 
 This email sent to rnan...@me.com
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: How to get SelectedObject from AjaxAutoComplete

2011-09-21 Thread Henrique Gomes



 selection = session.selectedMotClefs;

How is that defined in your Session?
I wonder why your are using the session at all. Why not a local variable on 
your WOComponent?

   if (getSelectedMotClefs() != null) {


What's the code for getSelectedMotClefs() ?

HG

On Sep 21, 2011, at 2:47 PM, Raymond NANEON wrote:

 
 
 
 Is the AutoComplete inside a form?
  
 Yes It's inside a form.
 
 
 Also, AjaxAutoComplete has both a value and a selection binding. You can use 
 either of both.
  
 The value take the selection.attribute but I want the selection Only which is 
 an Object to get his pk. 
 here my WOD :
 motClefsAutoComplete1 : AjaxAutoComplete {
   id = auto1;
   list = session.matchMotcClefs;
   value = session.motClefs;//Not this
   item = session.motClefsRepetition;
   displayString = session.motClefsRepetition.refidxval;
   selection = session.selectedMotClefs;//I want this
 }
 
 
 HG
  
 Ray
 
 
 On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote:
 
  Help please, my project is stuck on this problem.
  
  When I use WORequest and use formValueForkey(autoComp1) I get a String 
  of a textField component . Where is the selectedMotClefs I chose to fill 
  the field?
  
  Thanks
  Envoyé depuis iCloud
  
  Le 21 sep 2011 à 03:05, Raymond NANEON rnan...@me.com a écrit :
  
  Hi All,
  
  I have a lill' problem with AjaxAutoComplete. I am having difficult to 
  get the selected Object bind to selection attribute.
  
  Here is my HMTL code : 
  
  div id = searchFormwo name = autoCompAOF1webobject name = 
  motClefsAutoComplete1//wo/div
  
  Here is WOD code :
  
  motClefsAutoComplete1 : AjaxAutoComplete {
  id = autoComp1;
  list = session.matchMotcClefs;
  value = session.motClefs;
  item = session.motClefsRepetition;
  displayString = session.motClefsRepetition.refidxval;
  selection = session.selectedMotClefs;
  //afterUpdateElement = ctrl.refreshPop2;
  }
  
  autoCompAOF1 : AjaxObserveField {
  fullSubmit = true;
  elementName = span;
  action = ctrl.refreshPop2;
  updateContainerID = pop2;
  }
  
  Here is my java method to get Selected Object :
  
  // Module de recherches
  public WOActionResults refreshPop2() {
  if (getSelectedMotClefs() != null) {
  //
  }
  return null;
  }
  
  What is the way to have data of selectedMotClefs?
  
  Thanks
  Envoyé depuis iCloud
  ___
  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/rnaneon%40me.com
  
  This email sent to rnan...@me.com
  ___
  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/lists%40farol.pt
  
  This email sent to li...@farol.pt
 

 ___
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 arch...@mail-archive.com


Re: How to get SelectedObject from AjaxAutoComplete

2011-09-21 Thread Henrique Gomes

On Sep 21, 2011, at 3:10 PM, Raymond NANEON wrote:

 
 Envoyé depuis iCloud
 
 Le 21 sep 2011 à 06:53, Henrique Gomes li...@farol.pt a écrit :
 
 
 
 
  selection = session.selectedMotClefs;
 
 How is that defined in your Session?
 I wonder why your are using the session at all. Why not a local variable on 
 your WOComponent?
 
  if (getSelectedMotClefs() != null) {
 
 
 What's the code for getSelectedMotClefs() ?
  
 public WOActionResults refreshPop2() {
   if(session.getSelectedMotClefs() != null){
   
   }
   return null;
   }
  

I meant the code on your Session.java where those methods are defined.


 When I do selection in the AjaxAutoComplete, the method refreshPop2 run to 
 get selectedObject pk. But my surprise is the selectedObject is always NULL.
 
 What's wrong?





 
 
 HG
  
 Ray
 
 
 On Sep 21, 2011, at 2:47 PM, Raymond NANEON wrote:
 
  
  
  
  Is the AutoComplete inside a form?
  
  Yes It's inside a form.
  
  
  Also, AjaxAutoComplete has both a value and a selection binding. You can 
  use either of both.
  
  The value take the selection.attribute but I want the selection Only which 
  is an Object to get his pk. 
  here my WOD :
  motClefsAutoComplete1 : AjaxAutoComplete {
  id = auto1;
  list = session.matchMotcClefs;
  value = session.motClefs;//Not this
  item = session.motClefsRepetition;
  displayString = session.motClefsRepetition.refidxval;
  selection = session.selectedMotClefs;//I want this
  }
  
  
  HG
  
  Ray
  
  
  On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote:
  
   Help please, my project is stuck on this problem.
   
   When I use WORequest and use formValueForkey(autoComp1) I get a 
   String of a textField component . Where is the selectedMotClefs I chose 
   to fill the field?
   
   Thanks
   Envoyé depuis iCloud
   
   Le 21 sep 2011 à 03:05, Raymond NANEON rnan...@me.com a écrit :
   
   Hi All,
   
   I have a lill' problem with AjaxAutoComplete. I am having difficult to 
   get the selected Object bind to selection attribute.
   
   Here is my HMTL code : 
   
   div id = searchFormwo name = autoCompAOF1webobject name = 
   motClefsAutoComplete1//wo/div
   
   Here is WOD code :
   
   motClefsAutoComplete1 : AjaxAutoComplete {
   id = autoComp1;
   list = session.matchMotcClefs;
   value = session.motClefs;
   item = session.motClefsRepetition;
   displayString = session.motClefsRepetition.refidxval;
   selection = session.selectedMotClefs;
   //afterUpdateElement = ctrl.refreshPop2;
   }
   
   autoCompAOF1 : AjaxObserveField {
   fullSubmit = true;
   elementName = span;
   action = ctrl.refreshPop2;
   updateContainerID = pop2;
   }
   
   Here is my java method to get Selected Object :
   
   // Module de recherches
   public WOActionResults refreshPop2() {
   if (getSelectedMotClefs() != null) {
   //
   }
   return null;
   }
   
   What is the way to have data of selectedMotClefs?
   
   Thanks
   Envoyé depuis iCloud
   ___
   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/rnaneon%40me.com
   
   This email sent to rnan...@me.com
   ___
   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/lists%40farol.pt
   
   This email sent to li...@farol.pt
  
 

 ___
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 arch...@mail-archive.com


Re: Apple Representation On WebObjects-Dev Mailing List?

2011-07-07 Thread Henrique Gomes

On Jul 7, 2011, at 6:08 PM, Amedeo Mantica wrote:

 And also this thread has gone offtopic :-)

That never happened before :-) 

When I see long threads I always hope they have gone off-topic, they become 
much more entertaining ;-)

Henrique (That used 300bps modems to access the university VAXen)


 ___
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 arch...@mail-archive.com


Re: Replacing no instance / app not found with custom 404 or similar

2011-05-16 Thread Henrique Gomes
If I remember correctly it's the 'Redirect URL' on the Site tab o JavaMonitor.

Henrique Gomes

On May 16, 2011, at 4:13 PM, Karl wrote:

 Hi,
 
 Does anyone know of a way to replace No Instance or App Not Found messages 
 with a friendly static page?  Such as when taking an app down for upgrade or 
 maintenance?
 
 Possibly some Apache config for it?
 
 Thanks,
 
 Karl
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-12 Thread Henrique Gomes


On May 12, 2011, at 11:44 AM, naneon.raym...@neuf.fr wrote:

 
 My problem is this fetch don't use *disctinct* and I have several time the 
 same student. 

Simple?

fetchEtudiantViaUvDg.setUsesDistinct(true);

See:
http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eocontrol/EOFetchSpecification.html#setUsesDistinct(boolean)

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-12 Thread Henrique Gomes

On May 12, 2011, at 11:44 AM, naneon.raym...@neuf.fr wrote:

 The another problem is how to set qualifier to do natural join like :
 A.id = B.id, when I don't have parameters  for my qualifier? 

Is that relation modeled in Entity Modeler? The qualifier to use will depend if 
the relation is toOne or toMany.

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship

2011-05-12 Thread Henrique Gomes

Are you trying to restrict the results by filtering on a related table? Or just 
want to fetch data from more than one table?
Fetches in WO are always from ONE entity (table).  EOF uses joins to FILTER, 
not to add data to the result.
If your entity A has a toMany relation to entity B, A will have a method A.b() 
that returns an NSArrayB.
On initial fetch, the data for the B relation is not fetched, and EOF will 
fetch it from the db when the method is used, then caches the result.
To avoid lots of  one row accesses to the db, you can instruct a 
fetchSpecification to prefetch all the 'B's when fetching from A.

Henrique Gomes


On May 12, 2011, at 4:07 PM, naneon.raym...@neuf.fr wrote:

 Hi all, 
 
 I could fix my problem of *Distinct* with this line: 
 
 ds.fetchSpecification (). setUsesDistinct (true); 
 
 Then I added to my ERXBatchingDisplayGroup 
  fetchEtudiantViaUvDg.setDataSource (ds); 
 the fetch is done so with disctint.
 
 Now I try to do a qualifier which is a join between *individu* and 
 *etu_insc_adm*.
 
 I.e : SELECT * from individu t0, etu_insc_adm t1 WHERE t0.id = t1.etuId; 
 
 How to set this qualifier : t0.id = t2.etuId ??
 
 Thanks
 
 
 
 Message du : 12/05/2011
 De : naneon.raym...@neuf.fr
 A : Chuck Hill ch...@global-village.net, WebObjects webobjects-dev 
 webobjects-dev@lists.apple.com
 Copie à : 
 Sujet : Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in 
 DATABASE with but have relationship
 
 
 Hi Chuck,
 
 I change my mind and go to try ERXBatchingDisplayGroup with a qualifier I 
 built (see below)
 
 I translate my fetch spec  qualifier: 
 
 nom like $nom 
 or prenom like $prenom 
 or indivId = $numero 
 or etuInscrAdms.diplomec like $etuInscrAdms.diplomec 
 or (etuInscrAdms.anUniv like $etuInscrAdms.anUniv and etuInscrAdms.prdUniv 
 like $etuInscrAdms.prdUniv) 
 or etuInscrAdms.niveauAdm = $etuInscrAdms.niveauAdm 
 or (etuInscrAdms.eoVueInsuvs.uvc = $etuInscrAdms.eoVueInsuvs.uvc 
 and etuInscrAdms.eoVueInsuvs.anUniv = $etuInscrAdms.eoVueInsuvs.anUniv 
 and etuInscrAdms.eoVueInsuvs.prdUniv = $etuInscrAdms.eoVueInsuvs.prdUniv)
 
 In this qualifier to use with my ERXBatchingDisplayGroup
 
 NSMutableArray qualFinal = new NSMutableArray();
 NSMutableArray args = new NSMutableArray();
 NSMutableArray argsUv = new NSMutableArray();
 NSMutableArray argsEtu = new NSMutableArray();
 
 args.addObject(anUniv);
 args.addObject(prdUniv);
 argsUvaddObject(uv);
 argsUv.addObject(anUniv);
 argsUv.addObject(prdUniv);
 argsEtu.add(03);
 argsEtu.add(UTT);
 
 EOQualifier qualNom = EOQualifier.qualifierWithQualifierFormat(nom like %@, 
 new NSArray(nom+*));
 EOQualifier qualPrenom = EOQualifier.qualifierWithQualifierFormat(prenom 
 like %@, new NSArray(prenom+*));
 EOQualifier qualNumero = 
 EOQualifier.qualifierWithQualifierFormat(individ=%@, new NSArray(nombre));
 
 EOQualifier qualPeriode = 
 EOQualifier.qualifierWithQualifierFormat(etuInscrAdms.anUniv=%@ AND 
 etuInscrAdms.prdUniv=%@, args);
 EOQualifier qualDiplome = 
 EOQualifier.qualifierWithQualifierFormat(etuInscrAdms.diplomec=%@,new 
 NSArray(diplome));
 EOQualifier qualNiveau = 
 EOQualifier.qualifierWithQualifierFormat(etuInscrAdms.niveauAdm=%@,new 
 NSArray(niveau));
 EOQualifier qualNiveau = 
 EOQualifier.qualifierWithQualifierFormat(etuInscrAdms.niveauAdm=%@,new 
 NSArray(niveau));
 EOQualifier qualUv = 
 EOQualifier.qualifierWithQualifierFormat(etuInscrAdms.eoVueInsuvs.anUniv=%@ 
 AND etuInscrAdms.eoVueInsuvs.prdUniv=%@ AND 
 etuInscrAdms.eoVueInsuvs.uvc=%@,argsUv);
 
 EOQualifier qualEtudiant = 
 EOQualifier.qualifierWithQualifierFormat(etuInscrAdms.diplSpecc%@ AND 
 indEmails.emailTypec=%@,argsEtu);
 
 qualFinal.addObject(qualNom);
 qualFinal.addObject(qualPrenom);
 qualFinal.addObject(qualNumero);
 qualFinal.addObject(qualPeriode);
 qualFinal.addObject(qualDiplome);
 qualFinal.addObject(qualNiveau);
 qualFinal.addObject(qualUv);
 
 **EOSort
 NSArray dgSort = new NSArray(new Object[] 
 {EOSortOrdering.sortOrderingWithKey(EOIndividu.NOM_KEY, 
 EOSortOrdering.CompareAscending),
   
 EOSortOrdering.sortOrderingWithKey(EOIndividu.PRENOM_KEY,EOSortOrdering.CompareAscending)
  });
 
 fetchEtudiantViaUvDg.setQualifier(new EOOrQualifier(qualFinal));
 fetchEtudiantViaUvDg.setSortOrderings(dgSort);
 fetchEtudiantViaUvDg.fetch();
 
 Here is result : 
 
 45478 [WorkerThread0] DEBUG NSLog  -  evaluateExpression: 
 com.webobjects.jdbcadaptor.OraclePlugIn$OracleExpression: select count(*)  
 FROM GERRY.INDIVIDU t0, GEST_UV.VUE_INSUV T2, GERRY.IND_EMAIL T3, 
 GERRY.ETU_INSCR_ADM T1 WHERE ((T1.AN_UNIV = ? AND T1.PRD_UNIV = ?) OR 
 T1.DIPLOME_$C = ? OR T1.NIVEAU_ADM = ? OR (T2.AN_UNIV = ? AND T2.PRD_UNIV = ? 
 AND T2.UV_$C = ?) OR (T1.DIPL_SPEC_$C  ? AND T3.EMAIL_TYPE_$C = ?)) AND 
 T1.AN_UNIV = T2.AN_UNIV AND T1.DIPLOME_$C = T2.DIPLOME_$C AND T1.ETU_ID = 
 T2.ETU_ID AND T1.PRD_UNIV = T2.PRD_UNIV AND t0.INDIV_ID = T3.INDIV_ID AND 
 t0.INDIV_ID = T1

Re: Installing the tools: The One True Way?

2011-05-10 Thread Henrique Gomes
It's always good to minimize confusion, I'm all for it.

On May 9, 2011, at 11:00 AM, Pascal Robert wrote:

 Ok, so we have four pages in the wiki that tells how to configure Apache for 
 development, and numerous pages on how to install WOLips and the core WO 
 frameworks. We need one or two pages maximum! So we need to define what is 
 the The One True Way to install and configure everything for development.
 
 My personal preferences are:
 
 * Install WO in /Developer/WebObjects with woinstall.jar
 
 I think installing WO with the Apple dmg is unsafe, because it install stuff 
 in /System, and Apple have been know to remove stuff they don't support or 
 third-party tools from /System when new releases of OS X are made. Installing 
 everything in /Developer/WebObjects or /Library/WebObjects is much safer.
 
That's something I never thought  about, never experienced, I'll take note of 
it.
I just have a problem with woinstall: it does not work trough an http proxy and 
that has made my life complicated in the past when deploying on customers which 
restrict http access. Maybe it could be changed so that the users downloads the 
.dmg and then points woinstall to it?

 * Install Eclipse/WOLips with Golipse
 
 IMHO, that's the best way to install the tools, since they install all 
 required plugins + the correct version of Eclipse. But since the default 
 WOLips properties are set for /Library and /System, we would need to change 
 them to /Developer/WebObjects when installing from Golipse.
 

I might be the only one, but I like to have some control of my machine, and 
really see no point in those scripts. 
Just tell what version and package of eclipse to install (classic, Java, 
whatever) and list the plugin sites.
We are talking to *developers*...  about using a complex framework.

 * Install Wonder's wotaskd + the adaptor
 
 Everyone should have a copy of Wonder's wotaskd for development. Even if 
 someone is using DirectConnect for all development, having a copy of wotaskd 
 is useful.
 
 Opinions?
 

I second the idea of having Wolips install the WO runtine and/or wonder. Maybe 
that would also fix the proxy problem.

Regards,

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: Installing the tools: The One True Way?

2011-05-10 Thread Henrique Gomes

On May 10, 2011, at 12:05 PM, Michael Schrag wrote:

 
 
 Sent from my iPad
 
 On May 10, 2011, at 6:47 AM, Henrique Gomes li...@farol.pt wrote:
 
 It's always good to minimize confusion, I'm all for it.
 
 On May 9, 2011, at 11:00 AM, Pascal Robert wrote:
 
 Ok, so we have four pages in the wiki that tells how to configure Apache 
 for development, and numerous pages on how to install WOLips and the core 
 WO frameworks. We need one or two pages maximum! So we need to define what 
 is the The One True Way to install and configure everything for development.
 
 My personal preferences are:
 
 * Install WO in /Developer/WebObjects with woinstall.jar
 
 I think installing WO with the Apple dmg is unsafe, because it install 
 stuff in /System, and Apple have been know to remove stuff they don't 
 support or third-party tools from /System when new releases of OS X are 
 made. Installing everything in /Developer/WebObjects or /Library/WebObjects 
 is much safer.
 
 That's something I never thought  about, never experienced, I'll take note 
 of it.
 I just have a problem with woinstall: it does not work trough an http proxy 
 and that has made my life complicated in the past when deploying on 
 customers which restrict http access. Maybe it could be changed so that the 
 users downloads the .dmg and then points woinstall to it?
 The source for this is trivial. If java supports the type of proxy you have, 
 this should work with almost no effort. I don't recall if we use the java.net 
 API or apache httpclient, but I it's java, you can just set the standard -D 
 proxy system properties when you run and it should work. If it's apache, it 
 may require two lines of code. Patches welcome.

No patch needed, on the mac it uses the proxy from network settings, on linux  
the standard http_proxy env variable does not work, it requires the system 
properties:

java -Dhttp.proxyHost=proxyHostName  -Dhttp.proxyPort=portNumber  -jar 
WOInstaller.jar 5.4.3 t

The knowledge about those those -D options must have been in a part of my brain 
that was off-line when I was deploying

 
 
 * Install Eclipse/WOLips with Golipse
 
 IMHO, that's the best way to install the tools, since they install all 
 required plugins + the correct version of Eclipse. But since the default 
 WOLips properties are set for /Library and /System, we would need to change 
 them to /Developer/WebObjects when installing from Golipse.
 
 
 I might be the only one, but I like to have some control of my machine, and 
 really see no point in those scripts. 
 Just tell what version and package of eclipse to install (classic, Java, 
 whatever) and list the plugin sites.
 We are talking to *developers*...  about using a complex framework.
 Total crazy talk. Why take 10 minutes to do something that you can do in 5 
 seconds? And if we're talking about developers you can either edit the 
 script or look in it to get your urls and plugins. I originally wrote the 
 base script for myself, because I got tired of wasting my time doing 
 repetitive robot work.
 
 ms
 


OK, I'm the only one then :-) 


Henrique Gomes



 ___
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 arch...@mail-archive.com


Re: WOWODC: ERRest topics

2011-05-10 Thread Henrique Gomes

On May 10, 2011, at 1:18 AM, Chuck Hill wrote:

 On 2011-05-09, at 5:09 PM, Pascal Robert wrote:
 Le 2011-05-09 à 18:43, Chuck Hill a écrit :
 On May 9, 2011, at 3:37 PM, Daniel Beatty wrote:
 
 Greetings Pascal,
 Both a general and specific set of topics would be nice.   Like for 
 example, last year's talk you gave proved very useful.Strengths and 
 limitations of REST may be a useful topic.   What standards do exist for 
 REST, and how WO can help on this front (given the hordes of IBM and 
 others who will shoot it down if they don't understand it).   
 
 Don't you mean overcomplicate it if anyone can understand it?
 
 Like this?
 
 http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
 
 
 Almost, could use a little more XML.
 
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 



The S stands for Simple:

http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple/


[Probably old new, but chances are that at least one person on the list has not 
seen it, and I had a good time re-reading it]

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: EOGeneralAdaptorException: EvaluateExpression

2011-04-14 Thread Henrique Gomes

On Apr 14, 2011, at 9:30 PM, Andrew Kinnie wrote:

  Next exception:SQL State:HY000 -- error code: 1366 -- msg: Incorrect 
 integer value: 'ljkdfgs' for column 'story_guid' at row 1

I don't use mySQL but if that message comes from the db then it really looks 
like the database field is an int. I would double check that.

Henrique Gomes ___
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 arch...@mail-archive.com


Re: AjaxExpansion expanded flag binding problem?

2011-04-13 Thread Henrique Gomes
Long shot, try removing the 'is' from the binding:

expanded = agreementDetailsVisibleForBundleProductItem;

Also, make sure the code the app is using is the code you are looking at. Clean 
your project, look for other mistakes.
Good luck,

Henrique Gomes


On Apr 14, 2011, at 12:08 AM, Mai Nguyen wrote:

 Dear List,
 
 I tried to solve the problem of using the AjaxExpansion per row inside a 
 repetition and providing a unique expanded flag binding per row.
 Since each row matches a particular product, the binding of expanded is set 
 to the visible flag of each product in the array by using a setter/getter 
 method.
 
 If I use a public instance variable, such as a global isVisible flag, this 
 would work like the AjaxExample, but the global instance variable is not 
 suitable for each row in a repetition.
 
 I do not understand why the binding to a setter/getter method would fail?
 
 Thanks for any hints,
 
 -mai
 
 CurrentProductRepetition: WORepetition {
   item = bundleProductItem;
   list = currentMainBundleProducts;
   index = logIndex;
 } 
 AgreementDetailsAjaxExpansion : AjaxExpansion {
   id = ~AgreementDetailsAjaxExpansion + logIndex;
   insertion = Effect.blind;
   insertionDuration = 0.1;
   string = Agreement Details;
   expanded = isAgreementDetailsVisibleForBundleProductItem;   
 }
 
 In the java file, I have the following simple code:
 
 public boolean isAgreementDetailsVisibleForBundleProductItem() {
   return (bundleProductItemC.isAgreementDetailsVisible());
   }
 
 public void setIsAgreementDetailsVisibleForBundleProductItem(boolean aValue) {
   bundleProductItemC.setIsAgreementDetailsVisible(aValue);
   }
 
 
 ==
 // Methods used in AjaxExpansion for bundle product
 public boolean isAgreementDetailsVisibleC = false;
 
   public boolean isAgreementDetailsVisible() {
   return isAgreementDetailsVisibleC;
   }
 
   public void setIsAgreementDetailsVisible(boolean value) {
   isAgreementDetailsVisibleC = value;
   }
 
 However, at runtime, I would get the following exception:
 
 com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
 '[CustomerSummary name:  CustomerSummary subcomponents: {0.15.13.7.1.5.0.1.3 
 = er.ajax.AjaxExpansion name: er.ajax.AjaxExpansion subcomponents: null ; 
 0.15.13.7.1.7 = er.ajax.AjaxModalDialog name: er.ajax.AjaxModalDialog 
 subcomponents: null ; }  takeValueForKey()]: attempt to assign value to 
 unknown key: 'isAgreementDetailsVisibleForBundleProductItem'.
 This WOComponent does not have an instance variable of the name 
 isAgreementDetailsVisibleForBundleProductItem or 
 _isAgreementDetailsVisibleForBundleProductItem, nor a method of the name 
 setIsAgreementDetailsVisibleForBundleProductItem or 
 _setIsAgreementDetailsVisibleForBundleProductItem' object 'CustomerSummary 
 name: CustomerSummary subcomponents: {0.15.13.7.1.5.0.1.3 = 
 er.ajax.AjaxExpansion name: er.ajax.AjaxExpansion subcomponents: null ; 
 0.15.13.7.1.7 = er.ajax.AjaxModalDialog name: er.ajax.AjaxModalDialog 
 subcomponents: null ; } ' key 
 'isAgreementDetailsVisibleForBundleProductItem'
   at 
 com.webobjects.appserver.WOComponent.handleTakeValueForUnboundKey(WOComponent.java:1781)
   at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.handleTakeValueForUnboundKey(NSKeyValueCoding.java:519)
   at 
 com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.setValueInObject(NSKeyValueCoding.java:899)
   at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.takeValueForKey(NSKeyValueCoding.java:1354)
   at 
 com.webobjects.appserver.WOComponent.takeValueForKey(WOComponent.java:1748)
   at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.takeValueForKey(NSKeyValueCoding.java:469)
   at 
 com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:679)
   at 
 com.webobjects.appserver.WOComponent.validateTakeValueForKeyPath(WOComponent.java:1424)
   at 
 com.webobjects.appserver._private.WOKeyValueAssociation.setValue(WOKeyValueAssociation.java:76)
   at 
 ognl.helperfunction.WOHelperFunctionKeyValueAssociation.setValue(WOHelperFunctionKeyValueAssociation.java:21)
   at 
 com.webobjects.appserver.WOComponent.setValueForBinding(WOComponent.java:910)
   at er.ajax.AjaxExpansion.setExpanded(AjaxExpansion.java:138)
   at er.ajax.AjaxExpansion.toggle(AjaxExpansion.java:146)
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects

Re: WOHyperlink problem..

2011-03-28 Thread Henrique Gomes

On Mar 28, 2011, at 3:50 PM, pavan.jayam wrote:

 Dear List,
 
 i have a div which contains hyperlinks, onclick i am loading a page in frame, 
  bindings are action=hyperlinkAction;
 
 for the first time i click on it hyperlink its working fine, but when i click 
 on other tabs and come back to the first tab its not calling the action 
 method. the seession elements have the old values not the present link values.
 
 Any suggestion is appreciated.
 -- 
 ThanksRegards,
 *Pavan Jayam
 *


Maybe use directActions instead?

HG ___
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 arch...@mail-archive.com


Re: Exceptions originting from non-existing DirectActions

2011-02-08 Thread Henrique Gomes
It might help to give more information, page structure, what components, etc.
I might wrong but either you have some binding wrong, or there's a bug in WO / 
whatever framework you are using.
Trying to catch it might not be the best course of action.

Henrique Gomes
 

On Feb 8, 2011, at 9:49 AM, ute Hoffmann wrote:

 Hallo,
 I get sometimes Error Messages containing DirectActions which do not exist.
 
 Some of them happen when a page is not yet fully loaded and a javascript is 
 executed
 containing a image, then the image appears in a DirectAction call like this:
 
 FusszeielundImpressumaendern_b-poster.jpgAction()
 
 The image is in the page, but the Action not.
 
 Has someone an explanation for this and perhaps a solution to avoid this?
 
 Can one catch a java.lang.reflect.InvocationTargetException and if yes, where 
 should I do this?
 In DirectAction.java? In Application?
 I would like to catch all Exceptions originating from non-existing 
 DirectAction Calls if possible.
 
 Any insight appreciated
 
 Regards
 
 Ute
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-deploy mailing list  (webobjects-dep...@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-deploy/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: SSL Trouble with httpd-ssl.conf include

2010-11-29 Thread Henrique Gomes

On Nov 28, 2010, at 3:58 PM, Jeff Schmitz wrote:

 
 
 It doesn't find the generated URL of:
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 but if I just remove the 's' from https, it finds the page:
 
 http://localhost/netBrackets/-/wa/poolLogin
 
 I'm thinking it has to do with the secure port not being generated correctly. 
  Shouldn't :443 be specified as part of the https url?  
 

(You don;t a need a :443 for https the same way you don't need a :80 for http, 
they are the default ports for those protocols.)

On the httpd-ssl.conf could you try changing the ServerName to localhost:443? 
Like these:

ServerName localhost:443

Henrique Gomes


 
 On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:
 
 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when I 
 click on the secure WOHyperlink it's creating a https URL, and it picks up 
 the certificate, but then when I accept the certificate I get the 
 requested URL not found error.  If I simply change the url to be a 
 http:// URL, the page comes up with no other changes to the generated URL.  
 Looks like webobjects is not liking any https URL.  Is there something I've 
 forgotten to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, included 
 below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache user.
 (on a production environment you should be more careful about the key file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the cannot 
 connect to server error page.  Looking in /var/log/apache there are no 
 error messages, and according to the Systems Preferences panel apache 
 is running.  If I comment it out again and restart apache, it starts 
 serving pages again. 
 
 
 http? or https? if http://localhost doesn't work, either apache is not 
 running or some thing really strange is wrong with your setup.
 
 Neither works.  But as soon as I comment out that line and restart, it 
 starts serving http://localhost, but still not https://localhost
 
 I did notice when restarting this morning with the Include line commented 
 out, I get the following warnings/notices:
 
 [Fri Nov 26 08:19:00 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:00 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:00 2010] [notice] Digest: done
 [Fri Nov 26 08:19:00 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 [Fri Nov 26 08:19:03 2010] [notice] caught SIGTERM, shutting down
 [Fri Nov 26 08:19:03 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:03 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:03 2010] [notice] Digest: done
 [Fri Nov 26 08:19:03 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 
 But I get no messages when the Include line is included.
 
 
 
 Any ideas?
 
 Thanks,
 Jeff
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt
 
 #
 # This is the Apache server configuration file providing SSL support.
 # It contains the configuration directives to instruct the server how to
 # serve pages over an https connection. For detailing information about 
 these 
 # directives see URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
 # 
 # Do NOT simply read the instructions in here without

Re: SSL Trouble with httpd-ssl.conf include

2010-11-29 Thread Henrique Gomes

It shouldn't make any difference but the default files have a VirtualHost like 
this: 
VirtualHost _default_:443

Also I noticed you are using non standard URLs. Why the 'netBrackets' instead 
of /cgi-bin/WebObjects? Did you change the WebObjectsAlias directive? Are you 
using URL rewrite rules?

 https://localhost/netBrackets/-/wa/poolLogin



On Nov 29, 2010, at 3:10 PM, Jeff Schmitz wrote:

 Tried that with the same result.  Here's what I now have for the section of 
 httpd-ssl.conf  that gets updated per the wiki.  Note I did move the cert and 
 key files up into the apache 2 dir and and named them server.crt and 
 server.key.  Also, the config-ssl file is Included in my httpd.conf file...
 
 
 ##
 ## SSL Virtual Host Context
 ##
 
 VirtualHost localhost:443
 
 #   General setup for the virtual host
 DocumentRoot /Library/WebServer/Documents
 ServerName localhost:443
 ServerAdmin j...@netbrackets.com
 ErrorLog /private/var/log/apache2/error_log
 TransferLog /private/var/log/apache2/access_log
 
 #   SSL Engine Switch:
 #   Enable/Disable SSL for this virtual host.
 SSLEngine on
 
 #   SSL Cipher Suite:
 #   List the ciphers that the client is permitted to negotiate.
 #   See the mod_ssl documentation for a complete list.
 SSLCipherSuite 
 ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
 
 #   Server Certificate:
 #   Point SSLCertificateFile at a PEM encoded certificate.  If
 #   the certificate is encrypted, then you will be prompted for a
 #   pass phrase.  Note that a kill -HUP will prompt again.  Keep
 #   in mind that if you have both an RSA and a DSA certificate you
 #   can configure both in parallel (to also allow the use of DSA
 #   ciphers, etc.)
 #SSLCertificateFile /private/etc/apache2/devsslcerts/localhost_server.crt
 SSLCertificateFile /private/etc/apache2/server.crt
 #SSLCertificateFile /private/etc/apache2/server-dsa.crt
 
 On Nov 29, 2010, at 4:54 AM, Henrique Gomes wrote:
 
 
 On Nov 28, 2010, at 3:58 PM, Jeff Schmitz wrote:
 
 
 
 It doesn't find the generated URL of:
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 but if I just remove the 's' from https, it finds the page:
 
 http://localhost/netBrackets/-/wa/poolLogin
 
 I'm thinking it has to do with the secure port not being generated 
 correctly.  Shouldn't :443 be specified as part of the https url?  
 
 
 (You don;t a need a :443 for https the same way you don't need a :80 for 
 http, they are the default ports for those protocols.)
 
 On the httpd-ssl.conf could you try changing the ServerName to 
 localhost:443? Like these:
 
 ServerName localhost:443
 
 Henrique Gomes
 
 
 
 On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:
 
 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when I 
 click on the secure WOHyperlink it's creating a https URL, and it picks 
 up the certificate, but then when I accept the certificate I get the 
 requested URL not found error.  If I simply change the url to be a 
 http:// URL, the page comes up with no other changes to the generated 
 URL.  Looks like webobjects is not liking any https URL.  Is there 
 something I've forgotten to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, included 
 below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache 
 user.
 (on a production environment you should be more careful about the key 
 file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the 
 cannot connect to server error page.  Looking in /var/log/apache 
 there are no error messages, and according to the Systems Preferences 
 panel apache is running.  If I comment it out again and restart 
 apache, it starts serving pages again. 
 
 
 http? or https? if http://localhost doesn't work

Re: SSL Trouble with httpd-ssl.conf include

2010-11-29 Thread Henrique Gomes

My experience ends there, I'm afraid. I've setup apache with SSL, but never did 
any specific coding in WebObjects for it.
Hope others can help.

Henrique Gomes

On Nov 29, 2010, at 4:52 PM, Jeff Schmitz wrote:

 yes, am using rewrite rules, and that's the problem.  Application._rewriteURL 
 doesn't get called when secure WOHyperlinks are selected.  Will have to read 
 up a bit on that to see how to get rewrites to work with https.  Or perhaps I 
 should use the completeURLWithRequestHandlerKey method somehow to inject  the 
 cgi-bin/WebObjects back into the link for secure requests?
 
 
 On Nov 29, 2010, at 9:23 AM, Henrique Gomes wrote:
 
 
 It shouldn't make any difference but the default files have a VirtualHost 
 like this: 
 VirtualHost _default_:443
 
 Also I noticed you are using non standard URLs. Why the 'netBrackets' 
 instead of /cgi-bin/WebObjects? Did you change the WebObjectsAlias 
 directive? Are you using URL rewrite rules?
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 
 
 On Nov 29, 2010, at 3:10 PM, Jeff Schmitz wrote:
 
 Tried that with the same result.  Here's what I now have for the section of 
 httpd-ssl.conf  that gets updated per the wiki.  Note I did move the cert 
 and key files up into the apache 2 dir and and named them server.crt and 
 server.key.  Also, the config-ssl file is Included in my httpd.conf file...
 
 
 ##
 ## SSL Virtual Host Context
 ##
 
 VirtualHost localhost:443
 
 #   General setup for the virtual host
 DocumentRoot /Library/WebServer/Documents
 ServerName localhost:443
 ServerAdmin j...@netbrackets.com
 ErrorLog /private/var/log/apache2/error_log
 TransferLog /private/var/log/apache2/access_log
 
 #   SSL Engine Switch:
 #   Enable/Disable SSL for this virtual host.
 SSLEngine on
 
 #   SSL Cipher Suite:
 #   List the ciphers that the client is permitted to negotiate.
 #   See the mod_ssl documentation for a complete list.
 SSLCipherSuite 
 ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
 
 #   Server Certificate:
 #   Point SSLCertificateFile at a PEM encoded certificate.  If
 #   the certificate is encrypted, then you will be prompted for a
 #   pass phrase.  Note that a kill -HUP will prompt again.  Keep
 #   in mind that if you have both an RSA and a DSA certificate you
 #   can configure both in parallel (to also allow the use of DSA
 #   ciphers, etc.)
 #SSLCertificateFile /private/etc/apache2/devsslcerts/localhost_server.crt
 SSLCertificateFile /private/etc/apache2/server.crt
 #SSLCertificateFile /private/etc/apache2/server-dsa.crt
 
 On Nov 29, 2010, at 4:54 AM, Henrique Gomes wrote:
 
 
 On Nov 28, 2010, at 3:58 PM, Jeff Schmitz wrote:
 
 
 
 It doesn't find the generated URL of:
 
 https://localhost/netBrackets/-/wa/poolLogin
 
 but if I just remove the 's' from https, it finds the page:
 
 http://localhost/netBrackets/-/wa/poolLogin
 
 I'm thinking it has to do with the secure port not being generated 
 correctly.  Shouldn't :443 be specified as part of the https url?  
 
 
 (You don;t a need a :443 for https the same way you don't need a :80 for 
 http, they are the default ports for those protocols.)
 
 On the httpd-ssl.conf could you try changing the ServerName to 
 localhost:443? Like these:
 
 ServerName localhost:443
 
 Henrique Gomes
 
 
 
 On Nov 28, 2010, at 8:08 AM, Henrique Gomes wrote:
 
 
 What's the URL that's not found? What code or bindings are you using to 
 generate the hyperlink to the secure page?
 
 Henrique Gomes
 
 
 On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:
 
 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when 
 I click on the secure WOHyperlink it's creating a https URL, and it 
 picks up the certificate, but then when I accept the certificate I get 
 the requested URL not found error.  If I simply change the url to be 
 a http:// URL, the page comes up with no other changes to the generated 
 URL.  Looks like webobjects is not liking any https URL.  Is there 
 something I've forgotten to do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, 
 included below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache 
 user.
 (on a production environment you should be more careful about the key 
 file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development

Re: SSL Trouble with httpd-ssl.conf include

2010-11-28 Thread Henrique Gomes

What's the URL that's not found? What code or bindings are you using to 
generate the hyperlink to the secure page?

Henrique Gomes


On Nov 28, 2010, at 2:51 PM, Jeff Schmitz wrote:

 Thanks,
 
 That gets me closer.  Apache is now running when I restart it, and when I 
 click on the secure WOHyperlink it's creating a https URL, and it picks up 
 the certificate, but then when I accept the certificate I get the requested 
 URL not found error.  If I simply change the url to be a http:// URL, the 
 page comes up with no other changes to the generated URL.  Looks like 
 webobjects is not liking any https URL.  Is there something I've forgotten to 
 do?  
 
 Thanks
 Jeff
 On Nov 26, 2010, at 12:11 PM, Henrique Gomes wrote:
 
 The wiki is more complicated than what it's need on a recent system:
 
 After generating the certificate, just put the certificate and key as 
 server.crt and server.key in /etc/apache2
 
 The only change needed to the conf files is to uncomment the line in 
 httpd.conf to include the ssl conf. I just left this at it was, included 
 below:
 (I believe it's just like snow leopard installed it.)
 httpd-ssl.conf
 
 Make sure the cert and key are readable to everyone or to the apache user.
 (on a production environment you should be more careful about the key file)
 
 
 Henrique Gomes
 
 
 On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:
 
 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the cannot 
 connect to server error page.  Looking in /var/log/apache there are no 
 error messages, and according to the Systems Preferences panel apache is 
 running.  If I comment it out again and restart apache, it starts serving 
 pages again. 
 
 
 http? or https? if http://localhost doesn't work, either apache is not 
 running or some thing really strange is wrong with your setup.
 
 Neither works.  But as soon as I comment out that line and restart, it 
 starts serving http://localhost, but still not https://localhost
 
 I did notice when restarting this morning with the Include line commented 
 out, I get the following warnings/notices:
 
 [Fri Nov 26 08:19:00 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:00 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:00 2010] [notice] Digest: done
 [Fri Nov 26 08:19:00 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 [Fri Nov 26 08:19:03 2010] [notice] caught SIGTERM, shutting down
 [Fri Nov 26 08:19:03 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:03 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:03 2010] [notice] Digest: done
 [Fri Nov 26 08:19:03 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 
 But I get no messages when the Include line is included.
 
 
 
 Any ideas?
 
 Thanks,
 Jeff
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt
 
 #
 # This is the Apache server configuration file providing SSL support.
 # It contains the configuration directives to instruct the server how to
 # serve pages over an https connection. For detailing information about 
 these 
 # directives see URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
 # 
 # Do NOT simply read the instructions in here without understanding
 # what they do.  They're here only as hints or reminders.  If you are unsure
 # consult the online docs. You have been warned.  
 #
 
 #
 # Pseudo Random Number Generator (PRNG):
 # Configure one or more sources to seed the PRNG of the SSL library.
 # The seed data should be of good random quality.
 # WARNING! On some platforms /dev/random blocks if not enough entropy
 # is available. This means you then cannot use the /dev/random device
 # because it would lead to very long connection times (as long as
 # it requires to make more entropy available). But usually those
 # platforms additionally provide a /dev/urandom device which doesn't
 # block. So, if available, use this one instead. Read the mod_ssl User

Re: automatically session creation

2010-11-26 Thread Henrique Gomes
A session is always created if you use statefull components or form actions.
The page needs to be all made with stateless components and the form must use 
direct actions.

As for Ajax, well, you might have to rethink it:

http://osdir.com/ml/webobjects-dev/2009-07/msg00319.html


Henrique Gomes


On Nov 26, 2010, at 11:05 AM, Francesco Romano wrote:

 Hi.
 The title is not clear, I know... that's because I've 2 question related to 
 session, redirection and direct action. 
 
 1) I have two pages which are secure (login and registration page).
 What I want to do is, after a successful login (or registration), redirect to 
 a non secure page (like the home page).
 The submit buttons link to two Direct Actions.
 
 I don't have problem with the login page, because I need a session, so I do 
 something like:
 
   nextPage = pageWithName(Main.class);
   ERXRedirect redirect = pageWithName(ERXRedirect.class);
   redirect.setSecure(false);
   redirect.setComponent(nextPage);
   return redirect;
 
 but.. for a registration page I  don't want to create a session.. what can i 
 do?
 
 2) Ajax components need session? Because I've a ajax list product page and 
 a session is automatically created
 
 Thank you
 
 Francesco Romano
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: SSL Trouble with httpd-ssl.conf include

2010-11-26 Thread Henrique Gomes

On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:

 Hello,
  I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf

Whats in that file? Did you edit it?

 
 When I restart apache and try to open http://localhost I get the cannot 
 connect to server error page.  Looking in /var/log/apache there are no error 
 messages, and according to the Systems Preferences panel apache is running.  
 If I comment it out again and restart apache, it starts serving pages again. 
 

http? or https? if http://localhost doesn't work, either apache is not running 
or some thing really strange is wrong with your setup.


 Any ideas?
 
 Thanks,
 Jeff
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: SSL Trouble with httpd-ssl.conf include

2010-11-26 Thread Henrique Gomes
The wiki is more complicated than what it's need on a recent system:

After generating the certificate, just put the certificate and key as 
server.crt and server.key in /etc/apache2

The only change needed to the conf files is to uncomment the line in httpd.conf 
to include the ssl conf. I just left this at it was, included below:
(I believe it's just like snow leopard installed it.)


httpd-ssl.conf
Description: Binary data


Make sure the cert and key are readable to everyone or to the apache user.
(on a production environment you should be more careful about the key file)


Henrique Gomes


On Nov 26, 2010, at 2:31 PM, Jeff Schmitz wrote:

 
 On Nov 26, 2010, at 6:34 AM, Henrique Gomes wrote:
 
 
 On Nov 26, 2010, at 4:25 AM, Jeff Schmitz wrote:
 
 Hello,
 I'm following the directions at the below link to add ssl support...
 
 http://wiki.objectstyle.org/confluence/display/WO/Development-SSL+requests+via+https+protocol?showComments=trueshowCommentArea=true#addcomment
 
 but after adding the following Include to the httpd.conf file...
 
 Include /private/etc/apache2/extra/httpd-ssl.conf
 
 Whats in that file? Did you edit it?
 
 Didn't edit it.  It's pasted below.
 
 
 
 
 
 When I restart apache and try to open http://localhost I get the cannot 
 connect to server error page.  Looking in /var/log/apache there are no 
 error messages, and according to the Systems Preferences panel apache is 
 running.  If I comment it out again and restart apache, it starts serving 
 pages again. 
 
 
 http? or https? if http://localhost doesn't work, either apache is not 
 running or some thing really strange is wrong with your setup.
 
 Neither works.  But as soon as I comment out that line and restart, it starts 
 serving http://localhost, but still not https://localhost
 
 I did notice when restarting this morning with the Include line commented 
 out, I get the following warnings/notices:
 
 [Fri Nov 26 08:19:00 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:00 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:00 2010] [notice] Digest: done
 [Fri Nov 26 08:19:00 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 [Fri Nov 26 08:19:03 2010] [notice] caught SIGTERM, shutting down
 [Fri Nov 26 08:19:03 2010] [warn] Init: Session Cache is not configured 
 [hint: SSLSessionCache]
 [Fri Nov 26 08:19:03 2010] [notice] Digest: generating secret for digest 
 authentication ...
 [Fri Nov 26 08:19:03 2010] [notice] Digest: done
 [Fri Nov 26 08:19:03 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 
 OpenSSL/0.9.8l DAV/2 configured -- resuming normal operations
 
 But I get no messages when the Include line is included.
 
 
 
 Any ideas?
 
 Thanks,
 Jeff
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt
 
 #
 # This is the Apache server configuration file providing SSL support.
 # It contains the configuration directives to instruct the server how to
 # serve pages over an https connection. For detailing information about these 
 # directives see URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
 # 
 # Do NOT simply read the instructions in here without understanding
 # what they do.  They're here only as hints or reminders.  If you are unsure
 # consult the online docs. You have been warned.  
 #
 
 #
 # Pseudo Random Number Generator (PRNG):
 # Configure one or more sources to seed the PRNG of the SSL library.
 # The seed data should be of good random quality.
 # WARNING! On some platforms /dev/random blocks if not enough entropy
 # is available. This means you then cannot use the /dev/random device
 # because it would lead to very long connection times (as long as
 # it requires to make more entropy available). But usually those
 # platforms additionally provide a /dev/urandom device which doesn't
 # block. So, if available, use this one instead. Read the mod_ssl User
 # Manual for more details.
 #
 #SSLRandomSeed startup file:/dev/random  512
 #SSLRandomSeed startup file:/dev/urandom 512
 #SSLRandomSeed connect file:/dev/random  512
 #SSLRandomSeed connect file:/dev/urandom 512
 
 
 #
 # When we also provide SSL we have to listen to the 
 # standard HTTP port (see above) and to the HTTPS port
 #
 # Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
 #   Listen directives: Listen [::]:443 and Listen 0.0.0.0:443
 #
 Listen 443
 
 ##
 ##  SSL Global Context
 ##
 ##  All SSL configuration in this context applies both to
 ##  the main server and all SSL-enabled virtual hosts.
 ##
 
 #
 #   Some MIME-types for downloading Certificates and CRLs
 #
 AddType

Re: Weird plist framework question

2010-11-24 Thread Henrique Gomes
I have a 'configuration' table with a field where I store a NSDictionary. The 
database field is a string, I use the methods from NSPropertyListSerialization 
to store and read the NSDictionary.

Henrique Gomes


On Nov 24, 2010, at 6:13 PM, Dan Beatty wrote:

 Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
 Got a weird question for you.  Does Wonder have a framework for having the 
 notion a “plist” in the database itself.   The idea being that one would have 
 an attribute that would basically be a plist dictionary (in and of itself)?   
 The idea seemed so simple, I find it hard to believe that it has not been 
 conjured up before.  I am thinking that it would have a migration method 
 similar to ERAttachment allowing any other table to reference such a 
 dictionary, like ERDictionary or something.
 
 Any ideas?
 
 Daniel Beatty
 Computer Scientist, Detonation Sciences Branch
 Code 474300D
 2400 E. Pilot Plant Rd. M/S 1109
 China Lake, CA 93555
 daniel.bea...@navy.mil
 (760)939-7097 
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: D2W Noob Question

2010-11-17 Thread Henrique Gomes
Hi,

I also got started with D2W last month, got interrupted and about to resume

Don't know I can help, but:

I don't know how to change the list page, or if there is a rule to allow new 
entities there
On my simple tests, I changed the NavigationMemu.plist to include a create 
action:
inline: Screen shot 2010-11-17 at 6.05.25 PM.png


And changed MainNavigationController.java to have that action. There are 
examples on the comments.

(Assuming you are using the most recent  template from wolips)

Regards,

Henrique Gomes


On Nov 17, 2010, at 5:15 PM, Joe Kramer wrote:

 Hi All,
 
 I'm trying my first D2W app... This should be easy to find, and I'm almost 
 embarrassed to ask, but I need to get this working ASAP.  I'm wondering how 
 to make it so that you can create new entities from the list page.  What rule 
 should I add to make that happen?
 
 Thanks,
 
 Joe Kramer
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com

Re: erattachment help

2010-09-24 Thread Henrique Gomes

Can't tell whats wrong either

On Sep 24, 2010, at 5:45 PM, Theodore Petrosky wrote:

 ok. so I am still trying to get erattachment working. I have a little test 
 app.
 
 I can select an image (pdf, jpg) and 'upload' it. When I click its link it 
 will show in the ERAttachmentViewer.
 
 however if I quit and relaunch my app, the images do not reload from the 
 database (postgresql).
 
 i see in the eclipse logs:
 
 evaluateExpression: com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT 
 t0.attachmentDataID, t0.available, t0.configurationName, t0.creationDate, 
 t0.filesystemPath, t0.height, t0.id, t0.mimeType, t0.originalFileName, 
 t0.ownerID, t0.parentID, t0.proxied, t0.s3Path, t0.size, t0.smallData, 
 t0.storageType, t0.thumbnail, t0.webPath, t0.width FROM ERAttachment t0 WHERE 
 ((t0.storageType = ?::varchar(10) OR t0.storageType = ?::varchar(10) OR 
 t0.storageType = ?::varchar(10)) AND t0.id = ?::int4) LIMIT 1 withBindings: 
 1:db(storageType), 2:file(storageType), 3:s3(storageType), 4:1(id)
 
 Sep 24 12:28:12 AttachmentTest[54058] DEBUG NSLog  - fetch canceled
 Sep 24 12:28:12 AttachmentTest[54058] DEBUG NSLog  - 1 row(s) processed
 
 
 Why the fetch canceled, I don't know. Little things I see that shouldn't 
 matter, 'FROM ERAttachment'. of course postgresql will fold the name to 
 lowercase automatically and my table is named erattachment so this shouldn't 
 matter.
 
 I see in the postgresql logs right after I click the hyperlink to view the 
 image:
 
 [unknown]LOG:  execute unnamed: SELECT t0.data, t0.id FROM ERAttachmentData 
 t0 WHERE t0.id = $1::int4
 [unknown]DETAIL:  parameters: $1 = '1'
 

Is there data on the table ERAttachmentData? Does the log show 1 row(s) 
processed?


 so it is trying to get the link. maybe I am saving bad data?
 
 should I be massaging the data before trying to save it to the backend?
 
 I do have in my properties file:
 
 er.attachment.ImageMeta.image.storageType=db
 
 
 my migrations and connection dict look like:
 
 # Migrations
 er.migration.migrateAtStartup=true
 er.migration.createTablesIfNecessary=true
 er.migration.modelNames=AttachmentTest
 AttachmentTest.MigrationClassPrefix=com.eltek.migrations.AttachmentTestMigration
 
 # Connection Dictionary
 dbConnectURLGLOBAL=jdbc:postgresql://localhost/attachmenttest?capitalizeTypenames=truezeroDateTimeBehavior=convertToNull
 dbConnectUserGLOBAL=asacksadmin
 dbConnectPasswordGLOBAL=4004
 dbConnectPluginGLOBAL=PostgresqlPlugIn
 dbConnectDriverGLOBAL=org.postgresql.Driver
 
 
 
 
 html
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN
 html
  head
titleUntitled/title
  /head
  body
webobject name = TheForm
  ul
wo:loop list = $theMetaList item = $theMeta
  li
wo:WOHyperlink action = $selectMetawo:WOString value = 
 $theMeta.imageTitle //wo:WOHyperlink
  /li
/wo:loop
  /ul
  webobject name = ImageUpload /
  webobject name = UploadAction /br/
  webobjects name = TheAttachmentViewer /
/webobject
  /body
 /html
 
 WOD
 
 ImageUpload : ERAttachmentUpload {
configurationName = ImageMeta.image;
editingContext = theEC;
attachment = theNewMeta.image;
 }
 
 TheForm : WOForm {
enctype = multipart/form-data;
multipleSubmit = true;
 }
 
 
 UploadAction : WOSubmitButton {
action = uploadImage;
value = Upload Avatar!;
 }
 
 TheAttachmentViewer : ERAttachmentViewer {
   attachment = theSelectedMeta.image;
   width = 150;
 }
 
 
 main.java
 
 package com.eltek.components;
 
 import com.eltek.models.ImageMeta;
 import com.eltek.models.People;
 import com.webobjects.appserver.WOContext;
 
 import er.extensions.components.ERXComponent;
 import er.extensions.eof.ERXEC;
 
 import com.webobjects.appserver.WOActionResults;
 import com.webobjects.eocontrol.EOEditingContext;
 import com.webobjects.foundation.NSArray;
 import com.webobjects.foundation.NSLog;
 
 public class Main extends ERXComponent {
   
   public EOEditingContext theEC;
   public NSArrayImageMeta theMetaList;
   public ImageMeta theMeta, theNewMeta, _theSelectedMeta;
 
 
   public People thePerson;
   
   public Main(WOContext context) {
   super(context);
   
   theEC = ERXEC.newEditingContext();
   thePerson = People.fetchPeople(theEC, null);
   
   theMetaList = ImageMeta.fetchImageMetas(theEC, null, null);
   
   theNewMeta = ImageMeta.createImageMeta(theEC, the title, 
 thePerson); 
   
   NSLog.out.appendln( refreshing  theMetaList.count()  
 + theMetaList.count()) ;
   
   }
 
   public WOActionResults uploadImage() {
   theEC.saveChanges();
   theMetaList = ImageMeta.fetchImageMetas(theEC, null, null);
   theNewMeta = ImageMeta.createImageMeta(theEC, the title, 
 thePerson); 
   return null;
   

Re: Developing with Apache instead of Direct Connect

2010-08-25 Thread Henrique Gomes
No WOWODC for me... Too far away... 

If the app runs, presents a login screen then fails, it looks like there is no 
problem with apache or the wolips running configuration, looks like your next 
page just takes too long.. If you hit refresh after the No instance.. page 
what do you get?

HG 

On Aug 25, 2010, at 5:03 PM, Andrew R. Kinnie wrote:

 OK, so I know everyone is focussed on WOWODC at the moment (as will I be 
 after I drive 10 hours tomorrow to get there), but I have not been able to 
 get my Eclipse set up to use Apache, despite following the instructions on 
 the Wiki.  
 
 Specifically, the app runs, I get our login screen, and when I click login, I 
 eventually get a No Instance Available error.
 
 I replaced my mod_WebObjects.so with the latest mod_WebObjects.so (for my OS, 
 10.6) from the link on this page: 
 
 http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=3768691
 
 and it doesn't fix it.
 
 Anyone have a suggestion?
 
 Eclipse 3.6, Mac OS 10.6, using the Apache that came with 10.6.  Apache seems 
 to be running, because I get the login screen and the url looks like what the 
 settings suggest it should look like.
 
 Andrew Kinnie
 
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: Content Assist

2010-05-18 Thread Henrique Gomes

On May 18, 2010, at 7:47 AM, Gino Pacitti wrote:

 Starting to like WOLips.. but a few hints needed..
 
 How do I get code assist working? I saw a movie called Tiny Ajax App and it 
 showed key phrases being clicked on and types being entered for variable 
 names and methods?
 
 Is there a template area that modifies the DOC DTD?
 
 Any useful links to documentation welcome...
 

If you did not change the defaults, content assists activates when typing a dot 
 '.' or when you press ctrl-space
Have a look at the preferences and filter by 'assist'

HG ___
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 arch...@mail-archive.com


Re: Problem with Eclipse/WOLips

2010-05-17 Thread Henrique Gomes

On May 17, 2010, at 9:02 AM, Gino Pacitti wrote:

 Hi
 Is there a current problem with installing WOLips
 http://webobjects.mdimension.com/wolips/stable
 with Eclipse 3.4?
 

That URL links to WOLips35Stable for eclipse 3.5. Either upgrade eclipse or use 
http://webobjects.mdimension.com/hudson/job/WOLips34Stable/lastSuccessfulBuild/artifact/site

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: questions of WO/ Wonder and Linux

2010-05-14 Thread Henrique Gomes

On May 14, 2010, at 12:56 PM, Pascal Robert wrote:

 Yes, it it just like an OS X box, except the paths. On Linux, 
 /Library/WebObjects become /opt/Local/Library/WebObjects, /Library/Frameworks 
 become  /opt/Local/Library/Frameworks.

The problem (or just annoyance?) with those paths is that if you latter have to 
install other software that wants to live in /opt. I personally prefer 
/opt/apple for NEXT_ROOT.

Henrique
  ___
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 arch...@mail-archive.com


Re: Quoting hell, anybody a solution?

2010-02-18 Thread Henrique Gomes

On Feb 18, 2010, at 8:45 AM, Johan Henselmans wrote:

 I am trying to call a webobjects string in an a href;
 
 First i tried this:
 
 a href = javascript:ShowContent('wo:WOString value 
 =[mySess.selectedPerformance.primaryKey]/') ; 
  onMouseOver = ShowContent('wo:WOString 
 value=[mySess.selectedPerformance.primaryKey]/'); return true;
  onMouseOut = HideContent('wo:WOString value 
 =[mySess.selectedPerformance.primaryKey]/'); return true;

Humble suggestion: why not write a method that would return the all href, 
onMouse, etc?

The method can do all the string operations in java... 
Javascript:ShowContent(' + mySess.selectedPerformance.primaryKey +')


HG

 ___
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 arch...@mail-archive.com


Re: need to add dir to classpath

2010-01-13 Thread Henrique Gomes

Some time ago I also needed a properties file on the classpath and after trying 
and failing to convince the build system to help me, I gave up and added  
-DWOEnvClassPath= to the app configuration on JavaMonitor. If you find a better 
way let me know :-)

Henrique Gomes

On Jan 13, 2010, at 2:30 PM, Patrick Robinson wrote:

 No, that didn't work... it just gets ignored.  Thanks for the suggestion, 
 though; it sounded promising!  I thought it might result in the file's being 
 put into Contents/Resources/Java/, which *is* in the classpath.
 
 - Patrick
 
 
 On Jan 13, 2010, at 6:17 AM, David Avendasora wrote:
 
 Hi Patrick,
 
 This is just a stab-in-the-dark, but can't you just drop it into the Sources 
 directory?
 
 Dave
 
 On Jan 12, 2010, at 11:20 PM, Patrick Robinson wrote:
 
 I need to use a java library that expects to find my java keystore file 
 (which would normally be specified by the javax.net.ssl.keyStore system 
 property) in a directory on the classpath.
 
 How do I do that?  Is there a way to create a dir (perhaps under 
 Resources), and tell the build system to include it in the classpath?
 
 - Patrick
 
 ___
 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/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.com
 
 
 
 ___
 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/pgr%40vt.edu
 
 This email sent to p...@vt.edu
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: LEWOStuff (the stuff with JSON-RPC!)

2010-01-07 Thread Henrique Gomes
Andrew,

Thank you, that did it. I was thinking I had to change something on the server, 
I now realize the 'on the wire' format is always the same, right? It's the 
client that has to be instructed on how to deserialize.

But does it mean that If I have the EO Model also on the client it will 
instantiate the right classes? I get this now :

ERROR er.extensions.eof.ERXEntityClassDescription  - Entity Obra not found in 
the default model group!

Also if I'm also using wonder, what's your advice? Better to subclass ERXApp 
and only implement the bits need for JSONRPC?

Thank you again for sharing your work and answering questions.

Best regards,

Henrique

On Jan 7, 2010, at 12:04 AM, Andrew Lindesay wrote:

 Hi Henrique;
 
 Thanks for the email.
 
 Because the JSON-RPC system intentionally transports model chunks and not 
 complete parts of the model, the concept of de-serialising to an EO on the 
 client-side makes less sense.  This is a conscious design decision.
 
 For WebObjects applications which are consumers of JSON-RPC web services, the 
 client in the WebObjects application is intended to produce instances of...
 
   nz.co.lindesay.common.webobjects.eo.proxy.LEEOEnterpriseObjectProxy
 
 ...instead of...
 
   nz.co.lindesay.common.eo.proxy.LEEOEnterpriseObjectProxy
 
 This class conforms to NSKeyValueCoding and should do what you want.  This 
 behaviour will automatically happen if you add this to your application 
 constructor in the client;
 
   static
   {
   
 LEJSONFormatFactory.singleton().setFormatClass(LEWOJSONFormat.class);
   }
 
 (If you are subclassing from LEWOApplication then this happens by default.)
 
 Hope this helps and let me know how you get on.
 
 cheers
 
 
 I am starting with your JSON RPC precisely on a WO-Wo scenario. Looking at 
 the pdf, the examples and some mails I've been able to have the 'server' WOA 
 respond to login request and send simple answers like strings. When I try to 
 return EO's ( an NSArray of them) the client gets an ArrayList of 
 nz.co.lindesay.common.eo.proxy.LEEOEnterpriseObjectProxy which do not have 
 KVC. 
 How do I convince the server (or is it the client? to send an *NSArray*  of 
 nz.co.lindesay.common.WEBOBJECTS.eo.proxy.LEEOEnterpriseObjectProxy ??
 ...
 Thanks in advance for any tips.
 
 ___
 Andrew Lindesay
 www.lindesay.co.nz
 

 ___
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 arch...@mail-archive.com

Re: Best way to run period task?

2010-01-07 Thread Henrique Gomes
Another vote for quartz!

Might be overkill for a simple recurring task but having the flexibility there 
for the future is great.

Henrique Gomes

On Jan 7, 2010, at 7:19 AM, Frédéric JECKER wrote:

 Hi,
 
 Quartz (http://www.quartz-scheduler.org/) works pretty well
 
 Regards
 
 Le 7 janv. 2010 à 01:22, Mark Woollard a écrit :
 
 What's the recommended way to run a periodic task from within a WO 
 application? In this case its infrequently (hourly) and independent of any 
 web requests. 
 
 Thanks
 Mark
 ___
 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/f.jecker%40symaris.com
 
 This email sent to f.jec...@symaris.com
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: LEWOStuff (the stuff with JSON-RPC!)

2010-01-06 Thread Henrique Gomes

On Jun 10, 2008, at 9:44 PM, Andrew Lindesay wrote:

 Hello David;
 
 WO - Web
 WO - Java Client
 WO - Cocoa Client
 WO - Cocoa Touch Client
 
 WO - WO :)


Helo,

I am starting with your JSON RPC precisely on a WO-Wo scenario. Looking at the 
pdf, the examples and some mails I've been able to have the 'server' WOA 
respond to login request and send simple answers like strings. When I try to 
return EO's ( an NSArray of them) the client gets an ArrayList of 
nz.co.lindesay.common.eo.proxy.LEEOEnterpriseObjectProxy which do not have KVC. 
How do I convince the server (or is it the client? to send an *NSArray*  of 
nz.co.lindesay.common.WEBOBJECTS.eo.proxy.LEEOEnterpriseObjectProxy ??

For the record here is my server app code:

public class Application extends ERXApplication implements
LEWOJSONRPCApplicationInterface {

static {

LEJSONFormatFactory.singleton().setFormatClass(LEWOJSONFormat.class);
LEJSONRPCHelperFactory.singleton().setHelperClass(
LEWOJSONRPCHelper.class);
}

public Application() {
(...)
LERPCRegistry reg = LERPCRegistry.singleton();

reg.registerTargetClass(BaseEndpointRPCTarget.class);
reg.registerTargetClass(ClientsRPC.class);
registerRequestHandler(new LEWOJSONRPCRequestHandler(),
JSONRPCRequestHandlerKey());
}


public String JSONRPCRequestHandlerKey() {
return jrpc;
}

public WOResponse handleJSONRPCException(Throwable arg0, WOContext arg1,
Object arg2) {
// TODO Auto-generated method stub
return null;
}
}


and the method that returns EO's:

@LERPCMethod()
public NSArrayEOEnterpriseObject obras() {
...
EOFetchSpecification fs = new EOFetchSpecification(...)
return (NSArrayEOEnterpriseObject) 
session().defaultEditingContext()
.objectsWithFetchSpecification(fs);
}

Thanks in advance for any tips.

The point of this exercise is that we have an app used only internally by the 
client, and another on the internet for their clients to have real time 
information on their requests. I've used this to try to learn how the 'public' 
app could get the data only through defined interfaces without direct db 
access, only through RPC to the 'private' app. Having EO proxys that accept KVC 
simplifies a lot.

Best regards,


 ___
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 arch...@mail-archive.com


Re: Building for deployment

2009-12-15 Thread Henrique Gomes
You know, one the really good things about WO is the humor in this community.  
:-)

Thanks, now I feel archaic instead of ignorant :-)

HG

On Dec 14, 2009, at 7:24 PM, Patrick Robinson wrote:

 Oh, I dunno - perhaps you simply enjoy archaic word meanings.  According to 
 the OED, under receipt, n.:
 
13. gen. The formula of a preparation, or an account of the means, for 
 bringing about some end; (in extended use) the means for attaining an end. 
 Cf. RECIPE n. 3. Now arch.
 
 :-)
 
 - Patrick
 
 
 On Dec 14, 2009, at 1:20 PM, Henrique Gomes wrote:
 
 On Dec 14, 2009, at 4:42 PM, Kieran Kelleher wrote:
 
 receipt ?
 
 :-) Does it show that I'm not a native speaker?! I meant 'recipe'.
 
 
 
 
 In any case, Wonder uses build properties to decide where the various 
 directories are.
 
 You can put a file named build.properties in the Wonder root directory to 
 dictate the build properties which includes the target directory or pass a 
 build.properties on the command line to override wonder's build properties.
 
 Yes, the problem is the amount of properties. I have hudson building wonder 
 in ${WORKSPACE}/Root. And the other jobs using the artifacts from the wonder 
 build, expanding the tar.gz  on {WORKSPACE}/Root.
 That's all fine for the build server. On my mac I just wanted a simple 
 -local switch to have wonder install the frameworks on ~/Library/Frameworks. 
 I seldom require them like that, and dislike putting stuff in /Library if it 
 is just for a quick test.
 In those cases I manually  cp -r from the build directory
 
 
 See Wonder/Build/build/generic.xml for details.
 
 HTH, Kieran
 
 
 
 On Dec 14, 2009, at 10:48 AM, Henrique Gomes wrote:
 
 
 On Dec 14, 2009, at 2:29 PM, Kieran Kelleher wrote:
 Wonder is installed locally from the same working copy as the wonder 
 workspace projects are linked to
 
 Can you share the receipt for that? Right now I use a hudson build server 
 ( linux ) for the builds with all the complication of setupWonder.sh but I 
 was always curious if there is a simple switch to make
 
 $ ant frameworks.install
 
 install on the user domain like ~/Library/Frameworks
 
 
 Thanks,
 
 Henrique Gomes
 
 ___
 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/kieran_lists%40mac.com
 
 This email sent to kieran_li...@mac.com
 
 
 ___
 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/pgr%40vt.edu
 
 This email sent to p...@vt.edu
 
 ___
 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/lists%40farol.pt
 
 This email sent to li...@farol.pt

 ___
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 arch...@mail-archive.com


Re: Building for deployment

2009-12-14 Thread Henrique Gomes

On Dec 14, 2009, at 2:29 PM, Kieran Kelleher wrote:
 Wonder is installed locally from the same working copy as the wonder 
 workspace projects are linked to

Can you share the receipt for that? Right now I use a hudson build server ( 
linux ) for the builds with all the complication of setupWonder.sh but I was 
always curious if there is a simple switch to make

$ ant frameworks.install 

install on the user domain like ~/Library/Frameworks 


Thanks,

Henrique Gomes

 ___
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 arch...@mail-archive.com


Re: Building for deployment

2009-12-14 Thread Henrique Gomes

On Dec 14, 2009, at 4:42 PM, Kieran Kelleher wrote:

 receipt ?

:-) Does it show that I'm not a native speaker?! I meant 'recipe'.



 
 In any case, Wonder uses build properties to decide where the various 
 directories are.
 
 You can put a file named build.properties in the Wonder root directory to 
 dictate the build properties which includes the target directory or pass a 
 build.properties on the command line to override wonder's build properties.

Yes, the problem is the amount of properties. I have hudson building wonder in 
${WORKSPACE}/Root. And the other jobs using the artifacts from the wonder 
build, expanding the tar.gz  on {WORKSPACE}/Root.
That's all fine for the build server. On my mac I just wanted a simple -local 
switch to have wonder install the frameworks on ~/Library/Frameworks. I seldom 
require them like that, and dislike putting stuff in /Library if it is just for 
a quick test.
In those cases I manually  cp -r from the build directory


 See Wonder/Build/build/generic.xml for details.
 
 HTH, Kieran
 
 
 
 On Dec 14, 2009, at 10:48 AM, Henrique Gomes wrote:
 
 
 On Dec 14, 2009, at 2:29 PM, Kieran Kelleher wrote:
 Wonder is installed locally from the same working copy as the wonder 
 workspace projects are linked to
 
 Can you share the receipt for that? Right now I use a hudson build server ( 
 linux ) for the builds with all the complication of setupWonder.sh but I was 
 always curious if there is a simple switch to make
 
 $ ant frameworks.install
 
 install on the user domain like ~/Library/Frameworks
 
 
 Thanks,
 
 Henrique Gomes
 
 ___
 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/kieran_lists%40mac.com
 
 This email sent to kieran_li...@mac.com
 

 ___
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 arch...@mail-archive.com


Re: Building for deployment

2009-12-14 Thread Henrique Gomes

On Dec 14, 2009, at 4:17 PM, David Avendasora wrote:

 Hi Henrique,
 
 The big drawback to having Hudson install wonder in a location like 
 /Library/Frameworks or ~/Library/Frameworks is that you can only have one 
 version of wonder installed at a time.
 
 What if you have one version of your app that builds against an older version 
 like 9692 but in development you want to use the head?
 
 I have some substantially modified shell scripts for setting up Wonder builds 
 in Hudson (based off Mike's original) that allow you to specify the version 
 of wonder you want and it will build and install it in a repository instead 
 of the system or user directories.
 
 They are written to work with OS X, but I don't think they'd have to be 
 modified much, if at all, for linux.
 
 Here's the repository: 
 http://wonova.svn.beanstalkapp.com/repos/Hudson/WonderBuilder/
 
 You should be able to create a new Hudson job, then replace the config.xml 
 file for it with the one in the repository and that should get you a job that 
 allows you to specify the version of WO, Wonder, and the install location 
 (Repository).
 
 If you want to change the script to install Wonder directly in the local or 
 user directory, then feel free. Look at the lines that set:
 1) wonder.framework.install.root
 2) web.framework.install.root. 
 
 I may include a version of the script that does that as well.
 
 If you were in the Washington DC area tomorrow night, I'll be presenting on 
 this setup at WONoVA... it's just a quick hop across the pond, right?
 

Right! For some definition of quick :-)

Thank you, on my build server I'm doing things very similar, but I'll check the 
possibility of specifying the desired wonder version. I had that on a earlier 
build setup (non hudson) but lately I just take the latest and although I never 
had problems it can sure be improved.

My only question is on those rare situations that I want to do ant builds on my 
mac, a simple way to stuff the wonder frameworks on ~/Library/Frameworks would 
be nice. I'll have a look at those properties but always had the impression 
that all you could is to coerce wonder into a separate 'root'

Henrique Gomes


 Dave
 
 On Dec 14, 2009, at 10:48 AM, Henrique Gomes wrote:
 
 
 On Dec 14, 2009, at 2:29 PM, Kieran Kelleher wrote:
 Wonder is installed locally from the same working copy as the wonder 
 workspace projects are linked to
 
 Can you share the receipt for that? Right now I use a hudson build server ( 
 linux ) for the builds with all the complication of setupWonder.sh but I was 
 always curious if there is a simple switch to make
 
 $ ant frameworks.install 
 
 install on the user domain like ~/Library/Frameworks 
 
 
 Thanks,
 
 Henrique Gomes
 
 ___
 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/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.com
 
 
 
 David Avendasora
 Senior Software Engineer
 K12, Inc.
 
 *
 WebObjects Documentation Wiki : 
 http://wiki.objectstyle.org/confluence/display/WO/
 *
 WebObjects API: 
 http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html
 *
 

 ___
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 arch...@mail-archive.com


Re: ReportMill [was Re: WOWODC 2010 : call for presenters]

2009-11-04 Thread Henrique Gomes


We have been using Docmosis (http://docmosis.com/). It's not open  
source, but free if you don't need the scalability of the more  
expensive licences.
It takes an open office template, a 'data provider' and outputs every  
format that open office supports: PDF, word, etc.

I cooked up a KeyValue Data Provider so it accepts EO's for it's data.
The big advantage is that since we have to automate the creation of  
word and pdf documents from templates done by the marketing guys, it's  
just a matter of saving the word template as an open office template  
and boom!
Except of course for all the details that get lost on that  
transformation :-(


Henrique Gomes


On Nov 3, 2009, at 4:25 PM, Mark Morris wrote:

Other than price and open-source-ness, are there disadvantages to  
ReportMill versus other tools?  I've been pretty happy with it, so  
much so that I haven't been paying much attention to alternatives  
lately.


Thanks,
Mark

On Nov 2, 2009, at 2:04 PM, Ricardo J. Parada wrote:

I'm interested in PDFKit or anything that could help us phase out  
ReportMill.  :-)


On Nov 2, 2009, at 2:51 PM, Gaastra Dennis - WO Lists wrote:


Bonjour Pacal,

How about I present some of our PDFkit advanced reports coding,  
our Cloud Computing engine bizDAV, and our newest large WO  
scheduling engine scheduleDS. It would be nice to revisit  
Montreal; the last time I was there was in 1977.


With Kind Regards,

Dennis Gaastra,
Chief Technology Officer,
WEBAPPZ Systems, Inc.


This message contains confidential information and is intended  
only for the individual named. If you are not the named addressee  
you should not disseminate, distribute or copy this e-mail. Please  
notify the sender immediately by e-mail if you have received this  
e-mail by mistake and delete this e-mail from your system. E-mail  
transmission cannot be guaranteed to be secure or error-free as  
information could be intercepted, corrupted, lost, destroyed,  
arrive late or incomplete, or contain viruses. The sender  
therefore does not accept liability for any errors or omissions in  
the contents of this message, which arise as a result of e-mail  
transmission. If verification is required please request a hard- 
copy version. WEBAPPZ Systems, Inc., 726 - 1489 Marine Drive, West  
Vancouver, BC, CANADA V7T 1B8, www.webappz.com





On 2009-11-02, at 11:09 AM, Pascal Robert wrote:


Hello everyone,

So WOWODC 2010 will be held on August 27th, 28th and 29th in  
Montreal. Ok, before people ask : why not in SF again? Plain  
answer : we are moving to a new building in July so we will be  
busy preparing for the move and I can't afford to go to SF. It  
also allow me to deliver a better conference since I can actually  
go to the hotel to see everything and test Net access before  
signing the contract, no bad surprises like we have every year in  
SF!


Still, for 2011 and later, we want to do a rotation, one year on  
the East coast of NA, one year on the West coast, and we will  
need co-organizers for that (even if I would like to, I can't go  
visit every city in NA in two days :-)). But that's for 2011 and  
up, we are far from that.


So mark your calendars, and if you want to present, this is the  
official call for presenters. 4 of you already said I'm in, and  
we will have two rooms so that we can have concurrent  
presentations (and plenty of lab time).  Check the Presenters FAQ  
here :


http://www.wocommunity.org/wowodc10/presenters-faq.html

Pricing and venue will be confirmed before the year's end, but  
95% chance we will go back to the Gouverneur Place Dupuis like we  
did for WOWODC East 2009.


Pascal Robert
prob...@macti.ca

My first name is Pascal, NOT Robert :-)


___
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/webobjects_lists%40webappz.com

This email sent to webobjects_li...@webappz.com


___
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/rparada%40mac.com

This email sent to rpar...@mac.com


___
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/markm%40onpointsoftware.com

This email sent to ma...@onpointsoftware.com


___
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

Re: [SOLVED]Antw: Re: Problem with pages saved in a variable

2009-10-14 Thread Henrique Gomes
I have some cases where before returning the 'next' page, I store the  
current page on a var on the next page, like 'previousPage'


nextPage=pageWithName(blabla);
nextPage.setPreviousPage(this);

Then on that page I have a link or button that returns previousPage.

return previousPage;


Seems to work alright. I'm willing to be educated on a better way if  
any.


Henrique Gomes



On Oct 14, 2009, at 2:55 PM, Andri vonAllmen wrote:


The end result:

A user navigates from page A to page B to page C.
Page C has a hyperlink to page A (return pageWithName(A)).
If clicking on this hyperlink, page A shall be shown in the same  
state as it has been left (e.g. the same filter options, etc.).


Mike Schrag msch...@mdimension.com schrieb am Mittwoch, 14.  
Oktober 2009 um
15:18 in Nachricht 2a345bc9-7581-4c6c-82ab-89e761ee3...@mdimension.com 
:

Can you explain this more in terms of the end result you're trying to
achieve rather the approach you're trying at the moment?

On Oct 14, 2009, at 4:03 AM, Andri vonAllmen wrote:


Hi Stephane,

The reason for not using the WO caching mechanism was, that I'm
maintaining a application which has pageWithName methods ad
infinitum and this method does always create a new instance of a
page (please do correct me, if this is not true), which is not the
behaviour I want it to have (I want it to check the cache first).

Thank you for responding,
Andri


Stephane Guyot stephane.guyo...@wanadoo.fr schrieb am Mittwoch,
14. Oktober

2009 um 09:16 in Nachricht 6e311acc-81e0-40a4-8894-2d2c5a00f...@wanadoo.fr

:



Andri,

I don't what exactly you want do, but have a look on API Session :
restorePageForConextID, savePage, savePageInPermanentCache.
You can start to override this API and just log, to understand how
WebObjects works with pages and contextIDs.

HTH,
Stephane


Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit :



Dear List,

in an Applications Session, a NSMutableDictionary object is used  
for
caching pages. Everytime the pageWithName method is called,  
the

dictionary is queried in order to determine if the requested page
does
already exist, if true the existing page is returned, else a new
one is
generated and stored in the dictionary. This is made in
Application.java
by overriding the pageWithName method:

public WOComponent pageWithName(String aName, WOContext  
aContext) {

  Object result = null;
  if ( aContext.hasSession() ) result =
((NSMutableDictionary)((Session)aContext.session()).cachedPages
()).objectForKey(aName);
  if ( result == null ) {
result = super.pageWithName(aName, aContext);
if ( aContext.hasSession() ) if ( aName != null )
((NSMutableDictionary)((Session)aContext.session()).cachedPages
()).setObjectForKey(result,
aName);
  }
  return (WOComponent)result;
}

This works with one exception. Making changes on Enterprise
Objects is
not possible in every case. Saving changes works, if always the  
same

object is changed but not if two different objects are changed
(changing
the first, saving the changes, then changing the second and saving
the
changes). But if making changes on a object, saving it, and then
revert
the changes (to the same state as before changing it the first
time),
making changes on other objects is possible.

As mentioned in the WO API Reference, for pages being stored in a
variable the ensureAwakeInContext method has to be called, but
this
has no effect. Same if refreshing the objects in the default  
editing
context (refreshAllObjects, refaultAllObjects) which is used  
on

all
pages.

Any suggestions or other hints would be appreciated.

Regards
Andri


--- Disclaimer:
- This
email and
contents is for use only by the intended recipient. If you are not
the
individual or entity to whom it is addressed, you are hereby
formally
notified that any use, copying or distribution of this email and
attachments, in whole or in part, is strictly prohibited. If you
have
received this email in error, please notify the sender and delete
the
message and attachment(s) from your system. Any views, opinions or
information, expressed or contained in this email, are those of  
the

sender and not necessarily reflect those of CEDES. To help protect
our
environment, please avoid printing out this information
unnecessarily.
___
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/
stephane.guyot11%40wanadoo.fr

This email sent to stephane.guyo...@wanadoo.fr



IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/
lender/stephane4127 - Click on Map View



--- Disclaimer:
- This email
and contents is for use only by the intended recipient. If you are
not the individual

Re: Let's play Spot the Deadlock ;-)

2009-10-07 Thread Henrique Gomes


On Oct 7, 2009, at 9:06 PM, Kieran Kelleher wrote:


Thread t...@76291: (state = BLOCKED)
 - sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame)


Let me guess, you have just updated wonder, right?

The reason I'm saying this is that I've spent the day solving a  
similar deadlock, similar on the 'unsafe park' at least.
I am using docmosis (http://docmosis.com/) to generate PDFs and .DOCs.  
I've cooked up a simple 'data provider' that uses KVC to supply the  
data on the templates. I just pass an EO to it and presto. Since all  
my code is i the request/response loop, I never gave it a second  
thought. It turns out that a thread is spun to do the actual work, and  
the latest changes in locking behaviour in wonder exposed the faulty  
assumptions.
I now pass a GlobalID and lazily initialize an EditingContetx and  
fetch the EO on the first access to the data provider, that way every  
acces is on the same thread.


So my point really is that Anjo's latest changes on ERXEC might have  
exposed something, or there is a bug on those changes (nahhh)


Regards,

Henrique Gomes

___
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 arch...@mail-archive.com


Re: WOWODC - a few pics

2009-06-09 Thread Henrique Gomes


On Jun 9, 2009, at 3:45 PM, Frédéric JECKER wrote:


WOWODC Europe would be a great idea !!



+1

Henrique Gomes

___
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 arch...@mail-archive.com


Re: AjaxUpdateLink's action not getting called

2009-03-10 Thread Henrique Gomes
Some will correct me If I'm wrong, but I think you are using  
AjaxObseveField wrong:

the way to use it is to supply an observeFieldID = IDofElement
and it will look for changes on the element with ID IDofElement,  
invoking the $action and/or updating the $updateContainerID when  
there's a change.



Henrique Gomes

On Mar 10, 2009, at 4:48 PM, Ricardo J. Parada wrote:



Is there a reason why my action would not get called when I use the  
AjaxUpdateLink's in a configuration like this:


wo:form
wo:AjaxUpdateContainer id=Foo
wo:AjaxObserveField updateContainerID=Foo elementName=span
wo:textfield value=$foo/
wo:AjaxUpdateLink action=$doSomething string=Do It/
/wo:AjaxObserveField
/wo:AjaxUpdateContainer
/wo:form

This is a simplified version of what I have just to demonstrate what  
I'm talking about.  In order for my AjaxUpdateLink's action to get  
called I have to move it outside the AjaxObserveField like this:



wo:form
wo:AjaxUpdateContainer id=Foo
wo:AjaxObserveField updateContainerID=Foo elementName=span
wo:textfield value=$foo/
/wo:AjaxObserveField
wo:AjaxUpdateLink action=$doSomething string=Do It/
/wo:AjaxUpdateContainer
/wo:form
___
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/lists%40farol.pt

This email sent to li...@farol.pt


 ___
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 arch...@mail-archive.com

Re: AjaxUpdateLink's action not getting called

2009-03-10 Thread Henrique Gomes


On Mar 10, 2009, at 5:48 PM, Ricardo J. Parada wrote:


From the javadoc:

If you do NOT specify an observeFieldID, all of the form fields  
contained within this component will be observed for changes instead.


I stand corrected. Might find that useful if it really works, or the  
bug gets fixed.


Henrique Gomes


___
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 arch...@mail-archive.com


ADC has tutorial on WebObjects using WOLips

2009-02-23 Thread Henrique Gomes
Didn't see this mentioned, might be of interesse to some.Getting StartedA guided introduction and learning path for developers new to WebObjects.Sort byTitleSort byResource TypeSorted byDateWebObjects Tutorial(HTML)(PDF)Steps for building a simple WebObjects application using Eclipse and the WOLips plug-in.Guides2009-02-04 ___
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 arch...@mail-archive.com

Re: Peer ECs in updating EO

2009-02-21 Thread Henrique Gomes


On Feb 20, 2009, at 11:13 AM, David LeBer wrote:


I wrote a blog post with an intro to working with multiple ECs:  http://davidleber.net/?p=322 



Two basic rules:
1. You cannot relate EOs in different ECs
2. You cannot move uncommitted EOs between ECs



Thank you for such a clear text.

I'm in the process to change my code to avoid the default EC.
(In my defense the previous projects were mostly read only, very few  
writes)
Any way, I now face this question: Let's say I have EO's that, for  
example, relate to a country EO.
In my app I had the country list preloaded on the session and used it  
as a WOPopUp list binding with the select key bound to my EO.country.
So to use a peer EC on the edit page, do I have to re-fetch the  
country list on the new EC? Is there a better way?
Can I leave the selected key bound to a var and localInstace() on  
the setter?


I don't now if I made myself clear

Henrique Gomes ___
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 arch...@mail-archive.com

Re: [MEETING] WO-NOVA meeting Tuesday 2/17

2009-02-19 Thread Henrique Gomes


On Feb 13, 2009, at 8:20 PM, Andrew R. Kinnie wrote:


Greetings all,

It is that time again.  The WO-NOVA WebObjects group meeting is  
scheduled at K12 this coming Tuesday, Feb 17, 2009.  Mike Schrag  
will be demonstrating using Hudson for deployment, and whatever  
other fantastic new things up his sleeve he chooses to talk about.   
(Or the rest of us, for that matter).

(...)
Should be an interesting evening.  Food, as always, will be  
provided.  Hope to see any WO developers in Northern Virginia, DC or  
MD there!




Greetings,

I would have loved to attend and hear about hudon, but, alas, I'm in a  
different continent...
If there was any material (presentations, samples of scripts/configs)  
I think many of us would like to take a peek.


Regards,

Henrique Gomes

___
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 arch...@mail-archive.com


Re: New WOLips is Stable

2009-01-26 Thread Henrique Gomes


So what if we continue on nightly? Is it going through changes not  
recommended for production use? Can you warns us in advance if that's  
the case?


Regards,


Henrique Gomes


___
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 arch...@mail-archive.com


Re: Adding a xml config file to the classpath

2008-12-22 Thread Henrique Gomes


On Dec 22, 2008, at 12:03 AM, Chuck Hill wrote:
What does the classes clause of your woapplication task look like?   
This?


   classes dir=${classes.dir}
   patternset
   includesfile name=woproject/ 
classes.include.patternset/
   excludesfile name=woproject/ 
classes.exclude.patternset/

   /patternset
   /classes


Chuck



Well the includesfile and excludesfile are not enclosed on a  
patternset :


	woapplication name=${build.app.name} destDir=${dest.dir}  
customInfoPListContent=${customInfoPListContent} principalClass=$ 
{principalClass} webXML=${webXML} webXML_CustomContent=$ 
{webXML_CustomContent}  
servletAdaptor=er.extensions.jspservlet.ERXServletAdaptor

classes dir=${classes.dir}
includesfile 
name=woproject/classes.include.patternset /
excludesfile 
name=woproject/classes.exclude.patternset /
/classes

wsresources dir=.
includesfile 
name=woproject/wsresources.include.patternset /
excludesfile 
name=woproject/wsresources.exclude.patternset /
/wsresources

resources dir=.
includesfile 
name=woproject/resources.include.patternset /
excludesfile 
name=woproject/resources.exclude.patternset /
/resources

			frameworks root=ProjectLocal embed=${embed.ProjectLocal}  
eclipse=true /
			frameworks root=External embed=${embed.External}  
eclipse=true /

frameworks root=Local embed=${embed.Local} 
eclipse=true /
frameworks root=User embed=${embed.User} 
eclipse=true /
frameworks root=System embed=${embed.System} 
eclipse=true /
frameworks root=Network embed=${embed.Network} 
eclipse=true /

lib dir=Libraries
include name=*.jar /
/lib

otherclasspath dir=${wo.extensions}
include name=*.jar /
/otherclasspath
/woapplication


Changing build.xml to have the patternset tag didn't make a  
diference tough. And the wsresources also doesn't have a patternset   
but  on that place, excludesfiles *is* working and not adding a file  
that I want excluded


My classes.include.patternset:

**/*.class
*.properties
**/*.xml

And the config.xml is on the Sources folder. A test xpto.properties  
also didn't get packaged.

Any ideas??


I'm thinking of storing this library files some where else, and seing  
if there's a way to add that place on build.xml so that the app  will  
have that dir on it's classpath. Might make it simpler to have  
different configs for development and deployment.



Thanks for all your help.

Henrique Gomes




On Dec 21, 2008, at 3:45 PM, Henrique Gomes wrote:



That doesn't seem to make any difference... the xml file is not  
included in APP.woa/Contents/Resources/Java or the APP.jar on the  
same dir.
Also, the default patternset includes **/*.properties and I've  
tried  placing a xpto.properties in Sources, but that also doesn't  
get packaged.


Placing the xml file on 'Sources' works for runs in Eclipse, it's  
copied to build and that's part of the classpath. But I can't get  
ant builds to include the file on a place that will be in the  
classpath of the running app.


I'm on eclipse 3.4.1, wolips nightly from yesterday, doing split  
installs.


Regards,

Henrique Gomes

On Dec 21, 2008, at 7:01 PM, Mike Schrag wrote:

 wocompile srcdir=src destdir=bin includes=**/ 
*.java,**/*.conf


or in your case, **/*.xml

ms

On Dec 21, 2008, at 1:33 PM, Henrique Gomes wrote:



Hello,

I am using a library that loads it's config file from the  
classpath.
I have manually placed the .xml config file on APP.woa/Contents/ 
Resources/Java and got it working.


How do I have it placed there in every build? Or have it in the  
classpath other way?
Adding **/*.xml to woproject/classes.include.patternset didn't  
help.


Regards,

Henrique Gomes


 ___
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 arch...@mail-archive.com

Adding a xml config file to the classpath

2008-12-21 Thread Henrique Gomes


Hello,

I am using a library that loads it's config file from the classpath.
I have manually placed the .xml config file on APP.woa/Contents/ 
Resources/Java and got it working.


How do I have it placed there in every build? Or have it in the  
classpath other way?

Adding **/*.xml to woproject/classes.include.patternset didn't help.

Regards,

Henrique Gomes


 
___

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 arch...@mail-archive.com


Re: Adding a xml config file to the classpath

2008-12-21 Thread Henrique Gomes


That doesn't seem to make any difference... the xml file is not  
included in APP.woa/Contents/Resources/Java or the APP.jar on the same  
dir.
Also, the default patternset includes **/*.properties and I've tried   
placing a xpto.properties in Sources, but that also doesn't get  
packaged.


Placing the xml file on 'Sources' works for runs in Eclipse, it's  
copied to build and that's part of the classpath. But I can't get  
ant builds to include the file on a place that will be in the  
classpath of the running app.


I'm on eclipse 3.4.1, wolips nightly from yesterday, doing split  
installs.


Regards,

Henrique Gomes

On Dec 21, 2008, at 7:01 PM, Mike Schrag wrote:

   wocompile srcdir=src destdir=bin includes=**/ 
*.java,**/*.conf


or in your case, **/*.xml

ms

On Dec 21, 2008, at 1:33 PM, Henrique Gomes wrote:



Hello,

I am using a library that loads it's config file from the classpath.
I have manually placed the .xml config file on APP.woa/Contents/ 
Resources/Java and got it working.


How do I have it placed there in every build? Or have it in the  
classpath other way?

Adding **/*.xml to woproject/classes.include.patternset didn't help.

Regards,

Henrique Gomes


___
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/mschrag%40mdimension.com

This email sent to msch...@mdimension.com



___
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/lists%40farol.pt

This email sent to li...@farol.pt


___
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 arch...@mail-archive.com


Re: Question: Best practice for switching db connections as build time

2008-10-24 Thread Henrique Gomes


On Oct 24, 2008, at 3:17 PM, William Sandner wrote:

We have 4 different environments that we deploy to, development,  
test, staging, and production.  We are using ant as our build tool.


For most of our environments we connect to a localhost database with  
a common password, but production is on an external server which has  
a more secure password.  What is the best way to change the db  
connection at build time?


Example:
When I build for production, I want to make sure the connection is  
pointing to the correct server and the password is correct.


I know I can use ant to search and replace for connection string  
tokens in the Properties file, but is this the easiest way?




I am doing it by replacing the connection string on the modelAdded  
Notification with  properties:



public Application() {


NSNotificationCenter.defaultCenter().addObserver(
this,
new NSSelector(modelAdded,
new Class[] { 
NSNotification.class }),
EOModelGroup.ModelAddedNotification, null);
}

public void modelAdded(NSNotification n) {

NSLog.out.appendln(Notification ModelAdded: );
EOModel m = (EOModel) n.object();
String dbhost = System.getProperty(app.dbhost);
String db = System.getProperty(app.db);
if (db == null || dbhost == null)
NSLog.out.appendln(No app.dbhost or app.db set, using 
defaults);
else {
if (m.name().equals(MODELNAME)) {
NSLog.out.appendln(Overriding host:  + dbhost +  
db:  + db);
NSMutableDictionaryString, Object c = new  
NSMutableDictionaryString, Object(

m.connectionDictionary());
c.setObjectForKey(jdbc:postgresql:// + dbhost + 
/ + db,
URL);
m.setConnectionDictionary(c);
}
}
}

Then I set the app lunch parameters on JavaMonitor to set those  
properties :


-Dapp.dbhost=server -Dapp.db=dbname


I guess you can do something similar with the login/password. The  
beauty of it is that you can launch the same app with connections  
strings, no recompile/rebuild needed.


Of course, being new here I invite comments about this approach


Henrique Gomes

 ___
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: Compiling mod_WebObjecs on Leopard

2008-08-25 Thread Henrique Gomes


On Aug 25, 2008, at 10:41 AM, Atli Páll Hafsteinsson wrote:


Hi

I am trying set up mod_WebObjects on my Leopard dev machine,  
compiling the .so works fine but when apache tryes to load the  
module it complains:

(...)

My machine is a intel dualcore MacBook Pro and the build script sets:
-arch ppc -arch ppc64 -arch i386 -arch x86_64
(...)
Anyone sucessfully done this ?


I haven't on Leopard, only on Linux, but my Leopard MBP  already has a  
mod_WebObjects in /System/Library/WebObjects/Adaptors/Apache2.2/ 
mod_WebObjects.so


Where dit it came from? :

[EMAIL PROTECTED] ~]$ grep  mod_Web /Library/Receipts/*/*
Binary file /Library/Receipts/boms/com.apple.pkg.WebObjectsRuntime.bom  
matches


[EMAIL PROTECTED] ~]$ lsbom  /Library/Receipts/boms/ 
com.apple.pkg.WebObjectsRuntime.bom | grep mod_
./Developer/Examples/WebObjects/Source/Adaptors/Apache/ 
mod_WebObjects.c 100664  0/8023499   2160561959
./Developer/Examples/WebObjects/Source/Adaptors/Apache2.2/ 
mod_WebObjects.c  100664  0/8026198   9102868
./System/Library/WebObjects/Adaptors/Apache/mod_WebObjects.so
100755  0/0 462396  2848631358
./System/Library/WebObjects/Adaptors/Apache2.2/.libs/ 
mod_WebObjects.a   100644  0/0 753432  663717455
./System/Library/WebObjects/Adaptors/Apache2.2/.libs/ 
mod_WebObjects.la  100644  0/0 867 1344745583
./System/Library/WebObjects/Adaptors/Apache2.2/.libs/ 
mod_WebObjects.lai 100644  0/0 868 1683412182
./System/Library/WebObjects/Adaptors/Apache2.2/.libs/ 
mod_WebObjects.o   100644  0/0 75852   3534084019
./System/Library/WebObjects/Adaptors/Apache2.2/.libs/ 
mod_WebObjects.so  100755  0/0 452256  4170584091
./System/Library/WebObjects/Adaptors/Apache2.2/ 
mod_WebObjects.la100644  0/0 867 1344745583
./System/Library/WebObjects/Adaptors/Apache2.2/ 
mod_WebObjects.so100755  0/0 452256  4170584091


And it's working perfectly.

Regards,

Henrique Gomes

 ___
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: WOLisp app deploy as a servlet

2008-08-21 Thread Henrique Gomes


The servlet guide is old news. The new way of doing it, is much  
simpler. Just go to to Properties - Select WOLips build and check  
servlet deploy. Building with (Right click
on build.xml - Run As - Ant build) (the first), will now make a  
fully functional servlet.


Glad to know, I was fighting the same battle!

The catch however is that WOLips Ant Tools-Replace with latest  
build.xml is not working. You will have to use the one from a new  
project.


If that can't be easily fixed, shouldn't it be disabled? So as to not  
cause confusion.


Regards,

Henrique Gomes

___
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]


Connecting to DB with user supplied credentials.

2008-06-11 Thread Henrique Gomes
._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
	at  
com 
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 
226)

at java.lang.Thread.run(Thread.java:613)

[2008-6-11 14:25:23 WEST] WorkerThread12 fetching JDBC Info with  
[EMAIL PROTECTED]
[2008-6-11 14:25:23 WEST] WorkerThread12  connecting with  
dictionary: {plugin = PostgresqlPlugIn; username = hmng; driver =  
; password = password deleted for log; URL = jdbc:postgresql:// 
server/db; }
[2008-6-11 14:25:38 WEST] WorkerThread12  === Begin Internal  
Transaction
[2008-6-11 14:25:38 WEST] WorkerThread12  evaluateExpression:  
com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT 

[2008-6-11 14:25:38 WEST] WorkerThread12 1 row(s) processed
[2008-6-11 14:25:38 WEST] WorkerThread12  === Commit Internal  
Transaction


WO 5.4.1, Leopard, PostgresqlPlugiIn updated recently...


Best regards,

---
Henrique Gomes




___
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]


  1   2   >