Re: model insights (inheritance)

2015-10-28 Thread Alexander Spohr
One Entity for person. If you have more than 2-3 attributes in Employee or 
Donar make them own entities as well otherwise just put the attributes into 
Person.
An Employee might become a Donar anyway ;)

Subclassing in the model tends to give you problems later on.

atze


> Am 28.10.2015 um 13:51 schrieb Theodore Petrosky :
> 
> I am starting a simple CMS for a friend. He needs to track donations. You 
> know a phone bank and people taking money.
> 
> Anyway, I have two kinds of Person. Employees that take money and Donors that 
> give. Both are Person.
> 
> I created a model for a Person then Subclasses for Employee and Donor. I am 
> using a qualifier isEmployee=1 and isDonor=1. Obviously then I have 
> attributes isEmployee and isDonor in Person.  A Person could be both an 
> Employee and a Donor. 
> 
> Would you do this, or would you model separate Entities for Employee and 
> Donar?


 ___
Do not 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: Dependent popup

2015-07-23 Thread Alexander Spohr

 Am 22.07.2015 um 20:08 schrieb HOUNKPONOU Ronald 
 ronald.hounkpo...@gmail.com:

 For your previous sugestion :
 If i do it like (each update container has to close and surround its object), 
 then only one chlid popup will be updated on a parent popup change (That is 
 actually what i have).
 
 What i would like to have is : On a parent popup change, every  chils will 
 get updated with the corresponding data.

The following is not working?

a
b
c
d/d
/c
/b
/a

Then you might need to check the code that set the selected item.

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

Re: EOFetchSpecification - sorting by partial date

2015-07-14 Thread Alexander Spohr
Without having read this thread, I would assume you’ll need
EOSortOrdering

with your EOFetchSpecification.


 Am 14.07.2015 um 21:20 schrieb Theodore Petrosky tedp...@yahoo.com:
 
 wow this is great! and I even understand the ‘Derived’ selection now. I still 
 don’t see how to set the sort direction. Oscar’s example of the SQL it 
 generates shows an order by of ASC. what if I want DESC?
 
 enquiring minds need this stuff!!!
 

 ___
Do not 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: How to pass confidential information with WORedirect.

2015-06-30 Thread Alexander Spohr
Use ssl.
And hire someone who knows about the internet.


 Am 30.06.2015 um 13:40 schrieb Butchi Reddy Velagala 
 v.butchire...@gmail.com:
 
 Hi Wick, 
 
 I need  to pass some values(confidential values) to that URL. Please let me 
 know how to do that.  
 
 
 Thanks,
 Butchi Reddy.
 
 
 On Tue, Jun 30, 2015 at 3:48 PM, Christoph Wick wi...@me.com wrote:
 POST doesn't solve a security problem. It maybe obfuscates the parameters 
 for a layman but it doesn't encrypt them. Anyway ...
 
 WORedirect uses HTTP status code 302 which makes the browser using GET. What 
 you need is HTTP status code 307.
 
 So, write your own subclass of WOCompnentent with a setter method for the 
 URL to redirect:
 
 public class MyRedirectComponent extends ERXComponent {
 private String url;
 public MyRedirectComponent(WOContext context) {
 super(context);
 }
 public void appendToResponse(WOResponse aResponse, WOContext 
 aContext) {
 aResponse.setHeader(this.url, location);
 aResponse.setStatus(307);
 }
 public void setUrl(String url) {
 this.url = url;
 }
 }
 
 The method that submits your form should look like this:
 
 public WOActionResults submitAction() {
 MyRedirectComponent nextPage = (MyRedirectComponent)
 
 pageWithName(your.app.components.MyRedirectComponent.class);
 nextPage.setUrl(http://YOUR_REDIRECT_URL;);
 return nextPage;
 }
 
 See 
 http://programmers.stackexchange.com/questions/99894/why-doesnt-http-have-post-redirect
 
 C.U.CW
 --
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
  On 30.06.2015, at 09:52, Butchi Reddy Velagala v.butchire...@gmail.com 
  wrote:
 
  Hi All,
 
  We have to pass some confidential information to the URL which configured 
  in WORedirect. But WORedirect is accepting only query parameters (appended 
  to the URL). So It is the security problem.
 
  So please let us know if there is any way to redirect to the URL with POST 
  parameters or headers to hide them.
 
 
  Thanks in Advance,
  Butchi Reddy Velagala.
 
  ___
  Do not 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/cw%40i4innovation.de
 
  This email sent to c...@i4innovation.de
 
 ___
 Do not 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/atze%40freeport.de
 
 This email sent to a...@freeport.de
 ___
Do not 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: ec.saveChanges in repartition table

2014-09-04 Thread Alexander Spohr
Is propagate primary key on in the source key tables?



Am 04.09.2014 um 08:27 schrieb Raymond NANEON rnan...@me.com:

 Hello List, 
 
 I have an issue with a primary key on a repartition table. Indeed, the 
 primary key for this table has two foreign keys. When I save the data in the 
 repartition table through ec.saveChanges, I have this error directly: 
 sept. 03 16:20:00 PreProjets[8484] DEBUG er.eo.ERXGenericRecord  - 
 EditingContextWillSaveChanges: done calling will*
 java.lang.IllegalStateException: Adaptor 
 er.extensions.jdbc.ERXJDBCAdaptor@12e84396 failed to provide new primary keys 
 for entity 'FwkProjetsAdmrec_RepartPprecParamOrdre'
   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)
 
 I don't understand why ERXGenericRecord want to create a new pk? I missed a 
 setting in my eomdel ...
 
 Thanks for 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/atze%40freeport.de
 
 This email sent to a...@freeport.de

 ___
Do not 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: Clustered Databases

2014-07-21 Thread Alexander Spohr

Am 21.07.2014 um 16:14 schrieb Calven Eggert cegg...@uhnresearch.ca:

 I've also been told that this is a FQDN. (whatever that is)

Fully Qualified Domain Name.

 ___
Do not 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: Redirect from Spring MVC application to WebObjects application

2014-07-16 Thread Alexander Spohr
Write a direct action that you can call from the other app.



Am 16.07.2014 um 08:21 schrieb Raghavender Bokka 
raghavender.bo...@prithvisolutions.com:

 Hello Michael,
 
 If the new tab is closed then the user will be back to the existing 
 WebObjects application tab, this if fine, but my requirement is that the user 
 has to come back to WebObjects application and also load a specific page at 
 the same time without the user intervention. The functionality is like when 
 the user clicks a System Parameters button that exists in the Spring MVC 
 application, then the user has to come back to the WebObjects application 
 with the System Parameters screen loaded, this screen functionality is 
 existing in the WebObjects application.
 
 The following is the example url when a user is in WebObjects application: 
 
 http://Domain-Name/cgi-bin/WebObjects/TestApp.woa/28/wo/qmHbxUClaI7GicGm92oNPM/0.2.9
 
 The following is the example url of the WebObjects application when the user 
 clicks on System Parameters screen, but this has to work when the user 
 clicks on System Parameters button from the Spring MVC application.
 
 http://Domain-Name/cgi-bin/WebObjects/TestApp.woa/28/wo/qmHbxUClaI7GicGm92oNPM/2.3.17.1.11.3.105.0
 
 Thanks,
 Raghu.


 ___
Do not 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: Redirect from Spring MVC application to WebObjects application

2014-07-16 Thread Alexander Spohr
The tab's window would need to have a name that you can address in your a tag 
as target=myappwindowname. Then it will open the WO-app in the old, named 
window.
You might be able to set that name either when you open your WO-app’s window 
(using a target link). Or you could try to set it using JavaScript from within 
your WO-app. I am not sure if the latter is possible.




Am 16.07.2014 um 10:37 schrieb Raghavender Bokka 
raghavender.bo...@prithvisolutions.com:

 Hi Alexander,
 
 Is is possible to use the existing WebObjects application URL and instance id 
 and call the direct action (within the same existing application screen tab) 
 from the other app, or will the direct action will open up a new URL in a 
 separate tab or window?
 
 Thanks,
 Raghu.
 
 On 16-Jul-2014, at 2:02 PM, Alexander Spohr wrote:
 
 Write a direct action that you can call from the other app.
 
 
 
 Am 16.07.2014 um 08:21 schrieb Raghavender Bokka 
 raghavender.bo...@prithvisolutions.com:
 
 Hello Michael,
 
 If the new tab is closed then the user will be back to the existing 
 WebObjects application tab, this if fine, but my requirement is that the 
 user has to come back to WebObjects application and also load a specific 
 page at the same time without the user intervention. The functionality is 
 like when the user clicks a System Parameters button that exists in the 
 Spring MVC application, then the user has to come back to the WebObjects 
 application with the System Parameters screen loaded, this screen 
 functionality is existing in the WebObjects application.
 
 The following is the example url when a user is in WebObjects application: 
 
 http://Domain-Name/cgi-bin/WebObjects/TestApp.woa/28/wo/qmHbxUClaI7GicGm92oNPM/0.2.9
 
 The following is the example url of the WebObjects application when the 
 user clicks on System Parameters screen, but this has to work when the 
 user clicks on System Parameters button from the Spring MVC application.
 
 http://Domain-Name/cgi-bin/WebObjects/TestApp.woa/28/wo/qmHbxUClaI7GicGm92oNPM/2.3.17.1.11.3.105.0
 
 Thanks,
 Raghu.
 
 
 
 


 ___
Do not 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: target folder is not working.

2014-07-14 Thread Alexander Spohr
- Posting the same message twice will not bring any help faster.

- The error message tells you exactly what your problem is:

CPCompBatchHeader name: CPCompBatchHeader subcomponents: null ; }  
valueForKey()]: lookup of unknown key: 'compName'

This WOComponent does not have an instance variable of the name compName or 
_compName, nor a method of the name compName, _compName, getCompName, or 
_getCompName

at CPComponent.valueForKey(CPComponent.java:55)


- Does your component have a compName?



Am 14.07.2014 um 14:48 schrieb Pawan Tiwari pawan0...@gmail.com:

 Hi All,
 
I am working on webobjects project using maven.I build the project 
 successfully but when i run the project using wolips and submit log In form  
 then it gives the following error.I have attached the error log in the 
 attachment.
 
 
 
 Note:-When i run the project then it picked the output path from build folder 
 but it must pick from target folder,there may be an issue.Is there any 
 setting that it pick up the correct path(From target folder).
 
 Please help!
 
 
 Thanks  Regards
 Pawan Kumar Tiwari
 errorLog.txt ___
 Do not 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/atze%40freeport.de
 
 This email sent to a...@freeport.de


 ___
Do not 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: permanentGlobalID not permanent

2014-05-08 Thread Alexander Spohr

Am 08.05.2014 um 05:36 schrieb Jean-François Veillette 
jean_francois_veille...@yahoo.ca:

 Here is the code for the setter:
 
 public void setReference(final ERXGenericRecord ref) {
   EOKeyGlobalID pgid = ref.permanentGlobalID();
   setReferenceGlobalID(ERXKeyGlobalID.globalIDForGID(pgid));

ref.setId(pgid); // this seems to be missing

   // added log to debug ...
   final EOGlobalID gid = editingContext().globalIDForObject(ref);
   log.debug(GlobalID:  + gid + permanent:  + pgid);
 }
 
 give: 
 GlobalID: EOTemporaryGlobalID: 0 0 127 0 0 1 0 0 -5 -116 1 0 0 0 1 69 -39 18 
 -94 -76 -125 18 82 -3permanent: _EOIntegralKeyGlobalID[AGA_Participant 
 (java.lang.Integer)7985]

How should ref know about your pgid?
Where do you set the global id of ref? Something like ref.setId(pgid).
If you don’t set it ref won’t have a global id and therefore must go to the 
database to get one.

 ___
Do not 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: permanentGlobalID not permanent

2014-05-08 Thread Alexander Spohr
Forget my post. I misunderstood your problem.
Sorry for the noise.

 ___
Do not 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: Fetch spec capabilities

2014-05-02 Thread Alexander Spohr
You could do it using GROUP BY HAVING COUNT with count being the number of 
categories.
I implemented a EOGroupByQualifier some years ago. I don’t think it made it 
into Wonder.



Am 02.05.2014 um 11:54 schrieb Elizabeth Lynch l...@plsys.co.uk:

 I've got a query which could be dealt with by building up qualifiers, but I'd 
 prefer to use the model-based fetch spec. 
 
 As background: I have three tables: Image, Category and CategoryImage.
 
 Image:
 id name
 
 1  Fred
 2  Joan
 
 CategoryImage
imageId   categoryId
 
1 10
1 20
1 30
2 15
2 20
2 30
3 10
 
 Category
idtitle
 
10Hiking
15Walking
20Family
30Older
 
 
 The only value being passed into the query is the category title.
 
 I want to return the image id for images which are in ALL the categories I'm 
 interested in - i.e., if the user selected 'Hiking', 'Family' and 'Older' 
 then I want to see only image 1.  If the user selected 'Walking' and 'Older' 
 I'd see only image 2.
 
 Can this be done in the model-based fetch-spec rather than having to build up 
 qualifiers?
 
 
 Liz
 
 
 
 ___
 Do not 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/atze%40freeport.de
 
 This email sent to a...@freeport.de


 ___
Do not 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: Cascade delete when no relationship: how?

2014-03-20 Thread Alexander Spohr

Am 19.03.2014 um 21:40 schrieb Ramsey Gurley rgur...@smarthealth.com:

 Create the relationship but don’t make it a class property.

+1

Always create the reverse! If you don’t need it in your object, switch it off. 
EOF can still make use of it.


 ___
Do not 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: ERXObjectStoreCoordinator dispose not releasing database connection?

2014-03-13 Thread Alexander Spohr
 On Mar 13, 2014, at 8:40 AM, John Pollard j...@pollardweb.com wrote:
 
 Hi List,
 
 I have noticed that the database connections (seen using show processlist 
 within mysql) are not being released.
 I create my own ERXObjectStoreCoordinator and this results in two new mysql 
 connections appearing.
 When later I call dispose() on that ERXObjectStoreCoordinator, the database 
 connections are not being freed up.
 The dispose() call is in a Session.terminate() method, called after 
 super.terminate().


Am 13.03.2014 um 14:04 schrieb Aaron Rosenzweig aa...@chatnbike.com:

 Hi John,
 
 Yes, that’s a known Apple bug. It creates an extra one to read “Database 
 info” and then never releases it. There is a Wonder method to close database 
 connections like that.
 
 ec.dispose();
 ERXEOAccessUtilities.closeDatabaseConnections(objectStore);
 objectStore.dispose();


Please be aware that this bug might kill your database after a while!

At least using PostgreSQL, the database will keep all changes since the start 
of the app, as long as the „Database Info“ transaction is not committed - which 
it never will be.

To avoid this we append „?useBundledJdbcInfo=true“ to all database urls.

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

Re: Using type=image on WOSubmitButton

2014-03-11 Thread Alexander Spohr
Would WOImageButton do what you need?


Am 11.03.2014 um 13:17 schrieb John Pollard j...@pollardweb.com:

 Hi List,
 
 I am displaying a button with my own image from a webserver image resource 
 file by setting type=image and src=path/to/file.jpg on WOSubmitButton.
 
 If I set the src attribute, it then gets mangled at some stage to turn it 
 into a WO type of path, which fails with ...wodata=ERROR_NOT_FOUND...
 
 I can fix this by using:
 
 otherTagString = src=\path.\
 
 but is there a nicer way to specify the src path of my own choosing, without 
 WOSubmitButton trying to turn it into a WO style of resource path?
 
 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/atze%40freeport.de
 
 This email sent to a...@freeport.de


 ___
Do not 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: Starting second instance=app not available

2014-03-04 Thread Alexander Spohr

Am 04.03.2014 um 09:30 schrieb Jeffrey Schmitz j...@netbrackets.com:

 port = 2003; runningState = DEAD

Who started the instances?
Are they on the right port?

 ___
Do not 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: Multi-machine deployment - only one instance receiving requests

2014-01-17 Thread Alexander Spohr
Does your Apache know of the second machine?
what does http://xx.xx.xx.xx/cgi-bin/WebObjects/WOAdaptorInfo say?


Am 17.01.2014 um 00:40 schrieb Ken Anderson kenli...@anderhome.com:

 All,
 
 I’m trying to setup a load balancing setup between 2 machines, but only the 
 machine where apache lives is getting requests.  I must have something 
 screwy, but I’m not sure what.
 
 JavaMonitor, wotaskd, apache, and one instance on one machine
 wotaskd and another instance on another machine
 
 JavaMonitor seems happy - both machines are listed as available, and the 
 application shows 2 instances running, one on each server.
 
 Both apps are clearly up and running, as reported by monitor, and they’re 
 linked with ERJGroupsSynchronizer, so the instance on the second machine is 
 seeing remote synchronizer updates.
 
 Any thoughts?  I set the adaptor setting to Round Robin and connected from 2 
 different machines, which I would assume would work.
 
 Thanks,
 Ken
 
 
 ___
 Do not 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/atze%40freeport.de
 
 This email sent to a...@freeport.de


 ___
Do not 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: Multi-machine deployment - only one instance receiving requests

2014-01-17 Thread Alexander Spohr

Am 17.01.2014 um 12:46 schrieb Ken Anderson kenli...@anderhome.com:

 When I try to go to the WOAdaptorInfo URL, I get “The requested application 
 was not found on this server”.  So, not sure how to get that working…

Please show your link.


 ___
Do not 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: Need help in building a pretty complex EOQualifier

2013-12-12 Thread Alexander Spohr
Hi Markus,

you need a GROUP BY HAVING COUNT because one DocumentText can not satisfy your 
qualifier.
Unfortunately this does not work with a common qualifier.

I once modified PostgresqlExpression to allow for a GROUP BY:

// added by atze to support GROUP BY
public void prepareSelectExpressionWithAttributes(NSArray nsarray, boolean 
flag, EOFetchSpecification eofetchspecification)
{
super.prepareSelectExpressionWithAttributes(nsarray, flag, 
eofetchspecification);
String aGroupBy = 
(String)eofetchspecification.hints().objectForKey(GROUP BY);
if(aGroupBy != null)
{
EOAttribute anAttribute = 
EOModelGroup.defaultGroup().entityNamed(eofetchspecification.entityName()).attributeNamed(aGroupBy);
String aDefinition = (anAttribute.isDerived() ? 
anAttribute.definition() : anAttribute.columnName());
setStatement(statement() +  GROUP BY + aDefinition);
}
}

Maybe that helps a bit.

atze



Am 12.12.2013 um 14:56 schrieb Markus Ruggiero mailingli...@kataputt.com:

 On first sight it looks pretty simple, but the more I think of a solution the 
 more confused I become. Can someone help me build a qualifier for entity 
 Document please:
 
 Model:
 
 Document ---DocumentText---Text
 
 DocumentText is NOT a simple many2many join but has its own attributes. When 
 I create a Document I assign a pre-defiend set of Text objects to it. This 
 means I create a number of DocumentText objects each pointing to one Text. 
 These DocumentText objects are presented to the user as a list of 
 attributes of a Document. The user then specifies a textual comment (for 
 the field DocumentText.COMMENT_KEY) and a status value (for 
 DocumentText.STATUS_KEY) on any one or more of these DocumentText objects. 
 Upon save I update those 2 or 3 or 4... DocumentText objects accordingly. For 
 many of them the user does not enter anything (status is a known default, 
 comment is empty). This all works.
 
 Now comes the qualifier to retrieve Documents: The user sees a D2WQueryPage 
 for the document properties with an embedded property level query component 
 that presents the full list of possible DocumentText objects with their 
 status and comment fields. A typical scenario could be: the user wants to 
 enter a comment query for the second assigned text (that's Text A) and/or 
 picks a query value for the status of the 7th assigned text (this could be 
 Text B). Upon executing the query the user expects to retrieve a list of 
 Documents that fulfill all given criteria. In this example the user wants to 
 see all Documents where the assignment to Text A has comment x AND the 
 assignment to Text B has status y.
 
 I have this working for the case where the user only gives one search 
 criterium but I cannot figure out how to construct the qualifier for the 
 combination. An OR qualifier returns all Documents where any one DocumentText 
 is satisfied whereas an AND qualifier returns nothing. I do understand those 
 two cases. Mind you the top level entity must be Document, because that's 
 what the user works with and queries against. In my property level query 
 component I have set-Methods for the status and the comment values on the 
 DocumentText loopvar. These methods retrieve the displayGroup qualifier and 
 manipulate it. But not knowing how the final qualifier should look I am at a 
 loss.
 
 Thanks for any help
 ---markus---
 
 
 
 
 Markus Ruggiero
 mailingli...@kataputt.com
 Check out the new book about Project Wonder and WebObjects on 
 http://learningthewonders.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/atze%40freeport.de
 
 This email sent to a...@freeport.de


 ___
Do not 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: I am trying to create a WOHyperlink inside a WORepetition null target WOComponent

2013-11-01 Thread Alexander Spohr
I bet resultsList is null when the request comes back.



Am 01.11.2013 um 02:05 schrieb Thomas Peters thomasg_pet...@msn.com:

 I have the following…  This should be working… the movie that is getting 
 passed to setMovie on the MovieDetails method is null.  The WOHyperLink id 
 inside the WORepetition that is the results list of movies.  Typical demo... 
 what am I doing wrong?
 ___ 
 Main.wo
 Results : WORepetition {
   list = resultsList;
   item = movie;
   index = indexrt;
 }
 
 ResultTitle : WOString {
   value = movie.title;
 }
 
 MovieLink2 : WOHyperlink {
   action = showDetails;
 }
 
 ___
 Main.html
 snippet
   webobject name = Results
   
   webobject name=MovieLink2
   webobject name = ResultTitle /
   /webobjectbrbr
   
   /webobject
 /snippet
 
 ___
 Main.java
 snippet
   public WOComponent showDetails() {
   MovieDetails detailsPage = 
 (MovieDetails)pageWithName(MovieDetails);
   detailsPage.setMovie(movie);
   return detailsPage;
   }
 /snippet
 
   
 
 
 ___
 Do not 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/atze%40freeport.de
 
 This email sent to a...@freeport.de

 ___
Do not 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: Session timeout when performing an action

2013-10-15 Thread Alexander Spohr
Did you check /WebObjects/WOAdaptorInfo?
What is the dead time?
Do you see a lot of active requests?


Am 14.10.2013 um 15:26 schrieb Schoenenberger Dominique 
dominique.schoenenber...@nagra.com:

 Thanks, 
 
 My parameters are (bigger):
 
 HTTP Adaptor Settings:
   Load Balancing scheme: Round Robin
   Send Timeout: 1200
   Receive Timeout: 1200

Do you have requests that take longer than 20 minutes?


 The page seems related to an http error 500.

Is it a 500 or another 5xx?


 Is any way to avoid the adaptor to give the request to another instance if 
 one instance is too slow to respond because this seems no helping because at 
 the end it causes a Session timeout error.

This would just hide your problem. You need to fix it.


 I need also to say that when the user get a untimely Session Timeout, there 
 is not waiting time (We got the session timeout just after the click on a 
 button). I would expect some retrying before returning an Session timeout 
 error if it is due to a instance not responding.

The apache has already decided that your instance is dead because it did not 
answer in time. So it just kicks your request to the next instance.



 ___
Do not 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: Session timeout when performing an action

2013-10-10 Thread Alexander Spohr

Am 10.10.2013 um 09:42 schrieb Schoenenberger Dominique 
dominique.schoenenber...@nagra.com:

 It's like the adaptor (?) gives the request to the wrong instance. 

Yes. Instance 12 may be offline or not reachable (responds too slow)


 ___
Do not 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: Using UNION in EOFetchSpecification

2013-10-06 Thread Alexander Spohr
Am 05.10.2013 um 23:43 schrieb Raymond NANEON rnan...@me.com:

 I want to use UNION in two EOFetch but I don't know how to do it.

Not sure what you mean by using union. I can only guess :)

Did you try EOFetchSpecification.setUsesDistinct(true)?


atze

https://developer.apple.com/legacy/library/documentation/LegacyTechnologies/WebObjects/WebObjects_5/EOControlRef/Java/Classes/EOFetchSpecification.html#//apple_ref/java/instm/EOFetchSpecification/setUsesDistinct
 ___
Do not 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: Slow response time

2013-09-13 Thread Alexander Spohr

Am 12.09.2013 um 19:12 schrieb Beall, Mark (HPSL) mark.be...@hp.com:

 Thanks Samuel and Ramsey for your responses.   
 
 We do have a large data base so copying the data base is not a good option 
 for us.  I will check into the prefetch option.  I know we use it but maybe 
 not in all instances.

Batch fetching.

Do you see equal sql over and over again? You might have a loop that fires 
faults. You could then batchFetch before the loop starts.

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

Re: WOResponse large http file download

2013-01-18 Thread Alexander Spohr
I think you are wrapping around maxint.
Your example code is incomplete. It can not work...


Am 18.01.2013 um 09:58 schrieb niek niek.verva...@vit2print.com:

 Hi all,
 
 I'm experiencing a problem when trying to download files larger than 4GB over 
 http but only a part is downloaded.
 When I try to download a 32GB file, only 3,98GB (3980070495 bytes) is 
 downloaded. When I try to download a 7GB file, only 2,7GB is downloaded.
 I have retried it several times, and the result was always the same.
 
 Example code:
 
 public WOActionResults DownloadAction() {
 WOResponse response = new WOResponse();
 response(application/x-document, content-type);
 
 File file = new File(/test.zip);
 
 response(attachment; filename=\ + file.getName() + \, 
 content-disposition);
 response(new FileInputStream(file), 4096, file.length());
 return response;
 }
 
 
 I'm using WebObjects 5.4.3, so since 5.4 the content-length in 
 WOResponse.setContentStream is of type long.


 ___
Do not 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: understanding an Object?

2013-01-15 Thread Alexander Spohr

Am 15.01.2013 um 14:19 schrieb Theodore Petrosky tedp...@yahoo.com:

 I successfully have my popup version updating the bound object().

Is your object() an EO?

 However, how do I tell it as an EO so that it is faulted and updates itself 
 on saveChanges().

You don’t. It knows.

 Meaning, the object() contains my new value, but when I press 'Save' there is 
 no update done. So, WO doesn't know that I changed something.

Is the editing context that you saveChanges() on the same as your objects()’s?

 How do I tell the object that the attribute has changed so do an update on 
 save?

Again: You don’t. It knows.

 I mean, there are somethings I can do in the constructor, however some of the 
 instance variables are not available yet. takeValuesFromRequest isn't called 
 until later (i don't know exactly when).

How should it be called before the constructor?
Just do your stuff in takeValuesFromRequest() not in the constructor.

 Is there a place that lists these methods and when they are called and when I 
 can use (override) them?

http://developer.apple.com/legacy/mac/library/documentation/LegacyTechnologies/WebObjects/WebObjects_3.1/DevGuide/HowWOWorks/PhasesRRLoop.html
Click on next section to step through the process.


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

Re: Binary Plist generation very slow

2012-12-10 Thread Alexander Spohr
Never use dicts or arrays as a hashtable’s keys!

I removed the uniquing of dicts, arrays and sets. I now use an int based hash 
table with object.hashCode() as the key. My binary property list generation is 
now faster than the string based version.

The test file is a 11MB string based property list, run over a 100 times each.
Duration: 15805ms NSPropertyListOpenStepFormat
Duration: 10084ms NSPropertyListBinaryFormat_v1_0

If java could provide the address of an object I would use that and unique the 
collections again. The address would be a nice hash key. Unfortunately you 
don’t get addresses in Java and the hashCode() of collections are unusable.

atze


Original file (contains lots of spaces):
-rw-r--r--@  1 atze  atze  11786993  9 Dez 18:35 3500Attacks.plist

Binary:
-rw-r--r--   1 atze  atze   1270690 10 Dez 15:39 3500Attacks.plistb

Reverse test to ensure both (string  binary) generate the same output (using 
tabs instead of spaces):
-rw-r--r--   1 atze  atze   6819317 10 Dez 15:39 3500Attacks.plistx
-rw-r--r--   1 atze  atze   6819317 10 Dez 15:39 3500Attacks.plisty




Am 06.12.2012 um 11:16 schrieb Alexander Spohr a...@freeport.de:

 Hi List,
 
 we tried to switch from string based plists to binary ones. The clients love 
 it but it almost kills the servers.
 
 The binary plist generation is 26 times slower (for my test case):
 Duration:  2881 ms NSPropertyListOpenStepFormat
 Duration: 75008 ms NSPropertyListBinaryFormat_v1_0
 
 Does anyone have a faster binary plist generator at hand before I try to roll 
 my own?
 
   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

Re: WOComponent Function Call Order

2012-12-10 Thread Alexander Spohr
WO runs from to to bottom of your page. So it should work.

A better way would be to do the calculations in appendToResponse() before you 
call super. Then all will be set before the page is rendered.
If you can not do that because of your loop, you could do it in the 
displayedObjects call. Or in a method that calls displayedObjects and returns 
after your calculation for this item.

atze


Am 10.12.2012 um 19:41 schrieb Louis-Olivier Roof 
louis-olivier.r...@obzerv.com:

 Hello WebObjects community, this is my first question so don't be too hard on 
 me ;)
 
 Lets say I have a wo:loop  in a component...
 
  wo:loop list = $dg.displayedObjects item = $aItem
 tr
   td wo:string value = $~timeConsumingCallA() / /td
   td wo:string value = $~timeConsumingCallB() / /td
   td wo:string value = $~callDependingOn_A_and_B() / /td
 /tr
   /wo:loop
 
   • Functions timeConsumingCallA() and timeConsumingCallB() are, as their 
 name imply, costly calls.
   • Function callDependingOn_A_and_B() depends on the results of the two 
 first functions.
 
 Is there any guarantee that the two function calls (timeConsumingCallA, 
 timeConsumingCallB) will always be called in order and before 
 callDependingOn_A_and_B() so I can set and depend on instance variables 
 $timeConsumingCallA_result and $timeConsumingCallB_result in the 
 callDependingOn_A_and_B() function?
 
 If not, I can see a number of ways I could myself make sure the calls are 
 made in the correct order in straight-Java, but I was wondering if there was 
 a Wonder/WebObjects strategy to approach this.
 
 Thanks for your time,


 ___
Do not 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

Binary Plist generation very slow

2012-12-06 Thread Alexander Spohr
Hi List,

we tried to switch from string based plists to binary ones. The clients love it 
but it almost kills the servers.

The binary plist generation is 26 times slower (for my test case):
Duration:  2881 ms NSPropertyListOpenStepFormat
Duration: 75008 ms NSPropertyListBinaryFormat_v1_0

Does anyone have a faster binary plist generator at hand before I try to roll 
my own?

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


Re: Automatic Long (8 byte) Primary Key?

2012-10-21 Thread Alexander Spohr

Am 19.10.2012 um 11:44 schrieb Alexander Spohr a...@freeport.de:

 I need an entity to have a long (8 byte) primary key.
 How do I tell EOF to generate it from a sequence as it does with 4 byte keys?


Now this gets strange.
I changed the pk to prototype id (int4) because I could not get EOF to call my 
primaryKeyDictionary(boolean). But EOF just ignores all inserted objects of 
this class. It just does not generate a pk - but tries to save them to the 
database anyway.

What I see:
1. SELECT NEXTVAL('Player_seq')
2. SELECT NEXTVAL('Avatar_seq')
3. INSERT INTO Player
4. INSERT INTO Avatar
5. INSERT INTO Gear
6. exception

The question here is why EOF isn’t getting the pk for Gear - but tries to save 
them. I don’t see any difference in the eomodel’s plists. It has a single pk 
that is not an attribute and not null, like all other tables do.
Looks like it thinks that I fill the pk. But the attribute is non-null, why 
does EOF save the whole record then? The pk attribute seems to be invisible to 
EOF.

Any ideas?

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

Re: Automatic Long (8 byte) Primary Key?

2012-10-21 Thread Alexander Spohr
Shame on me.
I had a propagate primary key in a relationship to Gear.

Sorry for the noise.

atze


Am 21.10.2012 um 12:45 schrieb Alexander Spohr a...@freeport.de:

 
 Am 19.10.2012 um 11:44 schrieb Alexander Spohr a...@freeport.de:
 
 I need an entity to have a long (8 byte) primary key.
 How do I tell EOF to generate it from a sequence as it does with 4 byte keys?
 
 
 Now this gets strange.
 I changed the pk to prototype id (int4) because I could not get EOF to call 
 my primaryKeyDictionary(boolean). But EOF just ignores all inserted objects 
 of this class. It just does not generate a pk - but tries to save them to the 
 database anyway.
 
 What I see:
 1. SELECT NEXTVAL('Player_seq')
 2. SELECT NEXTVAL('Avatar_seq')
 3. INSERT INTO Player
 4. INSERT INTO Avatar
 5. INSERT INTO Gear
 6. exception
 
 The question here is why EOF isn’t getting the pk for Gear - but tries to 
 save them. I don’t see any difference in the eomodel’s plists. It has a 
 single pk that is not an attribute and not null, like all other tables do.
 Looks like it thinks that I fill the pk. But the attribute is non-null, why 
 does EOF save the whole record then? The pk attribute seems to be invisible 
 to EOF.
 
 Any ideas?
 
   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

Automatic Long (8 byte) Primary Key?

2012-10-19 Thread Alexander Spohr
Hi List,

I need an entity to have a long (8 byte) primary key.
How do I tell EOF to generate it from a sequence as it does with 4 byte keys?

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


Re: Migrating from EOF to Cayenne

2012-07-12 Thread Alexander Spohr
We want to go the WO-way and are asking us how we can make that way bring us 
into the future.

You propose to switch to a different lane and have us all run into another 
direction. That is a totally different discussion. We don’t want to change our 
way of programming, we just want the core to be open, extendable and fixable.

atze



Am 12.07.2012 um 17:32 schrieb arosenzw...@clinworx.com:

 Hi WOrriors, 
 
 I still question why we are fighting so hard for Object-relational mapping. 
 If we are contemplating doing work, shouldn't we consider going straight for 
 object databases? Take out the transcription layer. Let's get more 
 productive. Only use OR-mapping for old systems that we must interface with 
 but new work should consider the advantages of being pure objects, all the 
 time. 
 
 Everyone has success stories. You can write a great app in PHP if you really 
 want to (though none of us would choose to). What really counts is how people 
 achieve their success and if we'd enjoy doing it in a similar fashion. For us 
 that means we want creative options and better productivity. That's why we've 
 historically chosen WO. 
 
 Here's one success story that really peaks my interest - it drives home my 
 love/hate relationship with any ORM even one as nice as EOF: 
 http://gemstonesoup.wordpress.com/2009/03/09/why-glass/ 
 
 It talks about GLASS as if we all know what that is. It's Gemstone's turnkey 
 solution to Internet app development... Like WO used to have. You can get a 
 brief definition here: 
 http://seaside.gemstone.com/ 
 
 Gemstone has been used a long time with lots of data. Here's one success 
 story with a shipping company and over 1.5 billion data objects: 
 http://seaside.gemstone.com/docs/OOCL_SuccessStory.pdf 
 
 Here's a more general listing of success stories: 
 http://gemstonesoup.wordpress.com/category/success-stories/ 
 
 -- Aaron

 ___
Do not 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: NSData could not cast to Long

2012-06-25 Thread Alexander Spohr
What is your question here? Why a java.lang.Long is not a 
com.webobjects.foundation.NSData?
Answer: Because casting does not magically turn a Long into an NSData maybe?

Your array contains Longs, not NSDatas.

atze

PS. please read the text of the exception yourself.



Am 25.06.2012 um 18:05 schrieb Ron X:

 hi4all
 
 NSMutableArrayNSData currentArtistID = (NSMutableArrayNSData) 
 validArtistsIDs.valueForKey(CURRENT_ARTIST_ID);
 
 byte[] bytes = currentArtistID.get(i).bytes();  there get an exception
 
 if i write
 
 int concreteCurrentArtistID = new Integer(new 
 String(currentArtistID.get(i).bytes()));
 
 i get the same exception:
 
 ClassCastException: java.lang.Long cannot be cast to 
 com.webobjects.foundation.NSData


 ___
Do not 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 Alexander Spohr
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


Re: Scheduling not at full hours?

2012-02-28 Thread Alexander Spohr
As nobody seems to have an answer, could someone point me to the sources of 
wotaskd? Are they available? I couldn’t find them.
Wonder seems to have just some classes but uses a framework that I can’t find 
in the source of.

atze


Am 26.02.2012 um 21:05 schrieb Alexander Spohr:

 Hi list,
 
 we have a rather large WO installation.
 The servers usually have a load of 4 which is pretty low for these machines.
 We schedule our apps every four hours. As we are running 80 instances per 
 server 20 of them restart at the same time:
 1:00 App1-Inst1
 1:00 App2-Inst1
 2:00 App1-Inst2
 2:00 App2-Inst2
 ...
 At that time the load goes up to 25 and the CPU utilization doubles from 30% 
 to 60% which I don’t like.
 
 Question: can I make different apps schedule on different minutes?
 Example:
 1:00 App1-Inst1
 1:10 App2-Inst1
 2:00 App1-Inst2
 2:10 App2-Inst2
 ...
 
 So that all instances of App1 schedule at X:00, those of App2 at X:10 and so 
 on. This would take the massive load off the machines.
 
   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

Scheduling not at full hours?

2012-02-26 Thread Alexander Spohr
Hi list,

we have a rather large WO installation.
The servers usually have a load of 4 which is pretty low for these machines.
We schedule our apps every four hours. As we are running 80 instances per 
server 20 of them restart at the same time:
1:00 App1-Inst1
1:00 App2-Inst1
2:00 App1-Inst2
2:00 App2-Inst2
...
At that time the load goes up to 25 and the CPU utilization doubles from 30% to 
60% which I don’t like.

Question: can I make different apps schedule on different minutes?
Example:
1:00 App1-Inst1
1:10 App2-Inst1
2:00 App1-Inst2
2:10 App2-Inst2
...

So that all instances of App1 schedule at X:00, those of App2 at X:10 and so 
on. This would take the massive load off the machines.

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

Re: Timestamps and Oracle

2012-02-25 Thread Alexander Spohr
We always store times without any time zone in the database. WO and Java use 
UTC and the client then converts that to local time (whatever that is).
Just works (for us).

atze


Am 23.02.2012 um 02:32 schrieb Alexis Tual:

 Hi list,
 
 looks like moving to GMT+11 timezone gives you a nice sun in february but 
 also headache with oracle and timezones.
 The application, the db and the users are in the same timezone (GMT+11), we 
 set this in the Application constructor with the NSTimeZone.setDefault, 
 TimeZone.setDefault, even -Duser.timezone=
 Now here's the problem : 
 - the user enters a date, for example 21/02/2012 23h59 which is stored in 
 Java as 21/02/2012 12h59 (GMT).
 - the jdbc driver (ojdbc5.jar Oracle JDBC Driver version - 
 11.1.0.7.0-Production) converts the date to 21/02/2012 23h59
 - the db sets the column (of type DATE) : set my_date = '21/02/2012 23h59'
 UPDATE IP_DATES_OUVERTURE_DOM SET IP_DATES_FIN_DOM = ? WHERE (...) 
 withBindings: 1:2012-02-21 23:59:00(ipDatesFinDom)
 - the user request the same date
 - the jdbc driver fetch the date as 21/02/2012 23h59 (no tz info at this 
 level)
 - the adaptor creates a NSTimestamp with 21/02/2012 23h59 (GMT)
 - the formatter (configured with tz = GMT+11) shows : 22/02/2012 10h59 ...
 
 Something is obviously wrong with this setup, either :
 - the jdbc driver should not convert to GMT+11 when inserting, the db then 
 stores only GMT dates
 - the jdbc driver or the adaptor should convert back to GMT when reading the 
 date from the DB
 
 Any hint is welcomed,
 
 Thanks !
 
 Alex
 ___
 Do not 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/atze%40freeport.de
 
 This email sent to a...@freeport.de


 ___
Do not 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: Limit to the number of instances under JavaMonitor

2012-02-06 Thread Alexander Spohr

Am 04.02.2012 um 18:48 schrieb David Holt:

 Does anyone know if there is a limit to the number of instances you can run 
 under JavaMonitor? Is it a fixed limit, or a configuration? I seem to have 
 hit it.

There is a limit in the WebObjects adaptor but that only hits the web server.


 My new instance dies silently. No log, just a new Death. I can start the 
 application from the command line. After trying everything I could think of, 
 I stopped an instance of another application, and tried again. This time it 
 works.

Did you try to start it with the exact parameters from monitor? (after removing 
the projectPath()-thingie)
Hitting any OS or connection limits?

 The number of instances is 52.

We currently run more than 500 instances for 21 apps on six machines, with one 
monitor. The biggest apps use 48 instances. When we bounce we double the 
instance count for a short time. No problems.


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


Re: Weird Behaviour...

2011-12-06 Thread Alexander Spohr
Hm, should we all put that in our apps then?
Or is it fixed in 5.4 or Wonder?



Am 06.12.2011 um 15:35 schrieb Calven Eggert:

 Andrew,   THANK YOU, THANK YOU, THANK YOU!!!
 
 This was exactly what was happening in my case and by simply adding this:
 
public WOResponse dispatchRequest(WORequest request) {
   EOObserverCenter.notifyObserversObjectWillChange(null);
   return super.dispatchRequest(request);
}
 
 It completely solved my problems.  No more sporadic saves are happening.  
 wow!  After a week I was really thinking I was going crazy.
 
 Thanks again and again.
 
 Calven
 
 
 On 2011-12-05, at 3:38 PM, Andrew Lindesay wrote:
 
 Hi Calven;
 
 Somebody mentioned to me this posting;
 
 http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg25391.html
 
 We have seen a similar (unsettling) problem in a system which I am involved 
 in and this seems to have worked-around the problem for us.
 
 Regards;
 
 On 6/12/11 3:35 AM, Calven Eggert wrote:
 Hi, All
 
 I'm having some weird behaviour and have spent the last weekend trying to 
 figure out what is going on.  Here is what's happening:
 
 I have an EO record that has a number of fields including foreign keys. I 
 run the application on my machine or on a Mac Server and edit a record by 
 changing field values, including selections in different popups to change 
 the foreign key values.  I verify that the changes have been made by using 
 a SQL application called Froq App to look directly into the database.
 
 Now the weird thing is that sometimes the data is not changed in the 
 database.  I'll log out and then back into the app and make the exact same 
 changes and this time it works.  This completely scares me and now I have 
 absolutely no faith in what the application is saving.
 
 Any one have any clues on why this might be happening and what I can do to 
 figure this out.  I'm completely stumped. :-(
 
 Calven
 ___
 Do not 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/apl%40lindesay.co.nz
 
 This email sent to a...@lindesay.co.nz
 
 
 
 -- 
 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/atze%40freeport.de
 
 This email sent to a...@freeport.de

 ___
Do not 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: Weird Behaviour...

2011-12-05 Thread Alexander Spohr
How is your optimistic locking set up?
Anything else than the primary key?

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

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


Re: [SOLVED]: Is JDBCAdaptor generating the wrong SQL for fixed length character columns?

2011-11-10 Thread Alexander Spohr
Hi Chuck,

you have to use useBundledJdbcInfo=true with PostgreSQL. Otherwise your 
PostgreSQLAdaptor will hold an open transaction into the database. That will 
prevent commits from getting closed and written (kicking the old values), 
therefore bloating your database and finally kill your performance.

We learned the hard way.

atze


Am 09.11.2011 um 23:39 schrieb Chuck Hill:

 Hi Lars,
 
 Can you check your connection URL?  It should not be using that file, that is 
 mostly for Entity Modeler to generate the schema in the absence of a database 
 connection.
 
 See:
 
  /**
   * PThis method returns true if the connection URL for the
   * database has a special flag on it which indicates to the
   * system that the jdbcInfo which has been bundled into the
   * plugin is acceptable to use in place of actually going to
   * the database and getting it.
   */
  protected boolean shouldUseBundledJdbcInfo() {
boolean shouldUseBundledJdbcInfo = false;
String url = connectionURL();
if (url != null) {
  shouldUseBundledJdbcInfo = url.toLowerCase().matches(.*(\\?|\\?.*) + 
 PostgresqlPlugIn.QUERY_STRING_USE_BUNDLED_JDBC_INFO.toLowerCase() + 
 =(true|yes)(\\|$));
}
return shouldUseBundledJdbcInfo;
  }
 
 
  private static final String QUERY_STRING_USE_BUNDLED_JDBC_INFO = 
 useBundledJdbcInfo;
 
 
 
 Chuck
 
 
 On 2011-11-09, at 11:41 AM, Lars Sonchocky-Helldorf wrote:
 
 
 Am 08.11.2011 um 20:56 schrieb Lars Sonchocky-Helldorf:
 
 Hi folks!
 
 
 For reason not to be discussed here my coworker has created a PostgreSQL 9 
 database table like follows:
 
 CREATE TABLE systemmessagecontent
 (
 id integer NOT NULL,
 language character(2) NOT NULL,
 message text NOT NULL,
 subject character varying(255) NOT NULL,
 systemmessageid integer NOT NULL,
 CONSTRAINT systemmessagecontent_pkey PRIMARY KEY (id),
 CONSTRAINT systemmessagecontent_systemmessage_fk FOREIGN KEY 
 (systemmessageid)
REFERENCES systemmessage (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
 )
 
 The interesting point here is column language which is a two character 
 fixed string. 
 
 In the corresponding EOModel the property for this has char as External 
 Type and an External Width of 2 and no prototype (since there is nothing 
 matching).
 
 
 
 When running the application and trying to update that property/column the 
 following SQL is generated:
 
 Nov 08 18:28:34 BKAdmin[5] DEBUG NSLog  -  === Begin Internal 
 Transaction
 Nov 08 18:28:34 BKAdmin[5] DEBUG NSLog  -  evaluateExpression: 
 com.webobjects.jdbcadaptor.PostgresqlExpression: UPDATE 
 SystemMessageContent SET language = ?::char WHERE (id = ?::int4 AND 
 systemMessageID = ?::int4) withBindings: 1:de(language), 2:28(id), 
 3:48(systemMessageID)
 Nov 08 18:28:34 BKAdmin[5] DEBUG NSLog  -  === Commit Internal 
 Transaction
 
 Remarkable here is the ?::char Obviously this is a cast into a single 
 character type of PostgreSQL. 
 
 see http://www.postgresql.org/docs/9.1/interactive/datatype-character.html 
 table 8-5 for this.
 
 
 
 Correct would have been to use character(2) or char(2) as my tests with 
 PGAdmin revealed:
 
 At first I fired the following SQL:
 
 UPDATE SystemMessageContent SET language = 'de'::char WHERE (id = 28::int4 
 AND systemMessageID = 48::int4)
 
 The result was the same like the one from the WOApp itself, after updating 
 the database contained this: d 
 
 
 When I changed the query accordingly ('de'::char to 'de'::char(2)) I got 
 what I expected:
 
 UPDATE SystemMessageContent SET language = 'de'::char(2) WHERE (id = 
 28::int4 AND systemMessageID = 48::int4)
 
 After this the database  contained a de.
 
 
 Trying to use char(2) as External Type in my EOModel (instead of char) 
 I've got the following exception:
 
 Nov 08 18:40:36 BKAdmin[5] WARN  NSLog  - *** JDBCAdaptor : no type 
 info found for char(2)
 Nov 08 18:40:36 BKAdmin[5] DEBUG NSLog  -  === Begin Internal 
 Transaction
 Nov 08 18:46:49 BKAdmin[5] INFO  er.transaction.adaptor.Exceptions  - 
 Database Exception occured: 
 com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to find type 
 information for external type 'char(2)' in attribute 'language' of entity 
 'SystemMessageContent'.  Check spelling and capitalization.
 
 
 Now I think that maybe char was the right External Type to begin with. 
 Only the JDBCAdaptor did not respect the external with of 2 and did not 
 mangle char into char(2)
 
 
 Is there something I can do about this?
 
 Adding the following to PostgresqlPlugIn.framework/Resources/JDBCInfo.plist:
 
  character = {
  defaultJDBCType = (
  CHAR
  );
  createParams = 1;
  maxScale = 0;
  minScale = 0;
  isNullable = T;
  isSearchable = T;
  precision = 10485760;
  };
 
 and setting character as 

Re: Changed behavior after Wonderization

2011-11-07 Thread Alexander Spohr

Am 07.11.2011 um 09:08 schrieb Frank Gibau:

 The System is right: this number is missing.

Then either your data(base) or your EOModel is broken.

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

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


CLOSE_WAIT when database is offline

2011-10-17 Thread Alexander Spohr
Hi list,

we have a rather busy WO-service. Sometimes one of our multiple database 
servers fails and CLOSE_WAIT shows its ugly head and kills the performance.

What I think the problem is:
- WebServer asks AppServer for data
- AppServer tries to connect to db
- more requests come in
- AppServer tries to connect to db
- more requests come in
- AppServer tries to connect to db
- more requests come in
...
Then after a while the WebServers close their side of the connection but the 
app connection threads still wait in queue for the database. So the app never 
acknowledges the close and we slowly die.

Is this what happens?
Can we do something against it?
A delegate method perhaps, to throw an error if we can not connect to the db? 
(And of course retrying later to reconnect - after all the database will come 
online again)

Any pointers are welcome,

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

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


Re: CLOSE_WAIT when database is offline

2011-10-17 Thread Alexander Spohr

Am 17.10.2011 um 16:19 schrieb Philippe Rabier:

 Alexander, do you open a database connection each time the web app receives 
 an incoming request?

No. But the app tries to reconnect when the database goes down.

atze



 
 Philippe
 
 Sent from my iPhone
 
 On 17 oct. 2011, at 14:54, Alexander Spohr a...@freeport.de wrote:
 
 Hi list,
 
 we have a rather busy WO-service. Sometimes one of our multiple database 
 servers fails and CLOSE_WAIT shows its ugly head and kills the performance.
 
 What I think the problem is:
 - WebServer asks AppServer for data
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 ...
 Then after a while the WebServers close their side of the connection but the 
 app connection threads still wait in queue for the database. So the app 
 never acknowledges the close and we slowly die.
 
 Is this what happens?
 Can we do something against it?
 A delegate method perhaps, to throw an error if we can not connect to the 
 db? (And of course retrying later to reconnect - after all the database will 
 come online again)
 
 Any pointers are welcome,
 
   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:
 http://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com
 
 This email sent to prab...@me.com

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

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


Re: Finding WO people for startups

2011-09-26 Thread Alexander Spohr

Am 26.09.2011 um 07:39 schrieb John Huss:

 Cayenne + Tapestry

We tried it some years ago (it might have evolved) in a larger project 
(customer did not want WO) but it was not ready. And every new release broke 
some APIs...


Back to Marius' question:

As WO evolved from Cocoa you could try to fish some developers that developed 
on (and understood) iOS. That might be difficult because the current iOS market 
is quite large at the moment. But some people just don't like Objective-C and 
would join a Java project instead.

Currently I recruit good Java developers and train them on WO myself.

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

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


Re: path to filter a relationship

2011-09-06 Thread Alexander Spohr

Am 06.09.2011 um 16:07 schrieb Theodore Petrosky:

 maybe i am thinking way too hard on this.

Yes.

instead of using the complete list like this
list =  theEmploymentTitle.employees;

make a method filteredEmployees() that

return 
theEmploymentTitle.employees(Employee.EMPLOYMENT_STATUS.dot(EmploymentStatus.IS_CURRENT).eq(true));

list = filteredEmployees;

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

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


Re: formValueForKey

2011-09-02 Thread Alexander Spohr

Am 01.09.2011 um 18:20 schrieb Gino Pacitti:

 The '+' symbol here:
 
 3CC0hsl3LP0e4ruLa+icqdcIKDe9nNhNU9...
 seems to be replaced with a space:
 3CC0hsl3LP0e4ruLa icqdcIKDe9nNhNU9...
 
 Any ideas why formValueForKey does this?

Because a + in an URL is a placeholder for a space.
You have to escape it.

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

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

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


Re: WebOjects Apache Adaptor for 16 Servers+

2011-08-30 Thread Alexander Spohr

Am 27.08.2011 um 14:35 schrieb Stéphan Mertz:

 I could declare hosts, applications and instances but I could not connect to 
 an instance with a 'Application does not exist' error.

Does the web server know the ip addresses of the app servers host names?
We had a problem when the admin forgot to tell the web server that app1 is 
100.100.100.100.

 I had more success by removing woatskd and javamonitor from the http server.

They do not belong there anyway.

 I suspect a bad settings for WebObjectsConfig in Apache conf, but the 
 documentation is not clear for that.

You tell the web server to look for wotaskds like this:
WebObjectsConfig 
http://10.0.101.101:1085,http://10.0.101.102:1085,http://10.0.101.103:1085 10

And give it a password so that you can have a look what the web server sees:
WebObjectsAdminUsername myusername
WebObjectsAdminPassword mypassword

Then have a look:
http://yourwebserver/cgi-bin/WebObjects/WOAdaptorInfo?myusername+mypassword


 It's also not clear if the WOConfig.xml is needed in this config. I never use 
 it in a single server deployment.

Ignore it.

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

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


Re: WebOjects Apache Adaptor for 16 Servers+

2011-08-26 Thread Alexander Spohr
I'll answer for Paul (same company).


Am 26.08.2011 um 08:43 schrieb Mertz Stéphan:

 Hi Paul,
 
 Could you share with us your experience in WebObjects deployment with lot of 
 servers ?
 I am facing problem with the following architecture :

What is your problem?

 . a dedicated http server with only Apache and mod_webobjects on it

You should at least have two. If one fails the other will still answer.

 . multiple application servers with wotaskd and WebObjects apps

Yes, same setup here.

 Are you in the same conf ?

_IN_ the same conf? Not sure I understand this question (but I am German and 
not a native speaker).
We have one wotaskd per machine. All apps on one machine are configured with it.

 Do you share the siteConfig.xml for all the servers ?

Yes. But we do not transfer the file. the web-server contacts alls wotaskd's.
That is much better if one app(-server) goes offline.

 Where are your monitor ?

On one of the app-servers. Only running when we need it. Not in wotaskd's 
config but started by hand.

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

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


Re: WebOjects Apache Adaptor for 16 Servers+

2011-08-26 Thread Alexander Spohr
Our setup:

- Webservers know every appserver and ask each for running instances.
- Each appserver has wotaskd running. wotaskd restarts and shedules apps on its 
machine (that's what it is for).
- Monitor (on one machine) knows all wotaskd's and configures them.

No files involved. (Just as backup)
wotaskd's do not synchronize. They just know their own machine. (As far as I 
remember)

atze


Am 26.08.2011 um 16:16 schrieb Mertz Stéphan:

 Hi,
 
 Le 26 août 2011 à 14:31, Alexander Spohr a écrit :
 
 What is your problem?
 It's rather a comprehension problem.
 My first attempt was to install a monitor+wotaskd on the http server to 
 manage the app servers: bad idea.
 I did not know the mechanism of synchonisation between the wotaskds, I do not 
 know if it is really reliable.
 
 Are you in the same conf ?
 
 _IN_ the same conf? Not sure I understand this question (but I am German and 
 not a native speaker).
 We have one wotaskd per machine. All apps on one machine are configured with 
 it.
 I wanted to ask : do you have the same setup ? (not native speaker too)
 
 Do you share the siteConfig.xml for all the servers ?
 Yes. But we do not transfer the file. the web-server contacts alls wotaskd's.
 That is much better if one app(-server) goes offline.
 So, each app server has it's own siteConfig.xml (auto-magically 
 synchronized)? It is not in a shared folder ?
 
 Where are your monitor ?
 On one of the app-servers. Only running when we need it. Not in wotaskd's 
 config but started by hand.
 
 Stéphan

 ___
Do not 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


ant build not working - again after update (Lion this time)

2011-07-21 Thread Alexander Spohr
Hi people,

I feel stupid. After the upgrade to Lion the start of Eclipse told me to 
download Java first.
I did that and Eclipse works as expected.

Now I tried to run ant from the cli. And again it fails as it did when I last 
updated Java under Snow Leopard. The last time the problem was that 
woproject.jar was placed at /Library/Java/Extensions. Removing it from that 
place helped to make ant work again.

This time there its no woproject.jar at /Library/Java/Extensions. Only in
/Applications/Developer/eclipse/plugins/org.objectstyle.wolips.woproject.ant_3.6.70244/lib/
and
/Applications/Developer/eclipse/plugins/org.objectstyle.wolips.woproject.ant_3.6.70245/lib/

But the build fails again with 
taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found

I am at loss what I am doing wrong. Do I have to tell ant where woproject.jar 
is? I don’t think so as it worked fine before the upgrade. What am I doing 
wrong?
My ant is /usr/share/ant/java/ant-1.8.2 

Here is the verbose output:

MBP17Atze:XYFoundation atze$ ant -verbose
Apache Ant(TM) version 1.8.2 compiled on June 3 2011
Trying the default build file: build.xml
Buildfile: /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml
Detected Java version: 1.6 in: 
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Detected OS: Mac OS X
parsing buildfile 
/Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml with URI 
= file:/Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml
Project base dir set to: 
/Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation
Build sequence for target(s) `build' is [init.properties, init.build, compile, 
build.woframework, javaclient, package, build]
Complete build sequence is [init.properties, init.build, compile, 
build.woframework, javaclient, package, build, init.install, install, clean, ]

init.properties:
parsing buildfile 
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = 
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip 
file
 [property] Loading 
/Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.properties
 [property] Loading /Users/atze/Library/Application 
Support/WOLips/wolips.properties
Override ignored for property wolips.properties

init.build:

compile:

BUILD FAILED
/Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml:87: 
taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
 using the classloader AntClassLoader[]
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:622)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:239)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: 
org.objectstyle.woproject.ant.WOCompile
at 
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
at 
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
at 
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:594)
... 18 more

Total time: 0 seconds

 ___
Do not 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: ant build not working - again after update (Lion this time)

2011-07-21 Thread Alexander Spohr
Bogdan, that did the tick (under Lion).

Thanx a lot!

atze


Am 21.07.2011 um 16:13 schrieb Bogdan Zlatanov:

 Hi Alexander,
 
 Link or copy the woproject.jar to your ant home ( /usr/share/ant/lib on Snow 
 Leopard ).
 
 HTH
 
 On Thu, Jul 21, 2011 at 5:01 PM, Alexander Spohr a...@freeport.de wrote:
 Hi people,
 
 I feel stupid. After the upgrade to Lion the start of Eclipse told me to 
 download Java first.
 I did that and Eclipse works as expected.
 
 Now I tried to run ant from the cli. And again it fails as it did when I last 
 updated Java under Snow Leopard. The last time the problem was that 
 woproject.jar was placed at /Library/Java/Extensions. Removing it from that 
 place helped to make ant work again.
 
 This time there its no woproject.jar at /Library/Java/Extensions. Only in
 /Applications/Developer/eclipse/plugins/org.objectstyle.wolips.woproject.ant_3.6.70244/lib/
 and
 /Applications/Developer/eclipse/plugins/org.objectstyle.wolips.woproject.ant_3.6.70245/lib/
 
 But the build fails again with
 taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
 
 I am at loss what I am doing wrong. Do I have to tell ant where woproject.jar 
 is? I don’t think so as it worked fine before the upgrade. What am I doing 
 wrong?
 My ant is /usr/share/ant/java/ant-1.8.2
 
 Here is the verbose output:
 
 MBP17Atze:XYFoundation atze$ ant -verbose
 Apache Ant(TM) version 1.8.2 compiled on June 3 2011
 Trying the default build file: build.xml
 Buildfile: 
 /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml
 Detected Java version: 1.6 in: 
 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Detected OS: Mac OS X
 parsing buildfile 
 /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml with 
 URI = 
 file:/Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml
 Project base dir set to: 
 /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation
 Build sequence for target(s) `build' is [init.properties, init.build, 
 compile, build.woframework, javaclient, package, build]
 Complete build sequence is [init.properties, init.build, compile, 
 build.woframework, javaclient, package, build, init.install, install, clean, ]
 
 init.properties:
 parsing buildfile 
 jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI 
 = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a 
 zip file
  [property] Loading 
 /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.properties
  [property] Loading /Users/atze/Library/Application 
 Support/WOLips/wolips.properties
 Override ignored for property wolips.properties
 
 init.build:
 
 compile:
 
 BUILD FAILED
 /Users/atze/Source/XYRALITY/BKDeploymentScript/XYFoundation/build.xml:87: 
 taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
  using the classloader AntClassLoader[]
at 
 org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:622)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:239)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:597)
at 
 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at 
 org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
 Caused by: java.lang.ClassNotFoundException: 
 org.objectstyle.woproject.ant.WOCompile
at 
 org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
at 
 org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
at 
 org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at 
 org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:594)
... 18 more
 
 Total time: 0 seconds

Re: [ANN] Wonderbar 1.0

2011-07-20 Thread Alexander Spohr
Hi Ken,

what is the WO Monitor part doing?

Regards,
atze




Am 20.07.2011 um 05:34 schrieb ISHIMOTO Ken:

 Hi Wonder-Community,
 
 Good News :
 
 There is now a new Version with a new Name: Wonderbar
 
 This Version will work with OS X Snow Leopard and Lion. And is a lot smaller 
 as the old one.
 
 1. After my mistake of updating my Developer ID on Apple's Site, I have now a 
 new ID.
 Because I can't make updates anymore, you have to download and install the 
 new Version.
 
 SORRY, for that.
 
 2. The new Name is Wonderbar.
 
 Installation : 
 
 You can download the new Version : 
 http://www.ksroom.com/cgi-bin/WebObjects/Kisa.woa/wa/safariExtensions
 
 After download, transfer with copy  paste the WO Monitor data from the old 
 Version to the new Version.
 
 Uninstall the old Version.
 
 
 wonderbar.jpeg
 
 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/archive%40mail-archive.com

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


training materials

2011-07-06 Thread Alexander Spohr
Matthias Fricke still has some material that he maintained and updated.

The page is German but I think his material is english:
http://training.assense.com/cgi-bin/WebObjects/AATC.woa/wa/courses?name=WebObjects+Einführung+-+Eclipse%2FWOLips



Am 06.07.2011 um 19:09 schrieb Brook, James:

 I think I do have the training materials - I find it hard to throw stuff 
 away! I need to go digging. I have the print books and maybe even a soft copy 
 of the slides. Of course the tool-sets are different, but the materials do a 
 good job on explaining the core WO concepts (request response loop, EOF, 
 templating, etc). It would not be that hard to update them and I am sure that 
 some people already have in order to run training courses with modern WO.
 
 
 From: David Holt [programming...@mac.com]
 Sent: 06 July 2011 19:08
 To: Brook, James
 Cc: WebObjects Development
 Subject: Re: New mailing list for community future
 
 Do you have the training materials?? With the updates to the new tool set, I 
 suspect they'd be VERY different documents.

 ___
Do not 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


SELECT count(*) throws - column t0.allianceid must appear in the GROUP BY?

2011-06-11 Thread Alexander Spohr
Hi List,

this is a strange one:
- allianceID is nullable.
Any idea what the problem here might be?

atze


JDBCAdaptorException: EvaluateExpression failed: 
com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT count(*), 
t0.allianceID, t0.alliancePermission, t0.comment, t0.creationDate, 
t0.deletionDate, t0.gold, t0.id, t0.lastReadForumDate, t0.lastReadReportDate, 
t0.loginId, t0.nick, t0.points, t0.rank FROM Player t0 WHERE t0.allianceID = 
?::int4 with
Bindings: 1:71(allianceID):
Next exception:SQL State:42803 -- error code: 0 -- msg: ERROR: column 
t0.allianceid must appear in the GROUP BY clause or be used in an aggregate 
function
  Position: 18
  at 
com.webobjects.jdbcadaptor.JDBCContext._jdbcErrorWithChannel(JDBCContext.java:170)
 ... skipped 7 stack elements
  at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
  at 
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
  at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1206)
 ... skipped 1 stack elements
  at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
  at 
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
  at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1169)
 ... skipped 1 stack elements
  at 
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
  at 
com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
  at 
com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:96)
  at com.webobjects.foundation.NSArray.size(NSArray.java:1026)
  at com.xyrality.bk.eo.Alliance.publicPropertyList(Alliance.java:84)
  at com.xyrality.bk.eo.Player.publicPropertyList(Player.java:249)
  at com.xyrality.bk.eo.Habitat.publicPropertyList(Habitat.java:1187)
  at com.xyrality.bk.core.MapTile.propertyList(MapTile.java:54)
 ... skipped 10 stack elements
  at com.xyrality.bk.actions.MapAction.map(MapAction.java:71)
  at com.xyrality.bk.actions.MapAction.mapAction(MapAction.java:57)
 ... skipped 3 stack elements
  at 
com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
  at 
er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401)
  at 
com.xyrality.bk.actions.BKDirectAction.performActionNamed(BKDirectAction.java:84)
 ... skipped 6 stack elements
  at com.xyrality.bk.Application.dispatchRequest(Application.java:63)
  ... skipped 3 stack elements



 ___
Do not 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: SELECT count(*) throws - column t0.allianceid must appear in the GROUP BY?

2011-06-11 Thread Alexander Spohr
That is done by EOF.
 com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject

It bring my apps speed massively down.
We had no exceptions until today.


Am 11.06.2011 um 12:18 schrieb Pascal Robert:

 Are you calling straight SQL or does that call was made with 
 ERXControlUtilities aggregate methods? You can't do a count(*) and having all 
 attributes listed after, that's why you are getting the must appear in the 
 GROUP BY clause error.
 
 Hi List,
 
 this is a strange one:
 - allianceID is nullable.
 Any idea what the problem here might be?
 
  atze
 
 
 JDBCAdaptorException: EvaluateExpression failed: 
 com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT count(*), 
 t0.allianceID, t0.alliancePermission, t0.comment, t0.creationDate, 
 t0.deletionDate, t0.gold, t0.id, t0.lastReadForumDate, 
 t0.lastReadReportDate, t0.loginId, t0.nick, t0.points, t0.rank FROM Player 
 t0 WHERE t0.allianceID = ?::int4 with
 Bindings: 1:71(allianceID):
   Next exception:SQL State:42803 -- error code: 0 -- msg: ERROR: column 
 t0.allianceid must appear in the GROUP BY clause or be used in an 
 aggregate function
 Position: 18
 at 
 com.webobjects.jdbcadaptor.JDBCContext._jdbcErrorWithChannel(JDBCContext.java:170)
... skipped 7 stack elements
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
 at 
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
 at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1206)
... skipped 1 stack elements
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
 at 
 com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
 at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1169)
... skipped 1 stack elements
 at 
 com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
 at 
 com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
 at 
 com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:96)
 at com.webobjects.foundation.NSArray.size(NSArray.java:1026)
 at com.xyrality.bk.eo.Alliance.publicPropertyList(Alliance.java:84)
 at com.xyrality.bk.eo.Player.publicPropertyList(Player.java:249)
 at com.xyrality.bk.eo.Habitat.publicPropertyList(Habitat.java:1187)
 at com.xyrality.bk.core.MapTile.propertyList(MapTile.java:54)
... skipped 10 stack elements
 at com.xyrality.bk.actions.MapAction.map(MapAction.java:71)
 at com.xyrality.bk.actions.MapAction.mapAction(MapAction.java:57)
... skipped 3 stack elements
 at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
 at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401)
 at 
 com.xyrality.bk.actions.BKDirectAction.performActionNamed(BKDirectAction.java:84)
... skipped 6 stack elements
 at com.xyrality.bk.Application.dispatchRequest(Application.java:63)
 ... skipped 3 stack elements
 
 
 
 ___
 Do not 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 

 ___
Do not 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: SELECT count(*) throws - column t0.allianceid must appear in the GROUP BY?

2011-06-11 Thread Alexander Spohr
Looks like the bug is mine. I did not read the statement as i should, as the 
count(*) is an attribute.

To count an entity I add an Attribute count(*) on the fly to the entity.
This attribute seems to be still in the entity while another fetch runs.

This surprises me somewhat as I thought that my app is not multithreaded inside 
EOF.
But maybe I get an uncatched exception that keeps the count attribute from 
being removed. I'll check into that.

Sorry for the noise!

atze




Am 11.06.2011 um 12:25 schrieb Alexander Spohr:

 That is done by EOF.
 com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject
 
 It bring my apps speed massively down.
 We had no exceptions until today.
 
 
 Am 11.06.2011 um 12:18 schrieb Pascal Robert:
 
 Are you calling straight SQL or does that call was made with 
 ERXControlUtilities aggregate methods? You can't do a count(*) and having 
 all attributes listed after, that's why you are getting the must appear in 
 the GROUP BY clause error.
 
 Hi List,
 
 this is a strange one:
 - allianceID is nullable.
 Any idea what the problem here might be?
 
 atze
 
 
 JDBCAdaptorException: EvaluateExpression failed: 
 com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT count(*), 
 t0.allianceID, t0.alliancePermission, t0.comment, t0.creationDate, 
 t0.deletionDate, t0.gold, t0.id, t0.lastReadForumDate, 
 t0.lastReadReportDate, t0.loginId, t0.nick, t0.points, t0.rank FROM Player 
 t0 WHERE t0.allianceID = ?::int4 with
 Bindings: 1:71(allianceID):
  Next exception:SQL State:42803 -- error code: 0 -- msg: ERROR: column 
 t0.allianceid must appear in the GROUP BY clause or be used in an 
 aggregate function
 Position: 18
 at 
 com.webobjects.jdbcadaptor.JDBCContext._jdbcErrorWithChannel(JDBCContext.java:170)
   ... skipped 7 stack elements
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
 at 
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
 at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1206)
   ... skipped 1 stack elements
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
 at 
 com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
 at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1169)
   ... skipped 1 stack elements
 at 
 com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
 at 
 com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
 at 
 com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:96)
 at com.webobjects.foundation.NSArray.size(NSArray.java:1026)
 at com.xyrality.bk.eo.Alliance.publicPropertyList(Alliance.java:84)
 at com.xyrality.bk.eo.Player.publicPropertyList(Player.java:249)
 at com.xyrality.bk.eo.Habitat.publicPropertyList(Habitat.java:1187)
 at com.xyrality.bk.core.MapTile.propertyList(MapTile.java:54)
   ... skipped 10 stack elements
 at com.xyrality.bk.actions.MapAction.map(MapAction.java:71)
 at com.xyrality.bk.actions.MapAction.mapAction(MapAction.java:57)
   ... skipped 3 stack elements
 at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
 at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401)
 at 
 com.xyrality.bk.actions.BKDirectAction.performActionNamed(BKDirectAction.java:84)
   ... skipped 6 stack elements
 at com.xyrality.bk.Application.dispatchRequest(Application.java:63)
 ... skipped 3 stack elements
 

 ___
Do not 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: SELECT count(*) throws - column t0.allianceid must appear in the GROUP BY?

2011-06-11 Thread Alexander Spohr
I am using ERXEOAccessUtilities.rowCountForFetchSpecification() now.
My way dates back to the ancient times when there was no wonder...

atze


Am 11.06.2011 um 19:59 schrieb Miguel Arroz:

 Hey,
 
  You're doing that in a very, VERY weird way. Why not using Wonder, as Pascal 
 suggested? It will generate a proper query and no work for you.
 
  Regards,
 
 Miguel Arroz
 
 On 2011/06/11, at 12:18, Alexander Spohr wrote:
 
 Looks like the bug is mine. I did not read the statement as i should, as the 
 count(*) is an attribute.
 
 To count an entity I add an Attribute count(*) on the fly to the entity.
 This attribute seems to be still in the entity while another fetch runs.
 
 This surprises me somewhat as I thought that my app is not multithreaded 
 inside EOF.
 But maybe I get an uncatched exception that keeps the count attribute from 
 being removed. I'll check into that.
 
 Sorry for the noise!
 
  atze
 
 
 
 
 Am 11.06.2011 um 12:25 schrieb Alexander Spohr:
 
 That is done by EOF.
 com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject
 
 It bring my apps speed massively down.
 We had no exceptions until today.
 
 
 Am 11.06.2011 um 12:18 schrieb Pascal Robert:
 
 Are you calling straight SQL or does that call was made with 
 ERXControlUtilities aggregate methods? You can't do a count(*) and having 
 all attributes listed after, that's why you are getting the must appear 
 in the GROUP BY clause error.
 
 Hi List,
 
 this is a strange one:
 - allianceID is nullable.
 Any idea what the problem here might be?
 
   atze
 
 
 JDBCAdaptorException: EvaluateExpression failed: 
 com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT count(*), 
 t0.allianceID, t0.alliancePermission, t0.comment, t0.creationDate, 
 t0.deletionDate, t0.gold, t0.id, t0.lastReadForumDate, 
 t0.lastReadReportDate, t0.loginId, t0.nick, t0.points, t0.rank FROM 
 Player t0 WHERE t0.allianceID = ?::int4 with
 Bindings: 1:71(allianceID):
 Next exception:SQL State:42803 -- error code: 0 -- msg: ERROR: column 
 t0.allianceid must appear in the GROUP BY clause or be used in an 
 aggregate function
 Position: 18
 at 
 com.webobjects.jdbcadaptor.JDBCContext._jdbcErrorWithChannel(JDBCContext.java:170)
 ... skipped 7 stack elements
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
 at 
 com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
 at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1206)
 ... skipped 1 stack elements
 at 
 com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
 at 
 com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
 at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1169)
 ... skipped 1 stack elements
 at 
 com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
 at 
 com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
 at 
 com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:96)
 at com.webobjects.foundation.NSArray.size(NSArray.java:1026)
 at com.xyrality.bk.eo.Alliance.publicPropertyList(Alliance.java:84)
 at com.xyrality.bk.eo.Player.publicPropertyList(Player.java:249)
 at com.xyrality.bk.eo.Habitat.publicPropertyList(Habitat.java:1187)
 at com.xyrality.bk.core.MapTile.propertyList(MapTile.java:54)
 ... skipped 10 stack elements
 at com.xyrality.bk.actions.MapAction.map(MapAction.java:71)
 at com.xyrality.bk.actions.MapAction.mapAction(MapAction.java:57)
 ... skipped 3 stack elements
 at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
 at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401)
 at 
 com.xyrality.bk.actions.BKDirectAction.performActionNamed(BKDirectAction.java:84)
 ... skipped 6 stack elements
 at com.xyrality.bk.Application.dispatchRequest(Application.java:63)
 ... skipped 3 stack elements
 
 
 ___
 Do not 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/arroz%40guiamac.com
 
 This email sent to ar...@guiamac.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: I've got the latest Gianduja snapshot for evaluation

2011-04-22 Thread Alexander Spohr
Um.. nope. Lars always tells the truth ;)

http://www.telegraph.co.uk/news/worldnews/europe/2453204/Bent-banana-and-curved-cucumber-rules-dropped-by-EU.html

atze


Am 22.04.2011 um 18:15 schrieb Chuck Hill:

 On Apr 22, 2011, at 8:10 AM, Lars Sonchocky-Helldorf wrote:
 
 Well, around here Belgium is known for three things mainly:
 
 - crazy beer (like cherry or apricot flavored ones)
 - the best chocolate of the world 
 - the stupid laws of the EU, like the ones which regulate the bend of 
 cucumbers and bananas
 
 You are just making that last one up, right?  Right?
 
 -- 
 Chuck Hill Senior Consultant / VP Development

 ___
Do not 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: EOGlobalID

2011-04-22 Thread Alexander Spohr

Am 22.04.2011 um 22:59 schrieb Chris Pastore:

 While trying to return an EOGlobalID for a generic record, I am getting a 
 null.
 
 I have a method to fetch a student:
 private static EOGenericRecord getStudent(EOEditingContext ctx, String sid) {
   EOGenericRecord student = (EOGenericRecord) 
 EOUtilities.objectMatchingKeyAndValue(ctx, Student, studentId, sid);
   ctx.insertObject(student);  //tried with and without inserting it into 
 the context

You fetch the student into the ctx. So it is already existent in the database 
and not a new one that you could insert.
You only insert newly created objects. So that they will be saved to the 
database.

   return student;
 }
 
 Later I try to retrieve that object's EOGlobalID with the following:
 EOGlobalID globalID = ctx.globalIDForObject((EOGenericRecord) value);

You don’t show where you get value.

 The value of globalID is always null. What am I missing? 

Maybe value is null?

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

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


Re: Java update breaks ant script WOCompile

2011-03-17 Thread Alexander Spohr
Hi list,

I had a copy of woproject.jar in /Library/Java/Extensions
That was a bad idea.

After removing it it works again.

Thanks for your help,

atze



Am 10.03.2011 um 16:53 schrieb Chuck Hill:

 I have installed this update and have no problems with command line (ant) 
 build.  Compile works fine.  Check your ant installation and try this update 
 again.
 
 Chuck
 
 
 On Mar 9, 2011, at 5:46 AM, Alexander Spohr wrote:
 
 Hi list,
 
 after the March 8th 2011 Java update (javac 1.6.0_24) I can not compile 
 using ant any more:
 
 BUILD FAILED
 build.xml:204: taskdef A class needed by class 
 org.objectstyle.woproject.ant.WOCompile cannot be found: 
 org/apache/tools/ant/taskdefs/Javac
 
 At first we thought it was the missing woproject.jar but it looks like 
 woproject.jar is existent but t can not find a Javac class that has been 
 available before.
 
 Any help?
 
  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:
 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


Java update breaks ant script WOCompile

2011-03-10 Thread Alexander Spohr
Hi list,

after the March 8th 2011 Java update (javac 1.6.0_24) I can not compile using 
ant any more:

BUILD FAILED
build.xml:204: taskdef A class needed by class 
org.objectstyle.woproject.ant.WOCompile cannot be found: 
org/apache/tools/ant/taskdefs/Javac

At first we thought it was the missing woproject.jar but it looks like 
woproject.jar is existent but t can not find a Javac class that has been 
available before.

Any help?

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

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


Re: SELECT statement on relationship binding

2011-01-24 Thread Alexander Spohr
Why remove it?
Just uncheck the diamond. You can then still use it in qualifiers but it won’t 
get fetched.

atze



Am 23.01.2011 um 23:42 schrieb Mark Wardle:

 Remove the inverse relationship. 
 
 Mark
 
 -- 
 Dr. Mark Wardle
 Specialist registrar, Neurology
 (Sent from my mobile)
 
 
 On 23 Jan 2011, at 22:05, Tarun Reddy t...@cornell.edu wrote:
 
 So I've got a situation where I'm seeing a SELECT that will eventually kill 
 my performance and want to see if I can fix it before my site goes live.
 
 My EOModel has an object called a Landing and an object called a 
 SiteDefinition. The SiteDefinition defines what the site looks like and the 
 Landing represents a user landing on the site. When a user comes to the 
 site, I create a Landing and associate it with the SiteDefinition so that I 
 can capture what site a user sees and what users were on a site.
 
 SiteDefinition to many Landings
 
 When I add the relationship using this:
 aLanding.setSiteDefinitionRelationship(getSiteDefinition());
 
 WebObjects decides it needs to select all Landings where the 
 siteDefinitionID equals the one I'm assigning. This is fine in dev where I 
 may only have 17 records but eventually I may have 10s of thousands of 
 records.
 
 Is this my EOModel, and if so how can I prevent it?
 
 Thank you,
 Tarun
 ___
 Do not 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/mark%40wardle.org
 
 This email sent to m...@wardle.org
 ___
 Do not 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/atze%40freeport.de
 
 This email sent to a...@freeport.de

 ___
Do not 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: NSPropertyListSerialization dictionaryForJSONString/jsonStringFromPropertyList

2011-01-04 Thread Alexander Spohr
Jup, that’s it.

Thanks for the pointer Dave.

atze



Am 03.01.2011 um 16:52 schrieb David Avendasora:

 Hi Alexander,
 
 Apparently your new Wonder install is fresher than your other ones. On 
 12/13 Anjo committed r11806 
 (http://wonder.svn.sourceforge.net/viewvc/wonder?view=revisionrevision=11806)
  to Wonder which removed Wonder's re-implementation of 
 NSPropertyListSerialization.
 
 He says to use ERXPropertyListSerialization instead, but right now, I 
 believe it is only in the Wonder_5_0_0_WebObjects_5_4_Branch (He added it as 
 part of the same commit).
 
 Dave
 
 
 
 
 On Jan 3, 2011, at 9:38 AM, Alexander Spohr wrote:
 
 I have a fresh install (Eclipse, WO543, Wonder) on a new machine using 
 wocommunity.org’s setup. All Frameworks are found by Eclipse.
 
 After checking out a project that works on other machines I get these errors:
 The method dictionaryForJSONString(String) is undefined for the type 
 NSPropertyListSerialization
 The method jsonStringFromPropertyList(NSDictionaryString,String) is 
 undefined for the type NSPropertyListSerialization
 
 Looks like Eclipse just finds the old NSPropertyListSerialization from 
 JavaFoundation but not the new one from ERExtension.
 
 What am I doing wrong or how can I tell Eclipse to load the right class from 
 the right framework?
 
  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:
 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/archive%40mail-archive.com

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


NSPropertyListSerialization dictionaryForJSONString/jsonStringFromPropertyList

2011-01-03 Thread Alexander Spohr
I have a fresh install (Eclipse, WO543, Wonder) on a new machine using 
wocommunity.org’s setup. All Frameworks are found by Eclipse.

After checking out a project that works on other machines I get these errors:
The method dictionaryForJSONString(String) is undefined for the type 
NSPropertyListSerialization
The method jsonStringFromPropertyList(NSDictionaryString,String) is undefined 
for the type NSPropertyListSerialization

Looks like Eclipse just finds the old NSPropertyListSerialization from 
JavaFoundation but not the new one from ERExtension.

What am I doing wrong or how can I tell Eclipse to load the right class from 
the right framework?

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

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


_Entity.java template bug?

2010-10-15 Thread Alexander Spohr
Hi list,

I have a warning in some of my classes that fullQualifier is not used after 
declaration.
The problem occurs if this if is true:

#if (${relationship.actualDestination.genericRecord})
 EOFetchSpecification fetchSpec = new 
EOFetchSpecification(${relationship.actualDestination.name}, qualifier, 
sortOrderings);
 fetchSpec.setIsDeep(true);
 results = 
(NSArray${relationship.actualDestination.classNameWithDefault})editingContext().objectsWithFetchSpecification(fetchSpec);
#else
 results = 
${relationship.actualDestination.classNameWithDefault}.fetch${relationship.actualDestination.pluralName}(editingContext(),
 fullQualifier, sortOrderings);
#end

I guess it should be using fullQualifier like this:
 EOFetchSpecification fetchSpec = new 
EOFetchSpecification(${relationship.actualDestination.name}, fullQualifier, 
sortOrderings);


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

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


Re: WOnder install fails

2010-10-09 Thread Alexander Spohr
Sorry for the noise.
I had an old framework from 2007 with Resources pointing to 
Versions/Current/Resources but only Versions/A existed.



Am 09.10.2010 um 15:36 schrieb Alexander Spohr:

 Hi list,
 
 just got a fresh WOnder for 5.4.X and tried to install it as instructed here:
 http://wiki.objectstyle.org/confluence/display/WONDER/Download+Wonder+Source%2C+Build%2C+Install+and+Upgrade
 
 The sudo ant frameworks.install fails with this message:
 
 global.framework.install:
 [sync] Copying 2 files to /Library/Frameworks/FrontBasePlugIn.framework
 
 BUILD FAILED
 /Users/atze/Source/XYRALITY/WonderSource/build.xml:17: The following error 
 occurred while executing this line:
 /Users/atze/Source/XYRALITY/WonderSource/Build/build/build.xml:1018: The 
 following error occurred while executing this line:
 /Users/atze/Source/XYRALITY/WonderSource/Build/build/build.xml:907: The 
 following error occurred while executing this line:
 /Users/atze/Source/XYRALITY/WonderSource/Build/build/generic.xml:524: Failed 
 to copy 
 /Users/atze/Roots/FrontBasePlugIn.framework/Resources/Java/FrontBasePlugIn.jar
  to 
 /Library/Frameworks/FrontBasePlugIn.framework/Resources/Java/FrontBasePlugIn.jar
  due to java.io.FileNotFoundException 
 /Library/Frameworks/FrontBasePlugIn.framework/Resources/Java/FrontBasePlugIn.jar
  (No such file or directory)
 
 
 If I then try to run a fresh WOnder Application I get this Stack:
 
 Thread [main] (Suspended (exception AbstractMethodError)) 
   NSNotificationCenter.addObserver(Object, NSSelector, String, Object) 
 line: 230  
   NSProperties.registerForNotifications() line: 322   
   NSProperties.setSharedInstance(NSProperties) line: 215  
   NSProperties.clinit() line: 156   
   EOEventCenter.clinit() line: 92   
   EOEditingContext.clinit() line: 582   
   EOCustomObject.clinit() line: 2012
   ClassT.forName0(String, boolean, ClassLoader) line: not available 
 [native method] 
   ClassT.forName(String) line: 169  
   WOApplication.class$(String) line: 185  
   WOApplication.clinit() line: 185  
 
 Any advice?
 
   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:
 http://lists.apple.com/mailman/options/webobjects-dev/atze%40freeport.de
 
 This email sent to a...@freeport.de

 ___
Do not 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


Can not launch WOnder app / was: WOnder install fails

2010-10-09 Thread Alexander Spohr
Hi list,

if I try to run a fresh WOnder application I get this Stack:

Thread [main] (Suspended (exception AbstractMethodError))   
NSNotificationCenter.addObserver(Object, NSSelector, String, Object) 
line: 230  
NSProperties.registerForNotifications() line: 322   
NSProperties.setSharedInstance(NSProperties) line: 215  
NSProperties.clinit() line: 156   
EOEventCenter.clinit() line: 92   
EOEditingContext.clinit() line: 582   
EOCustomObject.clinit() line: 2012
ClassT.forName0(String, boolean, ClassLoader) line: not available 
[native method] 
ClassT.forName(String) line: 169  
WOApplication.class$(String) line: 185  
WOApplication.clinit() line: 185  

A fresh WebObjects application runs without any problems.

Any advice?

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

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


Current Status of WO

2010-09-29 Thread Alexander Spohr
Hi list,

I am planning a new project with heavy load. No HTML output, just plists. Lots 
of users, small data footprint (about 10k per request). PostgreSQL.
I consider using WO and EOF again because it served me well in the last 
(almost) 15 years. But I am not sure about the current status.

The net has lots of outdated info and a some fresh about wonder. This list 
looks still very active (that gives me hope).
What is the current status of WO? Do we have a public hosted WO5.4 that Apple 
won’t pull? I left this list two years ago so if someone could please bring me 
up to speed?

Thank you for your time. It is appreciated!

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

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


Apple dropping WO from own sites

2008-10-03 Thread Alexander Spohr

(Sorry if this was already on the list.)

Why did Apple drop WO from the shop?
.mac has already dropped WO as me.com is something else.

Anyone who can share insights why this is so?

If Apple drops WO now from most of its own sites I get really bad  
feeling..


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

This email sent to [EMAIL PROTECTED]


[solved] Re: Apple dropping WO from own sites

2008-10-03 Thread Alexander Spohr

Am 03.10.2008 um 16:19 schrieb Pascal Robert:

Please stop this FUD. It is well know that the front part of  
MobileMe is 100% JavaScript, and that WO is still used in the back- 
end. Same thing for the Apple Store, they are rewriting the URLs but  
it still WO...


Well known? Sorry that I asked.

Am 03.10.2008 um 16:20 schrieb Miguel Arroz:

 .Mac has been replaced by me.com, so it was naturally dropped (the  
entire site was dropped, not WO!).


Yes I knew that part.

 Mobile.me is fully WO on the backend. The front end uses  
SproutsCore to support the new desktop-like behaviours, and calls WO  
via RPC calls.


Because Apple bought me.com and the URLs look different I thought they  
also bought the underlying software.



 Everything is OK, the world is not collapsing (although it may have  
some concurrency problems once in a while).


Thanx for assuring me :)


Before you could at least point to the URL to argue for WO. What are  
you doing now? Telling the customer that WO ist the best technologie  
you can get did work when the price was $100k, but not any more.


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

This email sent to [EMAIL PROTECTED]


Re: [SPAM] Re: Apple dropping WO from own sites

2008-10-03 Thread Alexander Spohr


Am 03.10.2008 um 18:17 schrieb Guido Neitzer:

Have you ever asked them, whether they care about the technology of  
their company cars?


They don’t care as long as it is Audi, BMW or Mercedes...



You sell a service. You can provide a specific service with the tools
at your hand to a price you define. That is how they handle most of
their other business and that should be the selling point.


Usually yes. But some of them want to do support of the apps on their  
own after the hulk is implemented. So they ask for technology before  
you get the job.




Apple uses a lot of WO inside the company, they do a lot more than a
couple of years ago; it's good to have Pierre there doing a lot of
very good work in making the tool better as the responsible manager
and WO wizard.


Yes, I bow to him.


So why do you worry about it now when it's actually a
good time for WO developers?


I worry since the price dropped.
I still think it the best tech out there.
Just came across the new url-style and worried.

Please forget that I asked. My mistake has been corrected already.

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

This email sent to [EMAIL PROTECTED]


Re: mod_gzip + WO problems

2008-06-25 Thread Alexander Spohr

Hi John,

where did you get the mod from? The version I had has a bug, it only  
scans for content-type, but not for Content-type (Capital C). Or some  
other header that WO sends with a capital.
I think you can see it because you either get two headers, or the size  
does not fit the content. I can’t remember what it was exactly.


If you fix that, mod_gzip works fine.

atze


Am 24.06.2008 um 22:43 schrieb John Huss:

I'm trying to get mod_gzip running on one of my WO apps.  It works  
for static pages (index.html) and static resources (like css) in my  
WO app, but not on the html returned from the WO app.  I'm guessing  
this has something to do with the fact that the content is being  
dynamically generated.  Any tips on how to get this working?


John

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

This email sent to [EMAIL PROTECTED]


http://wiki.objectstyle.org/confluence dead?

2008-06-17 Thread Alexander Spohr

Hi there,

we are trying to reach http://wiki.objectstyle.org/confluence since  
yesterday. But no response comes back.


Port 80 works, refresh too, but confluence seems to be down.

Is that the case or do we have a problem ourselves?

atze


Macintosh-2:~ atze$ telnet wiki.objectstyle.org 80
Trying 208.78.103.186...
Connected to wiki.objectstyle.org.
Escape character is '^]'.
GET /
html
body
h1Nothing to see here/h1
/body
/html

Connection closed by foreign host.

___
Do not 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: Null property exceptions

2008-06-03 Thread Alexander Spohr
; propertyKey:  
place; type: NullPropertyException; additionalExceptions: (  ),
er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
points; type: NullPropertyException; additionalExceptions: (  ),
er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
potential; type: NullPropertyException; additionalExceptions:  
(  ) )
[2008-6-2 3:19:54 CDT] WorkerThread0  
er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
numSecs; type: NullPropertyException; additionalExceptions:  
( er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
numThirds; type: NullPropertyException; additionalExceptions:  
(  ),
er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
numWins; type: NullPropertyException; additionalExceptions: (  ),
er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
place; type: NullPropertyException; additionalExceptions: (  ),
er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
points; type: NullPropertyException; additionalExceptions: (  ),
er.extensions.ERXValidationException object:  
com.netbracketsfw.model.EntryScore pk:null; propertyKey:  
potential; type: NullPropertyException; additionalExceptions:  
(  ) )
	at  
com 
.webobjects.eoaccess.EOAttribute.validateValue(EOAttribute.java: 
2541)
	at  
com 
.webobjects 
.eoaccess 
.EOEntityClassDescription 
.validateValueForKey(EOEntityClassDescription.java:452)
	at  
er 
.extensions 
.ERXEntityClassDescription 
.validateValueForKey(ERXEntityClassDescription.java:796)
	at  
com 
.webobjects 
.eocontrol 
.EOCustomObject.validateValueForKey(EOCustomObject.java:1311)
	at  
er 
.extensions 
.ERXGenericRecord.validateValueForKey(ERXGenericRecord.java:1063)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.validateForSave(EOCustomObject.java: 
1381)
	at  
er 
.extensions 
.ERXGenericRecord.validateForSave(ERXGenericRecord.java:1109)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.validateForInsert(EOCustomObject.java: 
1433)
	at  
er 
.extensions 
.ERXGenericRecord.validateForInsert(ERXGenericRecord.java:1132)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.validateTable(EOEditingContext.java: 
2265)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.validateChangesForSave(EOEditingContext.java: 
2991)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext._prepareForPushChanges(EOEditingContext.java: 
3233)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 
3163)

at er.extensions.ERXEC._saveChanges(ERXEC.java:937)
at er.extensions.ERXEC.saveChanges(ERXEC.java:860)

___
Do not 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/werner%40isd.uni-stuttgart.de

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/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--

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/atze%40freeport.de

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: Null property exceptions

2008-06-03 Thread Alexander Spohr

Jeff,

a 1:1 always connects the pk of both tables. Otherwise it is 1:n and  
should be modeled that way.


You have modeled a 1:n and set the propagation in the wrong direction  
(assuming that the other side has a to-many relationship :)


If you want to delete the entryScoreID you have to correct your  
relationship.


atze



Am 03.06.2008 um 15:40 schrieb Jeff Schmitz:


HI Alexander,
  So, to propagate primary key between two entities that have a  
one to one relationship, how would need to specify that?  As noted  
in my recent message, I set propagate on the relationship in the  
relationship editor, but the foreign key remains in Entry with no  
seeming way to delete it.


thanks,
Jeff

On Jun 3, 2008, at 4:18 AM, Alexander Spohr wrote:


Jeff,

you don’t want to propagate anything here.
entryScoreID is not a primary-key but a foreign-key, so you can not  
propagate it.


Owns Destination is wrong as well. You designed your relationships  
backwards (read: wrong).
And you’ll need to set all other relationships as well before you  
saveChanges, as none of the fks allow NULL.


atze


Am 03.06.2008 um 06:58 schrieb Jeff Schmitz:

No, I don't think I have an foreign keys exposed.  If they were,  
they'd have the little diamond by them, right?


entryScore.jpg

On Jun 2, 2008, at 9:46 PM, Chuck Hill wrote:



On Jun 2, 2008, at 9:42 PM, Jeff Schmitz wrote:


thanks!
You're exactly right, that relationship is an owns destination  
relationship.  I changed the code to set the properties on the  
existing entryScore instead of creating a new one:


EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, DEFAULT, pw, true, false, new  
Integer(0), , false, false, false, new Integer(0), pool, user);

entry.entryScore().setNumSecs(0);
entry.entryScore().setNumThirds(0);
entry.entryScore().setNumWins(0);
entry.entryScore().setPlace(0);
entry.entryScore().setPoints(0);
entry.entryScore().setPotential(0);
ec.saveChanges();

but now I'm getting a different validation error.  There's  
probably still something I don't have setup right for using the  
propagates primary key and owns destination options for this  
relationship, but I'm not sure what it is.  It's interesting  
that the below INSERT passes in a NULL value for the  
entryScoreID.  If it automatically creates its own entryScore  
object, shouldn't it be sending in the ID of that object instead  
of NULL?


Well, uh, how do you have it set?  Do you have any foreign key  
exposed as a class property?  If so, don't!  You can make the PK  
a class property (not saying this a good idea, just that it won't  
cause errors), but exposing an FK will cause this sort of error.



Chuck

com.webobjects.eoaccess.EOGeneralAdaptorException:  
EvaluateExpression failed:  
com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression:  
INSERT INTO t_entry(c_still_alive_first, c_games,  
c_still_alive_third, spare_int, userID, id, c_name,  
c_picks_confirmed, spare_bool, c_last_save, c_groups,  
entryScoreID, poolID, entryAdminID,  
c_still_alive_second, spare_str, c_password,  
c_tie_breaker) VALUES ('false', 15, 'false', 0, 101,  
101, 'DEFAULT', 'true', 'false', TIMESTAMP '2008-06-02  
21:32:13.802', 4, NULL, 101, NULL, 'false', '', 'pw', 0)  
withBindings: :
Next exception:SQL State:23   subclass = 00 -- error code:  
357 -- msg: Exception condition 357. Integrity constraint  
violation (CHECK,  
t_entry.NOT_NULL_t_entry__entryScoreID(\entryScoreID\ IS NOT  
NULL)).


Thanks,
Jeff


On Jun 2, 2008, at 12:49 AM, Johann Werner wrote:


Hi Jeff,

what is your entryScore relationship like? Do you have owns  
destination checked? If yes then by creating an Entry object  
EOF does create an EntryScore object for you automatically. So  
when you save changes that object is still in the editing  
context but no attributes have been set and thus throwing  
NullPropertyExceptions for every attribute that does not allow  
Null.


jw


Am 02.06.2008 um 04:35 schrieb Jeff Schmitz:


Hello,
I can't get past NullPropertyException's when I try to save  
changes to my editing context.  I have an object, pool, that I  
add an entry to with the Entry.createEntry operation.  Then,  
in turn, I add an EntryScore obejct to the entry object.  Note  
that the entryScore relationship in Entry (the one causing the  
problems) is set to propagate primary key.  I have tried  
making it both mandatory and optional with the same results.   
Any ideas what may be causing this?


Here's the basic code:

EOQualifier poolQual = Pool.NAME.eq(name);
pool = Pool.fetchRequiredPool(ec, poolQual);
entry = Entry.createEntry(ec, DEFAULT, pw, true, false,  
new Integer(0), , false, false, false, new Integer(0), pool,  
user);
EntryScore es = EntryScore.createEntryScore(ec, 0, 0, 0, 0, 0,  
0);

entry.setEntryScore(es);
ec.saveChanges();

exception (on the SaveChanges line):

Jun 01 21:19:54 netBrackets[64375

Re: WebObjects + iPhone SDK

2008-06-03 Thread Alexander Spohr

XCode is deprecated for WO.
You need to use Eclipse and WOLips.

atze


Am 03.06.2008 um 21:30 schrieb Joe Parks:

Is anyone doing development with both WebObjects and the iPhone SDK?  
After installing the SDK beta, I can no longer create a WebObjects  
project in XCode.
Is there a trick to re-enable WO development? I selected the  
checkbox for WebObjects during the SDK beta installation, but that  
doesn't seem to have functioned as expected.


Thanks,
-joe

___
Do not 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: odd behaviour in n:m settings in EntityModeler in WOLips

2008-06-02 Thread Alexander Spohr

Johann,

it sounds like you got it the wrong way ’round.

Am 02.06.2008 um 08:58 schrieb Johan Henselmans:

I am creating a n:m relation between two tables, called adminuser  
and admingroup, and flatten the relationship.


That would result in an n:m table, admingroupadminuser, with two  
relationships on both sides: one would propagate the primary key to  
the table admingroupadminuser, the other one would be a flattened  
one to the other table.


The master-tables (adminuser and admingroup) have to propagate their  
pk into the n:m (admingroupadminuser). admingroupadminuserhas no pk of  
its own so it has nothing to propagate somewhere.


So you’ll have these real relationships (which you switch off in the  
model):

adminuser - admingroupadminuser - admingroup

and these two flattened ones:
adminuser - admingroup



However, I am now getting verification errors in EntityModeler after  
creating the table. It says:
The relationship adminGroupAdminUsers is a to-many but also  
propagates its primary key.


This sounds strange.

I assume that turning off the propagate primary key would prevent  
creating a new record in the n:m table admingroupadminuser.


See above.


Anybody has the same experience,


No.


solutions?


I hope so :)


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

This email sent to [EMAIL PROTECTED]


Re: EditingContext-Sync [was: WOLongResponesePage Problem]

2008-05-28 Thread Alexander Spohr


Am 27.05.2008 um 22:58 schrieb Tonny Staunsbrink:

The reason consider using the same editing context, is that sooner  
or later i properly wan't my eo's to be displayed to the user


At the end of the LongResponse I guess?

and usign two ec's will either force me to localize eo's (and using  
global ids), which i consider a bit clumsy,


You either localize them or just fetch them into the new  
EditingContext. Nothing clumsy about it.


or i will have to keep a reference to the newly created ec in the  
background job, and that bookkeeping adds up, if the user can  
perform several backend jobs.


The EditingContexts do the bookkeping anyway and saveChanges() will  
propagate the changes.


If you are about to create new objects, I'd recommend using a new  
EditingContext anyway, otherwise you might blow the whole Session if  
something goes wrong.


Or did I miss your point?

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

This email sent to [EMAIL PROTECTED]


Re: Weird WO/Apache/Safari problem

2008-05-19 Thread Alexander Spohr

I got sick before I found the ENTER-link...

News work.

But help does not:
http://www.sensoryresearch.com:15000/cgi-bin/WebObjects
Nothing is listening on port 15000.


atze


Am 19.05.2008 um 21:07 schrieb Jaime Magiera:


The fun never ends :)



In Safari...

Go to http://www.sensoryresearch.net, click on news:  Apache  
throws an error on the first and/or successive tries.
Click on Archives, then News:  Apache throws an error on the  
first and/or successive tries.


In Firefox

Go to http://www.sensoryresearch.net, click on news:  no problems
Click on Archives, then News:  no problems

---

I'm stumped on this. These are Apache errors I think, as the WO app  
is not being reached.


Any thoughts?

Jaime Magiera

Sensory Research
http://www.sensoryresearch.net

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

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: takeFormValuesFromRequest problem

2008-05-14 Thread Alexander Spohr

You did not deliver the .wod

What exactly is IsCompanyCheckbox doing? Does it set the condition for  
IsCompany/IsNotCompany (if it is a condition)?
If yes, this will kill your cycle while the tree is rendered/comes  
back and the user checks the box in between.


Do not use WOConditionals at that place. What for anyway? You  
duplicate your html without need.
Let one block stand, erase the other - and your conditionals! Your  
javascript and the checkbox should just switch visibility.


atze


Am 14.05.2008 um 22:24 schrieb Lachlan Deck:


On 14/05/2008, at 9:54 PM, Mike Schrag wrote:

It should. The javascript is only adjusting the display:none or  
otherwise.
Wait, so you're saying it's display:none and you're making NO  
structural changes to the form on the server side and it's still  
being passed a null?  I'm calling shenanigans :)  That doesn't make  
sense at all.


Event.addBehavior({
'#iscompany:click' : function(e) {
		$('login-cndt', 'login-cndd', 'login-fndt', 'login-fndd', 'login- 
lndt', 'login-lndd').invoke('toggle');

},
..

Er, okay - shenanigans it is :-)
But doesn't the below only change after takeValues. i.e., during  
appendToResponse?


webobject name=PageWrapper
 ...
 webobject name=ContactForm
   ...
   fieldset
 dl class=form-details
   dtlabel for=iscompanyAs company/label/dt
   ddwebobject name=IsCompanyCheckbox/noscript  
webobject name=RefreshButton//noscript/dd

   webobject name=IsCompany
 dt id=login-cndtlabel for=companynameCompany Name/ 
labelem title=This field is required*/em/dt
 dd id=login-cnddwebobject  
name=CompanyNameValidationwebobject name=CompanyNameField// 
webobject/dd
 dt id=login-fndt style=display:none;label  
for=firstnameFirst Name/labelem title=This field is  
required*/em/dt
 dd id=login-fndd style=display:none;webobject  
name=FirstNameValidationwebobject name=FirstNameField// 
webobject/dd
 dt id=login-lndt style=display:none;label  
for=lastnameLast Name/labelem title=This field is  
required*/em/dt
 dd id=login-lndd style=display:none;webobject  
name=LastNameValidationwebobject name=LastNameField// 
webobject/dd

   /webobject
   webobject name=IsNotCompany
 dt id=login-cndt style=display:none;label  
for=companynameCompany Name/labelem title=This field is  
required*/em/dt
 dd id=login-cndd style=display:none;webobject  
name=CompanyNameValidationwebobject name=CompanyNameField// 
webobject/dd
 dt id=login-fndtlabel for=firstnameFirst Name/ 
labelem title=This field is required*/em/dt
 dd id=login-fnddwebobject  
name=FirstNameValidationwebobject name=FirstNameField// 
webobject/dd
 dt id=login-lndtlabel for=lastnameLast Name/ 
labelem title=This field is required*/em/dt
 dd id=login-lnddwebobject  
name=LastNameValidationwebobject name=LastNameField// 
webobject/dd

   /webobject
   ...
 /dl
   /fieldset
   ...
 /webobject
/webobject

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/atze%40freeport.de

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: takeFormValuesFromRequest problem

2008-05-14 Thread Alexander Spohr
I hate to follow up on myself but it is late here and I hit submit a  
bit too early :)


Am 14.05.2008 um 22:24 schrieb Lachlan Deck:

But doesn't the below only change after takeValues. i.e., during  
appendToResponse?


No it changes IN takeValues. When it gets the checkbox, your following  
conditionals are reverted. Therefore your appendToResponse drew  
something different than your takeValues gets back - after taking the  
checkbox’ value.


Not sure if I am understandable here :)

Rule of thumb:
- Never change conditionals anywhere after super.appendToRespose() and  
before super.invokeAction()!


atze


Trying to clarify:

checkbox = false;
appendToResponse draws second condition - field-ids begin with x.y.z.1

user checks box
takeValues gets checkbox and switches conditionals
the incoming values have ids beginning with x.y.z.1 (second  
conditional) but the fields in takeValues now begin with x.y.z.0  
(first conditional) - so they ignore the values as they have not the  
correct ids. Result: your objects get null values because the  
inputstream has no values for your fields.


___
Do not 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: Returning a PDF from a long response page

2008-05-09 Thread Alexander Spohr


return the final page and add a refresh-header to load the pdf after 0  
seconds.


atze


Am 09.05.2008 um 17:07 schrieb John Huss:


I have a page with an ERXLongResponse component on it, like so:

wo:if condition=$longResponseTask
 div class=processingProcessing Request.../div
 wo:ERXLongResponse task=$longResponseTask  
refreshInterval=$5/

/wo:if

When the task completes I'd like to return a PDF and also refresh  
the submitting page to remove the Processing request message.  I  
can return the PDF just fine, but how do I also refresh the  
submitting page?  I'm not sure how to accomplish both things.   
Suggestions?


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:
http://lists.apple.com/mailman/options/webobjects-dev/atze%40freeport.de

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: WO Tutorials

2008-05-07 Thread Alexander Spohr

Select WOLips Goodies Win?
Hm...
Select WOLips Goodies Mac!

;)
atze


Am 07.05.2008 um 06:20 schrieb Don Lindsay:


Hello;

Please visit http://web.mac.com/pccdonl/index.html, I created a  
short installation tutorial as an example.  I think this is the kind  
of thing we need for beginner users of WOLips/WebObjects.


Please give me your feedback.

Don

___
Do not 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: WO NoVA

2008-05-06 Thread Alexander Spohr

No wonder you have more hits from France than from Germany!

• English

• Français

• German

The latter should be Deutsch so we can understand its meaning ;)

atze

ps. Nothing happens at all if I click on French or German.
pps. Xavier? Are you clicking on that site every day to give France  
more hits than Germany?



Am 06.05.2008 um 20:15 schrieb Pascal Robert:

Just for fun, I made screenshots on visitors location from the  
community Web site:


http://www.wocommunity.org/images/wousa.png

http://www.wocommunity.org/images/woworld.png

Might help people who want to know if other WO dudes are in their  
area.


___
Do not 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: Sorting to many relationship

2008-05-04 Thread Alexander Spohr


EOSortOrdering.sortedArrayUsingKeyOrderArray(results, sortOrderings)

If you use the eclipse-EOGenerator, you could generate methods like  
this:


  public  
com.webobjects.foundation.NSArraycom.assense.account.eo.Address  
addressArray(com.webobjects.eocontrol.EOQualifier qualifier,  
com 
.webobjects 
.foundation.NSArraycom.webobjects.eocontrol.EOSortOrdering  
sortOrderings, boolean fetch)



atze


Am 04.05.2008 um 07:07 schrieb Steve Peery:

What is the typical way to sort a to many relationship created with  
Entity
Modeler? For example, in my School object I have a to many  
relationship of

Student objects that I want sorted by Student.name().

Steve


___
Do not 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/atze%40freeport.de

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: Openning an extra window on button click

2008-05-04 Thread Alexander Spohr


Am 04.05.2008 um 02:30 schrieb Serge Cohen:

Now, I'd like to have a button in the form, which when clicked would  
create an extra window with a detailed list of the SELECTED object  
of class A.


form: WOForm {
action = yourAction;
target = newNiceLittleWindow;
}


To me this should be a button (detail of selected), so that I have  
a chance to get the current state of the selection. Furthermore the  
corresponding method should return null (so that the content of  
the window does not change).


No, do not return null but the content of the new detail-page. This  
will just be displayed in your newNiceLittleWindow;



Now I also want another (new) window to open up; to achieve that my  
idea was to add to the BODY onload action a small call to  
window.open(someURL, _blank, ...) calling a method that would  
return the detail of the selected object. I guess I have to use  
WOActionURL to generate the URL used by window.open ... ?


Don’t do that. That would always be called. Then you’d have to add a  
WOConditional for the body-tag and the horror begins :)


A last question, which indeed is more HTML related : Indeed I'm  
using a wrapper component for having a consistent layout over all  
the pages of the application. This makes it complicated for me to  
add on demand a onload javascript to the BODY element... Is there  
a more convenient place I can place that one ?


Dont use onLoad. Just put the JavaScipt where (your enclosed  
WOComponent-page) it is needed, and it will run when the Browser  
parses it.


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

This email sent to [EMAIL PROTECTED]


Re: [SOLVED] Re: @sum optimization?

2008-04-29 Thread Alexander Spohr


Am 28.04.2008 um 23:20 schrieb Florijan Stamenkovic:

The @keypath-actions are something that NSArray does. And NSArray  
knows nothing about EOF.


Hm, this could easily be overridden by an EOF specific subclass...  
An NSArray (a fault) that would respond to objectAtIndex(...) by  
firing the fault and returning the appropriate object, but would  
respond to valueForKeyPath([EMAIL PROTECTED]) by asking EOF to  
evaluate it directly. No?


EOF has no method to to count, sum, max, min and the like in the  
database.




Well, maybe I am pushing this idea way too far :)



The idea sounds good but then you had two modi operandi:
1. count rows in the db
2. count objects in memory.
I am not sure if that would be a good idea, you might get different  
results at different times.


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

This email sent to [EMAIL PROTECTED]


Re: Best Server Environment for Large WebObjects Applications

2008-04-29 Thread Alexander Spohr


Am 29.04.2008 um 04:53 schrieb Don Lindsay:

I agree.  Not really sure who they are selling these to.  I work  
with Government and Fortune 500 companies they and I know I could  
not get 20k*2=40K past them, we could purchase a hell of a server  
with that money.



Question: What does the iTunes Store use?

atze

(Don’t throw rocks at me for asking something guaranteed to be under ND)

___
Do not 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: @sum optimization?

2008-04-28 Thread Alexander Spohr

Am 28.04.2008 um 19:22 schrieb Florijan Stamenkovic:


I thought that @count operates directly on the db


No.

The @keypath-actions are something that NSArray does. And NSArray  
knows nothing about EOF.


atze

ps. Someone might shout WOnder now. I don’t use it, so I have no clue  
if it can do this.

___
Do not 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: Best Server Environment for Large WebObjects Applications

2008-04-28 Thread Alexander Spohr


Am 28.04.2008 um 21:37 schrieb Alan Ward:

It can use various techniques for deciding when an app instance is  
down (or unresponsive)
and will cease routing requests to it.  You still need something to  
restart dead apps but

you can do that without wotaskd.


So why not use wotaskd in the first place but go with something alien  
to WO?

better/faster/stronger? Nah :)

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

This email sent to [EMAIL PROTECTED]


Re: Apple Defines a Product Road Map for WebObjects!

2008-04-28 Thread Alexander Spohr

You forgot the :)



Am 28.04.2008 um 23:37 schrieb Miguel Arroz:


Hi!

 All the details in http://terminalapp.net/apple-defines-a-product-road-map-for-webobjects/ 
.


 Yours

Miguel Arroz

Miguel Arroz
http://www.terminalapp.net
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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Best Server Environment for Large WebObjects Applications

2008-04-27 Thread Alexander Spohr
Not sure if I understand the question. But I’d say deploy the woa  
without any 'app-server' around it, using wotaskd and JavaMonitor. It  
is its own app-server.


Maybe someone could point me to the advantage of using any additional  
stuff like Tomcat or JBoss with any WO-app.


atze



Am 27.04.2008 um 08:20 schrieb Don Lindsay:


Hello;

I have been using tomcat for years for all of my web applications.   
I am just wondering if there is anything better/faster/stronger out  
there for running WebObjects applications.


Most of the applications I write have  5000 users and are required  
to have an uptime of 99.8%.  The users of the applications use them  
to perform all of their day-to-day tasks.  Performance is an  
foremost in my mind, as I maintain all of the applications and  
assist users with any issues they may encounter.


Thanks,

Don

___
Do not 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: CLOSE_WAIT processes/ instances HANG ???

2008-04-22 Thread Alexander Spohr

I think you are using an old Apache-plugin (mod_WebObjects.so).
Grab, compile and install a new one.

atze



Am 22.04.2008 um 15:47 schrieb Shravan Kumar.M:


We have been battered by CLOSE_WAIT processes and instances hang.
We see CLOSE_WAIT state of a process for both java and httpd  
processes.


___
Do not 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: Staying with WebObjects

2008-04-12 Thread Alexander Spohr


Am 11.04.2008 um 22:47 schrieb David Avendasora:


On Apr 11, 2008, at 4:06 PM, Simon McLean wrote:

I think the real bug-bear for people struggling to get their  
companies to commit to webobjects isn't the fact that it's not open  
source - i think it's the fact that you have to buy a mac to get  
your hands on the frameworks.


No problem. Just write up the purchase order for a copy of the WO  
5.4 frameworks wrapped in super-sexy MacBookPro packaging. Just  
$4,000. Or you can go for the more economical Mac mini packaging.  
Just $599. (that's $200 off the $799 list-price for 5.2) and you get  
a free computer to (dual)boot.



Situation in the Real World:

- No software-package, you have to buy a Mac instead that people don’t  
want.

- No support to transfer that to Win/Linux
- No clear licensing for developers using Win/Linux
- If you think the license model is „one Mac OS X license per  
developer seat“ then you still have an OS DVD that you can not use to  
install WO on Win/Linux.



The only possible _manager acceptable_ solutions (from my experience)  
could be:


1. put the jars/frameworks in a package, that you can extract on any  
plattform (zip/gzip/rar).
2. clear up the license to make WO either a free download or charge a  
fee per dev-seat.


A goodie would be to add Apache-adaptors compilable on Win/Linux.


The problem with supporting only Mac OS X remains a problem though.

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

This email sent to [EMAIL PROTECTED]


Re: Leaving WebObjects

2008-04-09 Thread Alexander Spohr

How many WO-Devs do you need?
bbum and ...?

atze


Am 09.04.2008 um 05:43 schrieb Kieran Kelleher:
So, how many would it take if the #1 music retail online commerce  
site was a J2EE project with J2EE devs . 50, 100, 150?



On Apr 8, 2008, at 6:13 PM, Alan Ward wrote:



And of course all the old arguments still apply.  Like how  
many J2EE developers (and how long) would it take to put together
an online commerce site that could become the #1 music retailer in  
the world?  ;-)


You may be able to find them more easily but how productive are they?

Alan

On Apr 8, 2008, at 4:06 PM, Jeff Smith wrote:

IMO, there's no excuse for somebody saying there aren't any good  
WO developers to hire these days.  I know of several who are  
working on J2EE stuff that would gladly jump to a WO project if  
one came up.  I'm more than happy to be working in WO now, I  
actually think it's much better now than just a few years ago.  At  
least I feel like there's more WO going on these days (I actually  
got a WO call from a recruiter the other day, yikes!)


Don't give up WO because of all these reasons--do what I do and  
show them that WO is better for all the right reasons and make  
them come around.  There are lots of reasons to stick with it.


On Apr 8, 2008, at 5:46 PM, Andrew Lindesay wrote:

3. Perceived lack of knowledgeable WebObjects programmers (I'm  
in the Chicago suburbs -- Northbrook, IL, to be precise)

...
Perhaps they've not been paying attention to the mailings  
lists. (specifically: webobjects-dev, wonder-disc, woproject- 
dev).

...
I think they meant lack of unemployed, knowledgeable WebObjects  
programmers.  Most (all?) of us are gainfully employed most of  
the time.  Good WO developers are a little hard to find.


I'm having a lull at the moment if anybody wants to discuss  
anything... :)


cheers.

___
Andrew Lindesay
www.lindesay.co.nz

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jas35%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/award%40apple.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/kieran_lists%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/atze%40freeport.de

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: Best Way® to test for existence of a rela tionship

2008-04-07 Thread Alexander Spohr

Fetch only ManufacturedParts.

Don’t use the relationship to Parts (if that’s what you do) to get the  
NSArray.
Either create a relationship to ManufacturedParts or fetch them using  
a qualifier.


Iterating over a mixed NSArray wanting only one special class is bad  
design. Filter it before you use it for such a task.


atze



Am 07.04.2008 um 15:12 schrieb David Avendasora:

Hi all,

This is more of a Java question than a WO-specific one

I have an Inheritance structure in my app:

Part (abstract Superclass)
RawMaterial (subclass of Part)
ManufacturedPart (subclass of Part)

I have an NSArray of Parts that could be, RawMaterial instances,   
ManufacturedPart instances, or most likely, a mixture of the two.


I want to iterate through the Array and get the contents of the  
Part.billsOfMaterial() (toMany) relationship. The problem is that  
while ManufacturedParts have this relationship, RawMaterials do not.


Right now, I'm using a try-catch block that catches the exception on  
RawMaterial.billsOfMaterial() and just ignores it.


I could also add a billsOfMaterial() method to the RawMaterial class  
that simply returns NSArray.emptyArray.


Is one way better than the other for any reason?

Thanks,

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/atze%40freeport.de

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: Best Way® to test for existence of a rela tionship

2008-04-07 Thread Alexander Spohr

What are the other differences between RawMaterial and ManufacturedPart?
Wouldn’t it be enough to just flag the RawMaterial ones as such and  
just have one class for both?


atze


Am 07.04.2008 um 18:02 schrieb David Avendasora:
You know, I was hoping to avoid the whole question if the domain was  
actually well-modeled or not, but with such dispersions cast on my  
flawless modeling skills, I must respond! :-P


I have 2 types of Parts. One purchased from an outside vendor  
(RawMaterial), and ones that are manufactured (ManufacturedPart).  A  
ManufacturedPart is made up of any number of component Parts. These  
component Parts can be _either_  a RawMaterial or another  
ManufacturedPart.


So I have modeled it like this:

ManufacturedPart - BillOfMaterial - BOMComponent - Part

To make things more complicated each given Manufactured Part can  
have one or more ways of making it and therefor have multiple  
BillsOfMaterial.


Hence, I have a branching, recursive relationship tree that can be  
any number of levels deep:


ManufacturedPart - BillOfMaterial - BOMComponent -  
ManufacturedPart - BillOfMaterial - BOMComponent -  
ManufacturedPart - Rinse, lather, repeat.


Or it can be very simple

ManufacturedPart - BillOfMaterial - BOMComponent - RawMaterial

What all this comes down to is that billsOfMaterial() does _not_  
belong on Part as it does not belong on RawMaterial because a  
RawMaterial is NOT manufactured by us so it will never have a  
BillOfMaterial.


But there are several places in my code that I want to recursively  
navigate this tree and I just don't see a right way to do that  
without some variation of instanceOf (in code or in a fetch), a case  
statement or adding the method to Part.


The simplicity of one simple method returning NSArray.emptyArray  
wins. Even though it sullies my object graph, it does so in a much  
less complicated, fragile way.


Dave


On Apr 7, 2008, at 11:26 AM, Chuck Hill wrote:

The real question is whether it makes sense in the domain for a  
Part to have a bill of materials.  The default implementation could  
be


public NSArray billOfMaterials() { return this; }

With complex parts overriding it as appropriate.  It could just be  
that the model / design is incomplete and leading David into doing  
Bad Things in code.


Otherwise, (a) the model is just wrong, or (b) David's processing  
is just wrong.




___
Do not 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/atze%40freeport.de

This email sent to [EMAIL PROTECTED]


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___
Do not 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: Convenience functions in model classes

2008-04-05 Thread Alexander Spohr


Am 05.04.2008 um 06:50 schrieb Jeff Schmitz:

Hello

As I get rolling down the EO highway, I find myself wanting to put  
convenience functions in the model classes that are generated by the  
EOGenerator (yes, I'm using the generation gap classes for this).   
e.g. to more closely mimic indexing a two dimensional array like the  
old way I used to do things, I create the following to retrieve a  
Game object from in from a model class that contains a one to many  
relationship to Game objects:


  public Game game(int group, int gameIndex) {
	EOQualifier gameQual =  
Game.GROUP.eq(group).and(Game.GAMEINDEX.eq(gameIndex));

Game game = this.games(gameQual).objectAtIndex(0);
return game;
  }

Is this a good thing?  Just hoping to get some feedback before I go  
too far down this road.


If you only want to have only one Game at all, yes.
If you are going to call this in a loop, no and never!

Remember that every call of this method goes into the database. That  
will kill your app.
Better fetch all Games in memory and order them into an  
NSArray(NSAray()) and use that.


static public NSArrayNSArrayGamesgameMatrix(EOEditingContext  
anEdCon)

{
...



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

This email sent to [EMAIL PROTECTED]


  1   2   >