[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

urosmil do-not-reply at jboss.com
Tue Jun 19 11:27:41 EDT 2007


Hi petemuir,

this is link:
offer.jsf?lang=en&id=173&type=offerId
this is pages.xml part:
<page view-id="/offer.xhtml">
  |     	<param name="lang" value="#{offerPreviewBean.lang}"/>
  |     	<param name="id" value="#{offerPreviewBean.id}" 
  |         	   converterId="javax.faces.Integer"/>
  |     	<param name="type" value="#{offerPreviewBean.offerIdType}"/>
  |     	<action execute="#{offerPreviewBean.setOffer}"/>
  | </page>
this is OfferBean:
@Name("offerBean")
  | @Scope(ScopeType.CONVERSATION)
  | @Conversational(ifNotBegunOutcome = "offerBook")
  | public class OfferBean extends BaseBean{
  | 	// ...
  | }
this is OfferPreviewBean:

  | @Name("offerPreviewBean")
  | @Scope(ScopeType.SESSION) //ScopeType.EVENT
  | public class OfferPreviewBean extends BaseBean{
  | 	public OfferPreviewBean() {
  | 		offerBean = (OfferBean) Contexts.getConversationContext().get("offerBean");
  | 	}
  | }
  | 
I think other code is not relevant because in use case where "offerBean" object in OfferPreviewBean bean is not needed pop-up is working perfectly.

Thanks,
Uros!

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

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



More information about the jboss-user mailing list