Re: WOToOneRelationship dataSource conflict

From: James Cicenia (jame..imijon.com)
Date: Wed Mar 30 2005 - 09:18:32 EST

  • Next message: gbrown: "How to add a /Library/Frameworks/MyFramework to wolips?"

    Yes, I forgot to include my version of that ... the latest file I sent
    has it in it.
    - James

    On Mar 30, 2005, at 8:13 AM, wolip..atos.de wrote:

    > no James no need for framework, i can implement it like you. *i
    > guess*   :)
    >  
    > I get this error:
    > The method valueForBindingOrNull(String, WOComponent) from the type
    > _WOJExtensionsUtil is not visible MyWOToOneRelationship.java
    >  
    >  
    > I tried to find this Method in the WO directory without success. it
    > looks like you use the Wonder Project, do you?
    >  
    >  
    > In MyWOToOneRelationship.java you don't even import  "import
    > com.webobjects.woextensions.*;" at all.
    > This gives this error :
    > _WOJExtensionsUtil cannot be resolved MyWOToOneRelationship.java.
    >  
    > However, i think woextensions.* is the wrong one anyway.
    >
    >
    >
    > could you help here please?
    >  
    > thank you,
    > Sako.
    >  
    >  
    > ----- Original Message -----
    > From: James Cicenia
    > To: woproject-de..bjectstyle.org
    > Sent: Wednesday, March 30, 2005 3:58 PM
    > Subject: Re: WOToOneRelationship dataSource conflict
    >
    > Hell Sako -
    >
    > 1) I have MyWOToOneRelationship.java in a package. For me it is com.tos
    > 2) I have the .wo and .api in the top level of my project, though you
    > could put it anywhere.
    >
    > I did not make them into a framework, though I guess I could have,
    > but, I am only working
    > on one big project for a year now.
    >
    > However, if you need I can make it a framework for you, just let me
    > know.
    >
    > - James
    >
    > On Mar 30, 2005, at 7:25 AM, wolip..atos.de wrote:
    >
    >
    > Hi James,
    > could you help me to integrate this in my WO please?
    > I am not sure where to copy the stuff?
    > I use Eclipse under windows.
    > suggestion:
    > -------------------------------------------------------------------
    > \Apple\Library\Frameworks\JavaWOExtensions.framework\Resources\ 
    > MyWOToOneRelationship.wo
    > \Apple\Library\Frameworks\JavaWOExtensions.framework\Resources\ 
    > MyWOToOneRelationship.api
    > and what about MyWOToOneRelationship.java?
    > -------------------------------------------------------------------
    >  
    >  
    >  
    > PS: i have such a path like
    > -------------------------------------------------------------------
    > \Apple\Library\Frameworks\JavaWOExtensions.framework\Versions\A\Resourc
    > es\
    > and
    > \Apple\Library\Frameworks\JavaWOExtensions.framework\Versions\Current\R
    > esources\
    > -------------------------------------------------------------------
    > Both include also WOToOneRelationship.wo etc..
    >  
    >  
    > thank you,
    > Sako.
    > ----- Original Message -----
    > From: James Cicenia
    > To: woproject-de..bjectstyle.org
    > Sent: Tuesday, March 29, 2005 5:26 PM
    > Subject: Re: WOToOneRelationship dataSource conflict
    >
    > It's a bit rough but it works...
    >
    >
    >
    >
    >
    >
    > On Mar 29, 2005, at 8:38 AM, wolip..atos.de wrote:
    >
    >
    > thank you James,
    > yes please send it.
    > I'd like to try it
    >  
    > Sako.
    >  
    > ----- Original Message -----
    >
    > From: James Cicenia
    > To: woproject-de..bjectstyle.org
    > Sent: Tuesday, March 29, 2005 4:33 PM
    > Subject: Re: WOToOneRelationship dataSource conflict
    >
    > Sako -
    >
    > I used the supplied source and created a version that will use the
    > relationship instead. If you would like I could send it to you
    >
    > -James Cicenia
    >
    > On Mar 29, 2005, at 4:26 AM, wolip..atos.de wrote:
    >
    >
    > Hello,
    > the user in my application has the ability to choose some products(on
    > the runtime).
    > the products are objects from custom
    >  
    > ... class Product extends EOGenericRecord ...
    >  
    > to relate other objects to products i thought to use
    > WOToOneRelationship component as a comboBox.
    >  
    > the problem is:
    > WOToOneRelationship.dataSource needs EODatabaseDataSource Objects. in
    > somehow its possible to create a fetch to fetch the products objects
    > again from the Database.
    > but...! why should i do that if it could go easier like
    >  
    >     // this is the relationship method in Customer class.
    >     public NSArray products()     {
    >         return (NSArray)storedValueForKey("products");
    >     }
    >  
    > of course the problem here that customer().products() method returns
    > objects from type Product and not EODatabaseDataSource.
    >  
    > 1. i cant understand why should WOToOneRelationship use
    > EODatabaseDataSource at all?
    > 2. what's wrong on using objects from type EOGenericRecord
    > respectively custom classes like Product.
    > 3. what is the solution for using the custom objects from class
    > Product in the WOToOneRelationship component without fetch the objects
    > from the database using EODatabaseDataSource.
    >  
    > thanks in advance,
    >  
    > Sako.



    This archive was generated by hypermail 2.0.0 : Wed Mar 30 2005 - 09:18:34 EST