struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoni Guitart (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-3398) model disappears from value stack after getText
Date Sun, 28 Feb 2010 14:45:05 GMT

    [ 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.


Mime
View raw message