struts-issues mailing list archives

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


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(){
			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:
>             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.

View raw message