jsf - EJB3 Stateful session bean for login and shopping cart and change template -


Hello every product, now I work with a shopping cart, I wonder if the use of between the Stateful Session for Cart or Login is between Seam or the HTTP session. Everyone has any ideas?

How to compare state for item ID, if it is equal, then I will add item to one unit, this means that item ID = 1 coke and user add to the cart. Another coke will become this 2 coke unit It's easy with an HTTP session but with Stateful and JSF I do not know how to do this?

And a little question for skin change for the site. I was making a combobox for the user who can select the name of the skin and when the user selects the default skin of the other skin difference, the default skin will change the other, but how can I change CSS and images Am I

Please thank me!

Hello everyone, now I am working with shopping cart, I wonder. That HTTP session for the Stateful session bean or cart or login Everyone has any ideas?

There is a very good old thread on theServerSide that discusses (SFSB) and good examples where SFSB is understood. To put it simply:

Using the Stateful Session Beans is relevant when you need "state machine" for your business logic, and how it is "interacted" with your system (WAP / WML, HTML, XML / B2B, etc.)

In other words, you might consider using SFSB for your shopping cart if users can access the system via a different channel from HTTP (e.g., a call center ) And still want to gain access to the state. If you do not have such needs, then paste it into the HTTP session to generate some additional complexity by STSB.

And a little question for skin changes for the site. I was making a combobox for the user who can select the name of the skin and when the user selects the default skin of other skin differences then the default skin will change to another, but how can I change CSS and images ?

I will probably use some libraries to offer a glowing system, such as

Related Questions


Comments