Re: Your slides from WOCommunity : Deployment of WebObjects applications on CentOS Linux

2013-07-15 Thread Pascal Robert

Le 2013-07-15 à 20:19, MAI NGUYEN  a écrit :

> Hi Pascal,
> I am reviewing your slides about Deploying WebObjects on Linux (from WOWODC a 
> while ago).
> 
> I can either install Java JDK (or JRE) 32/64 bit on an Oracle Linux 5.8 
> machine.
> 
> According to your slides, it seems like the 32 bit Java version is preferable 
> as it would eat less Memory (if RAM is an issue).
> 
> Is this correct? Is there any performance penalty when installing/ using Java 
> 32-bit on a 64-bit machine?

Don't use Java 32 bit on a 64 bit machine, you will get problems (at least I 
got some two years ago on CentOS 5).
 ___
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

Your slides from WOCommunity : Deployment of WebObjects applications on CentOS Linux

2013-07-15 Thread MAI NGUYEN
Hi Pascal,
I am reviewing your slides about Deploying WebObjects on Linux (from WOWODC a 
while ago).

I can either install Java JDK (or JRE) 32/64 bit on an Oracle Linux 5.8 machine.

According to your slides, it seems like the 32 bit Java version is preferable 
as it would eat less Memory (if RAM is an issue).

Is this correct? Is there any performance penalty when installing/ using Java 
32-bit on a 64-bit machine?

Thanks for any info,

-mai
 ___
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: Unexplained WOSessionStore or NSProperties ClassNotFound Exceptions

2013-07-15 Thread Chuck Hill
I think that I am completely lost by now.  :)

Can you start again, and tell us what your specific goals are and how you are 
trying to accomplish them?

Thanks
Chuck


On 2013-07-11, at 6:07 AM, Filippo Laurìa wrote:

> 2013/7/10 Henrique Prange :
>> Hi Filippo,
>> 
>> On 09/07/2013, at 11:17, Filippo Laurìa  wrote:
>> 
>>> 2013/7/3 Chuck Hill :
 
 On 2013-07-02, at 2:00 PM, Filippo Laurìa wrote:
 
 2013/7/2 Chuck Hill :
 
 The JavaWebObjects.framework/Resources/Java/javawebobjects.jar is different
 than WAR type jar bundles.
 
 That might be a problem?
 
 I don't think so.
 I took the same WebObjects frameworks that deployed and fully working
 application (on Tomcat, too) uses.
 
 If you think this could be a problem, maybe it is.
 Can you explain how to use WAR type jar bundles of frameworks used?
 
 
 They have the Resources/ folder contents embedded in them.  They are
 stand-alone jar files.
 
>>> 
>>> I don't think this is the problem, since I understood that there were
>>> no needs to install all WebObjects+Project Wonder frameworks because I
>>> was taking only needed (Ajax, EOJDBCPrototypes, ERDirectToWeb,
>>> ERExtensions, ERJars, ExternalJars, JavaDirectToWeb,
>>> JavaDTWGeneration, JavaEOAccess, JavaEOControl, JavaEOProject,
>>> JavaFoundation, JavaJDBCAdaptor, JavaWebObjects, JavaWOExtensions,
>>> JavaWOJSPServlet and WOOgnl).
>>> 
>>> Now, I was wondering, is there some "precedence constraint" among
>>> these frameworks?
>>> 
>>> I know that dynamic class loader, maybe, was intended to bypass these
>>> troubles but, I read, somewhere in the source code of application I'm
>>> trying to build, to put into Eclipse build path always first
>>> ERExtensions then JavaWOExtensions.
>>> 
>>> Is that true?
>> 
>> This is true, but I don't think it's related to your problem.
>> 
>> Have you tried to put all the jars in the WEB-INF/lib folder? Do the 
>> application throw the same exception?
>> 
> 
> With this advice the application starts (with its wizard installer).
> But is that a dirty trick?! I mean, I'm happy because application
> starts and this is better than a startup failure, but original
> application (that one deployed from original authors) works - on
> tomcat, I mean - without copying jars into WEB-INF/lib.
> 
> I'm pretty sure that Eclipse is messing up something. Has this some
> sense, considering that I've no java errors at build time, or I'm
> wrong?
> 
> Is there any alternative to Eclipse+WOLips on Linux systems?!
> 
>> Also, as Chuck mentioned, you should use the correct WebObjects jars when 
>> deploying to Tomcat. The correct jars are available in the 
>> /Library/WebObjects/lib folder.
>> 
> 
> I will try this as soon as possible.
> 
> Thank you, both of you, for your advices and your patience.
> 
> Filippo
> 
>> Cheers,
>> 
>> Henrique
>> 

-- 
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 44th in 25th annual PROFIT 500 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/archive%40mail-archive.com

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

Re: Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread Bastian Triller
$ sudo ln -s
/Applications/Xcode.app/Contents/Developer/Toolchains/{XcodeDefault,OSX10.8}.xctoolchain
$ cd ~/git/wonder/Utilities/Adaptors
$ make ADAPTORS=Apache2.2 LTFLAGS='--tag CC'


On Mon, Jul 15, 2013 at 9:36 PM, Chuck Hill wrote:

> No help from me, but I ran into this recently.  I did not really need it,
> so I just ran away.
>
>
> On 2013-07-15, at 12:14 PM, Samuel Pelletier wrote:
>
> > If I specify only CGI, it build. Any other fail with the errors I quoted.
> >
> > The build script probably broke with the xCode release that removed gcc
> many months ago. It just seems people are not compiling adaptor often.
> >
> > Samuel
> >
> > Le 2013-07-15 à 13:00, John Huss  a écrit :
> >
> >> Try this  - from BuildingInstructions.html:
> >>  • Select the adaptor that you want to build by editing the
> ADAPTORS variable in make.config. You can build multiple adaptors for
> different web servers at the same time.
> >>
> >>
> >> On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier 
> wrote:
> >> Hi,
> >>
> >> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6
> command line tools installed.
> >>
> >> The default make stop at FastCGI with an error:
> >> lipo: can't figure out the architecture type of:
> /var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out
> >>
> >> If I go to the Apache2.2 directory and make, another error:
> >> libtool: compile: unable to infer tagged configuration
> >> libtool: compile: specify a tag with `--tag'
> >>
> >> In Apache 2.4, same error.
> >>
> >> I tried to add this --tag=CC thing that seems missing somewhere but I
> cannot figure where it should be added. Adding it to a gcc line produce
> another error:
> >> cc1: error: unrecognized command line option "-ftag=CC"
> >>
> >> Is there someone who understand all these makefile and flags to help me
> fix this?
> >>
> >> Samuel
> >>
> >>
> >>
> >>  ___
> >> Do not post admin requests to the list. They will be ignored.
> >> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> >> Help/Unsubscribe/Update your Subscription:
> >>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
> >>
> >> This email sent to johnth...@gmail.com
> >>
> >
> > ___
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/webobjects-dev/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 44th in 25th annual PROFIT 500 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/bastian.triller%40gmail.com
>
> This email sent to bastian.tril...@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: Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread Chuck Hill
No help from me, but I ran into this recently.  I did not really need it, so I 
just ran away.


On 2013-07-15, at 12:14 PM, Samuel Pelletier wrote:

> If I specify only CGI, it build. Any other fail with the errors I quoted.
> 
> The build script probably broke with the xCode release that removed gcc many 
> months ago. It just seems people are not compiling adaptor often.
> 
> Samuel
> 
> Le 2013-07-15 à 13:00, John Huss  a écrit :
> 
>> Try this  - from BuildingInstructions.html:
>>  • Select the adaptor that you want to build by editing the ADAPTORS 
>> variable in make.config. You can build multiple adaptors for different web 
>> servers at the same time.
>> 
>> 
>> On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier  wrote:
>> Hi,
>> 
>> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6 
>> command line tools installed.
>> 
>> The default make stop at FastCGI with an error:
>> lipo: can't figure out the architecture type of: 
>> /var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out
>> 
>> If I go to the Apache2.2 directory and make, another error:
>> libtool: compile: unable to infer tagged configuration
>> libtool: compile: specify a tag with `--tag'
>> 
>> In Apache 2.4, same error.
>> 
>> I tried to add this --tag=CC thing that seems missing somewhere but I cannot 
>> figure where it should be added. Adding it to a gcc line produce another 
>> error:
>> cc1: error: unrecognized command line option "-ftag=CC"
>> 
>> Is there someone who understand all these makefile and flags to help me fix 
>> this?
>> 
>> Samuel
>> 
>> 
>> 
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>> 
>> This email sent to johnth...@gmail.com
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/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 44th in 25th annual PROFIT 500 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/archive%40mail-archive.com

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

Re: Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread John Huss
You mean the XCode beta?  It's not final, so it's not surprising that it's
not supported yet.  I would suspect there is still a way to get gcc even if
it isn't installed by default anymore.


On Mon, Jul 15, 2013 at 2:14 PM, Samuel Pelletier  wrote:

> If I specify only CGI, it build. Any other fail with the errors I quoted.
>
> The build script probably broke with the xCode release that removed gcc
> many months ago. It just seems people are not compiling adaptor often.
>
> Samuel
>
> Le 2013-07-15 à 13:00, John Huss  a écrit :
>
> Try this  - from BuildingInstructions.html:
>
>1. Select the adaptor that you want to build by editing the ADAPTORS 
> variable
>in make.config. You can build multiple adaptors for different web
>servers at the same time.
>
>
>
> On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier wrote:
>
>> Hi,
>>
>> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6
>> command line tools installed.
>>
>> The default make stop at FastCGI with an error:
>> lipo: can't figure out the architecture type of:
>> /var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out
>>
>> If I go to the Apache2.2 directory and make, another error:
>> libtool: compile: unable to infer tagged configuration
>> libtool: compile: specify a tag with `--tag'
>>
>> In Apache 2.4, same error.
>>
>> I tried to add this --tag=CC thing that seems missing somewhere but I
>> cannot figure where it should be added. Adding it to a gcc line produce
>> another error:
>> cc1: error: unrecognized command line option "-ftag=CC"
>>
>> Is there someone who understand all these makefile and flags to help me
>> fix this?
>>
>> Samuel
>>
>>
>>
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>>
>> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>>
>> This email sent to johnth...@gmail.com
>
>
>
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread Samuel Pelletier
If I specify only CGI, it build. Any other fail with the errors I quoted.

The build script probably broke with the xCode release that removed gcc many 
months ago. It just seems people are not compiling adaptor often.

Samuel

Le 2013-07-15 à 13:00, John Huss  a écrit :

> Try this  - from BuildingInstructions.html:
> Select the adaptor that you want to build by editing the ADAPTORS variable in 
> make.config. You can build multiple adaptors for different web servers at the 
> same time.
> 
> 
> On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier  wrote:
> Hi,
> 
> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6 
> command line tools installed.
> 
> The default make stop at FastCGI with an error:
> lipo: can't figure out the architecture type of: 
> /var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out
> 
> If I go to the Apache2.2 directory and make, another error:
> libtool: compile: unable to infer tagged configuration
> libtool: compile: specify a tag with `--tag'
> 
> In Apache 2.4, same error.
> 
> I tried to add this --tag=CC thing that seems missing somewhere but I cannot 
> figure where it should be added. Adding it to a gcc line produce another 
> error:
> cc1: error: unrecognized command line option "-ftag=CC"
> 
> Is there someone who understand all these makefile and flags to help me fix 
> this?
> 
> Samuel
> 
> 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
> 
> This email sent to johnth...@gmail.com
> 

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

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

Re: Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread John Huss
Try this  - from BuildingInstructions.html:

   1. Select the adaptor that you want to build by editing the
ADAPTORS variable
   in make.config. You can build multiple adaptors for different web
   servers at the same time.



On Mon, Jul 15, 2013 at 11:19 AM, Samuel Pelletier wrote:

> Hi,
>
> I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6
> command line tools installed.
>
> The default make stop at FastCGI with an error:
> lipo: can't figure out the architecture type of:
> /var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out
>
> If I go to the Apache2.2 directory and make, another error:
> libtool: compile: unable to infer tagged configuration
> libtool: compile: specify a tag with `--tag'
>
> In Apache 2.4, same error.
>
> I tried to add this --tag=CC thing that seems missing somewhere but I
> cannot figure where it should be added. Adding it to a gcc line produce
> another error:
> cc1: error: unrecognized command line option "-ftag=CC"
>
> Is there someone who understand all these makefile and flags to help me
> fix this?
>
> Samuel
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>
> This email sent to johnth...@gmail.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Compiling Apache adaptor on Mac OS X 10.8

2013-07-15 Thread Samuel Pelletier
Hi,

I try to compile an Apache adaptor on Mac OS X 10.8 with the xCode 4.6 command 
line tools installed.

The default make stop at FastCGI with an error:
lipo: can't figure out the architecture type of: 
/var/folders/jz/k0w8zpfd7w7b04zt077cs114gn/T//ccc2vy1M.out

If I go to the Apache2.2 directory and make, another error:
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'

In Apache 2.4, same error.

I tried to add this --tag=CC thing that seems missing somewhere but I cannot 
figure where it should be added. Adding it to a gcc line produce another error:
cc1: error: unrecognized command line option "-ftag=CC"

Is there someone who understand all these makefile and flags to help me fix 
this?

Samuel



 ___
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] NSNumberFormatter

2013-07-15 Thread Ingenieurbüro Birnfeld - Oliver Birnfeld

Hi Christoph,


use the "validateKey" mechanism (where "Key" is the name of property, e.g. 
myNumber)

public Object validateMyNumber(Object aValue) throws 
NSValidation.ValidationException {
// 1. cast aValue to int (or whatever you need
// 2. write check method, e.g. SOMETHINGWRONGWITH_aValue
// throw exception, if aValue is not what you want it to be
if (SOMETHINGWRONGWITH_aValue) {
throw new NSValidation.ValidationException(aValue+" is 
not allowed for property 'MyNumber');
}
}

This way it works as desired, thank you!

And thanks for the links!

Regards,
Oliver





This method will be called by WO automatically before the settermethod 
setMyNumber is called.

Or you overwrite "validateForSave" or "validateForUpdate" in your entity's 
class (which should be a subclass of EOCustomObject).


For more basic information see:

https://developer.apple.com/legacy/library/#documentation/WebObjects/Enterprise_Objects/BusinessLogic/BusinessLogic.html%23//apple_ref/doc/uid/TP30001011-CH204-DontLinkElementID_12

or the documentation of NSValidation
http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/foundation/NSValidation.html

or the documentation of EOCustomObject
http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/eocontrol/EOCustomObject.html#validateForUpdate()

Hope, this helps ...
C.U.CW



--
Mit freundlichen Grüßen,
Oliver Birnfeld

Ingenieurbüro Birnfeld UG (haftungsbeschränkt)
Tel.: +49.221.6605118
Fax:  +49.221.6605119
Email: o.birnf...@ingenieurbuero-birnfeld.de
http://www.ingenieurbuero-birnfeld.de

XING: http://www.xing.com/profile/Oliver_Birnfeld
facebook: https://www.facebook.com/ingenieurbuerobirnfeld
Gulp: http://www.gulp.de/Profil/ibb-koeln.html
Elance: https://www.elance.com/s/ibb-koeln/






Sitz der Gesellschaft: Köln
Rechtsform: UG (haftungsbeschränkt)
Eingetragen beim Amtsgericht Köln
Handelsregister: HRB 77830
Steuernummer: 218/5720/1867
USt.-ID: DE288802207
Geschäftsführer: Oliver Birnfeld
___
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: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Raymond NANEON
Hey Chuck,AjaxTabbedPanel don't like loop it seems. I tried the method of Paul and I solved my problem.ThanksEnvoyé depuis iCloudLe 15 jul 2013 à 07:21, Chuck Hill  a écrit :Yes, AjaxTabbedPanel is going to fight you here.  Chuck  On 2013-07-15, at 5:07 AM, Paul Yu wrote: RaymondI had better success using CCTabPanel for dynamically creating tabs..html.javaprivate NSArray _tabs;public NSArray tabs() {if (_tabs == null) {// the evaluation has a method for getting the districtDomainsNSMutableArray tabs = new NSMutableArray();NSMutableDictionary myTab1 = new NSMutableDictionary("My Tab Title", "tabLabel");observationsTab.takeValueForKey(ObservationSubTab.class.getName(), "wocomponent");// More tabs heretabs.add(myTab1);_tabs = tabs.immutableClone();}return _tabs;}PaulOn Jul 15, 2013, at 4:18 AM, Raymond NANEON  wrote:Hi List,I don't understand why item is null when I want to dynamically create tabs in AjaxTabbedPanel using WORepetion.What's wrong in my codes?Envoyé depuis iCloudLe 12 jul 2013 à 07:08, Raymond NANEON  a écrit :Hi List,I want to create many of AjaxTabbedPanelTab from WORepetition in AjaxTabbedPanel.html :wod :Tabs : AjaxTabbedPanel {id = tabsId;}repeatTabbedPanelTab : WORepetition {list = competences;item = competenceItem;identifier = dynaTabId;}DynamiqueTab : AjaxTabbedPanelTab {name = libelle;isSelected = false;id = dynaTabId;}template : TemplateCompTierBase {competence = competenceItem;domaine = competenceItem.domaine;editingContext = competenceItem.editingContext;updateContainerID = TRCompoementId;}In this case (WORepetition in AjaxTabbedPanel) in the repetition item is always NULL.So when I put the AjaxTabbedPanel in the WORepetition, it works fine but I have many of AjaxTabbedPanel instead of many tabs.Thanks for your 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/rnaneon%40me.com This email sent to rnan...@me.com ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription: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/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 44th in 25th annual PROFIT 500 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/archive%40mail-archive.com

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

[SOLVED] - Re: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Raymond NANEON
Hi Paul,Thanks a lot.It works fine.Envoyé depuis iCloudLe 15 jul 2013 à 06:43, Paul Yu  a écrit :RaymondThis should be it..java    private NSDictionary _tabSelection;    public NSDictionary tabSelection() {        return_tabSelection;    }    public void setTabSelection(NSDictionary tabSelection) {        _tabSelection = tabSelection;        String tabLabelString = (String) _tabSelection.valueForKey("tabLabel");// THIS IS MY DYNAMIC LIST        NSArray temp = EOQualifier.filteredArrayWithQualifier(evaluationDomains(), EvaluationDomain.TAB_LABEL.likeInsensitive(tabLabelString));        if ( ! temp.isEmpty()) {            _accessController.setEvaluationDomain((EvaluationDomain) temp.objectAtIndex(0));        } else {            _accessController.setEvaluationDomain(null);        }            }        public Object selectedTabsWOComponent() {        return _tabSelection.valueForKey("wocomponent");    }    private NSArray _tabs;        public NSArray tabs() {    if (_tabs == null) {        // CREATE THE LIST OF NSDictionaries to load into the array        NSMutableArray tabs = new NSMutableArray();               NSMutableDictionary observationsTab = new NSMutableDictionary("Observations", "tabLabel");        observationsTab.takeValueForKey(ObservationSubTab.class.getName(), "wocomponent");        NSMutableDictionary recommendationsTab = new NSMutableDictionary("Recommendations", "tabLabel");            recommendationsTab.takeValueForKey(EvaluationRecommendations.class.getName(), "wocomponent");            NSMutableDictionary teacherResponseTab = new NSMutableDictionary("Teacher Response", "tabLabel");            teacherResponseTab.takeValueForKey(EvaluationTeacherResponse.class.getName(), "wocomponent");            NSMutableDictionary artifactsTab = new NSMutableDictionary("Artifacts", "tabLabel");            artifactsTab.takeValueForKey(EvaluationArtifacts.class.getName(), "wocomponent");                   //  This is the list of Tabs            //  Start with Observation            //  Then the Domains associated with this Evaluation            //  Then the Administrators recommendations and then the Teachers Response            //  Finally the Artifacts                   tabs.add(observationsTab);        for (EvaluationDomain evaluationDomain : evaluation().evaluationDomainsSortedByDisplaySequenceKey() ) {           String tabLabel = evaluationDomain.tabLabel();            NSMutableDictionary tab = new NSMutableDictionary();            tab.takeValueForKey(tabLabel, "tabLabel");            tab.takeValueForKey(EvaluationDetailDomain.class.getName(), "wocomponent");                      tabs.add(tab.immutableClone());       }       tabs.add(recommendationsTab);            tabs.add(teacherResponseTab);       tabs.add(artifactsTab);        _tabs = tabs.immutableClone();    }       return _tabs;}On Jul 15, 2013, at 9:36 AM, Raymond NANEON  wrote:Hi Paul,Your example is great but very confused with all variables. Can I have a clean .java example.Sorry for the mess.Envoyé depuis iCloudLe 15 jul 2013 à 06:19, Paul Yu  a écrit :RaymondobservationsTab is myTab1.  Sorry.  Cut and paste and clean, not too good.private NSDictionary _tabSelection;public NSDictionary tabSelection() {        return_tabSelection;    }    public void setTabSelection(NSDictionary tabSelection) {        _tabSelection = tabSelection;        String tabLabelString = (String) _tabSelection.valueForKey("tabLabel");    }        public Object selectedTabsWOComponent() {        return _tabSelection.valueForKey("wocomponent");    }On Jul 15, 2013, at 9:09 AM, Raymond NANEON  wrote:Hi Paul,Thanks for your help.Can I have detail of .java ? tabSelection nature?  observationsTab ?? where do you use this component?Envoyé depuis iCloudLe 15 jul 2013 à 05:07, Paul Yu  a écrit :RaymondI had better success using CCTabPanel for dynamically creating tabs..html    wo:AjaxUpdateContainer>wo:CCAjaxTabPanel>.java    private NSArray _tabs;        public NSArray tabs() {    if (_tabs == null) {        // the evaluation has a method for getting the districtDomains        NSMutableArray tabs = new NSMutableArray();               NSMutableDictionary myTab1 = new NSMutableDictionary("My Tab Title", "tabLabel");        observationsTab.takeValueForKey(ObservationSubTab.class.getName(), "wocomponent");// More tabs here        tabs.add(myTab1);        _tabs = tabs.immutableClone();    }       return _tabs;}PaulOn Jul 15, 2013, at 4:18 AM, Raymond NANEON  wrote:Hi List,I don't understand why item is null when I want to dynamic

Re: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Chuck Hill
Yes, AjaxTabbedPanel is going to fight you here.

Chuck

On 2013-07-15, at 5:07 AM, Paul Yu wrote:

> Raymond
> 
> I had better success using CCTabPanel for dynamically creating tabs.
> 
> .html
> 
>= "$tabs" tabNameKey="tabLabel" useFormSubmit="$true">
>   
>   
>   
>accessController="$accessController" evaluation = "$evaluation" />
>   
>   
>   
> 
> 
> .java
> 
> private NSArray _tabs;
> 
> public NSArray tabs() {
>   if (_tabs == null) {
>   // the evaluation has a method for getting the districtDomains
>   NSMutableArray tabs = new 
> NSMutableArray();
>   
>   NSMutableDictionary myTab1 = new 
> NSMutableDictionary("My Tab Title", "tabLabel");
>   observationsTab.takeValueForKey(ObservationSubTab.class.getName(), 
> "wocomponent");
> 
>   // More tabs here
> 
>   tabs.add(myTab1);
> 
>   _tabs = tabs.immutableClone();
>   }
>   
>   return _tabs;
>   }
> 
> Paul
> On Jul 15, 2013, at 4:18 AM, Raymond NANEON  wrote:
> 
>> Hi List,
>> 
>> I don't understand why item is null when I want to dynamically create tabs 
>> in AjaxTabbedPanel using WORepetion.
>> What's wrong in my codes?
>> Envoyé depuis iCloud
>> 
>> Le 12 jul 2013 à 07:08, Raymond NANEON  a écrit :
>> 
>>> Hi List,
>>> 
>>> I want to create many of AjaxTabbedPanelTab from WORepetition in 
>>> AjaxTabbedPanel.
>>> 
>>> html : 
>>> 
>>> 
>>> 
>>>   >> name = "template" />
>>> 
>>>   
>>> 
>>> wod : 
>>> 
>>> Tabs : AjaxTabbedPanel {
>>> id = tabsId;
>>> }
>>> 
>>> repeatTabbedPanelTab : WORepetition {
>>> list = competences;
>>> item = competenceItem;
>>> identifier = dynaTabId;
>>> }
>>> 
>>> DynamiqueTab : AjaxTabbedPanelTab {
>>> name = libelle;
>>> isSelected = false;
>>> id = dynaTabId;
>>> }
>>> 
>>> template : TemplateCompTierBase {
>>> competence = competenceItem;
>>> domaine = competenceItem.domaine;
>>> editingContext = competenceItem.editingContext; 
>>> updateContainerID = TRCompoementId;
>>> }
>>> 
>>> 
>>> In this case (WORepetition in AjaxTabbedPanel) in  the repetition item is 
>>> always NULL.
>>> 
>>> So when I put the AjaxTabbedPanel in the WORepetition, it works fine but I 
>>> have many of AjaxTabbedPanel instead of many tabs.
>>> 
>>> Thanks for your 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/rnaneon%40me.com
>>> 
>>> This email sent to rnan...@me.com
>>>  
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> 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/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 44th in 25th annual PROFIT 500 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/archive%40mail-archive.com

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

Re: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Paul Yu
Raymond

This should be it.

.java

private NSDictionary _tabSelection;

public NSDictionary tabSelection() {
return _tabSelection;
}

public void setTabSelection(NSDictionary tabSelection) {
_tabSelection = tabSelection;
String tabLabelString = (String) _tabSelection.valueForKey("tabLabel");

// THIS IS MY DYNAMIC LIST
NSArray temp = 
EOQualifier.filteredArrayWithQualifier(evaluationDomains(), 
EvaluationDomain.TAB_LABEL.likeInsensitive(tabLabelString));
if ( ! temp.isEmpty()) {
_accessController.setEvaluationDomain((EvaluationDomain) 
temp.objectAtIndex(0));
} else {
_accessController.setEvaluationDomain(null);
}

}

public Object selectedTabsWOComponent() {
return _tabSelection.valueForKey("wocomponent");
}

private NSArray _tabs;

public NSArray tabs() {
if (_tabs == null) {
// CREATE THE LIST OF NSDictionaries to load into the array
NSMutableArray tabs = new 
NSMutableArray();

NSMutableDictionary observationsTab = new 
NSMutableDictionary("Observations", "tabLabel");
observationsTab.takeValueForKey(ObservationSubTab.class.getName(), 
"wocomponent");

NSMutableDictionary recommendationsTab = new 
NSMutableDictionary("Recommendations", "tabLabel");

recommendationsTab.takeValueForKey(EvaluationRecommendations.class.getName(), 
"wocomponent");
NSMutableDictionary teacherResponseTab = new 
NSMutableDictionary("Teacher Response", "tabLabel");

teacherResponseTab.takeValueForKey(EvaluationTeacherResponse.class.getName(), 
"wocomponent");
NSMutableDictionary artifactsTab = new 
NSMutableDictionary("Artifacts", "tabLabel");
artifactsTab.takeValueForKey(EvaluationArtifacts.class.getName(), 
"wocomponent");

//  This is the list of Tabs
//  Start with Observation
//  Then the Domains associated with this Evaluation
//  Then the Administrators recommendations and then the Teachers 
Response
//  Finally the Artifacts

tabs.add(observationsTab);
for (EvaluationDomain evaluationDomain : 
evaluation().evaluationDomainsSortedByDisplaySequenceKey() ) {
String tabLabel = evaluationDomain.tabLabel();
NSMutableDictionary tab = new 
NSMutableDictionary();
tab.takeValueForKey(tabLabel, "tabLabel");
tab.takeValueForKey(EvaluationDetailDomain.class.getName(), 
"wocomponent");

tabs.add(tab.immutableClone());
}
tabs.add(recommendationsTab);
tabs.add(teacherResponseTab);
tabs.add(artifactsTab);
_tabs = tabs.immutableClone();
}

return _tabs;
}

On Jul 15, 2013, at 9:36 AM, Raymond NANEON  wrote:

> Hi Paul,
> 
> Your example is great but very confused with all variables. Can I have a 
> clean .java example.
> 
> Sorry for the mess.
> Envoyé depuis iCloud
> 
> Le 15 jul 2013 à 06:19, Paul Yu  a écrit :
> 
>> Raymond
>> 
>> observationsTab is myTab1.  Sorry.  Cut and paste and clean, not too good.
>> 
>> private NSDictionary _tabSelection;
>> 
>> public NSDictionary tabSelection() {
>> return_tabSelection;
>> }
>> 
>> public void setTabSelection(NSDictionary tabSelection) {
>> _tabSelection = tabSelection;
>> String tabLabelString = (String) 
>> _tabSelection.valueForKey("tabLabel");
>> 
>> }
>> 
>> public Object selectedTabsWOComponent() {
>> return _tabSelection.valueForKey("wocomponent");
>> }
>> 
>> On Jul 15, 2013, at 9:09 AM, Raymond NANEON  wrote:
>> 
>>> Hi Paul,
>>> 
>>> Thanks for your help.
>>> 
>>> Can I have detail of .java ? tabSelection nature?  observationsTab ?? where 
>>> do you use this component?
>>> Envoyé depuis iCloud
>>> 
>>> Le 15 jul 2013 à 05:07, Paul Yu  a écrit :
>>> 
 Raymond
 
 I had better success using CCTabPanel for dynamically creating tabs.
 
 .html
 
 
 
 
 
 
 
 
 
 
 
 
 .java
 
 private NSArray _tabs;
 
 public NSArray tabs() {
 if (_tabs == null) {
 // the evaluation has a method for getting the districtDomains
 NSMutableArray tabs = new 
 NSMutableArray();

 NSMutableDictionary myTab1 = new 
 NSMutableDictionary("My Tab Title", "tabLabel");
 observationsTab.takeValueForKey(ObservationSubTab.class.getName(), 
 "wocomponent");
 
 // More tabs here
 
 tabs.add(myTab1);
 
 _tabs = tabs.immutableClone();
 }

 return _tabs;
 }
 
 Paul
 On Jul 15, 2013, at 4:18 AM, Raymond NA

Re: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Raymond NANEON
Hi Paul,Your example is great but very confused with all variables. Can I have a clean .java example.Sorry for the mess.Envoyé depuis iCloudLe 15 jul 2013 à 06:19, Paul Yu  a écrit :RaymondobservationsTab is myTab1.  Sorry.  Cut and paste and clean, not too good.private NSDictionary _tabSelection;public NSDictionary tabSelection() {        return_tabSelection;    }    public void setTabSelection(NSDictionary tabSelection) {        _tabSelection = tabSelection;        String tabLabelString = (String) _tabSelection.valueForKey("tabLabel");    }        public Object selectedTabsWOComponent() {        return _tabSelection.valueForKey("wocomponent");    }On Jul 15, 2013, at 9:09 AM, Raymond NANEON  wrote:Hi Paul,Thanks for your help.Can I have detail of .java ? tabSelection nature?  observationsTab ?? where do you use this component?Envoyé depuis iCloudLe 15 jul 2013 à 05:07, Paul Yu  a écrit :RaymondI had better success using CCTabPanel for dynamically creating tabs..html    wo:AjaxUpdateContainer>wo:CCAjaxTabPanel>.java    private NSArray _tabs;        public NSArray tabs() {    if (_tabs == null) {        // the evaluation has a method for getting the districtDomains        NSMutableArray tabs = new NSMutableArray();               NSMutableDictionary myTab1 = new NSMutableDictionary("My Tab Title", "tabLabel");        observationsTab.takeValueForKey(ObservationSubTab.class.getName(), "wocomponent");// More tabs here        tabs.add(myTab1);        _tabs = tabs.immutableClone();    }       return _tabs;}PaulOn Jul 15, 2013, at 4:18 AM, Raymond NANEON  wrote:Hi List,I don't understand why item is null when I want to dynamically create tabs in AjaxTabbedPanel using WORepetion.What's wrong in my codes?Envoyé depuis iCloudLe 12 jul 2013 à 07:08, Raymond NANEON  a écrit :Hi List,I want to create many of AjaxTabbedPanelTab from WORepetition in AjaxTabbedPanel.html :             wod : Tabs : AjaxTabbedPanel {    id = tabsId;}repeatTabbedPanelTab : WORepetition {    list = competences;    item = competenceItem;    identifier = dynaTabId;}DynamiqueTab : AjaxTabbedPanelTab {    name = libelle;    isSelected = false;    id = dynaTabId;}template : TemplateCompTierBase {    competence = competenceItem;    domaine = competenceItem.domaine;    editingContext = competenceItem.editingContext;     updateContainerID = TRCompoementId;}In this case (WORepetition in AjaxTabbedPanel) in  the repetition item is always NULL.So when I put the AjaxTabbedPanel in the WORepetition, it works fine but I have many of AjaxTabbedPanel instead of many tabs.Thanks for your 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/rnaneon%40me.com  This email sent to rnan...@me.com ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.comThis 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/archive%40mail-archive.com

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

Re: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Paul Yu
Raymond

observationsTab is myTab1.  Sorry.  Cut and paste and clean, not too good.

private NSDictionary _tabSelection;

public NSDictionary tabSelection() {
return _tabSelection;
}

public void setTabSelection(NSDictionary tabSelection) {
_tabSelection = tabSelection;
String tabLabelString = (String) _tabSelection.valueForKey("tabLabel");

}

public Object selectedTabsWOComponent() {
return _tabSelection.valueForKey("wocomponent");
}

On Jul 15, 2013, at 9:09 AM, Raymond NANEON  wrote:

> Hi Paul,
> 
> Thanks for your help.
> 
> Can I have detail of .java ? tabSelection nature?  observationsTab ?? where 
> do you use this component?
> Envoyé depuis iCloud
> 
> Le 15 jul 2013 à 05:07, Paul Yu  a écrit :
> 
>> Raymond
>> 
>> I had better success using CCTabPanel for dynamically creating tabs.
>> 
>> .html
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> .java
>> 
>> private NSArray _tabs;
>> 
>> public NSArray tabs() {
>> if (_tabs == null) {
>> // the evaluation has a method for getting the districtDomains
>> NSMutableArray tabs = new 
>> NSMutableArray();
>>
>> NSMutableDictionary myTab1 = new 
>> NSMutableDictionary("My Tab Title", "tabLabel");
>> observationsTab.takeValueForKey(ObservationSubTab.class.getName(), 
>> "wocomponent");
>> 
>> // More tabs here
>> 
>> tabs.add(myTab1);
>> 
>> _tabs = tabs.immutableClone();
>> }
>>
>> return _tabs;
>> }
>> 
>> Paul
>> On Jul 15, 2013, at 4:18 AM, Raymond NANEON  wrote:
>> 
>>> Hi List,
>>> 
>>> I don't understand why item is null when I want to dynamically create tabs 
>>> in AjaxTabbedPanel using WORepetion.
>>> What's wrong in my codes?
>>> Envoyé depuis iCloud
>>> 
>>> Le 12 jul 2013 à 07:08, Raymond NANEON  a écrit :
>>> 
 Hi List,
 
 I want to create many of AjaxTabbedPanelTab from WORepetition in 
 AjaxTabbedPanel.
 
 html : 
 
 
 
   >>> name = "template" />
 
   
 
 wod : 
 
 Tabs : AjaxTabbedPanel {
 id = tabsId;
 }
 
 repeatTabbedPanelTab : WORepetition {
 list = competences;
 item = competenceItem;
 identifier = dynaTabId;
 }
 
 DynamiqueTab : AjaxTabbedPanelTab {
 name = libelle;
 isSelected = false;
 id = dynaTabId;
 }
 
 template : TemplateCompTierBase {
 competence = competenceItem;
 domaine = competenceItem.domaine;
 editingContext = competenceItem.editingContext; 
 updateContainerID = TRCompoementId;
 }
 
 
 In this case (WORepetition in AjaxTabbedPanel) in  the repetition item is 
 always NULL.
 
 So when I put the AjaxTabbedPanel in the WORepetition, it works fine but I 
 have many of AjaxTabbedPanel instead of many tabs.
 
 Thanks for your 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/rnaneon%40me.com
 
 This email sent to rnan...@me.com
  
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> 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/archive%40mail-archive.com

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

Re: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Raymond NANEON
Hi Paul,Thanks for your help.Can I have detail of .java ? tabSelection nature?  observationsTab ?? where do you use this component?Envoyé depuis iCloudLe 15 jul 2013 à 05:07, Paul Yu  a écrit :RaymondI had better success using CCTabPanel for dynamically creating tabs..html    wo:AjaxUpdateContainer>wo:CCAjaxTabPanel>.java    private NSArray _tabs;        public NSArray tabs() {    if (_tabs == null) {        // the evaluation has a method for getting the districtDomains        NSMutableArray tabs = new NSMutableArray();               NSMutableDictionary myTab1 = new NSMutableDictionary("My Tab Title", "tabLabel");        observationsTab.takeValueForKey(ObservationSubTab.class.getName(), "wocomponent");// More tabs here        tabs.add(myTab1);        _tabs = tabs.immutableClone();    }       return _tabs;}PaulOn Jul 15, 2013, at 4:18 AM, Raymond NANEON  wrote:Hi List,I don't understand why item is null when I want to dynamically create tabs in AjaxTabbedPanel using WORepetion.What's wrong in my codes?Envoyé depuis iCloudLe 12 jul 2013 à 07:08, Raymond NANEON  a écrit :Hi List,I want to create many of AjaxTabbedPanelTab from WORepetition in AjaxTabbedPanel.html :             wod : Tabs : AjaxTabbedPanel {    id = tabsId;}repeatTabbedPanelTab : WORepetition {    list = competences;    item = competenceItem;    identifier = dynaTabId;}DynamiqueTab : AjaxTabbedPanelTab {    name = libelle;    isSelected = false;    id = dynaTabId;}template : TemplateCompTierBase {    competence = competenceItem;    domaine = competenceItem.domaine;    editingContext = competenceItem.editingContext;     updateContainerID = TRCompoementId;}In this case (WORepetition in AjaxTabbedPanel) in  the repetition item is always NULL.So when I put the AjaxTabbedPanel in the WORepetition, it works fine but I have many of AjaxTabbedPanel instead of many tabs.Thanks for your 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/rnaneon%40me.com  This email sent to rnan...@me.com ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.comThis 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/archive%40mail-archive.com

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

RE: WebObjects - old classes in JavaXML (Maven)

2013-07-15 Thread Michael . Walters
Hi Patrick,

The JavaXML Framework doesn't really mesh with the maven paradigm.
I simply exclude it as a transitive dependency:


wonder.core
ERExtensions


com.webobjects
JavaXML




-mike

-Original Message-
From: webobjects-dev-bounces+michael.walters=sungard@lists.apple.com 
[mailto:webobjects-dev-bounces+michael.walters=sungard@lists.apple.com] On 
Behalf Of Patrick
Sent: Monday, July 15, 2013 7:28 AM
To: webobjects-dev@lists.apple.com
Subject: WebObjects - old classes in JavaXML (Maven)

Hello,

I use Webobjects with Project Wonder 6.1.0 and Maven.

I have to connect to an external SOAP-Interface (yeah, I know - it's unlovely 
but needed ;)).
I use org.apache.cxf in version 2.7.5 for connection.

Well, I found out that the JavaXML-Framework is very old. Especially the 
javax-classes.
To parse wsdl-files, anything inside the apache-cxf use the class 
javax.wsdl.xml.WSDLReader. Normally this class will be imported by wsdl4j.
But in my case, my classloader takes the WSDLReader from JavaXML-Framework. And 
this is an very old one. Older than wsdl4j 1.6.2 from the year 2006.
So, for example the method "readWSDL(WSDLLocator locator, Element 
definitionsElement)" is missing there.

The class WSDLReader is not the only one, it was just an example.


So, my question now: is there any possibilty to change the classpath order 
(JavaXML is the last one), force maven to use the classes from wsdl4j-jar 
instead of JavaXML, replace the classes in JavaXML or something else?

Thank you!



Greetings,
Pati
 ___
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/michael.walters%40sungard.com

This email sent to michael.walt...@sungard.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: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Paul Yu
Raymond

I had better success using CCTabPanel for dynamically creating tabs.

.html











.java

private NSArray _tabs;

public NSArray tabs() {
if (_tabs == null) {
// the evaluation has a method for getting the districtDomains
NSMutableArray tabs = new 
NSMutableArray();

NSMutableDictionary myTab1 = new 
NSMutableDictionary("My Tab Title", "tabLabel");
observationsTab.takeValueForKey(ObservationSubTab.class.getName(), 
"wocomponent");

// More tabs here

tabs.add(myTab1);

_tabs = tabs.immutableClone();
}

return _tabs;
}

Paul
On Jul 15, 2013, at 4:18 AM, Raymond NANEON  wrote:

> Hi List,
> 
> I don't understand why item is null when I want to dynamically create tabs in 
> AjaxTabbedPanel using WORepetion.
> What's wrong in my codes?
> Envoyé depuis iCloud
> 
> Le 12 jul 2013 à 07:08, Raymond NANEON  a écrit :
> 
>> Hi List,
>> 
>> I want to create many of AjaxTabbedPanelTab from WORepetition in 
>> AjaxTabbedPanel.
>> 
>> html : 
>> 
>> 
>> 
>>   > name = "template" />
>> 
>>   
>> 
>> wod : 
>> 
>> Tabs : AjaxTabbedPanel {
>> id = tabsId;
>> }
>> 
>> repeatTabbedPanelTab : WORepetition {
>> list = competences;
>> item = competenceItem;
>> identifier = dynaTabId;
>> }
>> 
>> DynamiqueTab : AjaxTabbedPanelTab {
>> name = libelle;
>> isSelected = false;
>> id = dynaTabId;
>> }
>> 
>> template : TemplateCompTierBase {
>> competence = competenceItem;
>> domaine = competenceItem.domaine;
>> editingContext = competenceItem.editingContext; 
>> updateContainerID = TRCompoementId;
>> }
>> 
>> 
>> In this case (WORepetition in AjaxTabbedPanel) in  the repetition item is 
>> always NULL.
>> 
>> So when I put the AjaxTabbedPanel in the WORepetition, it works fine but I 
>> have many of AjaxTabbedPanel instead of many tabs.
>> 
>> Thanks for your 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/rnaneon%40me.com
>> 
>> This email sent to rnan...@me.com
>>  
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> 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/archive%40mail-archive.com

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

WebObjects - old classes in JavaXML (Maven)

2013-07-15 Thread Patrick
Hello,

I use Webobjects with Project Wonder 6.1.0 and Maven.

I have to connect to an external SOAP-Interface (yeah, I know - it's
unlovely but needed ;)).
I use org.apache.cxf in version 2.7.5 for connection.

Well, I found out that the JavaXML-Framework is very old. Especially the
javax-classes.
To parse wsdl-files, anything inside the apache-cxf use the class
javax.wsdl.xml.WSDLReader. Normally this class will be imported by wsdl4j.
But in my case, my classloader takes the WSDLReader from
JavaXML-Framework. And this is an very old one. Older than wsdl4j 1.6.2
from the year 2006.
So, for example the method "readWSDL(WSDLLocator locator, Element
definitionsElement)" is missing there.

The class WSDLReader is not the only one, it was just an example.


So, my question now: is there any possibilty to change the classpath
order (JavaXML is the last one), force maven to use the classes from
wsdl4j-jar instead of JavaXML, replace the classes in JavaXML or
something else?

Thank you!



Greetings,
Pati
 ___
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: NSNumberFormatter

2013-07-15 Thread Christoph Wick
Hi Oliver,

use the "validateKey" mechanism (where "Key" is the name of property, e.g. 
myNumber)

public Object validateMyNumber(Object aValue) throws 
NSValidation.ValidationException {
// 1. cast aValue to int (or whatever you need
// 2. write check method, e.g. SOMETHINGWRONGWITH_aValue
// throw exception, if aValue is not what you want it to be
if (SOMETHINGWRONGWITH_aValue) {
throw new NSValidation.ValidationException(aValue+" is 
not allowed for property 'MyNumber');
}
}

This method will be called by WO automatically before the settermethod 
setMyNumber is called.

Or you overwrite "validateForSave" or "validateForUpdate" in your entity's 
class (which should be a subclass of EOCustomObject).


For more basic information see:

https://developer.apple.com/legacy/library/#documentation/WebObjects/Enterprise_Objects/BusinessLogic/BusinessLogic.html%23//apple_ref/doc/uid/TP30001011-CH204-DontLinkElementID_12

or the documentation of NSValidation 
http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/foundation/NSValidation.html

or the documentation of EOCustomObject
http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/eocontrol/EOCustomObject.html#validateForUpdate()

Hope, this helps ...
C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600


On 15.07.2013, at 11:21, Ingenieurbüro Birnfeld - Oliver Birnfeld 
 wrote:

>>> inputFormatter=new NSNumberFormatter("0");
> The same result as with "#". I think, I have to write my own validator. Any 
> newbie hints for that task?
> 
> Thanks!
> 
> Oliver
> 
> ___
> 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/wicki%40me.com
> 
> This email sent to wi...@me.com


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

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

Re: NSNumberFormatter

2013-07-15 Thread Ingenieurbüro Birnfeld - Oliver Birnfeld

inputFormatter=new NSNumberFormatter("0");
The same result as with "#". I think, I have to write my own validator. 
Any newbie hints for that task?


Thanks!

Oliver

___
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: Create dynamic AjaxTabbedPanelTab in AjaxTabbedPanel with WORepetion

2013-07-15 Thread Raymond NANEON
Hi List,I don't understand why item is null when I want to dynamically create tabs in AjaxTabbedPanel using WORepetion.What's wrong in my codes?Envoyé depuis iCloudLe 12 jul 2013 à 07:08, Raymond NANEON  a écrit :Hi List,I want to create many of AjaxTabbedPanelTab from WORepetition in AjaxTabbedPanel.html :             wod : Tabs : AjaxTabbedPanel {    id = tabsId;}repeatTabbedPanelTab : WORepetition {    list = competences;    item = competenceItem;    identifier = dynaTabId;}DynamiqueTab : AjaxTabbedPanelTab {    name = libelle;    isSelected = false;    id = dynaTabId;}template : TemplateCompTierBase {    competence = competenceItem;    domaine = competenceItem.domaine;    editingContext = competenceItem.editingContext;     updateContainerID = TRCompoementId;}In this case (WORepetition in AjaxTabbedPanel) in  the repetition item is always NULL.So when I put the AjaxTabbedPanel in the WORepetition, it works fine but I have many of AjaxTabbedPanel instead of many tabs.Thanks for your 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/rnaneon%40me.com  This email sent to rnan...@me.com  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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