• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring in Action : Conversation scope for JSF 2 ?

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello !

I've been preordering this book for so long now from the amazon,
and really cant wait since the review for the older editions for this book is simply encouraging.

Actually i've been testing extensively using the newest Spring with JSF 2,
like using spring el-resolver in the faces-config also, which is cool, since i can @Named my JSF 2 Beans, and make use of @Scope("session") for example,
and iim wondering whether this book discusses about the conversation scope provided by the CDI ?
I mean, can spring become an implementation for CDI api replacing jboss Weld ?

I see that spring bean can have several common scopes like request, session, application,
and even with some hacks i saw and tested from this nice article i can make use of JSF 2 View Scope,
but having conversation scope is kinda a requirement for me, for being able to use tabbed web-application that has their own conversation-session.
And so far i notice that i've to use Weld to make use of the conversation scope.

And i wonder, if in my JSF 2 beans, if i have to stay with Weld to get my conversation scope requirement,
how can i inject spring beans into the JSF beans that are managed by Weld ?

I mean, doing this seems not good ? since one JSF bean managed by 2 containers could be disasterous ?
@Named
@Component
@ConversationScoped
public class MyJSFBean {
...
}

Thank you !

Regards,
Albert Kam
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure, but maybe Spring Web Flow will work with JSF.

But basically, Spring has Web Flow which has flows which are exactly like Conversations.

Mark
 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, thank you for your response.

I've just tested the solution suggested in this webpage,
and seems to works cool.

But i was hoping for some other insights for the seamless JSF and spring integration ..

Thank you !
 
reply
    Bookmark Topic Watch Topic
  • New Topic