Re: Components binding with custom object

2015-05-29 Thread Chuck Hill
WOComponentContent is another interesting one to get familiar with: https://wiki.wocommunity.org/display/documentation/WOComponentContent https://developer.apple.com/legacy/library/documentation/WebObjects/Reference/DynamicElements/WOComponentContent/WOComponentContent.html#//apple_ref/doc/uid/TP3

Re: Components binding with custom object

2015-05-29 Thread HOUNKPONOU Ronald
Please Jean-François! How to not use it? I would like to learn good practices. 2015-05-29 23:12 GMT+01:00 Jean-François Veillette < jean_francois_veille...@yahoo.ca>: > WOSwitchComponent? > https://wiki.wocommunity.org/display/documentation/WOSwitchComponent > > I used it with great success, on

Re: Components binding with custom object

2015-05-29 Thread Jean-François Veillette
WOSwitchComponent? https://wiki.wocommunity.org/display/documentation/WOSwitchComponent I used it with great success, once I figured out how to not use it. Right now I can’t remember what was the symptom, what what the cause a

Re: Components binding with custom object

2015-05-29 Thread HOUNKPONOU Ronald
Hi everyone!! Thanks for all your response. Everything is now working for me. I was doing a mistake in the call of the component A in a third one (C) as if A require the binding value. (A is the template that all pages should use). But i have another question (I don't know if it is best to make a

Re: Components binding with custom object

2015-05-29 Thread Jean-François Veillette
Hi Ronald, is your B component syncronizing bindings? If so, your B instance should receive a call equivalent to « b.takeValueForKey(session().authenticatedUser(), “userAccount”); » so you should comply to KVC for this key (public ivar, get/set method .. your choice) to get it assigned and ava

Re: Components binding with custom object

2015-05-29 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
To check the state of session.authenticatedUser replace the public property in your session (if you have one) by a pair of getter/setter methods. Then you can set a breakpoint (or write a log) in these methods to inspect the state of your authenticatedUser. For your problem with the session bei

Re: Components binding with custom object

2015-05-29 Thread HOUNKPONOU Ronald
Hi Christoph, 1. Yes i have that variable. 2. Not sure because I set that variable on authentication succes, but how can i check it? I would like to use ((Session) session()).authenticatedUser directly in all my components but i have customs Frameworks thats contains some of my components. And

Re: Components binding with custom object

2015-05-29 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Ronald, 1. does your B.java contains a either a public property e.g. public UserAccount userAccount; or a getter/setter pair, e.g. private UserAccount _userAccount; public UserAccount userAccount() { return this._userAccount; } public

Re: Components binding with custom object

2015-05-29 Thread HOUNKPONOU Ronald
*In A.html* *In A.wood* template : B { userAccount = session.authenticatedUser; } *in B.html* http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> untitled Libellé *in B.wood* specialitemedicale : WOForm { } libel

Re: Components binding with custom object

2015-05-29 Thread Johann Werner
What is your HTML? You need to wire up your binding with the actual method/ivar of your component A: … … and in A.java: public MyAccountClass account = …; > Am 29.05.2015 um 13:25 schrieb HOUNKPONOU Ronald > : > > I forgot the image. > > 2015-05-29 12:23 GMT+01:00 HOUNKPONOU Ronald : >

Re: Components binding with custom object

2015-05-29 Thread HOUNKPONOU Ronald
I forgot the image. 2015-05-29 12:23 GMT+01:00 HOUNKPONOU Ronald : > Hi everyone, > > Iam facing a problem with subcomponent binding. > > I have 2 componets A & B. B is to be include in A. > > But B need some information (eg. Authenticated user object). So i have > create a binding as show in the

Components binding with custom object

2015-05-29 Thread HOUNKPONOU Ronald
Hi everyone, Iam facing a problem with subcomponent binding. I have 2 componets A & B. B is to be include in A. But B need some information (eg. Authenticated user object). So i have create a binding as show in the attached picture and add its gette 7 setter in B.java. (I dont know how to speci

Re: Wonder job stale on jenkins.wocommunity.org?

2015-05-29 Thread Pascal Robert
> Le 2015-05-29 à 03:21, Paul Hoadley a écrit : > > Hey Dave, > > On 28 May 2015, at 11:38 pm, Johann Werner wrote: > >> the Wonder build used to be triggered every half hour. But that has been >> switched off. Unfortunately the current setup on the Jenkins server does not >> allow to trigg

Re: Wonder job stale on jenkins.wocommunity.org?

2015-05-29 Thread Paul Hoadley
Hey Dave, On 28 May 2015, at 11:38 pm, Johann Werner wrote: > the Wonder build used to be triggered every half hour. But that has been > switched off. Unfortunately the current setup on the Jenkins server does not > allow to trigger a build if there has been new commits found. Perhaps David >