Re: And the beat goes on...

2009-07-07 Thread Chuck Hill


On Jul 7, 2009, at 10:14 PM, Anjo Krank wrote:


Am 08.07.2009 um 03:55 schrieb Chuck Hill:


On Jul 7, 2009, at 4:48 PM, Ken Anderson wrote:


http://www.appleinsider.com/articles/09/07/07/apple_to_drop_webobjects_in_snow_leopard_server.html



Nothing new there.  They even got most of the facts correct!  ;-)


WTF is that jlm808 id^H^H guy in the forums? Exactly this kind of  
language makes all of us look like a bunch of raving maniacs. "Hey  
look! See that guy with the hunchback? That's one of the two WO devs  
left in the world.". "Ohh, the poor unfortunate creature..."


The intelligence of the comments are about what you usually get on a  
public forum.  It has once again restored my lack of faith in humanity.



The article was totally ok, one might have mentioned that it is  
actually a good thing the standard install is gone (because update  
will fuck it up every so often, if I did ruby, I'd be horrified that  
Apple includes ROR), and it's only a deployment issue, not dev.



Yes, much gnashing of teeth about a small and good change.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

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


Re: Maintain server state of a page + Javascript page navigation

2009-07-07 Thread shravan kumar
 Thanks for your response Mike. 

What is Giandiua btw? Google says it is a Chocolate from Italy!!!

The page am referring is just one of the pages of a wizard, which has 
sub-pages. The whole wizard runs through component actions.

I was actually about following situation:

When we have long response component displayed upon initiating a request, and 
we see long response until we have a response. Once after the response let's 
say I just hide long response component and show the main component, now user 
cannot perform any actions in this main component and we might receive errors 
like: You have exceeded 30 pages limit/ page out of cache... this is because 
the context bound to the action element is older. Am I correct (Mike) ?

I understand by your saying switching to direct actions, we can get away from 
this issue if we use direct actions. But am wondering if I can use component 
actions and direct actions freely. I hope I can validate whether the direct 
action request is initiated by a logged-in valid user, so my direct actions are 
not floating freely.

---

If I use component actions, can you advise me how can I have all the elements, 
app in the latest context?

Thank You,
Shravan Kumar. M
--



Monday, July 6, 2009 7:14 PM



From: 
"Mike Schrag" 



To: 
"WO Dev Group" 
seems
to me like you're swimming against the tide here ... i think you need
to rethink this architecture.  you're basically sending the users the
entire site, which makes this more of a Sproutcore/Giandiua/etc
workflow, and mixing component actions into this style of app is going
to be very tricky. I would recommend switching to directactions. you
could keep a session alive with a ping if you really need it to be
sessionful, but trying to actually use WOForms in this thing is going
to be an endless headache imo.
On Jul 6, 2009, at 7:54 AM, shravan kumar wrote:
Hi Group,

Could you please advise me a solution to achieve below functionality:

Scenario:
-

I
have a page which gets all the data like text content [3000 lines or
more], images info [about 500 or more] once when the user requests for
this page.

Once this data from the server has arrived, we will
be displaying this whole data part by part by splitting this data into
sub-pages through javascript. So, user actually sees the sub-page
rather the whole page received from the server.

There can be around 40 sub-pages or more.

While
navigating through each of these sub-pages user may perform a server
action like edit some text and save, rotate an image and save, ... and
all these actions do not refresh the whole page/ sub-page (like we see
in ajax implementations) and just update a particular field.

I assume that there might be some time-gap say 10 minutes or more between each 
of the server actions performed by the user.


During these times as you know, we have to maintain the session of this
user in the server (this can be achieved through lets say session
timeout value), state of this page in the server, ... 

Problem:
-
How
can I maintain the state of this page (generally whenever we do a
submit WO app returns with a new context info, correct?), so all my
actions are valid and there are issues of Broken pipe/ page not in the
cache/ ...

I thought of just pinging the server every few
seconds for some dummy data like: how are you doing? or something like
gmail does? However, I do not know how to exactly implement this
behavior.

Please advise.

Thanks in advance,
Shravan Kumar. M

___
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/mschrag%40mdimension.com

This email sent to msch...@mdimension.com

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Maintain server state of a page + Javascript page navigation

2009-07-07 Thread shravan kumar
Hi David,

Thanks for your insight. I may be late to drop this Q in the WO Group. I have 
designed most of the app and is working fine. Basically this module is just one 
part of the my application.

I have no idea of JavaClient. Should it be installed in the individual users 
machines? Can I move my current code to this app? What all changes you 
anticipate? How can I sysnc it with my regular web app? Please advise.

Thank You,
Shravan Kumar. M


--- On Mon, 7/6/09, David Avendasora  wrote:

From: David Avendasora 
Subject: Re: Maintain server state of a page + Javascript page navigation
To: "shravan kumar" 
Cc: "WO Dev Group" 
Date: Monday, July 6, 2009, 6:24 PM


On Jul 6, 2009, at 7:54 AM, shravan kumar wrote:

> Hi Group,
> 
> Could you please advise me a solution to achieve below functionality:
> 
> Scenario:
> -
> 
> I have a page which gets all the data like text content [3000 lines or more], 
> images info [about 500 or more] once when the user requests for this page.
> 
> Once this data from the server has arrived, we will be displaying this whole 
> data part by part by splitting this data into sub-pages through javascript. 
> So, user actually sees the sub-page rather the whole page received from the 
> server.
> 
> There can be around 40 sub-pages or more.
> 
> While navigating through each of these sub-pages user may perform a server 
> action like edit some text and save, rotate an image and save, ... and all 
> these actions do not refresh the whole page/ sub-page (like we see in ajax 
> implementations) and just update a particular field.
> 
> I assume that there might be some time-gap say 10 minutes or more between 
> each of the server actions performed by the user.
> 
> During these times as you know, we have to maintain the session of this user 
> in the server (this can be achieved through lets say session timeout value), 
> state of this page in the server, ...
> 
> Problem:
> -
> How can I maintain the state of this page (generally whenever we do a submit 
> WO app returns with a new context info, correct?), so all my actions are 
> valid and there are issues of Broken pipe/ page not in the cache/ ...

Unless I'm missing something, you can just extend the length of the Session 
timeout to be what you anticipate the longest a user will need to respond. 10 
minutes I believe is the default, but you can make it anything. Editing 
Contexts (your user's pools of objects) are maintained as part of the user's 
Session and you control which editing context is used, or if a new one is 
created for each action.

Maintaining state is one of WO's core functions, you just have to determine 
exactly what state and for how long you want to maintain it for your particular 
situation

> I thought of just pinging the server every few seconds for some dummy data 
> like: how are you doing? or something like gmail does? However, I do not know 
> how to exactly implement this behavior.

You should not need to do this at all. WO will maintain state as long as the 
session hasn't timed out or you don't start using a different editing context.

With all this said, it sounds like you are trying to implement a rich client in 
a web UI. Have you considered Java Client at all for this functionality? It 
would make managing the client-server interaction much easier since you will 
actually have EOs on the client that you can manipulate using normal Java 
instead of having to write Javascript to do it.

Dave



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

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

Re: And the beat goes on...

2009-07-07 Thread Anjo Krank

Am 08.07.2009 um 03:55 schrieb Chuck Hill:


On Jul 7, 2009, at 4:48 PM, Ken Anderson wrote:


http://www.appleinsider.com/articles/09/07/07/apple_to_drop_webobjects_in_snow_leopard_server.html



Nothing new there.  They even got most of the facts correct!  ;-)


WTF is that jlm808 id^H^H guy in the forums? Exactly this kind of  
language makes all of us look like a bunch of raving maniacs. "Hey  
look! See that guy with the hunchback? That's one of the two WO devs  
left in the world.". "Ohh, the poor unfortunate creature..."


The article was totally ok, one might have mentioned that it is  
actually a good thing the standard install is gone (because update  
will fuck it up every so often, if I did ruby, I'd be horrified that  
Apple includes ROR), and it's only a deployment issue, not dev.


Cheers, Anjo
___
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


javaxml.jar, war deploys, and sanity vs serenity

2009-07-07 Thread William Hatch

WTF

I have three apps, all deployed under the same container. they all  
have the same classpaths. two of them deploy, one does not with that  
miserable, make-you-want-to-kill error WOServletAdaptor  
Unavailable All of these are built on a remote host using ant from  
the shell on a CentOS box. That part works fine. In a recent post,  
Mike makes mention of this jar hosing you, and I'd say it does, but  
not all the time. If you keep sudo touching the damned war, eventually  
it deploys. Why is this not a consistent error?  What can be done to  
make this stop, and what can be done so that one can never have to  
speak it's name again? I mean clearly, you shouldn't have javaxml.jar  
in your classpath and all that, but is there an easy way to prevent it  
from getting there period? I'd rather suffer with some compiler errors  
up front if it'd help. Thanks for letting me vent...;-) My future hair  
line thanks you in advance for any solid suggestions that lead to a  
more serene place


Bill


___
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: And the beat goes on...

2009-07-07 Thread Chuck Hill

On Jul 7, 2009, at 4:48 PM, Ken Anderson wrote:


http://www.appleinsider.com/articles/09/07/07/apple_to_drop_webobjects_in_snow_leopard_server.html



Nothing new there.  They even got most of the facts correct!  ;-)


--  
Chuck Hill Senior Consultant / VP Development


Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






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

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


And the beat goes on...

2009-07-07 Thread Ken Anderson

http://www.appleinsider.com/articles/09/07/07/apple_to_drop_webobjects_in_snow_leopard_server.html
___
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: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread David Avendasora


On Jul 7, 2009, at 6:17 PM, Miguel Angel Torres Avila wrote:


Hi, Thanks for the hint about using Prototypes, it is really useful.


That brought to my mine a questing that is a little out of the topic.

If you have an attribute prototyped as currencyAmount the precision  
is set to 38 and the scale to 4. The Data Type suggested is  
java.math.BigDecimal.
How are you guys controlling that the BigDecimal in your java class  
does not have a value whit a scale superior of 4 before saving the  
editing context to avoid an exception?


We are currently solving this just rounding the value before saving,  
or in the validation method  to ensure the scale is not superior  
that the value defined in modeler. But one of the great things of  
prototyping is that if for some reason I want to change the scale to  
5 instead 4, all the attribute definition's that are using that  
prototype will be updated, what about the BigDecimal?


Maybe I am wrong on thinking that I should be sure that the scale of  
my BigDecimal  must be less than or equals to the scale defined in  
the modeler to avoid exception on saving.


How do you guys handle this?


I have modified my EOGenerator _Entity.java template to watch for  
BigDecimal data types and to automatically set the scale to what the  
Model has the scale set to. Here's the snippit of code from the  
attribute setter method:


#if ($attribute.javaClassName == "java.math.BigDecimal")
if (${attribute.name} != null) {
			${attribute.name} = ${attribute.name}.setScale(${attribute.scale},  
RoundingMode.HALF_UP);

}
#end

I never had an error since I started using this and if I change the  
settings in the EOModel, my classes are updated when the EOGeneration  
runs.


Dave








On Jul 7, 2009, at 2:42 PM, Johann Werner wrote:



Am 07.07.2009 um 21:09 schrieb Scott M. Neal:



On Jun 30, 2009, at 5:43 PM, David Avendasora wrote:



On Jun 30, 2009, at 8:29 PM, Scott M. Neal wrote:

Well, if you're looking for excuses to "upgrade" things, maybe  
transition to using Prototypes. I'm sure the Postgress Prototypes  
in Wonder's ERPrototypes will all have the proper External  
Types. :-)


Wow, thank you Dave, that DOES make things substantially easier
(and less prone to error--sure enough, had a missing external type  
in

one of the entities).  All this modern fanciness, still getting used
to it...

Now my question is, for the Postgresql prototypes, which one
is recommended to use for primary keys?  Googling reveals some  
people
using long (called longNumber in prototypes), which is what I  
historically
used, while others are using varchar (but not consistent regarding  
size:

10? 100? 10,000,000?  :-))


Why don't you just choose the most obvious prototype: 'id'? Life  
can be so easy ;-)


jw




Thank you,

Scott


Otherwise, you should be able to just select one entity at a time  
and click the SQL button and see which one(s) generate the error.  
I see pretty clear error messages with this, that say exactly  
what external type is not recognized.


Dave


Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com






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

This email sent to mig...@toracom.net




___
Ing. Miguel Angel Torres Avila
Director General
Tel: +52 (33) 3367 1892
Cel: +52 (33) 3106 8758
E-mail: mig...@toracom.net
www.toracom.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/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com


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

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

Re: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread Miguel Angel Torres Avila

Hi, Thanks for the hint about using Prototypes, it is really useful.


That brought to my mine a questing that is a little out of the topic.

If you have an attribute prototyped as currencyAmount the precision is  
set to 38 and the scale to 4. The Data Type suggested is  
java.math.BigDecimal.
How are you guys controlling that the BigDecimal in your java class  
does not have a value whit a scale superior of 4 before saving the  
editing context to avoid an exception?


We are currently solving this just rounding the value before saving,  
or in the validation method  to ensure the scale is not superior that  
the value defined in modeler. But one of the great things of  
prototyping is that if for some reason I want to change the scale to 5  
instead 4, all the attribute definition's that are using that  
prototype will be updated, what about the BigDecimal?


Maybe I am wrong on thinking that I should be sure that the scale of  
my BigDecimal  must be less than or equals to the scale defined in the  
modeler to avoid exception on saving.


How do you guys handle this?





On Jul 7, 2009, at 2:42 PM, Johann Werner wrote:



Am 07.07.2009 um 21:09 schrieb Scott M. Neal:



On Jun 30, 2009, at 5:43 PM, David Avendasora wrote:



On Jun 30, 2009, at 8:29 PM, Scott M. Neal wrote:

Well, if you're looking for excuses to "upgrade" things, maybe  
transition to using Prototypes. I'm sure the Postgress Prototypes  
in Wonder's ERPrototypes will all have the proper External  
Types. :-)


Wow, thank you Dave, that DOES make things substantially easier
(and less prone to error--sure enough, had a missing external type in
one of the entities).  All this modern fanciness, still getting used
to it...

Now my question is, for the Postgresql prototypes, which one
is recommended to use for primary keys?  Googling reveals some people
using long (called longNumber in prototypes), which is what I  
historically
used, while others are using varchar (but not consistent regarding  
size:

10? 100? 10,000,000?  :-))


Why don't you just choose the most obvious prototype: 'id'? Life can  
be so easy ;-)


jw




Thank you,

Scott


Otherwise, you should be able to just select one entity at a time  
and click the SQL button and see which one(s) generate the error.  
I see pretty clear error messages with this, that say exactly what  
external type is not recognized.


Dave


Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com






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

This email sent to mig...@toracom.net




___
Ing. Miguel Angel Torres Avila
Director General
Tel: +52 (33) 3367 1892
Cel: +52 (33) 3106 8758
E-mail: mig...@toracom.net
www.toracom.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: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread David Avendasora


On Jul 7, 2009, at 5:32 PM, Andrew Lindesay wrote:


Hello David;

I don't use Postgresql, but I believe that the prototype "id" is  
the one to use for PKs and FKs. I see that there only seems to be  
an external type of integer for Postgress and even a LongNumber  
prototype which has a java datatype of Long, is still an integer in  
Postgress. Are postgress integers really longs?


I tend to use PG's int4 and int8 types to be sure and generally use  
int8 for PK/FK's to avoid grief as tables get large.


Same here.

Based on http://www.postgresql.org/docs/8.2/static/datatype- 
numeric.html I would think that bigint (8byte) would be a better  
external data type than integer (4 byte).


I guess this is where Kieran's solution of using ERXModel so you can  
override the ERPrototypes default of "integer" would fit in if you  
think you'll need keys > 2147483647. Two billion is a lot, but not a  
completely unreasonable quantity.


Dave




cheers.

___
Andrew Lindesay
www.lindesay.co.nz





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

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


Re: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread Andrew Lindesay

Hello David;

I don't use Postgresql, but I believe that the prototype "id" is the  
one to use for PKs and FKs. I see that there only seems to be an  
external type of integer for Postgress and even a LongNumber  
prototype which has a java datatype of Long, is still an integer in  
Postgress. Are postgress integers really longs?


I tend to use PG's int4 and int8 types to be sure and generally use  
int8 for PK/FK's to avoid grief as tables get large.


cheers.

___
Andrew Lindesay
www.lindesay.co.nz

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

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


Re: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread David Avendasora


On Jul 7, 2009, at 4:53 PM, Kieran Kelleher wrote:

 and if you want even more modern 'fanciness', you can turn on  
ERXModel as your eomodel class in Wonder, you can have custom  
prototypes of your own in other eomodel files and with the right  
naming convention (of the eomodel file) and using the same prototype  
attribute name, you "override" the built in prototypes with your own  
custom definitions. useful for the BigDecimal scales etc. :-;


There he goes again winking with his chin. I believe he _is_ insane. :-P



See ERXModel api (or source) for more details.

Regards, Kieran

On Jul 7, 2009, at 3:42 PM, Johann Werner wrote:



Am 07.07.2009 um 21:09 schrieb Scott M. Neal:



On Jun 30, 2009, at 5:43 PM, David Avendasora wrote:



On Jun 30, 2009, at 8:29 PM, Scott M. Neal wrote:

Well, if you're looking for excuses to "upgrade" things, maybe  
transition to using Prototypes. I'm sure the Postgress Prototypes  
in Wonder's ERPrototypes will all have the proper External  
Types. :-)


Wow, thank you Dave, that DOES make things substantially easier
(and less prone to error--sure enough, had a missing external type  
in

one of the entities).  All this modern fanciness, still getting used
to it...

Now my question is, for the Postgresql prototypes, which one
is recommended to use for primary keys?  Googling reveals some  
people
using long (called longNumber in prototypes), which is what I  
historically
used, while others are using varchar (but not consistent regarding  
size:

10? 100? 10,000,000?  :-))


Why don't you just choose the most obvious prototype: 'id'? Life  
can be so easy ;-)


jw




Thank you,

Scott


Otherwise, you should be able to just select one entity at a time  
and click the SQL button and see which one(s) generate the error.  
I see pretty clear error messages with this, that say exactly  
what external type is not recognized.


Dave


Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com






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

This email sent to kieran_li...@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/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com




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

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


Re: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread David Avendasora


On Jul 7, 2009, at 3:09 PM, Scott M. Neal wrote:



On Jun 30, 2009, at 5:43 PM, David Avendasora wrote:



On Jun 30, 2009, at 8:29 PM, Scott M. Neal wrote:

Well, if you're looking for excuses to "upgrade" things, maybe  
transition to using Prototypes. I'm sure the Postgress Prototypes  
in Wonder's ERPrototypes will all have the proper External Types. :-)


Wow, thank you Dave, that DOES make things substantially easier
(and less prone to error--sure enough, had a missing external type in
one of the entities).  All this modern fanciness, still getting used
to it...

Now my question is, for the Postgresql prototypes, which one
is recommended to use for primary keys?  Googling reveals some people
using long (called longNumber in prototypes), which is what I  
historically
used, while others are using varchar (but not consistent regarding  
size:

10? 100? 10,000,000?  :-))


I don't use Postgresql, but I believe that the prototype "id" is the  
one to use for PKs and FKs. I see that there only seems to be an  
external type of integer for Postgress and even a LongNumber prototype  
which has a java datatype of Long, is still an integer in Postgress.  
Are postgress integers really longs?


Dave



Thank you,

Scott


Otherwise, you should be able to just select one entity at a time  
and click the SQL button and see which one(s) generate the error. I  
see pretty clear error messages with this, that say exactly what  
external type is not recognized.


Dave


Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com











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

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


Re: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread Kieran Kelleher
 and if you want even more modern 'fanciness', you can turn on  
ERXModel as your eomodel class in Wonder, you can have custom  
prototypes of your own in other eomodel files and with the right  
naming convention (of the eomodel file) and using the same prototype  
attribute name, you "override" the built in prototypes with your own  
custom definitions. useful for the BigDecimal scales etc. :-;


See ERXModel api (or source) for more details.

Regards, Kieran

On Jul 7, 2009, at 3:42 PM, Johann Werner wrote:



Am 07.07.2009 um 21:09 schrieb Scott M. Neal:



On Jun 30, 2009, at 5:43 PM, David Avendasora wrote:



On Jun 30, 2009, at 8:29 PM, Scott M. Neal wrote:

Well, if you're looking for excuses to "upgrade" things, maybe  
transition to using Prototypes. I'm sure the Postgress Prototypes  
in Wonder's ERPrototypes will all have the proper External  
Types. :-)


Wow, thank you Dave, that DOES make things substantially easier
(and less prone to error--sure enough, had a missing external type in
one of the entities).  All this modern fanciness, still getting used
to it...

Now my question is, for the Postgresql prototypes, which one
is recommended to use for primary keys?  Googling reveals some people
using long (called longNumber in prototypes), which is what I  
historically
used, while others are using varchar (but not consistent regarding  
size:

10? 100? 10,000,000?  :-))


Why don't you just choose the most obvious prototype: 'id'? Life can  
be so easy ;-)


jw




Thank you,

Scott


Otherwise, you should be able to just select one entity at a time  
and click the SQL button and see which one(s) generate the error.  
I see pretty clear error messages with this, that say exactly what  
external type is not recognized.


Dave


Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com






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

This email sent to kieran_li...@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: How are your Eclipse workspaces organized?

2009-07-07 Thread Henrique Prange

Hey Mr. Atom,

Your Friend The Atom wrote:

How do you organize your eclipse workspace?

Do you have a workspace for each client?


I have only one workspace. I create working sets to organize projects. 
You can hide and show the working sets you are working on if needed.



Or for each project (app and frameworks in one)?


I usually create working sets for multi-module projects when I'm working 
on them. But that is not a rule. It is pretty easy and fast to create 
and reorganize your working sets. So, you can try and organize it the 
way you prefer.



Or are all your legacy apps which use WO5.3 in one workspace
and does that folder on disk contain the WO5.3 framework just like any 
other third-party framework?




I still have applications depending on WO 5.2.x, but I use only one 
workspace.



Are your WO5.3 frameworks in /Developer or somewhere else in /Library?



No. I use Maven to manage dependencies on my projects. All WO libraries 
are deployed into the local Maven repository (~/.m2/repository). The 
WebObjects version installed (if installed) doesn't interfere with my 
development process.


My goal is to have an environment (Leopard) where the default 
installation mostly remains untouched and the legacy apps do not 
interfere with 5.4 development.




That was one of my goals when I choose Maven to manage WO projects on my 
company. ;)


Cheers,

Henrique
___
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: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread Johann Werner


Am 07.07.2009 um 21:09 schrieb Scott M. Neal:



On Jun 30, 2009, at 5:43 PM, David Avendasora wrote:



On Jun 30, 2009, at 8:29 PM, Scott M. Neal wrote:

Well, if you're looking for excuses to "upgrade" things, maybe  
transition to using Prototypes. I'm sure the Postgress Prototypes  
in Wonder's ERPrototypes will all have the proper External Types. :-)


Wow, thank you Dave, that DOES make things substantially easier
(and less prone to error--sure enough, had a missing external type in
one of the entities).  All this modern fanciness, still getting used
to it...

Now my question is, for the Postgresql prototypes, which one
is recommended to use for primary keys?  Googling reveals some people
using long (called longNumber in prototypes), which is what I  
historically
used, while others are using varchar (but not consistent regarding  
size:

10? 100? 10,000,000?  :-))


Why don't you just choose the most obvious prototype: 'id'? Life can  
be so easy ;-)


jw




Thank you,

Scott


Otherwise, you should be able to just select one entity at a time  
and click the SQL button and see which one(s) generate the error. I  
see pretty clear error messages with this, that say exactly what  
external type is not recognized.


Dave


Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com








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: WOLips Entity Modeler SQL Generation and WO 5.4

2009-07-07 Thread Scott M. Neal


On Jun 30, 2009, at 5:43 PM, David Avendasora wrote:



On Jun 30, 2009, at 8:29 PM, Scott M. Neal wrote:

Well, if you're looking for excuses to "upgrade" things, maybe  
transition to using Prototypes. I'm sure the Postgress Prototypes in  
Wonder's ERPrototypes will all have the proper External Types. :-)


Wow, thank you Dave, that DOES make things substantially easier
(and less prone to error--sure enough, had a missing external type in
one of the entities).  All this modern fanciness, still getting used
to it...

Now my question is, for the Postgresql prototypes, which one
is recommended to use for primary keys?  Googling reveals some people
using long (called longNumber in prototypes), which is what I  
historically

used, while others are using varchar (but not consistent regarding size:
10? 100? 10,000,000?  :-))

Thank you,

Scott


Otherwise, you should be able to just select one entity at a time  
and click the SQL button and see which one(s) generate the error. I  
see pretty clear error messages with this, that say exactly what  
external type is not recognized.


Dave


Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com







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

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


Re: How are your Eclipse workspaces organized?

2009-07-07 Thread Your Friend The Atom
Sorry, hit send too soon.
Thanks for your help.

On Fri, Jun 26, 2009 at 1:37 PM, Ricardo J. Parada  wrote:

>
> I have a workspace for every branch I'm working on.  So for example I have
> a *prod*workspace that has everything checked out from the branch that is in 
> production.Then
> I have the *trunk* workspace which checks out everything from trunk in our
> subversion repository.  I usually work on that when adding new features and
> working on the next release of our applications.
>
> And then I have an *mpvwonder* workspace.  This corresponds to our
> subversion branch created from trunk.  And I'm working on converting all our
> projects to Wonder.  This will be merged into trunk eventually.
>
> But basically, each of these workspaces (prod, trunk, mpvwonder) has all of
> our projects:  frameworks, web apps and something we call agents (they are
> like webapps but without a user interface and they perform back end tasks
> such as generating reports periodically to name just one of many many tasks
> they perform).
>
> I'm currently using WO 5.4.3 only.  But eventually I plan on playing with a
> newer version when it comes out and for that I'll just follow David's
> excellent tutorial:
>
>
> http://wiki.objectstyle.org/confluence/display/WOL/Using+WOLips+With+Multiple+Versions+of+WebObjects
>
>
> I also have Wonder source imported into each Eclipse workspace so that I
> can work with Wonder's source and for enhanced debugging.
>
> In subversion I use the svn:externals property to check out the right
> version of Wonder that we are doing QA against.  You can read about
> svn:externals in the svn-book.  Google for it if you are not familiar with
> it.
>
> :-)
>
>
> On Jun 26, 2009, at 4:09 PM, Your Friend The Atom wrote:
>
> How do you organize your eclipse workspace?
>
> Do you have a workspace for each client?
> Or for each project (app and frameworks in one)?
> Or are all your legacy apps which use WO5.3 in one workspace
> and does that folder on disk contain the WO5.3 framework just like any
> other third-party framework?
>
> Are your WO5.3 frameworks in /Developer or somewhere else in /Library?
>
> My goal is to have an environment (Leopard) where the default installation
> mostly remains untouched and the legacy apps do not interfere with 5.4
> development.
>
> Thanks.
> ___
> 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/rparada%40mac.com
>
> This email sent to rpar...@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: How are your Eclipse workspaces organized?

2009-07-07 Thread Your Friend The Atom
On Fri, Jun 26, 2009 at 1:37 PM, Ricardo J. Parada  wrote:

>
> I have a workspace for every branch I'm working on.  So for example I have
> a *prod*workspace that has everything checked out from the branch that is in 
> production.Then
> I have the *trunk* workspace which checks out everything from trunk in our
> subversion repository.  I usually work on that when adding new features and
> working on the next release of our applications.
>

This sound like a good idea.  I might adopt that.


> And then I have an *mpvwonder* workspace.  This corresponds to our
> subversion branch created from trunk.  And I'm working on converting all our
> projects to Wonder.  This will be merged into trunk eventually.
>

I'm between platforms right now and need to maintain old projects in
WO5.3/Xcode, WO5.3/Eclipse and get ready fix them all up to work in Snow
Leopard.

Seems like migrating everything to WO5.3/Eclipse into one workspace and
build embedded apps. I can then migrate the projects one by one to a
WO5.4+Wonder workspace.
 ___
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: WO encoding

2009-07-07 Thread JR Ruggentaler


On Jul 7, 2009, at 11:16 AM, Ricardo J. Parada wrote:



Have you tried a little Wonder app to see if you see the problem  
there as well?

Yes, I works fine in my Wonder test app.




On Jul 7, 2009, at 12:11 PM, JR Ruggentaler wrote:

When users copy text from Microsoft apps like Word into our WO  
application the WO app "garbles" some characters. For example:


From: "“`Hello World’”"
To: "�`Hello World��"

My eclipse project properties file encoding is set to UTF-8 and  
the .woo files are also set to UTF-8 (encoding = "UTF-8";). I also  
added WOMessage.setDefaultEncoding("UTF-8"); to my app constructor.  
Other non WO web apps like Twiki work fine when pasting from MS  
Word. Any idea how to make WO encode/convert the Windows characters  
to UTF-8? This happens in all text input fields.


JR
___
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/rparada%40mac.com

This email sent to rpar...@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: WO encoding

2009-07-07 Thread Ricardo J. Parada


Have you tried a little Wonder app to see if you see the problem there  
as well?




On Jul 7, 2009, at 12:11 PM, JR Ruggentaler wrote:

When users copy text from Microsoft apps like Word into our WO  
application the WO app "garbles" some characters. For example:


From: "“`Hello World’”"
To: "�`Hello World��"

My eclipse project properties file encoding is set to UTF-8 and  
the .woo files are also set to UTF-8 (encoding = "UTF-8";). I also  
added WOMessage.setDefaultEncoding("UTF-8"); to my app constructor.  
Other non WO web apps like Twiki work fine when pasting from MS  
Word. Any idea how to make WO encode/convert the Windows characters  
to UTF-8? This happens in all text input fields.


JR
___
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/rparada 
%40mac.com


This email sent to rpar...@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

WO encoding

2009-07-07 Thread JR Ruggentaler
When users copy text from Microsoft apps like Word into our WO  
application the WO app "garbles" some characters. For example:


From: "“`Hello World’”"
To: "�`Hello World��"

My eclipse project properties file encoding is set to UTF-8 and  
the .woo files are also set to UTF-8 (encoding = "UTF-8";). I also  
added WOMessage.setDefaultEncoding("UTF-8"); to my app constructor.  
Other non WO web apps like Twiki work fine when pasting from MS Word.  
Any idea how to make WO encode/convert the Windows characters to  
UTF-8? This happens in all text input fields.


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

WOXMLCoder mapping

2009-07-07 Thread Robert B . Hanviriyapunt

I have a simple object I need to encode:

public class Foo {
public String[] numbers = new String[] { "one", "two", "three" };
public String[] letters = new String[] { "alpha", "beta" };
}

into:



one
two
three


alpha
beta



Can this be done with WOXMLCoder.coderWithMapping?  I tried and have  
not succeeded.  I used wrapper methods to turn String[] into  
NSDictionary containing an NSArray.  It did not work.  It seems that  
the coder does not register two entries for the class NSDictionary.


Please help.

= 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


Loggin what user does + concurrent access- best practices

2009-07-07 Thread Gustavo Pizano
Well, Im gonna leave aside a little bit the problems Im having with the UI
and focus more in the backend.

For this aplication I need to "key and eye" on what the user does, I have in
my DB a table users with a relationship to translations table. like this.

USERS < >>TRANSFROMBASE.

So each user will have its own Session, and each time the User makes a
translation I will add relationships and so on.
But there is more than one Translator, of course I can just tell the
translators what they should translate, but of course they can translate
even more that what I tell them to, in this case 2 translators can at the
same time try to translate one word.

In this senario, what will be the best to do?

I hadn't read much about locking stuff, but I have seen that I can lock an
object of a edditing context, whihc I have in mind wil lbe the
defaulteditingcontext, I dunno if this will generate me a problem.

Then later I can with the admin tool that Im implemnting also, can check
per/translator what thye have done and sign the paycheck.

few questions, should each translator have its own app instance, or thye
must  share the same?. It wasn't clear when reading the deployiment guide
last week :S, i know i suck.

when a translator has selected a word to translate then I should lock that
object immediatly until he/she save the changes, isn't?

what other properties or config should I have in order to make this thing
happen?


Thanks

G.
 ___
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

problem with AjaxModalContainer, needing help.

2009-07-07 Thread Gustavo Pizano
Hello.

ok this is the senario, sory if its little bit long,

I have a AjaxSelectionList,  that each time I click on a item it updates an
UpdaterContainer id "detailInfo", the updatecontainer has a button ta pops
up an AjaxModalContainer. I have configured the container to have inside a
WORepetition which is inside another AjaxUpdateContainer id =
tansUpdateContainer, also I have a wotext id = "newText" and a
AjaxsubmitButton that once I clcik it will add to the worepetition the
phrase I just typed in the wotext update the container. that part its
working perfect.

now I close the modalContainer and select another element from the
AjaxSelectionList, again the refres the container with id="detailInfo", when
I click the button that popus the ModalContainer this one will keep in the
wotext the last infor I typed in before,  I tought it was because the
binding value will still have the last info, so I dunno how to make the
close button delete the value of that binding, or should I put another
AjaxButton which will perform an action delete the data and close the
ModalContainer insted?

I tryed using the iBox.init() which uas in the example but
then I got an error in safari console that it couldn't find variable iBox.
I then imported the ibox.js like this. , the error seemed to disapear, but it seems it does
nothing because when I try to launch another modalcontainer form another
item in the first list. It showsin fact  the container but the dark
background that happens at the begining is missing and also the last data I
typed in the wotext appears in the container.

I decided then to place the ibox.init() in a onComplete binding from the
AjaxSubmitButton that its inside the first AjaxSelectionList which  updates
the Container with id ="detailInfo", placed a breakpoint into the ibox.js
and try and in fact the app its stoping right there, but the Modalcontainer
its not being re-initialized. ,,.. Im out of ideas here.

any clue, ideas suggestions will be highly appreceated it.


Thanks\

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

including an image in a mail component

2009-07-07 Thread Johan Henselmans

i would like to send an image with a mail component.

I am wondering how I should do that.

I first tried to create a image and then to include this as a WOImage  
in a HTML component, but that will give me a src pointer to the file  
with a URL or filename. (it also included FRAMEWORK_NOT_FOUND in the  
path)


Then I created an attachment via:


=
File file = new File(mySess().orderBarcodeFileName());
	ERMailAttachment barcode = new  
ERMailFileAttachment("barcode.jpg",mySess().orderEntranceCode(), file);


mail.newMail();
mail.setFromAddress(EmailFrom);
mail.setToAddresses(mailTos);
	mail.setSubject("Confirmation from   
"+mySess().currentProgramSetting().settingsOrganisationName());

mail.addInlineAttachment(barcode);
mail.sendMail();
=

but that creates (in Mail.app) an image that one can only see via  
quicklook, or Preview.


replacing
=
mail.addInlineAttachment(barcode)
=

with
=
mail.addAttachment(barcode);
=

does show the image direct in the message, so one can print the image  
direct in the mail message (which is the purpose as it is supposed to  
be an electronic ticket)


I would like to add some comments to the message, and that would mean  
(I suppose) to add another attachment to the message with the comments.


It would be a lot easier if I could just create a WOComponent that  
would have the image, the extra comments etc.


Does anybody know if and how I could accomplish that?

Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159



___
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