[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2467) add supported-locale elements to faces-config.xml
by Dan Allen (JIRA)
add supported-locale elements to faces-config.xml
-------------------------------------------------
Key: JBSEAM-2467
URL: http://jira.jboss.com/jira/browse/JBSEAM-2467
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Affects Versions: 2.0.1.CR1
Reporter: Dan Allen
Assigned To: Dan Allen
Fix For: 2.0.1.GA
Adding the <supported-locale> elements to faces-config.xml make it simple to create a drop-down list to be used with the locale switcher component. Java has built in support for rendering locale-specific labels for the languages, which makes it even all the more appropriate.
This allows you to create the following UI component:
Language:
<h:selectOneMenu value="#{localeSelector.localeString}"
valueChangeListener="#{localeSelector.select}"
onchange="submit();">
<f:selectItems value="#{localeSelector.supportedLocales}"/>
</h:selectOneMenu>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2264) @Observer with PostSetVariable produces Concurrent exceptions in a conversation scoped stateful bean
by Dan Hinojosa (JIRA)
@Observer with PostSetVariable produces Concurrent exceptions in a conversation scoped stateful bean
----------------------------------------------------------------------------------------------------
Key: JBSEAM-2264
URL: http://jira.jboss.com/jira/browse/JBSEAM-2264
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.GA
Environment: java 6_u03, jboss-4.2.1GA, jboss-seam-2.0.0.GA
Reporter: Dan Hinojosa
A method with an @Observer that listens to a postSetVariable event:
@Name("myModule")
@Scope(ScopeType.CONVERSATION)
@Stateful
public class MyModule implements ModuleLocal, ModuleRemote {
@Observer("org.jboss.seam.postSetVariable.foo")
public void process() {
/* Do something */
}
}
produces a stack trace:
[SeamPhaseListener] uncaught exception
javax.el.ELException: javax.ejb.EJBTransactionRolledbackException: no concurrent calls on stateful bean 'jboss.j2ee:service=EJB3,name=MyModule' (EJB3 4.3.13)
According to 3.1.10. Concurrency model of the 2.0.0 documentation:
Finally, Seam enforces a single thread /per conversation per process/ model for the conversation context by serializing concurrent requests in the same long-running conversation context.
The two 'per' is kind of confusing, but it seems that since Seam is serializing concurrent requests, this issue should not occur.
Will create demo app shortly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months