[jboss-user] [JBoss Seam] - Re: How to end converstation when user doesn't cooperate?

tynor do-not-reply at jboss.com
Sat Aug 25 19:01:06 EDT 2007


Thanks for sticking with me Christian - I'm sure I'll come to enlightenment with your help.

anonymous wrote : 
  | - make your FooList.xhtml page non-conversational as is the normal case, I don't know why that would be a conversational screen
  | 

Recall that these are seam-gen generated views and Home classes -- and they are indeed generated as conversational: 

  | <page no-conversation-view-id="/WidgetList.xhtml"
  |                login-required="true">
  |    <begin-conversation join="true"/>
  |    <action execute="#{widgetHome.wire}"/>
  | ...
  | 

Perhaps this should be considered a "bug" in seam-gen? 

anonymous wrote : 
  | - "Instead of a "new" widget, we're editing an old one." Even if you stay inside the same conversation that should not happen if you pass the identifier of the edited item correctly from the list to the edit screen.
  | 

Yes: if I pass pass a widgetId, I will edit the proper widget, as here: 

  |             <s:link view="/#{empty from ? 'Widget' : from}.xhtml" 
  |                    value="Select" 
  |                       id="widget">
  |                 <f:param name="widgetWidgetId" 
  |                         value="#{widget.widgetId}"/>
  |             </s:link>
  | 

however, when I try to invoke the same view with a freshly created widget , I end up reusing the most recently edited instance (in cases where I have not explicitly ended the conversation as in my previous message): 


  |     <s:div styleClass="actionButtons" rendered="#{empty from}">
  |         <s:button view="/WidgetEdit.xhtml"
  |                     id="create" 
  |                  value="Create widget">
  |             <f:param name="widgetWidgetId"/>
  |         </s:button>
  |     </s:div>
  |  
  | 

(again, this is straight seam-gen conventions from a "seam generate-entities"-- if it's "wrong", then perhaps we need to log a JIRA against seamgen?)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078078#4078078

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078078



More information about the jboss-user mailing list