Chuck:

> NSLog.out.appendln(new RuntimeException());

This *is* a cool idea. :-)

> If I understand your description, this is normal.  One call is from the
invokeAction phase and one from appendToReponse.

*This is exactly the case. * Also, I was calling another method from within
componentName (which was getting executed twice).  Refactored it.  Things
are fine again.   :-)

Thank you, for yet another insightful answer.

--Jst


On Mon, Jul 13, 2009 at 11:26 PM, Chuck Hill <ch...@global-village.net>wrote:

>
> On Jul 13, 2009, at 5:49 PM, J Stephanos wrote:
>
>
>> I am using a WOSwitchComponent to  select the relevant component to be
>> displayed via hyperlinks.   componentName is a method that returns the
>> component name.
>>
>> <wo:WOSwitchComponent WOComponentName = "$componentName" />
>>
>> On clicking the link for the first time, everything works great.     Any
>> subsequent clicks shows some odd behaviour  - the componentName method
>> starts getting called twice - why is that?
>>
>
> Ask it to tell you.  Add this line:
>
> NSLog.out.appendln(new RuntimeException());
>
>
>  This results in the component being displayed twice (as seen from the
>> logs).
>>
>
> But not on the page?
>
> If I understand your description, this is normal.  One call is from the
> invokeAction phase and one from appendToReponse.  If you have a form, you
> will see a third call during takeValues.  The bindings are synchronized
> during each phase.
>
>
> Chuck
>
>  Parent Component
>>
>>   [x]Hyperlink1   HyperLink 2
>>
>>   ------------------------------------------------------
>>  |    sub component 1                                  |
>>  -------------------------------------------------------
>>
>> Any ideas/suggestions on what I am doing wrong?
>>
>> Using WO 5.4.3 + Wonder.
>>
>> --JSt
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>>
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>>
>> This email sent to ch...@global-village.net
>>
>
> --
> Chuck Hill             Senior Consultant / VP Development
>
> Learn WO at WOWODC'09 East in Montréal this August!
> http://www.wocommunity.org/wowodc09/east
>
>
> http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Reply via email to