Hi, I been looking how to solve this and I cannot see a clear way.
Basically in a given page we have a list of TextField derived classes that use a JQuery auto complete. This means for each textfield rendered on the page we render in the head something like: $(document).ready(function(){var data = ['Sitemap', 'vbmbmnvbmn', 'second', 'communications', 'test', 'Wayne', 'Wireframes', 'fook', 'business case', 'Logos', 'round 1', 'layout', 'Marketing', 'new one', 'graphics', 'hot stuff', 'Accounts', 'Template']; $('#labels390').autocomplete(data, { multiple: true, multipleSeparator: ', ', scroll: true, scrollHeight: 300 })}) $(document).ready(function(){var data = ['Sitemap', 'vbmbmnvbmn', 'second', 'communications', 'test', 'Wayne', 'Wireframes', 'fook', 'business case', 'Logos', 'round 1', 'layout', 'Marketing', 'new one', 'graphics', 'hot stuff', 'Accounts', 'Template']; $('#labels391').autocomplete(data, { multiple: true, multipleSeparator: ', ', scroll: true, scrollHeight: 300 })}) $(document).ready(function(){var data = ['Sitemap', 'vbmbmnvbmn', 'second', 'communications', 'test', 'Wayne', 'Wireframes', 'fook', 'business case', 'Logos', 'round 1', 'layout', 'Marketing', 'new one', 'graphics', 'hot stuff', 'Accounts', 'Template']; $('#labels392').autocomplete(data, { multiple: true, multipleSeparator: ', ', scroll: true, scrollHeight: 300 })}) etc.. As you can clearly see this isn't too efficient and I want to set the data array only once and then attach the autocomplete to the textfield and the data. In the renderhead of the textfield derived class is there anyway to somehow only render the data part once per request? (this also massively reduces the db calls to create the list!) thanks for any pointers Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org