https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/markup/html/link/AbstractLink.java#L124
Try harder ;-)

I write the code in my mail client, so it may have errors.
Use your IDE to fix them!


Martin Grigorov
Wicket Training and Consulting


On Fri, Jun 13, 2014 at 4:59 PM, kumar ramanathan <kumarramana...@gmail.com>
wrote:

> Hi Martin,I have used the link code as you have suggested as below and
> getting the error at setBody(Model.of(person.getId()))* The method
> setBody(Model) is undefined for the type new Link(){} *.Code
> used:repeatingView.add(new Link(repeatingView.newChildId()) {
> public void onClick() {                      setResponsePage(new Output());
> }      }.setBody(Model.of(person.getId())));item.add(repeatingView);So i
> have altered the code as below ,removed the .setbody part. But inoutput am
> unable to get the link in Id column ofoutput.code
> altered:repeatingView.add(new Link(repeatingView.newChildId()) {
> public void onClick() {                      setResponsePage(new Output());
> }      });item.add(repeatingView);O/p Got:Name IdSamRamNo values displayed
> in id column as above. Please help me.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Dataview-help-tp4666151p4666255.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to