JAX-WS Endpoint within a WOApplication

2012-10-02 Thread Matteo Centro
Hi list,

I'm trying to implement a webservice using JAX-WS after I concluded
that the app that needs to talk with mine can't speak through
WOWebServices...
All the examples I found make a webservice server by

javax.xml.ws.Endpoint.publish(http://localhost:8080/WS/NameOfService;,
implementor);


This of course works even from within a WO Application but it starts
to listen on a new port, which is not good for me.
Is it possible to publish an Endpoint that goes through the usual
WOPort maybe by using a new request handler?
Anybody already did that?

Thanks in advance,


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

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


Re: JAX-WS Endpoint within a WOApplication

2012-10-02 Thread John Huss
The WO web service stuff is just a wrapper around Axis 1.4, which is a
generic java library, so I would be surprised if it wouldn't work.  That
said, Axis 1.4 is quite old now, and using something newer is a good
option.  The port thing doesn't matter -- 8080 is just the standard J2EE
port, but you should have no problem using a regular WO url without a port.
 Yes, you'll probably a custom request handler, although the direct action
handler would work too.

On Tue, Oct 2, 2012 at 7:26 AM, Matteo Centro woli...@matteocentro.itwrote:

 Hi list,

 I'm trying to implement a webservice using JAX-WS after I concluded
 that the app that needs to talk with mine can't speak through
 WOWebServices...
 All the examples I found make a webservice server by

 javax.xml.ws.Endpoint.publish(http://localhost:8080/WS/NameOfService;,
 implementor);


 This of course works even from within a WO Application but it starts
 to listen on a new port, which is not good for me.
 Is it possible to publish an Endpoint that goes through the usual
 WOPort maybe by using a new request handler?
 Anybody already did that?

 Thanks in advance,


 Matteo
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:

 https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com

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

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

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


Re: JAX-WS Endpoint within a WOApplication

2012-10-02 Thread Matteo Centro
Yes, I don't know if it's Axis that is old or the stuff connecting to
my app that sucks but with JAX-WS I solved the problem (of course I
had to make a proxy on apache to be able to connect to port 8080).
Now I need to find a way to make the endpoint link to the WOPort...
I'll try your suggestion but I still don't have an idea of where to
start from. I'm talking about the JAX_WS part, not the WO part.

Thanks,

Matteo

On Tue, Oct 2, 2012 at 5:00 PM, John Huss johnth...@gmail.com wrote:
 The WO web service stuff is just a wrapper around Axis 1.4, which is a
 generic java library, so I would be surprised if it wouldn't work.  That
 said, Axis 1.4 is quite old now, and using something newer is a good option.
 The port thing doesn't matter -- 8080 is just the standard J2EE port, but
 you should have no problem using a regular WO url without a port.  Yes,
 you'll probably a custom request handler, although the direct action handler
 would work too.

 On Tue, Oct 2, 2012 at 7:26 AM, Matteo Centro woli...@matteocentro.it
 wrote:

 Hi list,

 I'm trying to implement a webservice using JAX-WS after I concluded
 that the app that needs to talk with mine can't speak through
 WOWebServices...
 All the examples I found make a webservice server by

 javax.xml.ws.Endpoint.publish(http://localhost:8080/WS/NameOfService;,
 implementor);


 This of course works even from within a WO Application but it starts
 to listen on a new port, which is not good for me.
 Is it possible to publish an Endpoint that goes through the usual
 WOPort maybe by using a new request handler?
 Anybody already did that?

 Thanks in advance,


 Matteo
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:

 https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com

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


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

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


How to target older ava

2012-10-02 Thread doug andrews
Is it possible to deploy an application compiled with java 6 on a machine 
running java 1.4?
I have both Java 6 and 4 on my machine.
I have a test application created using the Eclipse ant build while running 
java 6.
I force the app to use java 1.4 when deployed by modifying the MacOS class path 
file:

# JVM  == 
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2_22/Commands/java

When I run, I get this error:
java.lang.UnsupportedClassVersionError: com/webobjects/appserver/WOApplication 
(Unsupported major.minor version 49.0)

My java 6 version is:
java version 1.6.0_29
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11E53)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

My java 4 version is:
java version 1.4.2_22
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_22-b02-329)
Java HotSpot(TM) Client VM (build 1.4.2-92, mixed mode)

I've tried modifying the build.xml wocomplile argument like this:
wocompile srcdir=Sources target=1.4 source=1.4 destdir=bin fork=yes 
memoryMaximumSize=256m debug=yes
but this does not seem to work.

I'm pretty sure this is possible, but cannot figure out how.




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

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


Re: How to target older ava

2012-10-02 Thread doug andrews
Never mind.  I've got it figured out.  I had some Wonder stuff in there, which 
I don't think is compatible with java 1.4.



On Oct 2, 2012, at 3:23 PM, doug andrews wrote:

 Is it possible to deploy an application compiled with java 6 on a machine 
 running java 1.4?
 I have both Java 6 and 4 on my machine.
 I have a test application created using the Eclipse ant build while running 
 java 6.
 I force the app to use java 1.4 when deployed by modifying the MacOS class 
 path file:
 
 # JVM  == 
 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2_22/Commands/java
 
 When I run, I get this error:
 java.lang.UnsupportedClassVersionError: 
 com/webobjects/appserver/WOApplication (Unsupported major.minor version 49.0)
 
 My java 6 version is:
 java version 1.6.0_29
 Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11E53)
 Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
 
 My java 4 version is:
 java version 1.4.2_22
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_22-b02-329)
 Java HotSpot(TM) Client VM (build 1.4.2-92, mixed mode)
 
 I've tried modifying the build.xml wocomplile argument like this:
 wocompile srcdir=Sources target=1.4 source=1.4 destdir=bin 
 fork=yes memoryMaximumSize=256m debug=yes
 but this does not seem to work.
 
 I'm pretty sure this is possible, but cannot figure out how.
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/dandrews%40mediaspansoftware.com
 
 This email sent to dandr...@mediaspansoftware.com


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

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


Re: How to target older ava

2012-10-02 Thread Maik Musall

Am 02.10.2012 um 21:23 schrieb doug andrews dandr...@mediaspansoftware.com:

 Is it possible to deploy an application compiled with java 6 on a machine 
 running java 1.4?
 I have both Java 6 and 4 on my machine.
 I have a test application created using the Eclipse ant build while running 
 java 6.
 I force the app to use java 1.4 when deployed by modifying the MacOS class 
 path file:
 
 # JVM  == 
 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2_22/Commands/java
 
 When I run, I get this error:
 java.lang.UnsupportedClassVersionError: 
 com/webobjects/appserver/WOApplication (Unsupported major.minor version 49.0)
 
 My java 6 version is:
 java version 1.6.0_29
 Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11E53)
 Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
 
 My java 4 version is:
 java version 1.4.2_22
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_22-b02-329)
 Java HotSpot(TM) Client VM (build 1.4.2-92, mixed mode)
 
 I've tried modifying the build.xml wocomplile argument like this:
 wocompile srcdir=Sources target=1.4 source=1.4 destdir=bin 
 fork=yes memoryMaximumSize=256m debug=yes
 but this does not seem to work.
 
 I'm pretty sure this is possible, but cannot figure out how.

No, it's not. There have been class file format modifications, especially from 
5 to 6, and Java generally doesn't guarantee downward compatibility with new 
releases[1]. You can't load those class files on a 1.4 JVM. You have to compile 
with JDK 1.4 to do that, and if you have generics *anywhere*, you can't do that 
either.

I suggest you get rid of that 1.4 installation.

Maik

[1] http://www.oracle.com/technetwork/java/javase/compatibility-137541.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: How to target older ava

2012-10-02 Thread Maik Musall

Hi,

forget my reply to your original mail - I didn't see that you used the -target 
1.4 switch and misunderstood that you wanted to actually run Java 6 class files 
on 1.4.

Maik



Am 02.10.2012 um 22:29 schrieb doug andrews dandr...@mediaspansoftware.com:

 Never mind.  I've got it figured out.  I had some Wonder stuff in there, 
 which I don't think is compatible with java 1.4.
 
 
 
 On Oct 2, 2012, at 3:23 PM, doug andrews wrote:
 
 Is it possible to deploy an application compiled with java 6 on a machine 
 running java 1.4?
 I have both Java 6 and 4 on my machine.
 I have a test application created using the Eclipse ant build while running 
 java 6.
 I force the app to use java 1.4 when deployed by modifying the MacOS class 
 path file:
 
 # JVM  == 
 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2_22/Commands/java
 
 When I run, I get this error:
 java.lang.UnsupportedClassVersionError: 
 com/webobjects/appserver/WOApplication (Unsupported major.minor version 49.0)
 
 My java 6 version is:
 java version 1.6.0_29
 Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11E53)
 Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
 
 My java 4 version is:
 java version 1.4.2_22
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_22-b02-329)
 Java HotSpot(TM) Client VM (build 1.4.2-92, mixed mode)
 
 I've tried modifying the build.xml wocomplile argument like this:
 wocompile srcdir=Sources target=1.4 source=1.4 destdir=bin 
 fork=yes memoryMaximumSize=256m debug=yes
 but this does not seem to work.
 
 I'm pretty sure this is possible, but cannot figure out how.
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/dandrews%40mediaspansoftware.com
 
 This email sent to dandr...@mediaspansoftware.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
 
 This email sent to m...@selbstdenker.ag


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

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


Localizable.strings

2012-10-02 Thread Oscar González

Hi all,I'm starting with localizables.
I need to localizable a entity name MgeProductor. I try with this.{ 
MgeProductor = Productor;   EntityKey.MgeProductor = Productor; 
Entity.name.MgeProductor = Productor;}
Non of this work for me.
Saludos,
Oscar.
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: mac os x 10.8.1 xcode 4.4 FAILED try to compile Web_Objects.so

2012-10-02 Thread Brook, James
I had the same problem. I got the adaptor to compile by manually modifying the 
/usr/sbin/apxs script. On the lines where 'libtool' is called I added --tag 
CC to the list of arguments. That's in two places.

I am not sure why that is necessary because according to the manual libtool 
should try to infer the language being compiled for and failing that it should 
default to the C language (that's what the CC tag is for).

I have never had this problem before but today I upgraded to Mountain Lion and 
installed the latest XCode developer tools.  The Mountain Lion upgrade seems to 
have upgraded Apache files including the apxs script.

I assume there must be a better solution to this problem. Any ideas?

On Sep 3, 2012, at 1:13 PM, Ron X ron.x.by...@gmail.com wrote:

 vm-mlion-01:~ esuser$ gcc -v
 Using built-in specs.
 Target: i686-apple-darwin11
 Configured with: 
 /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure 
 --disable-checking --enable-werror 
 --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 
 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ 
 --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ 
 --with-slibdir=/usr/lib --build=i686-apple-darwin11 
 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local
  --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 
 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
 Thread model: posix
 gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
 
 2012/9/3 Johann Werner j...@oyosys.de
 If you type
 
 gcc -v
 
 on your command line what output do you get?
 
 
 Am 03.09.2012 um 07:37 schrieb Ron X ron.x.by...@gmail.com:
 
  hi!
  no, have the same problem:
 
  vm-mlion-01:~ esuser$ cd Documents/wonder.old/Utilities/Adaptors/
  vm-mlion-01:Adaptors esuser$ ls
  APPLE_LICENSEInstallationInstructions.html
  AdaptorMakefile
  ApacheNSAPI
  Apache2PB.project
  Apache2.2WonderReadme.html
  BuildingInstructions.htmlexample.xml
  CGImake.config
  FastCGIwoadaptor.dtd
  IISwoadaptor.xml
  vm-mlion-01:Adaptors esuser$ make ADAPTORS=Apache2.2 OS=MACOS 
  APXS=/usr/sbin/apxs
  cd Apache2.2 ; make
  /usr/sbin/apxs -c -S CC=gcc -Wc,-O2 -I/usr/include/apache2  -I../Adaptor  
  -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE   -Wall  
  -arch x86_64  -arch i386 -Wl,  -arch x86_64  -arch i386 
  -macosx_version_min 10.5 -lm -module mod_WebObjects.c 
  ../Adaptor/MoreURLCUtilities.c ../Adaptor/Platform.c 
  ../Adaptor/WOURLCUtilities.c ../Adaptor/WOURLCUtilities_3.c 
  ../Adaptor/appcfg.c ../Adaptor/cfgparse.c ../Adaptor/config.c 
  ../Adaptor/hostlookup.c ../Adaptor/list.c ../Adaptor/listing.c 
  ../Adaptor/loadaverage.c ../Adaptor/loadbalancing.c ../Adaptor/log.c 
  ../Adaptor/nbsocket.c ../Adaptor/random.c ../Adaptor/request.c 
  ../Adaptor/response.c ../Adaptor/roundrobin.c ../Adaptor/shmem.c 
  ../Adaptor/strdict.c ../Adaptor/strtbl.c ../Adaptor/transaction.c 
  ../Adaptor/transport.c ../Adaptor/wastring.c ../Adaptor/womalloc.c 
  ../Adaptor/xmlcparser.c ../Adaptor/xmlctokenizer.c ../Adaptor/xmlparse.c
  /usr/share/apr-1/build-1/libtool --silent --mode=compile gcc-DDARWIN 
  -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include -I/usr/include/apache2  
  -I/usr/include/apr-1   -I/usr/include/apr-1  -O2 -I/usr/include/apache2  
  -I../Adaptor  -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER 
  -DAPACHE   -Wall  -arch x86_64  -arch i386  -c -o mod_WebObjects.lo 
  mod_WebObjects.c  touch mod_WebObjects.slo
  libtool: compile: unable to infer tagged configuration
  libtool: compile: specify a tag with `--tag'
  apxs:Error: Command failed with rc=65536
  .
  make[1]: *** [mod_WebObjects.so] Error 1
  make: *** [Apache2.2] Error 2
  vm-mlion-01:Adaptors esuser$ cd A
  APPLE_LICENSE  Adaptor/   Apache/Apache2/   Apache2.2/
  vm-mlion-01:Adaptors esuser$ cd Apache2.2/
  vm-mlion-01:Apache2.2 esuser$ make ADAPTORS=Apache2.2 OS=MACOS 
  APXS=/usr/sbin/apxs
  /usr/sbin/apxs -c -S CC=gcc -Wc,-O2 -I/usr/include/apache2  -I../Adaptor  
  -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE   -Wall  
  -arch x86_64  -arch i386 -Wl,  -arch x86_64  -arch i386 
  -macosx_version_min 10.5 -lm -module mod_WebObjects.c 
  ../Adaptor/MoreURLCUtilities.c ../Adaptor/Platform.c 
  ../Adaptor/WOURLCUtilities.c ../Adaptor/WOURLCUtilities_3.c 
  ../Adaptor/appcfg.c ../Adaptor/cfgparse.c ../Adaptor/config.c 
  ../Adaptor/hostlookup.c ../Adaptor/list.c ../Adaptor/listing.c 
  ../Adaptor/loadaverage.c ../Adaptor/loadbalancing.c ../Adaptor/log.c 
  ../Adaptor/nbsocket.c ../Adaptor/random.c ../Adaptor/request.c 
  ../Adaptor/response.c ../Adaptor/roundrobin.c ../Adaptor/shmem.c 
  ../Adaptor/strdict.c ../Adaptor/strtbl.c ../Adaptor/transaction.c 
  ../Adaptor/transport.c 

Re: Jenkins and SVN+SSH

2012-10-02 Thread Roger Perryman
The following is just an update in case anyone stumbles upon this same problem. 
Not really a full solution but perhaps useful none the less.
 
I was not able to get SVN+SSH in Jenkins to work on an OSX 10.6.7 system that 
otherwise can access the repository via command line and Eclipse. If I manually 
import the project it works fine but the defeats the purpose.

I decided to upgrade Hudson to Jenkins on the original build server (OSX 
10.5.8) that was throwing IndexOutOfBoundsExceptions, even though the actual 
compile was successful. I shut down Hudson (it was manually launched) and then 
installed Jenkins using the OSX package (as I did on the 10.6.7 system). I then 
created a test job and it worked fine. Then I created a simple test project and 
manually copied it into Jenkins. It worked fine. Next I added a project that 
was in SVN and configured it to use svn+ssh, entering my user name and 
supplying the private key (id_dsa). It worked the first time. I then entered 
the remaining jobs from the Hudson install into Jenkins. 

Everything _appeared_ to work. 

However, I am noticing that one of the projects fails to build because it 
cannot find some symbols from an included framework. These changes are new but 
they do show up in the Jenkins workspace for that framework. What I noticed is 
that the build.xml file in the referenced framework is different in the Jenkins 
version than it is in the Eclipse version. All the other projects have 
identical build.xml files. I've removed all of the build output but it doesn't 
seem to make a difference. Not sure where else to check.

Another problem that I am having (on a separate project that does build 
successfully) is Archiving the artifacts. I've set up the post-build action 
using the config files from Hudson version (where it worked). It complains that 
the dist folder doesn't exist. Creating it did not solve the problem. There 
must be a part that I am missing that compresses the build output and copies it 
to the dist folder. In the files to archive field, I have 
XeoMed/dist/*.tar.gz. I want to get this step working before exploring the 
Publish over SSH plugin to automate pushing the build tarballs over to the 
deployment server. I will still manually install them but it should be a matter 
of just expanding a few files. Does anyone have a working example for this 
scenario?

Thanks.

On Sep 28, 2012, at 5:27 PM, Maik Musall wrote:

 
 Am 28.09.2012 um 22:36 schrieb Roger Perryman ro...@xeotech.com:
 
 But the auth method would more likely involve not supplying your private 
 key somewhere, but add the public key of the user jenkins is running under 
 to the authorized_keys on the svn server. Did you do that?
 
 I submitted before fully answering the question. I generated a key (DSA) and 
 placed the public key in authorized_keys2 on the server. This works AS ME. I 
 supplied the private key to Jenkins so that it could establish a handshake 
 with the server. I may need to add a Jenkins user on the SVN server 
 otherwise, if I get this to work, I would get all the credit (or blame) for 
 any activity from the build server.
 
 I think I have to let someone answer that who has experience specifically 
 with svn+ssh on Jenkins...
 
 Maik


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

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


RE: Localizable.strings

2012-10-02 Thread Oscar González

Hi all,I try it but no luck.I have in my 
ValidationTemplate.stringsMgeProductor_Existe = Ya existe un 
@@displayNameForEntity@@ con el mismo @@displayNameForProperty@@;
And in my Localizable.stringsMgeProductor.codigoInterno = 
código;Entity.MgeProductor = Productor;
And the message for the validation saysYa existe un Mge Productor con el mismo 
código.
I want it to sayYa existe un Productor con el mismo código.
Saludos,
Oscar.

CC: webobjects-dev@lists.apple.com
From: programming...@me.com
Subject: Re: Localizable.strings
Date: Tue, 2 Oct 2012 14:47:28 -0700
To: racso...@hotmail.com

I'm away from my computer but I think it's Entity.MgeProductor = 

Sent from my iPad
On 2012-10-02, at 2:20 PM, Oscar González racso...@hotmail.com wrote:





Hi all,I'm starting with localizables.
I need to localizable a entity name MgeProductor. I try with this.{ 
MgeProductor = Productor;   EntityKey.MgeProductor = Productor; 
Entity.name.MgeProductor = Productor;}
Non of this work for me.
Saludos,
Oscar.

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

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

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


Re: Localizable.strings

2012-10-02 Thread David Holt
D2W? If so what are your rules?

Sent from my iPad

On 2012-10-02, at 3:07 PM, Oscar González racso...@hotmail.com wrote:

 Hi all,
 I try it but no luck.
 I have in my ValidationTemplate.strings
 MgeProductor_Existe = Ya existe un @@displayNameForEntity@@ con el mismo 
 @@displayNameForProperty@@;
 
 And in my Localizable.strings
 MgeProductor.codigoInterno = código;
 Entity.MgeProductor = Productor;
 
 And the message for the validation says
 Ya existe un Mge Productor con el mismo código.
 
 I want it to say
 Ya existe un Productor con el mismo código.
 
 Saludos,
 
 Oscar.
 
 CC: webobjects-dev@lists.apple.com
 From: programming...@me.com
 Subject: Re: Localizable.strings
 Date: Tue, 2 Oct 2012 14:47:28 -0700
 To: racso...@hotmail.com
 
 I'm away from my computer but I think it's Entity.MgeProductor = 
 
 Sent from my iPad
 
 On 2012-10-02, at 2:20 PM, Oscar González racso...@hotmail.com wrote:
 
 Hi all,
 I'm starting with localizables.
 I need to localizable a entity name MgeProductor. I try with this.
 {
   MgeProductor = Productor;
   EntityKey.MgeProductor = Productor;
   Entity.name.MgeProductor = Productor;
 }
 
 Non of this work for me.
 
 Saludos,
 
 Oscar.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Derived read-only attribute to expose PK [Was: Re: postgresql serial columns and wonder]

2012-10-02 Thread Paul Hoadley
Hello,

Just digging up this 2.5 year old thread...

On 18/04/2010, at 4:12 PM, Kieran Kelleher wrote:

 Alternative suggestion:
 A readonly derived column is another option to expose the PK. The advantage 
 is that the the new exposed column can be used in standard EOQualifier that 
 works in memory and for schema-based qualifiers.
 
 Assuming your primary key col is named pk and you want an attribute named 
 jobcode that exposes the pk...
 
 attribute: jobcode
 derived: √
 read-only: √
 definition: (pk)   [Note: if mapping a column name to a derived attribute, 
 you must surround it in brackets, otherwise EOF cannot parse it]

I'm doing this in a model to expose the PK, as described.  I have a D2W 
application that creates a new entity and saves it.  Returning to the list 
page, the derived attribute shows _no value_ (the accessor returns null), even 
though the saved row is visible in the database, and obviously has a primary 
key.  Logging out and back in does not fix this, though an app restart 
does—clearly not ideal for production.

Is this expected, and thus should I be looking at modelling it some other way?  
(As an aside, last time I looked at this was a few months ago, and I swear it 
was behaving properly then—i.e., that the derived attribute was immediately 
visible.)  Or have I more likely botched something?


-- 
Paul Hoadley
http://logicsquad.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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