[JBoss JIRA] Created: (SEAMINTL-44) BundleTemplateMessage breaks with non-String ResourceBundles
by Nicklas Karlsson (JIRA)
BundleTemplateMessage breaks with non-String ResourceBundles
------------------------------------------------------------
Key: SEAMINTL-44
URL: https://issues.jboss.org/browse/SEAMINTL-44
Project: Seam International
Issue Type: Bug
Components: Messages
Affects Versions: 3.0.0.Final
Reporter: Nicklas Karlsson
Assignee: Ken Finnigan
BundleTemplateMessages has in build()
{code}
try {
text = bundles.get(clientLocale, textKey.getBundle()).getString(textKey.getKey());
} catch (Exception e) {
log.warn("Could not load bundle: " + textKey);
text = textDefault;
}
{code}
which will result in a ClassCastException if the resource is non-string (because ResourceBundle.getString implementation casts getObject to String) and is further translated to a "Could not load bundle" warning followed by the BundleKey being outputted.
Since ResourceBundle.getString is final, there is no way of overloading this behaviour. Using toString on a non-null resource would give some flexibility to this, perhaps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (SEAMFACES-108) Add producer for UIViewRoot
by Dan Allen (JIRA)
Add producer for UIViewRoot
---------------------------
Key: SEAMFACES-108
URL: https://issues.jboss.org/browse/SEAMFACES-108
Project: Seam Faces
Issue Type: Feature Request
Components: CDI Integration
Affects Versions: 3.0.0.CR1
Reporter: Dan Allen
Priority: Minor
Add producer for UIViewRoot so that it can be injected. It should be dependent-scoped as it may change at any time during the request lifecycle.
Injected into an object:
{code:java}
@Inject Instance<UIViewRoot> viewRootProvider;
{code}
or into an observer:
{code:java}
public void beforeRender(@Observes @Before @RenderResponse PhaseEvent e, UIViewRoot viewRoot) {
...
}
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (JBSEAM-4778) Valid URLs are ignored on Excel Stylesheet ULink components (CSSParser.java)
by Juan Francisco Ara Monzon (JIRA)
Valid URLs are ignored on Excel Stylesheet ULink components (CSSParser.java)
----------------------------------------------------------------------------
Key: JBSEAM-4778
URL: https://issues.jboss.org/browse/JBSEAM-4778
Project: Seam
Issue Type: Bug
Components: Excel
Affects Versions: 2.2.1.Final
Environment: Standard
Reporter: Juan Francisco Ara Monzon
Priority: Trivial
Fix For: 2.3.0.ALPHA
Valid URLs are not being processed correctly by CSSParser
If you load a URL with ftp/http format (http://) works perfectly, but if you reference a resource inside the application (i.e. classLoader.getResource("whatever").toString()) the parser doesn't recognices it as a valid URL
CSSParser discriminates between resources or urls by "://" but should be doing by ":/" (as in jar:/.... or vfszip:// returned from WEB-INF/classes/ files.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months