-
1. Re: Combining Seam's pages.xml and the a4j:include of Ajax4J
nbelaevski Apr 30, 2009 7:40 AM (in response to skidvd)Hello,
There are some issues in Seam JIRA, please take a look: https://jira.jboss.org/jira/browse/JBSEAM-2254
https://jira.jboss.org/jira/browse/JBSEAM-3715 -
2. Re: Combining Seam's pages.xml and the a4j:include of Ajax4J
skidvd Apr 30, 2009 9:16 AM (in response to skidvd)Nick,
Thank you for the reply. Both appear to be related; but neither mentions conversation management in particular. This is my direct need - to be able to create a nested conversation in response to a user action that utlimately triggers a reRender of an <a4j:include> nested inside an <a4j:outputPanel>. Is anyone aware of how this can be accomplished given that the pages.xml rules do not seem to be applied in this case?
I'm presently looking into two different approaches to my dilema:
1) Using an <a4j:support> element nested in the panelMenuItem that will 'immediate' invoke a Seam component whose job it will be to verify (and create as necessary) the nested conversation via the Conversation API....
2) Potentially do the same manual conversation management via Seam Remoting.
Does anyone have any thoughts on these approaches and/or ideas for better ones?
TIA! -
3. Re: Combining Seam's pages.xml and the a4j:include of Ajax4J
nbelaevski Apr 30, 2009 9:50 AM (in response to skidvd)You can try to put Seam link just inside panel menu item - set item's mode to "none"; or yes, use a4j:support interacting with Seam component.
-
4. Re: Combining Seam's pages.xml and the a4j:include of Ajax4J
skidvd Apr 30, 2009 9:50 PM (in response to skidvd)The embedded link mostly works....
I have:<rich:panelMenuItem mode="none"> <rich:toolTip value="#{mainController.getContentTooltip( 'abc' )}"/> <s:link propagation="nest" value="ABC" action="#{mainController.setContentView( 'abc' )}" reRender="contentPanel" status="mainStatus"/> </rich:panelMenuItem>
This works with two remaining issues:
1) it always collapses the containing panelMenuGroup. What I was using before never did this; but of course it did not create a nested conversation either....<rich:panelMenuItem label="ABC" action="#{mainController.setContentView( 'abc' )}" reRender="contentPanel" status="mainStatus"> <rich:toolTip value="#{mainController.getContentTooltip( 'abc' )}"/> </rich:panelMenuItem>
2) This almost works too well for my desired scenario.... Every click on the panelMenuItem results in a new nested conversation ... as coded. For my scenario, I need to have a nested conversation that is created on the first invocation, but is re-used every time the user re-clicks on the panelMenutItem .... so that they can go back and forth between various portions controlled by other panelMenuItems, but not loose their place when they ultimately return.
Any thoughts on these issues?
I'm going to try the a4j:support option next.... -
5. Re: Combining Seam's pages.xml and the a4j:include of Ajax4J
nbelaevski May 1, 2009 8:44 AM (in response to skidvd)BTW, maybe <s:conversationPropagation /> combined with a4j:support/AJAXed rich:panelMenuItem can do the job?...