Re: Displaying preview image of an ERAttachment in a List or EmbeddedList

2014-11-18 Thread James Cicenia

I am using the amazon s3 version of ERAttachment which has a key path s3Path in 
ERAttachment.

you could create a new key in your entity to combine the host and the webPath.



> On Nov 18, 2014, at 12:19 PM, Flavio Donadio  wrote:
> 
> James,
> 
> 
> What's the propertyKey you used?
> 
> 
> Cheers,
> Flavio
> 
> On 18/11/2014, at 16:03, James Cicenia  wrote:
> 
>> Excellent ! That worked for me as the s3Path (An amazon server) had the full 
>> path in the property.
>> 
>> thanks.
>> 
>> 
>> 
>>> On Nov 18, 2014, at 12:02 PM, Flavio Donadio  wrote:
>>> 
>>> James,
>>> 
>>> 
>>> I got even closer some minutes ago.
>>> 
>>> My relationship to ERAttachment is named "erAttachment", so I used an 
>>> ERD2WDisplayImage component with the propertyKey "erAttachment.webPath", 
>>> like:
>>> 
>>> 100 : pageConfiguration = 'ListImage' => displayPropertyKeys = 
>>> ("erAttachment.webPath") [com.webobjects.directtoweb.Assignment]
>>> 
>>> 100 : ((pageConfiguration = 'InspectImage' or pageConfiguration = 
>>> 'ListImage') and propertyKey = 'erAttachment.webPath') => componentName = 
>>> "ERD2WDisplayImage" [com.webobjects.directtoweb.Assignment]
>>> 
>>> But webPath is not returning the full path, only the filename portion. This 
>>> is what I get in the HTML:
>>> 
>>> 
>>> 
>>> I'll be looking at the screencasts suggested by Ramsey, since I want to 
>>> create something like an "image grid" component... I'm gonna need a custom 
>>> component anyways.
>>> 
>>> 
>>> Cheers,
>>> Flavio
>>> 
>>> On 18/11/2014, at 15:52, James Cicenia  wrote:
>>> 
 Funny -
 
 I was just looking at this issue. I was hoping to use the path as mine is 
 not stored in the database: imageAttachment.s3Path
 
 I tried ERD2WDisplayImage but didn’t understand where to set the “src” 
 property since it wasn’t from the d2wcontext
 
 then ERD2WDisplayImageWithUrl seemed perfect.
 
 but ERD2WDisplayImageWithUrl gave me an error on my page:
 error on line 191 at column 22: StartTag: invalid element name
 
 
> On Nov 18, 2014, at 11:31 AM, Ramsey Gurley  
> wrote:
> 
> You need to create a component. The getting started screencasts are good. 
> Especially the ones David LeBer did (WebObjects, WOLips, and Wonder part 
> 1 and 2). He got me started.
> 
> http://wiki.wocommunity.org/display/WEB/Screencasts
> 
> Creating the component should be relatively straightforward. The tricky 
> bit is you need to generate the thumbnail. ERAttachment has code to do 
> thumbnailing, but it doesn’t do it by default unless something has 
> changed lately. It even has multiple image processors to give you native 
> speed on some platforms. I think you will probably need to set up a 
> attachment delegate to create the thumbnails yourself.
> 
> This would make a really nice example project for ERAttachment, but as 
> far as I know, nobody has ever put one together.
> 
> 
> On Nov 18, 2014, at 8:48 AM, Flavio Donadio  wrote:
> 
>> Hello, all!
>> 
>> 
>> I took a good look at the online documentation and searched the list, 
>> but can't find an answer.
>> 
>> I have an entity called Image with a to-one relationship to 
>> ERAttachment. It works perfectly: i can add, edit and delete images. I 
>> can even see the image in the ERMD2WEditAttachment component.
>> 
>> Now I want to display a thumbnail of the ERAttachment in the "ListImage" 
>> page. I tried some components, but I can't make it work. The best I can 
>> get (using ERD2WDisplayAttachment) is an icon with the file name which, 
>> when clicked, will open the image in the browser.
>> 
>> Is there a ready-made component that does that or will I have to create 
>> one? If I'll need to create one, is there a foolproof guide to component 
>> creation?
>> 
>> 
>> Cheers,
>> Flavio
>> 
> 

 ___
Do not 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: Copy EO. Practical Utilities?

2014-11-18 Thread Chuck Hill
Yes, that is a typo

On 2014-11-18, 9:55 AM, "James Cicenia" wrote:


Looked at the ERXCopyable... implemented the copy method with some 
simplifications and help from Practical WebObjects book.

PS: There is a typo in the code on page 244

If (original != null) // wrong
if(relatedObject!=null) //wright?



On Nov 18, 2014, at 11:38 AM, Theodore Petrosky 
mailto:tedp...@yahoo.com>> wrote:

there was a presentation at WOWODC14 by the unflappable Dave Avendasora: Using 
ERXCopyable, with and without writing any code

There was some code that he added to _WonderEntity.java and I don't know if it 
made it into the current release. Since he worked with me at the session, I 
created my own and referred the .eogen file to use it.

Basically, copying can be accomplished with no code using this method. It is 
fantastic.

Ted




On Nov 18, 2014, at 10:00 AM, James Cicenia 
mailto:ja...@jimijon.com>> wrote:

Morning -

I want to copy an EO. I remember in my dusty Practical WebObjects there was a 
nice chapter on copying enterprise objects.
I blew off the dust and dove in. Wow, there is a lot of code to transcribe with 
old java syntax etc.

Question: Is there an updated version of the copying code anywhere?

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

This email sent to tedp...@yahoo.com


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

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

Re: Displaying preview image of an ERAttachment in a List or EmbeddedList

2014-11-18 Thread Flavio Donadio
James,


What's the propertyKey you used?


Cheers,
Flavio

On 18/11/2014, at 16:03, James Cicenia  wrote:

> Excellent ! That worked for me as the s3Path (An amazon server) had the full 
> path in the property.
> 
> thanks.
> 
> 
> 
>> On Nov 18, 2014, at 12:02 PM, Flavio Donadio  wrote:
>> 
>> James,
>> 
>> 
>> I got even closer some minutes ago.
>> 
>> My relationship to ERAttachment is named "erAttachment", so I used an 
>> ERD2WDisplayImage component with the propertyKey "erAttachment.webPath", 
>> like:
>> 
>> 100 : pageConfiguration = 'ListImage' => displayPropertyKeys = 
>> ("erAttachment.webPath") [com.webobjects.directtoweb.Assignment]
>> 
>> 100 : ((pageConfiguration = 'InspectImage' or pageConfiguration = 
>> 'ListImage') and propertyKey = 'erAttachment.webPath') => componentName = 
>> "ERD2WDisplayImage" [com.webobjects.directtoweb.Assignment]
>> 
>> But webPath is not returning the full path, only the filename portion. This 
>> is what I get in the HTML:
>> 
>> 
>> 
>> I'll be looking at the screencasts suggested by Ramsey, since I want to 
>> create something like an "image grid" component... I'm gonna need a custom 
>> component anyways.
>> 
>> 
>> Cheers,
>> Flavio
>> 
>> On 18/11/2014, at 15:52, James Cicenia  wrote:
>> 
>>> Funny -
>>> 
>>> I was just looking at this issue. I was hoping to use the path as mine is 
>>> not stored in the database: imageAttachment.s3Path
>>> 
>>> I tried ERD2WDisplayImage but didn’t understand where to set the “src” 
>>> property since it wasn’t from the d2wcontext
>>> 
>>> then ERD2WDisplayImageWithUrl seemed perfect.
>>> 
>>> but ERD2WDisplayImageWithUrl gave me an error on my page:
>>> error on line 191 at column 22: StartTag: invalid element name
>>> 
>>> 
 On Nov 18, 2014, at 11:31 AM, Ramsey Gurley  
 wrote:
 
 You need to create a component. The getting started screencasts are good. 
 Especially the ones David LeBer did (WebObjects, WOLips, and Wonder part 1 
 and 2). He got me started.
 
 http://wiki.wocommunity.org/display/WEB/Screencasts
 
 Creating the component should be relatively straightforward. The tricky 
 bit is you need to generate the thumbnail. ERAttachment has code to do 
 thumbnailing, but it doesn’t do it by default unless something has changed 
 lately. It even has multiple image processors to give you native speed on 
 some platforms. I think you will probably need to set up a attachment 
 delegate to create the thumbnails yourself.
 
 This would make a really nice example project for ERAttachment, but as far 
 as I know, nobody has ever put one together.
 
 
 On Nov 18, 2014, at 8:48 AM, Flavio Donadio  wrote:
 
> Hello, all!
> 
> 
> I took a good look at the online documentation and searched the list, but 
> can't find an answer.
> 
> I have an entity called Image with a to-one relationship to ERAttachment. 
> It works perfectly: i can add, edit and delete images. I can even see the 
> image in the ERMD2WEditAttachment component.
> 
> Now I want to display a thumbnail of the ERAttachment in the "ListImage" 
> page. I tried some components, but I can't make it work. The best I can 
> get (using ERD2WDisplayAttachment) is an icon with the file name which, 
> when clicked, will open the image in the browser.
> 
> Is there a ready-made component that does that or will I have to create 
> one? If I'll need to create one, is there a foolproof guide to component 
> creation?
> 
> 
> Cheers,
> Flavio
> 


 ___
Do not 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: Displaying preview image of an ERAttachment in a List or EmbeddedList

2014-11-18 Thread James Cicenia
Excellent ! That worked for me as the s3Path (An amazon server) had the full 
path in the property.

thanks.



> On Nov 18, 2014, at 12:02 PM, Flavio Donadio  wrote:
> 
> James,
> 
> 
> I got even closer some minutes ago.
> 
> My relationship to ERAttachment is named "erAttachment", so I used an 
> ERD2WDisplayImage component with the propertyKey "erAttachment.webPath", like:
> 
> 100 : pageConfiguration = 'ListImage' => displayPropertyKeys = 
> ("erAttachment.webPath") [com.webobjects.directtoweb.Assignment]
> 
> 100 : ((pageConfiguration = 'InspectImage' or pageConfiguration = 
> 'ListImage') and propertyKey = 'erAttachment.webPath') => componentName = 
> "ERD2WDisplayImage" [com.webobjects.directtoweb.Assignment]
> 
> But webPath is not returning the full path, only the filename portion. This 
> is what I get in the HTML:
> 
> 
> 
> I'll be looking at the screencasts suggested by Ramsey, since I want to 
> create something like an "image grid" component... I'm gonna need a custom 
> component anyways.
> 
> 
> Cheers,
> Flavio
> 
> On 18/11/2014, at 15:52, James Cicenia  wrote:
> 
>> Funny -
>> 
>> I was just looking at this issue. I was hoping to use the path as mine is 
>> not stored in the database: imageAttachment.s3Path
>> 
>> I tried ERD2WDisplayImage but didn’t understand where to set the “src” 
>> property since it wasn’t from the d2wcontext
>> 
>> then ERD2WDisplayImageWithUrl seemed perfect.
>> 
>> but ERD2WDisplayImageWithUrl gave me an error on my page:
>> error on line 191 at column 22: StartTag: invalid element name
>> 
>> 
>>> On Nov 18, 2014, at 11:31 AM, Ramsey Gurley  wrote:
>>> 
>>> You need to create a component. The getting started screencasts are good. 
>>> Especially the ones David LeBer did (WebObjects, WOLips, and Wonder part 1 
>>> and 2). He got me started.
>>> 
>>> http://wiki.wocommunity.org/display/WEB/Screencasts
>>> 
>>> Creating the component should be relatively straightforward. The tricky bit 
>>> is you need to generate the thumbnail. ERAttachment has code to do 
>>> thumbnailing, but it doesn’t do it by default unless something has changed 
>>> lately. It even has multiple image processors to give you native speed on 
>>> some platforms. I think you will probably need to set up a attachment 
>>> delegate to create the thumbnails yourself.
>>> 
>>> This would make a really nice example project for ERAttachment, but as far 
>>> as I know, nobody has ever put one together.
>>> 
>>> 
>>> On Nov 18, 2014, at 8:48 AM, Flavio Donadio  wrote:
>>> 
 Hello, all!
 
 
 I took a good look at the online documentation and searched the list, but 
 can't find an answer.
 
 I have an entity called Image with a to-one relationship to ERAttachment. 
 It works perfectly: i can add, edit and delete images. I can even see the 
 image in the ERMD2WEditAttachment component.
 
 Now I want to display a thumbnail of the ERAttachment in the "ListImage" 
 page. I tried some components, but I can't make it work. The best I can 
 get (using ERD2WDisplayAttachment) is an icon with the file name which, 
 when clicked, will open the image in the browser.
 
 Is there a ready-made component that does that or will I have to create 
 one? If I'll need to create one, is there a foolproof guide to component 
 creation?
 
 
 Cheers,
 Flavio

 ___
Do not 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: Displaying preview image of an ERAttachment in a List or EmbeddedList

2014-11-18 Thread Flavio Donadio
James,


I got even closer some minutes ago.

My relationship to ERAttachment is named "erAttachment", so I used an 
ERD2WDisplayImage component with the propertyKey "erAttachment.webPath", like:

100 : pageConfiguration = 'ListImage' => displayPropertyKeys = 
("erAttachment.webPath") [com.webobjects.directtoweb.Assignment]

100 : ((pageConfiguration = 'InspectImage' or pageConfiguration = 'ListImage') 
and propertyKey = 'erAttachment.webPath') => componentName = 
"ERD2WDisplayImage" [com.webobjects.directtoweb.Assignment]

But webPath is not returning the full path, only the filename portion. This is 
what I get in the HTML:



I'll be looking at the screencasts suggested by Ramsey, since I want to create 
something like an "image grid" component... I'm gonna need a custom component 
anyways.


Cheers,
Flavio

On 18/11/2014, at 15:52, James Cicenia  wrote:

> Funny -
> 
> I was just looking at this issue. I was hoping to use the path as mine is not 
> stored in the database: imageAttachment.s3Path
> 
> I tried ERD2WDisplayImage but didn’t understand where to set the “src” 
> property since it wasn’t from the d2wcontext
> 
> then ERD2WDisplayImageWithUrl seemed perfect.
> 
> but ERD2WDisplayImageWithUrl gave me an error on my page:
> error on line 191 at column 22: StartTag: invalid element name
> 
> 
>> On Nov 18, 2014, at 11:31 AM, Ramsey Gurley  wrote:
>> 
>> You need to create a component. The getting started screencasts are good. 
>> Especially the ones David LeBer did (WebObjects, WOLips, and Wonder part 1 
>> and 2). He got me started.
>> 
>> http://wiki.wocommunity.org/display/WEB/Screencasts
>> 
>> Creating the component should be relatively straightforward. The tricky bit 
>> is you need to generate the thumbnail. ERAttachment has code to do 
>> thumbnailing, but it doesn’t do it by default unless something has changed 
>> lately. It even has multiple image processors to give you native speed on 
>> some platforms. I think you will probably need to set up a attachment 
>> delegate to create the thumbnails yourself.
>> 
>> This would make a really nice example project for ERAttachment, but as far 
>> as I know, nobody has ever put one together.
>> 
>> 
>> On Nov 18, 2014, at 8:48 AM, Flavio Donadio  wrote:
>> 
>>> Hello, all!
>>> 
>>> 
>>> I took a good look at the online documentation and searched the list, but 
>>> can't find an answer.
>>> 
>>> I have an entity called Image with a to-one relationship to ERAttachment. 
>>> It works perfectly: i can add, edit and delete images. I can even see the 
>>> image in the ERMD2WEditAttachment component.
>>> 
>>> Now I want to display a thumbnail of the ERAttachment in the "ListImage" 
>>> page. I tried some components, but I can't make it work. The best I can get 
>>> (using ERD2WDisplayAttachment) is an icon with the file name which, when 
>>> clicked, will open the image in the browser.
>>> 
>>> Is there a ready-made component that does that or will I have to create 
>>> one? If I'll need to create one, is there a foolproof guide to component 
>>> creation?
>>> 
>>> 
>>> Cheers,
>>> Flavio

 ___
Do not 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: Copy EO. Practical Utilities?

2014-11-18 Thread James Cicenia

Looked at the ERXCopyable… implemented the copy method with some 
simplifications and help from Practical WebObjects book.

PS: There is a typo in the code on page 244

If (original != null) // wrong
if(relatedObject!=null) //wright?



> On Nov 18, 2014, at 11:38 AM, Theodore Petrosky  wrote:
> 
> there was a presentation at WOWODC14 by the unflappable Dave Avendasora: 
> Using ERXCopyable, with and without writing any code
> 
> There was some code that he added to _WonderEntity.java and I don’t know if 
> it made it into the current release. Since he worked with me at the session, 
> I created my own and referred the .eogen file to use it.
> 
> Basically, copying can be accomplished with no code using this method. It is 
> fantastic. 
> 
> Ted
> 
> 
> 
> 
> On Nov 18, 2014, at 10:00 AM, James Cicenia  wrote:
> 
>> Morning -
>> 
>> I want to copy an EO. I remember in my dusty Practical WebObjects there was 
>> a nice chapter on copying enterprise objects.
>> I blew off the dust and dove in. Wow, there is a lot of code to transcribe 
>> with old java syntax etc.
>> 
>> Question: Is there an updated version of the copying code anywhere? 
>> 
>> Thanks
>> James
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>> 
>> This email sent to tedp...@yahoo.com
> 

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

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

Re: Displaying preview image of an ERAttachment in a List or EmbeddedList

2014-11-18 Thread James Cicenia
Funny -

I was just looking at this issue. I was hoping to use the path as mine is not 
stored in the database: imageAttachment.s3Path

I tried ERD2WDisplayImage but didn’t understand where to set the “src” property 
since it wasn’t from the d2wcontext

then ERD2WDisplayImageWithUrl seemed perfect.

but ERD2WDisplayImageWithUrl gave me an error on my page:
error on line 191 at column 22: StartTag: invalid element name




> On Nov 18, 2014, at 11:31 AM, Ramsey Gurley  wrote:
> 
> You need to create a component. The getting started screencasts are good. 
> Especially the ones David LeBer did (WebObjects, WOLips, and Wonder part 1 
> and 2). He got me started.
> 
> http://wiki.wocommunity.org/display/WEB/Screencasts 
> 
> 
> Creating the component should be relatively straightforward. The tricky bit 
> is you need to generate the thumbnail. ERAttachment has code to do 
> thumbnailing, but it doesn’t do it by default unless something has changed 
> lately. It even has multiple image processors to give you native speed on 
> some platforms. I think you will probably need to set up a attachment 
> delegate to create the thumbnails yourself.
> 
> This would make a really nice example project for ERAttachment, but as far as 
> I know, nobody has ever put one together.
> 
> 
> 
> On Nov 18, 2014, at 8:48 AM, Flavio Donadio  > wrote:
> 
>> Hello, all!
>> 
>> 
>> I took a good look at the online documentation and searched the list, but 
>> can't find an answer.
>> 
>> I have an entity called Image with a to-one relationship to ERAttachment. It 
>> works perfectly: i can add, edit and delete images. I can even see the image 
>> in the ERMD2WEditAttachment component.
>> 
>> Now I want to display a thumbnail of the ERAttachment in the "ListImage" 
>> page. I tried some components, but I can't make it work. The best I can get 
>> (using ERD2WDisplayAttachment) is an icon with the file name which, when 
>> clicked, will open the image in the browser.
>> 
>> Is there a ready-made component that does that or will I have to create one? 
>> If I'll need to create one, is there a foolproof guide to component creation?
>> 
>> 
>> Cheers,
>> Flavio
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>  
>> 
>> 
>> This email sent to rgur...@smarthealth.com 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> )
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com 
> 
> 
> This email sent to ja...@jimijon.com 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Copy EO. Practical Utilities?

2014-11-18 Thread Theodore Petrosky
there was a presentation at WOWODC14 by the unflappable Dave Avendasora: Using 
ERXCopyable, with and without writing any code

There was some code that he added to _WonderEntity.java and I don’t know if it 
made it into the current release. Since he worked with me at the session, I 
created my own and referred the .eogen file to use it.

Basically, copying can be accomplished with no code using this method. It is 
fantastic. 

Ted




On Nov 18, 2014, at 10:00 AM, James Cicenia  wrote:

> Morning -
> 
> I want to copy an EO. I remember in my dusty Practical WebObjects there was a 
> nice chapter on copying enterprise objects.
> I blew off the dust and dove in. Wow, there is a lot of code to transcribe 
> with old java syntax etc.
> 
> Question: Is there an updated version of the copying code anywhere? 
> 
> Thanks
> James
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com


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

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

Re: Displaying preview image of an ERAttachment in a List or EmbeddedList

2014-11-18 Thread Ramsey Gurley
You need to create a component. The getting started screencasts are good. 
Especially the ones David LeBer did (WebObjects, WOLips, and Wonder part 1 and 
2). He got me started.

http://wiki.wocommunity.org/display/WEB/Screencasts

Creating the component should be relatively straightforward. The tricky bit is 
you need to generate the thumbnail. ERAttachment has code to do thumbnailing, 
but it doesn’t do it by default unless something has changed lately. It even 
has multiple image processors to give you native speed on some platforms. I 
think you will probably need to set up a attachment delegate to create the 
thumbnails yourself.

This would make a really nice example project for ERAttachment, but as far as I 
know, nobody has ever put one together.



On Nov 18, 2014, at 8:48 AM, Flavio Donadio  wrote:

> Hello, all!
> 
> 
> I took a good look at the online documentation and searched the list, but 
> can't find an answer.
> 
> I have an entity called Image with a to-one relationship to ERAttachment. It 
> works perfectly: i can add, edit and delete images. I can even see the image 
> in the ERMD2WEditAttachment component.
> 
> Now I want to display a thumbnail of the ERAttachment in the "ListImage" 
> page. I tried some components, but I can't make it work. The best I can get 
> (using ERD2WDisplayAttachment) is an icon with the file name which, when 
> clicked, will open the image in the browser.
> 
> Is there a ready-made component that does that or will I have to create one? 
> If I'll need to create one, is there a foolproof guide to component creation?
> 
> 
> Cheers,
> Flavio
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.com


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

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

RE: Copy EO. Practical Utilities?

2014-11-18 Thread Oscar González
Hi James,I'm implements the er.extensions.eof.ERXCopyable interface, it's well 
documented
Saludos,
Oscar.
> From: ja...@jimijon.com
> Subject: Copy EO. Practical Utilities?
> Date: Tue, 18 Nov 2014 09:00:47 -0600
> To: webobjects-dev@lists.apple.com
> 
> Morning -
> 
> I want to copy an EO. I remember in my dusty Practical WebObjects there was a 
> nice chapter on copying enterprise objects.
> I blew off the dust and dove in. Wow, there is a lot of code to transcribe 
> with old java syntax etc.
> 
> Question: Is there an updated version of the copying code anywhere? 
> 
> Thanks
> James
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/racso_gp%40hotmail.com
> 
> This email sent to racso...@hotmail.com
   ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Displaying preview image of an ERAttachment in a List or EmbeddedList

2014-11-18 Thread Flavio Donadio
Hello, all!


I took a good look at the online documentation and searched the list, but can't 
find an answer.

I have an entity called Image with a to-one relationship to ERAttachment. It 
works perfectly: i can add, edit and delete images. I can even see the image in 
the ERMD2WEditAttachment component.

Now I want to display a thumbnail of the ERAttachment in the "ListImage" page. 
I tried some components, but I can't make it work. The best I can get (using 
ERD2WDisplayAttachment) is an icon with the file name which, when clicked, will 
open the image in the browser.

Is there a ready-made component that does that or will I have to create one? If 
I'll need to create one, is there a foolproof guide to component creation?


Cheers,
Flavio
 ___
Do not 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

Copy EO. Practical Utilities?

2014-11-18 Thread James Cicenia
Morning -

I want to copy an EO. I remember in my dusty Practical WebObjects there was a 
nice chapter on copying enterprise objects.
I blew off the dust and dove in. Wow, there is a lot of code to transcribe with 
old java syntax etc.

Question: Is there an updated version of the copying code anywhere? 

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

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

Re: WOWODC 2015 - April 25, 26 and 27 2015

2014-11-18 Thread jazz
Hi Matthias,

Do you have an estimate for the ticket price of WOWODC this year?

Bets regards, Bart


 ___
Do not 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: Ponder docs or examples

2014-11-18 Thread Flavio Donadio
Ramsey,


Answering my own question: dbConnectURLGLOBAL in the properties file did it.


Cheers,
Flavio

On 18/11/2014, at 09:51, Flavio Donadio  wrote:

> Ramsey,
> 
> 
> Thanks for all the help so far... But I still don't understand some basic 
> concepts of WO!
> 
> I had this same problem trying to get ERAttachment to work: how is ERUser (or 
> ERAttachment) supposed to create a database file?
> 
> 
> Cheers,
> Flavio
> 
> On 17/11/2014, at 18:36, Ramsey Gurley  wrote:
> 
>> I’ve never had any problems with creating a model in project and then 
>> getting things to run, but then, I haven’t done that very often. If you want 
>> to control the order migrations run, there is a property for that. I think
>> 
>> er.migration.modelNames
>> 
>> will do what you want, but you have to list all the models you will migrate 
>> in the correct order. 
>> 
>> Alternately, if you just want to see it working, don’t create a custom User 
>> subclass at all. All the user management stuff works with the ERUser class 
>> just the same.
>> 
>> On Nov 17, 2014, at 12:42 PM, Flavio Donadio  wrote:
>> 
>>> Ramsey,
>>> 
>>> 
>>> Is there a way to do it without having to create a framework for the model?
>>> 
>>> I mean, there's just one table in my model, it seems overkill... I just 
>>> wanted to teste the user management part of R2D2W...
>>> 
>>> 
>>> Cheers,
>>> Flavio
> 
> 
> ___
> Do not 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/flavio%40donadio.com.br
> 
> This email sent to fla...@donadio.com.br


 ___
Do not 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: Ponder docs or examples

2014-11-18 Thread Flavio Donadio
Ramsey,


Thanks for all the help so far... But I still don't understand some basic 
concepts of WO!

I had this same problem trying to get ERAttachment to work: how is ERUser (or 
ERAttachment) supposed to create a database file?


Cheers,
Flavio

On 17/11/2014, at 18:36, Ramsey Gurley  wrote:

> I’ve never had any problems with creating a model in project and then getting 
> things to run, but then, I haven’t done that very often. If you want to 
> control the order migrations run, there is a property for that. I think
> 
> er.migration.modelNames
> 
> will do what you want, but you have to list all the models you will migrate 
> in the correct order. 
> 
> Alternately, if you just want to see it working, don’t create a custom User 
> subclass at all. All the user management stuff works with the ERUser class 
> just the same.
> 
> On Nov 17, 2014, at 12:42 PM, Flavio Donadio  wrote:
> 
>> Ramsey,
>> 
>> 
>> Is there a way to do it without having to create a framework for the model?
>> 
>> I mean, there's just one table in my model, it seems overkill... I just 
>> wanted to teste the user management part of R2D2W...
>> 
>> 
>> Cheers,
>> Flavio


 ___
Do not 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: WebObjects application instances hanging - Deadlocks occurring

2014-11-18 Thread Raghavender Bokka
Hi Ralf,

The following are the exceptions generating in the log files when we enable the 
ERX logging, and we do not have any code in the Session.sleep method:

---
---
Exception
  at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
  at 
com.webobjects.eocontrol.EOEditingContext._sendOrEnqueueNotification(EOEditingContext.java:4721)
  at 
com.webobjects.eocontrol.EOEditingContext._objectsChangedInStore(EOEditingContext.java:3562)
  at er.extensions.eof.ERXEC._objectsChangedInStore(ERXEC.java:1285)
 ... skipped 7 stack elements
  at 
com.webobjects.eocontrol.EOObjectStoreCoordinator._objectsChangedInSubStore(EOObjectStoreCoordinator.java:693)
 ... skipped 16 stack elements
  at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:386)
  at 
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
  at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981)
  at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903)
  at 
TestTakingMode$StudentTestSessionMode.testSubmitted(TestTakingMode.java:648)
  at ReviewTestResponsePage.submitTest(ReviewTestResponsePage.java:99)
 ... skipped 4 stack elements
  at 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
 ... skipped 46 stack elements
  at Application.dispatchRequest(Application.java:670)
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXSession  - Will 
terminate, sessionId is FkDsWpsOxKy1TDaligNLDg
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory  - 
_incrementReferenceCounterForKey() - count = 26, key = IE.7.0.4.0.Windows.{cpu 
= "Unknown CPU"; geckoRevision = "No Gecko"; }
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC  - After popping: 
[er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger  - unlocked 
er.extensions.eof.ERXEC@13cd5b5
Exception
  at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
  at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:849)
  at 
com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
  at 
er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
 ... skipped 6 stack elements
  at Application.dispatchRequest(Application.java:670)
  ... skipped 3 stack elements
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger  - locked 
er.extensions.eof.ERXEC@13cd5b5
Exception
  at er.extensions.eof.ERXEC.lock(ERXEC.java:483)
  at 
com.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1116)
  at 
com.webobjects.eocontrol.EOEditingContext.dispose(EOEditingContext.java:)
  at er.extensions.eof.ERXEC.dispose(ERXEC.java:610)
  at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:854)
  at 
com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
  at 
er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
 ... skipped 6 stack elements
  at Application.dispatchRequest(Application.java:670)
  ... skipped 3 stack elements
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC  - After pushing: 
[er.extensions.eof.ERXEC@dd151f, er.extensions.eof.ERXEC@13cd5b5]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC  - After popping: 
[er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger  - unlocked 
er.extensions.eof.ERXEC@13cd5b5
Exception
  at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
  at 
com.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1218)
  at 
com.webobjects.eocontrol.EOEditingContext.dispose(EOEditingContext.java:)
  at er.extensions.eof.ERXEC.dispose(ERXEC.java:610)
  at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:854)
  at 
com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
  at 
er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
 ... skipped 6 stack elements
  at Application.dispatchRequest(Application.java:670)
  ... skipped 3 stack elements
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC  - After pushing: 
[er.extensions.eof.ERXEC@dd151f, er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC  - After popping: 
[er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory  - 
_decrementReferenceCounterForKey() - count = 25, key = IE.7.0.4.0.Windows.{cpu 
= "Unknown CPU"; geckoRevision = "No Gecko"; }
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory  - 
_decrementReferenceCounterForKey() - count = 15, key = IE.9.0.5.0.Windows.{cpu 
= "Unknown CPU"; geckoRevision = "No Gecko"; }
Nov 17 22:22:01 Solar[6