struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emre akgün <>
Subject S2 ajax problem
Date Tue, 21 Oct 2008 11:57:10 GMT

i am using struts-2 version with eclipse europei have 2 jsp page news-alarm.jsp
and category-list.jsphere is news-alarm.jsp
<s:form id="newsAlarmForm"  name="newsAlarmForm"  action="newsAlarmSave" enctype="application/x-www-form-urlencoded;
charset=UTF-8" acceptcharset="UTF-8">      <s:hidden name="" value="%{}"/>
  <s:hidden name="newsAlarm.version" value="%{newsAlarm.version}"/>      <table>
     <tr>         <td>            <s:textfield label="%{getText('')}"
name="" value="%{}"/>         </td>      </tr>
           <tr>         <td>            <s:select value="%{}"
               headerKey="0"                headerValue="%{getText('')}"    
           label="%{getText('')}"                 list="channelList"    
           listKey="id"                listValue="name"               name=""
              onchange="dojo.event.topic.publish('showDetail'); return false;"           
/>         </td>      </tr>                  <tr>         <td>
           <s:url id=
 "d_url"  action="getCategoryList"/>            <s:div href="%{d_url}"             
  theme="ajax"               showLoadingText="false"               listenTopics="showDetail"
              formId="newsAlarmForm">            </s:div>         </td>   
  </tr>            <tr>         <td>            <s:submit type="button"
value="submit"/>         </td>         <td>            <s:submit type="button"
action="newsAlarmBrowse" value="cancel" onclick="form.onsubmit=null"/>         </td>
     </tr>   </table>   </s:form>
when channel select list change ajax call getCategoryList action and this method return category-list.jsp
into div(listentopics=showdetail)
here is category-list.jsp
<%@include file="/init.jsp"%>      <s:optiontransferselect         formName="newsAlarmForm"
        name="categoryList"         id="newsAlarmForm_categoryList"            list="categoryList"
           listValue="name"            listKey="id"            leftTitle="xxxxxxx"       
    rightTitle="yyyyyy"            doubleId="newsAlarmForm_categoryList2"            doubleName="categoryList2"
           doubleList="categoryList2"            doubleListValue="name"            doubleListKey="id"
           size="5"            doubleSize="5"            allowAddAllToLeft="false"       
    allowAddAllToRight="false"            allowUpDownOnLeft="false"            allowUpDownOnRight="false"
           allowSelectAll="false"         />
when i submit news-alarm.jsp i cant get value of categoryList2 which is s:optiontransferselect>
in categoryList2 page. everytime categorylist2 value is null. How can i solve this problem?
Windows Live Messenger'ın için Ücretsiz 30 İfadeyi yükle
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message