[JBoss JIRA] Created: (SEAMFACES-208) Support for resolving no argument methods in an EL value expression
by Dan Allen (JIRA)
Support for resolving no argument methods in an EL value expression
-------------------------------------------------------------------
Key: SEAMFACES-208
URL: https://issues.jboss.org/browse/SEAMFACES-208
Project: Seam Faces
Issue Type: Feature Request
Components: CDI Integration
Affects Versions: 3.1.0.Beta2
Reporter: Dan Allen
Fix For: 3.1.0.Final
The EL specification added support for resolving parameterized methods in value and method expressions, with one exception. It does not support resolving methods with 0 parameters. The reason is that an () used at the end of a property is not acknowledged. As a result, the resolver attempts to resolve the method name as a bean property.
For example, assume we have the method:
{code}
public Integer count() {
return 1;
}
{code}
If we attempt to resolve this in a value expression using:
{code}
#{bean.count()}
{code}
We can an error message "count property not found on bean"
It works as expected if the method has at least one parameter:
{code}
public Integer count(Integer i) {
return i;
}
{code}
The following expression will resolve to a value of 1.
{code}
#{bean.count(1)}
{code}
This also breaks resolving the size of a collection:
{code}
#{employees.size()}
{code}
In this case, the error is a bit strange because it tries to parse size as an index.
The root cause of all this is that the spec does not properly honor 0 parameters as a valid number of parameters for a parameterized methods. Instead, it ignores the () and treats the expression as a property.
Method expressions does not have this limitation since both .action and .action() are equivalent expressions.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] (SOLDER-302) @Inject @CookiePram throws NullPointerException if the client browser does not send any cookie.CookieParamProducer implementation broken.
by Assen Todorov (Created) (JIRA)
@Inject @CookiePram throws NullPointerException if the client browser does not send any cookie.CookieParamProducer implementation broken.
-----------------------------------------------------------------------------------------------------------------------------------------
Key: SOLDER-302
URL: https://issues.jboss.org/browse/SOLDER-302
Project: Seam Solder
Issue Type: Bug
Components: Servlet
Affects Versions: 3.0.0.Final
Environment: CentOS
Reporter: Assen Todorov
Fix For: 3.1.0.Final
The following code snippet throws a NullPointerException if the client does not send any cookie.
{code}
@Inject
@CookieParam("lang")
@DefaultValue("en")
private Instance<String> languageResolver;
{code}
The problem is in org.jboss.seam.servlet.http.CookieParamProducer.getCookieValue()
{code:title=CookieParamProducer.java}
for (Cookie c : request.getCookies()) {
{code}
The servlet specification says the following about HttpServletRequest.getCookies():
{quote}
Returns an array containing all of the Cookie objects the client sent with this request. This method returns null if no cookies were sent.
{quote}
So CookieParamProducer.java throws NullPointerException when it try to iterate over NULL.
org.jboss.seam.servlet.http.CookieParamProducer.getCookie() is also broken because of the same reason.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] (SEAMFACES-217) Seam Faces documentation issues
by Marek Schmidt (Created) (JIRA)
Seam Faces documentation issues
-------------------------------
Key: SEAMFACES-217
URL: https://issues.jboss.org/browse/SEAMFACES-217
Project: Seam Faces
Issue Type: Bug
Components: Documentation
Affects Versions: 3.1.0.Beta3
Reporter: Marek Schmidt
Faces
1.1 Maven dependency configuration
link to "Maven user-defined property" without href in HTML output. (use "url" attribute in docbook instead of "href")
2.1. @RenderScoped
link to "Seam Messages API" doesn't work
8. Faces View Configuration
"A personal favorite", whose?
8.5 Configuring Transactional Views
Docs about Transactional Views should be updated, or perhaps removed if they are not implemented yet.
Missing pieces
1. It should be explicitly noted that Seam Faces produces a Conversation under the EL name "conversation" (see impl/src/main/java/org/jboss/seam/faces/context/conversation/NamedConversationAliasProducer.java)
2. injecting @Faces List<Locale>, @Faces @DefaultLocale is not documented
3. conversation boundaries (@Begin, @End, ConversationBoundaryInterceptor), are not documented
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months
[JBoss JIRA] Created: (SEAMFACES-197) Exceptions passed to Catch should have a qualifier
by Jason Porter (JIRA)
Exceptions passed to Catch should have a qualifier
--------------------------------------------------
Key: SEAMFACES-197
URL: https://issues.jboss.org/browse/SEAMFACES-197
Project: Seam Faces
Issue Type: Feature Request
Components: Exception Handling
Affects Versions: 3.0.2
Reporter: Jason Porter
Priority: Minor
It could be possible for an exception to be passed to Catch that is outside of JSF, or is manually fired into Catch. To help the users determine which this is a qualifier should be added to the event fired to Catch.
A phase qualifier may also be helpful, but not sure if this is needed as we can get it from the FacesContext easily.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 6 months