Hi,

I'm trying to upgrade wicketstuff-inmethod-grid to Wicket 1.5:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jdk-1.5-parent/inmethod-grid-parent

Making it compiling was easy. Now there is one problem (on two places) - the
code uses some advanced technics to write the markup by using
component.render(MarkupStream).
In Wicket 1.5 the code related to MarkupStream and co. is improved/changed
and I have hard time to understand how to upgrade this stuff.
The first place with this problem is at:
com.inmethod.grid.common.ColumnsHeaderRepeater.onRender(). There to make it
work I added:
   component.setMarkup(getParent().getParent().getMarkup());    // this
doesn't look correct
   component.render();

The second place is com.inmethod.grid.common.AbstractGridRow.onRender().
Here I almost cheated it by using:
   IMarkupFragment associatedMarkup = ((MarkupContainer)
component).getAssociatedMarkup();
   component.setMarkup(associatedMarkup);
   component.render();

but it is still failing.

Anyone (Juergen, Matej) has idea how to deal with this ?

martin-g

P.S. the 1.4 version of the code can be found at
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicketstuff-core-1.4.12/inmethod-grid-parent

Reply via email to