Re: How do I get EO's instantiated with dynamic class? Sorry for the spam

2007-08-17 Thread Riccardo De Menna
I apologize for the unwanted spam on the list. For some reason the message I wrote got stuck in the outbox and was resent every time I launched the app. I manually removed it via terminal... Again sorry, Ric On 17/ago/07, at 08:38, Riccardo De Menna wrote: Hi all, I was wondering if anyon

Re: WebSphere connection pool and EOModeler

2007-08-17 Thread Luís Eugênio Pacheco
Andrew, Thank you for you reply. We had already got figured out this setting, the DataSourceJndiName. We are still getting trouble to make it work. We've already hacked JDBCContext and some other fixes but there's work left to make it play. We think we're getting close and when the problem is g

Re: Looking for an update foo set bar = bar + 1 solution for WO

2007-08-17 Thread Pierre Bernard
Hi Chuck! You might want to simulate this using an attribute with write format that contains SQL to do this. E.g. something along the lines of "COLUMN + %V" In your code you would set the special attribute's value to the increment you want. On the next commit it would do the stuff. The pr

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Guido Neitzer
On 17.08.2007, at 00:38, Riccardo De Menna wrote: I was wondering if anyone could point me out in the right direction on this problem of mine. I'm writing a domain registration app and I have a model that holds an entity "domain". It's generic in nature as it will accomodate many different do

Re: Using WO components inside HTML tags

2007-08-17 Thread Steven Mark McCraw
Another possibility, if you use WOOgnl, is to add the following to your properties file: ognl.parseStandardTags=true Now you can do things like http://wiki.objectstyle.org/confluence/display/WOL/Modern+Binding+Styles http://wiki.objectstyle.org/confluence/display/WO/ Programming__WebObject

Re: Using WO components inside HTML tags

2007-08-17 Thread Guido Neitzer
On 17.08.2007, at 09:18, Mike Schrag wrote: If you use Wonder and have the appropriate parser settings, you can also do: whatever Just as a hint: The parser is in WOOgnl. You have to set some Properties to use it. cug ___ Do not post admin req

Re: Using WO components inside HTML tags

2007-08-17 Thread Mike Schrag
If you use Wonder and have the appropriate parser settings, you can also do: whatever or "$couleur">whatever ms On Aug 17, 2007, at 11:11 AM, Asa Hardcastle wrote: Hi Pascal, something like this: IN HTML: stuff in here IN WOD: MyCoolTD: WOGenericContainer { elementName = "td

Using WO components inside HTML tags

2007-08-17 Thread Pascal Robert
Ok, I know it's a basic question, but what's the best way to include a WO component (in that case, a WOString) inside a HTML page ? I need to change the background color of a with the value of a WOString, something like this : I know it's bad pratice, so what's the fix ? _

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Riccardo De Menna
Hi Guido, I might have badly explained my issue. I have successfully used EO inheritance in another context, but my aim here is exactly the opposite. I don't want to model my DB with all sort of empty tables for every possible domain ending (there are more than 200 different country codes

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread John Huss
I think you want single table inheritance then. On 8/17/07, Riccardo De Menna <[EMAIL PROTECTED]> wrote: > > Hi Guido, > > I might have badly explained my issue. I have successfully used EO > inheritance in another context, but my aim here is exactly the > opposite. I don't want to model my DB wit

Re: Using WO components inside HTML tags

2007-08-17 Thread Kieran Kelleher
Use WOGenericContainer of type "td" and then add a bgcolor binding to it. That is the "preferred way" AFAIK to avoid tag within a tag. This, I believe, is the primary "raison d'être" for WOGenericElement and WOGenericContainer. HTH, Kieran On Aug 17, 2007, at 10:58 AM, Pascal Robert wrote:

Re: Using WO components inside HTML tags

2007-08-17 Thread John Huss
You need to use WOGenericContainer: http://www.w3.org/TR/html4/loose.dtd";> Cell GenericContainer1: WOGenericContainer { elementName = "td"; bgColor = "red"; } ___ Do not

Re: Using WO components inside HTML tags

2007-08-17 Thread Asa Hardcastle
Hi Pascal, something like this: IN HTML: stuff in here IN WOD: MyCoolTD: WOGenericContainer { elementName = "td"; bgcolor = couleur; } later, asa On Aug 17, 2007, at 10:58 AM, Pascal Robert wrote: Ok, I know it's a basic question, but what's the best way to include a

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Guido Neitzer
On 17.08.2007, at 09:46, Riccardo De Menna wrote: I'm perfectly fine with one single table holding domain info... I simply want to fetch from it and receive specific subclasses of the main "domain" class. It's called "Single Table Inheritance". Create "Domain" Entity, make it static. Have

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Kieran Kelleher
I prefer using the Strategy Design Pattern instead of inheritance whenever possible .. using the Strategy Design Pattern will result in one Domain entity and the internal logic/behaviours can be implemented by a single interface or multiple interfaces allowing you a flexible logic build

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Guido Neitzer
On 17.08.2007, at 10:20, Kieran Kelleher wrote: I prefer using the Strategy Design Pattern instead of inheritance whenever possible Actually this really makes sense here, as the domain objects differ normally not in different attributes (which would make it a candiate for inheritance) but

javaeoutil question

2007-08-17 Thread Randy Wigginton
Doesn't look like javaeoutil gets much usage these days, but I'd like to copy data from a QA db into the staging DB. When I try to use it to generate a plist, it *looks* like the data is there... but when I try to generate a script (just as a double check), I get output that looks like:

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Kieran Kelleher
And even if there are minor attribute differences, you can just ignore them (leave as null) for the variations of the entity that does not require those attributes. The bottom line is to achieve maintainable and flexible code. The behaviors themselves can be represented by simple integer

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Riccardo De Menna
Oh thank you Guido. I had used restricting qualifiers before in a horizontal inheritance setup when I needed non-abstract superclasses but I had not realized that in fact a single table inheritance was exactly what I was asking for. I used to skip over that kind of inheritance back when I

Re: Looking for an update foo set bar = bar + 1 solution for WO

2007-08-17 Thread Randy Wigginton
I've implemented this with raw SQL; I could not find an easier way. In particular, I could not find any manner in which WO helped with this use case. If you happen to be using MySQL, the last_insert_id() function is your friend. If Oracle, use the "returns" sql.

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Kieran Kelleher
I just sent it before I saw this email get the Head First Design Patterns book on Amazon .. easy to digest and will make you a better java developer and software architect :-) http://homepage.mac.com/kelleherk/iblog/C981504028/E1384471984/ index.html Cheers, Kieran On Aug 17, 200

Re: Looking for an update foo set bar = bar + 1 solution for WO

2007-08-17 Thread Chuck Hill
Hi Pierre, On Aug 17, 2007, at 5:38 AM, Pierre Bernard wrote: Hi Chuck! You might want to simulate this using an attribute with write format that contains SQL to do this. E.g. something along the lines of "COLUMN + %V" In your code you would set the special attribute's value to the incre

Re: Looking for an update foo set bar = bar + 1 solution for WO

2007-08-17 Thread Sam Barnum
You might consider using a trigger. I personally have never used them, but this sounds like a reasonable place to do so. On Aug 17, 2007, at 10:36 AM, Chuck Hill wrote: Hi Pierre, On Aug 17, 2007, at 5:38 AM, Pierre Bernard wrote: Hi Chuck! You might want to simulate this using an attrib

Re: Looking for an update foo set bar = bar + 1 solution for WO

2007-08-17 Thread Chuck Hill
This is an appropriate place for a trigger, however... There is a need for this app to be database agnostic and I would prefer not having to write triggers for multiple databases. I have revisited the cost to query for this information. While it is costly on a per-object basis, it is very

Tutorial Deployment

2007-08-17 Thread David Holt
Hi Janine, Just a heads up - when I deployed your Tutorial application (for real) I got the error "can't connect to window server - not enough permissions" because the ImageResizer.java class accesses AWT. I followed the directions at

Thoughts on concurrency

2007-08-17 Thread Miguel Arroz
Hi! Just to let you know that I spent some time organizing my head on all this topics I have discussed here lately, and wrote some stuff about them. If you find it interesting, here they are: terminalapp.net/recovering-from-optimistic-locking-exceptions/>. Thanks for everyone who helped

Re: How do I get EO's instantiated with dynamic class?

2007-08-17 Thread Scott Peterson
> > About the strategy design pattern route suggested by Kieran... yes > > please... send me some links.. I'm eager to look into it. A sort of > > plugin scenario would also fit perfectly well and I would enjoy > > some new design patterns to feed on. Wikipedia has a good overview of most design p