[JBoss Seam] - s:selectItems not showing correct value
by Bas Rutten
Hi,
I recently switched from Seam 1.2.1.GA to Seam 2.0.0.CR2 and this switch seems to have broken the behaviour of <s:selectItems/>
The problem also seems to be discussed in this thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061427#4061427
but there is not really any mention of a resolution. The application I'm working on uses a similar construct to the one described in the thread above; it contains a shuttle dialog with two h:selectManyListBoxes. You can select items in one listbox and transfer them to the other listbox and vice versa.
I've compared the source of the org.jboss.seam.ui.UISelectItems class from 1.2.1.GA to that of the 2.0.0.CR2 version and it seems that the 2.0.0.CR2 version uses so kind of value caching; the value is only evaluated once and then stored for the rest of the request. This causes problems in my application, where I modify the value of the underlying backing bean during the invoke application phase. However, in the render response phase, the cached value is used instead of the actual value. So, my underlying model is correct but the view still displays the old state. If I refresh the view (e.g. by pressing a button that does nothing but rerender the page) then everything is fine again (the correct values are shown).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095595#4095595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095595
18Â years, 9Â months
[JBoss jBPM] - Re: General Exception Handling in JBPM
by Cynosure
"kukeltje" wrote : If it works, it sounds like there is nothing wrong with this. I'm only not sure what happens if this occurs in one of the legs of a fork and the join is entered from the 'other' leg.
|
| Would be nice if you could show us a full example, maybe on the wiki? Many people are interested I think.
Ronald,
The posted code pretty much shows you which classes you should use. In the DoSomethingWrongActionHandler class I just throw an exception which is then handled by the jBPM framework and invokes the defined HandleBackendExceptionActionHandler class.
I could, however, decide to post the example stuff as attachments on the wiki.
I didn't test it with forks yet, but will put this on my (oh so overloaded) to do list ;)...
Tnx for the reply!
--
Yuri
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095594#4095594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095594
18Â years, 9Â months