I'm afraid you will not be able to use other wiquery components as
cell's content :-( Neither you could use wicket components that
requiere executing JavaScript the wicket way (e.g. implementing
IHeaderContributor). The reason why this will not work is that jqgrid
uses jQuery's AJAX implementation to fetch server side contents
(data).... so the request we receive on server side is not a Wicket
AJAX request. Thus, we have cloned some wickets AJAX classes to
implement the server side rendering of components and generate the XML
with the data needed by the grid... but at client side it is jqgrid
who will render the data (and will not use any of Wicket's client side
machinery:-(
One thing you could try is create components that do not use Wicket or
wiquery script contributions. E.g.
<wicket:panel>
<div wicket:id="bla">
</div>
<script wicket:id="script">
${}.... // your generated script here...
</script>
</wicket:panel>
I haven't tried the above myself but it might work. NOTE: With this
approach you will have to contribute all CSS and JavaScript manually.
This limitation is one of the main reasons why I prefer to use [1] in
my applications.
Best,
Ernesto
References.
Best,
Ernesto