Oct 16th, 2010, 05:35 PM
Two <select> & <option> questions
I've made my project like in ROO-1538, entire script can be found both there and here, and I'm trying to understand something quite basic with Tiles:
When I load up my form for Note that contains the values Name (String), Index from A (Integer) and Enharmonic Twin (reference to another Note, can be null), I get to enter for instance Name = "A" and Index = "0". When I create my next note, however, I cannot enter Name = "C", Index = "3" and still have the select-box Enharmonic Twin be unpopulated, it by default now selects "A" and there's no way to make it not select any, even though that is still possible at the entity level. Is this a bug? Either way, where should I go change my source to make an <option></option> a possibility?
Second question, the options in the select don't really show A, it shows "Id: 51, Version: 6, Name: A, EnharmonicTwin: null, IndexFromA: 0". Is this the toString() getting called? How can I override what method should be called to represent the name of the <option> so that I still can have that nice toString but also present something more sane to the user?
Oct 16th, 2010, 05:52 PM
PS, I tried adding <option></option> after the <select> statements in src/main/webapp/WEB-INF/tags/form/select.jspx, but I never saw them rendered.