Do you also have to subclass ListView (overriding newItem()) to create an object of the ListItem subclass?
On 10/3/07, Maurice Marrink <[EMAIL PROTECTED]> wrote: > Yes you can, The trick is to extend ListItem and have it implement > ILinkListener you can then add the onclick behavior through an > attributemodifier or override oncomponenttag. To prevent having to > make a subclass per page you should make the onLinkClicked method in > your listitem redirect to a method in your listview. > > I could show you our code but it is cluttered with non relevant code, > and the above really says it all. > > Maurice > > On 10/3/07, Christopher Gardner <[EMAIL PROTECTED]> wrote: > > With a ListView is there a way to actually create a Link component > > that encompasses the whole ListItem, such that when you click anywhere > > on a row the onClick event is fired? I know you can do this with Ajax > > support, but I'm curious if you can do this using the traditional way, > > i.e., with a full page refresh. I don't want to add a "click here" > > button to my row. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
