ant build problem

2009-03-08 Thread Dom
Hello all, I'm not a regular here, but have been checking out wo for a  
while now. Yesterday, I upgraded to eclipse 3.4.x and did a fresh  
install of wolips. I ran into the known problem with wolips.properties  
initially, but manually creating the file resolved that.


However, I'm not able to build from the shell on a server (Cent5) with  
ant; invoking any target besides clean result in this error:


build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet  
doesn't support the eclipse attribute.


So, I thought maybe it's a version thing due to the wolips upgrade,  
whatever. So i manually upgraded my woproject.jar like I had to do  
before and updated it on my server, then got this:


I'm seeing this error: java.lang.NoSuchMethodError:  
org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File;


Building within eclipse works fine, even though my project is set to  
use ant. The above happens when building from the shell on a remote  
host or even my local host.  When I build locally, I'm getting this  
error:


...build.xml:207: frameworks doesn't support the eclipse attribute

this seems pretty similar to the original error on the server.

Hopefully this is a really simple thing; please forgive me if so. I'm  
hoping to be able to build and deploy a war to tomcat; I was hoping  
this new version of wolips would make that much more consistent as  
well, but can't get past this build problem. Thanks to you.


Dom
___
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: [Wonder-disc] OpenBase / boolean / ERPrototypes

2009-03-08 Thread Mike Schrag
boolean in erp = varchar, not boolean, intBoolean in erp = number,  
flag = probably what OB is calling boolean, but you'd have to  
check if the OB variant of erp declares this properly.


ms

On Mar 8, 2009, at 3:06 AM, Ricardo J. Parada wrote:


Hi All,

There seems to be something wrong with booleans when using OpenBase  
and ERPrototypes.


In OpenBaseManager the column type for my column says boolean:

Picture 2.png

In openisql (command line) I can query like this:

select count(*) from cliente where suspendido = true

of like this:

select count(*) from cliente where suspendido = 1

In entity modeler, if I configure my attribute using the boolean  
prototype from ERPrototypes as shown below, then the queries don't  
return the right number of rows.  The update statements generated by  
EOF don't work either (even though they look right).


If I model my attribute as an integer then the queries work okay and  
the update statements issued by EOF work too.  By I don't like  
having an Integer in my accessor methods in my EO for a boolean  
column.  I want to use boolean.


Looking at the screenshot below, does this look like the boolean  
prototype is setting the fields correctly for a boolean column in  
OpenBase? Anybody wants to guess?  Anybody using booleans in  
OpenBase and ERPrototypes?



Picture 1.png

--
Open Source Business Conference (OSBC), March 24-25, 2009, San  
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the  
Enterprise
-Strategies to boost innovation and cut costs with open source  
participation
-Receive a $600 discount off the registration fee with the source  
code: SFAD

http://p.sf.net/sfu/XcvMzF8H___
Wonder-disc mailing list
wonder-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wonder-disc


 ___
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: ant build problem

2009-03-08 Thread Mike Schrag
build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet  
doesn't support the eclipse attribute.

old woproject.jar

I'm seeing this error: java.lang.NoSuchMethodError:  
org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File;

old ant

upgrade to ant 1.7

ms

___
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: ant build problem

2009-03-08 Thread Dom

Thank you Mike,

Where should I put the woproject.jar on my local machine assuming osx?  
Does it matter? I currently have it in my /Library/WebObjects/lib  
directory, and that was more in an effort to resolve this while  
messing around yesterday. I'm not really sure how it worked before;-)


Thanks again.
On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote:

build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet  
doesn't support the eclipse attribute.

old woproject.jar

I'm seeing this error: java.lang.NoSuchMethodError:  
org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File;

old ant

upgrade to ant 1.7

ms

___
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/dominant_seventh%40me.com

This email sent to dominant_seve...@me.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: LDAP and EOF

2009-03-08 Thread Clayton Leitch
I think the problem here is that the LDAP server should not allow you  
to print the passwords.  To allow such an action would violate all  
security rules.

On Mar 6, 2009, at 12:41 AM, Mitchell Smith wrote:


Hi,

I am trying to write a web based tool which reads and writes to our  
organization's OpenLDAP directory containing customer information.


I configured up a connection in entity modeler and reverse  
engineered the schema which for the most part seemed to work pretty  
well.


I can view a record for a customer given their CN however the  
userPassword field from the core.schema is not displayed.


If I have a look at how that attribute was reverse engineered I see  
that it has been assigned an external type of octet string which  
matches what is specified in the OpenLDAP schema.  The java type is  
NSData so I tried changing it to a String.


Unfortunately I still continue to get null when trying to print the  
userPassword attribute, even though I can see that the value is not  
null when I retrieve the same record using a little Perl script  
which uses the same credentials to access the directory.


Has anyone encountered this particular issue before, and is there a  
work around?


I am thinking that the issue is probably in the way the schema was  
reverse engineered, but I'm not sure what to tweak to get it to  
reveal that value.


Any comments or suggestions would be greatly appreciated.

Thanks,

Mitch

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

This email sent to captch...@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: ant build problem

2009-03-08 Thread Chuck Hill


On Mar 8, 2009, at 8:16 AM, Dom wrote:


Thank you Mike,

Where should I put the woproject.jar on my local machine assuming  
osx? Does it matter? I currently have it in my /Library/WebObjects/ 
lib directory, and that was more in an effort to resolve this while  
messing around yesterday. I'm not really sure how it worked before;-)


On my 10.5 machine, it would go in /usr/share/ant/lib
You need to figure out where ant is installed and put that jar in the  
Ant lib directory.  Or use ant -lib path/to/woproject.jar


Chuck





Thanks again.
On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote:

build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet  
doesn't support the eclipse attribute.

old woproject.jar

I'm seeing this error: java.lang.NoSuchMethodError:  
org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File;

old ant

upgrade to ant 1.7

ms

___
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/dominant_seventh%40me.com

This email sent to dominant_seve...@me.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/archive%40mail-archive.com

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


Re: escaping in HTML

2009-03-08 Thread Theodore Petrosky

yes of course... but I know that i need to replace the \n for br/. but I 
don't see how. 

I seem to recall an example method.

inside my HTML

webobject name = NotesRowRepetition
 tr align = left
tdwo:WOString value = $currentNote.noteText //td
/tr
/webobject

and the WOD:

NotesRowRepetition: WORepetition {  
list = notesDG.displayedObjects;
item = currentNote; 
}

so that currentNote is from a 'to-many' relationship. I need to escape the 
currentNote.noteText for \n

I just don't see how.


Ted
--- On Fri, 3/6/09, Miguel Arroz ar...@guiamac.com wrote:

 From: Miguel Arroz ar...@guiamac.com
 Subject: Re: escaping in HTML
 To: John Huss johnth...@gmail.com
 Cc: Theodore Petrosky tedp...@yahoo.com, webobjects-dev@lists.apple.com
 Date: Friday, March 6, 2009, 11:56 AM
 Hi!
   That shouldn't be needed in text
 areas... my guess is some kind of line feed representation
 problem. Mac (classic), Windows and UNIX all use different
 representations for line feeds. I don't recall what the
 browser uses, but it's probably different than what you
 have in the DB.
   Yours
 Miguel Arroz
 On 2009/03/06, at 16:24, John Huss
 wrote:
 How about using
 string.replace(\n, br/)
 
 John
 
 On Fri, Mar 6, 2009 at 10:09 AM,
 Theodore Petrosky tedp...@yahoo.com
 wrote:
  
  I know I saw an example somewhere... I just can't seem
 to find it again.
  
  I have text from my database that has returns (line
 feeds). If I just bind the text to a WOText area, the CRs
 and LFs are ignored.
  
  Can someone point me in the right direction.
  
  I need to convert the CR to BR /...
  
  Ted
  
  





 ___
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 Installer CD for Windows

2009-03-08 Thread Don Lindsay

Hello;

It can install 5.4, I just have to enable the drop down, I am not sure  
if the WOInstaller has been updated to install all the way up to  
5.4.3.   You may have to patch to that level manually.


Don
On Mar 7, 2009, at 9:41 AM, Frank Stock wrote:

This is working now, but only installs 5.3.3. Is there a way to  
change this 5.4.3.



Op 6-mrt-09, om 22:38 heeft John Ours het volgende geschreven:



On Mar 6, 2009, at 4:26 PM, Q wrote:



I think the problem you are having is that you cannot use -cp and - 
jar at the same time.




Q is correct.  You want to use something like this (which works for  
me):


java -cp wo.jar;woinst.jar run

That is start java with wo and woinst on the class path, and  
execute the class called run


Have fun!

John



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


This email sent to pccd...@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: escaping in HTML

2009-03-08 Thread Chuck Hill


On Mar 8, 2009, at 11:59 AM, Theodore Petrosky wrote:



yes of course... but I know that i need to replace the \n for br/ 
. but I don't see how.


Well... you DID say If I just bind the text to a WOText area.  Now  
you show a WOString.  WOText and WOString are very, very different.   
Being precise in your questions will yield more exact answers more  
quickly.




I seem to recall an example method.

inside my HTML

webobject name = NotesRowRepetition
tr align = left
tdwo:WOString value = $currentNote.noteText //td
/tr
/webobject

and the WOD:

NotesRowRepetition: WORepetition {  
list = notesDG.displayedObjects;
item = currentNote; 
}

so that currentNote is from a 'to-many' relationship. I need to  
escape the currentNote.noteText for \n


I just don't see how.


java.text.Format.  Get familiar with it, it is a very useful tool.  I  
covered this in my Best Practices session at WOWODC 08.


Here is a simple example


/**
 * Converts \n to br/ on output
 */
public class HTMLLineBreakReformatter extends java.text.Format {


public StringBuffer format(Object object, StringBuffer buffer,  
FieldPosition position) {

return buffer.append(((String)object).replaceAll(\n, br/));
}

}

Create an instance in your page and use the formatter binding of  
WOString.



Chuck


--- On Fri, 3/6/09, Miguel Arroz ar...@guiamac.com wrote:


From: Miguel Arroz ar...@guiamac.com
Subject: Re: escaping in HTML
To: John Huss johnth...@gmail.com
Cc: Theodore Petrosky tedp...@yahoo.com, webobjects-dev@lists.apple.com
Date: Friday, March 6, 2009, 11:56 AM
Hi!
  That shouldn't be needed in text
areas... my guess is some kind of line feed representation
problem. Mac (classic), Windows and UNIX all use different
representations for line feeds. I don't recall what the
browser uses, but it's probably different than what you
have in the DB.
  Yours
Miguel Arroz
On 2009/03/06, at 16:24, John Huss
wrote:
How about using
string.replace(\n, br/)

John

On Fri, Mar 6, 2009 at 10:09 AM,
Theodore Petrosky tedp...@yahoo.com
wrote:

I know I saw an example somewhere... I just can't seem
to find it again.

I have text from my database that has returns (line
feeds). If I just bind the text to a WOText area, the CRs
and LFs are ignored.

Can someone point me in the right direction.

I need to convert the CR to BR /...

Ted








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

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


Re: escaping in HTML

2009-03-08 Thread Andrew Lindesay

Hello Theodore;

I use a custom formatter for this.

cheers.

yes of course... but I know that i need to replace the \n for br/ 
. but I don't see how.

I seem to recall an example method.


___
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: WebObjects Installer CD for Windows

2009-03-08 Thread Pascal Robert

Yup, WOInstaller can install 5.4.3.


Hello;

It can install 5.4, I just have to enable the drop down, I am not  
sure if the WOInstaller has been updated to install all the way up  
to 5.4.3.   You may have to patch to that level manually.


Don
On Mar 7, 2009, at 9:41 AM, Frank Stock wrote:

This is working now, but only installs 5.3.3. Is there a way to  
change this 5.4.3.



Op 6-mrt-09, om 22:38 heeft John Ours het volgende geschreven:



On Mar 6, 2009, at 4:26 PM, Q wrote:



I think the problem you are having is that you cannot use -cp and  
-jar at the same time.




Q is correct.  You want to use something like this (which works  
for me):


java -cp wo.jar;woinst.jar run

That is start java with wo and woinst on the class path, and  
execute the class called run


Have fun!

John



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

This email sent to pccd...@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/probert%40macti.ca

This email sent to prob...@macti.ca



---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

___
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 Installer CD for Windows

2009-03-08 Thread Q

WOinstaller will install 5.3.3 or 5.4.3

On 09/03/2009, at 5:20 AM, Don Lindsay wrote:


Hello;

It can install 5.4, I just have to enable the drop down, I am not  
sure if the WOInstaller has been updated to install all the way up  
to 5.4.3.   You may have to patch to that level manually.


Don
On Mar 7, 2009, at 9:41 AM, Frank Stock wrote:

This is working now, but only installs 5.3.3. Is there a way to  
change this 5.4.3.



Op 6-mrt-09, om 22:38 heeft John Ours het volgende geschreven:



On Mar 6, 2009, at 4:26 PM, Q wrote:



I think the problem you are having is that you cannot use -cp and  
-jar at the same time.




Q is correct.  You want to use something like this (which works  
for me):


java -cp wo.jar;woinst.jar run

That is start java with wo and woinst on the class path, and  
execute the class called run


Have fun!

John



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

This email sent to pccd...@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/qdolan%40gmail.com

This email sent to qdo...@gmail.com




--
Seeya...Q

Quinton Dolan - qdo...@gmail.com
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



___
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: LDAP and EOF

2009-03-08 Thread Q


On 09/03/2009, at 2:44 AM, Clayton Leitch wrote:

I think the problem here is that the LDAP server should not allow  
you to print the passwords.  To allow such an action would violate  
all security rules.


That all depends on your security requirements. If you want to use  
LDAP to do CHAP or any other sort of challenge response authentication  
you need access to the unencrypted version of the password.



On Mar 6, 2009, at 12:41 AM, Mitchell Smith wrote:


Hi,

I am trying to write a web based tool which reads and writes to our  
organization's OpenLDAP directory containing customer information.


I configured up a connection in entity modeler and reverse  
engineered the schema which for the most part seemed to work pretty  
well.


I can view a record for a customer given their CN however the  
userPassword field from the core.schema is not displayed.


If I have a look at how that attribute was reverse engineered I see  
that it has been assigned an external type of octet string which  
matches what is specified in the OpenLDAP schema.  The java type is  
NSData so I tried changing it to a String.


Unfortunately I still continue to get null when trying to print the  
userPassword attribute, even though I can see that the value is not  
null when I retrieve the same record using a little Perl script  
which uses the same credentials to access the directory.


Has anyone encountered this particular issue before, and is there a  
work around?


I am thinking that the issue is probably in the way the schema was  
reverse engineered, but I'm not sure what to tweak to get it to  
reveal that value.


Any comments or suggestions would be greatly appreciated.

Thanks,

Mitch

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

This email sent to captch...@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/qdolan%40gmail.com

This email sent to qdo...@gmail.com




--
Seeya...Q

Quinton Dolan - qdo...@gmail.com
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



 ___
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: [Wonder-disc] OpenBase / boolean / ERPrototypes

2009-03-08 Thread Ricardo J. Parada

Hi Mike,

Not sure I understood what you mean by flag.  :-)

Anyways, here's the boolean protototype from ERPrototypes as defined  
in EOJDBCOpenBasePrototypes.plist:


{
adaptorValueConversionMethodName = toString;
columnName = ;
externalType = varchar;
factoryMethodArgumentType =  
EOFactoryMethodArgumentIsNSString;

name = boolean;
valueClassName = java.lang.Boolean;
valueFactoryMethodName = valueOf;
valueType = S;
width = 5;
},

and the intBoolean prototype is setup as follows:

{
adaptorValueConversionMethodName = toString;
columnName = ;
externalType = bool;
factoryMethodArgumentType =  
EOFactoryMethodArgumentIsNSString;

name = intBoolean;
valueClassName = NSNumber;
valueFactoryMethodName = valueOf;
valueType = c;
},

I tried both and neither one works for me.  Anybody out there using  
OpenBase 10.0.11 with and boolean properties in your columns and EOs?



I've been trying all kinds of things to get these booleans to work...   
And I just thought of one which might work.  I'll change the type in  
openbase for those columns back to integer type.  Then I'll use the  
intBoolean prototype from ERPrototypes.  I assume that's what the  
intBoolean prototype is for: to have a boolean in your EO stored as an  
integer in the database.  Right?





On Mar 8, 2009, at 10:20 AM, Mike Schrag wrote:

boolean in erp = varchar, not boolean, intBoolean in erp =  
number, flag = probably what OB is calling boolean, but you'd  
have to check if the OB variant of erp declares this properly.


ms

On Mar 8, 2009, at 3:06 AM, Ricardo J. Parada wrote:


Hi All,

There seems to be something wrong with booleans when using OpenBase  
and ERPrototypes.


In OpenBaseManager the column type for my column says boolean:

Picture 2.png

In openisql (command line) I can query like this:

select count(*) from cliente where suspendido = true

of like this:

select count(*) from cliente where suspendido = 1

In entity modeler, if I configure my attribute using the boolean  
prototype from ERPrototypes as shown below, then the queries don't  
return the right number of rows.  The update statements generated  
by EOF don't work either (even though they look right).


If I model my attribute as an integer then the queries work okay  
and the update statements issued by EOF work too.  By I don't like  
having an Integer in my accessor methods in my EO for a boolean  
column.  I want to use boolean.


Looking at the screenshot below, does this look like the boolean  
prototype is setting the fields correctly for a boolean column in  
OpenBase? Anybody wants to guess?  Anybody using booleans in  
OpenBase and ERPrototypes?



Picture 1.png

--
Open Source Business Conference (OSBC), March 24-25, 2009, San  
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the  
Enterprise
-Strategies to boost innovation and cut costs with open source  
participation
-Receive a $600 discount off the registration fee with the source  
code: SFAD

http://p.sf.net/sfu/XcvMzF8H___
Wonder-disc mailing list
wonder-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wonder-disc


--
Open Source Business Conference (OSBC), March 24-25, 2009, San  
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the  
Enterprise
-Strategies to boost innovation and cut costs with open source  
participation
-Receive a $600 discount off the registration fee with the source  
code: SFAD

http://p.sf.net/sfu/XcvMzF8H___
Wonder-disc mailing list
wonder-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wonder-disc


 ___
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: escaping in HTML

2009-03-08 Thread Theodore Petrosky

thanks... I purchased the WOWODC 08 and I reviewing the sessions.

Ted

--- On Sun, 3/8/09, Chuck Hill ch...@global-village.net wrote:

 From: Chuck Hill ch...@global-village.net
 Subject: Re: escaping in HTML
 To: Theodore Petrosky tedp...@yahoo.com
 Cc: WebObjects-Dev Apple webobjects-dev@lists.apple.com
 Date: Sunday, March 8, 2009, 3:26 PM
 
 On Mar 8, 2009, at 11:59 AM, Theodore Petrosky wrote:
 
  
  yes of course... but I know that i need to replace the
 \n for br/. but I don't see how.
 
 Well... you DID say If I just bind the text to a WOText
 area.  Now you show a WOString.  WOText and
 WOString are very, very different.  Being precise in
 your questions will yield more exact answers more quickly.
 
 
  I seem to recall an example method.
  
  inside my HTML
  
  webobject name = NotesRowRepetition
  tr align = left
  tdwo:WOString value =
 $currentNote.noteText //td
  /tr
  /webobject
  
  and the WOD:
  
  NotesRowRepetition: WORepetition {    
 
      list = notesDG.displayedObjects;
      item =
 currentNote;    
  }
  
  so that currentNote is from a 'to-many' relationship.
 I need to escape the currentNote.noteText for \n
  
  I just don't see how.
 
 java.text.Format.  Get familiar with it, it is a very
 useful tool.  I covered this in my Best Practices
 session at WOWODC 08.
 
 Here is a simple example
 
 
 /**
  * Converts \n to br/ on output
  */
 public class HTMLLineBreakReformatter extends
 java.text.Format {
 
 
     public StringBuffer format(Object object,
 StringBuffer buffer, FieldPosition position) {
         return
 buffer.append(((String)object).replaceAll(\n,
 br/));
     }
 
 }
 
 Create an instance in your page and use the formatter
 binding of WOString.
 
 
 Chuck
 
  --- On Fri, 3/6/09, Miguel Arroz ar...@guiamac.com
 wrote:
  
  From: Miguel Arroz ar...@guiamac.com
  Subject: Re: escaping in HTML
  To: John Huss johnth...@gmail.com
  Cc: Theodore Petrosky tedp...@yahoo.com,
 webobjects-dev@lists.apple.com
  Date: Friday, March 6, 2009, 11:56 AM
  Hi!
    That shouldn't be needed in text
  areas... my guess is some kind of line feed
 representation
  problem. Mac (classic), Windows and UNIX all use
 different
  representations for line feeds. I don't recall
 what the
  browser uses, but it's probably different than
 what you
  have in the DB.
    Yours
  Miguel Arroz
  On 2009/03/06, at 16:24, John Huss
  wrote:
  How about using
  string.replace(\n, br/)
  
  John
  
  On Fri, Mar 6, 2009 at 10:09 AM,
  Theodore Petrosky tedp...@yahoo.com
  wrote:
  
  I know I saw an example somewhere... I just can't
 seem
  to find it again.
  
  I have text from my database that has returns
 (line
  feeds). If I just bind the text to a WOText area,
 the CRs
  and LFs are ignored.
  
  Can someone point me in the right direction.
  
  I need to convert the CR to BR /...
  
  Ted
  
  
  
  
  
  
  
  ___
  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/archive%40mail-archive.com

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


Re: [Wonder-disc] OpenBase / boolean / ERPrototypes

2009-03-08 Thread Ricardo J. Parada



Hmmm... I tried changing the column type in openbase to an integer and  
saved the change.  Then I deleted my EOAttribute from my entity and  
added it back, this time using intBoolean.  But as soon as I fetch my  
EO from the database it blows up with the following exception:


er.transaction.adaptor.Exceptions  - Database Exception occured:  
com.webobjects.foundation.NSForwardException  
[java.lang.NoSuchMethodException] Class java.lang.Number does not  
implement method valueOf:java.lang.NoSuchMethodException: Class  
java.lang.Number does not implement method valueOf


The query looks right though.  It just seems that the EOAttribute is  
having trouble converting the value from the database to the type used  
in the EO.


[2009-3-8 18:42:3 EDT] WorkerThread0  
com.webobjects.foundation.NSForwardException  
[java.lang.NoSuchMethodException] Class java.lang.Number does not  
implement method valueOf:java.lang.NoSuchMethodException: Class  
java.lang.Number does not implement method valueOf
	at  
com 
.webobjects 
.foundation 
.NSForwardException 
._runtimeExceptionForThrowable(NSForwardException.java:41)
	at  
com.webobjects.eoaccess.EOAttribute.newValueForString(EOAttribute.java: 
2003)
	at  
com 
.webobjects.jdbcadaptor.JDBCColumn._newValueForString(JDBCColumn.java: 
675)
	at  
com 
.webobjects.jdbcadaptor.JDBCColumn._fetchCorrectObject(JDBCColumn.java: 
334)
	at com.webobjects.jdbcadaptor.JDBCColumn._fetchValue(JDBCColumn.java: 
384)
	at com.webobjects.jdbcadaptor.JDBCColumn.fetchValue(JDBCColumn.java: 
372)
	at com.webobjects.jdbcadaptor.JDBCChannel.fetchRow(JDBCChannel.java: 
1462)
	at  
com 
.webobjects 
.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:321)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 
3071)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.objectsWithFetchSpecification(EODatabaseContext.java:3195)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java: 
4069)
	at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java: 
1114)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java: 
)

at com.paradacafe.model._Cliente.fetchBusqueda(_Cliente.java:516)
	at  
com 
.paradacafe 
.webapps 
.admin.components.ClientesBusqueda.buscar(ClientesBusqueda.java:132)

[...snip...]
	at  
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:92)

at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
	at  
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 
1745)
	at  
er 
.extensions 
.appserver 
.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:49)
	at  
er 
.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java: 
1622)

[...snip...]



On Mar 8, 2009, at 6:25 PM, Ricardo J. Parada wrote:


Hi Mike,

Not sure I understood what you mean by flag.  :-)

Anyways, here's the boolean protototype from ERPrototypes as defined  
in EOJDBCOpenBasePrototypes.plist:


{
adaptorValueConversionMethodName = toString;
columnName = ;
externalType = varchar;
factoryMethodArgumentType =  
EOFactoryMethodArgumentIsNSString;

name = boolean;
valueClassName = java.lang.Boolean;
valueFactoryMethodName = valueOf;
valueType = S;
width = 5;
},

and the intBoolean prototype is setup as follows:

{
adaptorValueConversionMethodName = toString;
columnName = ;
externalType = bool;
factoryMethodArgumentType =  
EOFactoryMethodArgumentIsNSString;

name = intBoolean;
valueClassName = NSNumber;
valueFactoryMethodName = valueOf;
valueType = c;
},

I tried both and neither one works for me.  Anybody out there using  
OpenBase 10.0.11 with and boolean properties in your columns and EOs?



I've been trying all kinds of things to get these booleans to  
work...  And I just thought of one which might work.  I'll change  
the type in openbase for those columns back to integer type.  Then  
I'll use the intBoolean prototype from ERPrototypes.  I assume  
that's what the intBoolean prototype is for: to have a boolean in  
your EO stored as an integer in the database.  Right?





On Mar 8, 2009, at 10:20 AM, Mike Schrag wrote:

boolean in erp = varchar, not boolean, intBoolean in erp =  
number, flag = probably what OB is calling boolean, but you'd  
have to check if the OB variant of erp declares this properly.


ms

On Mar 8, 2009, at 3:06 AM, Ricardo J. Parada wrote:


Hi All,

There seems to be something wrong with booleans when using 

Re: WOLips - Entity Modeler - reverse engineer from multiple scheme/user?

2009-03-08 Thread Peter Newnam

Thx Chuck.  That worked a treat!

File to modify was /System/Library/Frameworks/ 
JavaJDBCAdaptor.framework/Resources/Properties.


Oracle is awesome after using db2 for a long time. :)  db2 is not very  
forgiving 


Peter

On 06/03/2009, at 4:52 PM, Chuck Hill wrote:


I am not exactly sure how to set these when using WOLips.  But they
are used by the Oracle Plugin which is used by WOLips.  Ask on the
WOLips list if you can't figure it out.

Chuck


On Mar 5, 2009, at 9:48 PM, Peter Newnam wrote:


Aaah - I found that reference but did not realize WOLips used the
same properties.  I will give that bash - THANK YOU !!

On 06/03/2009, at 3:36 PM, Chuck Hill wrote:


Hi

Does anybody know how to reverse engineer from multiple scheme?  By
default it appears that the Entity Modeler displays tables/views/
synonyms for the current user only.  The current user has access to
tables in another scheme but I can't see them.  If I create  
synonyms

for the tables I can see them and entities are generated but no
attributes/fields are generated for the entities.

As a work around I have created views for the tables but hopefully
there is a property or flag I can set to see all accessible tables?

Regards,
Peter Newnam


whOracle?

http://support.apple.com/kb/TA26829?viewlocale=en_US

Chuck

___
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/pnewnam%40uow.edu.au

This email sent to pnew...@uow.edu.au





--
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: WebObjects Installer CD for Windows

2009-03-08 Thread Don Lindsay
Excellent, I will update the installer to allow either 5.3 or 54  
installations.


Don
On Mar 8, 2009, at 5:15 PM, Q wrote:


WOinstaller will install 5.3.3 or 5.4.3

On 09/03/2009, at 5:20 AM, Don Lindsay wrote:


Hello;

It can install 5.4, I just have to enable the drop down, I am not  
sure if the WOInstaller has been updated to install all the way up  
to 5.4.3.   You may have to patch to that level manually.


Don
On Mar 7, 2009, at 9:41 AM, Frank Stock wrote:

This is working now, but only installs 5.3.3. Is there a way to  
change this 5.4.3.



Op 6-mrt-09, om 22:38 heeft John Ours het volgende geschreven:



On Mar 6, 2009, at 4:26 PM, Q wrote:



I think the problem you are having is that you cannot use -cp  
and -jar at the same time.




Q is correct.  You want to use something like this (which works  
for me):


java -cp wo.jar;woinst.jar run

That is start java with wo and woinst on the class path, and  
execute the class called run


Have fun!

John



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

This email sent to pccd...@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/qdolan%40gmail.com

This email sent to qdo...@gmail.com




--
Seeya...Q

Quinton Dolan - qdo...@gmail.com
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806





___
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 - reverse engineer from multiple scheme/user?

2009-03-08 Thread Chuck Hill


On Mar 8, 2009, at 4:01 PM, Peter Newnam wrote:


Thx Chuck.  That worked a treat!

File to modify was /System/Library/Frameworks/ 
JavaJDBCAdaptor.framework/Resources/Properties.


Oracle is awesome after using db2 for a long time. :)  db2 is not  
very forgiving 


I remember going form Oracle to DB2 (UDB, first version) and thinking  
how awesome and easy to administer DB2 was...


:-)

Chuck




On 06/03/2009, at 4:52 PM, Chuck Hill wrote:


I am not exactly sure how to set these when using WOLips.  But they
are used by the Oracle Plugin which is used by WOLips.  Ask on the
WOLips list if you can't figure it out.

Chuck


On Mar 5, 2009, at 9:48 PM, Peter Newnam wrote:


Aaah - I found that reference but did not realize WOLips used the
same properties.  I will give that bash - THANK YOU !!

On 06/03/2009, at 3:36 PM, Chuck Hill wrote:


Hi

Does anybody know how to reverse engineer from multiple scheme?   
By

default it appears that the Entity Modeler displays tables/views/
synonyms for the current user only.  The current user has access  
to
tables in another scheme but I can't see them.  If I create  
synonyms

for the tables I can see them and entities are generated but no
attributes/fields are generated for the entities.

As a work around I have created views for the tables but hopefully
there is a property or flag I can set to see all accessible  
tables?


Regards,
Peter Newnam


whOracle?

http://support.apple.com/kb/TA26829?viewlocale=en_US

Chuck

___
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/pnewnam%40uow.edu.au

This email sent to pnew...@uow.edu.au





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











--
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: LDAP and EOF

2009-03-08 Thread Mitchell Smith
Just to follow-up on this issue, the fix was pretty simple.

In the connection dictionary you have a couple of options for auth type, None 
and Simple.  I had just left it at the default of None, so I assume it wasn't 
actually passing the auth credentials along to the LDAP server, meaning I was 
only able to see information available to an anonymous user, which obviously 
would not include a userPassword.

Changing the auth type to Simple seems to have corrected the issue, at least in 
terms of reading.

I haven't tried writing back to LDAP yet, we'll see how that goes.

Thanks to everyone who provided feedback on this issue.

Cheers,

Mitch

  - Original Message - 
  From: Mitchell Smith 
  To: webobjects-dev@lists.apple.com 
  Sent: Friday, March 06, 2009 3:41 PM
  Subject: LDAP and EOF


  Hi,

  I am trying to write a web based tool which reads and writes to our 
organization's OpenLDAP directory containing customer information.

  I configured up a connection in entity modeler and reverse engineered the 
schema which for the most part seemed to work pretty well.

  I can view a record for a customer given their CN however the userPassword 
field from the core.schema is not displayed.

  If I have a look at how that attribute was reverse engineered I see that it 
has been assigned an external type of octet string which matches what is 
specified in the OpenLDAP schema.  The java type is NSData so I tried changing 
it to a String.

  Unfortunately I still continue to get null when trying to print the 
userPassword attribute, even though I can see that the value is not null when I 
retrieve the same record using a little Perl script which uses the same 
credentials to access the directory.

  Has anyone encountered this particular issue before, and is there a work 
around?

  I am thinking that the issue is probably in the way the schema was reverse 
engineered, but I'm not sure what to tweak to get it to reveal that value.

  Any comments or suggestions would be greatly appreciated.

  Thanks,

  Mitch
 ___
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: [Wonder-disc] OpenBase / boolean / ERPrototypes

2009-03-08 Thread Mike Schrag

Not sure I understood what you mean by flag.  :-)
there is a prototype named flag that maps onto whatever your  
database considers a bit type -- if your database natively supports  
a boolean type, this is the one you would use, though there are good  
odds the definition is wrong for OB


Anyways, here's the boolean protototype from ERPrototypes as defined  
in EOJDBCOpenBasePrototypes.plist:
yes, this is the varchar(5) boolean type that turns into the strings  
true or false in the database.



and the intBoolean prototype is setup as follows:

{
adaptorValueConversionMethodName = toString;
columnName = ;
externalType = bool;
factoryMethodArgumentType =  
EOFactoryMethodArgumentIsNSString;

name = intBoolean;
valueClassName = NSNumber;
valueFactoryMethodName = valueOf;
valueType = c;
},
You're setting this up wrong .. you should look at the other databases  
versions of this in ERP ... you don't have/need a  
valueFactoryMethodName and a conversion method name for integer  
types .. it's much easier than that.


I've been trying all kinds of things to get these booleans to  
work...  And I just thought of one which might work.  I'll change  
the type in openbase for those columns back to integer type.  Then  
I'll use the intBoolean prototype from ERPrototypes.  I assume  
that's what the intBoolean prototype is for: to have a boolean in  
your EO stored as an integer in the database.  Right?
yes, though again, if you're using the boolean type, you're probably  
not going to want intBoolean (though it may work by accident).


ms ___
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 - reverse engineer from multiple scheme/user?

2009-03-08 Thread Peter Newnam
I used to use DB2 on AS400s :-( - GUI interfaces (of cause now there  
are really cool GUI interfaces to the AS400) just makes things seem so  
easy !!


On 09/03/2009, at 1:39 PM, Chuck Hill wrote:



On Mar 8, 2009, at 4:01 PM, Peter Newnam wrote:


Thx Chuck.  That worked a treat!

File to modify was /System/Library/Frameworks/
JavaJDBCAdaptor.framework/Resources/Properties.

Oracle is awesome after using db2 for a long time. :)  db2 is not
very forgiving 


I remember going form Oracle to DB2 (UDB, first version) and thinking
how awesome and easy to administer DB2 was...

:-)

Chuck




On 06/03/2009, at 4:52 PM, Chuck Hill wrote:


I am not exactly sure how to set these when using WOLips.  But they
are used by the Oracle Plugin which is used by WOLips.  Ask on the
WOLips list if you can't figure it out.

Chuck


On Mar 5, 2009, at 9:48 PM, Peter Newnam wrote:


Aaah - I found that reference but did not realize WOLips used the
same properties.  I will give that bash - THANK YOU !!

On 06/03/2009, at 3:36 PM, Chuck Hill wrote:


Hi

Does anybody know how to reverse engineer from multiple scheme?
By
default it appears that the Entity Modeler displays tables/views/
synonyms for the current user only.  The current user has access
to
tables in another scheme but I can't see them.  If I create
synonyms
for the tables I can see them and entities are generated but no
attributes/fields are generated for the entities.

As a work around I have created views for the tables but  
hopefully

there is a property or flag I can set to see all accessible
tables?

Regards,
Peter Newnam


whOracle?

http://support.apple.com/kb/TA26829?viewlocale=en_US

Chuck

___
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/pnewnam%40uow.edu.au

This email sent to pnew...@uow.edu.au





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











--
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: [Wonder-disc] OpenBase / boolean / ERPrototypes

2009-03-08 Thread Ricardo J. Parada

Thanks Mike...

Well... I went inside EOJDBCOpenBasePrototypes.plist and I replaced  
the definition for the intBoolean by the one for FrontBase (which I  
know works), except that I changed the external type from INTEGER to  
int because that's what all other integer prototypes for OpenBase seem  
to use.  And... NOW IT WORKS!!!


Ok... so here's the definition I ended up using which finally works  
with OpenBase:


{
columnName = ;
externalType = int;
factoryMethodArgumentType =  
EOFactoryMethodArgumentIsNSString;

name = intBoolean;
valueClassName = NSNumber;
valueType = c;
},

By the way, this definition also works if I go into the  
OpenBaseManager and change the column type from integer to boolean.


Should this be checked in back into Wonder?  Otherwise next time I  
upgrade to the latest Wonder I'll have to patch it again.  :-)


Ricardo




On Mar 8, 2009, at 11:17 PM, Mike Schrag wrote:


Not sure I understood what you mean by flag.  :-)
there is a prototype named flag that maps onto whatever your  
database considers a bit type -- if your database natively  
supports a boolean type, this is the one you would use, though there  
are good odds the definition is wrong for OB


Anyways, here's the boolean protototype from ERPrototypes as  
defined in EOJDBCOpenBasePrototypes.plist:
yes, this is the varchar(5) boolean type that turns into the strings  
true or false in the database.



and the intBoolean prototype is setup as follows:

{
adaptorValueConversionMethodName = toString;
columnName = ;
externalType = bool;
factoryMethodArgumentType =  
EOFactoryMethodArgumentIsNSString;

name = intBoolean;
valueClassName = NSNumber;
valueFactoryMethodName = valueOf;
valueType = c;
},
You're setting this up wrong .. you should look at the other  
databases versions of this in ERP ... you don't have/need a  
valueFactoryMethodName and a conversion method name for integer  
types .. it's much easier than that.


I've been trying all kinds of things to get these booleans to  
work...  And I just thought of one which might work.  I'll change  
the type in openbase for those columns back to integer type.  Then  
I'll use the intBoolean prototype from ERPrototypes.  I assume  
that's what the intBoolean prototype is for: to have a boolean in  
your EO stored as an integer in the database.  Right?
yes, though again, if you're using the boolean type, you're  
probably not going to want intBoolean (though it may work by  
accident).


ms
--
Open Source Business Conference (OSBC), March 24-25, 2009, San  
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the  
Enterprise
-Strategies to boost innovation and cut costs with open source  
participation
-Receive a $600 discount off the registration fee with the source  
code: SFAD

http://p.sf.net/sfu/XcvMzF8H___
Wonder-disc mailing list
wonder-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wonder-disc


 ___
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

EntityModeler - adding an entity index generates incorrect SQL for MySQL

2009-03-08 Thread J Stephanos
Once you add a index in EntityModeler (Entity Modeler/WOLips 3.4.5693) this
is what is generated:

CREATE INDEX stateCode_idx *FOR* State (stateCode);

But the correct SQL for MySQL (5.1) is:

CREATE INDEX stateCode_idx1 *ON* State (stateCode);

After this manual correction, the index gets created fine.
BTW, I didn't see any index creation code in migrations.

--JSt

 http://dev.mysql.com/doc/refman/5.0/en/create-index.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: EntityModeler - adding an entity index generates incorrect SQL for MySQL

2009-03-08 Thread Chuck Hill


On Mar 8, 2009, at 10:02 PM, J Stephanos wrote:

Once you add a index in EntityModeler (Entity Modeler/WOLips  
3.4.5693) this is what is generated:


CREATE INDEX stateCode_idx FOR State (stateCode);

But the correct SQL for MySQL (5.1) is:

CREATE INDEX stateCode_idx1 ON State (stateCode);

After this manual correction, the index gets created fine.
BTW, I didn't see any index creation code in migrations.


My conclusion after last trying EOF based indexes is that this  
functionality is a great idea, but not yet fully implemented and  
supported in either WebObjects or Wonder.  It is possible that Wonder  
could be extended to fill in the blanks.  Otherwise, wait for a future  
version of WO...


Chuck





--JSt

 http://dev.mysql.com/doc/refman/5.0/en/create-index.html


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