[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by superanna li (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-5122?page=com.atlassian.jira.plugi... ]
superanna li commented on JBSEAM-5122:
--------------------------------------
After search, there's navigation.xml file, I am using propagation="join" will causing this kind of situation, but while using propagation="none" will not, can I know why
Best regards,
Anna
> @Factory return value lost
> --------------------------
>
> Key: JBSEAM-5122
> URL: https://issues.jboss.org/browse/JBSEAM-5122
> Project: Seam 2
> Issue Type: Bug
> Reporter: superanna li
>
> Dear team,
> In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
> CurrentUserFactory where @Factory is used
> {code}
> @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> public class CurrentUserFactory extends UserHome {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "currentUser";
> @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> private Integer id;
> @Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
> public User getUser() {
> return getInstance();
> }
> ...
> }
> {code}
> SearchAction:
> {code}
> @Name(MyProjectsSearchAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsSearchAction implements Serializable {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "myProjectsSearch";
>
> @In(value = "currentUser", required = true)
> private User currentUser;
> public void find() {
> ....
> }
> }
> {code}
> DetailAction:
> {code}
> @Name(MyProjectsDetailsAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsDetailsAction implements Serializable {
> private static final long serialVersionUID = 1153512259556496433L;
> public static final String COMPONENT_NAME = "myProjectsDetails";
> @Begin(join = true)
> public void showDetails() {
> ...
> }
> {code}
> Best regards,
> Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by superanna li (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-5122?page=com.atlassian.jira.plugi... ]
superanna li edited comment on JBSEAM-5122 at 7/25/13 4:46 AM:
---------------------------------------------------------------
Hello Marek,
Thanks for your response,
I am using @Factory to put "currentUser" into conversataion context for using, but after click DetailAction, the "currentUser" value changes , the former information lost. But as they are in one long running conversation, @Factory executed for one time, currentUser is filled with data, but I don't know why the "currentUser" data lost and becomes the newly created User. example: former currentUser is User@22382238, after click DetailAction, currentUser will be User@42c042c .
I am using Seam 2.1
Best regards,
Anna
was (Author: superannali):
Hello Marek,
Thanks for your response,
I am using @Factory to put "currentUser" into conversataion context for using, but after click DetailAction, the "currentUser" value changes , the former information lost.
I am using Seam 2.1
Best regards,
Anna
> @Factory return value lost
> --------------------------
>
> Key: JBSEAM-5122
> URL: https://issues.jboss.org/browse/JBSEAM-5122
> Project: Seam 2
> Issue Type: Bug
> Reporter: superanna li
>
> Dear team,
> In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
> CurrentUserFactory where @Factory is used
> {code}
> @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> public class CurrentUserFactory extends UserHome {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "currentUser";
> @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> private Integer id;
> @Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
> public User getUser() {
> return getInstance();
> }
> ...
> }
> {code}
> SearchAction:
> {code}
> @Name(MyProjectsSearchAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsSearchAction implements Serializable {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "myProjectsSearch";
>
> @In(value = "currentUser", required = true)
> private User currentUser;
> public void find() {
> ....
> }
> }
> {code}
> DetailAction:
> {code}
> @Name(MyProjectsDetailsAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsDetailsAction implements Serializable {
> private static final long serialVersionUID = 1153512259556496433L;
> public static final String COMPONENT_NAME = "myProjectsDetails";
> @Begin(join = true)
> public void showDetails() {
> ...
> }
> {code}
> Best regards,
> Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by superanna li (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-5122?page=com.atlassian.jira.plugi... ]
superanna li commented on JBSEAM-5122:
--------------------------------------
Hello Marek,
Thanks for your response,
I am using @Factory to put "currentUser" into conversataion context for using, but after click DetailAction, the "currentUser" value changes , the former information lost.
I am using Seam 2.1
Best regards,
Anna
> @Factory return value lost
> --------------------------
>
> Key: JBSEAM-5122
> URL: https://issues.jboss.org/browse/JBSEAM-5122
> Project: Seam 2
> Issue Type: Bug
> Reporter: superanna li
>
> Dear team,
> In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
> CurrentUserFactory where @Factory is used
> {code}
> @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> public class CurrentUserFactory extends UserHome {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "currentUser";
> @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> private Integer id;
> @Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
> public User getUser() {
> return getInstance();
> }
> ...
> }
> {code}
> SearchAction:
> {code}
> @Name(MyProjectsSearchAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsSearchAction implements Serializable {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "myProjectsSearch";
>
> @In(value = "currentUser", required = true)
> private User currentUser;
> public void find() {
> ....
> }
> }
> {code}
> DetailAction:
> {code}
> @Name(MyProjectsDetailsAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsDetailsAction implements Serializable {
> private static final long serialVersionUID = 1153512259556496433L;
> public static final String COMPONENT_NAME = "myProjectsDetails";
> @Begin(join = true)
> public void showDetails() {
> ...
> }
> {code}
> Best regards,
> Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by superanna li (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-5122?page=com.atlassian.jira.plugi... ]
superanna li updated JBSEAM-5122:
---------------------------------
Description:
Dear team,
In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
CurrentUserFactory where @Factory is used
{code}
@Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
public class CurrentUserFactory extends UserHome {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "currentUser";
@In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
@Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
private Integer id;
@Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
public User getUser() {
return getInstance();
}
...
}
{code}
SearchAction:
{code}
@Name(MyProjectsSearchAction.COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
@Restrict("#{identity.loggedIn}")
public class MyProjectsSearchAction implements Serializable {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "myProjectsSearch";
@In(value = "currentUser", required = true)
private User currentUser;
public void find() {
....
}
}
{code}
DetailAction:
{code}
@Name(MyProjectsDetailsAction.COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
@Restrict("#{identity.loggedIn}")
public class MyProjectsDetailsAction implements Serializable {
private static final long serialVersionUID = 1153512259556496433L;
public static final String COMPONENT_NAME = "myProjectsDetails";
@Begin(join = true)
public void showDetails() {
...
}
{code}
Best regards,
Anna
was:
Dear team,
In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
CurrentUserFactory where @Factory is used
{code}
@Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
public class CurrentUserFactory extends UserHome {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "currentUser";
@In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
@Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
private Integer id;
@Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
public User getUser() {
return getInstance();
}
...
}
{code}
SearchAction:
{code}
@Name(MyProjectsSearchAction.COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
@Restrict("#{identity.loggedIn}")
public class MyProjectsSearchAction implements Serializable {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "myProjectsSearch";
@In(value = "currentUser", required = true)
private User currentUser;
Best regards,
Anna
> @Factory return value lost
> --------------------------
>
> Key: JBSEAM-5122
> URL: https://issues.jboss.org/browse/JBSEAM-5122
> Project: Seam 2
> Issue Type: Bug
> Reporter: superanna li
>
> Dear team,
> In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
> CurrentUserFactory where @Factory is used
> {code}
> @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> public class CurrentUserFactory extends UserHome {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "currentUser";
> @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> private Integer id;
> @Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
> public User getUser() {
> return getInstance();
> }
> ...
> }
> {code}
> SearchAction:
> {code}
> @Name(MyProjectsSearchAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsSearchAction implements Serializable {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "myProjectsSearch";
>
> @In(value = "currentUser", required = true)
> private User currentUser;
> public void find() {
> ....
> }
> }
> {code}
> DetailAction:
> {code}
> @Name(MyProjectsDetailsAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsDetailsAction implements Serializable {
> private static final long serialVersionUID = 1153512259556496433L;
> public static final String COMPONENT_NAME = "myProjectsDetails";
> @Begin(join = true)
> public void showDetails() {
> ...
> }
> {code}
> Best regards,
> Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by superanna li (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-5122?page=com.atlassian.jira.plugi... ]
superanna li updated JBSEAM-5122:
---------------------------------
Description:
Dear team,
In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
CurrentUserFactory where @Factory is used
{code}
@Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
public class CurrentUserFactory extends UserHome {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "currentUser";
@In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
@Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
private Integer id;
@Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
public User getUser() {
return getInstance();
}
...
}
{code}
SearchAction:
{code}
@Name(MyProjectsSearchAction.COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
@Restrict("#{identity.loggedIn}")
public class MyProjectsSearchAction implements Serializable {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "myProjectsSearch";
@In(value = "currentUser", required = true)
private User currentUser;
Best regards,
Anna
was:
Dear team,
CurrentUserFactory where @Factory is used
{code}
@Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
public class CurrentUserFactory extends UserHome {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "currentUser";
@In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
@Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
private Integer id;
@Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
public User getUser() {
return getInstance();
}
...
}
{code}
In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will lost (the currentUser become the newly created user with no value inside). it seems "currentUser" context value has been changed.
Best regards,
Anna
> @Factory return value lost
> --------------------------
>
> Key: JBSEAM-5122
> URL: https://issues.jboss.org/browse/JBSEAM-5122
> Project: Seam 2
> Issue Type: Bug
> Reporter: superanna li
>
> Dear team,
> In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will changed(the currentUser become the newly created user with no value). it seems "currentUser" context value has been changed.
> CurrentUserFactory where @Factory is used
> {code}
> @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> public class CurrentUserFactory extends UserHome {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "currentUser";
> @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> private Integer id;
> @Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
> public User getUser() {
> return getInstance();
> }
> ...
> }
> {code}
> SearchAction:
> {code}
> @Name(MyProjectsSearchAction.COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> @Restrict("#{identity.loggedIn}")
> public class MyProjectsSearchAction implements Serializable {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "myProjectsSearch";
>
> @In(value = "currentUser", required = true)
> private User currentUser;
> Best regards,
> Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-5122?page=com.atlassian.jira.plugi... ]
Marek Novotny updated JBSEAM-5122:
----------------------------------
Issue Type: Bug (was: Feature Request)
> @Factory return value lost
> --------------------------
>
> Key: JBSEAM-5122
> URL: https://issues.jboss.org/browse/JBSEAM-5122
> Project: Seam 2
> Issue Type: Bug
> Reporter: superanna li
>
> Dear team,
> CurrentUserFactory where @Factory is used
> {code}
> @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> public class CurrentUserFactory extends UserHome {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "currentUser";
> @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> private Integer id;
> @Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
> public User getUser() {
> return getInstance();
> }
> ...
> }
> {code}
> In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will lost (the currentUser become the newly created user with no value inside). it seems "currentUser" context value has been changed.
> Best regards,
> Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by Marek Novotny (JIRA)
[ https://issues.jboss.org/browse/JBSEAM-5122?page=com.atlassian.jira.plugi... ]
Marek Novotny commented on JBSEAM-5122:
---------------------------------------
I don't really understand what you are reporting. Is that CurrentUserFactory component added into booking example to demonstrate this bug?
What version of Seam do you use?
> @Factory return value lost
> --------------------------
>
> Key: JBSEAM-5122
> URL: https://issues.jboss.org/browse/JBSEAM-5122
> Project: Seam 2
> Issue Type: Feature Request
> Reporter: superanna li
>
> Dear team,
> CurrentUserFactory where @Factory is used
> {code}
> @Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
> @Scope(ScopeType.CONVERSATION)
> public class CurrentUserFactory extends UserHome {
> private static final long serialVersionUID = 1L;
> public static final String COMPONENT_NAME = "currentUser";
> @In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> @Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
> private Integer id;
> @Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
> public User getUser() {
> return getInstance();
> }
> ...
> }
> {code}
> In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will lost (the currentUser become the newly created user with no value inside). it seems "currentUser" context value has been changed.
> Best regards,
> Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months
[JBoss JIRA] (JBSEAM-5122) @Factory return value lost
by superanna li (JIRA)
superanna li created JBSEAM-5122:
------------------------------------
Summary: @Factory return value lost
Key: JBSEAM-5122
URL: https://issues.jboss.org/browse/JBSEAM-5122
Project: Seam 2
Issue Type: Feature Request
Reporter: superanna li
Dear team,
CurrentUserFactory where @Factory is used
{code}
@Name(CurrentUserFactory.FACTORY_COMPONENT_NAME)
@Scope(ScopeType.CONVERSATION)
public class CurrentUserFactory extends UserHome {
private static final long serialVersionUID = 1L;
public static final String COMPONENT_NAME = "currentUser";
@In(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
@Out(value = ID_COMPONENT_NAME, scope = ScopeType.SESSION, required = false)
private Integer id;
@Factory(value = COMPONENT_NAME, scope = ScopeType.CONVERSATION, autoCreate = true)
public User getUser() {
return getInstance();
}
...
}
{code}
In the booking search page, click 'search' button, reRender the bookingList in the same page, once click one of the booking for the detail information, the currentUser will lost (the currentUser become the newly created user with no value inside). it seems "currentUser" context value has been changed.
Best regards,
Anna
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 5 months