[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-270) Annotations @DataModelSelection and @DataModelSelectionIndex can't be used in one component together
by Eirik Rosvold Larsen (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-270?page=comments#action_12400805 ]
Eirik Rosvold Larsen commented on JBSEAM-270:
---------------------------------------------
We have the same problem in our current project (SEAM-2.1.0.A1). Any progress on this?
> Annotations @DataModelSelection and @DataModelSelectionIndex can't be used in one component together
> ----------------------------------------------------------------------------------------------------
>
> Key: JBSEAM-270
> URL: http://jira.jboss.com/jira/browse/JBSEAM-270
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: JSF Integration
> Affects Versions: 1.0
> Environment: WinXP Professional
> JBoss AS 4.0.4.GA (ejb3.deployer libs replaced by EJB3 RC8 libs)
> myFaces Core 1.1.3
> Tomahawk 1.1.3
> Facelets (as in Seam 1.0.0.GA)
> JDK1.5.0_06
> Reporter: Jens Weintraut
> Priority: Minor
>
> A seam component can't use both annotations @DataModelSelection and @DataModelSelectionIndex at once. If both are used deployment shows this error message:
> java.lang.IllegalStateException: Multiple @DataModelSelection fields for: messageList
> at org.jboss.seam.Component.initMembers(Component.java:533)
> at org.jboss.seam.Component.<init>(Component.java:199)
> at org.jboss.seam.Component.<init>(Component.java:159)
> at org.jboss.seam.Component.<init>(Component.java:154)
> at org.jboss.seam.Component.<init>(Component.java:149)
> at org.jboss.seam.init.Initialization.addComponent(Initialization.java:381)
> at org.jboss.seam.init.Initialization.addComponents(Initialization.java:343)
> at org.jboss.seam.init.Initialization.init(Initialization.java:195)
> at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> ...
--
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-2687) Reset Password feature does not activate accounts
by Christian Bauer (JIRA)
Reset Password feature does not activate accounts
-------------------------------------------------
Key: JBSEAM-2687
URL: http://jira.jboss.com/jira/browse/JBSEAM-2687
Project: JBoss Seam
Issue Type: Bug
Components: Wiki
Reporter: Christian Bauer
Assigned To: Christian Bauer
Users are trying to use the Reset Password feature to resend an activation e-mail. This doesn't work, inactive accounts can't reset their password. The bug is that the UI doesn't show that, in fact, the password of an inactive account is actually reset properly, but the account is still not activated.
We have two choices here:
a) Do not allow users to reset the password of an inactive account, period. This means we can continue using the 'ACTIVE' flag as an administrative tool for banning users after abuse. Required change is a check in the UserPasswordReset action with an appropriate message when the user tries to reset an inactive account.
b) Do allow users to reset the password of an inactive account (like we already do) but also activate the account on password reset, if it was inactive. This would make the 'ACTIVE' flag useless for administrative purposes but give us a "resend activation e-mail" feature that many users already expect behind a "reset password" function.
--
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-1075) Documentation enhancement for injecting Logger (make clear when static is required)
by Arjan van Bentem (JIRA)
Documentation enhancement for injecting Logger (make clear when static is required)
-----------------------------------------------------------------------------------
Key: JBSEAM-1075
URL: http://jira.jboss.com/jira/browse/JBSEAM-1075
Project: JBoss Seam
Issue Type: Feature Request
Components: Documentation
Affects Versions: 1.2.0.GA
Environment: All
Reporter: Arjan van Bentem
Priority: Optional
The documentation of @Logger in "3.6 Logging" states at http://fisheye.jboss.com/browse/JBoss/jboss-seam/doc/reference/en/modules...
It doesn't matter if you declare the log variable static or not—it will work either way.
I think this should be enhanced to read, for example:
It doesn't matter if you declare the log variable static or not—it will work either way,
except for entity beans which needs the logger to be static.
...maybe followed by an example:
@Entity
@Name("member")
@Table(uniqueConstraints = @UniqueConstraint(columnNames = "membername"))
public class Member implements Serializable
{
@Logger private static Log log;
:
public void setMemberName(String memberName)
{
log.info("setting memberName");
this.memberName = memberName;
}
:
}
At least, that's what I've found; when not declaring it static it will not get injected or is lost (I'm not sure which), and thus would yield a NullPointerException upon usage.
Likewise, "22.2. Annotations for bijection" at http://fisheye.jboss.com/browse/JBoss/jboss-seam/doc/reference/en/modules... now states
Specifies that a component field is to be injected with an instance of org.jboss.seam.log.Log.
...but maybe this could be extended to read:
Specifies that a component field is to be injected with an instance of org.jboss.seam.log.Log.
Remember that for entity beans the actual variable needs to be declared static.
Cheers,
Arjan.
--
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