problem with losing data after validation

MartyH <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <15906545.1165344474859.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Hi there,

Having some diffs around validation and loss of data after it fires.

I've created 'lister' type actions to populate drop downs and specifically to build a string to go into a yahoo js calendar widget.  

The actions don't implement preparable and just have an execute method that loads the data...but after validation fires they don't seem to get called again.

The form kinda looks like this.
[code]

<@ww.form action="save">

	<@ww.action name="loadList" id="statusList" executeResult="false" />
/>
	<div id="cal2">   
      <script type="text/javascript">
        var statuses = <@ww.property value="%{#statusList.dataList}" />
      </script>   
	</div>

...etc
</@ww.form>
[/code]

The xwork.xml looks like so:

[code]  

            <interceptor-stack name="defaultStack">
                <interceptor-ref name="exception"/>
                <interceptor-ref name="alias"/>
                <interceptor-ref name="servlet-config"/>
                <interceptor-ref name="authentication"/>
                <interceptor-ref name="prepare"/>
                <interceptor-ref name="i18n"/>
                <interceptor-ref name="chain"/>
                <interceptor-ref name="model-driven"/>
                <interceptor-ref name="fileUpload"/>
                <interceptor-ref name="static-params"/>
                <interceptor-ref name="params"/>
                <interceptor-ref name="conversionError"/>
                <interceptor-ref name="validation">
                    <param name="excludeMethods">input,cancel,execute,delete,edit,list,default,display,prepareInput</param>
                </interceptor-ref>
                <interceptor-ref name="workflow">
                    <param name="excludeMethods">input,back,cancel</param>
                </interceptor-ref>
            </interceptor-stack>
		<default-interceptor-ref name="defaultStack"/> 

        <action name="loadList" class="com.webapp.action.ListDataAction" method="loadData">
        </action>  
[/code]

and action is like so:
[code]
public class ListDataAction extends BaseAction{
     private DataManager dataManager = new DataManager();    
    
     private String dataList;    
     
     public String execute(){
         return SUCCESS;
     }    
     
     public String loadData(){

         this.dataList = this.dataManager.getDataString();
         log.info("dataList=" + dataList);     
         return SUCCESS;
     }
          
     public String getDataList() {return this.dataList;}
     public void setDataList(String list) {this.dataList = list;}  
}

[/code]

I'm at a bit of a loss here as to why the actions don't get called again?
hope someone can shed some light on this..

thanks.

marty
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52199&messageID=105357#105357

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.