Re: Log4j Vulnerability

2021-12-14 Thread Daniele Corti via Webobjects-dev
Hi Paul, hi Ken,

thank you so much for the info!!!

I use only Wonder, and the only Log4J I see in the class path is
log4j-1.2.17 from ERJar, so I think is ok.

Thanks again!!!

*Daniele Corti - **IT*
VINATI Srl
rs.dani...@vinati.com
tel: +39 030 2532813
fax: +39 030 2532814
___

CONFIDENTIALITY NOTICE

Questo messaggio (incluso qualsiasi allegato alla presente) contengono
informazioni confidenziali e sono rivolte esclusivamente ai destinatari
citati nel messaggio. Se non siete i destinatari non è concesso
reinoltrare, distribuire, copiare o fare use di questo messaggio.  Se avete
ricevuto questo messaggio per errore siete pregati di avvisare
immediatamente il mittente via e-mail, e di cancellare la presente dal
vostro sistema.

This message (including any attachments transmitted with it) contains
confidential information and is intended only for the individual named
herein. If you are not the herein named addressee you should not
disseminate, distribute, copy or otherwise make use of this message. Please
notify the sender immediately by e-mail if you have received this message
by mistake, and delete it from your systems.

On 14 dicembre 2021 a 02:37:31, Paul Hoadley via Webobjects-dev (
webobjects-dev@lists.apple.com) scritto:

Hello,

On 13 Dec 2021, at 20:56, Daniele Corti via Webobjects-dev <
webobjects-dev@lists.apple.com> wrote:

Today the vulnerability CVE-2021-44228 details (log4j) are out and looks
like all log4j versions are affected!

I’ve seen many attempt on the logs of the servers, but I was not able to
understand if also my ERJar which contains the log4j-1.2.17 is affected.


As Ken Anderson noted, it only affects versions >=2.0-beta9 and <=2.14.1.

https://logging.apache.org/log4j/2.x/security.html

So log4j-1.2.17 specifically is unaffected. If that's the only Log4J you've
got on the classpath, you're not affected. If you're running a vanilla
Wonder app, you're almost certainly not using Log4J 2.

Anyone was able to check if the
standard er.extensions.logging.ERXConsoleAppender is vulnerable?


It's "vulnerable" only to the extent that it does use '%m' to print the log
message (and a potential mitigation is to use '%m{nolookups}' if you're on
version >= 2.7), but that's only relevant if you're using a vulnerable
version of Log4J 2.

Here are some brief notes I posted to Slack earlier today:

* The good news is that if you're just using vanilla WebObjects/Wonder,
you're probably not affected by it: Wonder is still on Log4J 1.
You might have a dependency pulling in Log4J 2, though it's not clear to me
whether that would matter unless you had the app-level co-operation to set
up and use Log4J 2 to do actual logging. If you're using Maven, it's very
easy to check: "mvn dependency:tree | grep log4j".

* In any case, if you're definitely using Log4J 2 (we are—I went to some
effort months ago to set it up!), you can mitigate the issue immediately by
re-launching all instances with "-Dlog4j2.formatMsgNoLookups=true". That
will give you time to re-build with Log4J 2.15.0.

* Finally, if you're using AWS and you're using Web Application Firewall
(WAF, which I highly recommend), you're already covered by
the AWSManagedRulesKnownBadInputsRuleSet rules—if you're not using that
set, add it immediately.


-- 
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/

___
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/rs.daniele%40vinati.com

This email sent to rs.dani...@vinati.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


Log4j Vulnerability

2021-12-13 Thread Daniele Corti via Webobjects-dev
Hi List!
Today the vulnerability CVE-2021-44228 details (log4j) are out and looks
like all log4j versions are affected!

I’ve seen many attempt on the logs of the servers, but I was not able to
understand if also my ERJar which contains the log4j-1.2.17 is affected.

Anyone was able to check if the
standard er.extensions.logging.ERXConsoleAppender is vulnerable?

Best regards!

Daniele
 ___
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: Extending the "No Instance Available" timeout

2016-04-05 Thread Daniele Corti
Hi Benjamin,
if I understand correctly the problem is a intensive work on the DB, that,
added to the slow connection, make WOMonitor return the "No Instance
Available" error.

if used in local network, these pages use more than 3/4 seconds to load?
I'm asking this, because I think it's a good practice in these scenarios to
introduce an intermediate page with a
ERXLongResponseTask.DefaultImplementation subclass and a
ERXLongResponsePage component to let the user see a loading page while
fetching from the DB (example Search Result in large DB), before render the
component.

Is it possible to you to alterate the WO App to do this?

Another solution can be to optimize the DB (maybe moving on a dedicate
machine, physical or virtual, configured to speedup db results), making the
fetch result in few seconds.

Bye

Il giorno mar 5 apr 2016 alle ore 11:03 Benjamin Chew 
ha scritto:

> Hi Everyone,
>
> I’m wondering if any of you kind souls can help me. :)
>
> I’m in Singapore working off a VPN connection to the States, and while
> waiting for some database-intensive components to display, I keep getting
> “No Instance Available” because it’s taking so long to complete all the
> queries (ping times ~ 200ms).
>
> I’ve tried going to WOMonitor on my local machine (localhost:56789) and
> modified the Send, Receive and Connect timeouts, but that didn’t seem to
> help. I’ve also tried changing WOMaxSocketIdleTime and WOLifebeatInterval
> in my Eclipse debugging profile, but that didn’t help either.
>
> Does anyone have any ideas?
>
> Thanks,
> Ben
>  ___
> 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/ildenae%40gmail.com
>
> This email sent to ilde...@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: Performance in many objects manipulation

2016-03-11 Thread Daniele Corti
Hi List,
well, I need to thank Mark for the advice.

I've used the ERXFetchSpecificationBatchIterator in this way:


@Override

public Object performAction() {

 // TODO Auto-generated method stub

 EOEditingContext ec = ERXEC.newEditingContext();

 EOFetchSpecification fs = new EOFetchSpecification(MyEntity.ENTITY_NAME,
new TrueQualifier(), null);

 ERXFetchSpecificationBatchIterator iterator = new
ERXFetchSpecificationBatchIterator(fs, ec, 300);

 totalToImport = iterator.count();

 currentImported = 0;

 while(iterator.hasNext()){

  NSArray entities = (NSArray)
iterator.nextBatch();

  for (MyEntity entity : entities) {

   _ImportEntity(entity, ec);

   currentImported++;

  }

  entities = null;

  ec.dispose();

  ec = null;

  ec = ERXEC.newEditingContext();

  iterator.setEditingContext(ec);

  System.gc();

  }

  return _errors;

}


This seems to work, because this procedure (plus other two that manage
other 1 objects) without ERXFetchSpecificationBatchIterator needs about
4 hours to complete.
After implementing the ERXFetchSpecificationBatchIterator I was able to to
everything in less than an hour.

Thank you very much for the help!!!

Daniele




Il giorno gio 10 mar 2016 alle ore 17:27 Daniele Corti <ilde...@gmail.com>
ha scritto:

> Hi,
> I've seen the class!
>
> Now, I'm trying to use it, when I finish the migration, I'll post the
> differences!
>
> Thank You
>
>
>
> Il giorno gio 10 mar 2016 alle ore 17:13 Mark Wardle <m...@wardle.org> ha
> scritto:
>
>> Yes. I have just checked and found ERXFetchSpecificationBatchIterator in
>> er.extensions.
>>
>> Mark
>>
>> On 10 Mar 2016, at 10:51, Daniele Corti <ilde...@gmail.com> wrote:
>>
>> Hi,
>> I have a question, about performance while working with LongRequest and
>> many EO.
>>
>> Here's the situation: I've prepared a class that extends
>> ERXLongResponseTask.DefaultImplementation.
>> In this class, I operate a database migration, over 1 record.
>> Each of them has, at least, 50/60 objects releated. From them, I create
>> others objects, for a total of 60 new objects for each of the starting
>> 1 rows.
>>
>> The procedure works fine, but, I experience a difference in speed during
>> the procedure. At first, 300-400 objects are processed in few seconds, then
>> the procedure slow down until, from 5000, it processes about 7/8 objects in
>> 5 seconds.
>>
>> The procedure is very simple:
>> 1. Fetch all objects in a NSArray
>> 2. Manipulate each object in a for loop, fetching related objects and
>> creating other objects in every iteration.
>>
>> I use just one EOEditingContext, so, I think the slowness begin when it
>> became really full of elements.
>>
>> I would like to know, if there is a way to "clean up" the manipulated
>> objects from the EC, or if a different approach is preferred.
>>
>> One last thing: it is good to use a NSArray of 1000 object in the for
>> loop to do this? I ask this because, I fetch all the objects and save them
>> in memory using EOObject.fetchAllObjects(EC) method from the class.
>>
>> Thanks in advance!
>> Daniele C.
>>
>> ___
>> 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/mark%40wardle.org
>>
>> This email sent to m...@wardle.org
>>
>>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Performance in many objects manipulation

2016-03-10 Thread Daniele Corti
Hi,
I've seen the class!

Now, I'm trying to use it, when I finish the migration, I'll post the
differences!

Thank You



Il giorno gio 10 mar 2016 alle ore 17:13 Mark Wardle <m...@wardle.org> ha
scritto:

> Yes. I have just checked and found ERXFetchSpecificationBatchIterator in
> er.extensions.
>
> Mark
>
> On 10 Mar 2016, at 10:51, Daniele Corti <ilde...@gmail.com> wrote:
>
> Hi,
> I have a question, about performance while working with LongRequest and
> many EO.
>
> Here's the situation: I've prepared a class that extends
> ERXLongResponseTask.DefaultImplementation.
> In this class, I operate a database migration, over 1 record.
> Each of them has, at least, 50/60 objects releated. From them, I create
> others objects, for a total of 60 new objects for each of the starting
> 1 rows.
>
> The procedure works fine, but, I experience a difference in speed during
> the procedure. At first, 300-400 objects are processed in few seconds, then
> the procedure slow down until, from 5000, it processes about 7/8 objects in
> 5 seconds.
>
> The procedure is very simple:
> 1. Fetch all objects in a NSArray
> 2. Manipulate each object in a for loop, fetching related objects and
> creating other objects in every iteration.
>
> I use just one EOEditingContext, so, I think the slowness begin when it
> became really full of elements.
>
> I would like to know, if there is a way to "clean up" the manipulated
> objects from the EC, or if a different approach is preferred.
>
> One last thing: it is good to use a NSArray of 1000 object in the for loop
> to do this? I ask this because, I fetch all the objects and save them in
> memory using EOObject.fetchAllObjects(EC) method from the class.
>
> Thanks in advance!
> Daniele C.
>
> ___
> 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/mark%40wardle.org
>
> This email sent to m...@wardle.org
>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Performance in many objects manipulation

2016-03-10 Thread Daniele Corti
Hi,
I have a question, about performance while working with LongRequest and
many EO.

Here's the situation: I've prepared a class that extends
ERXLongResponseTask.DefaultImplementation.
In this class, I operate a database migration, over 1 record.
Each of them has, at least, 50/60 objects releated. From them, I create
others objects, for a total of 60 new objects for each of the starting
1 rows.

The procedure works fine, but, I experience a difference in speed during
the procedure. At first, 300-400 objects are processed in few seconds, then
the procedure slow down until, from 5000, it processes about 7/8 objects in
5 seconds.

The procedure is very simple:
1. Fetch all objects in a NSArray
2. Manipulate each object in a for loop, fetching related objects and
creating other objects in every iteration.

I use just one EOEditingContext, so, I think the slowness begin when it
became really full of elements.

I would like to know, if there is a way to "clean up" the manipulated
objects from the EC, or if a different approach is preferred.

One last thing: it is good to use a NSArray of 1000 object in the for loop
to do this? I ask this because, I fetch all the objects and save them in
memory using EOObject.fetchAllObjects(EC) method from the class.

Thanks in advance!
Daniele C.
 ___
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: NoClassDefFoundError

2016-02-20 Thread Daniele Corti
Are the permissions over the frameworks correct?

Ah, I had a problem with the same error when i compile the project using a
framework open as a project in eclipse. I don't know if is your case, but i
close all the framework projects in Eclipse and force rebuild the app.
Il 20/feb/2016 05:03, "Jeff Schmitz" <jeffschm...@icloud.com> ha scritto:

> I believe they are.
>
> NEXT_ROOT is set to /opt
>
> and the frameworks are installed in /opt/Library/Frameworks, including
> ERJars.framework
>
> Jeff
>
>
> On Feb 19, 2016, at 2:49 AM, Daniele Corti <ilde...@gmail.com> wrote:
>
> Hi Jeff,
> the slf4j is in the ERJar framework. Check the NEXT_ROOT variable and see
> if the frameworks are correctly copied in the Local path on the new machine.
>
>
>
> 2016-02-19 1:09 GMT+01:00 Jeff Schmitz <jeffschm...@icloud.com>:
>
>> Hello list,
>>   I’m trying to deploy to a new machine and am getting the below
>> classpath error when I start my app from the command line. I can build and
>> run in my dev environment as well as deploy to a different machine.  I
>> checked JAVA_HOME and it looks good so I’m not sure what to check next.
>> I’m guessing my main project is looking in the wrong place for the
>> frameworks and added libs on the deployment machine, but I’m not sure what
>> property tells it where to look when deployed.  I’m hoping this is a simple
>> one.
>>
>>
>> Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
>> at er.extensions.eof.ERXConstant.(ERXConstant.java:140)
>> at
>> er.extensions.appserver.ERXApplication$Loader.(ERXApplication.java:588)
>> at
>> er.extensions.appserver.ERXApplication.setup(ERXApplication.java:1066)
>> at
>> er.extensions.appserver.ERXApplication.main(ERXApplication.java:873)
>>
>> Thanks!
>> Jeff
>>  ___
>> 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/ildenae%40gmail.com
>>
>> This email sent to ilde...@gmail.com
>
>
>
>
> --
> Daniele Corti
> --
> I DON'T DoubleClick
>
>
>
 ___
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: NoClassDefFoundError

2016-02-19 Thread Daniele Corti
Hi Jeff,
the slf4j is in the ERJar framework. Check the NEXT_ROOT variable and see
if the frameworks are correctly copied in the Local path on the new machine.



2016-02-19 1:09 GMT+01:00 Jeff Schmitz <jeffschm...@icloud.com>:

> Hello list,
>   I’m trying to deploy to a new machine and am getting the below classpath
> error when I start my app from the command line. I can build and run in my
> dev environment as well as deploy to a different machine.  I checked
> JAVA_HOME and it looks good so I’m not sure what to check next.  I’m
> guessing my main project is looking in the wrong place for the frameworks
> and added libs on the deployment machine, but I’m not sure what property
> tells it where to look when deployed.  I’m hoping this is a simple one.
>
>
> Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
> at er.extensions.eof.ERXConstant.(ERXConstant.java:140)
> at
> er.extensions.appserver.ERXApplication$Loader.(ERXApplication.java:588)
> at
> er.extensions.appserver.ERXApplication.setup(ERXApplication.java:1066)
> at
> er.extensions.appserver.ERXApplication.main(ERXApplication.java:873)
>
> Thanks!
> Jeff
>  ___
> 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/ildenae%40gmail.com
>
> This email sent to ilde...@gmail.com




-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Apache 2.4 WebObjects adaptor for CentOS 6 i86_64

2016-02-18 Thread Daniele Corti
Hi Stéphan,

did you try the instructions at: https://wiki.wocommunity.org/display/document
ation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux

?

  

BTW, I usually install WO manually, and build the adaptor for my server from
sources:

https://wiki.wocommunity.org/display/documentation/Compiling+the+HTTP+adaptor+
on+Linux  

  

Hope this helps!

  

Daniele

  

> On Feb 18 2016, at 10:58 am, Stéphan Mertz sme...@me.com wrote:  
Hi,

>

>  

>

> I'm looking for the binary of Apache 2.4 WebObjects adaptor for CentOS 6
i86_64.

>

> It is not in


>

>  

>

> Thank you,

>

>  

>

> Stéphan

 ___
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: Ajax jQuery

2016-01-08 Thread Daniele Corti
Hi Mark,

Are you using the jQuery.noConflict() option?

And check the order the js sctipts are loaded in the page. I had lot's of
troubles caused be them. In a project i had to disable the autoload of Ajax
libraries, and load them in the pages throught the wrapper component.

Hope this help
Il 07/gen/2016 22:40, "Mark Gowdy"  ha scritto:

> Hi,
>
> In a nutshell, the Ajax.framework is great, but it causes issues when you
> try to use it in tandem with various jQuery libraries and particularly with
> the BootStrap themes.
> All I really need is a basic Ajax Container, Link and SubmitButton.
>
> I tried ERJQMobile, it sorta worked, but I experienced various reliability
> problems with it.
> I had a look at ERJQuery, but couldn’t really figure out if it could do
> what I needed, or even what it was supposed to do at all.  Can’t find any
> examples anywhere.
>
> Can someone please point me in the right direction.
>
> It’s has driven me to beer (well, slightly more beer than normal).
>
> Thanks in advance,
>
> Mark Gowdy
>
>
>
>  ___
> 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/ildenae%40gmail.com
>
> This email sent to ilde...@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: postgresql eomodeler correctly generate sql

2015-07-20 Thread Daniele Corti
 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/ildenae%40gmail.com

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




-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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

Creating Component with special behaviour

2015-07-17 Thread Daniele Corti
Hi list,

I need an advice about a thing that I would like to do:

I'm trying to create a component that works like a generic container, the
difference is that it doesn't inject the inner HTML where the component is
defined, but in the bottom of the page. I want to do this, because I would
like to use in with the Bootstrap Modal Container.

Example:

wo:form class=form-horizontal
   .. other form fields...
wo:MyModalContainer linkText = Click Me classLink=btn btn-default
id=MyModal
wo:form
... logic for another form...
/wo:form
/wo:MyModalContainer
... other form fields...
/wo:form

I would like the result:

form action=WEBOBJECT_URL method=post
 .. other form fields...
a href=# class=btn bnt-default data-toggle=modal
data-target=#MyModalClick Me/a
 .. other form fields...
/form
... other page HTML...
div class=modal fade id=MyModal tabindex=-1 role=dialog 
  div class=modal-dialog role=document
div class=modal-content
   from action=OTHER_WEBOBJECT_URL method=post
   ... logic for another form...
   /form
/div
  /div
/div
/body

That's the idea: the code contained in the container is appended to the
bottom of the page (with the appropriate changes), but the form still work
inside the component it is defined.
I need to do this, because, if i put the code where the component is
defined, the second form is removed, changing the HTML DOM, and the fields
in the second form inherit the class form-horizontal from the first form.

Is there a way to do this?

Thanks!
--

Daniele Corti
--
I DON'T DoubleClick
 ___
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: Apache 2.4 and CentOS 7

2015-03-03 Thread Daniele Corti
Hi Nilton,
I've installed a Test Machine in CentOS 7 just the passed week, so I can
give you some advices.

First, I've used CentOS 7 form my last 2  WO servers, but I've never used
the YUM repo to install WOTaskd and WOMonitor, I really prefer use the
manual installation from
https://wiki.wocommunity.org/display/documentation/Deploying+on+Linux

The guide works quite well also in CentOS 7, just, as you notice, there is
not a prebuilded adaptor for apache 2.4, so I have to compile it on the
server. (
https://wiki.wocommunity.org/display/documentation/Compiling+the+HTTP+adaptor+on+Linux
 )

One thing: when I run the compiling procedure, the procedure throws ad
error on one of the versions, so I've to enter the folder of Apache2.4 and
run make CC=gcc again in order to compile the apache module.

The other parts seem to works fine.

Feel free to contact me, if you have some problems.

Bye,

2015-03-03 15:14 GMT+01:00 Nilton Lessa nle...@molequedeideias.net:

 Hi list,

 Anyone with previous experience using the WO mod in a  CentOS 7.0 /
 Apache/2.4.6  deployment?

 Any problems noticed?

 Isn’t there a prebuilt module, is there?

 thank you very much for help and advices.

 Cheers.

 Nilton

 Nilton Lessa
 Moleque de Ideias
 nle...@molequedeideias.net
 55-21-27047356
 55-21-991840247






  ___
 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/ildenae%40gmail.com

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




-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: WOLips Copy Paste issue on Yosemite

2015-02-19 Thread Daniele Corti
Hi,
seems Eclipse is not very efficient in Mac OS environment...

I've made some Android Coding in the last years, and I worked with the ADT
(Android Developer Tools)  that is a striped version of Eclipse.

When I passed to Maverick, and moreover on Yosemite, the IDE start to work
very bad (the devices were not seen, error on building Workspace). So I've
passed to the Android Studio (based on IntelliJ), thing that solved almost
all my problems.

Don't know... Eclipse on Mac seems always to work fine until Maverick and I
used it for everything (WO, Java, Android, PHP  HTML). But now, I've
changed also the PHP IDE to Coda2.

Do you know if there is a version of WOLips for other IDEs?

Bye


2015-02-19 15:44 GMT+01:00 Markus Ruggiero mailingli...@kataputt.com:

 I have the same problem, with various Eclipse/WOLips versions, also
 happens in the java editor. Could be Mavericks related but I might have had
 the problem before. I routinely do a double-cmd-c and this usually works. I
 never bothered much as this is only slightly annoying. But the problem is
 definitely real.

 There are other worse focus problems. It is sometimes pretty difficult to
 distinguish between a selection and a highlight-by-eclipse and I often need
 a second click to activate the contents for editing, as the first click
 only activates the window itself, but the Eclipse highlighting suggests
 otherwise and my typing can thus corrupt some text that has scrolled off.
 In that case Eclipse DOES NOT scroll the insertion point into view! That's
 a lot more annoying.

 CU @ WOWODC15
 ---markus---

  On 18.02.2015, at 21:45, CHRISTOPH WICK | i4innovation GmbH, Bonn 
 c...@i4innovation.de wrote:
 
  Hi Daniele,
 
  I remember that I experienced the very same problem some time ago (not
 on Yosemite but on Mavericks).
 
  I didn't found a reliable solution. :-( But I stopped investigating
 since the problem disappeared after a complete reboot of my laptop.
 
  So - at least - you are not alone ...
  C.U.CW
  --
  What are the three enemies of a programmer? Sunlight, oxygen, and the
 appalling roar of the birds.
 
  On 18.02.2015, at 13:07, Daniele Corti ilde...@gmail.com wrote:
 
  Hi List,
  Probably is a bit off topic, but I'm experiencing a strage thing on
 WOLips and I would like to know if someone have passed the same problem.
 
  I've installed on a new installation of Yosemite, not an upgrade (on an
 Mac Pro, Early 2008), the Eclipse 3.8.2 and the WOLips from the URL:
 http://jenkins.wocommunity.org/job/WOLips38Community/lastSuccessfulBuild/artifact/temp/dist
 
  Ok, WO's things works with no problem, but using the Component Editor
 I've some problems with the shortcut Command + C in order to Copy text.
 
  I mean: I select the code I would like to copy, press Apple Command + C
 buttons, then I move where I would like to paste, and press Command + V,
 but the code that is pasted is the previous copied text, not the last one.
 
  This only occurs with the shortcut (using the Keyboard, I mean),
 because if I right click on the selected text and select Copy from the
 contextual menu, the copy is correctly performed.
 
  That's very strange, even because it not happen every times, but enough
 to be annoying. Keep tring the Command + C button on the same text, at
 last, exec the right command, but sometimes I tried 4 or 5 times with no
 success, before using the mouse!
 
  In the Java Editor, the copy and paste shortcut work with no problem,
 and also in many other programs on the Mac (so I don't think is a problem
 with the Keyboard).
 
  Has anyone experienced something like this?
 
  Thank you in advance!
 
  --
  Daniele Corti
  --
  I DON'T DoubleClick
  ___
  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/cw%40i4innovation.de
 
  This email sent to c...@i4innovation.de
 
 
  ___
  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/mailinglists%40kataputt.com
 
  This email sent to mailingli...@kataputt.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/ildenae%40gmail.com

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




-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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

WOLips Copy Paste issue on Yosemite

2015-02-18 Thread Daniele Corti
Hi List,
Probably is a bit off topic, but I'm experiencing a strage thing on WOLips
and I would like to know if someone have passed the same problem.

I've installed on a new installation of Yosemite, not an upgrade (on an Mac
Pro, Early 2008), the Eclipse 3.8.2 and the WOLips from the URL:
http://jenkins.wocommunity.org/job/WOLips38Community/lastSuccessfulBuild/artifact/temp/dist

Ok, WO's things works with no problem, but using the Component Editor I've
some problems with the shortcut Command + C in order to Copy text.

I mean: I select the code I would like to copy, press Apple Command + C
buttons, then I move where I would like to paste, and press Command + V,
but the code that is pasted is the previous copied text, not the last one.

This only occurs with the shortcut (using the Keyboard, I mean), because if
I right click on the selected text and select Copy from the contextual
menu, the copy is correctly performed.

That's very strange, even because it not happen every times, but enough to
be annoying. Keep tring the Command + C button on the same text, at last,
exec the right command, but sometimes I tried 4 or 5 times with no success,
before using the mouse!

In the Java Editor, the copy and paste shortcut work with no problem, and
also in many other programs on the Mac (so I don't think is a problem with
the Keyboard).

Has anyone experienced something like this?

Thank you in advance!

-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Webobjects-dev Digest, Vol 12, Issue 41

2015-01-29 Thread Daniele Corti
(){
return _selectedItems;
}

public void setSelectedItems(NSMutableArrayItem selected){
_selectedItems = selected;
}

private Item _selectedSingle;

public Item selectedSingle(){
return _selectedSingle;
}

public void setSelectedSingle(Item item){
_selectedSingle = item;
}

/**  * This is the Action fired by links on the table's rows. Call
the Parent Action clickChoosed * @return {@link WOActionResults}  
*/
public WOActionResults clickChoosed() {

_selectedSingle = item;

return performParentAction(clickChoosed);
}



Basically, when I push the submit button or click a link, automatically the
variables in the Main.wo are populated with the result. I can also change
the selections on the TestList.wo checkboxes by changing the content of the
selectedItems array in Main.wo Component.


Hope anyone can find this useful!

Thanks to everyone!


2015-01-28 18:10 GMT+01:00 Daniele Corti ilde...@gmail.com:

 Hi Robet,
 that's what I want to do!

 Thank You!

 I was thinking too much about code, not remembering Bindings are the great
 function in WO.


 Thank you, again!

 --
 Daniele


 2015-01-28 18:01 GMT+01:00 Robert B. Hanviriyapunt 
 roberth...@lstreetc.com:

 Daniele,

 If your components auto synchronize (true, by default), then all you
 would need to do is add a binding.

 MyList.api
 - add mySelection binding (when bound, this will cause array to be pushed
 down to the subcomponent as well as pushed up from the subcomponent at
 various times in request-response cycle)

 if MyList does NOT auto synchronize, then you will need to at the least
 code push up to parent to have the parent get the value, OR use a shortcut
 (at least I know this shortcut is available in the WOD file):

 MyList.wod:

 Foo : MyList {
 mySelection = ^mySelection;
 }

 Then bind a var in the parent component to the subcomponent

 MyPage.wo
 - add binding wo:MyList mySelection=“$myPageMySelection”/

 see:
 http://en.wikibooks.org/wiki/WebObjects/Web_Applications/Development/WO_Component/Binding_Synchronization

 But in general, pages/components don’t have direct access to
 subcomponents.  They push/pull values via bindings or share objects whose
 attributes can be seen by both component classes.

 --
 *Robert B. Hanviriyapunt*
 *Director of Product Development and Architecture*


  / EDC Technology


 Direct 312.246.5509
 Fax 630.243.5799

 roberth...@lstreetc.com
 roberth...@edctechnology.com
 http://www.EDCTechnology.com



 On Jan 28, 2015, at 8:00 AM, webobjects-dev-requ...@lists.apple.com
 wrote:

 Hi Amedeo,
 thanks for the answer, but, sorry, I'm not sure to understand it.
 AFAIK, WODynamicElement
 is a simple HTML Element, not a component, so I cannot assign a .wo file
 to
 it (or am I wrong?).

 Anyway, I'm trying to change my example by moving the submit button on the
 SubComponent and using context().page().takeValueForKey(Object value,
 String key) in the SubComponent Action to set the value in the Parent
 Component, last I call performParentAction(String action) to do the login
 in the parent.

 Not sure if this is the best way, but seems to work.

 Thank you,
 __
 Daniele


 2015-01-28 14:02 GMT+01:00 Amedeo Mantica amedeomant...@me.com:

 The only way is to use a WODynamicElement as subcomponent instead of a
 WOComponent

 Sent from my iPhone

 On 28/gen/2015, at 12:46, Daniele Corti ilde...@gmail.com wrote:

 Hi list,
 I don't know if what I want to do is the best approach:

 I would like to create a Main Component Page that call a reusable

 SubComponent


 Example:

 MyPage.wo:
 h1My Page/h1

 wo:form multipleSubmit=$true
 wo:submitButton action=$myActionDo It!/wo:subimtButton
 wo:MyList/wo:MyList
/wo:form

 in the Subcomponent there is a List of Checkbox

 MyList.wo:
ul
 wo:loop list=$myList item=$myItem
 liwo:checkBox selection=$mySelection

 value=$true/wo:checkBox/li

 /wo:loop
/ul

 I would like to obtain the checked objects of the subcomponent, but I

 don't know how can I get the subcomponent from the Parent MyPage.


 I know I can put the button in the subcomponent and call

 performParentAction, but I would like to put all the logic inside the
 MyPage component, and simply display values in the MyList component.


 Is this possible (first of all)? And, if so, how can I reach

 subcomponents from parent?


 Thank you in advance!

 --
 Daniele Corti
 --
 I DON'T DoubleClick
 ___
 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/amedeomantica%40me.com


 This email sent to amedeomant...@me.com

Re: Getting Selected Values from Subcomponents

2015-01-28 Thread Daniele Corti
Hi Amedeo,
thanks for the answer, but, sorry, I'm not sure to understand it.
AFAIK, WODynamicElement
is a simple HTML Element, not a component, so I cannot assign a .wo file to
it (or am I wrong?).

Anyway, I'm trying to change my example by moving the submit button on the
SubComponent and using context().page().takeValueForKey(Object value,
String key) in the SubComponent Action to set the value in the Parent
Component, last I call performParentAction(String action) to do the login
in the parent.

Not sure if this is the best way, but seems to work.

Thank you,
__
Daniele


2015-01-28 14:02 GMT+01:00 Amedeo Mantica amedeomant...@me.com:

 The only way is to use a WODynamicElement as subcomponent instead of a
 WOComponent

 Sent from my iPhone

  On 28/gen/2015, at 12:46, Daniele Corti ilde...@gmail.com wrote:
 
  Hi list,
  I don't know if what I want to do is the best approach:
 
  I would like to create a Main Component Page that call a reusable
 SubComponent
 
  Example:
 
  MyPage.wo:
   h1My Page/h1
 
   wo:form multipleSubmit=$true
   wo:submitButton action=$myActionDo It!/wo:subimtButton
   wo:MyList/wo:MyList
  /wo:form
 
  in the Subcomponent there is a List of Checkbox
 
  MyList.wo:
  ul
   wo:loop list=$myList item=$myItem
   liwo:checkBox selection=$mySelection
 value=$true/wo:checkBox/li
   /wo:loop
  /ul
 
  I would like to obtain the checked objects of the subcomponent, but I
 don't know how can I get the subcomponent from the Parent MyPage.
 
  I know I can put the button in the subcomponent and call
 performParentAction, but I would like to put all the logic inside the
 MyPage component, and simply display values in the MyList component.
 
  Is this possible (first of all)? And, if so, how can I reach
 subcomponents from parent?
 
  Thank you in advance!
 
  --
  Daniele Corti
  --
  I DON'T DoubleClick
  ___
  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/amedeomantica%40me.com
 
  This email sent to amedeomant...@me.com




-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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

Getting Selected Values from Subcomponents

2015-01-28 Thread Daniele Corti
Hi list,
I don't know if what I want to do is the best approach:

I would like to create a Main Component Page that call a reusable
SubComponent

Example:

MyPage.wo:
 h1My Page/h1

 wo:form multipleSubmit=$true
 wo:submitButton action=$myActionDo It!/wo:subimtButton
 wo:MyList/wo:MyList
/wo:form

in the Subcomponent there is a List of Checkbox

MyList.wo:
ul
 wo:loop list=$myList item=$myItem
 liwo:checkBox selection=$mySelection
value=$true/wo:checkBox/li
 /wo:loop
/ul

I would like to obtain the checked objects of the subcomponent, but I don't
know how can I get the subcomponent from the Parent MyPage.

I know I can put the button in the subcomponent and call
performParentAction, but I would like to put all the logic inside the
MyPage component, and simply display values in the MyList component.

Is this possible (first of all)? And, if so, how can I reach subcomponents
from parent?

Thank you in advance!

-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Webobjects-dev Digest, Vol 12, Issue 41

2015-01-28 Thread Daniele Corti
Hi Robet,
that's what I want to do!

Thank You!

I was thinking too much about code, not remembering Bindings are the great
function in WO.


Thank you, again!

--
Daniele


2015-01-28 18:01 GMT+01:00 Robert B. Hanviriyapunt roberth...@lstreetc.com
:

 Daniele,

 If your components auto synchronize (true, by default), then all you would
 need to do is add a binding.

 MyList.api
 - add mySelection binding (when bound, this will cause array to be pushed
 down to the subcomponent as well as pushed up from the subcomponent at
 various times in request-response cycle)

 if MyList does NOT auto synchronize, then you will need to at the least
 code push up to parent to have the parent get the value, OR use a shortcut
 (at least I know this shortcut is available in the WOD file):

 MyList.wod:

 Foo : MyList {
 mySelection = ^mySelection;
 }

 Then bind a var in the parent component to the subcomponent

 MyPage.wo
 - add binding wo:MyList mySelection=“$myPageMySelection”/

 see:
 http://en.wikibooks.org/wiki/WebObjects/Web_Applications/Development/WO_Component/Binding_Synchronization

 But in general, pages/components don’t have direct access to
 subcomponents.  They push/pull values via bindings or share objects whose
 attributes can be seen by both component classes.

 --
 *Robert B. Hanviriyapunt*
 *Director of Product Development and Architecture*


  / EDC Technology


 Direct 312.246.5509
 Fax 630.243.5799

 roberth...@lstreetc.com
 roberth...@edctechnology.com
 http://www.EDCTechnology.com



 On Jan 28, 2015, at 8:00 AM, webobjects-dev-requ...@lists.apple.com wrote:

 Hi Amedeo,
 thanks for the answer, but, sorry, I'm not sure to understand it.
 AFAIK, WODynamicElement
 is a simple HTML Element, not a component, so I cannot assign a .wo file to
 it (or am I wrong?).

 Anyway, I'm trying to change my example by moving the submit button on the
 SubComponent and using context().page().takeValueForKey(Object value,
 String key) in the SubComponent Action to set the value in the Parent
 Component, last I call performParentAction(String action) to do the login
 in the parent.

 Not sure if this is the best way, but seems to work.

 Thank you,
 __
 Daniele


 2015-01-28 14:02 GMT+01:00 Amedeo Mantica amedeomant...@me.com:

 The only way is to use a WODynamicElement as subcomponent instead of a
 WOComponent

 Sent from my iPhone

 On 28/gen/2015, at 12:46, Daniele Corti ilde...@gmail.com wrote:

 Hi list,
 I don't know if what I want to do is the best approach:

 I would like to create a Main Component Page that call a reusable

 SubComponent


 Example:

 MyPage.wo:
 h1My Page/h1

 wo:form multipleSubmit=$true
 wo:submitButton action=$myActionDo It!/wo:subimtButton
 wo:MyList/wo:MyList
/wo:form

 in the Subcomponent there is a List of Checkbox

 MyList.wo:
ul
 wo:loop list=$myList item=$myItem
 liwo:checkBox selection=$mySelection

 value=$true/wo:checkBox/li

 /wo:loop
/ul

 I would like to obtain the checked objects of the subcomponent, but I

 don't know how can I get the subcomponent from the Parent MyPage.


 I know I can put the button in the subcomponent and call

 performParentAction, but I would like to put all the logic inside the
 MyPage component, and simply display values in the MyList component.


 Is this possible (first of all)? And, if so, how can I reach

 subcomponents from parent?


 Thank you in advance!

 --
 Daniele Corti
 --
 I DON'T DoubleClick
 ___
 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/amedeomantica%40me.com


 This email sent to amedeomant...@me.com





-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: WO with WebServices - Error in Serialization

2014-10-31 Thread Daniele Corti
Hi Markus,
thank you very much! I really did not notice this framework...

A question: when was this Framework added to Wonder? I've updated last time
my Wonder copy on March of this year, but I don't have that framework in
the WO Framework list...

Thank you, again!

2014-10-31 11:26 GMT+01:00 Markus Stoll, junidas GmbH 
markus.st...@junidas.de:

 Hi,

 you are dealing with a complete mess of no longer really working stuff.
 The axis 1 framework used in the old WebServices framework was great
 problems
 handling these complex types, actually I would consider this broken.

 Please take a look at the ERJaxWS framework and the talk about it from this
 years WOWODC. The new framework enables you creating webservices using
 JaxWS
 fully integrated into WO / Wonder.

 regards, Markus



  Am 30.10.2014 um 17:34 schrieb Daniele Corti ilde...@gmail.com:
 
  Hi all,
  I'm trying to produce a WebService that create and return a list of
 ERXGenericRecord.
 
  The WS works correctly (I can create the Record in the DB passing the
 parameter I need to create it). But when I call the other action, that
 return all the objects from an entity, and try to return a NSarray with the
 Objects fetched from the DB, I get this error:
 
  IOException: No serializer found for class org.apache.log4j.Logger in
 registry org.apache.axis.encoding.TypeMappingDelegate@1896d2c2
at
 org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
 
at
 org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
 
at
 org.apache.axis.encoding.SerializationContext.outputMultiRefs(SerializationContext.java:1055)
 
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:145)
 
at
 org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
 
at
 org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
 
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
 
at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:632)
 
at org.apache.axis.Message.getSOAPPartAsString(Message.java:412)
 
... skipped 10 stack elements
 
 
  I've followed this Guide to prepare the WS:
 http://wiki.wocommunity.org/display/documentation/Web+Services-Web+Service+Provider
 
  Because, the WS is serializing a complextype I've added also added the
 Factories for the EO.
  WOWebServiceRegistrar.registerFactoriesForClassWithQName(
 
  new BeanSerializerFactory(TestPicture.class, new QName(
 http://ws.app.your;, TestPicture)),
 
  new BeanDeserializerFactory(TestPicture.class, new
 QName(http://ws.app.your;, TestPicture)),
 
  TestPicture.class, new QName(http://ws.app.your;,
 TestPicture));
 
 
 
 
 
  WOWebServiceRegistrar.registerWebService(ImageUpload,
 ImageUpload.class, true);
 
 
 
  Where TestPicture is my EO class, and ImageUpload is my WS.
 
  The WS class ImageUpload has two methods:
 
  public static boolean uploadPicture(String datas);
  public NSArrayTestPicture getPictures();
 
 
  The WSDL is shown correctly, but I don't see the definition for the
 Complex Type:
 
  ?xml version=1.0 encoding=UTF-8?
  wsdl:definitions targetNamespace=
 http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload;
 xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=
 http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload;
 xmlns:intf=
 http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload;
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:tns1=
 http://www.apple.com/webobjects/webservices/soap/; xmlns:wsdl=
 http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=
 http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=
 http://www.w3.org/2001/XMLSchema;
  !--WSDL created by Apache Axis version: 1.4
  Built on Apr 22, 2006 (06:55:48 PDT)--
  wsdl:typesschema targetNamespace=
 http://www.apple.com/webobjects/webservices/soap/; xmlns=
 http://www.w3.org/2001/XMLSchema;
 import namespace=http://schemas.xmlsoap.org/soap/encoding//
 complexType name=NSArray
  complexContent
 restriction base=soapenc:Array
attribute ref=soapenc:arrayType
 wsdl:arrayType=xsd:anyType[]/
 /restriction
  /complexContent
 /complexType
   /schema/wsdl:types
wsdl:message name=getPicturesResponse
  wsdl:part name=getPicturesReturn type=tns1:NSArray/
/wsdl:message
wsdl:message name=uploadPictureRequest
  wsdl:part name=datas type=soapenc:string/
/wsdl:message
wsdl:message name=uploadPictureResponse
  wsdl:part name=uploadPictureReturn type=xsd:boolean/
/wsdl:message
wsdl:message name=getPicturesRequest
/wsdl:message
wsdl:portType name=ImageUpload
  wsdl:operation name=uploadPicture parameterOrder=datas
wsdl:input message=impl:uploadPictureRequest
 name=uploadPictureRequest/
wsdl:output message

Re: WO with WebServices - Error in Serialization

2014-10-31 Thread Daniele Corti
Hi,
 the framework is quite new and was added to Wonder in April

obviously... Sometimes, seems to me, my only purpose is to learn new thing
while they became obsolete...

Anyway, I've tried an implementation of a very simple WebService that write
and read NSData from DB, and it works perfectly.

May I ask an advice? While passing byte[] in WebService, is it preferable
to encode them in a string (like Base64), or is there a better way to
handle them?

Thank you again!


2014-10-31 13:47 GMT+01:00 Markus Stoll, junidas GmbH 
markus.st...@junidas.de:

 hi,

 the framework is quite new and was added to Wonder in April

 Markus

  Am 31.10.2014 um 11:47 schrieb Daniele Corti ilde...@gmail.com:
 
  Hi Markus,
  thank you very much! I really did not notice this framework...
 
  A question: when was this Framework added to Wonder? I've updated last
 time my Wonder copy on March of this year, but I don't have that framework
 in the WO Framework list...
 
  Thank you, again!
 
  2014-10-31 11:26 GMT+01:00 Markus Stoll, junidas GmbH 
 markus.st...@junidas.de:
  Hi,
 
  you are dealing with a complete mess of no longer really working stuff.
  The axis 1 framework used in the old WebServices framework was great
 problems
  handling these complex types, actually I would consider this broken.
 
  Please take a look at the ERJaxWS framework and the talk about it from
 this
  years WOWODC. The new framework enables you creating webservices using
 JaxWS
  fully integrated into WO / Wonder.
 
  regards, Markus
 
 
 
   Am 30.10.2014 um 17:34 schrieb Daniele Corti ilde...@gmail.com:
  
   Hi all,
   I'm trying to produce a WebService that create and return a list of
 ERXGenericRecord.
  
   The WS works correctly (I can create the Record in the DB passing the
 parameter I need to create it). But when I call the other action, that
 return all the objects from an entity, and try to return a NSarray with the
 Objects fetched from the DB, I get this error:
  
   IOException: No serializer found for class org.apache.log4j.Logger in
 registry org.apache.axis.encoding.TypeMappingDelegate@1896d2c2
 at
 org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
  
 at
 org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
  
 at
 org.apache.axis.encoding.SerializationContext.outputMultiRefs(SerializationContext.java:1055)
  
 at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:145)
  
 at
 org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
  
 at
 org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
  
 at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
  
 at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:632)
  
 at org.apache.axis.Message.getSOAPPartAsString(Message.java:412)
  
 ... skipped 10 stack elements
  
  
   I've followed this Guide to prepare the WS:
 http://wiki.wocommunity.org/display/documentation/Web+Services-Web+Service+Provider
  
   Because, the WS is serializing a complextype I've added also added the
 Factories for the EO.
   WOWebServiceRegistrar.registerFactoriesForClassWithQName(
  
   new BeanSerializerFactory(TestPicture.class, new
 QName(http://ws.app.your;, TestPicture)),
  
   new BeanDeserializerFactory(TestPicture.class, new
 QName(http://ws.app.your;, TestPicture)),
  
   TestPicture.class, new QName(http://ws.app.your;,
 TestPicture));
  
  
  
  
  
   WOWebServiceRegistrar.registerWebService(ImageUpload,
 ImageUpload.class, true);
  
  
  
   Where TestPicture is my EO class, and ImageUpload is my WS.
  
   The WS class ImageUpload has two methods:
  
   public static boolean uploadPicture(String datas);
   public NSArrayTestPicture getPictures();
  
  
   The WSDL is shown correctly, but I don't see the definition for the
 Complex Type:
  
   ?xml version=1.0 encoding=UTF-8?
   wsdl:definitions targetNamespace=
 http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload;
 xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=
 http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload;
 xmlns:intf=
 http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload;
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:tns1=
 http://www.apple.com/webobjects/webservices/soap/; xmlns:wsdl=
 http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=
 http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=
 http://www.w3.org/2001/XMLSchema;
   !--WSDL created by Apache Axis version: 1.4
   Built on Apr 22, 2006 (06:55:48 PDT)--
   wsdl:typesschema targetNamespace=
 http://www.apple.com/webobjects/webservices/soap/; xmlns=
 http://www.w3.org/2001/XMLSchema;
  import namespace=http://schemas.xmlsoap.org/soap/encoding//
  complexType name=NSArray
   complexContent
  restriction base=soapenc:Array

WO with WebServices - Error in Serialization

2014-10-30 Thread Daniele Corti
  wsdlsoap:operation soapAction=/
  wsdl:input name=getPicturesRequest
wsdlsoap:body encodingStyle=
http://schemas.xmlsoap.org/soap/encoding/; namespace=http://ws.app.your;
use=encoded/
  /wsdl:input
  wsdl:output name=getPicturesResponse
wsdlsoap:body encodingStyle=
http://schemas.xmlsoap.org/soap/encoding/; namespace=
http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload;
use=encoded/
  /wsdl:output
/wsdl:operation
  /wsdl:binding
  wsdl:service name=ImageUpload
wsdl:port binding=impl:ImageUploadSoapBinding name=ImageUpload
  wsdlsoap:address location=
http://imac-di-daniele:/cgi-bin/WebObjects/WSTester.woa/ws/ImageUpload
/
/wsdl:port
  /wsdl:service
/wsdl:definitions


I really have no idea of what I am wrong... Googling the error, I've not
found something useful...

Thanks in advance for any help!

-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Amazon EC

2014-06-27 Thread Daniele Corti
Hi Gino,
I'm not sure if I've understood exactly what you need, but if you think to
go on AWS, you should use the Amazon RDS (
http://aws.amazon.com/rds/details/ ) to obtain a scalable instance of a DB
of you choice.
This DBs are fully configurable (even on runtime, but I'm not sure) and you
can increase dimensions and connections when needed.
You can create the servers only for hosting the apps, then connecting them
to the DB (I don't know exactly how to do this, because I've never tried
the JDBC on it, but it's like having a DB on another machine, Amazon give
you a the db hostname, the you choose the db name, username and password
for the access).

Another thing: do you need different servers cause you have different Apps?
Or do you want to implement something like load balancing the request
between the servers?

I'm asking this because the EC2 have some features for autoscaling so, if
the requests experience a huge increase the server should auto allocate
resources needed, so you should use a single machine for the app, adding
many instances of it.

Hope this helps you!

--
Daniele



2014-06-27 12:41 GMT+02:00 Gino Pacitti ginok...@mac.com:

 Hi List
 I want to move one of my clients to AmazonEC but there seems to be a whole
 array of choices..

 I need to have a machine running monitor routing instance requests to 2 or
 more servers that can then read/write to a separate database server so I
 was thinking of a set of 4 servers. It might need to grow with additional
 instances…

 Any suggestions?


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

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

DirectAction with multipart/form-data does not get multiple parameters

2014-03-24 Thread Daniele Corti
Hi,
I've preparing a Direct Action for upload a Picture and generate a PDF with
it inside.

I send two other parameters in POST: wosid, in order to load the session
where the user is logged in, and the PK of a Table, in order to load the
data for the PDF.

I'm trying in Debug mode, and I can upload the Picture, but, except for the
com.webobjects.appserver._private.WOInputStreamData with the image datas,
no other parameter is passed to the direct action.

I've tried to print the result of request().formValues() in the Direct
Action, and the result is:
{Signature =
(class com.webobjects.appserver._private.WOInputStreamData (stream
com.webobjects.appserver.WOMultipartIterator$WOFormData$_WOFormDataInputStream@d335207of
length 0), has NOT been accessed);
 Signature.mimetype = (image/png);
Signature.filename = (Senzanome.png);
}

Looking with the firebug in the request I send the datas:

POST:
-13870208907251100452102313237 Content-Disposition:
form-data; name=Signature; filename=bg-movie-closer.png Content-Type:
image/png ‰PNG ���
...(Other Datas from Image)

'Éé—ó IEND®B`‚
-13870208907251100452102313237 Content-Disposition:
form-data; name=wosid flB2bNYt7JdfAxsvtIbtpw
-13870208907251100452102313237 Content-Disposition:
form-data; name=Stabilimento 85
-13870208907251100452102313237 Content-Disposition:
form-data; name=send
 -13870208907251100452102313237--

So it seems to me, that I'm sending the form datas.

In session construct I set: setStoresIDsInURLs(false);
setStoresIDsInCookies(false); no other changes.

Do you know, if it is not possible to send multipart data through direct
action?
Thanks in advance!
-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: DirectAction with multipart/form-data does not get multiple parameters

2014-03-24 Thread Daniele Corti
Thank You Aaron!
As you said, the Image must be the last paraments in request, I simply
change the parameters order and the datas are correctly passed.

Just, one thing: you said To get around that you can use the streaming
api.. Do you have a link to docs or to examples of usage for Streaming
API?
I've tried to google it or search on wocommunity portal, but I haven't
found what are you talking about...

Thank You!

Daniele


2014-03-24 13:53 GMT+01:00 Aaron Rosenzweig aa...@chatnbike.com:

 Hi Daniele,

 I don’t believe it is so much a “Direct Action” versus “Component Action”
 issue.

 It’s more like the way WO handles that kind of fileUpload image data. By
 default, the normal ways with NSData on the back, you can only have one
 binary image like that and it must be last. To get around that you can use
 the streaming api.

 Cheers,
   *Aaron Rosenzweig* / Chat 'n Bike http://www.chatnbike.com
 *e:*  aa...@chatnbike.com  *t:*  (301) 956-2319   [image: Chat 'n Bike]  
 [image:
 Chat 'n Bike]

 On Mar 24, 2014, at 8:17 AM, Daniele Corti ilde...@gmail.com wrote:

 Hi,
 I've preparing a Direct Action for upload a Picture and generate a PDF
 with it inside.

 I send two other parameters in POST: wosid, in order to load the session
 where the user is logged in, and the PK of a Table, in order to load the
 data for the PDF.

 I'm trying in Debug mode, and I can upload the Picture, but, except for
 the com.webobjects.appserver._private.WOInputStreamData with the image
 datas, no other parameter is passed to the direct action.

 I've tried to print the result of request().formValues() in the Direct
 Action, and the result is:
 {Signature =
 (class com.webobjects.appserver._private.WOInputStreamData (stream
 com.webobjects.appserver.WOMultipartIterator$WOFormData$_WOFormDataInputStream@d335207of
  length 0), has NOT been accessed);
  Signature.mimetype = (image/png);
 Signature.filename = (Senzanome.png);
 }

 Looking with the firebug in the request I send the datas:

 POST:
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=Signature; filename=bg-movie-closer.png Content-Type:
 image/png ‰PNG ���
 ...(Other Datas from Image)

 'Éé—ó IEND®B`‚
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=wosid flB2bNYt7JdfAxsvtIbtpw
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=Stabilimento 85
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=send
  -13870208907251100452102313237--

 So it seems to me, that I'm sending the form datas.

 In session construct I set: setStoresIDsInURLs(false);
 setStoresIDsInCookies(false); no other changes.

 Do you know, if it is not possible to send multipart data through direct
 action?
 Thanks in advance!
 --
 Daniele Corti
 --
 I DON'T DoubleClick
  ___
 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/aaron%40chatnbike.com

 This email sent to aa...@chatnbike.com





-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: DirectAction with multipart/form-data does not get multiple parameters

2014-03-24 Thread Daniele Corti
Hi, thank you for explanation!

Unfortunately, I'm not using a WOComponent to invoke the DirectAction. This
DA is intended to be used from an Android App for uploading a Signature to
the PDF generated.

Thank you, anyway!

Daniele



2014-03-24 14:20 GMT+01:00 Aaron Rosenzweig aa...@chatnbike.com:

 You need to read the docs on WOFileUpload but here is a rough example:

 upload : WOFileUpload {
 filePath = fileName;
 bufferSize = 2000;
 size = 20;
  outputStream = byteArray;
 }

 // variables for the data displayed on screen, submitted into the form
 public String fileName;

 public ByteArrayOutputStream byteArray = new ByteArrayOutputStream(1024*1024);

 I think “filePath” is somehow mandatory even if you don’t use it.

 Basically you are dealing with a component that has been extended over the
 years (by Apple) that has grown up and worked around some problems in the
 early days of the web. In the original HTML 1.0 days I think you really
 only could have 1 image and it must be last. But with a newer parser and
 some more maturity, it is possible to stream any number of large binary
 files and in any order if you “stream” them. That’s about the best I can do
 for a brief answer that is not entirely factual but relatively close to the
 truth.
   *Aaron Rosenzweig* / Chat 'n Bike http://www.chatnbike.com
 *e:*  aa...@chatnbike.com  *t:*  (301) 956-2319   [image: Chat 'n Bike]  
 [image:
 Chat 'n Bike]

 On Mar 24, 2014, at 9:09 AM, Daniele Corti ilde...@gmail.com wrote:

 Thank You Aaron!
 As you said, the Image must be the last paraments in request, I simply
 change the parameters order and the datas are correctly passed.

 Just, one thing: you said To get around that you can use the streaming
 api.. Do you have a link to docs or to examples of usage for Streaming
 API?
 I've tried to google it or search on wocommunity portal, but I haven't
 found what are you talking about...

 Thank You!

 Daniele


 2014-03-24 13:53 GMT+01:00 Aaron Rosenzweig aa...@chatnbike.com:

 Hi Daniele,

 I don’t believe it is so much a “Direct Action” versus “Component Action”
 issue.

 It’s more like the way WO handles that kind of fileUpload image data. By
 default, the normal ways with NSData on the back, you can only have one
 binary image like that and it must be last. To get around that you can use
 the streaming api.

 Cheers,
   *Aaron Rosenzweig* / Chat 'n Bike http://www.chatnbike.com/
 *e:*  aa...@chatnbike.com  *t:*  (301) 956-2319   [image: Chat 'n Bike]  
 [image:
 Chat 'n Bike]

 On Mar 24, 2014, at 8:17 AM, Daniele Corti ilde...@gmail.com wrote:

 Hi,
 I've preparing a Direct Action for upload a Picture and generate a PDF
 with it inside.

 I send two other parameters in POST: wosid, in order to load the session
 where the user is logged in, and the PK of a Table, in order to load the
 data for the PDF.

 I'm trying in Debug mode, and I can upload the Picture, but, except for
 the com.webobjects.appserver._private.WOInputStreamData with the image
 datas, no other parameter is passed to the direct action.

 I've tried to print the result of request().formValues() in the Direct
 Action, and the result is:
 {Signature =
 (class com.webobjects.appserver._private.WOInputStreamData (stream
 com.webobjects.appserver.WOMultipartIterator$WOFormData$_WOFormDataInputStream@d335207of
  length 0), has NOT been accessed);
  Signature.mimetype = (image/png);
 Signature.filename = (Senzanome.png);
 }

 Looking with the firebug in the request I send the datas:

 POST:
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=Signature; filename=bg-movie-closer.png Content-Type:
 image/png ‰PNG ���
 ...(Other Datas from Image)

 'Éé—ó IEND®B`‚
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=wosid flB2bNYt7JdfAxsvtIbtpw
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=Stabilimento 85
 -13870208907251100452102313237 
 Content-Disposition:
 form-data; name=send
  -13870208907251100452102313237--

 So it seems to me, that I'm sending the form datas.

 In session construct I set: setStoresIDsInURLs(false);
 setStoresIDsInCookies(false); no other changes.

 Do you know, if it is not possible to send multipart data through direct
 action?
 Thanks in advance!
 --
 Daniele Corti
 --
 I DON'T DoubleClick
  ___
 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/aaron%40chatnbike.com

 This email sent to aa...@chatnbike.com





 --
 Daniele Corti
 --
 I DON'T DoubleClick





-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
Do not post admin requests to the list

Building Apps with Embedded Frameworks in Eclipse

2014-03-19 Thread Daniele Corti
Hi all,
I've notice a strange thing, while building.

I have to build some new Apps, so I have prepared a separate Workspace on
my iMac, changing the path for Local frameworks in Eclipse - Preferences
- WOLips form to a non standard path
(/Users/daniele/woupdated/Library/Frameworks). I did this in order to
update the Wonder Frameworks in the new path, while in the standard path
(/Library/Frameworks) there are some old frameworks, that I HAVE to
maintain for some old versions of my apps.

Now, I'm building the app with the system and local frameworks embedded,
but I've noticed one thing: after I've added a new Framework to the new
Local path, I can run the apps in Eclipse without problems.
But, if I try to compile it (Right click on build.xml, Run as Ant Build)
Eclipse says Unable to find MyFramework. I've tried to add the framework
to the standard Library path (/Library/Frameworks) and the build was
completed.

Why are the app using the /Library/Frameworks path instead the Local path
used in the workspace?

Thanks in advance!
-- 
Daniele Corti
 ___
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: [SOLVED] Building Apps with Embedded Frameworks in Eclipse

2014-03-19 Thread Daniele Corti
Yup, you're right!
Even if you set a different name for the wolips property file, in the
generated build.xml file the path is always the default:
/Users/%username%/Library/Application Support/WOLips/wolips.properties

I had to change it manual to my new property file.

Thank you!!!

2014-03-19 17:07 GMT+01:00 David Avendasora webobje...@avendasora.com:

 Hi Daniele,

 Paul is right. Ant is unaware of the settings in the WOLips preferences
 pane, but you *can* tell Ant about it without modifying the build.xml file.

 By setting the values in the preferences, you are creating a
 wolips.properties file that holds all those settings. You need to tell ANT
 to use that properties file instead of the default settings.

 The easiest way is to add a wolips.properties entry in the
 build.properties file in the root of the project. If you don't see the
 build.properties file in eclipse, it is likely being filtered out by
 eclipse's filter settings for the WO Explorer view. If you don't know how
 to change those, just go into the finder and open the file from there and
 add the entry. You should be able to copy-paste the path from the WOLips
 preferences pane.

 Good luck!

 Dave

 On Mar 19, 2014, at 11:51 AM, Paul Yu p...@mac.com wrote:

  I'm no expert but Ant and Eclipse uses different paths.  When you run
 build.xml, ant is executed, not eclipse.
 
  I'm sure someone else will point you to the exactly locations of the
 references.
 
  Paul
  On Mar 19, 2014, at 11:28 AM, Daniele Corti ilde...@gmail.com wrote:
 
  Hi all,
  I've notice a strange thing, while building.
 
  I have to build some new Apps, so I have prepared a separate Workspace
 on my iMac, changing the path for Local frameworks in Eclipse -
 Preferences - WOLips form to a non standard path
 (/Users/daniele/woupdated/Library/Frameworks). I did this in order to
 update the Wonder Frameworks in the new path, while in the standard path
 (/Library/Frameworks) there are some old frameworks, that I HAVE to
 maintain for some old versions of my apps.
 
  Now, I'm building the app with the system and local frameworks
 embedded, but I've noticed one thing: after I've added a new Framework to
 the new Local path, I can run the apps in Eclipse without problems.
  But, if I try to compile it (Right click on build.xml, Run as Ant
 Build) Eclipse says Unable to find MyFramework. I've tried to add the
 framework to the standard Library path (/Library/Frameworks) and the build
 was completed.
 
  Why are the app using the /Library/Frameworks path instead the Local
 path used in the workspace?
 
  Thanks in advance!
  --
  Daniele Corti
 
  ___
  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/pyu%40mac.com
 
  This email sent to p...@mac.com
 
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
 
 https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
 
  This email sent to webobje...@avendasora.com


 --
 WebObjects - so easy that even Dave Avendasora can do it!(tm)
 --
 David Avendasora
 Senior Software Abuser
 Nekesto, Inc.









-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: [Ajax] - Returning a file after ajaxlongresponse

2013-08-05 Thread Daniele Corti
Hi Xavier,
I don't think you can use the callback of an AjaxLongResponse to serve a
file. I think this, because that component use javascript to perform a
XMLHttpRequest and update the page with the result, so you cannot put the
file in the response.
I think the easieat way would be to use the callback to show a link after
the longresponse is done, that link has a binding to a method that compose
a response with a file in attachment.

Hope this help.
Daniele
Hello,

I'm having some trouble trying to return a file after an ajaxlongresponse.

I'm currently have my callable task used through ajaxlongresponse
(CCAjaxLongResponsePage), I'm generating a woresponse (which is actually a
file) then hand back this woresponse to the controller component (which is
my regular page where I also initiate the longresponse from.
I'd like the file to be downloaded without user interaction at the end of
the task, but so far I'm just able to get the response into my controller
(so if I make another link on the page to download it works, but I don't
want this extra step).

Any help would be great as I'm running out of ideas on this one:)

Thanks,

Xavier

 ___
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/ildenae%40gmail.com

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

ERXDisplayGroup setQualifier behaviour

2013-01-28 Thread Daniele Corti
Hi everyone,
my app is doing something of strange, and I don't understand what it's
wrong with my code.

I've some Entities that I've to display in a table, so I use the
ERXDisplayGroup class.

Here an example:

public ERXDisplayGroupCollaborator displayGroup() {

// IF Null instantiate it
if(_displayGroup == null){
  _displayGroup = new ERXDisplayGroupCollaborator();

  EOArrayDataSource dataSource = new
EOArrayDataSource(EOClassDescription.classDescriptionForEntityName(Collaborator.ENTITY_NAME),
editingContext());

  //Check user is logged in
  if(session().hasUserLogged()){
   //Check if user has chose the company
   if(session().hasChoosedCompany()){

 dataSource.setArray(Collaborator.fetchCollaboratorsForCompany(editingContext(),
session().company()));
   }
 }
  _displayGroup.setDataSource(dataSource);
  _displayGroup.setCurrentBatchIndex(1);

 _displayGroup.setNumberOfObjectsPerBatch(NUMBER_OF_OBJECTS_PER_BATCH);
  _displayGroup.fetch();
}
return _displayGroup;
}

this method is called as binding in the loop component:
wo:loop list = $displayGroup.displayedObjects item = $object

and the object binding is simply a variable of the component.
private Collaborator object;
//With public getter and setter

on each row I've a link that call:

public WOActionResults selectObj() {
  this.parent().takeValueForKey(object, selectedCollaborator);
  return performParentAction(selectCollaborator);
}

Ok, I'm able to filter the list using the setQualifier method of the
DisplayGroup:

public void setQualifier(EOQualifier qualifier){
displayGroup().setQualifier(qualifier);
displayGroup().fetch();
}

public EOQualifier qualifier() {
return null;
}

I call the list component passing the qualifier binding in the parent
componet:

wo:CollaboratorsList qualifier = $qualifier/wo:CollaboratorsList

When I pass a qualifier the page show the filtered list correctly.

The problem is: when I click on the link with action = $selectObj of the,
for example, 2nd object of filtered list, the object variable in the class
does not contain the instance related to the selected row, but the instance
in the second position of the full list of objects in the displayGroup.

Example:

a table with:

---
| link | Mario Rossi | The Address 1 | His City |
---
| link | John Smith | The Address 2 |  City2 |
---
| link | Francis Cabret | The Address| His City |
---

---

I filter the list for name LIKE *John Smit* and get only one row.

---
| link | John Smith | The Address 2 |  City2 |
---

but when I click on the link, in the action selectObj(), the object
variable contains the instance for Mario Rossi.

That's strange for me...

I thought this should have work, but, evidently, is not so!

Which is the correct way to use the ERXDisplayGroup.setQualifier method?

Thanks in advance!
-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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


Appending hash for page anchor to next url

2012-12-07 Thread Daniele Corti
Hi list,

as I've written in subject, is there a way to append a string to the next
open url, in order to scroll to an anchor in the next page?

I mean:

I click on a WOHyperLink:

wo:link action = $myActionClick Me!/wo:link

And in $myAction binding:

public WOActionResult myAction(){

//Do something

/**
Here goes the code to append an hash
*/

return null;
}

My idea is to append the hash and the ID of the element I want to display.
I know I can do this through Javascript, generating a JS code for the right
ancor, but I want to know if there is a way to do it server side.

Bye  thanks!
-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Appending hash for page anchor to next url

2012-12-07 Thread Daniele Corti
Hi Johann,
for WOHyperlink, it's ok, but I have also some WOSubmitButtons that i would
like to give an anchor.

I've seen submit buttons do not have the fragmentIdentifier binding. Is
there a way to do this?




2012/12/7 Johann Werner j...@oyosys.de

 Hi Daniele,

 WOHyperlink has the binding fragmentIdentifier for this.

 jw


 Am 07.12.2012 um 12:59 schrieb Daniele Corti ilde...@gmail.com:

  Hi list,
 
  as I've written in subject, is there a way to append a string to the
 next open url, in order to scroll to an anchor in the next page?
 
  I mean:
 
  I click on a WOHyperLink:
 
  wo:link action = $myActionClick Me!/wo:link
 
  And in $myAction binding:
 
  public WOActionResult myAction(){
 
  //Do something
 
  /**
  Here goes the code to append an hash
  */
 
  return null;
  }
 
  My idea is to append the hash and the ID of the element I want to
 display. I know I can do this through Javascript, generating a JS code for
 the right ancor, but I want to know if there is a way to do it server side.
 
  Bye  thanks!
  --
  Daniele Corti
  --
  I DON'T DoubleClick




-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: school project

2012-11-29 Thread Daniele Corti
Hi Gabor,
look, if you implement a REST Application under WebObjects and code a Java
Client App using Swing, you can access to DB through REST calls, using
WebObjects, and show datas in the Client, served in XML or JSON format.

Probably this is not a *quick*, solution, but I think it's a quite elegant
solution to serve datas to many users, without using HTML to render the
app. This allow also to centralize the DB in a server and allow many client
to connect to it. Then the Client App can be very little and light to
installa and run over the client machine.

hope this helps.

-- 
Daniele Corti
--
I DON'T DoubleClick


2012/11/29 gabor raz gabor@rucotec.ch

 Hey guys,

 I am learning WebObjects and WOnder and I really enjoy it. It make fun!
 But at the moment we make in my school a project where we create multiuser
 database application with java and the user interface with java swing.
 I would like to use WebObject to create the application but i have to
 create the user interface with java swing. Dose anyone have a quick
 solution how to do that? It don't have to be nice just work :) its
 only for the school and I want to show my teacher how nice
 WebObjects/WOnder is.
 Its a really simple application just to save a book with a title and an
 author name
 into the database, nothing more.


 Gabor Raz
  ___
 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/ildenae%40gmail.com

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


Default WOString Behaviour

2012-11-07 Thread Daniele Corti
Hi list,
maybe stupid question, but, is there a way to define the default behaviour
of WOString?

I mean WOString binding have as default:

escapeHTML = true;
valueWhenEmpty = ;

In most parts of my WebApps I define escapeHTML = $false
and valueWhenEmpty = nbsp;, not just in Tables, to get correct HTML from
WOString.

The problems occurs when I use components from third parts, where I cannot
change the behaviour of subcomponents.

For Example, I use the Validity.framework's GSVExceptionViewer component,
to display errors.

I've notice errors coming from EOEnterpriseObject.checkConsistency() method
have some HTML inside the text (e.g in class User, if email field is empty,
return Please provide a bEmail/b.), so when I display the error the
HTML is escaped and rendered in the page, that is not very beautiful.
To avoid this, I have changed the Component .wod file, in order to
use escapeHTML = false; on WOStrings binds, but it would be nice to do this
globally.

So, the question: is there a way to change default behavior of WOString,
without subclassing it? For example a key in Properties file?

Thanks in advance!

-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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


Passing WOActionResult to Custom Component

2012-10-24 Thread Daniele Corti
Hi,
probably is a simple thing, but I'm not able to create a custom component
that allow to pass a WOActionResult and fire it when the user click on a
button displayed by the component.

I mean, I wanted to create a Component that show a Modal Container that
allow the user to confirm an action. Like:

MyComponent.wo:
wo:AjaxModalDialog label = $linkLabel locked = $true overlayClose =
$false
   wo:WOForm
  p
 wo:WOString value=$confirmMessage/wo:WOString
  /p
  p
 wo:WOSubmitButton action = $actionToPerform value
=$continueValue/wo:WOSubmitButton
 wo:WOGenericElement elementName = input type =  button  value
=$cancelValue onclick = Modalbox.hide();/wo:WOGenericElement
  /p
   /wo:WOForm
/wo:AjaxModalDialog


the problem is when I call

wo:MyComponent action = $myAction linkLabel = Delete confirmMessage =
Confirm Delete continueValue = Continue cancelValue = Cancel /

How can I handle the passed WOActionResult in the action bind to fire it
when the user press the SubmitButton?

I've notice that I cannot add a public WOActionResult action; attribute
to the MyComponent.java class and point the WOSubmitButton action to it (I
mean wo:WOSubmitButton action = $action /)  , or the WOActionResult is
fired when the component is rendered.

I think that I have to subclass the ERXDynamicElement in order to do this,
but I've not found any example in the WOCommunity Wiki about how it works.

Thanks in advance for any help!
-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Passing WOActionResult to Custom Component

2012-10-24 Thread Daniele Corti
Hi!

Thank you, this was exactly what I need!

Following your advice I subclassed ERXNonSynchronizingComponent in
MyComponent.

Then I've added :

wo:WOSubmitButton action = $^action value = $^confirmLabel/
wo:WOSubmitButton
I call MyComponent:

wo:MyComponent action=$myAction confirmLabel = Confirm /

And Everything works as needed!

Thank you!

In an unrelated note, I've lost an half of hour because a strange behaviour
in AjaxModalDialog:

in my component I call wo:MyComponent inside a WOForm, so the form inside
the ModalDialog is stripped (cause nested forms are note allowed). The
problem was: AjaxModalDialog does not render the HTML inside the element
where the Component is defined, but in a custom div injected as first body
child. Results, the Modal is render with no form inside and the button fire
no action.

That was frustrating... ;-P

2012/10/24 Bastian Triller bastian.tril...@gmail.com

 did you override synchronizesVariablesWithBindings in MyComponent, so
 that it returns false?
 That prevents the action to get fired while rendering MyComponent. You
 cann then bind the action to the SubmitButton in MyComponent with
 ^actionBindingName in the parent component of MyComponent.
 See CCSmartAjaxButton or similar.

 Am Mittwoch, den 24.10.2012, 16:14 +0200 schrieb Daniele Corti:
  Hi,
  probably is a simple thing, but I'm not able to create a custom
  component that allow to pass a WOActionResult and fire it when the
  user click on a button displayed by the component.
 
 
  I mean, I wanted to create a Component that show a Modal Container
  that allow the user to confirm an action. Like:
 
 
  MyComponent.wo:
  wo:AjaxModalDialog label = $linkLabel locked = $true overlayClose
  = $false
 wo:WOForm
p
   wo:WOString value=$confirmMessage/wo:WOString
/p
p
   wo:WOSubmitButton action = $actionToPerform value
  =$continueValue/wo:WOSubmitButton
   wo:WOGenericElement elementName = input type =  button
   value =$cancelValue onclick =
  Modalbox.hide();/wo:WOGenericElement
/p
 /wo:WOForm
  /wo:AjaxModalDialog
 
 
 
 
  the problem is when I call
 
 
  wo:MyComponent action = $myAction linkLabel = Delete
  confirmMessage = Confirm Delete continueValue = Continue
  cancelValue = Cancel /
 
 
  How can I handle the passed WOActionResult in the action bind to fire
  it when the user press the SubmitButton?
 
 
  I've notice that I cannot add a public WOActionResult action;
  attribute to the MyComponent.java class and point the WOSubmitButton
  action to it (I mean wo:WOSubmitButton action = $action /)  , or
  the WOActionResult is fired when the component is rendered.
 
 
  I think that I have to subclass the ERXDynamicElement in order to do
  this, but I've not found any example in the WOCommunity Wiki about how
  it works.
 
 
  Thanks in advance for any help!
   ___
  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/bastian.triller%40gmail.com
 
  This email sent to bastian.tril...@gmail.com





-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Deployment on Linux (jdbc driver pb)

2012-07-18 Thread Daniele Corti
Hi,
Or, maybe, you have to manipulate tables with foreign key (so MyISAM is
unusable and InnoDB has some, how could you say, problems with variable
length columns), and millions of records (so MySQL is NOT the solution).

After we leave OS X at server side, passing to linux, I've changed to
PostgreSQL and I have no more DB problems!


2012/7/18 Ramsey Gurley ramseygur...@gmail.com


 On Jul 17, 2012, at 12:30 PM, Kieran Kelleher wrote:

 Or just don't use MySQL ;-)  I find it's full of fun little surprises like
 this one.


 LOL - only if you don't read the docs - and yeah, it should be plug and
 play with sensible default settings, but what ever is nowadays ;-)


 Me? Read documents? Ha! ;D



  ___
 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/ildenae%40gmail.com

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




-- 
Daniele
--
I DON'T DoubleClick
 ___
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: Logging on LINUX

2012-07-17 Thread Daniele Corti
Hi,
mmm, how much time as passed from you restart app and check the directory?

I'm asking 'cause, when starting app in JavaMonitor, Log flush is not
immediate, for example one of my app has flushed the last logs about 3
hours ago.


2012/7/17 Jean Pierre Malrieu jp.malr...@free.fr

 Hi,

 Sorry for my very basic questions, but it's been a while since I had to
 bother about deployment.
 What are the steps necessary to allow logging for an application deployed
 on LINUX?
 I have created a directory, owned by appserver, and told JavaMonitor to
 log there. But nothing happens...
 What I am forgetting here?

 TIA

 JPM
  ___
 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/ildenae%40gmail.com

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




-- 
Daniele
--
I DON'T DoubleClick
 ___
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: Logging on LINUX

2012-07-17 Thread Daniele Corti
2012/7/17 jp.malr...@free.fr

 That was yesterday.
 Does this directory need to be writtable by apache?


I think the directory just have to be writable by the user that runs the
wotask app.

Check in the monitor the real path for the log file (Monitor -
Applications - App Detail View - Config - Output Path) and test if the
file has be created. If not, probably is a permissions problem, try first
to add the full perm at the directory and see if it works.

Bye
-- 
Daniele
--
I DON'T DoubleClick


 - Mail original -
 De: Daniele Corti ilde...@gmail.com
 À: Jean Pierre Malrieu jp.malr...@free.fr
 Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
 Envoyé: Mardi 17 Juillet 2012 11:31:12
 Objet: Re: Logging on LINUX


 Hi, mmm, how much time as passed from you restart app and check the
 directory?


 I'm asking 'cause, when starting app in JavaMonitor, Log flush is not
 immediate, for example one of my app has flushed the last logs about 3
 hours ago.





 2012/7/17 Jean Pierre Malrieu  jp.malr...@free.fr 


 Hi,

 Sorry for my very basic questions, but it's been a while since I had to
 bother about deployment.
 What are the steps necessary to allow logging for an application deployed
 on LINUX?
 I have created a directory, owned by appserver, and told JavaMonitor to
 log there. But nothing happens...
 What I am forgetting here?

 TIA

 JPM
 ___
 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/ildenae%40gmail.com

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




 --
 Daniele
 --
 I DON'T DoubleClick


 ___
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: Website Hijacked

2012-04-13 Thread Daniele Corti
Hi Gino,
can I suggest you to inspect you site with firebug or something similar?
Try to trace the urls the browser calls and see if there are some strange
url.

Another thing you can try is to disable JS in the browser and see if the
redirection still occurs. If there aren't redirections, the problem is,
probably, some injection in the HTML.

One last thing: the Jon message makes me think if I miss something. You say
you have redirection on another site, but when you are seeing the Adult
site the url in the browser's address bar has changed?


2012/4/13 Gino Pacitti ginok...@mac.com

 yes.. I can look at the form in the source of the page and action points
 to : /cgi-bin/WebObjects... etc... with the component numbers after the /wo
 It seems that for some reason the POST is causing a redirection off to
 another site.

 It just does not happen at every attempt though which is even more
 puzzling..

 Gino

 On 12 Apr 2012, at 20:39, Daniele Corti wrote:

  the url of the form or the link are correctly formed? I mean, do you have
 the HREF and ACTION attribute pointing to /cgi-bin/WebObejcts/YourApp.**
 woa/wo/SESSION_ID/Num.ber.Pro.**Gre.ssi.vehttp://Num.ber.Pro.Gre.ssi.ve?

 2012/4/12 Gino Pacitti ginok...@mac.com
 No .. completely just form submits and links...

 It is weird. A normal link to a Component Action results in the URL
 changing and a Adult site appearing. It looks a bit like DNSSwapping which
 I looked into but I have ran scans on this with no results...


 Gino

 On 12 Apr 2012, at 19:52, Daniele Corti wrote:

 Hi,
 Just one thing that I was thinking: do you use AJAX in the form or link
 where the redirection occurs?

 2012/4/12 Gino Pacitti ginok...@mac.com
 I will have to give that a try...

 Gino

 On 12 Apr 2012, at 19:47, Daniele Corti wrote:

 Hi,
 That's strange, can you download the .woa packages (the Application and
 the WebResources) and install them on a test site and see if the
 redirection happens?


 2012/4/12 Gino Pacitti ginok...@mac.com
 no database seems clean - tried to search for a 'script' word in any
 fields and nothing came back - its like the whole site gets redirected when
 you click a form to go to a Direct Action?

 Gino

 On 12 Apr 2012, at 16:25, Daniele Corti wrote:

 Hi Gino,
 is the Direct Action, actually, generating the HTML from content fetched
 from the DB? If so, can you check the records that are fetched in the DA,
 if they have some script injections?

 Regards,

 2012/4/12 Gino Pacitti ginok...@mac.com
 I have been hijacked...
 Its redirecting and also spreading virus to PC - not everyone but a
 percentage of users have had warnings and alert screen concerning the site.

 What should i look for in the logs?

 Gino

 On 12 Apr 2012, at 16:02, Pascal Robert wrote:

 You are hijacked or you are seeing hacks attempts? What do you see in the
 Apache logs?

 Hi
 Anyone had any experience of how a site can be hijacked?

 I mean that a normal link to a Direct Action gets redirected to a new
 site (Adult Content)

 I cannot see how this is being done - Components does not contain any
 scripts except for Google Ananlytics yet clicking on a submit button or
 links causes this.

 It is also not on every attempt - it seems to happen randomly??

 Any help appreciated

 Gino
 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/probert%40macti.cahttps://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

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


 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ildenae%40gmail.comhttps://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

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



 --
 Daniele Corti
 --
 I DON'T DoubleClick

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects

Re: Website Hijacked

2012-04-13 Thread Daniele Corti
Nothing strange in this url: just a ddns, probably, from a cracked PC.

Do you check if someone have broken in you web server? Maybe someone change
the html directly into the .wo components, or alter the apache
configuration.

2012/4/13 Gino Pacitti ginok...@mac.com

 Take a look at this URL - see attached...

 The link pointed to a regular Component Action with correct domain name
 etc.. but then once clicked turned into this?

 G


 On 13 Apr 2012, at 09:06, Daniele Corti wrote:

  Hi Gino,
 look, I was thinking, yesterday, how to hack a WO site and, IMHO, if you
 have excluded the injection in the DB (eg. someone push a iframe or script
 in the HTML saved in the DB), the only other way is to gain access to the
 repository of the site (throught SSH, FTP, SFTP).

 Can you access to the machine and check for the lasted connections?


 2012/4/13 Gino Pacitti ginok...@mac.com
 Hi Daniel
 I will try with JS disabled to see if I can repeat the problem.

 The URL I see in the source and in the status are correct - it is once
 the form button or link is clicked that the issue occurs. Its like the URL
 clicked is pointing to the Adult or Virus website.

 The URL is something like:

 http://www.mydomain.co.uk/cgi-**bin/WebObjects/Appt.woa/2/wo/**
 imCcv2b2suMZqLswRhNV50/8.16.**14.0http://www.mydomain.co.uk/cgi-bin/WebObjects/Appt.woa/2/wo/imCcv2b2suMZqLswRhNV50/8.16.14.0

 Once clicked it then becomes a completely different URL and the browser
 goes to that page with the malware???

 Its almost like a redirect or something is occuring

 Gino


 On 13 Apr 2012, at 08:39, Daniele Corti wrote:

 Hi Gino,
 can I suggest you to inspect you site with firebug or something similar?
 Try to trace the urls the browser calls and see if there are some strange
 url.

 Another thing you can try is to disable JS in the browser and see if the
 redirection still occurs. If there aren't redirections, the problem is,
 probably, some injection in the HTML.

 One last thing: the Jon message makes me think if I miss something. You
 say you have redirection on another site, but when you are seeing the Adult
 site the url in the browser's address bar has changed?


 2012/4/13 Gino Pacitti ginok...@mac.com
 yes.. I can look at the form in the source of the page and action points
 to : /cgi-bin/WebObjects... etc... with the component numbers after the /wo
 It seems that for some reason the POST is causing a redirection off to
 another site.

 It just does not happen at every attempt though which is even more
 puzzling..

 Gino

 On 12 Apr 2012, at 20:39, Daniele Corti wrote:

 the url of the form or the link are correctly formed? I mean, do you have
 the HREF and ACTION attribute pointing to /cgi-bin/WebObejcts/YourApp.**
 woa/wo/SESSION_ID/Num.ber.Pro.**Gre.ssi.vehttp://Num.ber.Pro.Gre.ssi.ve?

 2012/4/12 Gino Pacitti ginok...@mac.com
 No .. completely just form submits and links...

 It is weird. A normal link to a Component Action results in the URL
 changing and a Adult site appearing. It looks a bit like DNSSwapping which
 I looked into but I have ran scans on this with no results...


 Gino

 On 12 Apr 2012, at 19:52, Daniele Corti wrote:

 Hi,
 Just one thing that I was thinking: do you use AJAX in the form or link
 where the redirection occurs?

 2012/4/12 Gino Pacitti ginok...@mac.com
 I will have to give that a try...

 Gino

 On 12 Apr 2012, at 19:47, Daniele Corti wrote:

 Hi,
 That's strange, can you download the .woa packages (the Application and
 the WebResources) and install them on a test site and see if the
 redirection happens?


 2012/4/12 Gino Pacitti ginok...@mac.com
 no database seems clean - tried to search for a 'script' word in any
 fields and nothing came back - its like the whole site gets redirected when
 you click a form to go to a Direct Action?

 Gino

 On 12 Apr 2012, at 16:25, Daniele Corti wrote:

 Hi Gino,
 is the Direct Action, actually, generating the HTML from content fetched
 from the DB? If so, can you check the records that are fetched in the DA,
 if they have some script injections?

 Regards,

 2012/4/12 Gino Pacitti ginok...@mac.com
 I have been hijacked...
 Its redirecting and also spreading virus to PC - not everyone but a
 percentage of users have had warnings and alert screen concerning the site.

 What should i look for in the logs?

 Gino

 On 12 Apr 2012, at 16:02, Pascal Robert wrote:

 You are hijacked or you are seeing hacks attempts? What do you see in the
 Apache logs?

 Hi
 Anyone had any experience of how a site can be hijacked?

 I mean that a normal link to a Direct Action gets redirected to a new
 site (Adult Content)

 I cannot see how this is being done - Components does not contain any
 scripts except for Google Ananlytics yet clicking on a submit button or
 links causes this.

 It is also not on every attempt - it seems to happen randomly??

 Any help appreciated

 Gino
 __**_
 Do not post admin requests to the list

Re: Website Hijacked

2012-04-13 Thread Daniele Corti
You said you've checked the DB for script injections, but you search also
for iframe?

2012/4/13 Gino Pacitti ginok...@mac.com

 No just see my access and my root access when I logged in.

 G

 On 13 Apr 2012, at 13:35, Daniele Corti wrote:

  Hi Gino,
 did you check access to the server? Exec  # last | more as root from an
 ssh shell and check for last access.

 2012/4/13 Gino Pacitti ginok...@mac.com
 checked the apache config and nothing unusual there.. WO Components are
 all newly updated from devel machine... and contain no script ??

 I am still checking more and more possibilities

 G

 On 13 Apr 2012, at 13:18, Daniele Corti wrote:

 Nothing strange in this url: just a ddns, probably, from a cracked PC.

 Do you check if someone have broken in you web server? Maybe someone
 change the html directly into the .wo components, or alter the apache
 configuration.

 2012/4/13 Gino Pacitti ginok...@mac.com
 Take a look at this URL - see attached...

 The link pointed to a regular Component Action with correct domain name
 etc.. but then once clicked turned into this?

 G


 On 13 Apr 2012, at 09:06, Daniele Corti wrote:

 Hi Gino,
 look, I was thinking, yesterday, how to hack a WO site and, IMHO, if you
 have excluded the injection in the DB (eg. someone push a iframe or script
 in the HTML saved in the DB), the only other way is to gain access to the
 repository of the site (throught SSH, FTP, SFTP).

 Can you access to the machine and check for the lasted connections?


 2012/4/13 Gino Pacitti ginok...@mac.com
 Hi Daniel
 I will try with JS disabled to see if I can repeat the problem.

 The URL I see in the source and in the status are correct - it is once
 the form button or link is clicked that the issue occurs. Its like the URL
 clicked is pointing to the Adult or Virus website.

 The URL is something like:

 http://www.mydomain.co.uk/cgi-**bin/WebObjects/Appt.woa/2/wo/**
 imCcv2b2suMZqLswRhNV50/8.16.**14.0http://www.mydomain.co.uk/cgi-bin/WebObjects/Appt.woa/2/wo/imCcv2b2suMZqLswRhNV50/8.16.14.0

 Once clicked it then becomes a completely different URL and the browser
 goes to that page with the malware???

 Its almost like a redirect or something is occuring

 Gino


 On 13 Apr 2012, at 08:39, Daniele Corti wrote:

 Hi Gino,
 can I suggest you to inspect you site with firebug or something similar?
 Try to trace the urls the browser calls and see if there are some strange
 url.

 Another thing you can try is to disable JS in the browser and see if the
 redirection still occurs. If there aren't redirections, the problem is,
 probably, some injection in the HTML.

 One last thing: the Jon message makes me think if I miss something. You
 say you have redirection on another site, but when you are seeing the Adult
 site the url in the browser's address bar has changed?


 2012/4/13 Gino Pacitti ginok...@mac.com
 yes.. I can look at the form in the source of the page and action points
 to : /cgi-bin/WebObjects... etc... with the component numbers after the /wo
 It seems that for some reason the POST is causing a redirection off to
 another site.

 It just does not happen at every attempt though which is even more
 puzzling..

 Gino

 On 12 Apr 2012, at 20:39, Daniele Corti wrote:

 the url of the form or the link are correctly formed? I mean, do you have
 the HREF and ACTION attribute pointing to /cgi-bin/WebObejcts/YourApp.**
 woa/wo/SESSION_ID/Num.ber.Pro.**Gre.ssi.vehttp://Num.ber.Pro.Gre.ssi.ve?

 2012/4/12 Gino Pacitti ginok...@mac.com
 No .. completely just form submits and links...

 It is weird. A normal link to a Component Action results in the URL
 changing and a Adult site appearing. It looks a bit like DNSSwapping which
 I looked into but I have ran scans on this with no results...


 Gino

 On 12 Apr 2012, at 19:52, Daniele Corti wrote:

 Hi,
 Just one thing that I was thinking: do you use AJAX in the form or link
 where the redirection occurs?

 2012/4/12 Gino Pacitti ginok...@mac.com
 I will have to give that a try...

 Gino

 On 12 Apr 2012, at 19:47, Daniele Corti wrote:

 Hi,
 That's strange, can you download the .woa packages (the Application and
 the WebResources) and install them on a test site and see if the
 redirection happens?


 2012/4/12 Gino Pacitti ginok...@mac.com
 no database seems clean - tried to search for a 'script' word in any
 fields and nothing came back - its like the whole site gets redirected when
 you click a form to go to a Direct Action?

 Gino

 On 12 Apr 2012, at 16:25, Daniele Corti wrote:

 Hi Gino,
 is the Direct Action, actually, generating the HTML from content fetched
 from the DB? If so, can you check the records that are fetched in the DA,
 if they have some script injections?

 Regards,

 2012/4/12 Gino Pacitti ginok...@mac.com
 I have been hijacked...
 Its redirecting and also spreading virus to PC - not everyone but a
 percentage of users have had warnings and alert screen concerning the site.

 What should i look for in the logs?

 Gino

Re: Website Hijacked

2012-04-12 Thread Daniele Corti
Hi Gino,
is the Direct Action, actually, generating the HTML from content fetched
from the DB? If so, can you check the records that are fetched in the DA,
if they have some script injections?

Regards,

2012/4/12 Gino Pacitti ginok...@mac.com

 I have been hijacked...
 Its redirecting and also spreading virus to PC - not everyone but a
 percentage of users have had warnings and alert screen concerning the site.

 What should i look for in the logs?

 Gino

 On 12 Apr 2012, at 16:02, Pascal Robert wrote:

  You are hijacked or you are seeing hacks attempts? What do you see in the
 Apache logs?

  Hi
 Anyone had any experience of how a site can be hijacked?

 I mean that a normal link to a Direct Action gets redirected to a new
 site (Adult Content)

 I cannot see how this is being done - Components does not contain any
 scripts except for Google Ananlytics yet clicking on a submit button or
 links causes this.

 It is also not on every attempt - it seems to happen randomly??

 Any help appreciated

 Gino
 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/probert%40macti.cahttps://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

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



 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com


 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ildenae%40gmail.comhttps://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

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




-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Website Hijacked

2012-04-12 Thread Daniele Corti
Hi,
That's strange, can you download the .woa packages (the Application and the
WebResources) and install them on a test site and see if the redirection
happens?


2012/4/12 Gino Pacitti ginok...@mac.com

 no database seems clean - tried to search for a 'script' word in any
 fields and nothing came back - its like the whole site gets redirected when
 you click a form to go to a Direct Action?

 Gino

 On 12 Apr 2012, at 16:25, Daniele Corti wrote:

  Hi Gino,
 is the Direct Action, actually, generating the HTML from content fetched
 from the DB? If so, can you check the records that are fetched in the DA,
 if they have some script injections?

 Regards,

 2012/4/12 Gino Pacitti ginok...@mac.com
 I have been hijacked...
 Its redirecting and also spreading virus to PC - not everyone but a
 percentage of users have had warnings and alert screen concerning the site.

 What should i look for in the logs?

 Gino

 On 12 Apr 2012, at 16:02, Pascal Robert wrote:

 You are hijacked or you are seeing hacks attempts? What do you see in the
 Apache logs?

 Hi
 Anyone had any experience of how a site can be hijacked?

 I mean that a normal link to a Direct Action gets redirected to a new
 site (Adult Content)

 I cannot see how this is being done - Components does not contain any
 scripts except for Google Ananlytics yet clicking on a submit button or
 links causes this.

 It is also not on every attempt - it seems to happen randomly??

 Any help appreciated

 Gino
 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/probert%40macti.cahttps://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

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


 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ildenae%40gmail.comhttps://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

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



 --
 Daniele Corti
 --
 I DON'T DoubleClick

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com





-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Website Hijacked

2012-04-12 Thread Daniele Corti
Hi,
Just one thing that I was thinking: do you use AJAX in the form or link
where the redirection occurs?

2012/4/12 Gino Pacitti ginok...@mac.com

 I will have to give that a try...

 Gino

 On 12 Apr 2012, at 19:47, Daniele Corti wrote:

  Hi,
 That's strange, can you download the .woa packages (the Application and
 the WebResources) and install them on a test site and see if the
 redirection happens?


 2012/4/12 Gino Pacitti ginok...@mac.com
 no database seems clean - tried to search for a 'script' word in any
 fields and nothing came back - its like the whole site gets redirected when
 you click a form to go to a Direct Action?

 Gino

 On 12 Apr 2012, at 16:25, Daniele Corti wrote:

 Hi Gino,
 is the Direct Action, actually, generating the HTML from content fetched
 from the DB? If so, can you check the records that are fetched in the DA,
 if they have some script injections?

 Regards,

 2012/4/12 Gino Pacitti ginok...@mac.com
 I have been hijacked...
 Its redirecting and also spreading virus to PC - not everyone but a
 percentage of users have had warnings and alert screen concerning the site.

 What should i look for in the logs?

 Gino

 On 12 Apr 2012, at 16:02, Pascal Robert wrote:

 You are hijacked or you are seeing hacks attempts? What do you see in the
 Apache logs?

 Hi
 Anyone had any experience of how a site can be hijacked?

 I mean that a normal link to a Direct Action gets redirected to a new
 site (Adult Content)

 I cannot see how this is being done - Components does not contain any
 scripts except for Google Ananlytics yet clicking on a submit button or
 links causes this.

 It is also not on every attempt - it seems to happen randomly??

 Any help appreciated

 Gino
 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/probert%40macti.cahttps://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

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


 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ildenae%40gmail.comhttps://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

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



 --
 Daniele Corti
 --
 I DON'T DoubleClick

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com




 --
 Daniele Corti
 --
 I DON'T DoubleClick





-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Website Hijacked

2012-04-12 Thread Daniele Corti
the url of the form or the link are correctly formed? I mean, do you have
the HREF and ACTION attribute pointing to
/cgi-bin/WebObejcts/YourApp.woa/wo/SESSION_ID/Num.ber.Pro.Gre.ssi.ve ?

2012/4/12 Gino Pacitti ginok...@mac.com

 No .. completely just form submits and links...

 It is weird. A normal link to a Component Action results in the URL
 changing and a Adult site appearing. It looks a bit like DNSSwapping which
 I looked into but I have ran scans on this with no results...


 Gino

 On 12 Apr 2012, at 19:52, Daniele Corti wrote:

  Hi,
 Just one thing that I was thinking: do you use AJAX in the form or link
 where the redirection occurs?

 2012/4/12 Gino Pacitti ginok...@mac.com
 I will have to give that a try...

 Gino

 On 12 Apr 2012, at 19:47, Daniele Corti wrote:

 Hi,
 That's strange, can you download the .woa packages (the Application and
 the WebResources) and install them on a test site and see if the
 redirection happens?


 2012/4/12 Gino Pacitti ginok...@mac.com
 no database seems clean - tried to search for a 'script' word in any
 fields and nothing came back - its like the whole site gets redirected when
 you click a form to go to a Direct Action?

 Gino

 On 12 Apr 2012, at 16:25, Daniele Corti wrote:

 Hi Gino,
 is the Direct Action, actually, generating the HTML from content fetched
 from the DB? If so, can you check the records that are fetched in the DA,
 if they have some script injections?

 Regards,

 2012/4/12 Gino Pacitti ginok...@mac.com
 I have been hijacked...
 Its redirecting and also spreading virus to PC - not everyone but a
 percentage of users have had warnings and alert screen concerning the site.

 What should i look for in the logs?

 Gino

 On 12 Apr 2012, at 16:02, Pascal Robert wrote:

 You are hijacked or you are seeing hacks attempts? What do you see in the
 Apache logs?

 Hi
 Anyone had any experience of how a site can be hijacked?

 I mean that a normal link to a Direct Action gets redirected to a new
 site (Adult Content)

 I cannot see how this is being done - Components does not contain any
 scripts except for Google Ananlytics yet clicking on a submit button or
 links causes this.

 It is also not on every attempt - it seems to happen randomly??

 Any help appreciated

 Gino
 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/probert%40macti.cahttps://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

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


 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ildenae%40gmail.comhttps://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

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



 --
 Daniele Corti
 --
 I DON'T DoubleClick

 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ginokris%40me.comhttps://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com

 This email sent to ginok...@me.com




 --
 Daniele Corti
 --
 I DON'T DoubleClick





 --
 Daniele Corti
 --
 I DON'T DoubleClick





-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: 401 Authorization explained

2012-04-10 Thread Daniele Corti
Hi Everyone,
I was wondering, if I use the ErrorDocument in Apache for the 401 to
redirect on a direct action (for example ErrorDocument 401
/cgi-bin/WebObjects/wa/requireLogon ), is there a way in WO to obtain the
URI that cause the Authentication Error?
In PHP you can use the $_SERVER['REQUEST_URI'] variable. Is there something
like this in WO?

Thanks in advance!
-- 
Daniele Corti
--
I DON'T DoubleClick


2012/4/10 Johann Werner j...@oyosys.de

 Hi Klaus,

 nice article but you can achieve that with less work (or files). Instead
 of an empty component you could just create an empty response object and
 return that in your direct action:

 […]
 if (noAuthenticationFound) {
   ERXResponse authRequired = new ERXResponse();
   authRequired.setStatus(401);
   authRequired.setHeader(Basic realm=\Videos\, WWW-Authenticate);
   if (origin != null)
 authRequired.setHeader(origin, Access-Control-Allow-Origin);
   return authRequired;
 } else {
   […]
 }


 Am 07.04.2012 um 19:38 schrieb Klaus Berkling:

 Is this useful:


 http://www.berkling.us/theothersite/page1/files/401_authorization_in_wonder.html

 It covers how 401 Authorization can be done in Wonder/WebObjects.



 kib

 *The trouble with normal is it always gets worse.*
 Bruce Cockburn

 Klaus Berkling
 Web Application Dev.  Systems Analyst
 DynEd International, Inc.
 www.dyned.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/ildenae%40gmail.com

 This email sent to ilde...@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: 401 Authorization explained

2012-04-10 Thread Daniele Corti
Hi

2012/4/10 Chuck Hill ch...@global-village.net

 String originalURLFromRequest = request.headerForKey(request_uri);


is it so easy? I thought it was more complicated...

Thank you Chuck!

On 2012-04-10, at 10:26 AM, Daniele Corti wrote:

  Hi Everyone,
  I was wondering, if I use the ErrorDocument in Apache for the 401 to
 redirect on a direct action (for example ErrorDocument 401
 /cgi-bin/WebObjects/wa/requireLogon ), is there a way in WO to obtain the
 URI that cause the Authentication Error?
  In PHP you can use the $_SERVER['REQUEST_URI'] variable. Is there
 something like this in WO?
 
  Thanks in advance!
  --
  Daniele Corti
  --
  I DON'T DoubleClick
 
 
  2012/4/10 Johann Werner j...@oyosys.de
  Hi Klaus,
 
  nice article but you can achieve that with less work (or files). Instead
 of an empty component you could just create an empty response object and
 return that in your direct action:
 
  […]
  if (noAuthenticationFound) {
ERXResponse authRequired = new ERXResponse();
authRequired.setStatus(401);
authRequired.setHeader(Basic realm=\Videos\, WWW-Authenticate);
if (origin != null)
  authRequired.setHeader(origin, Access-Control-Allow-Origin);
return authRequired;
  } else {
[…]
  }
 
 
  Am 07.04.2012 um 19:38 schrieb Klaus Berkling:
 
  Is this useful:
 
 
 http://www.berkling.us/theothersite/page1/files/401_authorization_in_wonder.html
 
  It covers how 401 Authorization can be done in Wonder/WebObjects.
 
 
 
  kib
 
  The trouble with normal is it always gets worse.
  Bruce Cockburn
 
  Klaus Berkling
  Web Application Dev.  Systems Analyst
  DynEd International, Inc.
  www.dyned.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/ildenae%40gmail.com
 
  This email sent to ilde...@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/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/gvc/practical_webobjects



-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Windows/Linux issue for deployment

2012-01-27 Thread Daniele Corti
Hi Ben!

2012/1/26 Fanchon Benoit benoit_fanc...@yahoo.fr

 Hello,
 I'm under Windows for development and Linux for deployment.


And this is a bad thing! IMHO, development and deployment environments must
be the most similar possible! Can I suggest you to implement a staging
machine with a Linux OS to check the changes before relase them?



 The WOLips WOLips Ant tools - Install which creates the
 Project-Application.tar.gz and Project-WebServerResources.tar.gz.
 I expand themin correct places and chown them (by the way, it seems that
 the these two places are interverted in
 http://wiki.wocommunity.org/display/WONDER/Your+First+Deployment).

 Now the issue is that the script
 /opt/Local/Library/WebObjects/Applications/Project.woa/Project
 don't work because it has windows endlines. I have to use dos2unix.
 And the error message isn't exactly meaningfull.
 (I didn't test so far but there might be the same problem when developping
 undex Linux and deploying for Windows - unless Win doesn't care bad
 endlines)


That's quite strange, because I develop under Mac OS X ( \r new line) and
deploy under linux (\n new line), but I've no problem with it...


 Well, for me it is not a real issue because I've found how to correct it.
 I suspect that it should be simple to create the script with Unix
 endlines, but I don't have any idea where to look for the related function.
 So I'll just send a RFE, because WOLips already does such a wonderful job
 that it's too bad it finally doesn't work
 (and/or maybe put a hint on the already mentioned
 http://wiki.wocommunity.org/display/WONDER/Your+First+Deployment).


If you are sure that the problem is only the new line character, then you
can simply change it in the Eclipse configuration (Globally or for each
project)  here you can see how to do it

http://stackoverflow.com/questions/1886185/eclipse-and-windows-newlines

but, I suggest you to check what dos2unix do to you files. Does it change
the character set too? I think that there could be a problem also there.


 Ben


Regards

-- 
Daniele Corti
--
I DON'T DoubleClick
 ___
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: Webobjects vulnerability to cross-site request forgery?

2012-01-26 Thread Daniele Corti
Hi Giles,
Well, IMHO, only direct actions can be vulnerable to Cross-Site Attack.

To prevent this you can avoid to handle Session ID in Cookies and force
urls to contains the Session ID in each request (BTW, this is the default
WO behaviour). Second, you can check in Direct Actions that the
http-referer domain is the same of your app
(request().headerForKey(referer)).

For me, the best way to avoid Cross-Site Attack would be using session-less
Direct Actions, with POST auth credential in each request. Under HTTPS of
course...

Hope this help!

Bye
-- 
Daniele Corti
--
I DON'T DoubleClick


2012/1/26 Giles Palmer li...@cedarstone.co.uk

 Hi All

 We have an application that lives behind a login and all requests are
 session based component requests.  We have been asked by a user about our
 vulnerability to Cross-site request forgery.

 http://en.wikipedia.org/wiki/Cross-site_request_forgery
 and
 https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29

 What do you guys do to protect against this? Are component urls and an
 authenticated session enough to prevent this?

 Advice much appreciated.


 Regards


 Giles
  ___
 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/ildenae%40gmail.com

 This email sent to ilde...@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: Can't access a Resource file (was:reading a file form a component NoSuchFileException)

2009-10-23 Thread Daniele Corti
Hi Gustavo,
I know you can use NSBundle to manage file in resources:

String path =
NSBundle.mainBundle().pathURLForResourcePath(test.txt).getPath();
NSLog.out.appendln(path);

   or you can simply read the file using:

   byte[] b = NSBundle.mainBundle().bytesForResourcePath(test.txt);
   NSLog.out.appendln(new String(b));

Hope this help

-- 
Daniele Corti
--
I DON'T DoubleClick


On Fri, Oct 23, 2009 at 09:12, Gustavo Pizano webobjectspic...@gmail.comwrote:

 I renamed the subject.. its more appropiate .

 ///

 I used the
 String res = 
 WOApplication.application().resourceManager().urlForResourceNamed(patterns.txt,
 null, null, null);
  FileInputStream fstream = new FileInputStream(res);
 and still giving me FileNotFoundException.

 :(

 /

 Im sorry this is more Java related, i think,

 Hello,  i need little help here, i alwasy crash myself in this, I put a
 .txt file in hte resources folder, now i need to read it from within a .java
 of a WOComponent.
 I have tried many things, but its not working.

 I have this structure: XWSLocalizer.woacontentsResourcespatterns.txt

 and the component its in
 XWSLocalizer.woacontentsResourcesjavaxwslocalizercomponents

 I have tried: FileInputStream fstream = new
 FileInputStream(../../../../Resurces/patterns.txt);
 FileInputStream fstream = new FileInputStream(../patterns.txt);
 FileInputStream fstream = new FileInputStream(.patterns.txt);

 just doing a try and error, but nothign seesm to work here.

 i was wondering if I put somethign in the Resources folder is there  a way
 to go there with some Wonder or WO class, or somthing like that?


 Cheers
 G.



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

 This email sent to ilde...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: WebObjects deployment with JBoss

2009-10-16 Thread Daniele Corti
Hi Henrique,

On Thu, Oct 15, 2009 at 19:02, Henrique Prange hpra...@gmail.com wrote:

 Hi Daniele,

 Daniele Corti wrote:


The Application class has a method called setSMTPHost. I don't use
this method anymore, but I remember it was the only way I found to
make ERJavaMail work in an old application, probably an application
deployed on WebSphere.

IIRC, I used to call this method inside of the Application's
constructor.

setSMTPHost(your.real.smtpserver.com
http://your.real.smtpserver.com);


 I've tried this too, and it does not work.



 I have no other clues. Sorry. :(



   With all of this problem, now I'm trying to install WO on
linux, because time for testing is finished and I have to put
the apps working for yesterday.

   If someone have some advice for me, I really appreciate,


How your application WARs have been packaged? As true WAR or SSDD? I
have found problems with SSDD and multiple applications running in
the same servlet container.


 I use the Servlet Deployment in the Project Properties: Right click on the
 project, Properties, WOLips Deployment from the left menu, Check Servlet
 Deploymnet and Autogenerate web.xml. (And, of course, I've added the
 JavaWOJSPServlet framework, and a file called LICENSE, in the project folder
 with our WO license.



 WOLips generates SSDD packages. This kind of package has some issues when
 you run more than one WO application in the same container, i.e. [1].

 [1]http://issues.objectstyle.org/jira/browse/WONDER-262



Yes this is probably my problem! Do you know a guide to generate true WAR
with WOLips or some else method?


  Cheers,

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

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




-- 
Daniele Corti
--
I DON'T DoubleClick

Sent from Milano, Lombardia, Italia
 ___
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 deployment with JBoss

2009-10-15 Thread Daniele Corti
Hi Henrique,

On Wed, Oct 14, 2009 at 17:50, Henrique Prange hpra...@gmail.com wrote:

 Hi Daniele,

 Daniele Corti wrote:

  - Last one, I still have the problem with the ERJavaMail that I
 posted last week, even using the solution posted by Henrique the ERJavaMail
 try to send mails to your.smtpserver.com http://your.smtpserver.com, I
 thought it was a config of JBoss, but I have not found this string in any
 configuration file.


 The Application class has a method called setSMTPHost. I don't use this
 method anymore, but I remember it was the only way I found to make
 ERJavaMail work in an old application, probably an application deployed on
 WebSphere.

 IIRC, I used to call this method inside of the Application's constructor.

 setSMTPHost(your.real.smtpserver.com);

 I've tried this too, and it does not work.



With all of this problem, now I'm trying to install WO on linux,
 because time for testing is finished and I have to put the apps working for
 yesterday.

If someone have some advice for me, I really appreciate,


 How your application WARs have been packaged? As true WAR or SSDD? I have
 found problems with SSDD and multiple applications running in the same
 servlet container.


I use the Servlet Deployment in the Project Properties: Right click on the
project, Properties, WOLips Deployment from the left menu, Check Servlet
Deploymnet and Autogenerate web.xml. (And, of course, I've added the
JavaWOJSPServlet framework, and a file called LICENSE, in the project folder
with our WO license.


 BTW, we have some applications deployed as true WAR on Linux with Tomcat
 5.5 and they have been working fine.


mmm maybe the WAR created by WOLips are more oriented to Tomcat than JBoss.
When I'll have some time I'll try my Apps on Tomcat to see is there are the
same problems.


 Cheers,

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

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



Thanks for your reply.

Daniele Corti
--
I DON'T DoubleClick
--
There is no theory of evolution. Just a list of animals Chuck Norris allows
to live.
 ___
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 deployment with JBoss

2009-10-14 Thread Daniele Corti
Hi,
well, you right I should have posted in the list my activity, but,
really, we are coming from a crazy week, and this one sound very similar to
the passed.

Ok, answering your question: I'm looking for a way to LEAVE jboss and
install WO on Linux, because I have too many problems with it and, of
course, I have no time to solve all of them, but I will wrote out some note
about my job for future help.

I can give you my opinion about the pros and cons to use JBoss.

*Pros*:
- JBoss is standalone, and, after adding an user jboss in a group jboss,
and config the run.sh with the path to you JRE, works without problems.

- You can alter the link where deploy your app changing the name of the
WAR package: for example I needed to obtain the url
http://{myhost}/cgi-bin/WebObjects/{MyApp}.woa,
but introducing a WAR file named {MyApp}.war I obtained
http://{MyApp}/WebObjects/{MyApp}.woa.
Then I changed the app name in cgi-bin.war then the path was correct.

- You can easily add balacer in Apache for accessing to the resources in
HTTP over port 80:
add mod_proxy, mod_proxy_ftp (probably not needed), mod_proxy_http,
mod_proxy_connect, mod_proxy_balancer to Apache2, and setup a virtual host
with:

Proxy balancer://your-app
   Order deny,allow
   Allow from all

   BalancerMember
http://localhost:8080/your-path/WebObjects/Your-App.woa
  /Proxy

  ProxyPass /your-path/WebObjects/Your-App.woa balancer://your-app

Then requesting the page http://{Your
Host}/your-path/WebObjects/Your-App.woa you get your app through port 80.

ATTENTION: you need to setup the SAME path in your-path, because WO
generate complete path in the links.

   *Cons*:
- It's very slow to update package: I use Project Wonder, with Ajax,
Validation, JavaMail, Houdah and Postgresql (plus the defaults of a Wonder
App), so when I create the package is large 2 or 3 Mb of my App plus *66* Mb
of Frameworks, and upload that is very heavy (now it takes me 10 minutes,
but until last week we had a slow connection, then I needed 20 minutes to
upload a package). Every time I make a change is very slow to update the
version.

   - WOLips has not a way to create WAR file for the Deployment (or at least
I did not find it): the web.xml, that WOLips creates, has the param
WOAppMode setted to Development (so the app work like you use
WODirectConnectEnabled=true) you have to change the file by hand and update
the WAR package.

   - If you put in the deploy directory more than one WoApp the second one
does not start, because the WOServletAdaptor is not available (I don't
remember exactly the error, sorry. When I make some changes I will post it).
You have to change the load-on-startup vaue in the servlet element of the
web.xml file (for example, my first app has the default value, 5, then I
change the second app value to 6 and both start when I start the server).
   The Problem occurs when I add 2 more apps, with the value of
load-on-startup to 7 and 8. The first, the third, the fouth start, but the
second does not. I thought was a name problem: the apps are called:
   1st:  cgi-bin
   2nd: ticket
   3rd: cims
   4th: manutenzioni
then JBoss starts the app in the order 1 - 3 - 4 - 2, because it uses the
name order for the startup. I changed the load-on-startup value of the apps
in:
  cgi-bin = 5
  ticket = 8
  cims = 6
  manutenzioni = 7
but the ticket app still does not load, with the error WOServletAdaptor not
available.
   The only way to make all the app working is: put cgi-bin and ticket apps
in the deploy directory, start the server, then, while working, add the cims
and the manutenzioni apps in the deploy directory. And I really have not
understood why it works in this way...

- Then I realized that if I start the server and then add the other two
apps without calling a first time cgi-bin and ticket, these ones lose the
localization default language (Italian) and use the standard (English).

- Last one, I still have the problem with the ERJavaMail that I posted
last week, even using the solution posted by Henrique the ERJavaMail try to
send mails to your.smtpserver.com, I thought it was a config of JBoss, but I
have not found this string in any configuration file.


With all of this problem, now I'm trying to install WO on linux, because
time for testing is finished and I have to put the apps working for
yesterday.

If someone have some advice for me, I really appreciate,
-- 
Daniele Corti
--
I DON'T DoubleClick
--
There is no theory of evolution. Just a list of animals Chuck Norris allows
to live.


On Tue, Oct 13, 2009 at 16:56, Jochen Haeberle j...@sensano.com wrote:

 Hi Daniele,

 I saw you recent post on the WOnder disussion list concerning a problem
 with a WO-Project deployed under JBoss.

 But it sounds like you successfully deployed something to JBoss and have
 some detail problems.

 As I was always interested in some other deployment method than

Re: Split Install Question vs. Direct Connect vs. Dev vs. Deploy

2008-06-20 Thread Daniele Corti
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young


On Fri, Jun 20, 2008 at 3:44 PM, James Cicenia [EMAIL PROTECTED] wrote:
 OK -

 I completely refactored my project to FluffyBunny and it looks good. Now I
 also moved from direct connect to
 use my Apache on my MacBookPro.

 This is where I get confused.

 In my old way I served all my resources from the root Documents directory.
 Now, however, with a split
 embed install those resources are supposed to be served from inside the
 App.woa/Contents/WebServerResources.

 However, a lot of my resources are looking for
  /tos/templates/default/logo.gif.

 So how does WebObjects tell Apache that it should now look (after removing
 '/tos') in:

 /Library/WebServer/Documents/WebObjects/App.woa/Contents/WebServerResources/templates/default/logo.gif

 Example:
 href=/templates/default/logo.gif

 I have
 /Library/WebServer/Documents/WebObjects/App.woa/Contents/WebServerResources/templates/default/logo.gif

Are you sure of this? Check first the HTML result (source code in your
browser) and see what it gives for href. I think the path, using
href=/templates/default/logo.gif will be
http://your_host/templates/default/logo.gif

 But my app doesn't see it. Is this possibly an Eclipse setting? Or an Apache
 setting? Or?

 Finally how about deployment? Once it works on my dev, it will just work
 when I deploy?

 Thanks
 James Cicenia




 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]

 ___
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 [EMAIL PROTECTED]


Re: Split Install Question vs. Direct Connect vs. Dev vs. Deploy

2008-06-20 Thread Daniele Corti
Hi,
On Fri, Jun 20, 2008 at 4:49 PM, James Cicenia [EMAIL PROTECTED] wrote:
 I am using for better or worse, static strings in some of my components.
 So the url doesn't change. So /templates/default/logo.gif will point to the
 webroot and not the webroot + WebObjects + App.woa..


try templates/default/logo.gif, instead of /templates/default/logo.gif

 James


--
Daniele
 ___
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 [EMAIL PROTECTED]


Re: Filtering an array and computed values.

2008-06-06 Thread Daniele Corti
2008/6/6 Louis Demers [EMAIL PROTECTED]:
 Hi,
 Context: I want to display all parts whose inventory is not empty. I have a
 page that use a WODisplayGroup and a fetchspec built into EntityModeler to
 extract from the database some subcategories.

 Schema: My Part class has a one2many relationship to a Transaction class.
 Each transaction has a quantity field , positive when things are put in
 inventory and negative when taken out. Each Transaction also has a date
 field.

 In my lists, to display current inventory, I use a method on my Part class
 like

//
 __
public Number partCount() {
return (Number) transactions().valueForKey(@sum.quantity);
}
//
 __


 Question 1: I would like to display parts with the sum of transactions
 quantities is greater than 0


you need a qualifier for this..

 question 2: Eventually , I would like to further filter the transactions so
 that only those before a certain date are considered into the sum.


Also for this

 My current guess would be to manually remove parts by looping through the
 WODisplaygroup.allObjects() array and removing parts that do not qualify.

 Question 1.1: where would I filter this, in appendToResponse  where I
 currently call dg.fetch ?


No loops, I don't link them ;-P

 As for the second question, I could write a new partCount that would take a
 date as a parameter and loop through hall transactions into the arrays and
 only add quantities that qualify.


No, this is the hard way.


 Would those approach make sense and qualify as the WOWay of doing things ?



look, IMHO, you should work in this way:
 you should consider to set the qualifier of the WODisplayGroup before
dg.fetch (in appendToResponse), adding @sum.quantity = 0 and/or date
= yourDAte

For Example.

You have a qualifier in your WODIsplayGroup (or you add the array with
the objects fetched?) that query the DB for the result. YOu simply add
the Qualifiers for filtering the Objects you need, using
EOAndQualifier or EOOrQualifier.

hope this help.

-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]


Check SSL

2008-05-19 Thread Daniele Corti
Hi list,

   I've made a Direct Action that make authentication, but I need that the
communication between the client-server is secure, under SSL.
   Is there a way to check if the request was sent under SSL?

   Thank you for any help!
-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Check SSL

2008-05-19 Thread Daniele Corti
2008/5/19 Patrick Middleton [EMAIL PROTECTED]:


 On 19 May 2008, at 09:01, Daniele Corti wrote:

  Hi list,

   I've made a Direct Action that make authentication, but I need that the
 communication between the client-server is secure, under SSL.
   Is there a way to check if the request was sent under SSL?

   Thank you for any help!
 --
 Daniele Corti
 AIM: S0CR4TE5
 Messenger: [EMAIL PROTECTED]


Thanks to everybody!!!

-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Check SSL

2008-05-19 Thread Daniele Corti
2008/5/19 Mike Schrag [EMAIL PROTECTED]:

   I've made a Direct Action that make authentication, but I need that the
 communication between the client-server is secure, under SSL.
   Is there a way to check if the request was sent under SSL?

 You use Wonder, right?

Right, but wouldn't you say...



 boolean secure = ERXRequest.isRequestSecure(request);


D'ho, of course... WONDERfull!!!


 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Localize WOLips project

2008-05-15 Thread Daniele Corti
2008/5/15 Rams [EMAIL PROTECTED]:

 Thank you both for responding!  It has taken me a while to get back to
 this.

 Localizing strings seems to work fine.  I have my English.lproj and
 Japanese.lproj folders in my Resources folder.  I moved my Main.wo
 (ERXComponent) to my English.lproj folder, and when I attempt to create a
 Main.wo in my Japanese.lproj folder, WOLips complains about the duplicate.
 It seems to break WOLips and I get NullPointerExceptions making it
 impossible to edit either component until one or the other is deleted.  Is
 there a naming convention I'm unaware of or some other magic that I am
 missing?


You can have any .wo file duplicate (one in each .lproj dir), but ony one
.api file, check if there is only one Main.api, and put it in the Components
directory (no sub dir).



 Thanks again.

 On Apr 13, 2008, at 7:59 AM, Cail Borrell wrote:

  Hi TIA

 In addition if you are not using sessions you can get your localizer with

ERXLocalizer.defaultLocalizer()

 and if you are using ERXComponent's you can call

localizer()

 directly from the component

 Regards,
 Cail


 and if you are not using sessions
 On 13/04/2008, at 10.35, Helmut Schottmüller wrote:

  Hi TIA,

 very simple and Apple Style as usual...
 Just add the language resources you need in your Resources folder. I for
 example have a

 German.lproj and
 English.lproj

 Inside these folders add your Localizable.strings file with the
 key-value-pairs for the localized strings (if you use Unicode encoding in
 your application, please make sure that the localized.strings files are
 UTF-16 encoded).

 In the Application constructor you should set your default language using

  ERXLocalizer.setDefaultLanguage(German);

 In the component bindings simply use

 session.localizer.YOUR_LANGUAGE_ENTRY_KEY

 in the code

 session().localizer().valueForKey(YOUR_LANGUAGE_ENTRY_KEY)

 If you need to offer localized components with a bit more than some
 localized language entries, you may create the components in the
 Resource/LANGUAGE.lproj directory for every language you use.

 I am sure there is also an article in the Confluence Wiki about that (
 http://wiki.objectstyle.org).

 Regards,
 Helmut


 Am 12.04.2008 um 21:14 schrieb Rams:

 Hi all,

 Can anyone point me in the direction of information regarding how to
 localize a WOLips project.  The process was fairly straightforward in 
 xcode,
 but I can't seem to find any info on WOLips.  I would like to know how to
 localize components as well as strings.

 TIA

 --
 Learn how to secure your email
 (Mac OS X 10.3+) http://www.joar.com/certificates/
 (Windows) http://www.marknoble.com/tutorial/smime/smime.aspx


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

 This email sent to [EMAIL PROTECTED]


 ___
 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/cail%40frontbase.com

 This email sent to [EMAIL PROTECTED]


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

 This email sent to [EMAIL PROTECTED]



 --
 Learn how to secure your email
 (Mac OS X 10.3+) http://www.joar.com/certificates/
 (Windows) http://www.marknoble.com/tutorial/smime/smime.aspx



  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Localize WOLips project

2008-05-15 Thread Daniele Corti
2008/5/15 Rams [EMAIL PROTECTED]:

 Almost there I think...

 That works, but now my sessionless localizer in my ERXComponent is broken.
 wo:str value = localizer.LOCALIZED_KEY /


 returns English strings in both components where


Because when you change ERXSession.setLanguage() to Japanese, or using
Properties file er.extensions.ERXLocalizer.defaultLanguage (hope i've
written it right), only the ERXSession.localizer change the language.
In order to change the sessionless component you need to use
ERXLocalizer.localizerForLanguage(Japanese), when call it in your
component.
I suggest you to do this onnly if you REALLY need to have a sessionless
component:

public String language; //assume this contain tha language you want to use

public ERXLocalizer localizer()
{
 return ERXLocalizer.ERXLocalizer.localizerForLanguage(language);
}

then when you call wo:str value=$localizer.KEY / you'll get the correct
localized string.


 wo:str value = session.localizer.LOCALIZED_KEY /


It would be usefull to use ERXLocalizedString that call the same method, you
have a shortcut wo:localized value=LOCALIZED_KEY /



 returns the proper string in the Japanese component.  Anyone ideas?

 Thank you everyone!

 On May 15, 2008, at 4:38 AM, Daniele Corti wrote:



 2008/5/15 Rams [EMAIL PROTECTED]:

 Thank you both for responding!  It has taken me a while to get back to
 this.

 Localizing strings seems to work fine.  I have my English.lproj and
 Japanese.lproj folders in my Resources folder.  I moved my Main.wo
 (ERXComponent) to my English.lproj folder, and when I attempt to create a
 Main.wo in my Japanese.lproj folder, WOLips complains about the duplicate.
 It seems to break WOLips and I get NullPointerExceptions making it
 impossible to edit either component until one or the other is deleted.  Is
 there a naming convention I'm unaware of or some other magic that I am
 missing?


 You can have any .wo file duplicate (one in each .lproj dir), but ony one
 .api file, check if there is only one Main.api, and put it in the Components
 directory (no sub dir).



 Thanks again.

 On Apr 13, 2008, at 7:59 AM, Cail Borrell wrote:

  Hi TIA

 In addition if you are not using sessions you can get your localizer with

ERXLocalizer.defaultLocalizer()

 and if you are using ERXComponent's you can call

localizer()

 directly from the component

 Regards,
 Cail


 and if you are not using sessions
 On 13/04/2008, at 10.35, Helmut Schottmüller wrote:

  Hi TIA,

 very simple and Apple Style as usual...
 Just add the language resources you need in your Resources folder. I for
 example have a

 German.lproj and
 English.lproj

 Inside these folders add your Localizable.strings file with the
 key-value-pairs for the localized strings (if you use Unicode encoding in
 your application, please make sure that the localized.strings files are
 UTF-16 encoded).

 In the Application constructor you should set your default language
 using

  ERXLocalizer.setDefaultLanguage(German);

 In the component bindings simply use

 session.localizer.YOUR_LANGUAGE_ENTRY_KEY

 in the code

 session().localizer().valueForKey(YOUR_LANGUAGE_ENTRY_KEY)

 If you need to offer localized components with a bit more than some
 localized language entries, you may create the components in the
 Resource/LANGUAGE.lproj directory for every language you use.

 I am sure there is also an article in the Confluence Wiki about that (
 http://wiki.objectstyle.org).

 Regards,
 Helmut


 Am 12.04.2008 um 21:14 schrieb Rams:

 Hi all,

 Can anyone point me in the direction of information regarding how to
 localize a WOLips project.  The process was fairly straightforward in 
 xcode,
 but I can't seem to find any info on WOLips.  I would like to know how to
 localize components as well as strings.

 TIA

 --
 Learn how to secure your email
 (Mac OS X 10.3+) http://www.joar.com/certificates/
 (Windows) http://www.marknoble.com/tutorial/smime/smime.aspx


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

 This email sent to [EMAIL PROTECTED]


 ___
 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/cail%40frontbase.com

 This email sent to [EMAIL PROTECTED]


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

 This email sent to [EMAIL PROTECTED

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
Hi List,

I'm trying to migrate a DB from remote to my pc using
ERXJDBCUtilities._copyDatabaseDefinedByEOModelAndConnectionDictionaryToDatabaseWithConnectionDictionary
but I'm getting this error

ERROR er.extensions.ERXJDBCUtilities  - could not commit destCon
java.sql.SQLException: Syntax error 61. Expected Identifier not found.
at
com.frontbase.jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java:162)

the connections dictionaries are (usernames and password are corrects):

sourceDict.setObjectForKey(jdbc:FrontBase://lanserver1/GW_SUPPORT, URL);
 sourceDict.setObjectForKey(com.frontbase.jdbc.FBJDriver,
driver);
 sourceDict.setObjectForKey(Boolean.FALSE.toString(), autoCommit);
 sourceDict.setObjectForKey(Boolean.TRUE.toString(), readOnly);
 sourceDict.setObjectForKey(Boolean.TRUE.toString(), quote);

destDict.setObjectForKey(jdbc:FrontBase://localhost/GW_SUPPORT, URL);
 destDict.setObjectForKey(com.frontbase.jdbc.FBJDriver, driver);
 destDict.setObjectForKey(Boolean.FALSE.toString(), autoCommit);
 destDict.setObjectForKey(Boolean.FALSE.toString(), readOnly);
 destDict.setObjectForKey(Boolean.FALSE.toString(), quote);

I was thinging to change the quote to TRUE in the dest dict, but I get this
error:

ERROR er.extensions.ERXJDBCUtilities  - could not commit destCon
java.sql.SQLException: Semantic error 116. Referenced TABLE -
_SYSTEM.GWS_ACTIVATION - does not exist.
at
com.frontbase.jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java:162)

of course, the TABLE exits, but now I start to think that something of
really problematic occurs using FrontBase under leopard, I say this because
I cannot imports backups made on others machines on my leoparded iMac, when
on other Tiger machines it work without problems.

Does anyone know if there are problems with frontbase under leopard?

2008/5/12 Guido Neitzer [EMAIL PROTECTED]:

 On 11.05.2008, at 17:45, Joshua Paul wrote:

  The Frontbase site is not available right now, so I figured I'd turn here
  for help...
 
  Does anyone know how to dump data out of one FB database for use in
  another?
 

 I'd say your best bet is:


 ERXJDBCUtilities._copyDatabaseDefinedByEOModelAndConnectionDictionaryToDatabaseWithConnectionDictionary

 to transfer the data. It's documented how to use it.

 Some hints:

 - create destination database without foreign key constraints
 - transfer data
 - create foreign key constraints

 Helped me to transfer from FrontBase to PostgreSQL a couple of years ago.

 cug

 --
 http://www.event-s.net


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

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Mike Schrag [EMAIL PROTECTED]:

 ERROR er.extensions.ERXJDBCUtilities  - could not commit destCon
  java.sql.SQLException: Semantic error 116. Referenced TABLE -
  _SYSTEM.GWS_ACTIVATION - does not exist.
 at
  com.frontbase.jdbc.FBJErrorMetaData.errorMessageAtIndex(FBJErrorMetaData.java:162)
 
 Only half-read that message apparently :)  It's early ...

 You chopped off the stack trace, so I can't see where this is actually
 coming from.

  of course, the TABLE exits, but now I start to think that something of
  really problematic occurs using FrontBase under leopard, I say this because
  I cannot imports backups made on others machines on my leoparded iMac, when
  on other Tiger machines it work without problems.
 
 Are your Tiger machines PPC and your iMac Intel?  FB backups are
 endian-sensitive.


my two servers are PPC, my iMac Intel...


 Are you other machines running the same exact version of FB?


yes, I tried a newer one on my iMac, but, 'cause it didn't work, I switched
to the same.



 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Mike Schrag [EMAIL PROTECTED]:

 of course, the TABLE exits, but now I start to think that something of
 really problematic occurs using FrontBase under leopard, I say this because
 I cannot imports backups made on others machines on my leoparded iMac, when
 on other Tiger machines it work without problems.

 Does the table exist in the destination database?
  _copyDatabaseDefinedByBlah copies data only, not schema:


Yes, the tables are all created, I added the PK, but not Foreing Keys



  * Copies all rows from one database to another database. The tables must
  * exist before calling this method.

 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Mike Schrag [EMAIL PROTECTED]:

 Are your Tiger machines PPC and your iMac Intel?  FB backups are
  endian-sensitive.
 
  my two servers are PPC, my iMac Intel...
 
 So yeah, you can't restore a backup on Intel that was created on PPC
 because of endianness differences.


D'ho, thank you mike...

I passed half friday on this...




 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Mike Schrag [EMAIL PROTECTED]:

 D'ho, thank you mike...
 
  I passed half friday on this...
 
 I typically use the write all output way to get a copy into development
 ... This is not a valid backup/restore method (I believe it's not
 transactionally safe like write backup is), but as a
 second-level-of-defense backup, it's better than not being about to restore
 :)


I was thinking also about it, but when I tried to use I get:

 Exception 377. Deprecated API, is no longer supported.
 Exception 363. Transaction rollback.





 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Mike Schrag [EMAIL PROTECTED]:

 I was thinking also about it, but when I tried to use I get:
 
   Exception 377. Deprecated API, is no longer supported.
   Exception 363. Transaction rollback.
 
 What version are you using?  I'm on the latest build (4.2.8) and it works
 fine ... What is the exact command you are using?


After setted up connection to DB i write:

WRITE ALL OUTPUT('/Volumes/DATA/Progetti/WebObjects/GWSupport/Database/');




 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Daniele Corti [EMAIL PROTECTED]:



 2008/5/12 Mike Schrag [EMAIL PROTECTED]:

   I was thinking also about it, but when I tried to use I get:
  
Exception 377. Deprecated API, is no longer supported.
Exception 363. Transaction rollback.
  
  What version are you using?  I'm on the latest build (4.2.8) and it
  works fine ... What is the exact command you are using?
 

 After setted up connection to DB i write:

 WRITE ALL OUTPUT('/Volumes/DATA/Progetti/WebObjects/GWSupport/Database/');


well, BTW, does sql92 need to be started with sudo?




 
 
  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/ildenae%40gmail.com
 
  This email sent to [EMAIL PROTECTED]
 



 --
 Daniele Corti
 AIM: S0CR4TE5
 Messenger: [EMAIL PROTECTED]

 --
 Computers are like air conditioners -- they stop working properly if you
 open
 WINDOWS

 --
 What about the four lusers of the apocalypse? I nominate:
 advertising, can't log in, power switch and what backup?
 --Alistair Young




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Mike Schrag [EMAIL PROTECTED]:

 After setted up connection to DB i write:
 
  WRITE ALL
  OUTPUT('/Volumes/DATA/Progetti/WebObjects/GWSupport/Database/');
 
 Yeah, this is the wrong syntax ...

 write all output(dir='/path/to/export/dir', type = 'FrontBase',
 content=true);


WOW, It works perfectly, THANK YOU Mike!




 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [OT] Frontbase Export/Dump

2008-05-12 Thread Daniele Corti
2008/5/12 Mike Schrag [EMAIL PROTECTED]:

 WOW, It works perfectly, THANK YOU Mike!
 
 read back in this thread (actually guido pointed it out before i did i
 noticed) about restrictions on restoring ... and I will reiterate that
 FrontBase does not recommend this method as a valid backup/restore procedure
 -- you still need to do write backup.  I just write all output for
 testing and as a backup backup.


No problem I simply need this for update my developing test of the DB on my
iMac, I will never use it in deploying




 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Maybe it's too late

2008-05-09 Thread Daniele Corti
2008/5/9 Joshua Paul [EMAIL PROTECTED]:

 In this specific instance i was looking for intersecting strings from two
 arrays.
 Nevertheless, I'm always curious to see how people solve various problems,
 so if you're willing to share, please pass along a code snippet.


NSArray first, second; //assume they exist and contian your strings

NSSet firstSet = new NSSet(first);
NSSet secondSet = new NSSet(second);
NSSet intersectingsSet = firstSet.setByIntersettingSet(secondSet);

NSArray myIntersectedArray = intersectingsSet.allObjects();


 TIA.

 On May 8, 2008, at 5:26 PM, Don Lindsay wrote:

 Are you looking for a substring of a string in an array?  Or are you
 looking for the whole string?  I have written a routine to find the
 substring of a string in an array, if that would help.
 Don
 On May 8, 2008, at 9:39 AM, Daniele Corti wrote:



 2008/5/8 Joshua Paul [EMAIL PROTECTED]:

 Thanks all...
 it was a matter of upper/lowercase.


 Well, can you insert a toLowerString() while creating the array? if not,
 you must iterate over the array and check each element after use
 toLowerCase().

 for exaple:

 NSArray first, second

 for(int i = 0; i  first.count(); i++)
 {
String elemFirst = (String)first.objectAtIndex(i);
for(int j = 0 ; j  second.count(); j++)
{
   String elemSecond = (String)second.objectAtIndex(j);
   if(elemFirst.equalsIgnoreCase(elemSecond))
   {
  //Do what you need to do
   }
}
 }



 On May 8, 2008, at 6:10 AM, David Avendasora wrote:

 That and make sure you aren't using contains(Object element) as that is
 not the same as contains*Object*(Object object). This bit me a couple
 times before I quit making that mistake - usually in the wee hours of the
 morning.
 Dave

 On May 8, 2008, at 8:00 AM, Miguel Arroz wrote:

  Yap. containsObject compares objects using equals(), so it should work
 for Strings. If you are not finding the string with this, it's because it's
 not on the array. :) Maybe you need to trim() some white spaces?



   --
 Josh Paul
 [EMAIL PROTECTED]

 twitter: joshpaul
 linkedin: joshpaul


 NOTICE: This e-mail message and all attachments transmitted with it are
 intended solely for the use of the addressee and may contain legally
 privileged and confidential information. If the reader of this message is
 not the intended recipient, or an employee or agent responsible for
 delivering this message to the intended recipient, you are hereby notified
 that any dissemination, distribution, copying, or other use of this message
 or its attachments is strictly prohibited. If you have received this message
 in error, please notify the sender immediately by replying to this message
 and please delete it from your computer.




 --
 Daniele Corti
 AIM: S0CR4TE5
 Messenger: [EMAIL PROTECTED]

 --
 Computers are like air conditioners -- they stop working properly if you
 open
 WINDOWS

 --
 What about the four lusers of the apocalypse? I nominate:
 advertising, can't log in, power switch and what backup?
 --Alistair Young ___
 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 [EMAIL PROTECTED]



 --
 Josh Paul
 [EMAIL PROTECTED]

 twitter: joshpaul
 linkedin: joshpaul


 NOTICE: This e-mail message and all attachments transmitted with it are
 intended solely for the use of the addressee and may contain legally
 privileged and confidential information. If the reader of this message is
 not the intended recipient, or an employee or agent responsible for
 delivering this message to the intended recipient, you are hereby notified
 that any dissemination, distribution, copying, or other use of this message
 or its attachments is strictly prohibited. If you have received this message
 in error, please notify the sender immediately by replying to this message
 and please delete it from your computer.




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Maybe it's too late

2008-05-08 Thread Daniele Corti
2008/5/8 Joshua Paul [EMAIL PROTECTED]:

 I'm blurry-eyed, but it seems that trying to determine if an array of
 strings contains a certain string is harder than it should be. Am I
 overlooking something? If not, how should one compare to arrays of strings?


NSArray? if so, you have array.containsObject(Object);  that says if object
are the same. It works for me with strings (WO5.3).

If are two arrays create two NSSets and use the operations intersect,
subtract and union.




 --
 Josh Paul
 [EMAIL PROTECTED]

 twitter: joshpaul
 linkedin: joshpaul


 NOTICE: This e-mail message and all attachments transmitted with it are
 intended solely for the use of the addressee and may contain legally
 privileged and confidential information. If the reader of this message is
 not the intended recipient, or an employee or agent responsible for
 delivering this message to the intended recipient, you are hereby notified
 that any dissemination, distribution, copying, or other use of this message
 or its attachments is strictly prohibited. If you have received this message
 in error, please notify the sender immediately by replying to this message
 and please delete it from your computer.

 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Maybe it's too late

2008-05-08 Thread Daniele Corti
2008/5/8 Joshua Paul [EMAIL PROTECTED]:

 Thanks all...
 it was a matter of upper/lowercase.


Well, can you insert a toLowerString() while creating the array? if not, you
must iterate over the array and check each element after use toLowerCase().

for exaple:

NSArray first, second

for(int i = 0; i  first.count(); i++)
{
   String elemFirst = (String)first.objectAtIndex(i);
   for(int j = 0 ; j  second.count(); j++)
   {
  String elemSecond = (String)second.objectAtIndex(j);
  if(elemFirst.equalsIgnoreCase(elemSecond))
  {
 //Do what you need to do
  }
   }
}



 On May 8, 2008, at 6:10 AM, David Avendasora wrote:

 That and make sure you aren't using contains(Object element) as that is
 not the same as contains*Object*(Object object). This bit me a couple
 times before I quit making that mistake - usually in the wee hours of the
 morning.
 Dave

 On May 8, 2008, at 8:00 AM, Miguel Arroz wrote:

  Yap. containsObject compares objects using equals(), so it should work
 for Strings. If you are not finding the string with this, it's because it's
 not on the array. :) Maybe you need to trim() some white spaces?



 --
 Josh Paul
 [EMAIL PROTECTED]

 twitter: joshpaul
 linkedin: joshpaul


 NOTICE: This e-mail message and all attachments transmitted with it are
 intended solely for the use of the addressee and may contain legally
 privileged and confidential information. If the reader of this message is
 not the intended recipient, or an employee or agent responsible for
 delivering this message to the intended recipient, you are hereby notified
 that any dissemination, distribution, copying, or other use of this message
 or its attachments is strictly prohibited. If you have received this message
 in error, please notify the sender immediately by replying to this message
 and please delete it from your computer.




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Out of memory

2008-05-07 Thread Daniele Corti
hi David,

Look, it seems to me that is not a problem of db, OutOfMemoryError is an
error that occurs when Java has no more Memory avviable. check this:
http://members.cisecurity.org/kb/article.php?id=023

2008/5/7 David Griffith [EMAIL PROTECTED]:

 Hi all,

 Does anyone know if there is a fix for this, other than moving from mySQL
 to another DB?  I am experiencing the same problems.

 Regards,
 David.

 On 21 Apr 2008, at 19:04, Simon McLean wrote:

  Yes, I've seen it with MySQL. We still get it now, but very very rarely.
 
  Simon
 
  On 21 Apr 2008, at 02:35, Lachlan Deck wrote:
 
   Hi there,
  
   has anyone seen this before? Is it just coincidental? Usually when I
   see OutOfMemoryErrors it's due to some infinite loop or some bug...
  
   WO5.3.3, Mysql jconnector 5.0.6
  
   com.webobjects.foundation.NSForwardException for
   java.lang.OutOfMemoryError: Java heap space
  at java.lang.StringCoding.trim(StringCoding.java:74)
  at java.lang.StringCoding.access$100(StringCoding.java:37)
  at
   java.lang.StringCoding$CharsetSD.decode(StringCoding.java:201)
  at java.lang.StringCoding.decode(StringCoding.java:228)
  at java.lang.String.init(String.java:405)
  at java.lang.String.init(String.java:433)
  at
   com.mysql.jdbc.ResultSet.getStringInternal(ResultSet.java:5674)
  at com.mysql.jdbc.ResultSet.getString(ResultSet.java:5544)
  at
   com.webobjects.jdbcadaptor.JDBCColumn._fetchText(JDBCColumn.java:205)
  at
   com.webobjects.jdbcadaptor.JDBCColumn._fetchCorrectObject(JDBCColumn.java:217)
  at
   com.webobjects.jdbcadaptor.JDBCColumn._fetchValue(JDBCColumn.java:319)
  at
   com.webobjects.jdbcadaptor.JDBCColumn.fetchValue(JDBCColumn.java:307)
  at
   com.webobjects.jdbcadaptor.JDBCChannel.fetchRow(JDBCChannel.java:1406)
  at
   com.webobjects.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:302)
  at
   com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3221)
  
   with regards,
   --
  
   Lachlan Deck
  
  
  
   ___
   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/simon_mclean%40mac.com
  
   This email sent to [EMAIL PROTECTED]
  
 
  ___
  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/david%40infinityspain.com
 
  This email sent to [EMAIL PROTECTED]
 
 
 
 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: problem with wo:localized

2008-05-05 Thread Daniele Corti
2008/5/5 Amedeo Mantica [EMAIL PROTECTED]:

 Hello,

 I switched from Xcode to Ecplise few monts ago...

 now I have a problem localizing strings...

 I have put my Localizable.strings files, inside the folders LANGUAGE.lproj
 inside the resources folder...

 If I use WXLocalizedString it works fine

 If I use ERXLocalizedString it doenn't work


 if I use INLocalizedString (is a mine framework that i created in Xcode
 time for localizing strings, images, rollovers, database fields, etc...) i
 get Localized String not found

 if I use wo:localized it doen't work


Probably bacause localized is a shortcut to ERXlocalizedString...




 Can u help me??


Have first a look to
http://en.wikibooks.org/wiki/Programming:WebObjects/WOnder/ERXLocalizer

Then check if you Session.java is a subclass of ERXSession, then check your
Properties file if there are these keys:

er.extensions.ERXLocalizer.defaultLanguage=English
 
er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings)
// At least these two
 er.extensions.ERXLocalizer.availableLanguages=(English,German) // At
least these two
 er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions)


I usually set ERXSession.setLanguage(String) with the language requested by
the browser (parsing headers) at the first loop (Req-Resp)

Then to change language simply set the language to the choose one.



 Regards
 Amedeo
 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: ERXMutableArray fields in Entity Modeler

2008-04-18 Thread Daniele Corti
well, Usually I create a  ByteArrayOutputStream, and initilize an
ObjectOutputStream with it, then i write out the object
(ObjectOutputStream.writeObject(Object o)) I want to convert in bytes and
initilize an NSData with them (new NSData(ObjectOutputStream.toByteArray())
).

To read from the DB, I made the inverse: ByteArrayInputStream  -
ObjectInputStream.readObject(), and get the object i've written before.

Remember Method to get NSData is public, no arguments, method to convert to
the object is public static one argument NSdata.

Have a look to Java API
http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectOutputStream.html,
http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectInputStream.html

2008/4/18 Jeff Schmitz [EMAIL PROTECTED]:

 I received one suggestion to define a serializable class to contain the
 array and then serialize the array objects to the NSData/BLOB type, instead
 of ERXMutableArray.  I may  give that a try.  Is that a viable approach?
  Any examples out there of doing this?

 Thanks,
 Jeff


 On Apr 18, 2008, at 1:26 AM, Denis Frolov wrote:

  Hi,
 
  I had a similar problem with MySQL (mysql-connector-java-5.0.4-bin.jar
  is the latest one I've tried) and mutableDictionary. There were two
  solutions that worked for me:
 
  1. Change externalType to TEXT in model while leaving BLOB in the
  database (i.e. generate sql with TEXT and change type to BLOB after
  that).
  2. Modify generator templates to have something like:
 
   public er.extensions.ERXMutableDictionary uploadsFileNames() {
try {
return (er.extensions.ERXMutableDictionary)
  storedValueForKey(uploadsFileNames);
} catch (ClassCastException e) {
return (ERXMutableDictionary)
  ERXMutableDictionary.fromBlob((NSData)
  storedValueForKey(uploadsFileNames));
}
}
 
  Both solutions are really dirty and can lead to unwanted side effects,
  so I've decided that it really doesn't worth the effort and refactored
  my model not to use these prototypes at all.
 
  You might also want to check this thread:
 
  http://www.wodeveloper.com/omniLists/webobjects-dev/2004/March/msg00340.html
 
  On Thu, Apr 17, 2008 at 3:20 PM, Jeff Schmitz [EMAIL PROTECTED]
  wrote:
 
   Hello,
  
   I've taken Dave's SooperSeekrit Screencast project as a starting point
   to
   start playing with EO objects using the Wonder Framework.
  
 Using Entity Modeler (with Frontbase prototypes), I've added an
   ERXMutableArray to one of my classes that I want to use as an array of
   Boolean's in my code.  In this case, what do I need to put as the
   Value
   Type?  Also, for the width, will it be 4 bytes X the max number of
   Booleans
   to be stored?
  
  
  
   I have tried just leaving these fields blank.
  
  
   Then using the following code, I'm able to create a User object ok,
   and it
   shows up in my database with the Boolean array as a Blob:
  
  
  Group group = Group.fetchRequiredGroup(ec, name, user);
  Boolean [] bools = {true, false, true};
  ERXMutableArray boolArray = new ERXMutableArray(bools);
  User.createUser(ec, boolArray, first, last, password, newuser,
   group);
  ec.saveChanges();
  
   However, when I try to a fetch from the DirectAction class as follows:
  
  
   EOQualifier qual =
   User.USERNAME.eq(username).and(User.PASSWORD.eq(password));
   User user = User.fetchRequiredUser(ERXEC.newEditingContext(), qual);
  
  
   I get the following exception on the User.fetchRequiredUser line:
  
  
   Apr 16 22:31:32 SooperSeekrit[49595]
   (ERXDatabaseContextDelegate.java:105)
   INFO  er.transaction.adaptor.Exceptions  - Database Exception occured:
   java.lang.ClassCastException: er.extensions.ERXMutableArray
  
   I'm guessing it has to do with the missing fields?
  
   Thanks,
   Jeff
   ___
   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/dfrolov%40demax.ru
  
   This email sent to [EMAIL PROTECTED]
  
  
 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]


Hope this Help

-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help

Re: new to ajax

2008-04-15 Thread Daniele Corti
2008/4/14 Amedeo Mantica [EMAIL PROTECTED]:

 Hello, I'm now experimenting ajax, and the forst problem comes out...
 probably is easy, but I need your help...
 I'd like to create a nested WOPopUpButtons...

 I wrote this code...

 wo:form action=$doSearch multipleSubmit = true
 webobject name = regionSelect /
 wo:AjaxObserveField observeFieldID = regionPopup updateContainerID =
 myProvinceContainer action = $doSearch /
 wo:AjaxUpdateContainer id=myProvinceContainer
 webobject name = provinceSelect /
 wo:AjaxObserveField observeFieldID = provincePopup updateContainerID =
 myCentreContainer action = $doSearch /
 /wo:AjaxUpdateContainer
 wo:AjaxUpdateContainer id=myCentreContainer
 webobject name = centerSelect /
 /wo:AjaxUpdateContainer
 /wo:form



 regionSelect : WOPopUpButton {
 displayString = aRegion.name;
 selection = selectedRegion;
 list = regionList;
 item = aRegion;
 id = regionPopup;
 }

 provinceSelect : WOPopUpButton {
 displayString = aProvince.name;
 list = selectedRegion.provinces;
 item = aProvince;
 selection = selectedProvince;
 id = provincePopup;
 }

 centerSelect : WOPopUpButton {
 displayString = aCenter.name;
 list = selectedProvince.dealers;
 item = aCenter;
 selection = selectedCenter;
 }

 the regionSelect popup works fine and updates the provinceSelect
 automatically, but when i make chandes on provinceSelect popup i have to hit
 the return key to have centerSelect to be updated.


 Where I go wrong??


Why don't you simply use One AjaxUpdateContainer? I think it will give less
problems... and usually I prefer add a fullSubmit=true to the
AjaxObserveFields



 Thank You
 Regards
 Amedeo

  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Daniele Corti
2008/4/15 Helmut Schottmüller [EMAIL PROTECTED]:

 Hi,

 I created an AjaxSortableList which I enclosed with an AjaxUpdateContainer
 (id=xyz).
 To the onUpdate binding of the AjaxSortableList I bound xyzUpdate() to
 update the parent update container after the list has been changed.

 The strange behaviour is that when I change the position of one of the
 list elements the drag  drop isn't available for about 8 seconds. After
 that period drag  drop is possible again.

 I am totally clueless.


It seems to me that, when you cannot drag element, is the time when your app
is dealing with Ajax, so the javascript for Draggable don't run until the
browser ends the request.
Check with firebugs if the Ajax Request is running while those Eight
seconds, if so, you have to perform some quicker actions server side.



 Regards,

 Helmut
  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Daniele Corti
2008/4/15 Helmut Schottmüller [EMAIL PROTECTED]:

 Hi Daniele,

 Am 15.04.2008 um 12:13 schrieb Daniele Corti:

 
 
  Well, I think you should consider a way different of Sortablelist to
  reorder the list... try something like arrow up and down and textfield with
  the order (in Joomla Style if you know it).
 
  Or you can do two pages, one for reorder and one for delete add modify
 
 
 yes I could do that but it you have to move an item from the bottom of the
 list to the top of the list by clicking 20 times I doubt this is a very
 convenient solution :-)

Well there is also the other use: each li has a textfield with the order
id, that allow the user to change it dinamically.

look at this:
http://www.rantsandraves.co.uk/images/rantpix/rant15/joomla.gif


 Maybe the SortableList isn't meant for such a functionality... or maybe I
 am just too stupid to use it.

I think to first one ;-)



 Regards,
 Helmut
  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Daniele Corti
2008/4/15 Helmut Schottmüller [EMAIL PROTECTED]:

 Hi Daniele,

 Am 15.04.2008 um 11:53 schrieb Daniele Corti:

 
 
 
  Just to know, if you remove the xyzUpdate() function at the onUpdate
  event what happen?
 

 everything works as suspected.
 The problem is, I need the update of the AjaxSortableList because I have
 the following configuration:

 My Listelements are WOComponents which contain a name and an
 AjaxUpdateLink which deletes the list entry from the list.
 Without calling the update of the enclosing update container the following
 happens:

 Assume I have a list with the following elements

 name=Entry A, id = 1
 name=Entry B, id = 2
 name=Entry C, id = 3
 name=Entry D, id = 4

 Each element has a AjaxUpdateLink which calls the enclosing update
 container.

 When I move Entry D to the top, everything works as suspected. I have an
 action binding which says that the new order of the list is now:

 name=Entry D, id = 4
 name=Entry A, id = 1
 name=Entry B, id = 2
 name=Entry C, id = 3

 But when I click on the ajax update link of Entry D to delete this list
 element, the element Entry C will be deleted instead because it seems that
 the JavaScript of the AjaxSortableList did not realise that the index
 positions have been changed. The click on Entry D still returns the list
 index 3 which was the previous index of Entry D but it's not the actual
 index.
 That's the reason why I tried to call the update function of the enclosing
 update container to force the AjaxSortableList via Ajax to choose the
 correct index values.

 And that's where the strange behaviour starts.
 When I am using the update function, I can instantly click on the
 AjaxUpdateLink on Entry D and Entry D will be deleted. But the drag 
 drop is somehow disturbed.


Well, I think you should consider a way different of Sortablelist to reorder
the list... try something like arrow up and down and textfield with the
order (in Joomla Style if you know it).

Or you can do two pages, one for reorder and one for delete add modify


 Regards,

 Helmut
  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: new to ajax

2008-04-15 Thread Daniele Corti
2008/4/15 Amedeo Mantica [EMAIL PROTECTED]:

 Thank you all! Now works fine...
 I'm starting to love Ajax :-)


Have a look at this first!
http://www.readwriteweb.com/archives/how_javascript_is_slowing_down_the_web.php


 On 15/apr/08, at 10:43, Daniele Corti wrote:



 2008/4/14 Amedeo Mantica [EMAIL PROTECTED]:

  Hello, I'm now experimenting ajax, and the forst problem comes out...
  probably is easy, but I need your help...
  I'd like to create a nested WOPopUpButtons...
 
  I wrote this code...
 
  wo:form action=$doSearch multipleSubmit = true
  webobject name = regionSelect /
  wo:AjaxObserveField observeFieldID = regionPopup updateContainerID =
  myProvinceContainer action = $doSearch /
  wo:AjaxUpdateContainer id=myProvinceContainer
   webobject name = provinceSelect /
   wo:AjaxObserveField observeFieldID = provincePopup updateContainerID
  = myCentreContainer action = $doSearch /
  /wo:AjaxUpdateContainer
  wo:AjaxUpdateContainer id=myCentreContainer
   webobject name = centerSelect /
  /wo:AjaxUpdateContainer
  /wo:form
 
 
 
  regionSelect : WOPopUpButton {
  displayString = aRegion.name;
   selection = selectedRegion;
   list = regionList;
   item = aRegion;
   id = regionPopup;
  }
 
  provinceSelect : WOPopUpButton {
   displayString = aProvince.name;
   list = selectedRegion.provinces;
   item = aProvince;
   selection = selectedProvince;
   id = provincePopup;
  }
 
  centerSelect : WOPopUpButton {
   displayString = aCenter.name;
   list = selectedProvince.dealers;
   item = aCenter;
   selection = selectedCenter;
  }
 
  the regionSelect popup works fine and updates the provinceSelect
  automatically, but when i make chandes on provinceSelect popup i have to hit
  the return key to have centerSelect to be updated.
 
 
  Where I go wrong??
 

 Why don't you simply use One AjaxUpdateContainer? I think it will give
 less problems... and usually I prefer add a fullSubmit=true to the
 AjaxObserveFields



  Thank You
  Regards
  Amedeo
 
   ___
  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/ildenae%40gmail.com
 
  This email sent to [EMAIL PROTECTED]
 



 --
 Daniele Corti
 AIM: S0CR4TE5
 Messenger: [EMAIL PROTECTED]

 --
 Computers are like air conditioners -- they stop working properly if you
 open
 WINDOWS

 --
 What about the four lusers of the apocalypse? I nominate:
 advertising, can't log in, power switch and what backup?
 --Alistair Young



  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Custom Main Component

2008-04-11 Thread Daniele Corti
Hi Stefan

2008/4/11 Stefan Klein [EMAIL PROTECTED]:

  Hi,

 you can change / overwrite:

 public WOActionResults defaultAction()
 {
 return pageWithName(MyPage.class.getName());
 }

 in DirectAction.java


When You open a app (for example
http://localhost:45220/cgi-bin/WebObjects/YourApp.woa) the page you will
open in the browser is the one set for defaultAction() in DirectAction?
I really didn't know it! Thank you!


 Stefan


 Daniele Corti schrieb:

 Hi list,
 My question probably is really simple, but I really don't find out how
 to do it:
   Is there a way to choose another component that is not Main.wo, to
 be load at startup?

 Thank you for any help!!

 --
 Daniele Corti
 AIM: S0CR4TE5
 Messenger: [EMAIL PROTECTED]

 --
 Computers are like air conditioners -- they stop working properly if you
 open
 WINDOWS

 --
 What about the four lusers of the apocalypse? I nominate:
 advertising, can't log in, power switch and what backup?
 --Alistair Young

 --

  ___
 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/stefan.klein%40buero-sde.de

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Custom Main Component

2008-04-11 Thread Daniele Corti
Hi list,
My question probably is really simple, but I really don't find out how
to do it:
  Is there a way to choose another component that is not Main.wo, to be
load at startup?

Thank you for any help!!

-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Custom Main Component

2008-04-11 Thread Daniele Corti
2008/4/11 Mike Schrag [EMAIL PROTECTED]:

 Only if you set the default request handler to be DirectActions in your
 app constructor:

  
 setDefaultRequestHandler(requestHandlerForKey(directActionRequestHandlerKey()));


Thank you Mike!



 ms

 On Apr 11, 2008, at 7:58 AM, Daniele Corti wrote:

 Hi Stefan

 2008/4/11 Stefan Klein [EMAIL PROTECTED]:

   Hi,
 
  you can change / overwrite:
 
  public WOActionResults defaultAction()
  {
  return pageWithName(MyPage.class.getName());
  }
 
  in DirectAction.java
 

 When You open a app (for example
 http://localhost:45220/cgi-bin/WebObjects/YourApp.woa) the page you will
 open in the browser is the one set for defaultAction() in DirectAction?
 I really didn't know it! Thank you!


  Stefan
 
 
  Daniele Corti schrieb:
 
  Hi list,
  My question probably is really simple, but I really don't find out
  how to do it:
Is there a way to choose another component that is not Main.wo, to
  be load at startup?
 
  Thank you for any help!!
 
  --
  Daniele Corti
  AIM: S0CR4TE5
  Messenger: [EMAIL PROTECTED]
 
  --
  Computers are like air conditioners -- they stop working properly if you
  open
  WINDOWS
 
  --
  What about the four lusers of the apocalypse? I nominate:
  advertising, can't log in, power switch and what backup?
  --Alistair Young
 
  --
   ___
  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/stefan.klein%40buero-sde.de
 
  This email sent to [EMAIL PROTECTED]
 
 


 --
 Daniele Corti
 AIM: S0CR4TE5
 Messenger: [EMAIL PROTECTED]

 --
 Computers are like air conditioners -- they stop working properly if you
 open
 WINDOWS

 --
 What about the four lusers of the apocalypse? I nominate:
 advertising, can't log in, power switch and what backup?
 --Alistair Young ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:

 http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

 This email sent to [EMAIL PROTECTED]



  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Using FileMaker DB

2008-03-21 Thread Daniele Corti
Hi list,

I have to analyse the possibility to read data from FileMaker DB, I've seen
that you can serve the data as source to JDBC, but I'm confused about how to
use them, does anyone have challenged this before?

Thank you in advance!

-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Using FileMaker DB

2008-03-21 Thread Daniele Corti
2008/3/21, Pascal Robert [EMAIL PROTECTED]:

 We did, two years ago.  We used:
 https://woof.dev.java.net/


Thank you Pascal! You probably save my life!

Hi list,

 I have to analyse the possibility to read data from FileMaker DB, I've
 seen that you can serve the data as source to JDBC, but I'm confused about
 how to use them, does anyone have challenged this before?

 Thank you in advance!

 --
 Daniele Corti
 AIM: S0CR4TE5
 Messenger: [EMAIL PROTECTED]

 --
 Computers are like air conditioners -- they stop working properly if you
 open
 WINDOWS

 --
 What about the four lusers of the apocalypse? I nominate:
 advertising, can't log in, power switch and what backup?
 --Alistair Young
  ___
 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%40os.ca

 This email sent to [EMAIL PROTECTED]





-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Strange WO trouble

2008-02-27 Thread Daniele Corti
Hi,
 does it work in default deployment mode, or is only an error while
deploying in servlet?

2008/2/27, Amedeo Mantica [EMAIL PROTECTED]:

 Helo all friends, I have this problem:

 I have a Wonder Application
 I made ANT build in servlet mode.
 When I launch the app i got this:

 Application: renatozacchia
 Error:   java.lang.IllegalArgumentException: Class 'Main' exists but is
 not a subclass of WOComponent.
 Reason:  com.webobjects.appserver._private.WOComponentDefinition
 Class 'Main' exists but is not a subclass of WOComponent.
 Extra info: {
 Bundles = {
 ERExtensions = 4.0;
 JavaWebObjects = 5.4;
 ERJars = 4.0;
 JavaXML = 5.4;
 JavaJDBCAdaptor = 5.4;
 OpenBasePKPlugin = ;
 WOOgnl = 4.0;
 JavaEOAccess = 5.4;
 JavaEOControl = 5.4;
 JavaFoundation = 5.4;
 renatozacchia = ;
 JavaWOExtensions = 4.0;
 ERPrototypes = 4.0;
 };
 }




 WOComponentDefinition.java  518 _componentClass
 com.webobjects.appserver._private
 WOComponentDefinition.java  526 componentClass
 com.webobjects.appserver._private
 WOComponentDefinition.java  532 _componentInstanceInContext
 com.webobjects.appserver._private
 WOComponentDefinition.java  664 componentInstanceInContext
 com.webobjects.appserver._private
 WOApplication.java  2323pageWithNamecom.webobjects.appserver
 WOComponentRequestHandler.java  284 _dispatchWithPreparedSession
 com.webobjects.appserver._private
 WOComponentRequestHandler.java  332 _dispatchWithPreparedApplication
 com.webobjects.appserver._private
 WOComponentRequestHandler.java  369 _handleRequest
 com.webobjects.appserver._private
 WOComponentRequestHandler.java  442 handleRequest
 com.webobjects.appserver._private
 WOApplication.java  1678dispatchRequest com.webobjects.appserver
 ERXApplication.java 1415dispatchRequest er.extensions
 WOWorkerThread.java 144 runOnce com.webobjects.appserver._private
 WOWorkerThread.java 226 run com.webobjects.appserver._private
 Thread.java 613 run java.lang
   ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: NullPointerException in ERXLogger.getERXLogger

2008-02-27 Thread Daniele Corti
2008/2/27, Yung-Luen Lan [EMAIL PROTECTED]:

 Hi all,

 I'm a newbie of both WebObjects and server programming who is responsible
 to maintain a WO project left by other guy several years ago. I've added
 some features and tested in Eclipse. However, during these year, I always
 encountered a problem when I want to update the ERExtensions.framework in
 /Library/Frameworks.

 When I replace the original ERExtensions.framework (whose version is
 believed ≤ Project WONDER 3) with new one, I got the exception:


Do you also replace ERJar.framework?

Exception in thread main java.lang.ExceptionInInitializerError
 Caused by: java.lang.NullPointerException
 at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:271)
 at org.apache.log4j.LogManager.getLogger(LogManager.java:220)
 at org.apache.log4j.Logger.getLogger(Logger.java:156)
 at er.extensions.ERXLogger.getLogger(ERXLogger.java:111)
 at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:91)
 at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:121)
 at woserver.Application.clinit(Application.java:25)

 And that's the very first line of my project.

 public class Application extends ERXApplication {
 public static final ERXLogger log = ERXLogger.getERXLogger(
 Application.class);

 I've my Properties file configured like this:

  BEGIN OF PART OF MY PROPERTIES FILE 
 er.extensions.ERXLocalizer.frameworkSearchPath = (app,ERExtensions)
 er.extensions.ERXLocalizer.defaultLanguage = English
 er.extensions.ERXLocalizer.availableLanguages = (English, Chinese)

 ### Enterprise Objects ###
 er.extensions.ERXRaiseOnMissingEditingContextDelegate = false

 ### Application Name ###
 er.extensions.ERXApplicationHostURL = localhost

 #
 # Log4j Configuration
 #
 log4j.rootLogger = INFO, A1, A2
 log4j.loggerFactory=er.extensions.ERXLogger$Factory

 # Appenders
 log4j.appender.A1 = org.apache.log4j.ConsoleAppender

 log4j.appender.A2 = org.apache.log4j.DailyRollingFileAppender
 log4j.appender.A2.datePattern='.'-MM-dd
 log4j.appender.A2.append = true
 log4j.appender.A2.File = /var/log/woproject/woproject.log

 # A1, A2 uses PatternLayout.
 log4j.appender.A1.layout = er.extensions.ERXPatternLayout
 log4j.appender.A2.layout = er.extensions.ERXPatternLayout

 # This pattern will produce logs that look like:
 # 2002-06-18 17:46:18,292 MyAppName[4002:9133 0] MyCategory (MyClass.java:40)
 - Some log
 log4j.appender.A1.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]}
 %c{1} (%F:%L) %x - %m%n
 log4j.appender.A2.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]}
 %c{1} (%F:%L) %x - %m%n

 # Note that %F and %L is fairly slow and shouldn't be used in performance
 intensive logging

 
 # Custom Categories - These are the main categories and sub categories
 #that are used in frameworks.
 

 # Base Category
 log4j.logger.er = INFO
 log4j.logger.er.extensions.ERXNSLogLog4jBridge = INFO
 log4j.additivity.er.extensions.ERXNSLogLog4jBridge = false

 log4j.logger.er.changenotification = INFO
  END OF PART OF MY PROPERTIES FILE 

 Hence, I must copy the old ERExtensions to a new environment every time.
 Did I miss something?

 An extra question: when you add some features to your wo project, how do
 you stop the current running wo server and start the new one? I don't know
 how to do this so I run my server inside eclipse. I know it's stupid, but I
 couldn't find the answer. Maybe it's too basic to document?


Not a stupid question: look at the bottom panels, and select the Console one
(if you are running WO app in development, WOLips changes it to show logs)
at the top of the panel, you can see a little red square. You can stop the
current app by clicking on it. It's not very visible, I've passed months
before notice it, when I've started working on Eclipse.

Regards,
 yllan
  ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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

Re: NullPointerException in ERXLogger.getERXLogger

2008-02-27 Thread Daniele Corti
2008/2/27 Yung-Luen Lan [EMAIL PROTECTED]:

 2008/2/27 Daniele Corti [EMAIL PROTECTED]:

  2008/2/27, Yung-Luen Lan [EMAIL PROTECTED] [EMAIL PROTECTED]
 
   An extra question: when you add some features to your wo project, how
   do you stop the current running wo server and start the new one? I don't
   know how to do this so I run my server inside eclipse. I know it's stupid,
   but I couldn't find the answer. Maybe it's too basic to document?
 
 
  Not a stupid question: look at the bottom panels, and select the Console
  one (if you are running WO app in development, WOLips changes it to show
  logs) at the top of the panel, you can see a little red square. You can stop
  the current app by clicking on it. It's not very visible, I've passed months
  before notice it, when I've started working on Eclipse.
 

 Thanks for your reply. My question actually is, how do you do that for
 normal deployed WO server. That is, the WO server is not running inside
 Eclipse --- sorry that I didn't make it clear.

 Regards,
 yllan


Are you using JavaMonitor?

if not what do you do? call the build file from Terminal?


-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: creating my EOQualifier in code

2008-02-25 Thread Daniele Corti
2008/2/25, Theodore Petrosky [EMAIL PROTECTED]:

 Now this makes no sense to me and I don't understand
 what to do...

 This is my method:

 public WOComponent useSearchField() {
 EOEditingContext ec =
 session().defaultEditingContext();

 if (userEntries.valueForKey(client) != null) {
 //only do this if there is a value in the search field
 NSMutableArray arg1 = new NSMutableArray();
 arg1.addObject(userEntries.valueForKey(client));


 EOQualifier newQual =
 EOQualifier.qualifierWithQualifierFormat
 ((client caseInsensitiveLike %@) AND (isComplete
 =
 0), arg1);

 EOFetchSpecification fs = new EOFetchSpecification
 (AsAdSched, newQual, null);


 fs.setRefreshesRefetchedObjects(true);

 //NSLog.out.appendln(fetchscpec =  + fs);

 fetchResult = ec.objectsWithFetchSpecification
 (fs);
 }
 return null;

 }


Look, could you use EOKeyValueQualifier and EOAndQualifier?

EOKeyValueQualifier myQual = null;
NSMutableArray array = new NSMutableArray();
EOFetchSpecification fs;

myQual = new EOKeyValueQualifier(client,
EOQualifier.QualifierCaseInsensitiveLike, userEntries.valueForKey
(client));
array.addObject(myQual);
myQual = new EOKeyValueQualifier(isComplete, EOQualifier.QualifierEquals,
new Integer(0));
array.addObject(myQual);

fs = new EOFetchSpecification(AsAdSched, new EOAndQualifier(array), null);
fs.setRefreshesRefetchedObjects(true);

fetchResult = ec.objectsWithFetchSpecification(fs);



I wish I could find examples of some of this stuff.

 Ted

 --

 Message: 3
 Date: Sun, 24 Feb 2008 21:58:38 -0800
 From: Chuck Hill [EMAIL PROTECTED]

 Subject: Re: creating my EOQualifier in code
 To: WebObjects-Dev List
 webobjects-dev@lists.apple.com
 Message-ID:

 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=US-ASCII; delsp=yes;
 format=flowed


 And I think you need to add the *...* to the value in
 arg1, not the
 format.


 On Feb 24, 2008, at 9:32 PM, Mike Schrag wrote:

  % is SQL syntax ... In EOQualifier syntax, you want
 to use *
 
  ms
 
  On Feb 25, 2008, at 12:28 AM, Theodore Petrosky
 wrote:
 
 
 
  I am using the caseinsensitiveLike however I can
 not
  get the global '%' to work...
 
  EOQualifier newQual =
  EOQualifier.qualifierWithQualifierFormat
  ((client caseInsensitiveLike [EMAIL PROTECTED]) AND (isComplete
 =
  0), arg1);




   
 

 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
   ___

 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: WOCheckBox to my instance

2008-02-08 Thread Daniele Corti
2008/2/8, Theodore Petrosky [EMAIL PROTECTED]:

 I have a WOCheckBox in my Component and I am trying to
 bind it back to the app. I have this in my WOD

 HTML
 webobject name=allOrOpenOnlyCheckBox /


 WOD
 allOrOpenOnlyCheckBox: WOCheckBox {
 checked = allAdsBool;
 }


Ehm, I usually don't use this binding, I prefer the couple value and
selection, that give the possibility to use pass a determined string.

WOO:
allOrOpenOnlyCheckBox: WOCheckBox {
value = true;
selection = mySelectioin;
}



And this in my .java:

 public Boolean allAdsBool;

 public Boolean allAdsBool() {
 return allAdsBool;
 }

 public void setAllAdsBool(Boolean newBool)
 {
 NSLog.out.appendln(setAllAdsBool =  + newBool);
 allAdsBool = newBool;
 }



Java:
private String _mySelection;

public String mySelection()
{
return _mySelection;
}

public void setMySelection(String myString)
{
_mySelection = myString;
}

public boolean isChecked()
{
return new Boolean(mySelection()).booleanValue();
}



If I click the checkbox on the rendered page, the
 setter is not called. What am I doing wrong?

 Ted


In your action you can call isChecked() to see if the checkbox was checked,
or use the string mySelection() (for example to save in the db a boolean
value)

  

 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: NSNumberFormatter vs NumberFormat

2008-02-08 Thread Daniele Corti
2008/2/8, Michael Halliday [EMAIL PROTECTED]:

 Hey list!!

 Just a question regarding the use of NSNumberFormatter vs NumberFormat.

 We're working on localizing one of our app for use in multiple
 countries.  We are dealing with decimal and currency formats in a
 variety of locales.  Just wondering what everyone else uses and the
 pros and cons of using NumberFormat over NSNumberFormatter or Wonders
 ERXNumberFormatter.

 If we have a format string such as $#,##0.00 NSNumberFormatter
 doesn't correctly localize the currency symbol, it does substitute the
 correct symbol, but not necessarily in the right position.   IE for
 United States, France and Germay

 US--- $1,100.59
 France --- €1 100,59  Should be -- 1 100,59 €
 Germany --- €1.100,59  Should be -- 1.110,59 €

 If I use the NumberFormat.getCurrencyInstance( LOCALE ) it formats the
 numbers correctly.  NSNumberFormat doesn't provide a currencyInstance.

 We could use NumberFormat throughout our app and not use
 NSNumberFormatter at all ... but I'm just wondering what other
 functionality we would lose ... does NSNumberFormatter do anything
 special that NumberFormat does not.

 Also, does anyone know if NSNumberFormatter will suffer the same
 depreciated fate the NSTimestampFormatter has?  I guess that's a
 question for Pierre.

 Any help or ideas would be greatly appreciated!  I just don't want to
 go down one path and find that I should have taken another :).


Hi Michael,
Look I'm not an expert of this, but I see that NumberFormat has not the
format() method for Objects (it has format(long), format(double)), so you
cannot use it for Number or BigDecimal Instances (in my apps I only use
BigDecimal for operations).

And of course you have to set methods for getting the strings, and not
simply bind it in the numberFormat binding.



Thanks!!!
 Michael.


 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: How to fetch eo with a specific relationship

2008-02-06 Thread Daniele Corti
2008/2/6, Louis Demers [EMAIL PROTECTED]:

 Hi,

 I have 2 EO, Part and Category. Part has a to-one relationship to
 Category. Category does not have a reverse to-many relationship.

 Through a search/listing page of categories, the user can select a
 Category and I wish to present all of the parts from this category. I
 was hoping to not used the fields of the categories (like name,
 type...) to do the search, and really use the EO itself as the
 selection criteria. That lead meto consider using the primary key, but
 every book /messages I looked through discourages one to use primary
 keys/global ids. My guesses are:

 1) that is a specific case where exposing/using primary keys is OK ?


Well, you CAN use PK, even it is not a good idea to manipulate it directly.
ERXGenericRecord, from Project Wonder, has the method primaryKey() that
return a string with the value of the PK, you do not need to set the field
as manipulated (I don't know how to say it) in the EOModel.

2) setup the reverse to-many relationship ?


IMHO, this is the best way to do it:
always set a inverse toMany relation for every ToOne, well, if you know that
you'll never use it, you can avoid to set an inverse relationship, but in
this case, you should find it usefull.

3) set querybindings (I use Display groups a lot) using the key name
 of the relationship and the EO as the object and let WO figured it
 out  ? I seem to recall some message about this but could not find it
 or sample code for that.


Sorry, I've not understand what you do... can you give an example?

4) use the fields of the category to form a complete specification.
 That seems unsuitable in case two categories are named the same
 (temporarily due to a mixup).


You should consider to set an Unique field in your EO, like categoryCode, it
can also be Alphanumeric.

What is the real WOway of doing this.


I don't think there's an official WAY to do things, there are tested ways,
but I usually like to experience new chances by myself.

Remember that WO allow you to do everything, so simply think of a way and
try. If it doesn't work, you can retry ;-P

Thanks in advance.




 Louis Demers eng.
 www.obzerv.com


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

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: help needed with query

2008-02-04 Thread Daniele Corti
2008/2/4, Theodore Petrosky [EMAIL PROTECTED]:

 First, most of my experience is with cocoa. I could
 write any query I wanted even across relationships. I
 am having a problem with relationship in WO.

 I am starting out with a new simple setup. My db is
 normalized like this

 table names:
 firstname text
 lastname text
 nameid (serial)

 namesbusinessmeta:
 iscurrent bool  default true
 phonenumber text
 extension text
 nbmid
 namesFKid foreign key to names

 I have a trigger and function on the db that creates a
 new insert into namesbusinessmeta with the referenced
 foreign key on insert into the names table.

 This works fine.

 but now I want to query from my WO app.
 select * from names where nameid in (select namesFKid
 from namesbusinessmeta where iscurrent = true) order
 by lastname;

 I am lost I want an array of current employees
 where the iscurrent  bool is in relationship table.

 Maybe I am barking up the wrong tree..


Wait... how do you make the queries? EOKeyValueQualifier?

Anycase, you should have a query like (using sql92),

SELECT * FROM names AS t1, namesbusinessmeta AS t2 WHERE t1.nameid =
t2.namesFKid AND t2.iscurrent = TRUE;



Ted









   
 
 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 ___
 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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [Wonder-disc] Eclipse don't cuild with Ant

2008-01-25 Thread Daniele Corti
2008/1/24, Mike Schrag [EMAIL PROTECTED]:

  So, is there a canonical solution to build my Apps in Java 1.4.2?
  Building your with WITH 1.5 and building your FOR 1.5 are two
  different things.
 Incidentally, this is, quite possibly, the most un-English sentence
 ever.  I have no idea what occurred in my brain to cause me to
 generate this.  I think the concept translated, but just in case:
 Building your app WITH 1.5 and building your app FOR 1.5 are two
 different things. is what it should have said.


Don't worry, I 've understood what you mean, simply I did not think to build
for 1.4, using java 1.5.

I rallly think I should sleep more!!!

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/ildenae%40gmail.com

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [Wonder-disc] Eclipse don't cuild with Ant

2008-01-24 Thread Daniele Corti
2008/1/24, Anjo Krank [EMAIL PROTECTED]:

 WOProject is 1.5 only since a looong time.


So, is there a canonical solution to build my Apps in Java 1.4.2?

BTW, I've found out a solution: in the Ant Configuration panel (right click
on Build.xml, Ant Tool - Run... (the one with the dots at the end)) Select
the panel Classpath, and add as External Jar woproject.jar, from my old
version of WOLips (the one I used since a looong time), then everything
builds perfectly!!!

I love these solutions! It's like to Take an Homer!!!

Cheers, Anjo

 Am 24.01.2008 um 14:52 schrieb Daniele Corti:

That's strange: I've installed Eclipse 3.3.1.1, with WOLips
  3.3.4750, and EVERYTHING work perfecty in development mode, I also
  can run my apps and Build them with Ant in ajva 1.5 , but when I try
  to Build with Ant with Java 1.4.2 (incidentally, what I need to do,
  because on our server java 1.5 cannot be installed, OS X Server too
  old...) I've this error on the console:




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: [Wonder-disc] Eclipse don't cuild with Ant

2008-01-24 Thread Daniele Corti
2008/1/24, Mike Schrag [EMAIL PROTECTED]:

  So, is there a canonical solution to build my Apps in Java 1.4.2?
 Building your with WITH 1.5 and building your FOR 1.5 are two
 different things.  You must run ant with 1.5 to BUILD your app, but
 you can TARGET your app for 1.4.


Yoouuu!!! Thank you Mike and Everybody for your help

ms


 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Wonder-disc mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/wonder-disc




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: WOAllowRapidTurnaround = true Isn't working...

2008-01-23 Thread Daniele Corti
Hi David,
 Did you check the Property in the Run dialog?
(click Run, in the Menu bar, Open run dialog, Select you configuration, in
the Tabs select WO and check if WOAllowRapidTurnaround is checked)

2008/1/22, David Avendasora [EMAIL PROTECTED]:

 Hi all,
 I'm stuck. Just yesterday and earlier today I had no problem with Rapid
 Turnaround working. Now it isn't and the Assistant won't launch. Here's the
 warning I'm getting in the Eclipse Run Log:

 * PLEASE NOTE: Rapid turn-around is not active for your application.
 The assistant will be unavailable to configure the application since it will
 be unable to modify your project's user.d2wmodel rule file.  To completely
 disable the assistant use a -EOAssistantEnabled FALSE flag when you start
 the application.

 In my Resources/Properties file I have:
 WOAllowRapidTurnaround=true

 In the WO tab of the Run... dialog, I have WOAllowRapidTurnaround true
 checked

 Yet it's still not working.

 Am I missing something?

 WO 5.3 / WOLips 2.0.0.4118

 Thanks,

 Dave

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

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

Re: Initializing log4j is causing a NPE

2008-01-23 Thread Daniele Corti
:
resourceManager().pathURLForResourceNamed(log4j.xml, null, null)

Thanks,

 Dave

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

 This email sent to [EMAIL PROTECTED]




-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
advertising, can't log in, power switch and what backup?
--Alistair Young
 ___
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 [EMAIL PROTECTED]

  1   2   3   >