Re: Perform Parent Action from within a WORepetition in the subcomponent

2007-01-19 Thread Markus Ruggiero
Wouldn't it be better design-wise to factor out this functionality  
into some helper object? Then in the child you could bind to a getter  
that relies upon this helper - and the parent does the same.


Just thinking loud

---markus---

On 18.01.2007, at 17:55, Robert Walker wrote:


Seabix,

Wouldn't using performParentAction() from a subcomponent invoke an  
action and subsequently create a new request-response loop?  I  
don't really think that's what you're after.


It seems to me that you really want an instance variable in the  
parent that you would access from the subcomponent through key  
value coding.  Put your calculation in the getter method so KVC  
will access its return value through your bound key.


Maybe the ^value1ModifiedByParent binding syntax would work for  
your.  Otherwise you could also use a backing instance variable  
inside your subcomponent that binds directly to the instance  
variable in the parent component.


This is just off the top of my head, but seems like a more logical  
solution.


On Jan 17, 2007, at 4:43 PM, Seabix GmbH - Th. Kramis wrote:


Is it possible to do the following? How?

ParentComponent - Parent.wo
ChildComponent - Child.wo

There is a WORepetiotion in Child.woa with a bunch of String  
values. So the
WORepetition is bound to the NSArray listValues and to the String  
value.


No i wan't to give the value of each iteration up to the parent  
where an
action (public String modifyChildValue()) is performed and the  
return value
will show up next to the original value in the WORepetition (in  
Child.wo).

The Result would be something like this:

Value1   - Value1ModifiedByParent
Value2  - Value2ModifiedByParent
Value3 - Value3ModifiedByParent


Can anyone help me on this?

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:
http://lists.apple.com/mailman/options/webobjects-dev/ 
robertwalker1%40mac.com


This email sent to [EMAIL PROTECTED]


--
Robert Walker
[EMAIL PROTECTED]



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


This email sent to [EMAIL PROTECTED]


Don't miss my latest project at http://blindpromo.com

Markus Ruggiero
rucotec consulting and technologiesemail  
mailto:[EMAIL PROTECTED]

rucotec GmbH   web   http://www.rucotec.ch
Steinentorstrasse 8
4051 Basel Mobile+41 (0)79 508 4701
SwitzerlandPhone/Fax +41 (0)61 271 4990


 ___
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 archive@mail-archive.com

AjaxUpdateContainer/Project Wonder

2007-01-19 Thread Seabix GmbH - Th.Kramis
Hi there

I'm having some sort of charset problems when using AjaxUpdateContainer from
Project Wonder. I'm actually using it to update a worepetition after a
search. Before the search the list correctly displays german text. After the
update, that actually works fine the german text looses all the umlaute
and shows ?. Did anyone notice this, any way to solve this?

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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com


Re: Perform Parent Action from within a WORepetition in the subcomponent

2007-01-19 Thread Seabix GmbH - Th.Kramis
Outsourcing would be a possibility. But I'll try with key value coding
first.






 ___
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 archive@mail-archive.com