Re: [SOLVED]Rép : Re: checking device or platform

2013-05-22 Thread Paul Hoadley
On 22/05/2013, at 11:51 PM, Raymond NANEON  wrote:

> Thanks to all, problem resolved.

What was the issue?


-- 
Paul Hoadley
http://logicsquad.net/

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

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


Re: checking device or platform

2013-05-22 Thread Paul Hoadley
Hi Raymond,

On 22/05/2013, at 9:35 PM, Raymond NANEON  wrote:

> Thanks for your advice but it doesn't resolve my issue.

As Johann notes, it certainly _should_ work.  We use ERXBrowser for browser 
sniffing in several production apps, and it works as designed.  Post any 
debugging output you can generate and we'll see if we can get to the bottom of 
it.


-- 
Paul Hoadley
http://logicsquad.net/



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

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


Re: The infamous "WOServletAdaptor is not available" error on Tomcat

2013-05-22 Thread Dov Rosenberg
We regularly run multiple wo based web apps on a single tomcat instance without 
any problems. One thing that we do though is to make sure that each app is self 
contained - ie all of the jars are available in the WEB-INF/lib folder. We also 
run our wo Apps as expanded directories instead of directly from war files. 
Otherwise we would have issues resolving the parameters in the web.xml and the 
app would not start

Dov Rosenberg 


On May 22, 2013, at 2:47 PM, Filippo Laurìa  wrote:

> I solved.
> 
> I tried to deploy two WO Application on the same servlet container,
> probably I had not properly configured Tomcat servlet container to do
> that.
> 
> So, for the moment, I installed another instance of servlet container,
> and i'm letting go a WO application on the first and the other one on
> the second servlet container.
> 
> Probably modifying configuration files it is possible to run two or
> more WO Apps on the same instance of a Tomcat servlet container.
> 
> Thank you everybody.
> 
> 2013/5/21 Henrique Prange :
>> Hi Filippo,
>> 
>> We need more information to help you. Can you host this sample WAR somewhere
>> we can download from? The "WOServletAdaptor is not available" error can be
>> caused by any error during the application initialization (including
>> NoClassDefFoundErrors, NullPointerExceptions and etc). This kind of error
>> usually comes accompanied by a stack trace including the specific cause of
>> the problem.
>> 
>> Cheers,
>> 
>> Henrique
>> 
>> On 20/05/2013, at 18:53, Filippo Laurìa  wrote:
>> 
>> Hello evreybody,
>> I'm writing again because of this error:
>> 
>> --
>> description: The requested resource (Servlet WOServletAdaptor is not
>> available) is not available.
>> --
>> 
>> I'm developing a Simple Hello World Wonder Application with eclipse
>> 37, wolips 37 WO 543, following tutorial guide you can find on
>> wocommunity.org.
>> 
>> I've already seen on the Internet that someone else had this error in
>> the past and I've already tried solutions suggested there, without
>> success.
>> 
>> By default JavaWOServletAdaptor framework is already included into
>> project, and it is the same for ERJars and ERExtensions frameworks.
>> 
>> For some reason unknown to me, tomcat can't find the
>> WOServletAdaptor.class file, provided by JavaWOServletAdaptor
>> framework. I also tried replacing "JavaWOServletAdaptor framework"
>> with External Jar JavaWOServletAdaptor_client.jar that contains a
>> WOServletAdaptor.class too, but this did not work.
>> 
>> Is there somenone who already solved a problem like that?
>> 
>> Thank you for answering.
>> ___
>> WebObjects-dev mailing list
>> webobjects-...@omnigroup.com
>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
> 
> ___
> Do not 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/dov%40cfl.rr.com
> 
> This email sent to d...@cfl.rr.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: The infamous "WOServletAdaptor is not available" error on Tomcat

2013-05-22 Thread Filippo Laurìa
I solved.

I tried to deploy two WO Application on the same servlet container,
probably I had not properly configured Tomcat servlet container to do
that.

So, for the moment, I installed another instance of servlet container,
and i'm letting go a WO application on the first and the other one on
the second servlet container.

Probably modifying configuration files it is possible to run two or
more WO Apps on the same instance of a Tomcat servlet container.

Thank you everybody.

2013/5/21 Henrique Prange :
> Hi Filippo,
>
> We need more information to help you. Can you host this sample WAR somewhere
> we can download from? The "WOServletAdaptor is not available" error can be
> caused by any error during the application initialization (including
> NoClassDefFoundErrors, NullPointerExceptions and etc). This kind of error
> usually comes accompanied by a stack trace including the specific cause of
> the problem.
>
> Cheers,
>
> Henrique
>
> On 20/05/2013, at 18:53, Filippo Laurìa  wrote:
>
> Hello evreybody,
> I'm writing again because of this error:
>
> --
> description: The requested resource (Servlet WOServletAdaptor is not
> available) is not available.
> --
>
> I'm developing a Simple Hello World Wonder Application with eclipse
> 37, wolips 37 WO 543, following tutorial guide you can find on
> wocommunity.org.
>
> I've already seen on the Internet that someone else had this error in
> the past and I've already tried solutions suggested there, without
> success.
>
> By default JavaWOServletAdaptor framework is already included into
> project, and it is the same for ERJars and ERExtensions frameworks.
>
> For some reason unknown to me, tomcat can't find the
> WOServletAdaptor.class file, provided by JavaWOServletAdaptor
> framework. I also tried replacing "JavaWOServletAdaptor framework"
> with External Jar JavaWOServletAdaptor_client.jar that contains a
> WOServletAdaptor.class too, but this did not work.
>
> Is there somenone who already solved a problem like that?
>
> Thank you for answering.
> ___
> WebObjects-dev mailing list
> webobjects-...@omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
>

 ___
Do not 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: Jenkins ant error?

2013-05-22 Thread Ramsey Gurley
Not sure. Watch this. Do what Dave says. Works for me.

http://www.wocommunity.org/podcasts/wowodc/east09/WOWODC09E-MultipleVersionsWO.mov

Ramsey

On May 22, 2013, at 8:46 AM, James Cicenia wrote:

> Trying hard to finally get Jenkins nailed... so close.
> 
> Here is my perplexing error at the console:
> 
> init.properties:
> [antlib:org.apache.tools.ant] Could not load definitions from resource 
> org/apache/tools/ant/antlib.xml. It could not be found.
>  [property] Loading 
> /var/lib/jenkins/workspace/My_WebObjects_Project_AllInOne_Yella/Projects/YellaDashboard/build.properties
> Override ignored for property "project.name"
> Override ignored for property "wolips.properties"
>  [property] Loading 
> /var/lib/jenkins/workspace/My_WebObjects_Project_AllInOne_Yella/Root/jenkins.build.properties
> Override ignored for property "project.name"
> Override ignored for property "wo.system.root"
> Override ignored for property "wolips.properties"
> Override ignored for property "wo.system.frameworks"
> Override ignored for property "wo.bootstrapjar"
> Override ignored for property "wo.extensions"
> Override ignored for property "ant.build.javac.target"
> Override ignored for property "wo.local.frameworks"
> Override ignored for property "wo.apps.root"
> Override ignored for property "wo.local.root"
> 
> init.build:
> 
> compile:
> 
> BUILD FAILED
> /var/lib/jenkins/workspace/My_WebObjects_Project_AllInOne_Yella/Projects/YellaDashboard/build.xml:203:
>  taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
>   at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:609)
>   at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
>   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:616)
>   at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>   at org.apache.tools.ant.Task.perform(Task.java:348)
>   at org.apache.tools.ant.Target.execute(Target.java:357)
>   at org.apache.tools.ant.Target.performTasks(Target.java:385)
>   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>   at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>   at org.apache.tools.ant.Main.runBuild(Main.java:758)
>   at org.apache.tools.ant.Main.startAnt(Main.java:217)
>   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: java.lang.ClassNotFoundException: 
> org.objectstyle.woproject.ant.WOCompile
>   at 
> org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
>   at 
> org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
>   at 
> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:266)
>   at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:583)
>   ... 18 more
> --- Nested Exception ---
> java.lang.ClassNotFoundException: org.objectstyle.woproject.ant.WOCompile
> 
> 
> Thoughts? Help?
> Thanks
> James
> ___
> Do not 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/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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


Jenkins ant error?

2013-05-22 Thread James Cicenia
Trying hard to finally get Jenkins nailed... so close.

Here is my perplexing error at the console:

init.properties:
[antlib:org.apache.tools.ant] Could not load definitions from resource 
org/apache/tools/ant/antlib.xml. It could not be found.
 [property] Loading 
/var/lib/jenkins/workspace/My_WebObjects_Project_AllInOne_Yella/Projects/YellaDashboard/build.properties
Override ignored for property "project.name"
Override ignored for property "wolips.properties"
 [property] Loading 
/var/lib/jenkins/workspace/My_WebObjects_Project_AllInOne_Yella/Root/jenkins.build.properties
Override ignored for property "project.name"
Override ignored for property "wo.system.root"
Override ignored for property "wolips.properties"
Override ignored for property "wo.system.frameworks"
Override ignored for property "wo.bootstrapjar"
Override ignored for property "wo.extensions"
Override ignored for property "ant.build.javac.target"
Override ignored for property "wo.local.frameworks"
Override ignored for property "wo.apps.root"
Override ignored for property "wo.local.root"

init.build:

compile:

BUILD FAILED
/var/lib/jenkins/workspace/My_WebObjects_Project_AllInOne_Yella/Projects/YellaDashboard/build.xml:203:
 taskdef class org.objectstyle.woproject.ant.WOCompile cannot be found
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:609)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ClassNotFoundException: 
org.objectstyle.woproject.ant.WOCompile
at 
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
at 
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
at 
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:266)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:583)
... 18 more
--- Nested Exception ---
java.lang.ClassNotFoundException: org.objectstyle.woproject.ant.WOCompile


Thoughts? Help?
Thanks
James
 ___
Do not 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: Still Undecided about coming to WOWODC 2013?

2013-05-22 Thread David Holt

On 2013-05-21, at 5:16 PM, Dan Beatty  wrote:

> Hi Chuck,
> There may be stupidity preventing me from coming, but it may not be my own 
> stupidity.   Unfortunately, stupidity is like rain in the fact it pours on 
> the deserving and not typically with prejudice.  None the less, I could enjoy 
> seeing Chuck drink the alcohol from the fire hose, or what ever they have


tuyau d'incendie



> .
> 
> V/R,
> 
> Daniel Beatty, Ph.D.
> Computer Scientist, Detonation Sciences Branch
> Code 474300D
> 1 Administration Circle M/S 1109
> China Lake, CA 93555
> daniel.bea...@navy.mil
> (LandLine) (760)939-7097 
> (iPhone) (806)438-6620
> 
> 
> 
> On 5/21/13 5:10 PM, "Pascal Robert"  wrote:
> 
> > Bah, he will be just like the other dudes in St-Denis or Crescent Street 
> > :-) Envoyé de mon iPhone Le 2013-05-21 à 20:09, "Jesse Tayler" 
> >  a écrit : > > the only reason I'm going is because, to 
> > my calculations, Chuck has to drink 114 beers and over 80 shots of bourbon 
> > which should be most excellent to watch live and in person. > > > On May 
> > 21, 
> > 2013, at 7:30 PM, Chuck Hill  wrote: > >> No 
> > Montreal for you! >> >> >> On 2013-05-21, at 4:04 PM, Lon Varscsak wrote: 
> > >> 
> > >>> Now you're banning us from Montreal in the future too?! ;) >>> >>> >>> 
> > On Tue, May 21, 2013 at 3:48 PM, Pascal Robert  wrote: 
> > >>> 
> > And last time to enjoy Montreal since I won't organize it next year (mainly 
> > because of my new job). >>>  Reasons to Come to WOWODC:   1. 
> > Buy 
> > Chuck that beer that you owe him   2. Hang out with people that 
> > actually understand what you are talking about   3. Buy Chuck that 
> > Bourbon that you owe him   4. Learn useful things that you will 
> > learn 
> > in the year ahead   5. Experience the coolest city in North 
> > America   6. Much better WiFi: WOWODC will be held at a venue where 
> > they guarantee 10 Mbps and can easily support more than 200 devices!  
> >  7. Better Management: This year we have a professional Event Manager 
> > managing everything (and keeping Pascal sane).   8. Learn about 
> > Cayenne as an Open Source alternative   9. If you don't come to 
> > WOWODC 2013 you are stupid!   10. 
> > http://www.restaurantaupieddecochon.ca/ and many, many more    
> > Book.  Your.  Trip.    See you there!  Chuck   
> >   On 2013-05-21, at 5:08 AM, Pascal Robert wrote:  > 
> > Hi, > > If you are coming to WOWODC 2013, don't forget that the 
> > cutoff date for the room block at the Hilton ends tomorrow (May 22th), so 
> > make 
> > sure you do your reservation today or tomorrow! > > Thanks. > 
> > ___ > Do not post admin 
> > requests to the list. They will be ignored. > Webobjects-dev mailing 
> > list  
> > (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your 
> > Subscription: > 
> > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.
> > net > > This email sent to ch...@global-village.net   
> > --  Chuck Hill  Executive Managing Partner, VP Development and 
> > Technical Services   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   Global 
> > Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
> > Companies in B.C!  Global Village Consulting ranks 76th in 24th annual 
> > PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT 
> > Magazine!            
> >   ___  Do not 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/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.com) >>> Help/Unsubscribe/Update your 
> > Subscription: >>> 
> > https://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.co
> > m >>> >>> This email sent to lon.varsc...@gmail.com >> >> -- >> Chuck Hill  
> >
> > >> Executive Managing Partner, VP Development and Technical Services >> >> 
> > 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 >

[SOLVED]Rép : Re: checking device or platform

2013-05-22 Thread Raymond NANEON
Thanks to all, problem resolved.Envoyé depuis iCloudLe 22 mai 2013 à 05:19, Johann Werner  a écrit : Am 22.05.2013 um 14:05 schrieb Raymond NANEON :  > Hi Johann, >  > Thanks for your advice but it doesn't resolve my issue.  Uhm, yeah, that happens when the phone rings while writing an email ;-)  So browser().isIPhone() returns false? You should check the values in ERXBrowserFactory.parsePlatform what your iPhone sends as user-agent string and why the browser object is initialized with a different platform. If there is a bug, patches for wonder are welcome :-)  jw   > Envoyé depuis iCloud >  > Le 22 mai 2013 à 04:40, Johann Werner  a écrit : >  >> Instead of mySession().browser() you should preferably use browser() that ERXComponent provides. That's a little bit shorter and works also for sessionless pages. >>  >> jw >>  >>  >> Am 22.05.2013 um 12:35 schrieb Raymond NANEON : >>  >> > Hi List, >> >  >> > I want to check the device or platform on which my app running, to activate or not some options. Does it exist a component which does it well? >> >  >> > I try WOConditional and test this example :  >> >  >> > in Html >> >  >> >  >> > mobileOption >> >  >> >  >> > in woD >> >  >> > platform : WOConditional { >> > condition = platform; >> > } >> >  >> > in Java : >> >  >> > public boolean platform() { >> > return mySession().browser().isIPad() >> > || mySession().browser().isIPhone() >> > || mySession().browser().isUnknownPlatform(); >> > } >> >  >> > This example don't activate mobileOption when I run my app on my iPhone. >> >  >> > Thanks for help >> > Envoyé depuis iCloud >>  >>   ___
Do not 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: EOKeyValueQualifier.evaluateWithObject on EOQualifier.QualifierContains selector?

2013-05-22 Thread Alexis Tual
Hi list,


2012/2/7 Kieran Kelleher 

> So, I had an interesting problem that I had not come across before. In my
> REST controllers I have a baseQualifier() which restricts objects to those
> that the user has access to. This base qualifier is used for the FetchSpec
> in the indexAction and used for in-memory evaluation to check object access
> privileges for single object actions such as show and update.
>
> In one controller I had a qualifier keypath (constructed using ERXKeys of
> course, but just keeping it simple here to illustrate) that qualified
> Prospect objects (basically mailing name/address objects):
>
> prospectLists.campaigns.program.location.customer.reseller
>
> The first key is a flattened many-to-many.
>
> The second key is a toMany
>
> The remaining keys are toOne.
>
> The qualifier is basically
>
> new EOKeyValueQualifier("
> dataLists.campaigns.program.location.customer.reseller",
> EOQualifier.QualifierOperatorContains, reseller);
>
> This qualifier returns the correct objects when used in a FetchSpec.
>
> However using the same qualifier.evaluateWithObject(...) against any of
> the objects returned in the fetchspec is false!
>
> Debugging shows that for in-memory evaluation, we have an array of arrays
> of 'reseller', instead of the expected array of 'reseller' objects, which
> probably makes sense since the keypath is
> toMany.toMany.toOne.toOne.toOne.toOne.
>
> The workaround for this rest controller was easy, but it raises the
> question:
>
> Should we expect in memory evaluateWithObject to always be true on objects
> that the qualifier fetches with SQL?
>
> Should valueForKeyPath default impl. return a flattened array of objects,
> or should the qualifier class flatten the array of objects in
> evaluateWithObject, or ?
>
> Any opinions?
>

This has just bitten me in unit tests with WOUnit because everything is
done in memory when fetching with the MockEditingContext.
I would expect the results to be the same when filtering in memory or when
fetching with SQL.
Any update on this ?

Thanks

Alex



>
> Regards, Kieran
>
>
>  ___
> Do not 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/alexis.tual%40gmail.com
>
> This email sent to alexis.t...@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: checking device or platform

2013-05-22 Thread Johann Werner

Am 22.05.2013 um 14:05 schrieb Raymond NANEON :

> Hi Johann,
> 
> Thanks for your advice but it doesn't resolve my issue.

Uhm, yeah, that happens when the phone rings while writing an email ;-)

So browser().isIPhone() returns false? You should check the values in 
ERXBrowserFactory.parsePlatform what your iPhone sends as user-agent string and 
why the browser object is initialized with a different platform. If there is a 
bug, patches for wonder are welcome :-)

jw


> Envoyé depuis iCloud
> 
> Le 22 mai 2013 à 04:40, Johann Werner  a écrit :
> 
>> Instead of mySession().browser() you should preferably use browser() that 
>> ERXComponent provides. That's a little bit shorter and works also for 
>> sessionless pages.
>> 
>> jw
>> 
>> 
>> Am 22.05.2013 um 12:35 schrieb Raymond NANEON :
>> 
>> > Hi List,
>> > 
>> > I want to check the device or platform on which my app running, to 
>> > activate or not some options. Does it exist a component which does it well?
>> > 
>> > I try WOConditional and test this example : 
>> > 
>> > in Html
>> > 
>> > 
>> > mobileOption
>> > 
>> > 
>> > in woD
>> > 
>> > platform : WOConditional {
>> > condition = platform;
>> > }
>> > 
>> > in Java :
>> > 
>> > public boolean platform() {
>> > return mySession().browser().isIPad()
>> > || mySession().browser().isIPhone()
>> > || mySession().browser().isUnknownPlatform();
>> > }
>> > 
>> > This example don't activate mobileOption when I run my app on my iPhone.
>> > 
>> > Thanks for help
>> > Envoyé depuis iCloud
>> 
>> 


 ___
Do not 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

Rép : Re: checking device or platform

2013-05-22 Thread Raymond NANEON
Hi Johann,Thanks for your advice but it doesn't resolve my issue.Envoyé depuis iCloudLe 22 mai 2013 à 04:40, Johann Werner  a écrit :Instead of mySession().browser() you should preferably use browser() that ERXComponent provides. That's a little bit shorter and works also for sessionless pages.  jw   Am 22.05.2013 um 12:35 schrieb Raymond NANEON :  > Hi List, >  > I want to check the device or platform on which my app running, to activate or not some options. Does it exist a component which does it well? >  > I try WOConditional and test this example :  >  > in Html >  >  > mobileOption >  >  > in woD >  > platform : WOConditional { > condition = platform; > } >  > in Java : >  > public boolean platform() { > return mySession().browser().isIPad() > || mySession().browser().isIPhone() > || mySession().browser().isUnknownPlatform(); > } >  > This example don't activate mobileOption when I run my app on my iPhone. >  > Thanks for help > Envoyé depuis iCloud   ___
Do not 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: checking device or platform

2013-05-22 Thread Johann Werner
Instead of mySession().browser() you should preferably use browser() that 
ERXComponent provides. That's a little bit shorter and works also for 
sessionless pages.

jw


Am 22.05.2013 um 12:35 schrieb Raymond NANEON :

> Hi List,
> 
> I want to check the device or platform on which my app running, to activate 
> or not some options. Does it exist a component which does it well?
> 
> I try WOConditional and test this example : 
> 
> in Html
> 
>   
> mobileOption
>   
> 
> in woD
> 
> platform : WOConditional {
> condition = platform;
> }
> 
> in Java :
> 
> public boolean platform() {
> return mySession().browser().isIPad()
> || mySession().browser().isIPhone()
> || mySession().browser().isUnknownPlatform();
> }
> 
> This example don't activate mobileOption when I run my app on my iPhone.
> 
> Thanks for help
> Envoyé depuis iCloud



 ___
Do not 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

checking device or platform

2013-05-22 Thread Raymond NANEON
Hi List,I want to check the device or platform on which my app running, to activate or not some options. Does it exist a component which does it well?I try WOConditional and test this example : in Html      mobileOption  in woDplatform : WOConditional {    condition = platform;}in Java :public boolean platform() {        return mySession().browser().isIPad()                || mySession().browser().isIPhone()                || mySession().browser().isUnknownPlatform();}This example don't activate mobileOption when I run my app on my iPhone.Thanks for helpEnvoyé depuis iCloud ___
Do not 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