Re: PHP Customer Request

2011-04-07 Thread Dan Beatty
Greetings Dov,
That is because half of the people whom made the means and built the trips
to the moon were paid with a trip around the block.

Later,

Daniel Beatty, Ph.D. Candidate
Computer Scientist, Detonation Sciences Branch
Code 474300D
2400 E. Pilot Plant Rd. M/S 1109
China Lake, CA 93555
daniel.bea...@navy.mil
(760)939-7097 




On 4/7/11 11:23 AM, "Dov Rosenberg"  wrote:

> This says a lot about the customer in general. If his primary motivation for
> going with PHP is cheap hosting - he is going to be a pain in the ass when
> it comes to payment and functionality. These kind of people want the moon
> for the price of a trip around the block.
> 
> When I first started in this business nearly 20 years ago - I came across a
> bunch of these guys - nearly killed me
> 
> Dov
> 
> 
> On 4/7/11 9:38 AM, "Dov Rosenberg"  wrote:
> 
>> It is a lot cheaper to host a php site - the cheapest GoDaddy hosting plan
>> for $5/mon includes PHP and mysql.
>> 
>> Dov
>> 
>> 
>> On 4/7/11 8:55 AM, "Chuck Hill"  wrote:
>> 
>>> The place to start is to understand why your customer wants (or thinks that
>>> he
>>> wants) a site specifically in PHP.  Maybe he has a valid reason.  Maybe he
>>> thinks that PHP brings some benefit that other technologies don't.  In that
>>> case, focus on the technical and business needs and then help him to select
>>> a
>>> technology based on that.
>>> 
>>> 
>>> Chuck
>>> 
>>> 
>>> On Apr 7, 2011, at 8:41 AM, Amedeo Mantica wrote:
>>> 
 Hello all,
 
 Generic question, how do you promote Java/WebObjects technology to
 customers
 ?
 
 A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a
 specific
 request., he doesn't want a dynamic WebSite, he wants a php based website.
 
 Suggestions ?
 
 Amed
 
 ___
 Do not 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
>> 
>>  ___
>> Do not 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/drosenberg%40inquira.co>>
m
>> 
>> This email sent to drosenb...@inquira.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/daniel.beatty%40navy.mil
> 
> This email sent to daniel.bea...@navy.mil

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

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


Re: Concurrent request handling

2011-04-07 Thread Andrew Lindesay

Hi Xavier;

I would probably add accessors to the superclass and then have a helper 
singleton to actually cache and factory them into the WOContext, but it 
depends on your application design as to what will work best.


Hope this helps.

cheers.


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


--
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/archive%40mail-archive.com

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


Re: PHP Customer Request

2011-04-07 Thread Dov Rosenberg
This says a lot about the customer in general. If his primary motivation for
going with PHP is cheap hosting - he is going to be a pain in the ass when
it comes to payment and functionality. These kind of people want the moon
for the price of a trip around the block.

When I first started in this business nearly 20 years ago - I came across a
bunch of these guys - nearly killed me

Dov


On 4/7/11 9:38 AM, "Dov Rosenberg"  wrote:

> It is a lot cheaper to host a php site - the cheapest GoDaddy hosting plan
> for $5/mon includes PHP and mysql.
> 
> Dov
> 
> 
> On 4/7/11 8:55 AM, "Chuck Hill"  wrote:
> 
>> The place to start is to understand why your customer wants (or thinks that
>> he
>> wants) a site specifically in PHP.  Maybe he has a valid reason.  Maybe he
>> thinks that PHP brings some benefit that other technologies don't.  In that
>> case, focus on the technical and business needs and then help him to select a
>> technology based on that.
>> 
>> 
>> Chuck
>> 
>> 
>> On Apr 7, 2011, at 8:41 AM, Amedeo Mantica wrote:
>> 
>>> Hello all,
>>> 
>>> Generic question, how do you promote Java/WebObjects technology to customers
>>> ?
>>> 
>>> A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific
>>> request., he doesn't want a dynamic WebSite, he wants a php based website.
>>> 
>>> Suggestions ?
>>> 
>>> Amed
>>> 
>>> ___
>>> Do not 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
> 
>  ___
> Do not 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/drosenberg%40inquira.com
> 
> This email sent to drosenb...@inquira.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: Latest WOWODC news

2011-04-07 Thread Pascal Robert

Le 2011-04-07 à 12:07, Chuck Hill a écrit :

> On Apr 7, 2011, at 8:53 AM, Pascal Robert wrote:
>> As last year, the Community Dinner will be at the hotel. Bring your spouse 
>> and kids! We will sell tickets for them when we make a final decision about 
>> the menu.
> 
> 
> Poutine, Fèves au lard, Tourtière, and smoked meat.  What is there to decide? 
>  :-)

I did have a menu suggestion from the hotel that would include Quebec cheeses, 
smoked meat, maple syrup and pumpkin soup, and sugar pie + pouding chomeur (my 
favorite!). Tourtière, it's for Christmas time, and beans, it's for this time 
of year (sugar shack damnit!).

 ___
Do not 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: PHP Customer Request

2011-04-07 Thread Paul D Yu
I'd build him the PHP system, then take his money again when he wants to 
upgrade the system.

Paul
On Apr 7, 2011, at 12:38 PM, Dov Rosenberg wrote:

> It is a lot cheaper to host a php site - the cheapest GoDaddy hosting plan
> for $5/mon includes PHP and mysql.
> 
> Dov
> 
> 
> On 4/7/11 8:55 AM, "Chuck Hill"  wrote:
> 
>> The place to start is to understand why your customer wants (or thinks that 
>> he
>> wants) a site specifically in PHP.  Maybe he has a valid reason.  Maybe he
>> thinks that PHP brings some benefit that other technologies don't.  In that
>> case, focus on the technical and business needs and then help him to select a
>> technology based on that.
>> 
>> 
>> Chuck
>> 
>> 
>> On Apr 7, 2011, at 8:41 AM, Amedeo Mantica wrote:
>> 
>>> Hello all,
>>> 
>>> Generic question, how do you promote Java/WebObjects technology to customers
>>> ?
>>> 
>>> A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific
>>> request., he doesn't want a dynamic WebSite, he wants a php based website.
>>> 
>>> Suggestions ?
>>> 
>>> Amed
>>> 
>>> ___
>>> Do not 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
> 
> ___
> Do not 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/pyu%40mac.com
> 
> This email sent to p...@mac.com

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

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


Re: Latest WOWODC news

2011-04-07 Thread Louis Demers

On 2011-04-07, at 12:07 , Chuck Hill wrote:

> On Apr 7, 2011, at 8:53 AM, Pascal Robert wrote:
>> As last year, the Community Dinner will be at the hotel. Bring your spouse 
>> and kids! We will sell tickets for them when we make a final decision about 
>> the menu.
> 
> 
> Poutine, Fèves au lard, Tourtière, and smoked meat.  What is there to decide? 
>  :-)

whether you want to be buried or cremated 8-)


> 
> 
> -- 
> 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/louisdemers%40mac.com
> 
> This email sent to louisdem...@mac.com

Louis Demers eng.
www.obzerv.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: PHP Customer Request

2011-04-07 Thread Dov Rosenberg
It is a lot cheaper to host a php site - the cheapest GoDaddy hosting plan
for $5/mon includes PHP and mysql.

Dov


On 4/7/11 8:55 AM, "Chuck Hill"  wrote:

> The place to start is to understand why your customer wants (or thinks that he
> wants) a site specifically in PHP.  Maybe he has a valid reason.  Maybe he
> thinks that PHP brings some benefit that other technologies don't.  In that
> case, focus on the technical and business needs and then help him to select a
> technology based on that.
> 
> 
> Chuck
> 
> 
> On Apr 7, 2011, at 8:41 AM, Amedeo Mantica wrote:
> 
>> Hello all,
>> 
>> Generic question, how do you promote Java/WebObjects technology to customers
>> ?
>> 
>> A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific
>> request., he doesn't want a dynamic WebSite, he wants a php based website.
>> 
>> Suggestions ?
>> 
>> Amed
>> 
>> ___
>> Do not 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

 ___
Do not 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: Latest WOWODC news

2011-04-07 Thread Chuck Hill
On Apr 7, 2011, at 8:53 AM, Pascal Robert wrote:
> As last year, the Community Dinner will be at the hotel. Bring your spouse 
> and kids! We will sell tickets for them when we make a final decision about 
> the menu.


Poutine, Fèves au lard, Tourtière, and smoked meat.  What is there to decide?  
:-)


-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not 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: PHP Customer Request

2011-04-07 Thread Amedeo Mantica
wait, probably i misstyped, he wants a Dynamic WebSite, but built using PHP

On 07/apr/2011, at 17.51, Dov Rosenberg wrote:

> Save yourself the grief - the customer is an idiot if he thinks a php site
> is not a dynamic site.
> 
> Dov
> 
> 
> On 4/7/11 8:41 AM, "Amedeo Mantica"  wrote:
> 
>> Hello all,
>> 
>> Generic question, how do you promote Java/WebObjects technology to customers 
>> ?
>> 
>> A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific
>> request., he doesn't want a dynamic WebSite, he wants a php based website.
>> 
>> Suggestions ?
>> 
>> Amed
>> 
>> ___
>> Do not 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/drosenberg%40inquira.com
>> 
>> This email sent to drosenb...@inquira.com
> 
> 

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

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


Re: Concurrent request handling

2011-04-07 Thread Chuck Hill

On Apr 7, 2011, at 8:09 AM, Dev WO wrote:

> Hello Andrew,
> 
>> 
>> Hi Xavier;
>> 
>> I would suggest not putting the formatter in the EO class because the EO is 
>> model layer and the formatter really belong as part of the display logic -- 
>> blurring the two eventually ends up causing design problems in the long-haul.
> 
> I completely agree with this:)
> 
>> I think in the past when faced with this situation, I added accessors to the 
>> components' controllers' super-class which then "gets or creates" a 
>> formatter for a particular purpose (data quantity format / timestamp / 
>> currency etc...) which is cached in the "user info" in the WOContext 
>> instance for the current request-response cycle.  This approach allows you 
>> to re-use the formatters for the request-response cycle and then just allows 
>> them to be garbage collected at the end of the cycle.
> 
> That means I would have as much formatter instances as there's a request for 
> a specific component/page. It's probably not a big deal, it just feels 
> strange to me to have something that is application-wide used in a component 
> part.

A compared to String or Integer or... :-)  Formatters should be lightweight 
objects that can be created, used, and discarded at will.  Caching and re-using 
them is just an easy and obvious optimization.  Also, some formatters ARE 
thread safe.  It is the date formatting ones that seem to be a problem.


> Would it be a better practice to implement those formatter in a component 
> super-class or have them as an interface for the components that need them?

They would have to be static to be in an interface and that is not thread safe. 
 :-)  I'd do what Andrew suggests or just create what you need in your 
component constructor.  If it is a stateless app, just keep the page cache very 
small and you don't have to worry about memory.


Chuck


>> cheers.
>> 
>>> Sorry to jump into this to add another question:)
>>> But I would have expected the formatter to not be an issue as it's not
>>> actually writing data.
>>> If you have a stateless app (like full of DA), how would you handle that
>>> as you can actually put the formatter in Session?
>>> Do you have to put the formatter inside the EO class?
>> 
>> -- 
>> Andrew Lindesay
>> www.silvereye.co.nz
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
>> 
>> This email sent to webobje...@anazys.com
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not 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: PHP Customer Request

2011-04-07 Thread Chuck Hill
The place to start is to understand why your customer wants (or thinks that he 
wants) a site specifically in PHP.  Maybe he has a valid reason.  Maybe he 
thinks that PHP brings some benefit that other technologies don't.  In that 
case, focus on the technical and business needs and then help him to select a 
technology based on that.


Chuck


On Apr 7, 2011, at 8:41 AM, Amedeo Mantica wrote:

> Hello all,
> 
> Generic question, how do you promote Java/WebObjects technology to customers ?
> 
> A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific 
> request., he doesn't want a dynamic WebSite, he wants a php based website.
> 
> Suggestions ?
> 
> Amed
> 
> ___
> Do not 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









smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not 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


Latest WOWODC news

2011-04-07 Thread Pascal Robert
Hello everyone,

For those you don't follow the @wowodc account on Twitter, let's go with a 
summary of WOWODC 2011 news.

1) The mostly final list of topics is available:

http://wocommunity.org/wowodc11/topics.html

I'm awaiting confirmation for two other presentations, but the bulk is there. 
As you can see, we have topics for everyone! We also have labs, including one 
specific to deployment and builds. The Build & Deploy Lab will allow you to ask 
questions about your Jenkins/Hudson setup or any other building/deployment 
questions you have.

2) We have 3 events: 

http://wocommunity.org/wowodc11/events.html

At the Community Talk, we will talk about the surveys result and decide what we 
should do to build a better community. We might try to broadcast that one over 
WebEx.

The Open Panel will allow attendees to ask any questions related to WO, and our 
panel of experts (+ the audience) will do their best to answer your questions.

As last year, the Community Dinner will be at the hotel. Bring your spouse and 
kids! We will sell tickets for them when we make a final decision about the 
menu.

3) You should try to book your room ASAP. July 1/2/3 are quite busy days for 
hotels. We have a reserved block of 25 rooms at the hotel, and we can book more 
rooms in the block, but they cannot garantee availability beyond the 25 rooms 
block. I strongly suggest that you book your room before May. You can cancel 
your reservation if you find out that you can't come after all.

I think the choice of topics we have this year is really great! And I can't 
wait to see the gang again this year (and yes, I will organize other activities 
in Montreal like last year).

See you in July!

--
Pascal Robert
prob...@macti.ca

AIM/iChat : MacTICanada
LinkedIn : http://www.linkedin.com/in/macti
Twitter : pascal_robert

 ___
Do not 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: PHP Customer Request

2011-04-07 Thread Dov Rosenberg
Save yourself the grief - the customer is an idiot if he thinks a php site
is not a dynamic site.

Dov


On 4/7/11 8:41 AM, "Amedeo Mantica"  wrote:

> Hello all,
> 
> Generic question, how do you promote Java/WebObjects technology to customers ?
> 
> A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific
> request., he doesn't want a dynamic WebSite, he wants a php based website.
> 
> Suggestions ?
> 
> Amed
> 
>  ___
> Do not 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/drosenberg%40inquira.com
> 
> This email sent to drosenb...@inquira.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: PHP Customer Request

2011-04-07 Thread Mark Ritchie
IMHO, PHP and MySql can make a dynamic web site...
And for some smaller sites, it makes total sense.
Using a steam roller to set a nail tends to bruise fingers. ;-)
M.

On 7/Apr/2011, at 8:41 AM, Amedeo Mantica wrote:
> Hello all,
> 
> Generic question, how do you promote Java/WebObjects technology to customers ?
> 
> A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific 
> request., he doesn't want a dynamic WebSite, he wants a php based website.
> 
> Suggestions ?
> 
> Amed
> 
> ___
> Do not 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.ritchie%40mac.com
> 
> This email sent to mark.ritc...@mac.com

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

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


PHP Customer Request

2011-04-07 Thread Amedeo Mantica
Hello all,

Generic question, how do you promote Java/WebObjects technology to customers ?

A customer today asked me for a PHP/MySQ WebSite/WebApp. That was a specific 
request., he doesn't want a dynamic WebSite, he wants a php based website.

Suggestions ?

Amed

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

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


Re: Concurrent request handling

2011-04-07 Thread Dev WO
Hello Andrew,

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

I completely agree with this:)

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

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

Thanks,

Xavier


> 
> cheers.
> 
>> Sorry to jump into this to add another question:)
>> But I would have expected the formatter to not be an issue as it's not
>> actually writing data.
>> If you have a stateless app (like full of DA), how would you handle that
>> as you can actually put the formatter in Session?
>> Do you have to put the formatter inside the EO class?
> 
> -- 
> Andrew Lindesay
> www.silvereye.co.nz
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com
> 
> This email sent to webobje...@anazys.com
> 

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

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


Re: WebObjects Community Annual Surveys are ready

2011-04-07 Thread Pascal Robert
Only 4 answers from US organizations... France and Germany have more! Does 
everyone in the US is working for Apple now or what?

> Hello everyone,
> 
> The annual WebObjects Community Surveys are now available! The results will 
> help us to prepare the content for WOWODC 2011 and community activities for 
> this year, so don't be shy and answer them before May 1. 
> 
> If you know people who don't follow the mailing list, send them the links so 
> that they can answer the surveys. The more people we have, better the picture 
> is. Also if you think that if the surveys are available in other languages 
> more people will complete them, send me a translation and I will create it on 
> Survs.
> 
> Organization Survey:
> 
>  https://www.survs.com/survey/P2A9BU3109
> 
> Individual Survey:
> 
>  https://www.survs.com/survey/PW8XLMWGU5
> 
> Thanks (and no, this is not a April Fool joke :-)).
> 
> --
> Pascal Robert
> prob...@macti.ca
> 
> AIM/iChat : MacTICanada
> LinkedIn : http://www.linkedin.com/in/macti
> Twitter : pascal_robert
> 
> ___
> Do not 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: postgresql schema ignored when adding foreign key

2011-04-07 Thread Pascal Robert
Patch committed.

> It looks like it's just fundamentally broken, FKs and unique indexes just 
> don't work in other schemas for postgtgres.
> 
> For my fixes if you're curious.
> http://issues.objectstyle.org/jira/browse/WONDER-696
> 
> Thanks Tim this info. was helpful.
> -Mike
> 
> 
> On Apr 6, 2011, at 12:14 AM, D Tim Cummings wrote:
> 
>> Schemas don't work if you have the following property true
>> 
>> com.webobjects.jdbcadaptor.PostgresqlExpression.enableIdentifierQuoting=true
>> 
>> I have a patch to fix this in 
>> 
>> http://issues.objectstyle.org/jira/browse/WONDER-489
>> Postgresql PlugIn inconsistent application of identifier quoting to table 
>> names with schemas - Migrations don't work
>> 
>> 
>> Regards
>> 
>> Tim Cummings
>> 
>> On 06/04/2011, at 2:27 AM, Michael Gargano wrote:
>> 
>>> 
>>> 
>>> EOSchemaGeneration foreignKeyConstraintStatementsForRelationship() seems to 
>>> ignore schemas.  Anyone else have problems with that when using 
>>> addForeignKey() in a migration with tables with non-default schemas?  I 
>>> tried to fix it on my own, but either my brain is too small or wonder is 
>>> too complex... maybe both.  :p
>>> 
>>> -Mike
>>> 
>>> ___
>>> Do not 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/tim%40triptera.com.au
>>> 
>>> This email sent to t...@triptera.com.au
>> 
> 
> ___
> Do not 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: Newbie question

2011-04-07 Thread David LeBer

On 2011-04-07, at 7:02 AM, Amedeo Mantica wrote:

> do you insert the Enterprise Object in the Editing Context immediately after 
> creation or when submitting form ?

Create and insert together, always.

Follow the commandments:



> 
> 
> On 07/apr/2011, at 12.39, Pascal Robert wrote:
> 
>> 
>> Le 2011-04-06 à 23:48, Chuck Hill a écrit :
>> 
>>> That is going to leave you with a race condition.  The only certain way to 
>>> prevent the creation of duplicates is to put an unique constraint on the 
>>> database.  Then you have to catch the database exception 
>>> (EOGeneralAdaptorException) in your code and handle appropriately.  The 
>>> ugly part is that the exception message returned is different for each 
>>> database which makes doing this in a database agnostic way slightly 
>>> challenging.
>> 
>> Example for H2:
>> 
>>  try {
>>editingContext().saveChanges();
>>  } catch (EOGeneralAdaptorException ex) {
>>EOAdaptorOperation operation = 
>> (EOAdaptorOperation)((NSMutableArray)ex.userInfo().valueForKey("EOAdaptorOperationsKey")).objectAtIndex(0);
>>if (operation.exception().getMessage().contains("Unique index or primary 
>> key violation")) {
>>  throw new SomeException();
>>}
>> 
>>> Chuck
>>> 
>>> On Apr 6, 2011, at 8:21 PM, Paul D Yu wrote:
>>> 
 Based on the column/attribute in your DB/EOModel that would make your 
 consider the record/EO to be duplicate of another, you should implement a 
 method that would check for those values in the existing set.
 
 I don't think there is a one line solution to what you are seeking.
 
 Paul
 On Apr 6, 2011, at 10:52 PM, Mr Tonnew wrote:
 
> Hi,
> 
> How do I avoid committing duplicate entries in the DB? I have a form
> from where I take entries. Is there a single line of code that can
> accomplish this?
> 
> MR
> ___
> Do not 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/pyu%40mac.com
> 
> This email sent to p...@mac.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 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/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/amedeomailing%40insigno.it
>> 
>> This email sent to amedeomail...@insigno.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:
> http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to dleber_wo...@codeferous.com

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.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/archive%40mail-archive.com

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


Re: postgresql schema ignored when adding foreign key

2011-04-07 Thread Pascal Robert
Quick note: do your patches with Eclipse's Team -> Create Patch, and use either 
.txt or .patch as the file extension. When using .diff, Jira will download it 
(and Safari will .rdp at the end) instead of showing the patch in the browser.

> It looks like it's just fundamentally broken, FKs and unique indexes just 
> don't work in other schemas for postgtgres.
> 
> For my fixes if you're curious.
> http://issues.objectstyle.org/jira/browse/WONDER-696
> 
> Thanks Tim this info. was helpful.
> -Mike
> 
> 
> On Apr 6, 2011, at 12:14 AM, D Tim Cummings wrote:
> 
>> Schemas don't work if you have the following property true
>> 
>> com.webobjects.jdbcadaptor.PostgresqlExpression.enableIdentifierQuoting=true
>> 
>> I have a patch to fix this in 
>> 
>> http://issues.objectstyle.org/jira/browse/WONDER-489
>> Postgresql PlugIn inconsistent application of identifier quoting to table 
>> names with schemas - Migrations don't work
>> 
>> 
>> Regards
>> 
>> Tim Cummings
>> 
>> On 06/04/2011, at 2:27 AM, Michael Gargano wrote:
>> 
>>> 
>>> 
>>> EOSchemaGeneration foreignKeyConstraintStatementsForRelationship() seems to 
>>> ignore schemas.  Anyone else have problems with that when using 
>>> addForeignKey() in a migration with tables with non-default schemas?  I 
>>> tried to fix it on my own, but either my brain is too small or wonder is 
>>> too complex... maybe both.  :p
>>> 
>>> -Mike
>>> 
>>> ___
>>> Do not 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/tim%40triptera.com.au
>>> 
>>> This email sent to t...@triptera.com.au
>> 
> 
> ___
> Do not 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: postgresql schema ignored when adding foreign key

2011-04-07 Thread D Tim Cummings
Thanks Pascal

Tim



On 07/04/2011, at 21:53, Pascal Robert  wrote:

> Patch committed.
> 
>> Schemas don't work if you have the following property true
>> 
>> com.webobjects.jdbcadaptor.PostgresqlExpression.enableIdentifierQuoting=true
>> 
>> I have a patch to fix this in 
>> 
>> http://issues.objectstyle.org/jira/browse/WONDER-489
>> Postgresql PlugIn inconsistent application of identifier quoting to table 
>> names with schemas - Migrations don't work
>> 
>> 
>> Regards
>> 
>> Tim Cummings
>> 
>> On 06/04/2011, at 2:27 AM, Michael Gargano wrote:
>> 
>>> 
>>> 
>>> EOSchemaGeneration foreignKeyConstraintStatementsForRelationship() seems to 
>>> ignore schemas.  Anyone else have problems with that when using 
>>> addForeignKey() in a migration with tables with non-default schemas?  I 
>>> tried to fix it on my own, but either my brain is too small or wonder is 
>>> too complex... maybe both.  :p
>>> 
>>> -Mike
>>> 
>>> ___
>>> Do not 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/tim%40triptera.com.au
>>> 
>>> This email sent to t...@triptera.com.au
>> 
>> ___
>> Do not 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: postgresql schema ignored when adding foreign key

2011-04-07 Thread Pascal Robert
Patch committed.

> Schemas don't work if you have the following property true
> 
> com.webobjects.jdbcadaptor.PostgresqlExpression.enableIdentifierQuoting=true
> 
> I have a patch to fix this in 
> 
> http://issues.objectstyle.org/jira/browse/WONDER-489
> Postgresql PlugIn inconsistent application of identifier quoting to table 
> names with schemas - Migrations don't work
> 
> 
> Regards
> 
> Tim Cummings
> 
> On 06/04/2011, at 2:27 AM, Michael Gargano wrote:
> 
>> 
>> 
>> EOSchemaGeneration foreignKeyConstraintStatementsForRelationship() seems to 
>> ignore schemas.  Anyone else have problems with that when using 
>> addForeignKey() in a migration with tables with non-default schemas?  I 
>> tried to fix it on my own, but either my brain is too small or wonder is too 
>> complex... maybe both.  :p
>> 
>> -Mike
>> 
>> ___
>> Do not 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/tim%40triptera.com.au
>> 
>> This email sent to t...@triptera.com.au
> 
> ___
> Do not 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: Newbie question

2011-04-07 Thread Amedeo Mantica
do you insert the Enterprise Object in the Editing Context immediately after 
creation or when submitting form ?


On 07/apr/2011, at 12.39, Pascal Robert wrote:

> 
> Le 2011-04-06 à 23:48, Chuck Hill a écrit :
> 
>> That is going to leave you with a race condition.  The only certain way to 
>> prevent the creation of duplicates is to put an unique constraint on the 
>> database.  Then you have to catch the database exception 
>> (EOGeneralAdaptorException) in your code and handle appropriately.  The ugly 
>> part is that the exception message returned is different for each database 
>> which makes doing this in a database agnostic way slightly challenging.
> 
> Example for H2:
> 
>   try {
> editingContext().saveChanges();
>   } catch (EOGeneralAdaptorException ex) {
> EOAdaptorOperation operation = 
> (EOAdaptorOperation)((NSMutableArray)ex.userInfo().valueForKey("EOAdaptorOperationsKey")).objectAtIndex(0);
> if (operation.exception().getMessage().contains("Unique index or primary 
> key violation")) {
>   throw new SomeException();
> }
> 
>> Chuck
>> 
>> On Apr 6, 2011, at 8:21 PM, Paul D Yu wrote:
>> 
>>> Based on the column/attribute in your DB/EOModel that would make your 
>>> consider the record/EO to be duplicate of another, you should implement a 
>>> method that would check for those values in the existing set.
>>> 
>>> I don't think there is a one line solution to what you are seeking.
>>> 
>>> Paul
>>> On Apr 6, 2011, at 10:52 PM, Mr Tonnew wrote:
>>> 
 Hi,
 
 How do I avoid committing duplicate entries in the DB? I have a form
 from where I take entries. Is there a single line of code that can
 accomplish this?
 
 MR
 ___
 Do not 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/pyu%40mac.com
 
 This email sent to p...@mac.com
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> 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/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/amedeomailing%40insigno.it
> 
> This email sent to amedeomail...@insigno.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Newbie question

2011-04-07 Thread Pascal Robert

Le 2011-04-06 à 23:48, Chuck Hill a écrit :

> That is going to leave you with a race condition.  The only certain way to 
> prevent the creation of duplicates is to put an unique constraint on the 
> database.  Then you have to catch the database exception 
> (EOGeneralAdaptorException) in your code and handle appropriately.  The ugly 
> part is that the exception message returned is different for each database 
> which makes doing this in a database agnostic way slightly challenging.

Example for H2:

   try {
 editingContext().saveChanges();
   } catch (EOGeneralAdaptorException ex) {
 EOAdaptorOperation operation = 
(EOAdaptorOperation)((NSMutableArray)ex.userInfo().valueForKey("EOAdaptorOperationsKey")).objectAtIndex(0);
 if (operation.exception().getMessage().contains("Unique index or primary 
key violation")) {
   throw new SomeException();
 }

> Chuck
> 
> On Apr 6, 2011, at 8:21 PM, Paul D Yu wrote:
> 
>> Based on the column/attribute in your DB/EOModel that would make your 
>> consider the record/EO to be duplicate of another, you should implement a 
>> method that would check for those values in the existing set.
>> 
>> I don't think there is a one line solution to what you are seeking.
>> 
>> Paul
>> On Apr 6, 2011, at 10:52 PM, Mr Tonnew wrote:
>> 
>>> Hi,
>>> 
>>> How do I avoid committing duplicate entries in the DB? I have a form
>>> from where I take entries. Is there a single line of code that can
>>> accomplish this?
>>> 
>>> MR
>>> ___
>>> Do not 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/pyu%40mac.com
>>> 
>>> This email sent to p...@mac.com
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> 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/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: Concurrent request handling

2011-04-07 Thread Andrew Lindesay

Hi Xavier;

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


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


cheers.


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


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

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


Re: D2W master-detail handling question

2011-04-07 Thread Markus Ruggiero
Thanks, only after posting my question I realised that D2W distinguishes 
between "EditDetail" and "CreateDetail" page configs. You just confirmed my 
findings.

This list (and all the folks that answer to postings) is just great. Eventually 
I'll be able to give answers myself.

Have fun
---markus---

On 06.04.2011, at 19:01, David Holt wrote:

> Hi Markus,
> 
> On 2011-04-05, at 11:14 PM, Markus Ruggiero wrote:
> 
>> I have a one-2-many relationship from "master" to "detail". The user selects 
>> a "detail" from a ListDetail page configuration, then clicks "edit" on a 
>> given "detail". In page configuration EditDetail I have a 
>> ERD2WEditToOneRelationship as a popup for the toMaster relationship. Now the 
>> user thinks/wants to select a different "master" from this popup and switch 
>> to that master. Of course this makes no sense. And it also makes no sense 
>> business wise to re-assign that particular "detail" to a different "master". 
>> However on "new detail" the user must be able to select the "master".
> 
> Change your PropertyLevel component to an uneditable string for that 
> relationship in the "edit" page configuration.
> 
> In the "create" page configuration leave it as is.
> 
> David
> 
> 
>> 
>> How can I easily distinguish between the cases where the detail is not yet 
>> saved (in case of new) and where a saved detail is edited so that the 
>> relationship toMaster can be made edit/non-edit accordingly?
> 
> Use 2 different page configurations?
> 
> 
>> 
>> Thanks
>> ---markus---
>> 
>> ___
>> Do not 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/programmingosx%40mac.com
>> 
>> This email sent to programming...@mac.com
> 
> 

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

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


Re: Concurrent request handling

2011-04-07 Thread Dev WO
Hello Chuck,

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

Thanks,

Xavier


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

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

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

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