[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-355) Constructor injection of component dependencies
by Jeremy Norris (JIRA)
[ https://jira.jboss.org/jira/browse/JBSEAM-355?page=com.atlassian.jira.plu... ]
Jeremy Norris commented on JBSEAM-355:
--------------------------------------
Gavin, you mentioned there is a reason why EJB3 doesn't support constructor injection. What is this reason? Is it a technical reason? Interestingly, Apache OpenEJB 3.1 supports constructor injection (http://www.infoq.com/news/2008/11/openejb-3.1-release).
> Constructor injection of component dependencies
> -----------------------------------------------
>
> Key: JBSEAM-355
> URL: https://jira.jboss.org/jira/browse/JBSEAM-355
> Project: Seam
> Issue Type: Feature Request
> Components: Core
> Reporter: Christian Bauer
> Priority: Minor
>
> Take the registration example. The 'user' component is instantiated by Seam when JSF first looks for 'user' in a page. It is then put in the SESSION context (think CONVERSATION for other use cases of what I'm proposing). Seam uses the default constructor to instantiate the component.
> Now imagine that some attributes of User are immutable and that the only way to set their values is through a different constructor. Also imagine that these values are actually present when Seam instantiates the 'user' component, e.g. in the current CONVERSATION. I'd like to tell Seam to call my constructor and use EL to bind the arguments.
> Without this feature, immutable properties need to have public setter methods that I call later in an action method to wire in the required attributes manually.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3846) Authentication with identity management for abstract User
by Emil Iakoupov (JIRA)
Authentication with identity management for abstract User
----------------------------------------------------------
Key: JBSEAM-3846
URL: https://jira.jboss.org/jira/browse/JBSEAM-3846
Project: Seam
Issue Type: Feature Request
Components: Framework
Affects Versions: 2.1.0.SP1
Environment: any
Reporter: Emil Iakoupov
Priority: Optional
Hello, i ran into a little concern. I really want to use identity management. I have inheritence for Users. That is User is an abstract class and its children are different type of users. It basically has credentials (username, password and other option relevant to a user as a whole). Now how do i identityManagement.createUser? Since there could as many flows as types of users and for user-class i definately have to specify the User. I can always register a new user by persisting him/her to db, and then call identityManager.createUser? Would't second call return fallse? Having only one type of user for whole application would greatly complicate design. If you have any suggestions...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2197) interpolate swallows FormatType and FormatStyle of MessageFormat
by Martin Trummer (JIRA)
interpolate swallows FormatType and FormatStyle of MessageFormat
----------------------------------------------------------------
Key: JBSEAM-2197
URL: http://jira.jboss.com/jira/browse/JBSEAM-2197
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.CR2
Environment: Application Server: jboss-4.2.0.GA
Operating System: Windows XP
Java: 1.6
Reporter: Martin Trummer
Testcode:
String source = "{0,number,#.#}";
String interpolated = Interpolator.instance().interpolate(source);
System.out.println("soruce: '"+source+"'");
System.out.println("interpolated: '"+interpolated+"'");
Output is:
17:02:00,133 INFO [STDOUT] soruce: '{0,number,#.#}'
17:02:00,133 INFO [STDOUT] interpolated: '{0}'
Expected output:
17:02:00,133 INFO [STDOUT] soruce: '{0,number,#.#}'
17:02:00,133 INFO [STDOUT] interpolated: '{0,number,#.#}'
The interpolate() function should not swallow the FormatType and FormatStyle.
Details can be found in the Forum Discussion
--
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
15 years, 6 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3847) Bad code indentation in translated manuals
by Nicola Benaglia (JIRA)
Bad code indentation in translated manuals
------------------------------------------
Key: JBSEAM-3847
URL: https://jira.jboss.org/jira/browse/JBSEAM-3847
Project: Seam
Issue Type: Bug
Components: Documentation Translation
Environment: Ubuntu 8.04
Sun JDK 1.6.0.07
Reporter: Nicola Benaglia
Priority: Trivial
Translating into italian I copy all the code without translation.
The translated manual has a lot of such copied copy not well-indented.
Example:
-------------------------------------------------------------------------
<pages>
<page view-id="/hello.jsp" action="#{helloWorld.sayHello}"/>
</pages
>
---------------------------(note the last > at new line)----------
Some time is okay.
Looking at the PO file I see that it's OKAY when:
"<![CDATA[<pages>\n"
" <page view-id=\"/hello.jsp\" action=\"#{helloWorld.sayHello}\"/>\n"
"</pages>\n"
"]]>"
And it's WRONG when:
"<![CDATA[<pages>\n"
" <page view-id=\"/hello.jsp\" action=\"#{helloWorld.sayHello}\"/>\n"
"</pages>]]>"
i.e. it depends on ]]>, which must be at a new line.
Bye,
Nico
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months