Posts

Showing posts with the label struts2

How to change source of Struts2 autocompleter?

Image
Clash Royale CLAN TAG #URR8PPP How to change source of Struts2 autocompleter? So i've made an autocompleter UI using struts2 tag. i.e "sj:autocompleter" I need to change the source of the autocompleter on keyup. I'm giving first 100 results initially and then on keyup function i want the the source to change dynamically. How can i achieve this? This is my autompleter tag <sj:autocompleter name="locationName" selectBox="true" selectBoxIcon="true" requiredLabel="" id="USER_NAME" autocomplete="off" tabindex="%{session.fielddata.USER_NAME.getSearchFilterSequence()}" label="%{session.fielddata.USER_NAME.getFieldLabel()}" parentTheme="xhtml" labelSeparator="" list="session.initialUserListForDropDown" value="%{session.searchcriteria.locationName}" cssClass="pointercursor resetfields" style=...