I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
- Subject: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
- From: Thomas Peters <email@hidden>
- Date: Thu, 31 Oct 2013 21:05:17 -0400
I have the following… This should be working… the movie that is getting passed to setMovie on the MovieDetails method is null. The WOHyperLink id inside the WORepetition that is the results list of movies. Typical demo... what am I doing wrong? ___________________________ Main.wo Results : WORepetition { list = resultsList; item = movie; index = indexrt; }
ResultTitle : WOString { value = movie.title; }
MovieLink2 : WOHyperlink { action = showDetails; }
___________________________ Main.html <snippet> <webobject name = "Results">
<webobject name="MovieLink2"> <webobject name = "ResultTitle" /> </webobject><br><br>
</webobject> </snippet>
___________________________ Main.java <snippet> public WOComponent showDetails() { MovieDetails detailsPage = (MovieDetails)pageWithName("MovieDetails"); detailsPage.setMovie(movie); return detailsPage; }
|
_______________________________________________
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