Re: [Proposal] Drop Wonder's Ant Build

2022-06-17 Thread Dev WO via Webobjects-dev
I’m like Ted,

I though it would prevent me from keeping my current (ant) projects as they are.
I understand this only applies to building Wonder.
I don’t think it would be fair to ask the contributors to spend time on keeping 
a build system for Wonder that none of them use.

So as far as my opinion counts, I’m not against dropping ant build system from 
the Wonder build:)

Xavier


> On 17 Jun 2022, at 15:26, Theodore Petrosky via Webobjects-dev 
>  wrote:
> 
> Just to answer the question from before, I do build my own Wonder frameworks. 
> It looks like I am going to have to put in the time to get Maven going in my 
> work flow.,
>  
>  
>  
> BTW, does anyone here subscribe to Builtlwith?
>  
> 814 new WebObjects Leads
> https://trends.builtwith.com/websitelist/WebObjects/Added-Recently 
> 
>  
> I was looking around and I was amazed that the Siemens login page has a video 
> tutorial. As I watched it I noticed that all the pages referred to had 
> WebObjects in the URL. There is WebObjects out there.
>  
>  
>  
> From: "Ted Petrosky (WO)" 
> Reply-To: Paul Hoadley 
> Date: Thursday, June 16, 2022 at 8:06 PM
> To: "Ted Petrosky (WO)" 
> Subject: Re: [Proposal] Drop Wonder's Ant Build
>  
> Hey Ted,
>  
> Already answered, but just for additional reassurance:
>  
> On 17 Jun 2022, at 08:17, Theodore Petrosky via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
>  
>> What about us guys whose projects are smallish projects and never instituted 
>> Maven...
>  
> It won't affect your projects! This is purely about building the Wonder 
> frameworks from source. You won't need to migrate your projects to Maven if 
> you don't want to, though I strongly recommend that you do.
>  
>  
> -- 
> Paul Hoadley
> https://logicsquad.net/ 
> https://www.linkedin.com/company/logic-squad/
>  
> ___
> 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/webobjects%40anazys.com
> 
> This email sent to webobje...@anazys.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: MacOS WebObjects Apache 2.4 Adaptor

2020-05-29 Thread Dev WO via Webobjects-dev
Hi Mark,

I’m using this one under 10.12.6 (Sierra)

Xavier

> On 29 May 2020, at 16:35, Louis M Fisher III  wrote:
> 
> Xavier,
> 
> Thank you!
> 
> I plan on using it on a Mac mini too so it should work.
> 
> Which MacOS are you running on your Mac mini? i.e. 10.6 ... 10.8 .. 10.15 ?
> 
> Mark
> 
>> On May 28, 2020, at 9:39 PM, Dev WO  wrote:
>> 
>> Hello Mark,
>> 
>> I think this one is 64b, I’m using it on e Mac mini.
>> 
>> 
>> 
>> Xavier
>> 
>> 
>>> On 28 May 2020, at 18:40, Louis M Fisher III via Webobjects-dev 
>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> Does anyone have a precompiled MacOS Apache 2.4 Adaptor (x86_64 i386) they 
>>> would be willing to share?
>>> 
>>> I would like to look at upgrading some of my legacy WebObjects systems to 
>>> something running Apache 2.4 but so far I've been unable to compile the 
>>> adaptor.
>>> 
>>> 
>>> 
>>> Mark Fisher
>>> Chief Technology Officer
>>> LoTi Inc.
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> 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/webobjects%40anazys.com
>>> 
>>> This email sent to webobje...@anazys.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: [Tomcat] - Resources referenced in CSS not displayed [Solved]

2020-05-14 Thread Dev WO via Webobjects-dev
Thanks a lot Pierre,

That did the trick.

I added 






for the ssd task to copy the resources from the frameworks

And now everything is working as expected:)

Thanks and have a nice day,

Xavier


> On 14 May 2020, at 10:29, GILQUIN Pierre  wrote:
> 
>  
> If I am correct, you should be sure to have this in web.xml :
>   
> WOAppMode
> Deployment
>   
>  
> In build.xml :
>  match="Development" replace="Deployment" byline="true" />
>  
>  
>  
> By the way, you need to copy the WebResources for framework as well ..
>  
> Pierre
>  
> De : Dev WO [mailto:webobje...@anazys.com] 
> Envoyé : jeudi 14 mai 2020 10:21
> À : GILQUIN Pierre
> Cc : WebObjects-Dev
> Objet : Re: [Tomcat] - Resources referenced in CSS not displayed
>  
> Thanks Pierre,
>  
> Just tried it, the files are now also in the “static” tree, but the 
> application still generate the url like
> http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css
>  
> <http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css>
>  
> I’m doing  "app”/> in the HTML template
>  
> Thanks for your help,
>  
> Xavier
>  
> PS: I see that if I manually do 
> http://localhost:8081/CloudManager/static/CloudManager.woa/Contents/WebServerResources/images/logo.png
>  
> <http://localhost:8081/CloudManager/static/CloudManager.woa/Contents/WebServerResources/images/logo.png>,
>  the image is displayed, so that seems to be on the right track, but how to 
> make ERXStyleSheet to actually generate this kind of URL...
>  
> 
> 
> On 14 May 2020, at 10:04, GILQUIN Pierre via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
>  
> Hi Xavier,
>  
> To fully deploy and serve static files from Tomcat, I do the following things 
>  :
>  
> in Application start:
>  setApplicationBaseURL("/MyApp/static/");
>  setFrameworksBaseURL("/MyApp/static/Frameworks/");
>  
> in build.xml for ssdd task:
> 
>  todir="${dest.dir}/${build.app.name}/static/${build.app.name}.woa/Contents/WebServerResources/">
> 
> 
>  
>  
> HTH
> Pierre
>  
>  
> De : Dev WO via Webobjects-dev [mailto:webobjects-dev@lists.apple.com 
> <mailto:webobjects-dev@lists.apple.com>] 
> Envoyé : jeudi 14 mai 2020 09:52
> À : WebObjects Development
> Objet : [Tomcat] - Resources referenced in CSS not displayed
>  
> Hi list,
>  
> I’m struggling with something Tomcat related:
> My application’s CSS is working except for referenced items like a background 
> image or a font.
> What I have so far:
> -The images and font are present inside the same folder, everything is 
> correctly deployed under Tomcat and all files are there after Tomcat expand 
> the war
> -No mismatch of case sensitivity for file names either inside the CSS or on 
> the filesystem
> -Everything is working as expected when running from Eclipse or under 
> WOMonitor/wotaskd
>  
> Just as a side note, I don’t really have a say on the deployment (Tomcat), 
> all static resources must be served through Tomcat and not “split” with a web 
> server. Customer skills is zero, Deploy/undeploy under Tomcat Manager is 
> already “a lot” for the customer.
>  
> The deployment generates urls like:
> http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css
>  
> <http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css>
> for the CSS, which is ok and working
> the CSS has relative path like 
>  
> @font-face {
>   src: url('fonts/ysiweb.woff') format('woff');
> …
> }
> and for the background image
> … background-image: url(images/logo.png)…
>  
> In the browser’s inspector, I can see the logo.png and .woff font, but even 
> if they get a 200 status, they actually have no content (transfer size of 
> 175B for both in the web inspector)
> The urls are:
> http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudMa

Re: [Tomcat] - Resources referenced in CSS not displayed

2020-05-14 Thread Dev WO via Webobjects-dev
Thanks Pierre,

Just tried it, the files are now also in the “static” tree, but the application 
still generate the url like
http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css
 
<http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css>

I’m doing http://localhost:8081/CloudManager/static/CloudManager.woa/Contents/WebServerResources/images/logo.png
 
<http://localhost:8081/CloudManager/static/CloudManager.woa/Contents/WebServerResources/images/logo.png>,
 the image is displayed, so that seems to be on the right track, but how to 
make ERXStyleSheet to actually generate this kind of URL...


> On 14 May 2020, at 10:04, GILQUIN Pierre via Webobjects-dev 
>  wrote:
> 
> Hi Xavier,
>  
> To fully deploy and serve static files from Tomcat, I do the following things 
>  :
>  
> in Application start:
>  setApplicationBaseURL("/MyApp/static/");
>  setFrameworksBaseURL("/MyApp/static/Frameworks/");
>  
> in build.xml for ssdd task:
> 
>  todir="${dest.dir}/${build.app.name}/static/${build.app.name}.woa/Contents/WebServerResources/">
> 
> 
>  
>  
> HTH
> Pierre
>  
>  
> De : Dev WO via Webobjects-dev [mailto:webobjects-dev@lists.apple.com] 
> Envoyé : jeudi 14 mai 2020 09:52
> À : WebObjects Development
> Objet : [Tomcat] - Resources referenced in CSS not displayed
>  
> Hi list,
>  
> I’m struggling with something Tomcat related:
> My application’s CSS is working except for referenced items like a background 
> image or a font.
> What I have so far:
> -The images and font are present inside the same folder, everything is 
> correctly deployed under Tomcat and all files are there after Tomcat expand 
> the war
> -No mismatch of case sensitivity for file names either inside the CSS or on 
> the filesystem
> -Everything is working as expected when running from Eclipse or under 
> WOMonitor/wotaskd
>  
> Just as a side note, I don’t really have a say on the deployment (Tomcat), 
> all static resources must be served through Tomcat and not “split” with a web 
> server. Customer skills is zero, Deploy/undeploy under Tomcat Manager is 
> already “a lot” for the customer.
>  
> The deployment generates urls like:
> http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css
>  
> <http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css>
> for the CSS, which is ok and working
> the CSS has relative path like 
>  
> @font-face {
>   src: url('fonts/ysiweb.woff') format('woff');
> …
> }
> and for the background image
> … background-image: url(images/logo.png)…
>  
> In the browser’s inspector, I can see the logo.png and .woff font, but even 
> if they get a 200 status, they actually have no content (transfer size of 
> 175B for both in the web inspector)
> The urls are:
> http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/fonts/ysiweb.woff
>  
> <http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/fonts/ysiweb.woff>
> and
> http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/images/logo.png
>  
> <http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/images/logo.png>
>  
> I've tried adding the mime-types manually to the web.xml, but it’s clearly 
> not the issue here.
>  
> I found a thread "Tomcat deployment and CSS images” from 2013 by Miguel 
> Torres, but he actually changed the context-param WOAppMode to Deployment and 
> “split” the resources with the Web Server, something I can’t do here.
>  
> I’m lost, I don’t understand what’s the issue here.
>  
> Any help greatly appreciated:)
>  
> Thanks,
>  
> Xavier
>  
> 

[Tomcat] - Resources referenced in CSS not displayed

2020-05-14 Thread Dev WO via Webobjects-dev
Hi list,

I’m struggling with something Tomcat related:
My application’s CSS is working except for referenced items like a background 
image or a font.
What I have so far:
-The images and font are present inside the same folder, everything is 
correctly deployed under Tomcat and all files are there after Tomcat expand the 
war
-No mismatch of case sensitivity for file names either inside the CSS or on the 
filesystem
-Everything is working as expected when running from Eclipse or under 
WOMonitor/wotaskd

Just as a side note, I don’t really have a say on the deployment (Tomcat), all 
static resources must be served through Tomcat and not “split” with a web 
server. Customer skills is zero, Deploy/undeploy under Tomcat Manager is 
already “a lot” for the customer.

The deployment generates urls like:
http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/defaultscreen.css
for the CSS, which is ok and working
the CSS has relative path like 

@font-face {
  src: url('fonts/ysiweb.woff') format('woff');
…
}
and for the background image
… background-image: url(images/logo.png)…

In the browser’s inspector, I can see the logo.png and .woff font, but even if 
they get a 200 status, they actually have no content (transfer size of 175B for 
both in the web inspector)
The urls are:
http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/fonts/ysiweb.woff
 

and
http://localhost:8081/CloudManager/WebObjects/CloudManager.woa/wr/wodata=/usr/local/apache-tomcat-9.0.29/webapps/CloudManager/WEB-INF/CloudManager.woa/Contents/WebServerResources/images/logo.png

I've tried adding the mime-types manually to the web.xml, but it’s clearly not 
the issue here.

I found a thread "Tomcat deployment and CSS images” from 2013 by Miguel Torres, 
but he actually changed the context-param WOAppMode to Deployment and “split” 
the resources with the Web Server, something I can’t do here.

I’m lost, I don’t understand what’s the issue here.

Any help greatly appreciated:)

Thanks,

Xavier

 ___
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: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
I actually did like ERRest, but directly in my DirectAction

public WOActionResults statusAsJsonAction() {
//assuming dict exists
ERXRestRequestNode restResponseNode = null;
ERXRouteResults results = null;
try {
ERXRestContext context = new ERXRestContext();
restResponseNode = 
ERXRestRequestNode.requestNodeWithObjectAndFilter(dict, 
ERXKeyFilter.filterWithAll(), context);
results = new ERXRouteResults(context(), context, 
ERXRestFormat.json(), restResponseNode);
} catch (Exception e) {
// TODO: handle exception
System.out.println(e);
}
return results;

I should get a better handling for the exceptions though;)

Xavier


> On 16 Apr 2020, at 21:22, Jesse Tayler  wrote:
> 
> What I think you want is a DA to return JSON, perhaps like this:
> 
> 
>   public WOResponse responseForPoint(DataPoint point) {
>   ERXKeyFilter filter = DataPointController.showFilter();
>   String json = ERXRestFormat.json().toString(point, filter);
>   WOResponse aResponse = new WOResponse();
>   aResponse.appendContentString(json);
>   return aResponse;
>   }
> 
> 
> 
>> On Apr 16, 2020, at 3:03 PM, Dev WO  wrote:
>> 
>> I cannot really say it is solved based on the subject of the thread, but 
>> regarding what I was actually trying to do, it is solved.
>> I picked up just what was needed to generate the Json response in my 
>> DirectAction class so I could keep what I was using the generate the url.
>> 
>> Thanks anyway, it gave me some time to look at ERRest:)
>> 
>> Xavier
>> 
>> 
>> 
>> 
>>> On 16 Apr 2020, at 20:31, Dev WO via Webobjects-dev 
>>>  wrote:
>>> 
>>> I was just looking at making a DirectAction to get a NSDict as a json 
>>> output actually.
>>> 
>>> Searching for that it looked like ERRest was the answer, but maybe I should 
>>> just “borrow” the method that actually generate the son response and stick 
>>> with the regular DirectAction…
>>> 
>>> Xavier
>>> 
>>> 
>>>> On 16 Apr 2020, at 20:11, Jesse Tayler  wrote:
>>>> 
>>>> I might be confused
>>>> 
>>>> Not sure this is the right API for what you want since this API is for a 
>>>> specific page or object ID?
>>>> 
>>>> ra/Vote/2343.html
>>>> 
>>>> or
>>>> 
>>>> ra/User/jtayler.html
>>>> 
>>>> Is what I might expect
>>>> 
>>>> Those routes are HTML and either need default HTML or a static view page 
>>>> for that entity that accepts an object to inspect.
>>>> 
>>>> Are you looking to invoke a list page?
>>>> 
>>>> This is a list with params and basically an apache rule redirects the URL 
>>>> into the longer version and my app intercepts link URL requests and 
>>>> exchanges links on production that are shorter.
>>>> 
>>>> http://planaby.com/event/nearby.html?distance=30.0=40.7450127906344=-73.9771424224899
>>>> 
>>>> or
>>>> 
>>>> http://planaby.com/person/1.html
>>>> 
>>>> Is just a simple ERRest route url translated by apache so it looks shorter 
>>>> in production
>>>> 
>>>> Maybe that helps
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On Apr 16, 2020, at 1:45 PM, Dev WO  wrote:
>>>>> 
>>>>> Hi Jesse,
>>>>> 
>>>>> Thanks for the pointer, that does look better, but I don’t understand 2 
>>>>> things:
>>>>> The method I have is
>>>>> actionUrlForEntity(WOContext context, String entityName, Object entityID, 
>>>>> String action, String format, NSDictionary 
>>>>> queryParameters, boolean secure, boolean includeSessionID)
>>>>> I’m doing “ERXRouteUrlUtils.actionUrlForEntity(context(), "Status", null, 
>>>>> null, null, restDict, false, false)"
>>>>> 
>>>>> I’m expecting a url like 
>>>>> ''/cgi-bin/WebObjects/CloudManager.woa/ra/Status?type=heat”
>>>>> but I get 
>>>>> "/cgi-bin/WebObjects/CloudManager.woa/ra/statuses.html?type=heat”
>>>>> I don’t really get why I got “statuses.html” instead of “Status” (the 

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
I cannot really say it is solved based on the subject of the thread, but 
regarding what I was actually trying to do, it is solved.
I picked up just what was needed to generate the Json response in my 
DirectAction class so I could keep what I was using the generate the url.

Thanks anyway, it gave me some time to look at ERRest:)

Xavier


 

> On 16 Apr 2020, at 20:31, Dev WO via Webobjects-dev 
>  wrote:
> 
> I was just looking at making a DirectAction to get a NSDict as a json output 
> actually.
> 
> Searching for that it looked like ERRest was the answer, but maybe I should 
> just “borrow” the method that actually generate the son response and stick 
> with the regular DirectAction…
> 
> Xavier
> 
> 
>> On 16 Apr 2020, at 20:11, Jesse Tayler  wrote:
>> 
>> I might be confused
>> 
>> Not sure this is the right API for what you want since this API is for a 
>> specific page or object ID?
>> 
>> ra/Vote/2343.html
>> 
>> or
>> 
>> ra/User/jtayler.html
>> 
>> Is what I might expect
>> 
>> Those routes are HTML and either need default HTML or a static view page for 
>> that entity that accepts an object to inspect.
>> 
>> Are you looking to invoke a list page?
>> 
>> This is a list with params and basically an apache rule redirects the URL 
>> into the longer version and my app intercepts link URL requests and 
>> exchanges links on production that are shorter.
>> 
>> http://planaby.com/event/nearby.html?distance=30.0=40.7450127906344=-73.9771424224899
>> 
>> or
>> 
>> http://planaby.com/person/1.html
>> 
>> Is just a simple ERRest route url translated by apache so it looks shorter 
>> in production
>> 
>> Maybe that helps
>> 
>> 
>> 
>> 
>>> On Apr 16, 2020, at 1:45 PM, Dev WO  wrote:
>>> 
>>> Hi Jesse,
>>> 
>>> Thanks for the pointer, that does look better, but I don’t understand 2 
>>> things:
>>> The method I have is
>>> actionUrlForEntity(WOContext context, String entityName, Object entityID, 
>>> String action, String format, NSDictionary queryParameters, 
>>> boolean secure, boolean includeSessionID)
>>> I’m doing “ERXRouteUrlUtils.actionUrlForEntity(context(), "Status", null, 
>>> null, null, restDict, false, false)"
>>> 
>>> I’m expecting a url like 
>>> ''/cgi-bin/WebObjects/CloudManager.woa/ra/Status?type=heat”
>>> but I get "/cgi-bin/WebObjects/CloudManager.woa/ra/statuses.html?type=heat”
>>> I don’t really get why I got “statuses.html” instead of “Status” (the 
>>> capital S and the plural+.html).
>>> 
>>> Looking at the source, it seems whatever I choose as “format”, I’ll get a 
>>> “.something” appended, but the response is still ok if I do 
>>> '/cgi-bin/WebObjects/CloudManager.woa/ra/Status.json?type=heat” so that’s 
>>> not an issue.
>>> 
>>> But the capital S and the plural do break my call, any idea about this?
>>> 
>>> Thanks, hope everything is as good as it could be in NYC,
>>> 
>>> Xavier
>>> 
>>> 
>>>> On 16 Apr 2020, at 18:49, Jesse Tayler  wrote:
>>>> 
>>>> 
>>>> If you want to generate an action URL, I think you’ll want this API
>>>> 
>>>> String link = ERXRouteUrlUtils.actionUrlForEntity(context, entityName, 
>>>> entityID, action, format, queryParameters, secure, includeSessionID);
>>>> 
>>>> 
>>>> 
>>>>> On Apr 16, 2020, at 12:42 PM, Dev WO via Webobjects-dev 
>>>>>  wrote:
>>>>> 
>>>>> Hi everyone,
>>>>> 
>>>>> I’m currently trying a few things with ERRest.
>>>>> In a stateless component, I need to create some urls manually (they will 
>>>>> be used inside a script element).
>>>>> When I was calling my DirectAction class, I was just doing this:
>>>>> 
>>>>>   context().generateRelativeURLs();
>>>>> NSMutableDictionary dict = new 
>>>>> NSMutableDictionary();
>>>>> ...
>>>>> dict.put(key, value);
>>>>> ...
>>>>> String relativeUrl = context()._directActionURL(“myDirectAction", dict, 
>>>>> false);
>>>>> 
>>>>> 
>>>>> But I wasn’t able to find out the equivalent _directActionURL() method to 
>>>>> generate the Rest (with /ra) URL.
>>>>> 
>>>>>

Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
I was just looking at making a DirectAction to get a NSDict as a json output 
actually.

Searching for that it looked like ERRest was the answer, but maybe I should 
just “borrow” the method that actually generate the son response and stick with 
the regular DirectAction…

Xavier


> On 16 Apr 2020, at 20:11, Jesse Tayler  wrote:
> 
> I might be confused
> 
> Not sure this is the right API for what you want since this API is for a 
> specific page or object ID?
> 
> ra/Vote/2343.html
> 
> or
> 
> ra/User/jtayler.html
> 
> Is what I might expect
> 
> Those routes are HTML and either need default HTML or a static view page for 
> that entity that accepts an object to inspect.
> 
> Are you looking to invoke a list page?
> 
> This is a list with params and basically an apache rule redirects the URL 
> into the longer version and my app intercepts link URL requests and exchanges 
> links on production that are shorter.
> 
> http://planaby.com/event/nearby.html?distance=30.0=40.7450127906344=-73.9771424224899
> 
> or
> 
> http://planaby.com/person/1.html
> 
> Is just a simple ERRest route url translated by apache so it looks shorter in 
> production
> 
> Maybe that helps
> 
> 
> 
> 
>> On Apr 16, 2020, at 1:45 PM, Dev WO  wrote:
>> 
>> Hi Jesse,
>> 
>> Thanks for the pointer, that does look better, but I don’t understand 2 
>> things:
>> The method I have is
>> actionUrlForEntity(WOContext context, String entityName, Object entityID, 
>> String action, String format, NSDictionary queryParameters, 
>> boolean secure, boolean includeSessionID)
>> I’m doing “ERXRouteUrlUtils.actionUrlForEntity(context(), "Status", null, 
>> null, null, restDict, false, false)"
>> 
>> I’m expecting a url like 
>> ''/cgi-bin/WebObjects/CloudManager.woa/ra/Status?type=heat”
>> but I get "/cgi-bin/WebObjects/CloudManager.woa/ra/statuses.html?type=heat”
>> I don’t really get why I got “statuses.html” instead of “Status” (the 
>> capital S and the plural+.html).
>> 
>> Looking at the source, it seems whatever I choose as “format”, I’ll get a 
>> “.something” appended, but the response is still ok if I do 
>> '/cgi-bin/WebObjects/CloudManager.woa/ra/Status.json?type=heat” so that’s 
>> not an issue.
>> 
>> But the capital S and the plural do break my call, any idea about this?
>> 
>> Thanks, hope everything is as good as it could be in NYC,
>> 
>> Xavier
>> 
>> 
>>> On 16 Apr 2020, at 18:49, Jesse Tayler  wrote:
>>> 
>>> 
>>> If you want to generate an action URL, I think you’ll want this API
>>> 
>>> String link = ERXRouteUrlUtils.actionUrlForEntity(context, entityName, 
>>> entityID, action, format, queryParameters, secure, includeSessionID);
>>> 
>>> 
>>> 
>>>> On Apr 16, 2020, at 12:42 PM, Dev WO via Webobjects-dev 
>>>>  wrote:
>>>> 
>>>> Hi everyone,
>>>> 
>>>> I’m currently trying a few things with ERRest.
>>>> In a stateless component, I need to create some urls manually (they will 
>>>> be used inside a script element).
>>>> When I was calling my DirectAction class, I was just doing this:
>>>> 
>>>>context().generateRelativeURLs();
>>>> NSMutableDictionary dict = new NSMutableDictionary>>> String>();
>>>> ...
>>>> dict.put(key, value);
>>>> ...
>>>> String relativeUrl = context()._directActionURL(“myDirectAction", dict, 
>>>> false);
>>>> 
>>>> 
>>>> But I wasn’t able to find out the equivalent _directActionURL() method to 
>>>> generate the Rest (with /ra) URL.
>>>> 
>>>> How would you manually generate a relative URL for an ERRest request?
>>>> 
>>>> Thanks a lot and stay safe,
>>>> 
>>>> Xavier
>>>> 
>>>> ___
>>>> 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/archive%40mail-archive.com

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


Re: [ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
Hi Jesse,

Thanks for the pointer, that does look better, but I don’t understand 2 things:
The method I have is
actionUrlForEntity(WOContext context, String entityName, Object entityID, 
String action, String format, NSDictionary queryParameters, 
boolean secure, boolean includeSessionID)
I’m doing “ERXRouteUrlUtils.actionUrlForEntity(context(), "Status", null, null, 
null, restDict, false, false)"

I’m expecting a url like 
''/cgi-bin/WebObjects/CloudManager.woa/ra/Status?type=heat”
but I get "/cgi-bin/WebObjects/CloudManager.woa/ra/statuses.html?type=heat”
I don’t really get why I got “statuses.html” instead of “Status” (the capital S 
and the plural+.html).

Looking at the source, it seems whatever I choose as “format”, I’ll get a 
“.something” appended, but the response is still ok if I do 
'/cgi-bin/WebObjects/CloudManager.woa/ra/Status.json?type=heat” so that’s not 
an issue.

But the capital S and the plural do break my call, any idea about this?

Thanks, hope everything is as good as it could be in NYC,

Xavier


> On 16 Apr 2020, at 18:49, Jesse Tayler  wrote:
> 
> 
> If you want to generate an action URL, I think you’ll want this API
> 
> String link = ERXRouteUrlUtils.actionUrlForEntity(context, entityName, 
> entityID, action, format, queryParameters, secure, includeSessionID);
> 
> 
> 
>> On Apr 16, 2020, at 12:42 PM, Dev WO via Webobjects-dev 
>>  wrote:
>> 
>> Hi everyone,
>> 
>> I’m currently trying a few things with ERRest.
>> In a stateless component, I need to create some urls manually (they will be 
>> used inside a script element).
>> When I was calling my DirectAction class, I was just doing this:
>> 
>> context().generateRelativeURLs();
>> NSMutableDictionary dict = new NSMutableDictionary> String>();
>> ...
>> dict.put(key, value);
>> ...
>> String relativeUrl = context()._directActionURL(“myDirectAction", dict, 
>> false);
>> 
>> 
>> But I wasn’t able to find out the equivalent _directActionURL() method to 
>> generate the Rest (with /ra) URL.
>> 
>> How would you manually generate a relative URL for an ERRest request?
>> 
>> Thanks a lot and stay safe,
>> 
>> Xavier
>> 
>> ___
>> 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/archive%40mail-archive.com

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


[ERRest] - Manually generating rest URL

2020-04-16 Thread Dev WO via Webobjects-dev
Hi everyone,

I’m currently trying a few things with ERRest.
In a stateless component, I need to create some urls manually (they will be 
used inside a script element).
When I was calling my DirectAction class, I was just doing this:

context().generateRelativeURLs();
NSMutableDictionary dict = new 
NSMutableDictionary();
...
dict.put(key, value);
...
String relativeUrl = context()._directActionURL(“myDirectAction", dict, 
false);


But I wasn’t able to find out the equivalent _directActionURL() method to 
generate the Rest (with /ra) URL.

How would you manually generate a relative URL for an ERRest request?

Thanks a lot and stay safe,

Xavier

 ___
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: [Tomcat] -Classpath ordering issue (Dev WO)

2020-02-28 Thread Dev WO via Webobjects-dev
Hello Faizel,

Thanks a lot for this.
I was able to get back to this and made some tests. First, it’s clearly better 
when the context.xml file is in META-INF:)
I voluntarily made a typo in it and I was able to see that the file was 
actually checked by Tomcat.
I also tried to put things the other way around to actually create the issue on 
my test machine (Mac mini), but I wasn’t able to “break” it…
I thought that putting ERExtensions.jar in the PostResources would lead to the 
error I was getting on the other tests servers, but everything worked fine on 
the Mac mini. I wasn’t able to make it exhibit the failure from the other 
servers (NoSuchMethodError). I don’t understand that, and it feels like I can’t 
be sure it would work as expected on future deployment.

Any idea why I couldn’t create the error using the Pre/Post Resources (I’ve put 
all resources in their opposite directive)?
Any idea on how to make sure I can create (and so fix for sure) the error?

For now, I don’t have access to the other servers that were having the issue, 
but I used Matt’s tip (pre-expand ERExtensions.jar into /classes/…) and it was 
working. It’s just that I don't feel confortable keeping this solution as 
nothing tells me that classes folder loading won’t change in a Tomcat update…

Thanks a lot,

Xavier


> On 1 Feb 2020, at 01:48, Faizel Dakri  wrote:
> 
> Xavier, 
> 
> I make use of the PreResources and PostResources directives in my context.xml 
> file. FYI, I noticed you put the context.xml file in WEB-INF. I have mine in 
> the META-INF folder.
> 
> 
> Mine looks like this:
> 
> 
> 
> 
> 
>   
> 
>   
> 
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/ERAttributeExtension.jar"
>   webAppMount="/WEB-INF/lib/ERAttributeExtension.jar" />
> 
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/ERExtensions.jar"
>   webAppMount="/WEB-INF/lib/ERExtensions.jar" />
> 
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/${project.artifactId}.jar"
>   webAppMount="/WEB-INF/lib/${project.artifactId}.jar" />
> 
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/JavaEOAccess.jar"
>   webAppMount="/WEB-INF/lib/JavaEOAccess.jar" />
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/JavaEOControl.jar"
>   webAppMount="/WEB-INF/lib/JavaEOControl.jar" />
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/JavaFoundation.jar"
>   webAppMount="/WEB-INF/lib/JavaFoundation.jar" />
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/JavaJDBCAdaptor.jar"
>   webAppMount="/WEB-INF/lib/JavaJDBCAdaptor.jar" />
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/JavaWOExtensions.jar"
>   webAppMount="/WEB-INF/lib/JavaWOExtensions.jar" />
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/JavaWOJSPServlet.jar"
>   webAppMount="/WEB-INF/lib/JavaWOJSPServlet.jar" />
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${project.artifactId}/WEB-INF/lib/JavaWebObjects.jar"
>   webAppMount="/WEB-INF/lib/JavaWebObjects.jar" />
>className="org.apache.catalina.webresources.FileResourceSet"
>   
> base="${catalina.base}/webapps/${projec

Re: [Tomcat] -Classpath ordering issue (Dev WO)

2020-01-31 Thread Dev WO via Webobjects-dev
First, thanks a lot Matthew, that did the trick.

May I ask how you automate that for subsequent build?

I’m still trying to make the PreResources work without success so far. But I 
feel like it would be the most reliable way for futur version of Tomcat…

Thanks

Xavier


> On 30 Jan 2020, at 11:13, Dev WO via Webobjects-dev 
>  wrote:
> 
> Hi Matthew,
> 
> I will try that.
> 
> Also I’m currently looking into using the PreResources feature like this:
> 
> -creating a directory mywebapp/WEB-INF/prelib with all the system jars (the 
> Apple ones)
> -mywebapp/WEB-INF/context.xml contains
> 
> 
>   
>className="org.apache.catalina.webresources.DirResourceSet" 
> base=“/WEB-INF/prelib" webAppMount="/WEB-INF/lib" />
>   
> 
> 
> but it doesn’t work for now. I also tried with an absolute path, but same 
> failure ( java.lang.ClassNotFoundException for WOApplication)
> 
> Have you ever tried that way? any pointers?
> 
> Thanks,
> 
> Xavier
>  
> 
>> On 30 Jan 2020, at 10:57, > <mailto:matthew.long...@proact.net>> > <mailto:matthew.long...@proact.net>> wrote:
>> 
>> Hi Xavier
>> 
>> We had exactly the same issue on one of our sites. In the end the resolution
>> was not to change the tomcat class loaders but to actually pre expand the
>> required jars into a classes directory within the war, in our case it was
>> only the ERExtensions.jar needed
>> 
>> e.g. 
>> X.war/WEB-INF/classes/com/webobjects/...
>> X.war/WEB-INF/classes/er/extensions/...
>> 
>> Anything in here will be loaded prior to the jars within WEB-INF/lib
>> 
>> Regards
>> Matt
>> 
>> -Original Message-
>> From: Webobjects-dev
>> > <mailto:webobjects-dev-bounces+matthew.longden=proact@lists.apple.com>> 
>> On
>> Behalf Of webobjects-dev-requ...@lists.apple.com 
>> <mailto:webobjects-dev-requ...@lists.apple.com>
>> Sent: 29 January 2020 17:57
>> To: webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>
>> Subject: Webobjects-dev Digest, Vol 17, Issue 32
>> Importance: Low
>> 
>> Send Webobjects-dev mailing list submissions to
>>  webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://lists.apple.com/mailman/listinfo/webobjects-dev
>> or, via email, send a message with subject or body 'help' to
>>  webobjects-dev-requ...@lists.apple.com
>> 
>> You can reach the person managing the list at
>>  webobjects-dev-ow...@lists.apple.com
>> 
>> When replying, please edit your Subject line so it is more specific than
>> "Re: Contents of Webobjects-dev digest..."
>> 
>> 
>> Today's Topics:
>> 
>>   1. [Tomcat] -Classpath ordering issue (Dev WO)
>>   2. Re: [Tomcat] -Classpath ordering issue (Konrad Kubacki)
>>   3. Fwd: [Tomcat] -Classpath ordering issue (Dev WO)
>>   4. Re: [Tomcat] -Classpath ordering issue (Dev WO)
>> 
>> 
>> --
>> 
>> Message: 1
>> Date: Wed, 29 Jan 2020 08:32:25 +0100
>> From: Dev WO 
>> To: "webobjects-dev@lists.apple.com" 
>> Subject: [Tomcat] -Classpath ordering issue
>> Message-ID: <06d8ad23-3cd7-43d1-a9c9-4f7e34337...@anazys.com>
>> Content-Type: text/plain;charset=utf-8
>> 
>> Hi WOers,
>> 
>> I?m starting to lost my mind with a Tomcat deployment (not my choice)
>> 
>> I have 4 machines:
>> 1-Dev machine running through Eclipse and Apache (OS X) => Everything works
>> 2-Test Tomcat deployment machine (OS X / Tomcat 9.0.29) => Everything works
>> 3-Another test Tomcat deployment (Debian / Tomcat 9.0.20) => Everything
>> works 4-Customer ?beta test" machine (Debian / Tomcat 9.0.20) => Some part
>> of the app doesn?t work
>> 
>> Of course machine #4 is the one I have the least access?
>> 
>> By "Some part of the app doesn?t work? I mean that I have some asynchronous
>> thread that do their job, I have some HTML interfaces that works, but other
>> don?t...
>> After way too much trial, I was able to get basically the same errors on my
>> dev machine by changing the class path (moving down ERExtensions frameworks
>> in the classpath). Finally getting errors like:
>> 
>> NoSuchMethodError:
>> com.webobjects.foundation.NSArray.(Ljava/lang/Object;[Ljava/lang/Objec
>> t;)V
>> and
>> NoSu

Re: [Tomcat] -Classpath ordering issue (Dev WO)

2020-01-30 Thread Dev WO via Webobjects-dev
Hi Matthew,

I will try that.

Also I’m currently looking into using the PreResources feature like this:

-creating a directory mywebapp/WEB-INF/prelib with all the system jars (the 
Apple ones)
-mywebapp/WEB-INF/context.xml contains







but it doesn’t work for now. I also tried with an absolute path, but same 
failure ( java.lang.ClassNotFoundException for WOApplication)

Have you ever tried that way? any pointers?

Thanks,

Xavier
 

> On 30 Jan 2020, at 10:57,  
>  wrote:
> 
> Hi Xavier
> 
> We had exactly the same issue on one of our sites. In the end the resolution
> was not to change the tomcat class loaders but to actually pre expand the
> required jars into a classes directory within the war, in our case it was
> only the ERExtensions.jar needed
> 
> e.g. 
> X.war/WEB-INF/classes/com/webobjects/...
> X.war/WEB-INF/classes/er/extensions/...
> 
> Anything in here will be loaded prior to the jars within WEB-INF/lib
> 
> Regards
> Matt
> 
> -Original Message-
> From: Webobjects-dev
>  On
> Behalf Of webobjects-dev-requ...@lists.apple.com
> Sent: 29 January 2020 17:57
> To: webobjects-dev@lists.apple.com
> Subject: Webobjects-dev Digest, Vol 17, Issue 32
> Importance: Low
> 
> Send Webobjects-dev mailing list submissions to
>   webobjects-dev@lists.apple.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://lists.apple.com/mailman/listinfo/webobjects-dev
> or, via email, send a message with subject or body 'help' to
>   webobjects-dev-requ...@lists.apple.com
> 
> You can reach the person managing the list at
>   webobjects-dev-ow...@lists.apple.com
> 
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of Webobjects-dev digest..."
> 
> 
> Today's Topics:
> 
>   1. [Tomcat] -Classpath ordering issue (Dev WO)
>   2. Re: [Tomcat] -Classpath ordering issue (Konrad Kubacki)
>   3. Fwd: [Tomcat] -Classpath ordering issue (Dev WO)
>   4. Re: [Tomcat] -Classpath ordering issue (Dev WO)
> 
> 
> --
> 
> Message: 1
> Date: Wed, 29 Jan 2020 08:32:25 +0100
> From: Dev WO 
> To: "webobjects-dev@lists.apple.com" 
> Subject: [Tomcat] -Classpath ordering issue
> Message-ID: <06d8ad23-3cd7-43d1-a9c9-4f7e34337...@anazys.com>
> Content-Type: text/plain; charset=utf-8
> 
> Hi WOers,
> 
> I?m starting to lost my mind with a Tomcat deployment (not my choice)
> 
> I have 4 machines:
> 1-Dev machine running through Eclipse and Apache (OS X) => Everything works
> 2-Test Tomcat deployment machine (OS X / Tomcat 9.0.29) => Everything works
> 3-Another test Tomcat deployment (Debian / Tomcat 9.0.20) => Everything
> works 4-Customer ?beta test" machine (Debian / Tomcat 9.0.20) => Some part
> of the app doesn?t work
> 
> Of course machine #4 is the one I have the least access?
> 
> By "Some part of the app doesn?t work? I mean that I have some asynchronous
> thread that do their job, I have some HTML interfaces that works, but other
> don?t...
> After way too much trial, I was able to get basically the same errors on my
> dev machine by changing the class path (moving down ERExtensions frameworks
> in the classpath). Finally getting errors like:
> 
> NoSuchMethodError:
> com.webobjects.foundation.NSArray.(Ljava/lang/Object;[Ljava/lang/Objec
> t;)V
> and
> NoSuchMethodError:
> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String
> ;Ljava/lang/String;Ljava/lang/String;IZZ)V
> 
> After reading every thread about Tomcat from the mailing list from 2004 up
> to today, I still don?t get the issue.
> I?m using the exact same .war file on all machines, with the web.xml
> relevant part (when framework order is correct) at the end of the message.
> 
> I have no clue and no idea regarding how to find the issue on this machine
> #4.
> 
> I?m using Wonder7 and WO5.4, the Application class extends ERXApplication
> (having JavaWOJSPServlet in the build path or not doesn?t change the fact it
> works on machine 1,2 and 3 but not 4)
> 
> Thanks for your help,
> 
> Xavier
> 
> 
> 
> 
>   WOClasspath
>   
>   WEBINFROOT/Resources/Java/
> WEBINFROOT/CloudManager.woa/Contents/Resources/Java/cloudmanager.jar
> WEBINFROOT/Resources/Java/gson-2.5.jar
> WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERCoolComponents.framework/R
> esources/Java/ERCoolComponents.jar
> WEBINFROOT/CloudManager.woa/Contents/Frameworks/AjaxLook.framework/Resources
> /Java/AjaxLook.jar
> WEBINFROOT/CloudManager.woa/Contents/Frameworks/Ajax.framework/Resources/Jav
> 

Re: [Tomcat] -Classpath ordering issue

2020-01-29 Thread Dev WO via Webobjects-dev
So far not good,

I’m trying to use the VirtualWebappLoader as below, but I’m not even sure my 
syntax is ok (and can’t find anything in the log relevant to this).
I “know” it doesn’t work as even with JavaWebObjects lib as the first one, the 
app still work on machine #2 (I would have expected a NoSuchMethodError 
exception)

I’ve also found jarjar (https://code.google.com/archive/p/jarjar/ 
<https://code.google.com/archive/p/jarjar/>) maybe creating a single jar with 
all of them inside might work, but I’m not sure how to use and to set an order 
for the jar…

Any pointer or sample code related to this lib ordering problem?

Thanks,

Xavier

> On 29 Jan 2020, at 09:50, Dev WO  wrote:
> 
> Hi Konrad,
> 
> Thanks for the description of the issue.
> I’m looking into it right now.
> 
> It looks like there’s a VirtualWebappLoader already included in Tomcat, so do 
> I need to build my own or can I just declare it in the context.xml file in 
> my_app/WEB-INF/?
> I’m surprised building the app doesn’t generate that context.xml file at the 
> same time, it would make sense.
> 
> I’m pretty confuse with the context.xml file, should it be something like 
> 
> 
>
>ERCoolComponents
>AjaxLook
>...
> 
> 
> Just to be precise, there’s only one app deployed on this Tomcat instance.
> 
> Thanks and have a nice day,
> 
> Xavier
> 
>> On 29 Jan 2020, at 08:44, Konrad Kubacki via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Problem You are facing is probably caused by order of jars loading. 
>> Tomcat >= 8 does it in random way (up to version 7.5.x it was alphabetical).
>> It is important, that classloader loads wonder "redefined" classes for some 
>> of WO, instead of original.
>> 
>> Solution:
>> You may want to write your own tomcat class loader, basing on WO classpath 
>> file, or just loading jars in alphabetical order.
>> Then You can activate it on tomcat's level in 
>> ${CATALINA_BASE}/conf/context.xml or for your app only in 
>> webapp/META-INF/context.xml. For details see tomcat's documentation.
>> 
>> If it's not the case, You may also check if on this beta-test tomcat(#4) 
>> there is not other WO app deployed, which loads original WO classess, before 
>> Your's app start. And/or check if they fully restart it between deployments 
>> o new version.
>> 
>> 
>> 
>> W dniu 28.01.2020 o 19:35, Dev WO via Webobjects-dev pisze:
>>> Hi WOers,
>>> 
>>> I’m starting to lost my mind with a Tomcat deployment (not my choice)
>>> 
>>> I have 4 machines:
>>> 1-Dev machine running through Eclipse and Apache (OS X) => Everything works
>>> 2-Test Tomcat deployment machine (OS X / Tomcat 9.0.29) => Everything works
>>> 3-Another test Tomcat deployment (Debian / Tomcat 9.0.20) => Everything 
>>> works
>>> 4-Customer “beta test" machine (Debian / Tomcat 9.0.20) => Some part of the 
>>> app doesn’t work
>>> 
>>> Of course machine #4 is the one I have the least access…
>>> 
>>> By "Some part of the app doesn’t work” I mean that I have some asynchronous 
>>> thread that do their job, I have some HTML interfaces that works, but other 
>>> don’t...
>>> After way too much trial, I was able to get basically the same errors on my 
>>> dev machine by changing the class path (moving down ERExtensions frameworks 
>>> in the classpath). Finally getting errors like:
>>> 
>>> NoSuchMethodError: 
>>> com.webobjects.foundation.NSArray.(Ljava/lang/Object;[Ljava/lang/Object;)V
>>> and
>>> NoSuchMethodError: 
>>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>> 
>>> After reading every thread about Tomcat from the mailing list from 2004 up 
>>> to today, I still don’t get the issue.
>>> I’m using the exact same .war file on all machines, with the web.xml 
>>> relevant part (when framework order is correct) at the end of the message.
>>> 
>>> I have no clue and no idea regarding how to find the issue on this machine 
>>> #4.
>>> 
>>> I’m using Wonder7 and WO5.4, the Application class extends ERXApplication 
>>> (having JavaWOJSPServlet in the build path or not doesn’t change the fact 
>>> it works on machine 1,2 and 3 but not 4)
>>> 
>>> Thanks for your help,
>>> 
>>> Xavier
>>> 
>>> 
>>> 
>>>   
>>> WOClasspath
>>> 
>>>  

Fwd: [Tomcat] -Classpath ordering issue

2020-01-29 Thread Dev WO via Webobjects-dev
Forgot to send to the list

> Begin forwarded message:
> 
> From: Dev WO 
> Subject: Re: [Tomcat] -Classpath ordering issue
> Date: 29 January 2020 at 09:50:13 CET
> To: Konrad Kubacki 
> 
> Hi Konrad,
> 
> Thanks for the description of the issue.
> I’m looking into it right now.
> 
> It looks like there’s a VirtualWebappLoader already included in Tomcat, so do 
> I need to build my own or can I just declare it in the context.xml file in 
> my_app/WEB-INF/?
> I’m surprised building the app doesn’t generate that context.xml file at the 
> same time, it would make sense.
> 
> I’m pretty confuse with the context.xml file, should it be something like 
> 
> 
>
>ERCoolComponents
>AjaxLook
>...
> 
> 
> Just to be precise, there’s only one app deployed on this Tomcat instance.
> 
> Thanks and have a nice day,
> 
> Xavier
> 
>> On 29 Jan 2020, at 08:44, Konrad Kubacki via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Problem You are facing is probably caused by order of jars loading. 
>> Tomcat >= 8 does it in random way (up to version 7.5.x it was alphabetical).
>> It is important, that classloader loads wonder "redefined" classes for some 
>> of WO, instead of original.
>> 
>> Solution:
>> You may want to write your own tomcat class loader, basing on WO classpath 
>> file, or just loading jars in alphabetical order.
>> Then You can activate it on tomcat's level in 
>> ${CATALINA_BASE}/conf/context.xml or for your app only in 
>> webapp/META-INF/context.xml. For details see tomcat's documentation.
>> 
>> If it's not the case, You may also check if on this beta-test tomcat(#4) 
>> there is not other WO app deployed, which loads original WO classess, before 
>> Your's app start. And/or check if they fully restart it between deployments 
>> o new version.
>> 
>> 
>> 
>> W dniu 28.01.2020 o 19:35, Dev WO via Webobjects-dev pisze:
>>> Hi WOers,
>>> 
>>> I’m starting to lost my mind with a Tomcat deployment (not my choice)
>>> 
>>> I have 4 machines:
>>> 1-Dev machine running through Eclipse and Apache (OS X) => Everything works
>>> 2-Test Tomcat deployment machine (OS X / Tomcat 9.0.29) => Everything works
>>> 3-Another test Tomcat deployment (Debian / Tomcat 9.0.20) => Everything 
>>> works
>>> 4-Customer “beta test" machine (Debian / Tomcat 9.0.20) => Some part of the 
>>> app doesn’t work
>>> 
>>> Of course machine #4 is the one I have the least access…
>>> 
>>> By "Some part of the app doesn’t work” I mean that I have some asynchronous 
>>> thread that do their job, I have some HTML interfaces that works, but other 
>>> don’t...
>>> After way too much trial, I was able to get basically the same errors on my 
>>> dev machine by changing the class path (moving down ERExtensions frameworks 
>>> in the classpath). Finally getting errors like:
>>> 
>>> NoSuchMethodError: 
>>> com.webobjects.foundation.NSArray.(Ljava/lang/Object;[Ljava/lang/Object;)V
>>> and
>>> NoSuchMethodError: 
>>> com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V
>>> 
>>> After reading every thread about Tomcat from the mailing list from 2004 up 
>>> to today, I still don’t get the issue.
>>> I’m using the exact same .war file on all machines, with the web.xml 
>>> relevant part (when framework order is correct) at the end of the message.
>>> 
>>> I have no clue and no idea regarding how to find the issue on this machine 
>>> #4.
>>> 
>>> I’m using Wonder7 and WO5.4, the Application class extends ERXApplication 
>>> (having JavaWOJSPServlet in the build path or not doesn’t change the fact 
>>> it works on machine 1,2 and 3 but not 4)
>>> 
>>> Thanks for your help,
>>> 
>>> Xavier
>>> 
>>> 
>>> 
>>>   
>>> WOClasspath
>>> 
>>> WEBINFROOT/Resources/Java/
>>> WEBINFROOT/CloudManager.woa/Contents/Resources/Java/cloudmanager.jar
>>> WEBINFROOT/Resources/Java/gson-2.5.jar
>>> WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERCoolComponents.framework/Resources/Java/ERCoolComponents.jar
>>> WEBINFROOT/CloudManager.woa/Contents/Frameworks/AjaxLook.framework/Resources/Java/AjaxLook.jar
>>> WEBINFROOT/CloudManager.woa/Contents/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
&

[Tomcat] -Classpath ordering issue

2020-01-28 Thread Dev WO via Webobjects-dev
Hi WOers,

I’m starting to lost my mind with a Tomcat deployment (not my choice)

I have 4 machines:
1-Dev machine running through Eclipse and Apache (OS X) => Everything works
2-Test Tomcat deployment machine (OS X / Tomcat 9.0.29) => Everything works
3-Another test Tomcat deployment (Debian / Tomcat 9.0.20) => Everything works
4-Customer “beta test" machine (Debian / Tomcat 9.0.20) => Some part of the app 
doesn’t work

Of course machine #4 is the one I have the least access…

By "Some part of the app doesn’t work” I mean that I have some asynchronous 
thread that do their job, I have some HTML interfaces that works, but other 
don’t...
After way too much trial, I was able to get basically the same errors on my dev 
machine by changing the class path (moving down ERExtensions frameworks in the 
classpath). Finally getting errors like:

NoSuchMethodError: 
com.webobjects.foundation.NSArray.(Ljava/lang/Object;[Ljava/lang/Object;)V
and
NoSuchMethodError: 
com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V

After reading every thread about Tomcat from the mailing list from 2004 up to 
today, I still don’t get the issue.
I’m using the exact same .war file on all machines, with the web.xml relevant 
part (when framework order is correct) at the end of the message.

I have no clue and no idea regarding how to find the issue on this machine #4.

I’m using Wonder7 and WO5.4, the Application class extends ERXApplication 
(having JavaWOJSPServlet in the build path or not doesn’t change the fact it 
works on machine 1,2 and 3 but not 4)

Thanks for your help,

Xavier



 
   WOClasspath
   
   WEBINFROOT/Resources/Java/
WEBINFROOT/CloudManager.woa/Contents/Resources/Java/cloudmanager.jar
WEBINFROOT/Resources/Java/gson-2.5.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERCoolComponents.framework/Resources/Java/ERCoolComponents.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/AjaxLook.framework/Resources/Java/AjaxLook.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/Ajax.framework/Resources/Java/jabsorb-1.2.2.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/CloudManagerDataModel.framework/Resources/Java/cloudmanagerdatamodel.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/CloudManagerDataModel.framework/Resources/Java/postgresql-8.3-603.jdbc3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-cli-1.3.1.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-codec-1.10.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-io-2.5.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.6.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang3-3.5.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-logging-1.2.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/fluent-hc-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpclient-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpclient-cache-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpcore-4.4.6.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpmime-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/javassist-3.20.0-GA.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/joda-time-2.9.7.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/junit-4.12.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.17.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ognl-3.2.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.7.23.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.7.23.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/JavaMemoryAdaptor.framework/Resources/Java/JavaMemoryAdaptor.jar

[Tomcat] -Classpath ordering issue

2020-01-28 Thread Dev WO via Webobjects-dev
Hi WOers,

I’m starting to lost my mind with a Tomcat deployment (not my choice)

I have 4 machines:
1-Dev machine running through Eclipse and Apache (OS X) => Everything works
2-Test Tomcat deployment machine (OS X / Tomcat 9.0.29) => Everything works
3-Another test Tomcat deployment (Debian / Tomcat 9.0.20) => Everything works
4-Customer “beta test" machine (Debian / Tomcat 9.0.20) => Some part of the app 
doesn’t work

Of course machine #4 is the one I have the least access…

By "Some part of the app doesn’t work” I mean that I have some asynchronous 
thread that do their job, I have some HTML interfaces that works, but other 
don’t...
After way too much trial, I was able to get basically the same errors on my dev 
machine by changing the class path (moving down ERExtensions frameworks in the 
classpath). Finally getting errors like:

NoSuchMethodError: 
com.webobjects.foundation.NSArray.(Ljava/lang/Object;[Ljava/lang/Object;)V
and
NoSuchMethodError: 
com.webobjects.appserver.WOCookie.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZ)V

After reading every thread about Tomcat from the mailing list from 2004 up to 
today, I still don’t get the issue.
I’m using the exact same .war file on all machines, with the web.xml relevant 
part (when framework order is correct) at the end of the message.

I have no clue and no idea regarding how to find the issue on this machine #4.

I’m using Wonder7 and WO5.4, the Application class extends ERXApplication 
(having JavaWOJSPServlet in the build path or not doesn’t change the fact it 
works on machine 1,2 and 3 but not 4)

Thanks for your help,

Xavier



  
WOClasspath

WEBINFROOT/Resources/Java/
WEBINFROOT/CloudManager.woa/Contents/Resources/Java/cloudmanager.jar
WEBINFROOT/Resources/Java/gson-2.5.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERCoolComponents.framework/Resources/Java/ERCoolComponents.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/AjaxLook.framework/Resources/Java/AjaxLook.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/Ajax.framework/Resources/Java/jabsorb-1.2.2.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/CloudManagerDataModel.framework/Resources/Java/cloudmanagerdatamodel.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/CloudManagerDataModel.framework/Resources/Java/postgresql-8.3-603.jdbc3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-cli-1.3.1.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-codec-1.10.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-io-2.5.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.6.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang3-3.5.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-logging-1.2.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/fluent-hc-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpclient-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpclient-cache-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpcore-4.4.6.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpmime-4.5.3.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/javassist-3.20.0-GA.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/joda-time-2.9.7.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/junit-4.12.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.17.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ognl-3.2.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.7.23.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.7.23.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar
WEBINFROOT/CloudManager.woa/Contents/Frameworks/JavaMemoryAdaptor.framework/Resources/Java/JavaMemoryAdaptor.jar

Re: Wonder 7 is out!

2017-11-05 Thread Dev WO
Thanks,

Still the best community

Xavier

> On 4 Nov 2017, at 22:39, Johann Werner  wrote:
> 
> Hi everyone,
> 
> for a long time the next big Wonder iteration has been worked on and probably 
> used or tested by many of us already. Today the waiting is over and Wonder 
> 7.0 has got its official status.
> 
> That release focuses on removal of deprecated elements, clean up of lot of 
> things. But most important change is the move to Java 8. So be sure you meet 
> this requirement during upgrade!
> 
> Head to https://github.com/wocommunity/wonder/releases/tag/wonder-7.0 to get 
> the changelog to see a rough overview of all changes that await you. If you 
> are thinking of migrating from Wonder 6 to 7 be sure to look into github wiki 
> at https://github.com/wocommunity/wonder/wiki/Migration-Guide-Wonder-6-to-7 
> what you might adapt, exchange, or replace in your code and templates.
> 
> Thanks to all committers giving back what we all get out of Wonder: ideas, 
> time savers, and solutions. Special thanks to Paul, Henrique, and Maik for 
> their time and help getting this release out to all of us.
> 
> jw
> ___
> 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/webobjects%40anazys.com
> 
> This email sent to webobje...@anazys.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: Problems Starting Apps

2016-04-21 Thread Dev WO
I think Chuck would say to check the WOHost parameter:)

Xavier

> On 21 Apr 2016, at 23:22, Gino Pacitti  wrote:
> 
> I have just set up a new deployment on a CentOS 6.7 box and downloaded java 6 
> as it has to support some older apps. I also set it up for 5.3 javamonitor 
> and wotaskd.
> 
> Now these run and I can see the JavaMonitor page and I can add apps but the 
> apps do not start?
> 
> The script that starts wotaskd and javamonitor are both started by appserver 
> user and the executable in the bundle is also owned by appserver. 
> 
> But it just does not start the apps. The on/off button just keeps moving from 
> off -on - off.
> 
> 
> I can start the app with command line and it does not report any errors. 
> Starting manually still does not allow me to point a browser at it though but 
> I guess that’s the port assignment.
> 
> Any ideas?
> 
> Gino
> ___
> 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/webobjects%40anazys.com
> 
> This email sent to webobje...@anazys.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: Extending the “No Instance Available” timeout

2016-04-05 Thread Dev WO
Hi Ben,

Your ping time isn’t the issue for sure, as far as I remember the time out is 
something like a minute…
I think the issue is more on the “application” side.
Try to see if you have anyway to get some log. Eventually output the SQL for 
your app to see if you forget to do some batch when accessing the database (if 
you see a row by row select, that is probably the primary issue to fix)
If it’s a Wonder app: 
log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=INFO either on your 
Property file or as a launch argument.

Xavier


> On 05 Apr 2016, at 11:02, Benjamin Chew  wrote:
> 
> Hi Everyone,
> 
> I’m wondering if any of you kind souls can help me. :)
> 
> I’m in Singapore working off a VPN connection to the States, and while 
> waiting for some database-intensive components to display, I keep getting “No 
> Instance Available” because it’s taking so long to complete all the queries 
> (ping times ~ 200ms). 
> 
> I’ve tried going to WOMonitor on my local machine (localhost:56789) and 
> modified the Send, Receive and Connect timeouts, but that didn’t seem to 
> help. I’ve also tried changing WOMaxSocketIdleTime and WOLifebeatInterval in 
> my Eclipse debugging profile, but that didn’t help either.
> 
> Does anyone have any ideas?
> 
> Thanks,
> Ben
> ___
> 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/webobjects%40anazys.com
> 
> This email sent to webobje...@anazys.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: [Google Chart] - Displaying chart in an Axaj Modal Dialog

2015-05-11 Thread Dev WO
You are right, it’s clearly more a regular ajax issue than a WO one, so I was 
already looking towards ajax related comment through a modal dialog.
Currently, the modal dialog get the correct string representation of the 
javascript function, and also gets updated correctly (like adjusting the date 
range to display the data).

I’m still investigating on the actual drawing of the chart. I’ve put the script 
function inside an ajaxupdatecontainer and try to use the onComplete which I 
though would be called when the content of the ajaxupdatecontainer is loaded, 
but that doesn’t seem to work as I get a javascript error “can’t find variable 
drawChart (the name of the js function). So I assume somehow it’s not fully 
loaded when the update container think onComplete should be called.

Anyway, this really seems to be a timing issue, I’m investigating this.

Thanks for your help,

I’ll try to update that thread if I can find a “nice” way to make it work.

Xavier


 On 11 mai 2015, at 14:59, Samuel Pelletier sam...@samkar.com wrote:
 
 Xavier,
 
 There is maybe some other dependency or expectation about the execution 
 context in the graph library that break it outside the normal page rendering 
 process.
 
 You will need to trace or search on how to use this API inside a modal dialog 
 with AJAX contents. There is no real difference between using WO or any other 
 web server technology for these problems.
 
 Samuel
 
 Le 2015-05-10 à 10:09, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi Samuel,
 
 I though I did that, but it looks like maybe not:)
 I may have been misled as I was actually displaying the graph inline on the 
 main content (to see if I actually got stuff to display), and also through 
 the modal dialog. When I removed the call in the main content, it wouldn’t 
 display in the modal anymore…
 So currently I’m generating the javascript inline within the main content, 
 and basically just call to draw it in the modal dialog. But I don’t like 
 that because I’m spending time generating the javascript chart directly 
 inside the main content when it may not get called at all.
 
 But I think the call to draw isn’t fully working (or maybe not at the right 
 time). Also I’m fighting with data format, it’s really more painful than I 
 though to use it.
 
 I’ll succeed eventually, but I’m not that confident it will be a “right way” 
 to do it;)
 
 Thanks for your tips,
 
 
 Xavier
 
 On 7 mai 2015, at 17:40, Samuel Pelletier sam...@samkar.com 
 mailto:sam...@samkar.com wrote:
 
 Xavier,
 
 Your function drawChart is never called. I suppose 
 google.setOnLoadCallback(drawChart); add some sort of onLoad handler but 
 an Ajax request will never trigger it.
 
 A simple way that should work is to put a script after all the required 
 HTML elements for the graph with this content:
 
 script
 drawChart();
 /script
 
 There is probably another way with AMD call back but this is tricky since 
 the function drawChart does not exists when the AMD is created.
 
 Samuel
 
 Le 2015-05-04 à 11:48, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi Samuel,
 
 I didn’t mention the console as there was nothing there.
 
 Let’s try to give more context:)
 
 I’ve got a component which is supposed to be the content of the modal 
 dialog, let’s call it “Chart”
 This component is
 wo:str value = $googleChartGenerationString escapeHTML = $false/
 div id = chart_points style = width: 1000px; height: 600px;TEST/div
 
 The $googleChartGenerationString generate something like this for example:
 script
 google.setOnLoadCallback(drawChart);
 function drawChart() {
 var data = new google.visualization.DataTable();
 data.addColumn('datetime', 'Date');
 data.addColumn('number', 'Points');
 data.addRows([
 [new Date(2015, 4, 3, 23, 44, 48), 1247],
 [new Date(2015, 4, 3, 23, 47, 43), 1247],
 [new Date(2015, 4, 4, 0, 24, 43), 1247],
 [new Date(2015, 4, 4, 4, 34, 55), 1247]]);
 var options = {
 curveType: 'none',
 legend: 'none',
 width: 900,
 height: 500
 };
 var chart = new 
 google.charts.Line(document.getElementById('chart_points'));
 chart.draw(data, options);
 }
 /script
 
 If I’m placing this component inline in its parent component (which is 
 called via a regular component action, meaning the parent isn’t called 
 from an ajax request), everything is fine, the chart is displayed.
 
 If I’m placing the component in the “content” part of an AMD, I can see 
 that it still gets the expected content (using the browser console), but 
 nothing is displayed, even the “TEST” string isn’t removed which is also 
 why I think the javascript isn’t executed at all.
 
 So I’m kind of puzzled as to what could prevent my “manual javascript 
 from being executed when requested inside an AMD.
 
 I don’t really have much more context than this:(
 
 Xavier
 
 
 
 
 On 4 mai 2015, at 16:22, Samuel Pelletier sam...@samkar.com 
 mailto:sam...@samkar.com wrote:
 
 Xavier,
 
 Have look

Re: [Google Chart] - Displaying chart in an Axaj Modal Dialog

2015-05-10 Thread Dev WO
Hi Samuel,

I though I did that, but it looks like maybe not:)
I may have been misled as I was actually displaying the graph inline on the 
main content (to see if I actually got stuff to display), and also through the 
modal dialog. When I removed the call in the main content, it wouldn’t display 
in the modal anymore…
So currently I’m generating the javascript inline within the main content, and 
basically just call to draw it in the modal dialog. But I don’t like that 
because I’m spending time generating the javascript chart directly inside the 
main content when it may not get called at all.

But I think the call to draw isn’t fully working (or maybe not at the right 
time). Also I’m fighting with data format, it’s really more painful than I 
though to use it.

I’ll succeed eventually, but I’m not that confident it will be a “right way” to 
do it;)

Thanks for your tips,


Xavier

 On 7 mai 2015, at 17:40, Samuel Pelletier sam...@samkar.com wrote:
 
 Xavier,
 
 Your function drawChart is never called. I suppose 
 google.setOnLoadCallback(drawChart); add some sort of onLoad handler but an 
 Ajax request will never trigger it.
 
 A simple way that should work is to put a script after all the required HTML 
 elements for the graph with this content:
 
 script
   drawChart();
 /script
 
 There is probably another way with AMD call back but this is tricky since the 
 function drawChart does not exists when the AMD is created.
 
 Samuel
 
 Le 2015-05-04 à 11:48, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi Samuel,
 
 I didn’t mention the console as there was nothing there.
 
 Let’s try to give more context:)
 
 I’ve got a component which is supposed to be the content of the modal 
 dialog, let’s call it “Chart”
 This component is
 wo:str value = $googleChartGenerationString escapeHTML = $false/
 div id = chart_points style = width: 1000px; height: 600px;TEST/div
 
 The $googleChartGenerationString generate something like this for example:
 script
 google.setOnLoadCallback(drawChart);
 function drawChart() {
 var data = new google.visualization.DataTable();
 data.addColumn('datetime', 'Date');
 data.addColumn('number', 'Points');
 data.addRows([
 [new Date(2015, 4, 3, 23, 44, 48), 1247],
 [new Date(2015, 4, 3, 23, 47, 43), 1247],
 [new Date(2015, 4, 4, 0, 24, 43), 1247],
 [new Date(2015, 4, 4, 4, 34, 55), 1247]]);
 var options = {
 curveType: 'none',
 legend: 'none',
 width: 900,
 height: 500
 };
 var chart = new google.charts.Line(document.getElementById('chart_points'));
 chart.draw(data, options);
 }
 /script
 
 If I’m placing this component inline in its parent component (which is 
 called via a regular component action, meaning the parent isn’t called from 
 an ajax request), everything is fine, the chart is displayed.
 
 If I’m placing the component in the “content” part of an AMD, I can see that 
 it still gets the expected content (using the browser console), but nothing 
 is displayed, even the “TEST” string isn’t removed which is also why I think 
 the javascript isn’t executed at all.
 
 So I’m kind of puzzled as to what could prevent my “manual javascript from 
 being executed when requested inside an AMD.
 
 I don’t really have much more context than this:(
 
 Xavier
 
 
 
 
 On 4 mai 2015, at 16:22, Samuel Pelletier sam...@samkar.com 
 mailto:sam...@samkar.com wrote:
 
 Xavier,
 
 Have look at the javascript console, if there is javascript error, it is 
 probably your problem. If there is nothing there, you should put way more 
 context to explain what you want to achieve and how you tried so far.
 
 Samuel
 
 
 Le 2015-05-04 à 09:28, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi All,
 
 I’m trying to display a chart generated with Google Chart inside an AMD.
 
 For the Google Chart part, I’m generating a javascript function which is 
 then “written” into the HTML with a simple wo:string/escape=false directly 
 inside the AMD content.
 
 If I display it inline with the page, everything is fine. But if I try to 
 display it through an AMD, the javascript isn’t triggered at all.
 It is there, I can see the response (and it works inline for example), but 
 it doesn’t display/execute at all.
 I believe it’s not triggered at all because the js update the content of a 
 div, and when called through the AMD the “default content isn’t changed.
 
 I’ve tried using the afterLoad and afterResize bindings of the AMD to 
 trigger the javascript, but it doesn’t do anything.
 
 Anyone has any pointer on how to get my javascript executed inside the AMD?
 
 Thanks a lot,
 
 Xavier
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
 https://lists.apple.com

Re: [Google Chart] - Displaying chart in an Axaj Modal Dialog

2015-05-07 Thread Dev WO
Just a follow up, even if it’s not fixed yet.

The issue with the ajaxdatepicker is when the “underlying” page is scrolled, 
the calendar view is just nowhere near the field, it is there, but potentially 
out of sight.

I was able to display some graph by triggering the “onComplete” binding of an 
ajaxsubmitbutton, but so far I couldn’t get the graph to update (nor display at 
first).
Moving forward on this most probably very simple issue, but slowly:)

Xavier


 On 4 mai 2015, at 22:44, Dev WO webobje...@anazys.com wrote:
 
 I might have an underlying issue, but maybe it would give you a hint: my 
 ajaxdatepicker doesn’t work in this modal either.
 
 Xavier
 
 On 4 mai 2015, at 17:52, Theodore Petrosky tedp...@yahoo.com 
 mailto:tedp...@yahoo.com wrote:
 
 does this help? I used this somewhere, I just can’t remember where.
 
 http://stackoverflow.com/questions/19663555/bootstrap-3-how-to-load-content-in-modal-body-via-ajax
  
 http://stackoverflow.com/questions/19663555/bootstrap-3-how-to-load-content-in-modal-body-via-ajax
 
 
 
 
 On May 4, 2015, at 11:48 AM, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com wrote:
 
 Hi Samuel,
 
 I didn’t mention the console as there was nothing there.
 
 Let’s try to give more context:)
 
 I’ve got a component which is supposed to be the content of the modal 
 dialog, let’s call it “Chart”
 This component is
 wo:str value = $googleChartGenerationString escapeHTML = $false/
 div id = chart_points style = width: 1000px; height: 600px;TEST/div
 
 The $googleChartGenerationString generate something like this for example:
 script
 google.setOnLoadCallback(drawChart);
 function drawChart() {
 var data = new google.visualization.DataTable();
 data.addColumn('datetime', 'Date');
 data.addColumn('number', 'Points');
 data.addRows([
 [new Date(2015, 4, 3, 23, 44, 48), 1247],
 [new Date(2015, 4, 3, 23, 47, 43), 1247],
 [new Date(2015, 4, 4, 0, 24, 43), 1247],
 [new Date(2015, 4, 4, 4, 34, 55), 1247]]);
 var options = {
 curveType: 'none',
 legend: 'none',
 width: 900,
 height: 500
 };
 var chart = new google.charts.Line(document.getElementById('chart_points'));
 chart.draw(data, options);
 }
 /script
 
 If I’m placing this component inline in its parent component (which is 
 called via a regular component action, meaning the parent isn’t called from 
 an ajax request), everything is fine, the chart is displayed.
 
 If I’m placing the component in the “content” part of an AMD, I can see 
 that it still gets the expected content (using the browser console), but 
 nothing is displayed, even the “TEST” string isn’t removed which is also 
 why I think the javascript isn’t executed at all.
 
 So I’m kind of puzzled as to what could prevent my “manual javascript from 
 being executed when requested inside an AMD.
 
 I don’t really have much more context than this:(
 
 Xavier
 
 
 
 
 On 4 mai 2015, at 16:22, Samuel Pelletier sam...@samkar.com 
 mailto:sam...@samkar.com wrote:
 
 Xavier,
 
 Have look at the javascript console, if there is javascript error, it is 
 probably your problem. If there is nothing there, you should put way more 
 context to explain what you want to achieve and how you tried so far.
 
 Samuel
 
 
 Le 2015-05-04 à 09:28, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi All,
 
 I’m trying to display a chart generated with Google Chart inside an AMD.
 
 For the Google Chart part, I’m generating a javascript function which is 
 then “written” into the HTML with a simple wo:string/escape=false 
 directly inside the AMD content.
 
 If I display it inline with the page, everything is fine. But if I try to 
 display it through an AMD, the javascript isn’t triggered at all.
 It is there, I can see the response (and it works inline for example), 
 but it doesn’t display/execute at all.
 I believe it’s not triggered at all because the js update the content of 
 a div, and when called through the AMD the “default content isn’t 
 changed.
 
 I’ve tried using the afterLoad and afterResize bindings of the AMD to 
 trigger the javascript, but it doesn’t do anything.
 
 Anyone has any pointer on how to get my javascript executed inside the 
 AMD?
 
 Thanks a lot,
 
 Xavier
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
  
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
 
 This email sent to sam...@samkar.com mailto:sam...@samkar.com
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman

[Google Chart] - Displaying chart in an Axaj Modal Dialog

2015-05-04 Thread Dev WO
Hi All,

I’m trying to display a chart generated with Google Chart inside an AMD.

For the Google Chart part, I’m generating a javascript function which is then 
“written” into the HTML with a simple wo:string/escape=false directly inside 
the AMD content.

If I display it inline with the page, everything is fine. But if I try to 
display it through an AMD, the javascript isn’t triggered at all.
It is there, I can see the response (and it works inline for example), but it 
doesn’t display/execute at all.
I believe it’s not triggered at all because the js update the content of a div, 
and when called through the AMD the “default content isn’t changed.

I’ve tried using the afterLoad and afterResize bindings of the AMD to trigger 
the javascript, but it doesn’t do anything.

Anyone has any pointer on how to get my javascript executed inside the AMD?

Thanks a lot,

Xavier


 ___
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: [Google Chart] - Displaying chart in an Axaj Modal Dialog

2015-05-04 Thread Dev WO
Hi Samuel,

I didn’t mention the console as there was nothing there.

Let’s try to give more context:)

I’ve got a component which is supposed to be the content of the modal dialog, 
let’s call it “Chart”
This component is
wo:str value = $googleChartGenerationString escapeHTML = $false/
div id = chart_points style = width: 1000px; height: 600px;TEST/div

The $googleChartGenerationString generate something like this for example:
script
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('datetime', 'Date');
data.addColumn('number', 'Points');
data.addRows([
[new Date(2015, 4, 3, 23, 44, 48), 1247],
[new Date(2015, 4, 3, 23, 47, 43), 1247],
[new Date(2015, 4, 4, 0, 24, 43), 1247],
[new Date(2015, 4, 4, 4, 34, 55), 1247]]);
var options = {
curveType: 'none',
legend: 'none',
width: 900,
height: 500
};
var chart = new google.charts.Line(document.getElementById('chart_points'));
chart.draw(data, options);
}
/script

If I’m placing this component inline in its parent component (which is called 
via a regular component action, meaning the parent isn’t called from an ajax 
request), everything is fine, the chart is displayed.

If I’m placing the component in the “content” part of an AMD, I can see that it 
still gets the expected content (using the browser console), but nothing is 
displayed, even the “TEST” string isn’t removed which is also why I think the 
javascript isn’t executed at all.

So I’m kind of puzzled as to what could prevent my “manual javascript from 
being executed when requested inside an AMD.

I don’t really have much more context than this:(

Xavier




 On 4 mai 2015, at 16:22, Samuel Pelletier sam...@samkar.com wrote:
 
 Xavier,
 
 Have look at the javascript console, if there is javascript error, it is 
 probably your problem. If there is nothing there, you should put way more 
 context to explain what you want to achieve and how you tried so far.
 
 Samuel
 
 
 Le 2015-05-04 à 09:28, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi All,
 
 I’m trying to display a chart generated with Google Chart inside an AMD.
 
 For the Google Chart part, I’m generating a javascript function which is 
 then “written” into the HTML with a simple wo:string/escape=false directly 
 inside the AMD content.
 
 If I display it inline with the page, everything is fine. But if I try to 
 display it through an AMD, the javascript isn’t triggered at all.
 It is there, I can see the response (and it works inline for example), but 
 it doesn’t display/execute at all.
 I believe it’s not triggered at all because the js update the content of a 
 div, and when called through the AMD the “default content isn’t changed.
 
 I’ve tried using the afterLoad and afterResize bindings of the AMD to 
 trigger the javascript, but it doesn’t do anything.
 
 Anyone has any pointer on how to get my javascript executed inside the AMD?
 
 Thanks a lot,
 
 Xavier
 
 
 ___
 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/samuel%40samkar.com 
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
 
 This email sent to sam...@samkar.com mailto:sam...@samkar.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: [Google Chart] - Displaying chart in an Axaj Modal Dialog

2015-05-04 Thread Dev WO
Hi Ted,

Thank for the pointer, but I don’t think it’s the issue (I might be wrong 
though;))
I think my issue is more “how to make the JS to execute inside the modal body. 
The code is there, so it looks more like I’m not triggering the js correctly 
inside the modal…

Xavier

 On 4 mai 2015, at 17:52, Theodore Petrosky tedp...@yahoo.com wrote:
 
 does this help? I used this somewhere, I just can’t remember where.
 
 http://stackoverflow.com/questions/19663555/bootstrap-3-how-to-load-content-in-modal-body-via-ajax
  
 http://stackoverflow.com/questions/19663555/bootstrap-3-how-to-load-content-in-modal-body-via-ajax
 
 
 
 
 On May 4, 2015, at 11:48 AM, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com wrote:
 
 Hi Samuel,
 
 I didn’t mention the console as there was nothing there.
 
 Let’s try to give more context:)
 
 I’ve got a component which is supposed to be the content of the modal 
 dialog, let’s call it “Chart”
 This component is
 wo:str value = $googleChartGenerationString escapeHTML = $false/
 div id = chart_points style = width: 1000px; height: 600px;TEST/div
 
 The $googleChartGenerationString generate something like this for example:
 script
 google.setOnLoadCallback(drawChart);
 function drawChart() {
 var data = new google.visualization.DataTable();
 data.addColumn('datetime', 'Date');
 data.addColumn('number', 'Points');
 data.addRows([
 [new Date(2015, 4, 3, 23, 44, 48), 1247],
 [new Date(2015, 4, 3, 23, 47, 43), 1247],
 [new Date(2015, 4, 4, 0, 24, 43), 1247],
 [new Date(2015, 4, 4, 4, 34, 55), 1247]]);
 var options = {
 curveType: 'none',
 legend: 'none',
 width: 900,
 height: 500
 };
 var chart = new google.charts.Line(document.getElementById('chart_points'));
 chart.draw(data, options);
 }
 /script
 
 If I’m placing this component inline in its parent component (which is 
 called via a regular component action, meaning the parent isn’t called from 
 an ajax request), everything is fine, the chart is displayed.
 
 If I’m placing the component in the “content” part of an AMD, I can see that 
 it still gets the expected content (using the browser console), but nothing 
 is displayed, even the “TEST” string isn’t removed which is also why I think 
 the javascript isn’t executed at all.
 
 So I’m kind of puzzled as to what could prevent my “manual javascript from 
 being executed when requested inside an AMD.
 
 I don’t really have much more context than this:(
 
 Xavier
 
 
 
 
 On 4 mai 2015, at 16:22, Samuel Pelletier sam...@samkar.com 
 mailto:sam...@samkar.com wrote:
 
 Xavier,
 
 Have look at the javascript console, if there is javascript error, it is 
 probably your problem. If there is nothing there, you should put way more 
 context to explain what you want to achieve and how you tried so far.
 
 Samuel
 
 
 Le 2015-05-04 à 09:28, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi All,
 
 I’m trying to display a chart generated with Google Chart inside an AMD.
 
 For the Google Chart part, I’m generating a javascript function which is 
 then “written” into the HTML with a simple wo:string/escape=false directly 
 inside the AMD content.
 
 If I display it inline with the page, everything is fine. But if I try to 
 display it through an AMD, the javascript isn’t triggered at all.
 It is there, I can see the response (and it works inline for example), but 
 it doesn’t display/execute at all.
 I believe it’s not triggered at all because the js update the content of a 
 div, and when called through the AMD the “default content isn’t changed.
 
 I’ve tried using the afterLoad and afterResize bindings of the AMD to 
 trigger the javascript, but it doesn’t do anything.
 
 Anyone has any pointer on how to get my javascript executed inside the AMD?
 
 Thanks a lot,
 
 Xavier
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
 
 This email sent to sam...@samkar.com mailto:sam...@samkar.com
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.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

Re: [Google Chart] - Displaying chart in an Axaj Modal Dialog

2015-05-04 Thread Dev WO
I might have an underlying issue, but maybe it would give you a hint: my 
ajaxdatepicker doesn’t work in this modal either.

Xavier

 On 4 mai 2015, at 17:52, Theodore Petrosky tedp...@yahoo.com wrote:
 
 does this help? I used this somewhere, I just can’t remember where.
 
 http://stackoverflow.com/questions/19663555/bootstrap-3-how-to-load-content-in-modal-body-via-ajax
  
 http://stackoverflow.com/questions/19663555/bootstrap-3-how-to-load-content-in-modal-body-via-ajax
 
 
 
 
 On May 4, 2015, at 11:48 AM, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com wrote:
 
 Hi Samuel,
 
 I didn’t mention the console as there was nothing there.
 
 Let’s try to give more context:)
 
 I’ve got a component which is supposed to be the content of the modal 
 dialog, let’s call it “Chart”
 This component is
 wo:str value = $googleChartGenerationString escapeHTML = $false/
 div id = chart_points style = width: 1000px; height: 600px;TEST/div
 
 The $googleChartGenerationString generate something like this for example:
 script
 google.setOnLoadCallback(drawChart);
 function drawChart() {
 var data = new google.visualization.DataTable();
 data.addColumn('datetime', 'Date');
 data.addColumn('number', 'Points');
 data.addRows([
 [new Date(2015, 4, 3, 23, 44, 48), 1247],
 [new Date(2015, 4, 3, 23, 47, 43), 1247],
 [new Date(2015, 4, 4, 0, 24, 43), 1247],
 [new Date(2015, 4, 4, 4, 34, 55), 1247]]);
 var options = {
 curveType: 'none',
 legend: 'none',
 width: 900,
 height: 500
 };
 var chart = new google.charts.Line(document.getElementById('chart_points'));
 chart.draw(data, options);
 }
 /script
 
 If I’m placing this component inline in its parent component (which is 
 called via a regular component action, meaning the parent isn’t called from 
 an ajax request), everything is fine, the chart is displayed.
 
 If I’m placing the component in the “content” part of an AMD, I can see that 
 it still gets the expected content (using the browser console), but nothing 
 is displayed, even the “TEST” string isn’t removed which is also why I think 
 the javascript isn’t executed at all.
 
 So I’m kind of puzzled as to what could prevent my “manual javascript from 
 being executed when requested inside an AMD.
 
 I don’t really have much more context than this:(
 
 Xavier
 
 
 
 
 On 4 mai 2015, at 16:22, Samuel Pelletier sam...@samkar.com 
 mailto:sam...@samkar.com wrote:
 
 Xavier,
 
 Have look at the javascript console, if there is javascript error, it is 
 probably your problem. If there is nothing there, you should put way more 
 context to explain what you want to achieve and how you tried so far.
 
 Samuel
 
 
 Le 2015-05-04 à 09:28, Dev WO webobje...@anazys.com 
 mailto:webobje...@anazys.com a écrit :
 
 Hi All,
 
 I’m trying to display a chart generated with Google Chart inside an AMD.
 
 For the Google Chart part, I’m generating a javascript function which is 
 then “written” into the HTML with a simple wo:string/escape=false directly 
 inside the AMD content.
 
 If I display it inline with the page, everything is fine. But if I try to 
 display it through an AMD, the javascript isn’t triggered at all.
 It is there, I can see the response (and it works inline for example), but 
 it doesn’t display/execute at all.
 I believe it’s not triggered at all because the js update the content of a 
 div, and when called through the AMD the “default content isn’t changed.
 
 I’ve tried using the afterLoad and afterResize bindings of the AMD to 
 trigger the javascript, but it doesn’t do anything.
 
 Anyone has any pointer on how to get my javascript executed inside the AMD?
 
 Thanks a lot,
 
 Xavier
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
 
 This email sent to sam...@samkar.com mailto:sam...@samkar.com
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.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: Practical Webobject example's

2015-04-23 Thread Dev WO
http://www.apress.com/downloadable/download/sample/sample_id/1020/ 
http://www.apress.com/downloadable/download/sample/sample_id/1020/

Xavier

 On 23 avr. 2015, at 18:00, HOUNKPONOU Ronald ronald.hounkpo...@gmail.com 
 wrote:
 
 Hi everyone.
 I bought the practical webobject on amazon but i not able to find the 
 examples they talk about inside the book.
 Can someone help please?
 
 Ronald
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Eclipse 4 and JRebel

2014-08-08 Thread Dev WO
Hi Ted,

I have this in my VM arguments:  -Drebel.log=true ${jrebel_args}
And also the JRebel framework referenced in my classpath
and finally in my .project file:
buildCommand
nameorg.zeroturnaround.eclipse.rebelXmlBuilder/name
arguments
/arguments
/buildCommand
natures

natureorg.zeroturnaround.eclipse.jrebelNature/nature
/natures

Xavier

On 8 août 2014, at 02:24, Theodore Petrosky tedp...@yahoo.com wrote:

 so yes, I paid for the license. It is installed however, and from the wiki:
 
 http://wiki.wocommunity.org/display/documentation/Using+JRebel+%28previously+called+JavaRebel%29+with+WOLips
 
 there used to be a tab on the run configuration where you would “turn on” the 
 agent and logging. this went away a long time ago, but I found that if I 
 added a launch parameter in the VM arguments, I could get JRebel working.
 
 My problem is that my computer died and I replaced it. I am trying to upgrade 
 to Eclipse 4 but the run configurations do not come across to the new 
 version. I was hoping to find the run configurations in the old workspace and 
 do a little hacking to get JRebel to work.
 
 I am still hoping to find someone that is using JRebel that can help.
 
 oye!!!??
 
 thanks anyway.
 
 Ted
 
 
 On Aug 7, 2014, at 8:01 PM, Raymond NANEON rnan...@me.com wrote:
 
 I didn’t configure JRebel. To use it, You must to activate it.
 WOLips 4.4 needs JRebel for his build, so I Installed it but I don’t use it 
 because I haven’t the license.
 
 Le 8 août 2014 à 00:37, Theodore Petrosky tedp...@yahoo.com a écrit :
 
 I have that version. How are you configuring it?
 
 
 
 On Aug 7, 2014, at 6:32 PM, Raymond NANEON rnan...@me.com wrote:
 
 JRebel and Jprofiler is 4.4.0 too after the built.
 But if you want to use JRebel of Eclipse market, the version is 5.6.1.
 
 Ray
 
 Le 7 août 2014 à 23:36, David Holt programming...@mac.com a écrit :
 
 What version of JRebel are you using?
 
 David
 
 
 On Aug 7, 2014, at 2:14 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 anyone have any experience with JRebel.
 
 I was using it in the old version 3.X. however I always had to manually 
 add a line to my launch configuration because the jrebel stuff wasn’t 
 working. Basically, I was manually adding the JRebel agent logging.
 
 First, does anyone know the correct way to add JRebel to a wonder launch 
 configuration, or B, is anyone else using this? and know how to turn it 
 on?
 
 Maybe I could dig through some old files. Where are the run 
 configuration stored? Maybe I can hack through that.
 
 Ted
 ___
 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/programmingosx%40mac.com
 
 This email sent to programming...@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:
 https://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:
 https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: ERPDFGeneration problem

2014-05-15 Thread Dev WO
Hi Tim,

Maybe I'm all wrong, but you could check the Property of each .wo file (it 
should be inherited if the container is UTF-8 or manually select OtherUTF-8)
You could also check the corresponding .woo file and compare them with the one 
from the working component.

Xavier

On 15 mai 2014, at 21:57, Timothy Worman li...@thetimmy.com wrote:

 David et al:
 
 I was able to get my PDF gen working again by starting with new components. I 
 used the wocomponent wizard, allowed it to create the html and left the 
 doctype as xhtml transitional. Essentially building from there with a 
 document saying Hello World, I was able to get things working again.
 
 I haven’t solved why components that worked before didn’t work anymore.
 
 Tim
 UCLA GSEIS
 
 On May 9, 2014, at 2:52 PM, Timothy Worman li...@thetimmy.com wrote:
 
 Hi David:
 
 I guess I’m not alone in the wilderness! At least this means it isn’t my 
 fault - this time!! I haven’t had time to look into it at all today. Maybe 
 the supporting libraries were updated and something got broken. When I have 
 a chance I’ll start looking at when the ERPDFGeneration framework may have 
 had updates.
 
 Tim
 UCLA GSEIS
 
 On May 8, 2014, at 1:11 PM, David Holt programming...@mac.com wrote:
 
 I am seeing the same issue that you are with ERPDFGeneration. Disabling 
 click to open has no impact on the problem.
 
 David
 
 
 On 2014-05-08, at 12:29 PM, Timothy Worman li...@thetimmy.com wrote:
 
 I was suspecting the _componentName attribute yesterday and I was looking 
 for properties to turn it off. After a quick search I didn’t find 
 anything. It does appear that clickToOpen could be involved and I have the 
 property set true in my props. I haven’t used it so I don’t know why I 
 have it enabled. And I seem to remember reading it caused issues with 
 excel generation. This could be it. I’ll respond with more after some 
 investigation.
 
 Tim
 UCLA GSEIS
 
 On May 8, 2014, at 9:41 AM, Fabian Peters lists.fab...@e-lumo.com wrote:
 
 I somehow assumed this problem occurred in deployment. Still, if Bastian 
 is on the right track, then this should help:
 
   public boolean clickToOpenEnabled(WOResponse response, WOContext 
 context) {
   return false;
   }
 
 
 Am 08.05.2014 um 18:15 schrieb Bastian Triller 
 bastian.tril...@gmail.com:
 
 I think the _componentName attribute is the problem. There's a switch to 
 turn that off.
 
 On Wed, 2014-05-07 at 19:33 -0700, Timothy Worman wrote:
 All:
 
 
 I have a problem that recently popped up with PDF generation. I have a 
 custom component that utilizes the simple FlyingSaucerImpl in 
 ERPDFGeneration. My component was failing with:
 
 
 [org.xml.sax.SAXParseException] The markup in the document preceding 
 the root element must be well-formed.
 
 
 So, I simplified things and basically made a test component content sth 
 like SimplePDFGeneration1 from the ERPDFExamples. Same issue - 
 SAXParseException. I overrode appendToResponse to generate some 
 diagnostics on the content I’m trying pdf-ify (is that allowed?). Below 
 is what it sayeth. So, what the heck is in line 0, column 2 in the 
 document?
 
 
 May 07 19:20:21 eTimesheet[5] WARN  NSLog  - 
 'edu.ucla.gseis.employee.components.TimesheetCalendarPDFComponent' 
 caused a SAXParseException
 Message: 'The markup in the document preceding the root element must be 
 well-formed.'
 Line   : 0
 Column : 2
 --- content begin ---
 1 !DOCTYPE html
 2 html  _componentName = 
 edu.ucla.gseis.employee.components.TimesheetCalendarPDFComponent lang 
 = en
 3   head
 4 meta charset = utf-8 /
 5 titleERPDFGeneration Examples/title
 6 
 7 link rel=stylesheet type=text/css 
 href=/cgi-bin/WebObjects/eTimesheet.woa/_wr_/wodata=/Users/worman/Source/etswo/eTimesheet/WebServerResources/print.css
  media=print/
 8 
 9   /head
 10   body
 11   
 12   /body
 13 /html
 --- content end —
 
 
 Tim
 UCLA GSEIS
 
 
 
 
 ___
 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/bastian.triller%40gmail.com
 
 
 This email sent to 
 bastian.tril...@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.fabian%40e-lumo.com
 
 This email sent to lists.fab...@e-lumo.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/programmingosx%40mac.com
 
 This email sent to 

Re: What stands in the way becomes the way

2014-04-16 Thread Dev WO
Hi Aaron,

You did find something nice coming from France, lucky you:)

I was just telling my wife that I'd like to test that setup and I got you're 
fat enough, no way in response;) So guess I won't buy that French product for 
the foreseeable future.

WOWODC is clearly my best conference/community/favorite people, wherever will 
be next year, I'm in.

Xavier




 Hi Dan,
 
 I got it from the “Healthy Back Store” so I guess it’s ok ;-) I spend most of 
 my time in the “zero gravity” position.
 
 It’s kinda funny when you video conference with me. It looks like I’m on the 
 space station.
 
 Hahah, sometimes when people come to service the furnace, etc. they assume 
 I’m a vegetable. They have that look of pity on their face you know. Usually 
 I just go with it, have some fun.
 
 Actually, sometimes I move the chair and adjust the arm to use it as a 
 standing desk. Variation can be good.
 
 It comes from France, the brand is “La Fuma.” It should run around $150 USD. 
 It is meant to be an outdoor chair but I use it indoors. It’s a folding chair 
 that can be moved out of the way or taken with you. The “lacing” breaks every 
 6 months from daily use. It’s like a long shoe-lace. 
 
 It’s basically the poor man’s gravitonus:
 http://gravitonus.com
 AARON ROSENZWEIG / Chat 'n Bike
 e:  aa...@chatnbike.com  t:  (301) 956-2319   
   
 
 On Apr 15, 2014, at 10:15 PM, Daniel Beatty danielbea...@mac.com wrote:
 
 Hi,
 I love the chair Aaron has in the picture.  If you don't mind me asking, how 
 is it for the back?  Do they make versions of that chair for people with 
 really bad backs with an addiction to WebObjects and WOnder?
 
 V/R,
 Dan Beatty
 
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: help!

2014-02-25 Thread Dev WO
Check this thread just in case
http://lists.apple.com/archives/webobjects-dev/2012/Aug/msg00129.html

Xavier


 help!  My App ran before but it suddenly doesn't now.  Here's the error I get:
 
 [2014-2-26 1:25:2 CST] main java.lang.RuntimeException: ERXExtensions have 
 not been initialized. Please report the classpath and the rest of the bundles 
 to the Wonder mailing list: 
 Remaining frameworks: [WOLips]
 Classpath: 
 

Re: Opinions on static createŠ() methods for EOs

2014-02-19 Thread Dev WO
Someone will correct me if I'm wrong, but I think localInstanceIn is working 
only on an existing object in the datastore.
That means that if you create bar into ec2 and you try to do 
setBarRelationship(bar.localInstanceIn(ec1)) you will get a 
NullPointerException which could be difficult to track and debug if it happens 
in the eo class.

So I would recommend to not do it as a cross editingContext exception is 
easier to debug:)

Xavier



 Hi Chuck,
 
 On 20/02/2014, at 3:10 PM, Chuck Hill ch...@global-village.net wrote:
 
 It is always safe to call localInstance.  My personal preference is to force 
 the caller to do that so that they are aware if they have cross EC 
 references.
 
 Ah OK.
 
 I can also see the argument for “just do what is safest”.
 
 I hadn't thought of that benefit to leaving responsibility with the caller.  
 Anyway, I should pick one as I'm currently doing a bit of each with no 
 consistency.
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: WOWODC 2014: April 12 to 14

2013-09-05 Thread Dev WO
I think it's mostly the plane that would be a little cheaper.

Xavier

On 5 sept. 2013, at 11:02, Amedeo Mantica amedeomant...@me.com wrote:

 Sorry,
 We didn't move from June to April to get better price ?
 
 Amedeo 
 
 On 03/set/2013, at 16:20, prob...@macti.ca wrote:
 
 The one on 475 President-Kennedy Avenue, the one on University is closing 
 down to become... a students residence.
 
 https://www.deltahotels.com/Hotels/Delta-Montreal
 
 http://www.cbc.ca/news/canada/montreal/story/2013/07/09/delta-montreal-residences-students.html
 
 (it's a five minutes from my workspace)
 
 Hi Pascal,
 Which Delta Hotel:)
 -475 President-Kennedy Avenue
 -777 University Street Xavier
 Hi guys,
 It's official: WOWODC 2014 will be on April 12 to 14, at the Delta 
 Montreal. Guest rooms are $159/night. Pricing for the conference is not 
 fixed yet, but it should be below $600.
 Envoyé de mon 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/webobjects%40anazys.com
 This email sent to webobje...@anazys.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/amedeomantica%40me.com
 
 This email sent to amedeomant...@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/archive%40mail-archive.com

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

Re: WOWODC 2014: April 12 to 14

2013-09-03 Thread Dev WO
Hi Pascal,

Which Delta Hotel:)
-475 President-Kennedy Avenue
-777 University Street 

Xavier



 Hi guys,
 
 It's official: WOWODC 2014 will be on April 12 to 14, at the Delta Montreal. 
 Guest rooms are $159/night. Pricing for the conference is not fixed yet, but 
 it should be below $600.
 
 Envoyé de mon 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: ERXEC question

2013-08-12 Thread Dev WO
Hi Lars,

You could overwrite (or create another) method fetchAllPaymentCustomers to 
apply:
setIncludeEditingContextChanges(true)

I recall a discussion about this stating it was on purpose that Wonder 
doesn't do it by default. So you have to manually deal with it that way you 
actually know you are manipulating objects that may not all already be 
committed to the datastore.

Xavier


On 12 août 2013, at 19:37, Lars Sonchocky-Helldorf 
lars.sonchocky-helld...@xyrality.com wrote:

 Hi list,
 
 we are creating a new EO and insert it into an ERXEC like this:
 
  public static PaymentCustomer createPaymentCustomer(EOEditingContext 
 editingContext, Integer creditScore, String fullQualifiedClassName, Integer 
 ingameId) 
  {
PaymentCustomer eo = (PaymentCustomer) 
 EOUtilities.createAndInsertInstance(editingContext, 
 _PaymentCustomer.ENTITY_NAME);
eo.setCreditScore(creditScore);
eo.setFullQualifiedClassName(fullQualifiedClassName);
eo.setIngameId(ingameId);
return eo;
  }
 
 later we want to access this EO like this (before calling savingChanges of 
 the ERXEC, the edtingContext is the same):
 
 NSArrayPaymentCustomer paymentCustomerTest = 
 PaymentCustomer.fetchAllPaymentCustomers(this.editingContext());
 
 this results in an empty NSArray.
 
 
 Debugging this code revealed that there's nothing in _insertedObjects of this 
 ERXEC but in _unprocessedInserts. When calling processRecentChanges() of this 
 ERXEC before fetching everything works like expected. 
 
 
 My Question now is: why is this call to processRecentChanges() necessary at 
 all and is it the right solution for our problem? 
 http://comments.gmane.org/gmane.comp.web.webobjects.devel/24056 seems to 
 suggest otherwise. So what would be the right thing to do™?
 
 
 best regards,
 
   Lars
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: ERXEC question

2013-08-12 Thread Dev WO
I haven't check the normal EC management, but I'm pretty confident that if 
it's not the default behavior in Wonder it's because it could be unsafe.

Xavier

On 12 août 2013, at 21:31, Lars Sonchocky-Helldorf 
lars.sonchocky-helld...@xyrality.com wrote:

 So you're suggesting that the behavior we are seeing here is specific to 
 ERXECs and not to normal ECs?
 
 cheers,
 
   Lars
 
 Am 12.08.2013 um 21:26 schrieb Dev WO webobje...@anazys.com:
 
 Hi Lars,
 
 You could overwrite (or create another) method fetchAllPaymentCustomers to 
 apply:
 setIncludeEditingContextChanges(true)
 
 I recall a discussion about this stating it was on purpose that Wonder 
 doesn't do it by default. So you have to manually deal with it that way you 
 actually know you are manipulating objects that may not all already be 
 committed to the datastore.
 
 Xavier
 
 
 On 12 août 2013, at 19:37, Lars Sonchocky-Helldorf 
 lars.sonchocky-helld...@xyrality.com wrote:
 
 Hi list,
 
 we are creating a new EO and insert it into an ERXEC like this:
 
 public static PaymentCustomer createPaymentCustomer(EOEditingContext 
 editingContext, Integer creditScore, String fullQualifiedClassName, Integer 
 ingameId) 
 {
  PaymentCustomer eo = (PaymentCustomer) 
 EOUtilities.createAndInsertInstance(editingContext, 
 _PaymentCustomer.ENTITY_NAME);
  eo.setCreditScore(creditScore);
  eo.setFullQualifiedClassName(fullQualifiedClassName);
  eo.setIngameId(ingameId);
  return eo;
 }
 
 later we want to access this EO like this (before calling savingChanges of 
 the ERXEC, the edtingContext is the same):
 
 NSArrayPaymentCustomer paymentCustomerTest = 
 PaymentCustomer.fetchAllPaymentCustomers(this.editingContext());
 
 this results in an empty NSArray.
 
 
 Debugging this code revealed that there's nothing in _insertedObjects of 
 this ERXEC but in _unprocessedInserts. When calling processRecentChanges() 
 of this ERXEC before fetching everything works like expected. 
 
 
 My Question now is: why is this call to processRecentChanges() necessary at 
 all and is it the right solution for our problem? 
 http://comments.gmane.org/gmane.comp.web.webobjects.devel/24056 seems to 
 suggest otherwise. So what would be the right thing to do™?
 
 
 best regards,
 
 Lars
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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

[Ajax] - Returning a file after ajaxlongresponse

2013-08-05 Thread Dev WO
Hello,

I'm having some trouble trying to return a file after an ajaxlongresponse.

I'm currently have my callable task used through ajaxlongresponse 
(CCAjaxLongResponsePage), I'm generating a woresponse (which is actually a 
file) then hand back this woresponse to the controller component (which is my 
regular page where I also initiate the longresponse from.
I'd like the file to be downloaded without user interaction at the end of the 
task, but so far I'm just able to get the response into my controller (so if I 
make another link on the page to download it works, but I don't want this extra 
step).

Any help would be great as I'm running out of ideas on this one:)

Thanks,

Xavier

 ___
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: Intermittent hostname null in URL

2013-08-05 Thread Dev WO
This usually happens when you change IP address I think.

Xavier

On 5 août 2013, at 15:18, John Pollard j...@pollardweb.com wrote:

 Every now and then when running a Wonder-based WO app in development with 
 auto-open browser, the app URL comes up as http://null... instead of my local 
 machine name http://mymac.local/...
 If I manually change the null to mymac.local all is well
 I thought I had seen an article on this topic but can't find it now. Anyone 
 else had this? It can work, stop working and start working again without any 
 intervention from me.
 
 Thanks, John
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Max Allowed Sessions

2013-07-10 Thread Dev WO
Hello Thomas,

I'm not sure if it's the right way to do what you want to do as I don't know 
exactly why you would do that:)
If you want to limit the number of users allowed, you should not rely on 
WOSession, as you could get a session when an exception is thrown, so you could 
basically end up not being able to handle even a single real user.

Maybe with more details someone could give you a better answer.

Xavier

On 10 juil. 2013, at 12:48, Thomas Grass (01SoftwareSolutions) 
off...@01softwaresolutions.eu wrote:

 Hello Community,
 is there an easy way to handle maximum allowed sessions in a 
 WO-Application/Wonder-Application? (e.g. max. 25 Sessions allowed, otherwise 
 an exceptions page will displayed)?
 
 Thomas 
 
 
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Max Allowed Sessions

2013-07-10 Thread Dev WO
That was actually my point:
-you'd like to ensure that a maximum specific number of real user are using the 
system, you'll need to implement a couple things to actually define what is a 
user session and act on it
-you'd like to limit the number of WOSession your app instance is serving, you 
might have something available directly in Wonder

We'll dig in this deeper if the need ever arise;)

Xavier

On 10 juil. 2013, at 13:25, Thomas Grass (01SoftwareSolutions) 
off...@01softwaresolutions.eu wrote:

 Hello Xavier,
 thanks for your reply.
 
 we have no real problem at the time. This question is just for my own 
 interests ;-) I knew that i can easily define the time a session is alive. 
 And i'm now interested if there is a way to define a max number of allowed 
 sessions at a time (with the limit, that an single user can't login after 
 enough sessions are killed)
 
 Thomas
 
 --
 Thomas Grass | 01SoftwareSolutions 
 +49 (89) 41 41 41 03-0
 off...@01softwaresolutions.eu | www.01softwaresolutions.eu
 Lichtenbergstraße 8 | D-85748 Garching b München
 
 Am 10.07.2013 um 12:56 schrieb Dev WO webobje...@anazys.com:
 
 Hello Thomas,
 
 I'm not sure if it's the right way to do what you want to do as I don't know 
 exactly why you would do that:)
 If you want to limit the number of users allowed, you should not rely on 
 WOSession, as you could get a session when an exception is thrown, so you 
 could basically end up not being able to handle even a single real user.
 
 Maybe with more details someone could give you a better answer.
 
 Xavier
 
 On 10 juil. 2013, at 12:48, Thomas Grass (01SoftwareSolutions) 
 off...@01softwaresolutions.eu wrote:
 
 Hello Community,
 is there an easy way to handle maximum allowed sessions in a 
 WO-Application/Wonder-Application? (e.g. max. 25 Sessions allowed, 
 otherwise an exceptions page will displayed)?
 
 Thomas 
 
 
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: javamonitor and wotaskd won't start after os x updates

2013-07-01 Thread Dev WO
Hi Greg,
You mean LaunchDeamons folder right?
It may not be your issue though.
I'd use the wiki page about deployment and check each points.
Do you have wotaskd running on port 1085?

Xavier

 On 1 juil. 2013, at 21:09, Greg Lappen g...@lapcominc.com wrote:
 
 Hello,
 
 We have a WebObjects app running on a Snow Leopard Server.  Some OS X updates 
 were applied recently, and now WebObjects javamontor, wotaskd, and hence our 
 app are not starting up.
 
 I saw this error in /var/log/system.log:
 
 Suspicious setup: User appserver maps to user: _appserver
 
 I modified the LaunchAgent plist files so that the user and group name now 
 have dashes in front of them and reloaded the files into launchd with 
 launchctl.  The error I see now is this:
 
  kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as 
 they are logged.
 
 This seems like some issue with java not being able to connect to the window 
 server, but I was not able to find any solutions.  Does this look familiar to 
 anyone?
 
 Much thanks,
 
 Greg
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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

[Excel] - Excel generation slow when generating the NSData object

2013-04-15 Thread Dev WO
Hi List,

I've been doing some measurements regarding an Excel generation.
Almost everything is actually running as expected except when I create the 
NSData object using parser.data().
For example, up to this point of the method, it would take around 2-3 seconds, 
but then it takes around 300 seconds for the data() phase.
Is this something expected or is there something I could try to dig to find 
out why it takes that long?

I'm generating an Excel file which will be around 100KB with around 1000 rows 
and less than 10 columns.

Here's the code that generate it:

ExcelExport export = new ExcelExport(context());
export.setExcludeValidatedStrings(excludeValidatedStrings);

export.setExcludeNeedsValidationStrings(excludeNeedsValidationStrings);
export.setExcludeNeedsFixStrings(excludeNeedsFixStrings);
export.setExcludeGlobalKeys(excludeGlobalKeys);
export.setProject(selectedProject());
String contentString = 
export.generateResponse().contentString();
byte[] bytes;
try {
bytes = contentString.getBytes(UTF-8);
} catch (UnsupportedEncodingException e) {
throw new NSForwardException(e, Can't convert string to 
UTF-8...you should get a better VM);
}
InputStream stream = new ByteArrayInputStream(bytes);
EGSimpleTableParser parser = new EGSimpleTableParser(stream, 
(NSDictionary?, ?)data().valueForKey(Fonts), (NSDictionary?, 
?)data().valueForKey(Styles));
stream.close();
// Up to this point, things are going fast enough, around 3 
seconds

NSData data = parser.data();
// This takes ages, around 300 seconds

String fileName = ExcelExport.xls;
newResponse.disableClientCaching();
newResponse.appendHeader(String.valueOf( data.length()), 
Content-Length );
newResponse.setContent(data);
newResponse.setHeader(inline; filename=\ + fileName + \, 
content-disposition);
newResponse.setHeader(application/vnd.ms-excel, 
content-type);


Any pointer welcome:)

Thanks,

Xavier


 ___
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: Relationship many-to-many issue

2013-04-05 Thread Dev WO
Hi Raymond,

Your many-to-many model looks strange to me.
You shouldn't have the relationship listed in repartDomMatieres like that.
Try recreate your many-to-many using EOmodeler create relationship wizard.

Xavier

On 5 avr. 2013, at 15:55, Raymond NANEON rnan...@me.com wrote:

 Hi List,
 
 I have a table EORepartDomMatiere which has like pk foreign key of 2 others 
 tables (EODomaine  EOMatiere). 
 mat1.jpg
 reparMat1.jpg
 dom1.jpg
 reparDom1.jpg
 So when I want to save in the many-to-many table whith ec.saveChanges();
 
 ...
 repart.setMatiereRelationship(mat);
 repart.setDomaineRelationship(dom);
 if (ec.hasChanges())
 ec.saveChanges();
 ...
 
 I got this Exception : java.lang.IllegalStateException: Adaptor 
 er.extensions.jdbc.ERXJDBCAdaptor@3e2ad6a0 failed to provide new primary keys 
 for entity 'EORepartDomMatiere'
 at 
 com.webobjects.eoaccess.EODatabaseContext.prepareForSaveWithCoordinator(EODatabaseContext.java:5713)
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:370)
 at 
 com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
 at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)
 at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
 at 
 org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.rePartDomMat(ModuleAdminDomaine.java:349)
 at 
 org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.uneMatiereEnregistrer(ModuleAdminDomaine.java:314)
 
 Why the adaptor want to create a new primary key? What's wrong?
 
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: [Excel] - Maximum column with EGSimpleTableCreator

2013-04-05 Thread Dev WO
I've been nicely suggested to switch row/col as I wouldn't need 255 rows anyway.
But I'll try to keep this limitation in mind and see if I can work on it later.

Xavier

On 3 avr. 2013, at 23:43, Tobias Janz janz.tob...@gmail.com wrote:

 Hi,
 
 looks like nobody has used the ExcelGenerator-Framework with more than 255 
 Columns or a bit abstract with the xlsx-Format.
 Maybe you could write an extension?
 Also the version of the poi-jar is out of date, 3.9 is the latest stable 
 version (3.6 is 3 years old).
 Looks like the SS Usermodel is a good idea.
 
 Tobias
 
 
 
 2013/4/3 Dev WO webobje...@anazys.com
 I'm sure I won't be able to fit more than 255 columns in this one either;)
 
 Xavier
 
 On 3 avr. 2013, at 19:21, Alan Ward aw...@apple.com wrote:
 
 
  What's Excel?  I thought it was a car :)
 
  http://en.wikipedia.org/wiki/Lotus_Excel
 
  Alan
 
 
  On Apr 3, 2013, at 11:09 AM, Dev WO webobje...@anazys.com wrote:
 
  I don't want to believe I'm the only one on this list to have to deal with 
  Excel;)
  Any pointer/recommendation regarding the Excel generation column limit?
 
  Thanks,
 
  Xavier
 
  On 28 mars 2013, at 20:54, Dev WO webobje...@anazys.com wrote:
 
  Hello list,
 
  I found a thread from 2010 about this, mentioning the the pre-2007 Excel 
  limitation regarding the number of columns.
  I looked at the code from EGSimpleTableParser and EGSimpleTableCreator 
  and related Properties' file but didn't find anything in them related to 
  this limitation.
  It looks like the only way to get more than 255 columns in Excel is using 
  the xlsx format through org.apache.poi.ss.usermodel instead of the 
  org.apache.poi.hssf.usermodel.
 
  I'm wondering how people creating Excel export on this list are handling 
  that, are you all using Aspose or did I overlooked something in Wonder?
 
  Thanks,
 
  Xavier
 
 
  ___
  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/webobjects%40anazys.com
 
  This email sent to webobje...@anazys.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/award%40apple.com
 
  This email sent to aw...@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/janz.tobias%40gmail.com
 
 This email sent to janz.tob...@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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Relationship many-to-many issue

2013-04-05 Thread Dev WO
I may be wrong but I think you shouldn't have the relationship you have in your 
join table.
You should have only 2 in this table:
-a to-one to EOMatiere
-a to-one to EODomaine

your join-table doesn't really look like a join-table with all these 
relationships.

I would manually recreate every relationship

 Xavier
 
On 5 avr. 2013, at 17:33, Raymond NANEON rnan...@me.com wrote:

 Hi Xavier,
 
 I used reverse engineering to create entities and relationship between them 
 have been created automatically. I don't think using wizard will change 
 something. Why recreate relationship?
 Thanks
 
 Envoyé de mon iPad
 
 Le 5 avr. 2013 à 16:31, Dev WO webobje...@anazys.com a écrit : 
 
 Hi Raymond,
 
 Your many-to-many model looks strange to me.
 You shouldn't have the relationship listed in repartDomMatieres like that.
 Try recreate your many-to-many using EOmodeler create relationship wizard.
 
 Xavier
 
 On 5 avr. 2013, at 15:55, Raymond NANEON rnan...@me.com wrote:
 
 Hi List,
 
 I have a table EORepartDomMatiere which has like pk foreign key of 2 
 others tables (EODomaine  EOMatiere). 
 mat1.jpg
 reparMat1.jpg
 dom1.jpg
 reparDom1.jpg
 So when I want to save in the many-to-many table whith ec.saveChanges();
 
 ...
 repart.setMatiereRelationship(mat);
 repart.setDomaineRelationship(dom);
 if (ec.hasChanges())
 ec.saveChanges();
 ...
 
 I got this Exception : java.lang.IllegalStateException: Adaptor 
 er.extensions.jdbc.ERXJDBCAdaptor@3e2ad6a0 failed to provide new primary 
 keys for entity 'EORepartDomMatiere'
 at 
 com.webobjects.eoaccess.EODatabaseContext.prepareForSaveWithCoordinator(EODatabaseContext.java:5713)
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:370)
 at 
 com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
 at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)
 at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
 at 
 org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.rePartDomMat(ModuleAdminDomaine.java:349)
 at 
 org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.uneMatiereEnregistrer(ModuleAdminDomaine.java:314)
 
 Why the adaptor want to create a new primary key? What's wrong?
 
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: [Excel] - Maximum column with EGSimpleTableCreator

2013-04-03 Thread Dev WO
I don't want to believe I'm the only one on this list to have to deal with 
Excel;)
Any pointer/recommendation regarding the Excel generation column limit?

Thanks,

Xavier

On 28 mars 2013, at 20:54, Dev WO webobje...@anazys.com wrote:

 Hello list,
 
 I found a thread from 2010 about this, mentioning the the pre-2007 Excel 
 limitation regarding the number of columns.
 I looked at the code from EGSimpleTableParser and EGSimpleTableCreator and 
 related Properties' file but didn't find anything in them related to this 
 limitation.
 It looks like the only way to get more than 255 columns in Excel is using the 
 xlsx format through org.apache.poi.ss.usermodel instead of the 
 org.apache.poi.hssf.usermodel.
 
 I'm wondering how people creating Excel export on this list are handling 
 that, are you all using Aspose or did I overlooked something in Wonder?
 
 Thanks,
 
 Xavier
 
 
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: [Excel] - Maximum column with EGSimpleTableCreator

2013-04-03 Thread Dev WO
I'm sure I won't be able to fit more than 255 columns in this one either;)

Xavier

On 3 avr. 2013, at 19:21, Alan Ward aw...@apple.com wrote:

 
 What's Excel?  I thought it was a car :)
 
 http://en.wikipedia.org/wiki/Lotus_Excel
 
 Alan
 
 
 On Apr 3, 2013, at 11:09 AM, Dev WO webobje...@anazys.com wrote:
 
 I don't want to believe I'm the only one on this list to have to deal with 
 Excel;)
 Any pointer/recommendation regarding the Excel generation column limit?
 
 Thanks,
 
 Xavier
 
 On 28 mars 2013, at 20:54, Dev WO webobje...@anazys.com wrote:
 
 Hello list,
 
 I found a thread from 2010 about this, mentioning the the pre-2007 Excel 
 limitation regarding the number of columns.
 I looked at the code from EGSimpleTableParser and EGSimpleTableCreator and 
 related Properties' file but didn't find anything in them related to this 
 limitation.
 It looks like the only way to get more than 255 columns in Excel is using 
 the xlsx format through org.apache.poi.ss.usermodel instead of the 
 org.apache.poi.hssf.usermodel.
 
 I'm wondering how people creating Excel export on this list are handling 
 that, are you all using Aspose or did I overlooked something in Wonder?
 
 Thanks,
 
 Xavier
 
 
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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/award%40apple.com
 
 This email sent to aw...@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/archive%40mail-archive.com

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


[Excel] - Maximum column with EGSimpleTableCreator

2013-03-28 Thread Dev WO
Hello list,

I found a thread from 2010 about this, mentioning the the pre-2007 Excel 
limitation regarding the number of columns.
I looked at the code from EGSimpleTableParser and EGSimpleTableCreator and 
related Properties' file but didn't find anything in them related to this 
limitation.
It looks like the only way to get more than 255 columns in Excel is using the 
xlsx format through org.apache.poi.ss.usermodel instead of the 
org.apache.poi.hssf.usermodel.

I'm wondering how people creating Excel export on this list are handling that, 
are you all using Aspose or did I overlooked something in Wonder?

Thanks,

Xavier


 ___
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: Problems displaying Chinese in WO application

2013-03-11 Thread Dev WO
Hi,

The first thing you could check, is forcing the page to display as UTF-8 in 
your browser (usually through the ViewText Encoding menu).
If it displays the Chinese text correctly, it means you are missing a 
configuration somewhere:
-do you have something like meta http-equiv=content-type 
content=text/html;charset=utf-8 in your page HTML head section?
-Are you using Wonder? (it should default to UTF-8 I think or there's a 
property for that).

It shouldn't be a big issue, your setup seems pretty much as it should be.

Xavier



 Hi all,
 
 I'm writing an application that is translated into Icelandic, English and 
 Chinese.
 
 I have a PostgreSQL database, defined as such:
 
 List of databases
   Name| Owner | Encoding | Collate | Ctype | Access privileges
 ---+---+--+-+---+---
 thor  | thor  | UTF8 | is_IS   | is_IS |
 
 I have _all_ of my project set to use UTF-8 as well.
 
 A sample of the database translation strings is as such:
 
 thor=# select * from onlanguagetranslations where key='log_in';
 id | lang |  key   | translation
 +--++-
 25 |1 | log_in |  24
 26 |2 | log_in |  25
 27 |3 | log_in |  26
 (3 rows)
 
 and
 
 thor=# select * from onlanguagetranslationentry where translationid in (24, 
 25, 26);
 id | revision |revisiondate | translation | translationid
 +--+-+-+---
 26 |1 | 2013-03-10 00:00:00 | Log In  |24
 27 |1 | 2013-03-10 00:00:00 | Innskrá |25
 28 |1 | 2013-03-10 00:00:00 | 身份登录|26
 (3 rows)
 
 The database is clearly correct ( I can dump it to a file and edit in a 
 editor - SubEthaEdit - which identifies it as UTF8)
 
 I use  a component which display part ( html ) is simply wo:str 
 value=$translation parseHTML=false/ and the translation function reads 
 the language translation based on an input key and the session language 
 setting.
 
 When I display the output in a browser, the English translation shows fine ( 
 no wonder..), the Icelandic one does also show just fine, but the Chinese one 
 only shows  instead of 身份登录.
 
 Does anyone know some magic trick I may perform, sans sacrificing a goat or 
 my firstborn.. ?
 
 Thanks in advance,
 Þór
 
 
 
 
 Fyrirvari á tölvupósti / e-mail disclaimer
 http://us.is/fyrirvari
 
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: [Announce] WOCommunity repository for CentOS/RedHat Linux

2013-01-07 Thread Dev WO
Hello Jesse,
You don't actually need the server wonder, you just build the application 
embedded.

Xavier

On 7 janv. 2013, at 18:22, Jesse Tayler jtay...@oeinc.com wrote:

 
 
 what's the best way to install or update the server's WOnder installation?
 
 
 
 
 
 On Jan 7, 2013, at 10:56 AM, 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/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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Website Hijacked

2012-04-12 Thread Dev WO
Hi Gino,

This looks strange that the links generated within the wocomponent gets 
edited.
It looks like a JS rewrite on the fly, but it needs to load that JS in a way or 
another...

Can you provide the url so I can have a look?

Xavier

On 12 avr. 2012, at 16:55, Gino Pacitti wrote:

 Hi
 Anyone had any experience of how a site can be hijacked?
 
 I mean that a normal link to a Direct Action gets redirected to a new site 
 (Adult Content)
 
 I cannot see how this is being done - Components does not contain any scripts 
 except for Google Ananlytics yet clicking on a submit button or links causes 
 this.
 
 It is also not on every attempt - it seems to happen randomly??
 
 Any help appreciated
 
 Gino
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Model/application development layout request for comment

2012-04-03 Thread Dev WO
Thanks Atze,

That's perfect.

Xavier

On 3 avr. 2012, at 11:55, Alexander Spohr wrote:

 We have the configs in the same directory as the woa. Each app has multiple 
 instances.
 They are choosen on the apps name in Monitor, using the same App.woa for all 
 of them:
 
 App-DE - gets its data from directory App-DE.config/
 App-NL - gets its data from directory App-NL.config/
 App-UK - gets its data from directory App-UK.config/
 ...
 
 Works fine.
 
   atze
 
 
 


 ___
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


Model/application development layout request for comment

2012-04-02 Thread Dev WO
Hi WOmates,

I'm actually rewritting a project to make it more multiple configuration 
aware.

I need to define a little more the multiple configuration setup:
-the same code-base will have about 10s different configurations (like language 
setup and custom UI layout)
-each configuration would serve in the range of 100s (maybe 1000s) users

My original idea was to create a single project in Eclipse and have a build.xml 
file for each configuration (providing the language(s), the database connection 
details, etc), that way I could have a specific database for each configuration 
and be able to update based on the configuration (like if configuration are 
used on different timezone, I can have a more optimized downtime window), in 
addition to isolate the data for each configuration.

I haven't completely look into the build.xml to see if I could use it to 
achieve per built Properties and includes for example.

But do you think it's the way to do it or is there a better way to manage this, 
mostly on the maintenance and future development perspective (having a single 
project seams pretty interesting to me)?

It shouldn't really matter for now, but it would also be my first move into 
D2W;)

Thanks for your comments,

Xavier


 ___
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: Model/application development layout request for comment

2012-04-02 Thread Dev WO
Thanks Kieran and Ted,

That's a pretty good way to go:)
I think I'll need to create one application in WOMonitor per configuration as 
they will answer on different domain name and I don't want to get a load 
balancing between instances that have different properties.

Xavier

On 2 avr. 2012, at 17:43, Kieran Kelleher wrote:

 You could have 10 Properties files ...
 
 Properties.config01
 Properties.config02
 Properties.config03
 etc.
 
 
 And then in WOMonitor (or even development launch arguments, just specify the 
 property extension as the java user name, in which case ERXProperties will 
 ensure that the properties in that file override all other Properties files. 
 For for a deployed app that you want to run  with Properties.config01, just 
 add this in WOMonitor:
 
 -Duser.name=config01
 
 
 
 
 
 On Apr 2, 2012, at 10:16 AM, Dev WO wrote:
 
 Hi WOmates,
 
 I'm actually rewritting a project to make it more multiple configuration 
 aware.
 
 I need to define a little more the multiple configuration setup:
 -the same code-base will have about 10s different configurations (like 
 language setup and custom UI layout)
 -each configuration would serve in the range of 100s (maybe 1000s) users
 
 My original idea was to create a single project in Eclipse and have a 
 build.xml file for each configuration (providing the language(s), the 
 database connection details, etc), that way I could have a specific database 
 for each configuration and be able to update based on the configuration 
 (like if configuration are used on different timezone, I can have a more 
 optimized downtime window), in addition to isolate the data for each 
 configuration.
 
 I haven't completely look into the build.xml to see if I could use it to 
 achieve per built Properties and includes for example.
 
 But do you think it's the way to do it or is there a better way to manage 
 this, mostly on the maintenance and future development perspective (having a 
 single project seams pretty interesting to me)?
 
 It shouldn't really matter for now, but it would also be my first move into 
 D2W;)
 
 Thanks for your comments,
 
 Xavier
 
 
 ___
 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/archive%40mail-archive.com

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


Re: Localization with US and UK

2011-12-29 Thread Dev WO
Hello Gino,

Someone will probably come up with more details, but I think you can have 
resources like en_us and en_uk if you need something more specific than English.

Xavier

On 29 déc. 2011, at 20:39, Gino Pacitti wrote:

 Hi All
 
 I seemed to be a little stumped with this...
 
 I need to display different values for currency based on Locale and I took a 
 look at this:
 
 http://wiki.wocommunity.org/display/WO/WOnder-ERXLocalizer
 
 Does this work through language ie en for English and fr for French etc...
 
 What happens if you need American and English?
 
 Gino
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.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: Localization with US and UK

2011-12-29 Thread Dev WO
The browser is actually requesting pages based on language preferences (You can 
log the http headers to see what you get). You can also provide links on your 
app that will trigger ERXLocalizer to switch to a specific localization.

Xavier

On 29 déc. 2011, at 21:19, Gino Pacitti wrote:

 If I change the Resources.. how does the app know it is USA and UK?
 
 Gino
 On 29 Dec 2011, at 20:06, Dev WO wrote:
 
 Hello Gino,
 
 Someone will probably come up with more details, but I think you can have 
 resources like en_us and en_uk if you need something more specific than 
 English.
 
 Xavier
 
 On 29 déc. 2011, at 20:39, Gino Pacitti wrote:
 
 Hi All
 
 I seemed to be a little stumped with this...
 
 I need to display different values for currency based on Locale and I took 
 a look at this:
 
 http://wiki.wocommunity.org/display/WO/WOnder-ERXLocalizer
 
 Does this work through language ie en for English and fr for French etc...
 
 What happens if you need American and English?
 
 Gino
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.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/ginokris%40me.com
 
 This email sent to ginok...@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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Multiple websites on Virtualized Server

2011-12-22 Thread Dev WO
Hello Gino,

I'm actually setting up a Linux virtualized server for WO (Debian).
I'm not done yet, but as far as your concerned, a virtualized server is just a 
server, it can have one or multiple IP addresses, but if you have 2 VM, you 
will have at least one IP (different) for each.
So it's basically like having a hardware server.

At least that's what I think, I may change my mind when I'm done;)

Just re-reading your question, each instance must have its own IP(s) like a 
real server.


Xavier

On 22 déc. 2011, at 13:25, Gino Pacitti wrote:

 Hi all
 
 To those who have experience with virtualized Linux server...
 
 If I set up a linux machine with virtualization and set up WO Environments 
 and Apache for each instance -
 
 Does the individual instances of OS use the same IP address shared across 
 OSes?
 
 So if one WOApp  is on domain1.com and on OS Instance 1
 
 And
 
 WOApp2 is on domain2.com and on OS Instance 2
 
 
 How do you deal with Virtual Server configuration?
 
 Gino
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.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: Concurrent request handling

2011-04-07 Thread Dev WO
Hello Chuck,

Sorry to jump into this to add another question:)
But I would have expected the formatter to not be an issue as it's not actually 
writing data.
If you have a stateless app (like full of DA), how would you handle that as you 
can actually put the formatter in Session?
Do you have to put the formatter inside the EO class?

Thanks,

Xavier


On 5 avr. 2011, at 20:17, Chuck Hill wrote:

 Hi Matteo,
 
 I don't think that will cause a deadlock.  It will cause some incorrectly 
 formatted input / output.  The easiest fix is to move this from Application 
 to Session and adjust the bindings.
 
 As for the lockups, you really need to get thread dumps to assess those.  
 jstack is an easy way to do this.
 
 
 Chuck
 
 
 On Apr 5, 2011, at 11:12 AM, Matteo Centro wrote:
 
 Hi Chuck,
 
 could you elaborate more on the shared formatters thing?
 
 Don't Do Stupid Things  :-)  Which boils down to don't share objects that 
 are not thread-safe, or writable data, at the global level unless you have 
 appropriate protection.  Global being either static members or instance 
 variables on your application.  Shared, non-thread safe formatters are a 
 common mistake.
 
 we inherited a project that has random (but infrequent) lockups and I found 
 that in the Application.java
 
 first there is an instance variable
 
 private NSNumberFormatter millionsFormatter;
 
 then a lazy initialization in the accessor method:
 
 public NSNumberFormatter millionsFormatter() {
   if (millionsFormatter ==null) {
 millionsFormatter = new NSNumberFormatter();
 millionsFormatter.setPattern(###,##0.00);
 millionsFormatter.setDecimalSeparator(,);
 millionsFormatter.setThousandSeparator(.);
   }
   return  millionsFormatter;
 }
 
 Could this approach be one of the causes of the lockups? The app runs in 
 multithreaded mode and there are tons of components with WOStrings bound to 
 this formatter...
 
 Thanks,
 
 
 Matteo
 
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Concurrent request handling

2011-04-07 Thread Dev WO
Hello Andrew,

 
 Hi Xavier;
 
 I would suggest not putting the formatter in the EO class because the EO is 
 model layer and the formatter really belong as part of the display logic -- 
 blurring the two eventually ends up causing design problems in the long-haul.

I completely agree with this:)

 I think in the past when faced with this situation, I added accessors to the 
 components' controllers' super-class which then gets or creates a formatter 
 for a particular purpose (data quantity format / timestamp / currency etc...) 
 which is cached in the user info in the WOContext instance for the current 
 request-response cycle.  This approach allows you to re-use the formatters 
 for the request-response cycle and then just allows them to be garbage 
 collected at the end of the cycle.

That means I would have as much formatter instances as there's a request for a 
specific component/page. It's probably not a big deal, it just feels strange to 
me to have something that is application-wide used in a component part.
Would it be a better practice to implement those formatter in a component 
super-class or have them as an interface for the components that need them?

Thanks,

Xavier


 
 cheers.
 
 Sorry to jump into this to add another question:)
 But I would have expected the formatter to not be an issue as it's not
 actually writing data.
 If you have a stateless app (like full of DA), how would you handle that
 as you can actually put the formatter in Session?
 Do you have to put the formatter inside the EO class?
 
 -- 
 Andrew Lindesay
 www.silvereye.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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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


ERXObjectStoreCoordinatorPool, setting maxCoordinators higher than 1 result in unreliable synchronization

2011-04-05 Thread Dev WO
Hi all,

I've been looking into a synchronization issue with Wonder's ERJGroup (Wonder 
from 2011/01/29 with jgroups 2.6.8)
We use to set maxCoordinators=3 (maybe it was a default somewhere), but we 
experienced some unreliable synchronization between 2 apps (a back end and a 
front end). By unreliable I mean most things are working and some other (a 
lot less) are not working. It's always the same objects that either work or not.

So far, we were able to work around this issue by setting maxCoordinators=1, 
which seems weird to me.

Before I try to dig more into this, is there anyone using ERJGroup who already 
had to deal with something like this or has an input?

Thanks,

Xavier

 ___
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: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-03 Thread Dev WO
While working on getting this answered for you, I made a couple more tests and 
here is what I get:

-If I set an external name (Table Name) for the parents entities, the SQL 
generated with EntityModeler for the database creation is still wrong.
But entity.primaryKeyRootName returns CoreTable (which is the external name 
for Core)
And if I run the app, it actually run correctly, generating pKs from the 
CoreTable sequence

So it's kind of a no-issue, as long as you remember that EntityModeler won't 
create things correctly when you setup the database

-If I don't set an external name for the parents entities, the SQL generated 
with EntityModeler for the database creation is wrong.
And entity.primaryKeyRootName returns either Employee or Customer
And if I run the app, it breaks everything by requesting pKs from the 
sub-entities sequences

So I would say there's a bug in WebObjects 5.4 which you can get around by 
providing external name to parent abstract entities.
There's a bug somewhere else that lead EntityModeler to generate the wrong SQL 
when setting up the database.

So I guess it is solved or at least there's a way to make it work thanks to 
this really great community:)

Thanks,

Xavier

On 2 févr. 2011, at 22:59, Mike Schrag wrote:

 i still would like to see what entity.primaryKeyRootName returns for each ... 
 i don't recall what the impl was in 5.4.3 and I don't have it checked out at 
 the moment, but i'm pretty sure that method is the only thing that matters 
 here.
 
 ms
 
 On Feb 2, 2011, at 4:56 PM, Chuck Hill wrote:
 
 
 On Feb 2, 2011, at 1:03 PM, Dev WO wrote:
 
 OK, I tried this actually (even if I don't like that because it creates 
 un-used tables I have to clean;)),
 
 Some databases (FrontBase) need this table as the sequence is attached to it.
 
 
 but still got the wrong inheritance.
 
 So maybe not a winner Chuck;)
 But I would have hoped for;)
 
 Another player? same player shoot again?
 
 With the table name set, what do you see?  What do you expect to see?
 
 
 Chuck
 
 
 On Feb 2, 2011, at 12:56 PM, Dev WO wrote:
 
 
 see what entity.primaryKeyRootName() returns for each of the entities 
 involved ...
 
 actually on your abstract entity, did you set an external name? make 
 sure you set that -- external name on the root entity is what is used in 
 5.4.3 to determine what sequence to generate.
 
 I was about to try this, but actually, where did you set the external 
 name in Entity Modeler?? I just have a name field:(
 
 Xavier
 
 
 ms
 
 On Feb 2, 2011, at 3:42 PM, Chuck Hill wrote:
 
 
 On Feb 2, 2011, at 12:36 PM, Dev WO wrote:
 
 This sounds really familiar ... I think it was a bug in 5.4.3.
 
 OK, and as I wouldn't hold my breath for 5.4.4 is there a way to fix 
 it:)
 
 It can probably be fixed in Wonder.  But first you have to identify 
 where the problem is and what the fix is.  :-)
 
 
 Chuck
 
 
 
 On Feb 2, 2011, at 12:46 PM, Dev WO wrote:
 
 Hello Chuck,
 
 With JavaERJDBCAdaptor or the default JavaJDBCAdaptor, the result is 
 the same, it doesn't conform to the inheritance modeled in 
 EntityModeler.
 I've got to check into ERExtensions if I can find something.
 
 I understand not everyone is using Horizontal Inheritance, but I 
 must not be the only one trying to figure out what's going on with 
 5.4.
 
 Just to make sure, I've created a new Wonder framework, created only 
 an abstract entity and 2 sub-entities with horizontal inheritance, 
 and the generated SQL is not correct, it doesn't conform to the 
 modeled inheritance by requesting sequence for the pk for each 
 sub-entity instead of the abstract parent sequence.
 It looks to me this is a bug, I'm not 100% sure it's in Wonder or 
 Webobjects though. Should I fill a Jira for this? I don't think this 
 could be qualified as a regression as I don't even know if this bug 
 was ever in 5.3.
 
 Thanks for your help,
 
 Xavier
 
 On 1 févr. 2011, at 20:24, Chuck Hill wrote:
 
 Hi Xavier,
 
 
 On Feb 1, 2011, at 12:42 AM, Dev WO wrote:
 
 I'm still trying to figure out what's happening...
 What I have found so far is that:
 
 If I'm doing:
 -latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework 
 and PostgresqlPlugIn.framework from 5.3
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 If I'm doing:
 -latest 5.4 wonder frameworks
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 Try it without JavaERJDBCAdaptor.framework at all (just use 
 JavaJDBCAdaptor.framework)
 
 
 if I'm doing:
 -lastest 5.3 wonder frameworks
 -binding to WebObjects 5.3 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
 wolips.properties)
 = I've got the correct behavior which is inheritance enforced 
 when generating the SQL

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-03 Thread Dev WO
When I look at ERXModel, I only find
er.extensions.ERXModel.useExtendedPrototypes

I'm not sure that's what your talking about.

Is this supposed to fix the SQL generation from EntityModeler or prevent the 
bug at runtime (when there's no external name for parent entity)?

Xavier

On 3 févr. 2011, at 12:39, Mike Schrag wrote:

 I believe you have to opt in to erxmodel (which gives you erxentity).
 
 Sent from my iPhone
 
 On Feb 3, 2011, at 2:20 AM, Dev WO webobje...@anazys.com wrote:
 
 Hello Lachlan,
 
 On 03/02/2011, at 8:59 AM, Mike Schrag wrote:
 
 i still would like to see what entity.primaryKeyRootName returns for each 
 ... i don't recall what the impl was in 5.4.3 and I don't have it checked 
 out at the moment, but i'm pretty sure that method is the only thing that 
 matters here.
 
 The impl in 5.4.3 is wrong. Essentially 5.4.3 introduced a regression, 
 which I recall checking in a fix for in wonder, and I believe it's fixed in 
 5.4.3.1 :) like this:
 if (parent is abstract) {
   return my external name.
 }
 
 Which is just wrong. This was particularly a problem for Vertical 
 Inheritance where various fields ought to have resolved to the parent 
 entity's table (but didn't).
 
 I've never tested horizontal inheritance but you can fix it by:
 a) subclassing EOEntity and overriding primaryKeyRootName etc, or better
 b) use Wonder and if Horizontal Inheritance is a problem, fix it there for 
 all :)
 
 I'm using Wonder, I would have hoped whatever 5.4 bugs would have been fixed 
 already in this Wonder-ful frameworks:)
 
 I'm still digging right now.
 
 Xavier
 
 
 with regards,
 -
 
 Lachlan Deck
 
 
 
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.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/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/archive%40mail-archive.com

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


Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-02 Thread Dev WO
Hello Chuck,

With JavaERJDBCAdaptor or the default JavaJDBCAdaptor, the result is the same, 
it doesn't conform to the inheritance modeled in EntityModeler.
I've got to check into ERExtensions if I can find something.

I understand not everyone is using Horizontal Inheritance, but I must not be 
the only one trying to figure out what's going on with 5.4.

Just to make sure, I've created a new Wonder framework, created only an 
abstract entity and 2 sub-entities with horizontal inheritance, and the 
generated SQL is not correct, it doesn't conform to the modeled inheritance by 
requesting sequence for the pk for each sub-entity instead of the abstract 
parent sequence.
It looks to me this is a bug, I'm not 100% sure it's in Wonder or Webobjects 
though. Should I fill a Jira for this? I don't think this could be qualified as 
a regression as I don't even know if this bug was ever in 5.3.

Thanks for your help,

Xavier

On 1 févr. 2011, at 20:24, Chuck Hill wrote:

 Hi Xavier,
 
 
 On Feb 1, 2011, at 12:42 AM, Dev WO wrote:
 
 I'm still trying to figure out what's happening...
 What I have found so far is that:
 
 If I'm doing:
 -latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
 PostgresqlPlugIn.framework from 5.3
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 If I'm doing:
 -latest 5.4 wonder frameworks
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 Try it without JavaERJDBCAdaptor.framework at all (just use 
 JavaJDBCAdaptor.framework)
 
 
 if I'm doing:
 -lastest 5.3 wonder frameworks
 -binding to WebObjects 5.3 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
 wolips.properties)
 = I've got the correct behavior which is inheritance enforced when 
 generating the SQL in EntityModeler.
 
 So I can say there is something different regarding horizontal inheritance 
 between WebObjects 5.3 and WebObjects 5.4. Based on the first case scenario, 
 it seems the difference occurs within WebObjects frameworks (but maybe 
 something else is involved in the Wonder frameworks in addition to the 2 I 
 keept from 5.3 in the first case).
 
 I don't know if this is to be considered a bug or if there's just something 
 I should add/edit to make horizontal inheritance works under a complete 5.4 
 setup, but the fact that I couldn't find the same issue on the list makes me 
 feel like the issue could at least be fixed on my side.
 
 It might be that few people are using Horizontal Inheritance.I have not 
 noticed any problem with Single Table Inheritance.
 
 
 Any pointer about where to look at to ensure proper horizontal inheritance 
 SQL generation under 5.4?
 
 Based on your evidence, I'd search for primary in ERExtensions.  If nothing 
 else, that will at least show you were in EOF the PK generation  happens.
 
 
 Chuck
 
 
 On 31 janv. 2011, at 18:57, Dev WO wrote:
 
 Hello,
 
 I don't really know where the issue come from, but here's what's happening 
 and what I've already tried to fix it (without a solution so far).
 
 I'm using Eclipse 3.6.1.M20100909 cocoa 64
 WOLips 3.6.6215
 PostgreSQL 8.4
 WO 5.4.3
 
 My previous setup was WO 5.3.3 with the previous major version of Eclipse 
 (Carbon) and WOLips. The following behavior wasn't happening in this setup.
 
 I've got an Abstract entity A and a couple sub-entities, let's say SubA1 
 and SubA2.
 In the previous setup, when I generated the SQL for them, they were both 
 correctly referring to A_seq for their primary key generation (in 
 EntityModeler when generating SQL and while the app was running).
 Now they are referring to SubA1_seq and SubA2_seq (in EntityModeler and 
 while the app is running) which breaks the entire application by providing 
 pk that might be already taken by the other sub-entity...
 
 I first thought it could come from the PosgreSQL plugin framework, but 
 after putting back my previous one, the issue is still there (cleaned the 
 project after updating the framework).
 
 I'll will update WOLips right away to check if it changes anything, but if 
 anyone has an idea on what might cause this issue and even better how to 
 fix it to respect entity inheritance, that would be really nice:)
 
 Thanks,
 
 Xavier
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-02 Thread Dev WO
 This sounds really familiar ... I think it was a bug in 5.4.3.

OK, and as I wouldn't hold my breath for 5.4.4 is there a way to fix it:)

Xavier

 
 ms
 
 On Feb 2, 2011, at 12:46 PM, Dev WO wrote:
 
 Hello Chuck,
 
 With JavaERJDBCAdaptor or the default JavaJDBCAdaptor, the result is the 
 same, it doesn't conform to the inheritance modeled in EntityModeler.
 I've got to check into ERExtensions if I can find something.
 
 I understand not everyone is using Horizontal Inheritance, but I must not be 
 the only one trying to figure out what's going on with 5.4.
 
 Just to make sure, I've created a new Wonder framework, created only an 
 abstract entity and 2 sub-entities with horizontal inheritance, and the 
 generated SQL is not correct, it doesn't conform to the modeled inheritance 
 by requesting sequence for the pk for each sub-entity instead of the 
 abstract parent sequence.
 It looks to me this is a bug, I'm not 100% sure it's in Wonder or Webobjects 
 though. Should I fill a Jira for this? I don't think this could be qualified 
 as a regression as I don't even know if this bug was ever in 5.3.
 
 Thanks for your help,
 
 Xavier
 
 On 1 févr. 2011, at 20:24, Chuck Hill wrote:
 
 Hi Xavier,
 
 
 On Feb 1, 2011, at 12:42 AM, Dev WO wrote:
 
 I'm still trying to figure out what's happening...
 What I have found so far is that:
 
 If I'm doing:
 -latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
 PostgresqlPlugIn.framework from 5.3
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 If I'm doing:
 -latest 5.4 wonder frameworks
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 Try it without JavaERJDBCAdaptor.framework at all (just use 
 JavaJDBCAdaptor.framework)
 
 
 if I'm doing:
 -lastest 5.3 wonder frameworks
 -binding to WebObjects 5.3 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
 wolips.properties)
 = I've got the correct behavior which is inheritance enforced when 
 generating the SQL in EntityModeler.
 
 So I can say there is something different regarding horizontal inheritance 
 between WebObjects 5.3 and WebObjects 5.4. Based on the first case 
 scenario, it seems the difference occurs within WebObjects frameworks (but 
 maybe something else is involved in the Wonder frameworks in addition to 
 the 2 I keept from 5.3 in the first case).
 
 I don't know if this is to be considered a bug or if there's just 
 something I should add/edit to make horizontal inheritance works under a 
 complete 5.4 setup, but the fact that I couldn't find the same issue on 
 the list makes me feel like the issue could at least be fixed on my side.
 
 It might be that few people are using Horizontal Inheritance.I have not 
 noticed any problem with Single Table Inheritance.
 
 
 Any pointer about where to look at to ensure proper horizontal inheritance 
 SQL generation under 5.4?
 
 Based on your evidence, I'd search for primary in ERExtensions.  If 
 nothing else, that will at least show you were in EOF the PK generation  
 happens.
 
 
 Chuck
 
 
 On 31 janv. 2011, at 18:57, Dev WO wrote:
 
 Hello,
 
 I don't really know where the issue come from, but here's what's 
 happening and what I've already tried to fix it (without a solution so 
 far).
 
 I'm using Eclipse 3.6.1.M20100909 cocoa 64
 WOLips 3.6.6215
 PostgreSQL 8.4
 WO 5.4.3
 
 My previous setup was WO 5.3.3 with the previous major version of Eclipse 
 (Carbon) and WOLips. The following behavior wasn't happening in this 
 setup.
 
 I've got an Abstract entity A and a couple sub-entities, let's say SubA1 
 and SubA2.
 In the previous setup, when I generated the SQL for them, they were both 
 correctly referring to A_seq for their primary key generation (in 
 EntityModeler when generating SQL and while the app was running).
 Now they are referring to SubA1_seq and SubA2_seq (in EntityModeler and 
 while the app is running) which breaks the entire application by 
 providing pk that might be already taken by the other sub-entity...
 
 I first thought it could come from the PosgreSQL plugin framework, but 
 after putting back my previous one, the issue is still there (cleaned the 
 project after updating the framework).
 
 I'll will update WOLips right away to check if it changes anything, but 
 if anyone has an idea on what might cause this issue and even better how 
 to fix it to respect entity inheritance, that would be really nice:)
 
 Thanks,
 
 Xavier
 ___
 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

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-02 Thread Dev WO
Sure Dave, here they are:

parent entity
{
attributes = (
{allowsNull = N; name = id; prototypeName = id; }, 
{allowsNull = Y; columnName = name; name = name; prototypeName = 
varchar255; }
); 
attributesUsedForLocking = (id); 
className = com.anazys.tempFrameworkWonder54.Core; 
classProperties = (name); 
fetchSpecificationDictionary = {}; 
isAbstractEntity = Y; 
name = Core; 
primaryKeyAttributes = (id); 
}

subclass Employee
{
attributes = (
{allowsNull = N; name = id; prototypeName = id; }, 
{allowsNull = Y; columnName = name; name = name; prototypeName = 
varchar255; }
); 
attributesUsedForLocking = (id); 
className = com.anazys.tempFrameworkWonder54.Employee; 
classProperties = (name); 
externalName = Employee; 
fetchSpecificationDictionary = {}; 
name = Employee; 
parent = Core; 
primaryKeyAttributes = (id); 
}

subclass Customer
{
attributes = (
{allowsNull = N; name = id; prototypeName = id; }, 
{allowsNull = Y; columnName = name; name = name; prototypeName = 
varchar255; }
); 
attributesUsedForLocking = (id); 
className = com.anazys.tempFrameworkWonder54.Customer; 
classProperties = (name); 
externalName = Customer; 
fetchSpecificationDictionary = {}; 
name = Customer; 
parent = Core; 
primaryKeyAttributes = (id); 
}


I could edit the code for the SQL when generating the database, but the issue 
is really in production, if I update the app, it will start to generate pk 
based on the sub-entity, and I will end up with duplicate pks between various 
sub-classes.
So the SQL generated by EntityModeler is just a way to check if it's going to 
break the current app, not really for that specific action.

Xavier


On 2 févr. 2011, at 19:05, David Avendasora wrote:

 Hi Xavier,
 
 Can you paste the .plist files for the three Entities (the super and two 
 subclasses) into this email? I'm suspecting that there maybe something wrong 
 with the way it is modeled...
 
 What if you manually create the database tables and the sequence instead of 
 letting EntityModeler generate the SQL for them? Does creating and saving new 
 instances of the subclasses work? What I'm trying to figure out is if this is 
 a problem with just the Create Table statements generated by the plugin, or a 
 more fundamental problem with how EOF is using Horizontal Inheritance.
 
 Dave
 
 On Feb 2, 2011, at 12:46 PM, Dev WO wrote:
 
 Hello Chuck,
 
 With JavaERJDBCAdaptor or the default JavaJDBCAdaptor, the result is the 
 same, it doesn't conform to the inheritance modeled in EntityModeler.
 I've got to check into ERExtensions if I can find something.
 
 I understand not everyone is using Horizontal Inheritance, but I must not be 
 the only one trying to figure out what's going on with 5.4.
 
 Just to make sure, I've created a new Wonder framework, created only an 
 abstract entity and 2 sub-entities with horizontal inheritance, and the 
 generated SQL is not correct, it doesn't conform to the modeled inheritance 
 by requesting sequence for the pk for each sub-entity instead of the 
 abstract parent sequence.
 It looks to me this is a bug, I'm not 100% sure it's in Wonder or Webobjects 
 though. Should I fill a Jira for this? I don't think this could be qualified 
 as a regression as I don't even know if this bug was ever in 5.3.
 
 Thanks for your help,
 
 Xavier
 
 On 1 févr. 2011, at 20:24, Chuck Hill wrote:
 
 Hi Xavier,
 
 
 On Feb 1, 2011, at 12:42 AM, Dev WO wrote:
 
 I'm still trying to figure out what's happening...
 What I have found so far is that:
 
 If I'm doing:
 -latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
 PostgresqlPlugIn.framework from 5.3
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 If I'm doing:
 -latest 5.4 wonder frameworks
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 Try it without JavaERJDBCAdaptor.framework at all (just use 
 JavaJDBCAdaptor.framework)
 
 
 if I'm doing:
 -lastest 5.3 wonder frameworks
 -binding to WebObjects 5.3 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
 wolips.properties)
 = I've got the correct behavior which is inheritance enforced when 
 generating the SQL in EntityModeler.
 
 So I can say there is something different regarding horizontal inheritance 
 between WebObjects 5.3 and WebObjects 5.4. Based on the first case 
 scenario, it seems the difference occurs within WebObjects frameworks (but 
 maybe something else is involved in the Wonder frameworks in addition to 
 the 2 I keept from 5.3 in the first case).
 
 I don't know if this is to be considered a bug or if there's just 
 something I

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-02 Thread Dev WO

 see what entity.primaryKeyRootName() returns for each of the entities 
 involved ...
 
 actually on your abstract entity, did you set an external name? make sure you 
 set that -- external name on the root entity is what is used in 5.4.3 to 
 determine what sequence to generate.

I was about to try this, but actually, where did you set the external name in 
Entity Modeler?? I just have a name field:(

Xavier

 
 ms
 
 On Feb 2, 2011, at 3:42 PM, Chuck Hill wrote:
 
 
 On Feb 2, 2011, at 12:36 PM, Dev WO wrote:
 
 This sounds really familiar ... I think it was a bug in 5.4.3.
 
 OK, and as I wouldn't hold my breath for 5.4.4 is there a way to fix it:)
 
 It can probably be fixed in Wonder.  But first you have to identify where 
 the problem is and what the fix is.  :-)
 
 
 Chuck
 
 
 
 On Feb 2, 2011, at 12:46 PM, Dev WO wrote:
 
 Hello Chuck,
 
 With JavaERJDBCAdaptor or the default JavaJDBCAdaptor, the result is the 
 same, it doesn't conform to the inheritance modeled in EntityModeler.
 I've got to check into ERExtensions if I can find something.
 
 I understand not everyone is using Horizontal Inheritance, but I must not 
 be the only one trying to figure out what's going on with 5.4.
 
 Just to make sure, I've created a new Wonder framework, created only an 
 abstract entity and 2 sub-entities with horizontal inheritance, and the 
 generated SQL is not correct, it doesn't conform to the modeled 
 inheritance by requesting sequence for the pk for each sub-entity instead 
 of the abstract parent sequence.
 It looks to me this is a bug, I'm not 100% sure it's in Wonder or 
 Webobjects though. Should I fill a Jira for this? I don't think this 
 could be qualified as a regression as I don't even know if this bug was 
 ever in 5.3.
 
 Thanks for your help,
 
 Xavier
 
 On 1 févr. 2011, at 20:24, Chuck Hill wrote:
 
 Hi Xavier,
 
 
 On Feb 1, 2011, at 12:42 AM, Dev WO wrote:
 
 I'm still trying to figure out what's happening...
 What I have found so far is that:
 
 If I'm doing:
 -latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
 PostgresqlPlugIn.framework from 5.3
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 If I'm doing:
 -latest 5.4 wonder frameworks
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 Try it without JavaERJDBCAdaptor.framework at all (just use 
 JavaJDBCAdaptor.framework)
 
 
 if I'm doing:
 -lastest 5.3 wonder frameworks
 -binding to WebObjects 5.3 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
 wolips.properties)
 = I've got the correct behavior which is inheritance enforced when 
 generating the SQL in EntityModeler.
 
 So I can say there is something different regarding horizontal 
 inheritance between WebObjects 5.3 and WebObjects 5.4. Based on the 
 first case scenario, it seems the difference occurs within WebObjects 
 frameworks (but maybe something else is involved in the Wonder 
 frameworks in addition to the 2 I keept from 5.3 in the first case).
 
 I don't know if this is to be considered a bug or if there's just 
 something I should add/edit to make horizontal inheritance works under 
 a complete 5.4 setup, but the fact that I couldn't find the same issue 
 on the list makes me feel like the issue could at least be fixed on my 
 side.
 
 It might be that few people are using Horizontal Inheritance.I have 
 not noticed any problem with Single Table Inheritance.
 
 
 Any pointer about where to look at to ensure proper horizontal 
 inheritance SQL generation under 5.4?
 
 Based on your evidence, I'd search for primary in ERExtensions.  If 
 nothing else, that will at least show you were in EOF the PK generation  
 happens.
 
 
 Chuck
 
 
 On 31 janv. 2011, at 18:57, Dev WO wrote:
 
 Hello,
 
 I don't really know where the issue come from, but here's what's 
 happening and what I've already tried to fix it (without a solution so 
 far).
 
 I'm using Eclipse 3.6.1.M20100909 cocoa 64
 WOLips 3.6.6215
 PostgreSQL 8.4
 WO 5.4.3
 
 My previous setup was WO 5.3.3 with the previous major version of 
 Eclipse (Carbon) and WOLips. The following behavior wasn't happening 
 in this setup.
 
 I've got an Abstract entity A and a couple sub-entities, let's say 
 SubA1 and SubA2.
 In the previous setup, when I generated the SQL for them, they were 
 both correctly referring to A_seq for their primary key generation (in 
 EntityModeler when generating SQL and while the app was running).
 Now they are referring to SubA1_seq and SubA2_seq (in EntityModeler 
 and while the app is running) which breaks the entire application by 
 providing pk that might be already taken by the other sub-entity...
 
 I first thought it could come from the PosgreSQL plugin framework, but 
 after

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-02 Thread Dev WO
OK, I tried this actually (even if I don't like that because it creates un-used 
tables I have to clean;)), but still got the wrong inheritance.

So maybe not a winner Chuck;)
But I would have hoped for;)

Another player? same player shoot again?

Xavier



 It is called Table Name in Entity Modeler:
 PastedGraphic-1.pdf
 
 
 
 On Feb 2, 2011, at 12:56 PM, Dev WO wrote:
 
 
 see what entity.primaryKeyRootName() returns for each of the entities 
 involved ...
 
 actually on your abstract entity, did you set an external name? make sure 
 you set that -- external name on the root entity is what is used in 5.4.3 
 to determine what sequence to generate.
 
 I was about to try this, but actually, where did you set the external name 
 in Entity Modeler?? I just have a name field:(
 
 Xavier
 
 
 ms
 
 On Feb 2, 2011, at 3:42 PM, Chuck Hill wrote:
 
 
 On Feb 2, 2011, at 12:36 PM, Dev WO wrote:
 
 This sounds really familiar ... I think it was a bug in 5.4.3.
 
 OK, and as I wouldn't hold my breath for 5.4.4 is there a way to fix it:)
 
 It can probably be fixed in Wonder.  But first you have to identify where 
 the problem is and what the fix is.  :-)
 
 
 Chuck
 
 
 
 On Feb 2, 2011, at 12:46 PM, Dev WO wrote:
 
 Hello Chuck,
 
 With JavaERJDBCAdaptor or the default JavaJDBCAdaptor, the result is 
 the same, it doesn't conform to the inheritance modeled in 
 EntityModeler.
 I've got to check into ERExtensions if I can find something.
 
 I understand not everyone is using Horizontal Inheritance, but I must 
 not be the only one trying to figure out what's going on with 5.4.
 
 Just to make sure, I've created a new Wonder framework, created only an 
 abstract entity and 2 sub-entities with horizontal inheritance, and the 
 generated SQL is not correct, it doesn't conform to the modeled 
 inheritance by requesting sequence for the pk for each sub-entity 
 instead of the abstract parent sequence.
 It looks to me this is a bug, I'm not 100% sure it's in Wonder or 
 Webobjects though. Should I fill a Jira for this? I don't think this 
 could be qualified as a regression as I don't even know if this bug was 
 ever in 5.3.
 
 Thanks for your help,
 
 Xavier
 
 On 1 févr. 2011, at 20:24, Chuck Hill wrote:
 
 Hi Xavier,
 
 
 On Feb 1, 2011, at 12:42 AM, Dev WO wrote:
 
 I'm still trying to figure out what's happening...
 What I have found so far is that:
 
 If I'm doing:
 -latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
 PostgresqlPlugIn.framework from 5.3
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 If I'm doing:
 -latest 5.4 wonder frameworks
 -binding to WebObjects 5.4 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
 wolips.properties)
 = SQL generation doesn't conform to entity inheritance
 
 Try it without JavaERJDBCAdaptor.framework at all (just use 
 JavaJDBCAdaptor.framework)
 
 
 if I'm doing:
 -lastest 5.3 wonder frameworks
 -binding to WebObjects 5.3 (using 
 wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
 wolips.properties)
 = I've got the correct behavior which is inheritance enforced when 
 generating the SQL in EntityModeler.
 
 So I can say there is something different regarding horizontal 
 inheritance between WebObjects 5.3 and WebObjects 5.4. Based on the 
 first case scenario, it seems the difference occurs within WebObjects 
 frameworks (but maybe something else is involved in the Wonder 
 frameworks in addition to the 2 I keept from 5.3 in the first case).
 
 I don't know if this is to be considered a bug or if there's just 
 something I should add/edit to make horizontal inheritance works 
 under a complete 5.4 setup, but the fact that I couldn't find the 
 same issue on the list makes me feel like the issue could at least be 
 fixed on my side.
 
 It might be that few people are using Horizontal Inheritance.I 
 have not noticed any problem with Single Table Inheritance.
 
 
 Any pointer about where to look at to ensure proper horizontal 
 inheritance SQL generation under 5.4?
 
 Based on your evidence, I'd search for primary in ERExtensions.  If 
 nothing else, that will at least show you were in EOF the PK 
 generation  happens.
 
 
 Chuck
 
 
 On 31 janv. 2011, at 18:57, Dev WO wrote:
 
 Hello,
 
 I don't really know where the issue come from, but here's what's 
 happening and what I've already tried to fix it (without a solution 
 so far).
 
 I'm using Eclipse 3.6.1.M20100909 cocoa 64
 WOLips 3.6.6215
 PostgreSQL 8.4
 WO 5.4.3
 
 My previous setup was WO 5.3.3 with the previous major version of 
 Eclipse (Carbon) and WOLips. The following behavior wasn't happening 
 in this setup.
 
 I've got an Abstract entity A and a couple sub-entities, let's say 
 SubA1 and SubA2.
 In the previous setup, when I generated the SQL for them, they were 
 both correctly referring to A_seq

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-02 Thread Dev WO
Hi David,

 Hi Xavier,
 
 Hmmm. As a complete aside to the SQL generation issue, are you _sure_ you 
 need inheritance for this?
 
 In your app, what happens if an employee wants to buy something from you? 
 They can't be both a customer and an employee. Don't make the mistake of 
 thinking you can change change which class a person is.
 
 Using inheritance in this type of situation is almost always the wrong way to 
 go. I'd probably model this as a person being able to have multiple roles and 
 you'd get all the customers by doing something along the lines of Get all 
 person objects that have relationship to the customer type. In Wonder: 
 
 NSArrayPerson customers = Person.fetchAll(ec, 
 Person.ROLES.contains(Role.customerRole()));
 
 You can then have different behaviors for different roles by using delegates 
 that encapsulate the role-specific behaviors. Replace the idea of IS-A 
 (person) with HAS-A (role).
 
 Much more flexible, and it gets rid of Inheritance in your EOModel.

I totally agree that this specific example is not really interesting, but it 
was just to showcase the issue.
But I do use quit a lot horizontal inheritance, for products in an online 
store, etc. I just can't get rid of them. Some projects are just in maintenance 
mode, we won't rewrite them at such a lower level. New projects are using less 
horizontal inheritance, but still some;) So I have to figure out how to fix 
this 5.4 feature;)

Xavier

 
 Dave
 
 
 On Feb 2, 2011, at 3:42 PM, Dev WO wrote:
 
 Sure Dave, here they are:
 
 parent entity
 {
   attributes = (
   {allowsNull = N; name = id; prototypeName = id; }, 
   {allowsNull = Y; columnName = name; name = name; prototypeName = 
 varchar255; }
   ); 
   attributesUsedForLocking = (id); 
   className = com.anazys.tempFrameworkWonder54.Core; 
   classProperties = (name); 
   fetchSpecificationDictionary = {}; 
   isAbstractEntity = Y; 
   name = Core; 
   primaryKeyAttributes = (id); 
 }
 
 subclass Employee
 {
   attributes = (
   {allowsNull = N; name = id; prototypeName = id; }, 
   {allowsNull = Y; columnName = name; name = name; prototypeName = 
 varchar255; }
   ); 
   attributesUsedForLocking = (id); 
   className = com.anazys.tempFrameworkWonder54.Employee; 
   classProperties = (name); 
   externalName = Employee; 
   fetchSpecificationDictionary = {}; 
   name = Employee; 
   parent = Core; 
   primaryKeyAttributes = (id); 
 }
 
 subclass Customer
 {
   attributes = (
   {allowsNull = N; name = id; prototypeName = id; }, 
   {allowsNull = Y; columnName = name; name = name; prototypeName = 
 varchar255; }
   ); 
   attributesUsedForLocking = (id); 
   className = com.anazys.tempFrameworkWonder54.Customer; 
   classProperties = (name); 
   externalName = Customer; 
   fetchSpecificationDictionary = {}; 
   name = Customer; 
   parent = Core; 
   primaryKeyAttributes = (id); 
 }
 
 
 
 I could edit the code for the SQL when generating the database, but the 
 issue is really in production, if I update the app, it will start to 
 generate pk based on the sub-entity, and I will end up with duplicate pks 
 between various sub-classes.
 So the SQL generated by EntityModeler is just a way to check if it's going 
 to break the current app, not really for that specific action.
 
 Xavier
 
 
 On 2 févr. 2011, at 19:05, David Avendasora wrote:
 
 Hi Xavier,
 
 Can you paste the .plist files for the three Entities (the super and two 
 subclasses) into this email? I'm suspecting that there maybe something 
 wrong with the way it is modeled...
 
 What if you manually create the database tables and the sequence instead of 
 letting EntityModeler generate the SQL for them? Does creating and saving 
 new instances of the subclasses work? What I'm trying to figure out is if 
 this is a problem with just the Create Table statements generated by the 
 plugin, or a more fundamental problem with how EOF is using Horizontal 
 Inheritance.
 
 Dave
 
 On Feb 2, 2011, at 12:46 PM, Dev WO wrote:
 
 Hello Chuck,
 
 With JavaERJDBCAdaptor or the default JavaJDBCAdaptor, the result is the 
 same, it doesn't conform to the inheritance modeled in EntityModeler.
 I've got to check into ERExtensions if I can find something.
 
 I understand not everyone is using Horizontal Inheritance, but I must not 
 be the only one trying to figure out what's going on with 5.4.
 
 Just to make sure, I've created a new Wonder framework, created only an 
 abstract entity and 2 sub-entities with horizontal inheritance, and the 
 generated SQL is not correct, it doesn't conform to the modeled 
 inheritance by requesting sequence for the pk for each sub-entity instead 
 of the abstract parent sequence.
 It looks to me this is a bug, I'm not 100% sure it's in Wonder or 
 Webobjects though. Should I fill a Jira for this? I don't think this could 
 be qualified as a regression as I don't even know if this bug was ever in 
 5.3.
 
 Thanks for your help,
 
 Xavier
 
 On 1 févr. 2011, at 20:24

Re: Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-02 Thread Dev WO
Hello Lachlan,

 On 03/02/2011, at 8:59 AM, Mike Schrag wrote:
 
 i still would like to see what entity.primaryKeyRootName returns for each 
 ... i don't recall what the impl was in 5.4.3 and I don't have it checked 
 out at the moment, but i'm pretty sure that method is the only thing that 
 matters here.
 
 The impl in 5.4.3 is wrong. Essentially 5.4.3 introduced a regression, which 
 I recall checking in a fix for in wonder, and I believe it's fixed in 5.4.3.1 
 :) like this:
 if (parent is abstract) {
   return my external name.
 }
 
 Which is just wrong. This was particularly a problem for Vertical Inheritance 
 where various fields ought to have resolved to the parent entity's table (but 
 didn't).
 
 I've never tested horizontal inheritance but you can fix it by:
 a) subclassing EOEntity and overriding primaryKeyRootName etc, or better
 b) use Wonder and if Horizontal Inheritance is a problem, fix it there for 
 all :)

I'm using Wonder, I would have hoped whatever 5.4 bugs would have been fixed 
already in this Wonder-ful frameworks:)

I'm still digging right now.

Xavier

 
 with regards,
 -
 
 Lachlan Deck
 
 
 
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.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


Horizontal inheritance mismatch between WebObjects 5.4 and 5.3 [ was: SQL generation doesn't conform to entity inheritance]

2011-02-01 Thread Dev WO
I'm still trying to figure out what's happening...
What I have found so far is that:

If I'm doing:
-latest 5.4 wonder frameworks except JavaERJDBCAdaptor.framework and 
PostgresqlPlugIn.framework from 5.3
-binding to WebObjects 5.4 (using 
wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
wolips.properties)
= SQL generation doesn't conform to entity inheritance

If I'm doing:
-latest 5.4 wonder frameworks
-binding to WebObjects 5.4 (using 
wo.system.frameworks=/System/Library/Frameworks/WebObjects54 in my 
wolips.properties)
= SQL generation doesn't conform to entity inheritance

if I'm doing:
-lastest 5.3 wonder frameworks
-binding to WebObjects 5.3 (using 
wo.system.frameworks=/System/Library/Frameworks/WebObjects53 in my 
wolips.properties)
= I've got the correct behavior which is inheritance enforced when generating 
the SQL in EntityModeler.

So I can say there is something different regarding horizontal inheritance 
between WebObjects 5.3 and WebObjects 5.4. Based on the first case scenario, it 
seems the difference occurs within WebObjects frameworks (but maybe something 
else is involved in the Wonder frameworks in addition to the 2 I keept from 5.3 
in the first case).

I don't know if this is to be considered a bug or if there's just something I 
should add/edit to make horizontal inheritance works under a complete 5.4 
setup, but the fact that I couldn't find the same issue on the list makes me 
feel like the issue could at least be fixed on my side.

Any pointer about where to look at to ensure proper horizontal inheritance SQL 
generation under 5.4?

Thanks,

Xavier


On 31 janv. 2011, at 18:57, Dev WO wrote:

 Hello,
 
 I don't really know where the issue come from, but here's what's happening 
 and what I've already tried to fix it (without a solution so far).
 
 I'm using Eclipse 3.6.1.M20100909 cocoa 64
 WOLips 3.6.6215
 PostgreSQL 8.4
 WO 5.4.3
 
 My previous setup was WO 5.3.3 with the previous major version of Eclipse 
 (Carbon) and WOLips. The following behavior wasn't happening in this setup.
 
 I've got an Abstract entity A and a couple sub-entities, let's say SubA1 and 
 SubA2.
 In the previous setup, when I generated the SQL for them, they were both 
 correctly referring to A_seq for their primary key generation (in 
 EntityModeler when generating SQL and while the app was running).
 Now they are referring to SubA1_seq and SubA2_seq (in EntityModeler and while 
 the app is running) which breaks the entire application by providing pk that 
 might be already taken by the other sub-entity...
 
 I first thought it could come from the PosgreSQL plugin framework, but after 
 putting back my previous one, the issue is still there (cleaned the project 
 after updating the framework).
 
 I'll will update WOLips right away to check if it changes anything, but if 
 anyone has an idea on what might cause this issue and even better how to fix 
 it to respect entity inheritance, that would be really nice:)
 
 Thanks,
 
 Xavier
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.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: Database Connection Question

2010-11-23 Thread Dev WO
Hello Gennady,

 Hello Chuck and others.
 I'd like ask some more questions )
 
 2010/8/27 Chuck Hill ch...@global-village.net:
 
 On Aug 25, 2010, at 11:10 PM, Dov Rosenberg wrote:
 
 I am revisiting some old EOF documentation and wanted to make sure I 
 understood a few things. Are the following statements true?
 
 
 *   When an EOModel is found and connected to a database when the app 
 starts up each database connection is mapped to an EODatabaseChannel?
 
 I think that EODatabaseContext is more correct than EODatabaseChannel.  The 
 context will then use the channel.  A db context can handle multiple models 
 (the connection information needs to be the same).
 
 How can single db context handle multiple models ? I see that
 EODatabaseContext.forceConnectionWithModel(model,cd,ec)
 returns different objects for different models, whereas most of my
 models point to the same database with the same connection dictionary.
 And would it make sense to somehow force all these models to single db 
 context?

If you are using Wonder, you could use the following in your Properties file
## Class name to use instead of the JDBCAdaptor, the ERXJDBCAdaptor supports
## connection pooling
er.extensions.ERXJDBCAdaptor.className=er.extensions.jdbc.ERXJDBCAdaptor


 
 Is there a default number of EODatabaseChannels opened when the app starts 
 up? Is there a configuration setting that I can set to add more?
 
 One per db context and no.
 My problem is that I see my app opening more connections than a number
 of models it has.
 And those connections do not close even after more than an hour not
 used. And it does not reuse all of them for later requests but may
 create even more connections.
 As a result when running multiple instances on a server with limited
 DB-connections I do get too many connections error sometimes.
 
 How could I fight it? Is it possible to control the number of open
 connections and close unused ones after certain idle time?

Can't respond on this one, but the property above should fix all this.

Xavier

 
 Gennady Kushnir
 
 Chuck
 
 
 --
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: [OT] Apache rewrite rule

2010-11-03 Thread Dev WO
Hello Jeff,

On your server you may have virtual host setup, so the rewrite rule has to be 
put inside the virtual host configuration /etc/apache2/sites/ for each site 
that need it.

Xavier



 Did this on my dev machine and it worked great, but on my leopard server 
 deployment machine I added the same entry in /etc/apache2/httpd.conf and no 
 dice.  The shorter URL's are being output from my app using the Wonder 
 er.extensions.ERXApplication.replaceApplicationPath properties, but I get the 
 requested URL not found error when I click on one of them.  Nothing in the 
 rewrite.log file.  Is there some other property to set in httpd.conf or 
 elsewhere?
 
 Thanks,
 Jeff
 
 
 On Apr 16, 2009, at 9:50 AM, Kieran Kelleher wrote:
 
 Finally! Searching the apache docs more, I found another option PT, the 
 passthrough option, that specifically refers to this being needed for 
 mod_alias or using mod_rewrite with any other modules that do 
 URI-to-filename mapping or translation.
 
 The final working rewrite rule is:
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /var/log/apache2/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [PT]
 /IfModule
 
 Thanks for the mind-prodding guys.
 
 Now it is working in apache2 on my dev machine. Hopefully apache 1.3 will be 
 similar configuration when I deploy this feature in a few days.
 
 Regards, Kieran
 
 On Apr 16, 2009, at 10:28 AM, Kieran Kelleher wrote:
 
 I added an [R] option on the end of the rule to force an external redirect 
 and it works, albeit the URL in the browser address bar becomes the ugly 
 one. So, at least this is returning the page ... not let's see if I can 
 make it do without an external redirect so that the short URL stays in the 
 browser address bar  (since the marketing design spec wants the short 
 URL)
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /tmp/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [R]
 /IfModule
 
 
 On Apr 16, 2009, at 10:17 AM, Kieran Kelleher wrote:
 
 I am using WO 5.3 on leopard with apache 2.2.9. The wo module is coming 
 before rewrite module in httpd.conf:
 LoadModule WebObjects_module 
 /System/Library/WebObjects/Adaptors/Apache2.2/mod_WebObjects.so
 LoadModule rewrite_module libexec/apache2/mod_rewrite.so
 
 Further investigation shows that each time I try to access the short URL, 
 I see the following error in the apache error_log:
 [Thu Apr 16 10:12:15 2009] [error] [client ::1] File does not exist: 
 /Library/WebServer/Documents/cgi-bin
 
 So just maybe the rewrite rule is working but the result may be 
 conflicting with mod_alias which has a scriptalias entry for the wo 
 cgi-bin???
 
 Does that ring any bells with anyone?
 
 Kieran
 
 
 
 On Apr 16, 2009, at 10:08 AM, Mike Schrag wrote:
 
 if you're rewriting to wo instances, you need to make sure the ordering 
 of your modules is right, too ... in 5.3 (i don't know about 5.4), the 
 order of the modules was wrong -- you have to make mod_webobjects come 
 before mod_rewrite (iirc).
 
 ms
 
 On Apr 16, 2009, at 9:25 AM, Kieran Kelleher wrote:
 
 Hello list,
 
 Well when Brian Moore said mod_rewrite was voodoo 
 (http://httpd.apache.org/docs/2.2/rewrite/), I was skeptical, but now I 
 believe him! I need some help for what I think should be a pretty simple 
 rewrite rule. I am currently trying to get this to work initially on my 
 development machine, and I keep getting a 404 Not Found message from 
 apache (version 2.2.9).
 
 The rule is supposed to take convert URLs like this :
 http://localhost/purl/KieranKelleher
 
 and rewrite them like this (on my dev machine):
 http://localhost/cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=KieranKelleher
 
 I have added this to the end of my /etc/apache2/httpd.conf just before 
 the last 2 includes at the end of the file (other/*.conf and WO 
 apache.conf)
 
 IfModule rewrite_module
 # rewrite logging
 RewriteLog /tmp/rewrite.log
 
 # PURL feature
 RewriteEngine On
 RewriteRule ^/purl/(.*)$ 
 /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1
 /IfModule
 
 I can confirm that when I restarted apache it creates the 
 /tmp/rewrite.log if it does not exist, however nothing gets written 
 there.
 
 I have studied the docs, the wiki docs and many examples. This looks 
 like it should work, but I cannot for the life of me figure out why it 
 does not work :-(
 
 Any clues or hints would be appreciated.
 
 Thanks, Kieran
 ___
 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
 
 
 

Re: Oracle EOModel connection [Solved]

2010-09-22 Thread Dev WO
Oups forgot to reply all

Actually it went pretty smoothly.
I added the jdbc connector ojdbc14_10203.jar
I didn't need to fill the Driver and PlugIn name in EntityModeler.

The only issue I had was that the SQL was requesting uppercase variable names 
and it would work as it was lowercase in the database (it was a View, not a 
real database).
I didn't take the time to search for the uppercase issue as it was easy to 
change directly in the View.

Thanks Pascal and Chuck for your help, I was able to deliver on time and fully 
functional;)

Xavier


 
 On Sep 21, 2010, at 12:01 PM, Dev WO wrote:
 
 Hello Chuck,
 
 I'm making a fully embedded app, so I think I have to get/add a specific 
 jdbc driver (I'm still wondering which name to put for Driver and PlugIn 
 in EntityModeler or if it's not relevant).
 
 If there is a driver in the Java Extensions directory of the machine you run 
 the app on, it will be used _in place of_ the one embedded in your 
 application.  That is something to be aware of.
 
 driver is the fully qualified class name of the main class of the JDBC 
 driver.  Consult the driver documentation for this.  This is only needed if 
 EOF / Java can't auto-detect it.
 
 Plugin is the fully qualified class name of the EOF plugin for the database 
 you are using.  This is only needed if EOF can't auto-detect it.
 
 
 I think I should use the Release 2 for the following page actually:
 http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
 
 Am I correct?
 
 I have not kept up with Oracle JDBC drivers.
 
 
 Chuck
 
 
 
 These usually go in /Library/Java/Extensions and get picked up 
 automatically.
 
 On Sep 21, 2010, at 11:33 AM, Dev WO wrote:
 
 What would be the name to fill for the Driver and PlugIn in 
 EntityModeler?
 
 I was also wondering if there is a needed jdbc driver to download and to 
 add to the classpath?
 
 Thanks,
 
 Xavier
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 
 
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (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


Oracle EOModel connection

2010-09-21 Thread Dev WO
Hello,

I have to connect to a remote server hosting an Oracle 10g database. More 
precisely, the server is:
OS: linux RedHat X64
DB:Oracle 10G standard One

It seems the URL to enter in the EOModel would be:
jdbc:oracle:thin:@IP_ADDRESS:PORT:DATABASE

I'm not really used to connect to either Oracle or remotely. Does this sound 
good to you? I'm also usually use / in my URL, so the : makes me wonder if 
there's something I should know about...

In addition to that, I added the following frameworks to my project (I'm using 
Wonder and ERPrototypes):
JavaERJDBCAdapator
EROraclePlugin

What would be the name to fill for the Driver and PlugIn in EntityModeler?

Thanks for your help, I'm not changing database often enough;)

Xavier


 ___
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: Oracle EOModel connection

2010-09-21 Thread Dev WO
Hello Pascal,

 
 Le 2010-09-21 à 10:21, Dev WO a écrit :
 
 Hello,
 
 I have to connect to a remote server hosting an Oracle 10g database. More 
 precisely, the server is:
 OS: linux RedHat X64
 DB:Oracle 10G standard One
 
 It seems the URL to enter in the EOModel would be:
 jdbc:oracle:thin:@IP_ADDRESS:PORT:DATABASE
 
 This is what we have too. jdbc:oracle:thin:@myhost.com:1521:DBINSTANCE
 
 I'm not really used to connect to either Oracle or remotely. Does this sound 
 good to you? I'm also usually use / in my URL, so the : makes me wonder 
 if there's something I should know about...
 
 Can you connect with other tools, like Oracle SQL Developer? It might be a 
 network problem (wrong routes, firewall, etc.)

Actually I'll be able to connect (and deploy) tomorrow and it has to work right 
away;) It's a really small stuff, but I wasn't really expected : but if you 
have the same for you, it might be good:)

 In addition to that, I added the following frameworks to my project (I'm 
 using Wonder and ERPrototypes):
 JavaERJDBCAdapator
 EROraclePlugin
 
 What would be the name to fill for the Driver and PlugIn in EntityModeler?

I'll be happy to have your input on this one:)

Thanks Pascal,

Xavier

 ___
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: Oracle EOModel connection

2010-09-21 Thread Dev WO
 What would be the name to fill for the Driver and PlugIn in EntityModeler?

I was also wondering if there is a needed jdbc driver to download and to add to 
the classpath?

Thanks,

Xavier

 ___
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: Oracle EOModel connection

2010-09-21 Thread Dev WO
Hello Chuck,

I'm making a fully embedded app, so I think I have to get/add a specific jdbc 
driver (I'm still wondering which name to put for Driver and PlugIn in 
EntityModeler or if it's not relevant).
I think I should use the Release 2 for the following page actually:
http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html

Am I correct?

Xavier




 These usually go in /Library/Java/Extensions and get picked up automatically.
 
 On Sep 21, 2010, at 11:33 AM, Dev WO wrote:
 
 What would be the name to fill for the Driver and PlugIn in EntityModeler?
 
 I was also wondering if there is a needed jdbc driver to download and to add 
 to the classpath?
 
 Thanks,
 
 Xavier
 
 ___
 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/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/products/practical_webobjects
 
 
 
 
 
 
 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (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


[OT] - WWDC10

2010-04-28 Thread Dev WO
Hello womates,

just in case there are some of you with a still working ADC Premium with an 
e-ticket for WWDC2010 and they won't attend, maybe those tickets can be of help 
for some of us:)
Basically it could be a list of everyone who are going to attend and the 
number of available tickets. We could put that all together and see how much 
we need to add to get tickets for all the attendee.
If there's only a couple of e-tickets available I vote for giving it to the 
oversea active person on the list like Anjo for exemple.

I think we need to move fast, tickets sold out really quickly last year.

Xavier
 ___
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: announcement

2010-04-23 Thread Dev WO
June 2123, a couple days before WWDC '123, Mike The Unstoppable Code Machine 
Schrag passed away.
Using WebObjects, Wonder and WOLips, he was able to last more than any other 
software-enhanced humans (namely phpmen and railsmen).
We will miss his craziness, friendship and community contributions.

Congratulations Mike, I'm sure you'll still be active in this mailing list. 
It's a good opportunity to also thank all the other contributors (I won't name 
anyone;)).

See you at WWDC '10.

Xavier


 thanks everyone for all the nice comments ... i should print all these out 
 and reuse them at my funeral!
 
 ms
 
 On Apr 23, 2010, at 3:59 AM, Matthias Jakob wrote:
 
 Hi!
 
 Yes Dave, me to. Mike is one of the best developers here ... itself deeply 
 bowing ..
 
 Matthias
 
 Message: 3
 Date: Thu, 22 Apr 2010 11:45:31 -0400
 From: David Avendasora webobje...@avendasora.com
 Subject: Re: announcement
 To: Alan Ward aw...@apple.com
 Cc: WO Dev Group webobjects-dev@lists.apple.com
 Message-ID: 53234977-4085-43c2-a4a9-41b1b6789...@avendasora.com
 Content-Type: text/plain; charset=us-ascii
 
  :-) I think we're all hoping/expecting that that's the case, but there's 
  been others who start working at Apple and then suddenly stop posting, or 
  only post rarely. 
 
  With someone as high profile and insanely helpful as Mike I think many of 
  us are just a little nervous about it.
 
 Dave
 ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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: Server Redundancy for WO Apps

2010-03-11 Thread Dev WO
Hello Gino,

If you'd like to be able to failover either a service or a server, you will 
have to go through the data synchronization issue.
I think synchronizing things are really hard, like web server resources, 
databases etc. So the first step would be to get the data storage out of the 
Xserve.

Here's what we have done, it may not be exactly what you are looking for, but 
it should give you some clues:
-We invested in a Promise Vtrack and Xsan to get a clustered filesystem, so 
every xsan clients (which are only xserves) can access the external storage all 
the time
-We symlinked the database, the webserver folder and the webobjects folder into 
the Xsan storage, that way, everything is already external to each xserve
-You could even go as far as symlinked your config files for Apache, wotaskd, 
etc but it means you won't be able to load balance between servers (at least 
not with global config files) which may not be an issue

You would still get downtimes with this setup mainly because of DNS, as it may 
take some time to update the records to the failover xserve, but the failover 
xserve could do other services, it will only be a little more loaded if the 
first one fail.

If you want zero downtime, you could setup something like this, you would need:
-3 xserves
-1 Promise vtrack
-Xsan

Xserve A would be the meta-data controller for Xsan and also an Open Directory 
replica
Xserve B would be your main server with all the services, but every data and 
config files would be symlinked onto the Xsan volume (it would be good if it is 
also a secondary metadata controller)
Xserve C would be setup as a failover server, so it would take the IP of Xserve 
B in case of failure, and as all the data are on the Xsan volume, it should 
work smoothly

Xserve C can't do anything, it will only be able to get B services if it fails, 
and do nothing if everything is working on B.

The biggest psychological issue I add to go through when we setup our Xsan grid 
was to accept to have an Xserve dedicated to nothing (just providing the 
clustered metadata to the clients)... and in the setup above, you would even 
get only one Xserve out of the 3 which is actually doing something.

But you would get a great deal of uptime availability.

Xsan, with the fiber switch and the complete setup is expensive, but it may be 
worth it for the targeted availability.


Anyway, one of the first step for high availability is getting every data 
external so another server could access them.


I hope it gives you some pointers,

Xavier


 Hi there..
 
 Maybe this is a little off list as its not a development question
 But I have a main Xserve running about 10 Apps for clients and there has been 
 various outages caused by DNS, Hard Drive or Power failures occurring 
 infrequently but enough to cause concern.
 
 Does anyone have any advice how to set up a redundant server/service and what 
 are the implications?
 ie Files needed instant transfer to redundant server instantly (or 
 periodically) and how to switch between them in cause of failure.
 
 Any help or being pointed in the right direction appreciated.
 
 Gino
 ___
 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%40anazys.com
 
 This email sent to webobje...@anazys.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: How do I increase Eclipse's Memory?

2010-02-26 Thread Dev WO
Hi james,

The second suggested answer, is actually the one I'm using:
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

It appears I couldn't go more than 768m even with a 8G machine though

Xavier

On 26 févr. 2010, at 16:34, James Cicenia wrote:

 now that was very funny
 
 thanks.
 
 
 On Feb 26, 2010, at 9:30 AM, David Avendasora wrote:
 
 http://lmgtfy.com/?q=How+do+I+increase+Eclipse%27s+Memory%3F
 
 :-)
 
 Dave
 
 On Feb 26, 2010, at 10:23 AM, James Cicenia wrote:
 
 Hello -
 
 I am getting error messages about heapspace, etc., after I debug and launch 
 the app again from Eclipse.
 So, how do I allocate it more memory?
 
 Thanks
 James ___
 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/webobjects%40anazys.com
 
 This email sent to webobje...@anazys.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


Fwd: NSTimestampFormatter and languages

2007-05-10 Thread Dev WO

Sorry, I forgot to reply-all

Xavier



De : Dev WO [EMAIL PROTECTED]
Date : 10 mai 2007 16:31:53 HAEC
À : Miguel Arroz [EMAIL PROTECTED]
Objet : Rép : NSTimestampFormatter and languages

Hello Miguel,
here's what I'm doing:

import java.text.DateFormatSymbols;
import java.util.Locale;

		NSTimestampFormatter formatter = new NSTimestampFormatter( %Y-%m- 
%d, new DateFormatSymbols(Locale.ENGLISH));

String stringDate = formatter.format(object().date());

Hope it helps

Xavier




Hi!

  How can I make the NSTimestampFormatter print the month names in  
a specified language?


  Yours

Miguel Arroz

The world lies in the hands of evil
 And we pray it would last -- Apocalyptica, Life Burns!

Miguel Arroz
http://www.ipragma.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/webobjects% 
40anazys.com


This email sent to [EMAIL PROTECTED]





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

This email sent to [EMAIL PROTECTED]

Re: Troubleshooting utf8 text SQL generation

2007-04-13 Thread Dev WO

Hello Kieran,

Someone will probably come up with an alternative, but I've never  
been to be able to make blob work the way I wanted with UTF-8. I had  
to convert my blob to mediumtext.
As far as I know (but I'm not a db expert;)) blob can't have an  
encoding like a mediumtext for example.


Xavier




I have a text blob attribute defined as
External Type : TEXT
Data Type : UTF Character Stream - String E

EOF is treating it as binary in the SQL generation, so I get this:
... UPPER(T3.textobject) LIKE UPPER(_binary'%argentina%') ...

instead of this which is what I should expect??
... UPPER(T3.textobject) LIKE UPPER(_utf8'%argentina%') ...


I am using MySQL. My connection string is:
jdbc:mysql://localhost/omega?useUnicode=truecharacterEncoding=UTF-8

and the table is defined as:
CREATE TABLE `textblob` (
  `oid` int(11) NOT NULL,
  `textobject` text,
  PRIMARY KEY  (`oid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Am I correct in thinking I should not be getting _binary before the  
search term?


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


This email sent to [EMAIL PROTECTED]



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

This email sent to [EMAIL PROTECTED]


Re: Instance number

2007-04-11 Thread Dev WO

Hi Bruno,

You can use applicationNumber() from WORequest

Xavier




Hello,

How can I get the instance number of an application in Application?
I try number() but It always gives me -1...

Thank you.
___
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% 
40anazys.com


This email sent to [EMAIL PROTECTED]



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

This email sent to archive@mail-archive.com


Re: WOPopUpButton bug 5.3 DST : SOLVED

2007-04-04 Thread Dev WO

Hello Olav,



Hi,

Just to follow up regarding the escaping problem.

It turns out using:

String aURL = context().directActionURLForActionNamed(resolve,  
queryDict());


Will return an escaped string like so:

/WebObjects/Resolver.woa/wa/resolve? 
catId=1001249amp;ni=yamp;sort=ddown


This behavior is new since 5.3 I guess.


I think it was corrected in 5.2.x I filled a bug report to get the  
 escaped (it's not standard compliant if they are not escaped).




And I actually want:

/WebObjects/Resolver.woa/wa/resolve?catId=1001249ni=ysort=ddown


Well no, it's not what you want;) you want the  escaped, this is how  
it has to be:) Try to use your application you'll see it's working  
with the amp;
If you look at the status bar in you web browser, you won't see the  
amp; pour only  and if you activate the link you'll also get an   
in the address bar instead of the amp;. This is the expected  
behavior, you shouldn't have a non-escaped  in a url.


So I have to run the returned string through an unescaping routine  
to get the above uri.


Once I did that everything works fine.
Are you sure it wasn't working with the amp;? if it didn't it's a  
bug somewhere else, not the amp;



Hope this helps someone else.

Regards,

Olav


On Apr 2, 2007, at 4:53 AM, Olav Anderson wrote:




On Apr 2, 2007, at 12:00 AM, Dev WO wrote:


Hi Olav,

It's not related to DST update. I think it appears in the 5.3.x  
but I'm not completely sure.
It's a but when using the href binding, but I don't understand  
why you have a hyperlink in an option value, maybe it's just a  
test you made.
Anyway, search the list for bozo ampersand you'll find some way  
to get around this (Daniel Muller, WebObjects 5.3.1 Redirect  
Bug - 17th february 2006)


I'm pretty much never use the href binding and instead use the  
directaction bindings, but maybe someone using Wonder frameworks  
can confirm if Wonder also experience this bug.

If it's not the case, you could link to Wonder frameworks.

Xavier

PS: Thanks for not using a previous thread to post a new  
question, it's ruining the thread view;)




Hey,

I just upgraded to 5.3 DST from 5.2 and noticed a bug in the  
WOPopUpButton component.


I'm sending down a url as a value and it get double escaped like  
so:


option value=/WebObjects/Resolver.woa/wa/resolve? 
catId=1001221amp;amp;ni=yamp;amp;sort=ddown#1001221/ 
WebObjects/Resolver.woa/wa/resolve? 
catId=1001221amp;ni=yamp;sort=ddown#1001221/option


Notice the two amp;amp; ?

That's the first amp being escaped.


Has anyone else experienced this problem?

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/webobjects% 
40anazys.com


This email sent to [EMAIL PROTECTED]





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

This email sent to [EMAIL PROTECTED]


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


This email sent to [EMAIL PROTECTED]


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

This email sent to archive@mail-archive.com

Re: strange error

2007-04-03 Thread Dev WO

Hello Daniele,
I'm sure someone will come with more help, but just in case, are your  
sure you're getting a NSArray?
Usually a ClassCastException is thrown if you get something else than  
the class that was defined. You're not passing NSMutableArray instead?


Xavier




Hi list,
I've an error witch I don't understand how I should cause it:

WARN  NSLog  -  
com.webobjects.appserver._private.WOComponentRequestHandler:  
Exception occurred while handling request:

java.lang.ClassCastException : com.webobjects.foundation.NSArray
[2007-04-03 10:56:25 CEST] WorkerThread3  
java.lang.ClassCastException: com.webobjects.foundation.NSArray
at  
com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID  
(EODatabaseContext.java:4049)
at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlob 
alID(EOObjectStoreCoordinator.java:682)
at  
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID  
(EOEditingContext.java:3965)

at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:1036)
at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault 
(EODatabaseContext.java:4427)
at  
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializati 
onOfObject (EOAccessArrayFaultHandler.java:70)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead 
(_EOCheapCopyMutableArray.java:38)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.count 
(_EOCheapCopyMutableArray.java:92)
at com.webobjects.eocontrol._EOCheapCopyArray._setArray 
(_EOCheapCopyArray.java:33)
at  
com.webobjects.eoaccess._EOCheapCopyHandler.completeInitializationOfOb 
ject(EOAccessArrayFaultHandler.java:151)
at com.webobjects.eocontrol._EOCheapCopyArray.willRead 
(_EOCheapCopyArray.java:126)
at com.webobjects.eocontrol._EOCheapCopyArray.objectsNoCopy 
(_EOCheapCopyArray.java:95)

at com.webobjects.foundation.NSArray.init( NSArray.java:395)
at com.webobjects.foundation.NSMutableArray.init 
(NSMutableArray.java:60)
at  
com.webobjects.foundation._NSArrayUtilities.arrayExcludingObjectsFromA 
rray(_NSArrayUtilities.java:197)
at  
com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingContex 
t(EODatabaseContext.java:6109)
at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditing 
Context(EOObjectStoreCoordinator.java :412)
at com.webobjects.eocontrol.EOEditingContext.saveChanges 
(EOEditingContext.java:3226)

at er.extensions.ERXEC._saveChanges(ERXEC.java:947)
at er.extensions.ERXEC.saveChanges(ERXEC.java:870)
at  
support.gestweb.component.WXLocalizedComponent._saveChangesAndFixObjec 
ts(WXLocalizedComponent.java:119)
at support.gestweb.component.insert.GWSAddDiscount.create 
(GWSAddDiscount.java:167)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke (Method.java:585)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor 
$1.methodValue(NSKeyValueCoding.java:684)
at com.webobjects.foundation.NSKeyValueCoding 
$_MethodBinding.valueInObject(NSKeyValueCoding.java :1160)
at com.webobjects.foundation.NSKeyValueCoding 
$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey 
(WOComponent.java:1539)
at com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey (NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath 
(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath  
(WOComponent.java:1600)
at  
com.webobjects.appserver._private.WOKeyValueAssociation.valueInCompone 
nt(WOKeyValueAssociation.java:46)

at er.ajax.AjaxUtils.valueForBinding(AjaxUtils.java:243)
at er.ajax.AjaxDynamicElement.valueForBinding  
(AjaxDynamicElement.java:34)
at er.ajax.AjaxSubmitButton.handleRequest(AjaxSubmitButton.java: 
214)
at er.ajax.AjaxSubmitButton.invokeAction(AjaxSubmitButton.java: 
205)
at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction  
(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110)

at er.extensions.ERXWOForm.invokeAction(ERXWOForm.java:127)
at com.webobjects.appserver.WOComponent.invokeAction  
(WOComponent.java:945)
at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104)
at  
com.webobjects.appserver._private.WOSwitchComponent.invokeAction 
(WOSwitchComponent.java :171)
at com.webobjects.appserver.WOComponent.invokeAction 
(WOComponent.java:945)
at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104)
at  

Re: WOPopUpButton bug 5.3 DST

2007-04-02 Thread Dev WO

Hi Olav,

It's not related to DST update. I think it appears in the 5.3.x but  
I'm not completely sure.
It's a but when using the href binding, but I don't understand why  
you have a hyperlink in an option value, maybe it's just a test you  
made.
Anyway, search the list for bozo ampersand you'll find some way to  
get around this (Daniel Muller, WebObjects 5.3.1 Redirect Bug -  
17th february 2006)


I'm pretty much never use the href binding and instead use the  
directaction bindings, but maybe someone using Wonder frameworks can  
confirm if Wonder also experience this bug.

If it's not the case, you could link to Wonder frameworks.

Xavier

PS: Thanks for not using a previous thread to post a new question,  
it's ruining the thread view;)




Hey,

I just upgraded to 5.3 DST from 5.2 and noticed a bug in the  
WOPopUpButton component.


I'm sending down a url as a value and it get double escaped like so:

option value=/WebObjects/Resolver.woa/wa/resolve? 
catId=1001221amp;amp;ni=yamp;amp;sort=ddown#1001221/WebObjects/ 
Resolver.woa/wa/resolve? 
catId=1001221amp;ni=yamp;sort=ddown#1001221/option


Notice the two amp;amp; ?

That's the first amp being escaped.


Has anyone else experienced this problem?

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/webobjects% 
40anazys.com


This email sent to [EMAIL PROTECTED]



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

This email sent to archive@mail-archive.com


Re: WOPopUpButton bug 5.3 DST

2007-04-02 Thread Dev WO
This is just my point, but you should never have a form without a  
submit button.
Javascript is good only if it works all the time (meaning every  
browser) and if thing's still work without it. It should only be to  
get more, but never to prevent the site from being navigated.
If you'd like to make something auto-submitting and hide the button,  
but still work if javascript is not available, you just need:

-in your select:  onChange=this.form.submit()
-then a script/noscript part:
---
script type=text/javascriptinput type=submit  
value=Rechercher name=searchinput type=hidden  
name=WOSubmitAction value=search/script
noscriptinput type=submit value=Rechercher  
name=searchinput type=hidden name=WOSubmitAction  
value=search/noscript

---

The submit in the script part is hidden using a css rule
The submit in the noscript part will be displayed if javascript is  
disabled, so the user can still submit the form


Hope this help;)

Xavier




Hey Xavier,

Thanks for the info.

I'm using the value binding in conjunction with javascript to allow  
users to navigate to other parts of the site without using a submit  
button.


Like so:


menu: WOPopUpButton {
list = category.parent.newContentSubCategories;
item = categoryItem;
value = activeContentLink;
displayString = categoryItem.nameWithUnreadItemsCount;
noSelectionString = noSelectionString;
name = menu;
	onChange = location.href=(menuform.menu.options 
[menuform.menu.selectedIndex].value);

escapeHTML = false;
}


-Olav


On Apr 2, 2007, at 12:00 AM, Dev WO wrote:


Hi Olav,

It's not related to DST update. I think it appears in the 5.3.x  
but I'm not completely sure.
It's a but when using the href binding, but I don't understand  
why you have a hyperlink in an option value, maybe it's just a  
test you made.
Anyway, search the list for bozo ampersand you'll find some way  
to get around this (Daniel Muller, WebObjects 5.3.1 Redirect Bug  
- 17th february 2006)


I'm pretty much never use the href binding and instead use the  
directaction bindings, but maybe someone using Wonder frameworks  
can confirm if Wonder also experience this bug.

If it's not the case, you could link to Wonder frameworks.

Xavier

PS: Thanks for not using a previous thread to post a new question,  
it's ruining the thread view;)




Hey,

I just upgraded to 5.3 DST from 5.2 and noticed a bug in the  
WOPopUpButton component.


I'm sending down a url as a value and it get double escaped like so:

option value=/WebObjects/Resolver.woa/wa/resolve? 
catId=1001221amp;amp;ni=yamp;amp;sort=ddown#1001221/ 
WebObjects/Resolver.woa/wa/resolve? 
catId=1001221amp;ni=yamp;sort=ddown#1001221/option


Notice the two amp;amp; ?

That's the first amp being escaped.


Has anyone else experienced this problem?

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/webobjects% 
40anazys.com


This email sent to [EMAIL PROTECTED]







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

This email sent to archive@mail-archive.com

Re: RSS Feed

2007-02-20 Thread Dev WO

Hello Bruno,
the first icon (the one you get) is just saying your page is a XML  
page and if you click on that icon, you could go back to the html  
page from which the like to the XML is displayed (this page may not  
exist of course)


Just try with a regular website for example:
http://www.macosx86.net
you'll get the white text on blue background when you're on the  
HTML page, and if you click on the icon you'll get the RSS feed with  
blue text on white background


Xavier




Hello,

After creating XML page, I get this icon in the address bar
rssIcone.png
 instead of the other one
Image 1.png
Can anyone tell me why ?

Thank you.

Bruno ___
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% 
40anazys.com


This email sent to [EMAIL PROTECTED]


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

This email sent to archive@mail-archive.com


Data freshness and inter-applications/instances notification

2007-02-10 Thread Dev WO

Hi list,
it's been some time without a data freshness question:)

I've been reading the list and Practical WebObjects book to get as  
much details as I can, but I just can't find the solution I'd like.
Here's a quick summary of the project related to this, it may give  
you a better understanding about my goals:
-Actually there are 2 WOApplications (Front Office and Back Office)  
and a Framework (with the eomodel)
-In the FO, I'm using the sharedEditingContext to initialize some  
entities. I've got multiple initializeList method to be able to  
invalidate only specific lists when needed.
-The FO answer to some DirectActions which lead to a new  
initialization for a specific entity (I'm using  
InvalidateObjectsWithGlobalIDs, it seems to invalidate correctly all  
the relationships of the entity)
-In the BO depending on the object edited/added/deleted a call to one  
of the specific FO DirectAction is triggered.


The deployment is only one instance for each (1 FO and 1 BO) for now,  
and because it doesn't work with multiple instances;)


This setup allows me to get fresh data every time there's a fresh  
data to display, immediately, and basically down from 2 request  
per day on the DB to about 100.


But this is not as good as it seems...
There are 2 different things I'm looking at:
A-making this work with 2 or more instances of the FO
B-making a change to the FO (yes FO user can also add things to the  
DB) be populated to all the FO instances


Regarding A, I was looking at the NotificationFramework of Project  
Wonder, but if I red correctly is not really efficient if the  
application has a lot of request (I know this one doesn't).
So I was thinking I could issue a grep command to get the list of  
running instances, then issue a specific DA request for each instance  
(actually there's no callback feature so I don't know if the  
instance got the notification and behave as expected), or maybe I  
could use some code from WOMonitor to get the instance numbers for a  
specific application.


What's your opinion about this? maybe (most probably) there's  
something better than this I didn't find;)


Regarding B, FO user can post comments, they can't edit anything only  
add things.
This is a news system, so I really need people to be able to see  
any comment posted as soon as it is posted. It works for now as  
there's only one instance and I'm using a specific ec to add the  
comment (set the sharedEC to null) so the sharedEC reflect the  
changes immediately.
But if I have multiple instances, I got mixed up result as the new  
comments only updates their own instance...So I've got to find a way  
to notify all running instances of the modifications.

Any pointer about this one?

My knowledge of EOF underlying layers is clearly lacking a lot of  
things, if someone feel I need to read a couple things about it,  
don't hesitate to mention what I should read;)


Thanks for sharing your knowledge:)

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


Re: Any way to make ERXLocalizer work with UTF-8?

2007-01-29 Thread Dev WO

Hi Helmut,
first, try to encode your .strings files as UTF-16.
At least on Xcode, UTF-8 will lead to trouble.

If it doesn't fix your issue, I'll provide you with what I'm using to  
get it to work (it mostly work;))


Xavier




Hi,

is there any way to make ERXLocalizer work with UTF-8? I have my  
Localizable.strings files UTF-8 coded, but I didn't find a way to  
tell ERXLocalizer which encoding should be used. So all of my  
string bindings are corrupted if some special characters are used.


Regards,
Helmut
 ___
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% 
40anazys.com


This email sent to [EMAIL PROTECTED]


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

This email sent to archive@mail-archive.com

EOSortOrdering based on a @count relationship

2007-01-08 Thread Dev WO

Hi,
I've been trying to isolate the issue with this, but I just can't  
even get an error...
So I need to sort based on a calculated attribute: relationship 
().count()


but I just can't make it work...

I've got entity a which has a toMany relationship relationship().
I need to sort a entities based on relationship().count().

So here's my SortOrder:

public Number numberOfComments() {
return (Number)writeCommentaries().count();
}

public NSArray sortOrderingByCommentaries() {
NSMutableArray sortOrdering = new NSMutableArray();
		EOSortOrdering newSO = EOSortOrdering.sortOrderingWithKey 
(numberOfComments, EOSortOrdering.CompareDescending);

sortOrdering.addObject(newSO);
return (NSArray)sortOrdering;
}


and the actual sorted array:

public NSArray listOfNewsSortedByCommentaries() {
		return (NSArray)EOSortOrdering.sortedArrayUsingKeyOrderArray 
(listOfNews(), new NSArray(sortOrderingByCommentaries()));

}


but it won't work, I don't even get a crash, just a no instance  
available...
I tried with another Number attribute to see if it coud be the cause,  
but it works. I also sort using another attribute and display the  
relationship().count() for each a and it works. It seems I just  
can't sort using the relationship().count().


But I though I could use custom attribute as long as the array is  
already in an editing context.


I must miss something, but I can't find it...

Thanks for your help

Xavier

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


[OT] Entity Modeler, how to create a many to many

2007-01-06 Thread Dev WO

Hello,
I've been trying to work with Eclipse/WOProject for my latest  
project, and it seems I can make it:)


But actually I'm stick on something which might be obvious: creating  
a many to many relationship in Entity Modeler.


I used to have to select the 2 entities in EOModeler and do join in  
many to many, but I can't find where's that feature in Entity  
Modeler...
I know I could create the join table, etc but I think I recall a demo  
of EM at WWDC by Mike Schrag doing something like this...but maybe  
I'm wrong.


Could someone tell me how to make a many to many using Entity Modeler:)

Thanks

Xavier

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


Re: [OT] Entity Modeler, how to create a many to many

2007-01-06 Thread Dev WO

Thanks a lot Mike,
it's just perfect:)

Have a nice week end

Xavier




And your recall would be right :)

Actually, the latest builds have a much fancier relationship  
dialog, so you might want to upgrade to get all the relationshippy  
goodness if you haven't already.


If you select two entities in the entity tree (outline view), you  
can then click the New Relationship action and it will bring up  
the New Relationship Dialog.  I love the new versions of this  
because it even has an option to add the foreign key attribute for  
you, too, for non-many-to-many's (though I don't recall what it  
does if you don't use Project Wonder -- it uses prototype 'id' when  
you have Project Wonder).


In the dialog, you can select which sides (or both) of the  
relationship are to-many, you can name the relationships, you can  
optionally have it create a foreign key attribute for one-to-many  
(single foreign key), or you can select the join attributes.


ms

On Jan 6, 2007, at 3:37 AM, Dev WO wrote:


Hello,
I've been trying to work with Eclipse/WOProject for my latest  
project, and it seems I can make it:)


But actually I'm stick on something which might be obvious:  
creating a many to many relationship in Entity Modeler.


I used to have to select the 2 entities in EOModeler and do join  
in many to many, but I can't find where's that feature in Entity  
Modeler...
I know I could create the join table, etc but I think I recall a  
demo of EM at WWDC by Mike Schrag doing something like this...but  
maybe I'm wrong.


Could someone tell me how to make a many to many using Entity  
Modeler:)


Thanks

Xavier

___
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 [EMAIL PROTECTED]



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


This email sent to [EMAIL PROTECTED]



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

This email sent to archive@mail-archive.com


Importing CSV into a WO application

2006-10-23 Thread Dev WO

Hi,
searching the list I have found many post about excel export and  
things like that. But I'm actually looking for a way to import CSV  
into a WO application.


Is there anything already done to handle importing of CSV?

Like providing a NSArray of column name, an editing context and an eo  
to match the value to?


Thanks

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


Re: Importing CSV into a WO application

2006-10-23 Thread Dev WO

I found the link to ostermiller's site but it was down when I checked;)
Thanks Kieran, I'll have a look.

Xavier




You can use utilities such as this:
http://ostermiller.org/utils/CSV.html

 and wrap the parser with your own utility classes to do what  
you want.


/** @return NSArray of strings when passed a line of CSV data */
public static NSArray arrayFromCsvRecord( String csvRecord ) {
String[][] fieldValuesParsed = CSVParser.parse( csvRecord );
return new NSArray( fieldValuesParsed[0] );
}



On Oct 23, 2006, at 6:30 AM, Dev WO wrote:


Hi,
searching the list I have found many post about excel export and  
things like that. But I'm actually looking for a way to import CSV  
into a WO application.


Is there anything already done to handle importing of CSV?

Like providing a NSArray of column name, an editing context and an  
eo to match the value to?


Thanks

Xavier
___
WebObjects-dev mailing list
[EMAIL PROTECTED]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev





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


Re: Importing CSV into a WO application

2006-10-23 Thread Dev WO

Hello Timo, thanks to point out about the licensing part.
Just a quick question, if it's provided as a service and not as a  
software does it change anything?


Xavier





Am 23.10.2006 um 13:42 schrieb Kieran Kelleher:


You can use utilities such as this:
http://ostermiller.org/utils/CSV.html


Looks nice, but is licensed under GPL, so it cannot be used in  
commercial projects if you don't open the source of the whole  
project...


Also see http://ostermiller.org/utils/licenseFAQ.html

Timo





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


faultWithPrimaryKeyValue, make sure it only returns a fault

2006-10-13 Thread Dev WO

Hi,
I'm using faultWithPrimaryKeyValue to access an eo in a sharedEC.
I was using it thinking it would return only faulted eos in the  
sharedEC, but after reading the java doc again, I think it may do a  
fetch to access the object (if not available in the fault).


So my issue is that I'm fetching object in the sharedEC with specific  
parameters, but when I request an object through  
faultWithPrimaryKeyValue, I can access object that doesn't conform to  
the sharedEC specific parameters.


For example, I can have an attribute available (boolean) on my  
object and only put the ones with available=true in my sharedEC. But  
I can still acces all the objet through my specific action using  
faultWithPrimaryKeyValue which is not what I want:)


Is there a way to request only a fault from a specific ec?
Or do I have to test for the specific attributes after I get the  
object? (If I can avoid this, it is really nice:))


Thanks

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


Re: Sending a request to a url but not returning the page to the user

2006-10-10 Thread Dev WO
whoa, Thanks for all the replies and input:)I went for the java.net.URLConnectionand also turned on the concurrentrequesthandling (not sure if this can lead to problem...)Thanks Kieran for the sample code, I'm pretty sure I'll be using it:)XavierTHIS IS A RESEND SINCE MODERATOR STOPPED LAST REPLY FOR 9KB OVER!-Or if you don't want to use concurrent request handling, you can dispatch this request in a thread of its own. That way the request generating this DA request gets completed and thus frees up the ap to answer the spun-off second request. Here is a snippet example from a ScheduledTaskDetail WOComponent where I fire a direct action at my current development instance for testing scheduled task direct actions. devFireEvent is a simple component action invoked by a WOHyperlink and DevFireEvent is an inner class in the WOComponent class. the request associated with invoking devFireEvent completes and returns before the direct action request it spawned gets handled in the run() method of the inner class. Never mind the superfluous details ... but this gives you a way to do it without turning on Concurrent Request Handling if that is something you want not to do. ... note the httpConn.sendRequest and readResponse are in running in the separate thread..HTH, Kieran    /** Usable in development mode only for developer testing.         Must fire the request in a separate thread since this request will        block because AllowsConcurrentRequestHandling is off. */    public WOComponent devFireEvent()    {        Thread devFireEventThread = new DevFireEvent( selectedTaskEvent() );        devFireEventThread.start();                return null;    }        protected class DevFireEvent extends Thread {        protected CTScheduledTaskEvent event;        protected EOEditingContext ec;                public DevFireEvent() {            super();        }                        /** Create a local instance in a manual lock EC */        public DevFireEvent( CTScheduledTaskEvent newEvent ) {            super();            ec = WKEditingContext.createInstance();            ec.lock();            try {                event = (CTScheduledTaskEvent)EOUtilities.localInstanceOfObject( ec, newEvent );            } catch ( Exception e ) {                log.error( "Error creating DevFireEvent with " + WKStringUtilities.toString( newEvent ), e );            } finally {                ec.unlock();            }        }                /** Fire the event */        public void run() {            ec.lock();            try {                int portNumber = ERXProperties.intForKeyWithDefault( "singletonOperations.fireEvent.portNumber", 80 );                String targetHostName = System.getProperty( "singletonOperations.fireEvent.targetHostName" );                                WOHTTPConnection httpConn = new WOHTTPConnection( targetHostName,                                                                  portNumber );                                String url = "" "singletonOperations.fireEvent.baseUrl" );                url = "" + "?keycode=" + event.keycode();                                if ( log.isDebugEnabled() ) log.debug("fireEvent url = ""Apple-style-span" face="Monaco" size="2"> + url );                                WORequest request = new WORequest( "GET", url, "HTTP/1.1",                                                   null,                                                   null,                                                   null );                                httpConn.sendRequest( request );                                WOResponse response = httpConn.readResponse();            }            catch ( Exception e ) {                log.error( "Error firing event " + WKStringUtilities.toString( event ), e );            }            finally {                ec.unlock();            }        }    } On Oct 9, 2006, at 6:01 PM, Mike Schrag wrote:Random tidbit ... Be careful of using this to call back into yourself (i.e. App A connecting back to App A).  You want to make sure you have concurrent request handling turned on or you will deadlock yourself.ms ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.comThis email sent to [EMAIL PROTECTED]  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

  1   2   3   >