Re: Dataview linkedline

2010-05-27 Thread midikem

Hi again, i am a little bit confused.

columns.add(new AbstractColumnTest(null, null) {
private static final long serialVersionUID = 1L;
public void populateItem(ItemICellPopulatorTest item, String
componentId, IModelTest model) {
item.add(new LinkTest(componentId, model) {
private static final long serialVersionUID = 1L;

@Override
public void onClick() {

}
});
   }
});

How do i get to my item without having to create a column first, since i
dont want a column when i want to add a Link to a line in the dataview??
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-linkedline-tp2231274p2232716.html
Sent from the Wicket - User 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



Re: Dataview linkedline

2010-05-27 Thread Sven Meier

Override DataTable#newRowItem():

@Override
protected ItemFoo newRowItem(String id, int index,
final IModelFoo model) {
ItemFoo item = super.newRowItem(id, index, model);

item.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget 
target) {
...
}
});

return item;
}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-linkedline-tp2231274p2232746.html
Sent from the Wicket - User 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



Dataview linkedline

2010-05-26 Thread midikem

Hi,

I want to be able to select a line in my dataview and onClick on the line i
want something to happend.
My guess is that i use LinkPanel in some way but how do I do it? I have been
looking around for a while, but i cant find the answear. Thx.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-linkedline-tp2231274p2231274.html
Sent from the Wicket - User 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



Re: Dataview linkedline

2010-05-26 Thread Igor Vaynberg
add a link to your item, and put everything into the link.

-igor

On Wed, May 26, 2010 at 2:19 AM, midikem
ext.anders.nyst...@apotekensservice.se wrote:

 Hi,

 I want to be able to select a line in my dataview and onClick on the line i
 want something to happend.
 My guess is that i use LinkPanel in some way but how do I do it? I have been
 looking around for a while, but i cant find the answear. Thx.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Dataview-linkedline-tp2231274p2231274.html
 Sent from the Wicket - User 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



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org