Hi Sam,
Are you using [1]? Assuming the the answer is YES I see to options:
-Modify the grid to be able to render arbitrary Wicket components as
cells (it is in my TODO list but haven't had the time to look into
it).
-The grid already supports events. One possibly (hacky) solution is to
try to OndblClickRowAjaxEvent and there use setResponsePage() to
navigate to the page you want.
grid.addEvent(new OndblClickRowAjaxEvent<Person>() {
private static final long serialVersionUID = 1L;
@Override
protected void ondblClickRow(AjaxRequestTarget target,
int row, int
col, IModel<Person> rowModel) {
setResponsePage(new DetailPage(...));
}
});
By the way, if you are using [1] I have moved development to
http://code.google.com/p/wiquery-plugins/.
Best,
Ernesto
References,
1-http://code.google.com/p/wijqgrid/
On Tue, May 25, 2010 at 12:18 PM, Sam Zilverberg
<[email protected]> wrote:
> Hi all,
>
> I'm using a integration of jqgrid with wicket.
> jqgrid renders its cells from json data that is retrieved from the server.
> I've got this behavior and other operations of jqgrid(search/edit) working
> for some time now.
>
> I want to have one of the columns hold a link to some info page.
> For example: a user name column that links to the user's info page.
> (Note: I don't want the info page to be bookmarkable/mountable. So for this
> page I'm using a constructor that gets a user model and not page params.)
>
> I need the the json data that the server returns to hold a markup of a link
> that points to this info page.
>
> How can I turn a Wicket WebMarkupContainer (panel/link/etc...) to string
> representation so I can put it into the json data?
> I tried rendering the panel/link, but it won't work because their not added
> to a page...
> Any idea how to get this working?
>
> I searched the mail archives for a solution, but could only find how to turn
> wicket pages to an html string.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]