That's weird. You should be able to call setRequired from that listener, that's the point why i have introduced it!
-Matej On 6/22/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > I'm *still* trying to find a way to modify a component *when the model is > bound*. The new IComponentOnBeforeRenderListener seems > close, but I can't *modify* the component since it's already started the > rendering cycle. I'm trying to call Component.setRequired(true) on the > component, and that throws an exception right now. > > for a more exact usecase (and even a unit test!), check out the > wicketstuff-hibernate codebase. The test is currently disabled to not break > the build... > http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/test/java/org/wicketstuff/hibernate/HibernateAnnotationComponentInstantiaionListenerTest.java?revision=2456&view=markup > > Again, my goal is to have an *application wide* hook for when the model is > bound on *any* component. I like the direction of > IComponentInstantiationListener and > IComponentOnBeforeRenderListener. Maybe just need to > introduce an IComponentOnModelBoundListener? > > Ryan > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user