I'm building a JSF application which has multiple sections at any time on a page. Section 1 & 2 have same input fields (different IDs and class) to search for location of user. both fields use geocomplete
When the page loads initially, everything works fine. Data using geocomplete is loaded correctly in both the fields separately.
Now when I perform validations on section2 and re-render it
f:ajax execute="panelBlocks" render="panelBlocks"/>
, geocomplete stops working in only this section. I continue to get
TypeError: $(...).geocomplete is not a function
for the fields in section 2. However, section 1 fields still continue to work fine.
Any help would be greatly appreciated. I've been stuck with this issue for 3 weeks now.
Akash