Re: Problem with WOHyperlink/WORepetition in embedded WOComponents
Re: Problem with WOHyperlink/WORepetition in embedded WOComponents
- Subject: Re: Problem with WOHyperlink/WORepetition in embedded WOComponents
- From: Arturo Perez <email@hidden>
- Date: Wed, 10 Aug 2005 12:46:31 -0400
Ron DuCros wrote:
Hi,
I am new to WebObject so apologies if I'm missing something obvious here.
I have a page that contains a number of embedded WOComponents (actually
multiple instances of the same WOComponent). Each WOComponent displays
a table. Each table contains a WORepetition where on each row is a
WOHyperlink that when clicked takes you to a new page.
The WOHyperlink is bound to the following code:
public ViewForum doViewForum() {
ViewForum nextPage = (ViewForum)pageWithName("ViewForum");
nextPage.setForum( forum );
return nextPage;
}
'forum' is the object that the WORepetition is bound to on the table
(item) - so should represent the item being clicked in the table.
This worked fine when I wasn't using embedded components but now when
the item is clicked 'forum' is always null. All the tables displays
fine so I know the item/list bindings work correctly (at least as far
as display goes).
Any pointers on why this is happening would be gratefully received.
Many Thanks,
Ron
Any name or id bound to the repetition? That always causes problems.
The other thing is with embedded components one needs to be more aware
than usual of the binding synchronization behavior of WO. You may be
better off turning off automatic synchronization and doing it yourself.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden