This should work, of course. Put a setter on the movie instance variable and see when/if it is called. Could it be bound to something else than the repetition?
Le 1 nov. 2013 à 02:05, Thomas Peters <[email protected]> a écrit : > 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; > } > </snippet> > > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/jp.malrieu%40free.fr > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
