-
15. Re: Back button and shopping cart contents
lvdberg Apr 4, 2011 11:34 AM (in response to coenos)Hi,
... and additionally, calling an action prior to viewing makes things more transparant. I use ini-methods more or less as the init-method of Spring. It is used to pre-configure yopu bean, so you're sure that everything is what it should be.
Leo
-
16. Re: Back button and shopping cart contents
coenos Apr 4, 2011 11:37 AM (in response to coenos)Hi Leo,
yes I read that, but it doesn't say how to configure it?
- do I need to implement a page flow , because now I do not have the
back
in my DTD.
Seam transparently detects the use of the back button, and blocks any attempt to perform an action from a previous, stale page, and simply redirects the user to the current page (and displays a faces message)This is not happening, I simply get the page/view from before the
add to cart
action was executed.I switched off caching and then I do get the correct view but this requires the user to press a button or F5 the browser.
Thanks,
Coen - do I need to implement a page flow , because now I do not have the
-
17. Re: Back button and shopping cart contents
lvdberg Apr 4, 2011 11:45 AM (in response to coenos)Hi,
attribute no-conversation-view-id defines where you could or use the before-mentioned init-method to define an additional outcome for the navigation-rules.
Leo
-
18. Re: Back button and shopping cart contents
lvdberg Apr 4, 2011 11:54 AM (in response to coenos)Hi,
in addition: Dan Allen's Seam in Action explains in detail the ins- and outs of the conversation and the use of the back-button.
Leo
-
19. Re: Back button and shopping cart contents
coenos Apr 4, 2011 2:52 PM (in response to coenos)Hi Leo,
so you are saying it can't be done, unless the conversation is running in a pageflow with back enabled?
I'll check out Dan Allen's book.
Thanks,
Coen -
20. Re: Back button and shopping cart contents
lvdberg Apr 4, 2011 4:58 PM (in response to coenos)Hi,
It really can be done, but you're not using the receommended way (stateful with pageflow or stateless with the additional attribute), so you complicating things a bit for yourself.
You need some additional experimenting and maybe Dan Allen (who often is active on this forum) has a far better idea.
Try to think
Seamish
and leave the Spring/Struts approach behind.Leo
P.S. I saw your profile on LinkedIn, so if you want to contact me directly send me an invitation. there are not a lot Dutch Seam experts around. -
21. Re: Back button and shopping cart contents
coenos Apr 5, 2011 10:25 AM (in response to coenos)Hi Leo,
I got it working partially. I added a second pages.xml, namely categories.pages.xml with a separate navigation to products.xhtml.
Now I can add products, select more categories and more products, all within the same conversation.
However, when I press the back button it returns to the absolute beginning of the conversation, namely the categories page, but WITH the shopping cart contents shown on the right.
This is not quite what I want but its better than what I had previously.
Thanks,
Coen