You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antoni Guitart (JIRA)" <ji...@apache.org> on 2010/02/26 20:01:29 UTC
[jira] Created: (WW-3398) model disappears from value stack after
getText
model disappears from value stack after getText
-----------------------------------------------
Key: WW-3398
URL: https://issues.apache.org/jira/browse/WW-3398
Project: Struts 2
Issue Type: Bug
Components: Value Stack
Affects Versions: 2.1.6
Reporter: Antoni Guitart
I have an Action Class that extends the class ActionSupport in order to use getText for localization and also implements ModelDriven to get the model Class. When I call getText() within a action method the model dissapears from object stack.
thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-3398) model disappears from value stack after
getText
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839397#action_12839397 ]
Lukasz Lenart commented on WW-3398:
-----------------------------------
What did you do to solve this problem? Or maybe it wasn't a problem at all?
> model disappears from value stack after getText
> -----------------------------------------------
>
> Key: WW-3398
> URL: https://issues.apache.org/jira/browse/WW-3398
> Project: Struts 2
> Issue Type: Bug
> Components: Value Stack
> Affects Versions: 2.1.6
> Reporter: Antoni Guitart
>
> I have an Action Class that extends the class ActionSupport in order to use getText for localization and also implements ModelDriven to get the model Class. When I call getText() within a action method the model dissapears from object stack.
> thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WW-3398) model disappears from value stack after
getText
Posted by "Antoni Guitart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoni Guitart closed WW-3398.
------------------------------
Resolution: Fixed
getModel is called more than once
> model disappears from value stack after getText
> -----------------------------------------------
>
> Key: WW-3398
> URL: https://issues.apache.org/jira/browse/WW-3398
> Project: Struts 2
> Issue Type: Bug
> Components: Value Stack
> Affects Versions: 2.1.6
> Reporter: Antoni Guitart
>
> I have an Action Class that extends the class ActionSupport in order to use getText for localization and also implements ModelDriven to get the model Class. When I call getText() within a action method the model dissapears from object stack.
> thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-3398) model disappears from value stack after
getText
Posted by "Antoni Guitart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839426#action_12839426 ]
Antoni Guitart commented on WW-3398:
------------------------------------
Hi Lukasez,
due getModel is called more than once when getText() is called within an action, I only did the following:
public Object getModel(){
if(model==null)
m= new Model();
return m;
}
, otherwise my model is reinstantiated so I lose the data.
> model disappears from value stack after getText
> -----------------------------------------------
>
> Key: WW-3398
> URL: https://issues.apache.org/jira/browse/WW-3398
> Project: Struts 2
> Issue Type: Bug
> Components: Value Stack
> Affects Versions: 2.1.6
> Reporter: Antoni Guitart
>
> I have an Action Class that extends the class ActionSupport in order to use getText for localization and also implements ModelDriven to get the model Class. When I call getText() within a action method the model dissapears from object stack.
> thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.