Using onChangeTopics in textfield !
Hi,
I'm trying to test the following code to copy a value from textfield source to the textfield destination,but the property onChangeTopics doesn't work well, whenever i write something in the source textfield his value is not submited, any help plz??
- <s:form id="test">
- <label for="sourceString">Enter string: </label>
- <s:url id="urlsimpleecho" value="texfieldDestination.action"><s:param name="sourceString"/></s:url>
- <sj:textfield onChangeTopics="textfieldUpdated" href="%{urlsimpleecho}" id="sourceString" name="sourceString"/>
- <label for="destString">copy of string: </label>
- <s:url id="urlsimpleecho" action="texfieldDestination.action"><s:param name="destString">remote content for textfield!</s:param></s:url>
- <sj:textfield reloadTopics="textfieldUpdated" href="%{urlsimpleecho}" formIds="test" id="destString" name="destString" loadingText="Loading content of textfield ..."/>
- </s:form>