
Originally Posted by
Macs
To solve the problem that if I specify in a field in a bean that map a city, the default generated code simply load 12000 city beans with a populate and put it on the page. 8D
So I had to modify select.tagx to support a dojox.data.QueryReadStore binded to the filtering select, create a controller for the ajax request that populates the input
choces with only a few and update the list requering the server as the user input chars in the field. To avoid the load of an entire JPA bean with all his background (JPA, EntityManager, other field beans) for every occurence i had to create a query that populate a view bean with only id and description, the only useful data during editing choice.
If you're at liberty to share the source code for all this, e.g. as a blog/forum post and/or a ZIP file of a sample project, I'm sure other people in the same boat would find it useful.
Andrew Swan
"Now is the EJB of our discontent made glorious Spring"