Re: [Wicket-user] modifying component from IComponentOnBeforeRenderListener
Looks like I got the problem resolved. I was trying to attach a Behavior from the IComponentOnBeforeRenderListener in order to setRequired which throws an exception. When I just setRequired from within the listener it works fine. Thanks for the help. Ryan On 6/22/07, Ryan Sonnek [EMAIL PROTECTED] wrote: it should be pretty easy to update the wicketstuff-hibernate project to verify this is broken. how should i proceed with this issue? On 6/22/07, Matej Knopp [EMAIL PROTECTED] wrote: 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=2456view=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 - 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
Re: [Wicket-user] modifying component from IComponentOnBeforeRenderListener
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=2456view=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
Re: [Wicket-user] modifying component from IComponentOnBeforeRenderListener
it should be pretty easy to update the wicketstuff-hibernate project to verify this is broken. how should i proceed with this issue? On 6/22/07, Matej Knopp [EMAIL PROTECTED] wrote: 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=2456view=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 - 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
[Wicket-user] modifying component from IComponentOnBeforeRenderListener
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=2456view=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