Force Refresh Relation

2007-09-18 Thread Daniele Corti
Hi all, I don't know why but my apps seem to hate me today... I've prepared a direct action to populate some EOs relations by a xls file, by HSSF, and it works perfectly ;-) Ok, and then, watchin at my EOs, throught an ec.objectWithFetchSpecification, I notice that none changes has been

Re: Force Refresh Relation

2007-09-18 Thread Kieran Kelleher
Not sure if I fully understand what you are doing, but 1) all changes to objects must be made in an EditingContext 2) To get freshest data, create a new editing context and set its fetch timestamp lag to current time before fetching into it. HTH, Kieran On Sep 18, 2007, at 11:05 AM,

Re: Force Refresh Relation

2007-09-18 Thread Daniele Corti
2007/9/18, Kieran Kelleher [EMAIL PROTECTED]: Not sure if I fully understand what you are doing, but 1) all changes to objects must be made in an EditingContext 2) To get freshest data, create a new editing context and set its fetch timestamp lag to current time before fetching into it. I

Re: Force Refresh Relation

2007-09-18 Thread Kieran Kelleher
On Sep 18, 2007, at 11:37 AM, Daniele Corti wrote: 2007/9/18, Kieran Kelleher [EMAIL PROTECTED]: Not sure if I fully understand what you are doing, but 1) all changes to objects must be made in an EditingContext 2) To get freshest data, create a new editing context and set its fetch

Re: Force Refresh Relation

2007-09-18 Thread Mike Schrag
If you're only updating your EO's within a single eof stack, then there's something else going on here. If your model is correct, everything should stay up-to-date automatically. You mention that your to-many is not updating. Are you calling addObjectToBothSidesOfRelationshipWithKey on

Re: Force Refresh Relation

2007-09-18 Thread Anthony Paras
On 9/18/07 11:05 AM, Daniele Corti [EMAIL PROTECTED] wrote: I also used an EOFetchSpecification with setRefreshesRefetchedObjects(true), so I don't know why the objects are not displayed! is there another way to force the refetch of a relationship? What if you prefetch the relationship? I

Re: How to implement timing refresh of WebObjects page

2007-09-18 Thread Klaus Berkling
On Sep 16, 2007, at 9:25 AM, Jerry W. Walker wrote: [...] The easiest way to do this is to add something like the following to the header of your page: meta http-equiv=refresh content=5 That would cause the browser to re-request the page every 5 seconds. However, simply doing this

Creating new object results in an out of memory error

2007-09-18 Thread David Holt
Hi, I have recently solved an out of memory problem in a list page by using a batching display group that just fetches one page worth of records at a time. Now I find that creating an object from that page is once again trying to fetch every record in the data table prior to allowing me

Re: Force Refresh Relation

2007-09-18 Thread Pierre Bernard
It should, but under WO 5.2 it doesn't. I haven't tested in later versions. There is a way to fix this by subclassing EODatabaseContext: /** * Internal method that handles prefetching of to-many relationships.BR * // TBD This is a workaround to what looks like a bug in WO 5.1

Re: Creating new object results in an out of memory error

2007-09-18 Thread David Holt
Well, I figured out the problem. In Practical WebObjects on page 44 Chuck and Sacha recommend as one possibility moving the LOB data into a related entity. They say that This allows you to avoid faulting in the LOB until you need it. When I fetch my entity, the LOB table is included, not

Invoking a component with arguments in WOD

2007-09-18 Thread Lachlan Scott
In our application, we have a log in component which adds a User object to the Session if the supplied credentials are correct. For testing purposes, we use a 'component menu' component which displays a list of available components, and provides action methods to display them individually. We

Open Source Plot.framework

2007-09-18 Thread mike deavila
Please release an updated version of the java Plot.framework or open source it. Please do not just drop it and make it dead! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

Apple Please Update java Plot.framework

2007-09-18 Thread mike deavila
Please release an updated version of the java Plot.framework or open source it. Please do not just drop it and make it dead! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

Re: Invoking a component with arguments in WOD

2007-09-18 Thread Lachlan Deck
On 19/09/2007, at 8:15 AM, Lachlan Scott wrote: In our application, we have a log in component which adds a User object to the Session if the supplied credentials are correct. For testing purposes, we use a 'component menu' component which displays a list of available components, and

Re: Apple Please Update java Plot.framework

2007-09-18 Thread Lachlan Deck
On 19/09/2007, at 9:05 AM, mike deavila wrote: Please release an updated version of the java Plot.framework or open source it. Please do not just drop it and make it dead! The mailing list is not the best place for this request. Submit a real bug report... bugreport.apple.com or email them

Re: Apple Please Update java Plot.framework

2007-09-18 Thread Mike Schrag
And also JavaPlot appears to have been dead for a while ... I would look at ERPlot in Wonder. ms On Sep 18, 2007, at 8:51 PM, Lachlan Deck wrote: On 19/09/2007, at 9:05 AM, mike deavila wrote: Please release an updated version of the java Plot.framework or open source it. Please do not

Re: Apple Please Update java Plot.framework

2007-09-18 Thread Kieran Kelleher
Would Project WOnder's ERPlot.framework be of use as a substitute? On Sep 18, 2007, at 7:05 PM, mike deavila wrote: Please release an updated version of the java Plot.framework or open source it. Please do not just drop it and make it dead!

Re: Creating new object results in an out of memory error

2007-09-18 Thread Chuck Hill
This, or a related issue can be triggered by firing a large (many members) back pointing relationship. Sometimes for efficiency, these are best managed manually and not modeled as a relationship. Chuck On Sep 18, 2007, at 2:57 PM, David Holt wrote: Well, I figured out the problem. In

Re: Apple Please Update java Plot.framework / Think Different

2007-09-18 Thread Stephane Guyot
mike, you can also Think Different : http://examples.adobe.com/flex2/ inproduct/sdk/dashboard/dashboard.html If you rigth click you have the source :-) http://demo.quietlyscheming.com/ChartSampler/app.html You cant still wait, rumors says that Apple may have something in pipe for RIA.