[
http://jira.jboss.com/jira/browse/JBSEAM-2782?page=comments#action_12406693 ]
paolo di tommaso commented on JBSEAM-2782:
------------------------------------------
I've found a nice trick that seams to fix teh above problem. Here it is the patch:
7d6
< import org.apache.wicket.behavior.IBehaviorListener;
9,10d7
< import org.apache.wicket.markup.html.form.IOnChangeListener;
< import org.apache.wicket.markup.html.link.ILinkListener;
75c72
< String name =
requestTarget.getRequestListenerInterface().getName();
---
if
(IFormSubmitListener.INTERFACE.getName().equals(requestTarget.getRequestListenerInterface().getName()))
76,80d72
<
< if ( name.equals(IFormSubmitListener.INTERFACE.getName()) ||
< name.equals(ILinkListener.INTERFACE.getName()) ||
< name.equals(IBehaviorListener.INTERFACE.getName()) ||
< name.equals(IOnChangeListener.INTERFACE.getName()) )
Wicket application should support conversation propagation for all
built components
-----------------------------------------------------------------------------------
Key: JBSEAM-2782
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2782
Project: JBoss Seam
Issue Type: Feature Request
Components: Wicket
Affects Versions: 2.1.0.A1
Reporter: paolo di tommaso
The Seam Wicket integration is very interesting. But currently the conversation
propagation is limited to form submit action and SeamLink component.
This limitation prevents to use it in a real world application where page navigation can
be implemented with several different components: button, link, submit link, ajax events.
Among all it would be really useful that the conversation propagation would be supported
by the AjaxEventBehavior component that implements Ajax interaction in Wicket and where it
is expected to bring the most important benefits (no more detached entities and
LazyInitializationException on loading proxyed objects).
Regards,
// Paolo Di Tommaso
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira