You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alexander Kostadinov <ko...@gmail.com> on 2009/04/23 16:11:25 UTC

using bind to submit a form

Hi All,
I am trying to get a form to submit and a div to be reloaded when a s:select
item is changed:

*<sx:div id="deviceLogPage">*
*<s:form action="deviceLog" id="logsPerPageSelectForm" theme="simple">
    <s:hidden name="nodeNumber" value="%{nodeNumber}" />
    <s:select id="selectId" name="logsPerPage"  theme="simple"
list="logsEventsPerPageList" value="logsPerPage" >
        Items per page
    </s:select>
</s:form>
<sx:bind sources="selectId" targets="deviceLogPage" events="onchange"
showLoadingText="false" formId="**logsPerPageSelectForm**"/>
</sx:div>*

That works the first time, but doesn't work after that. Does anyone know
what could be causing that?

Also, the reload doesn't work at all if the sx:div is a remote one.
Thanks,
-alex