I have a really simple question and I've tried and tried to find the answer and I'm sure it's on the forum already but.... all the examples and similar posts I've found have not fixed my problem so... I"m sorry if this answered somewhere else but....
Why!!! does my DataModelSelection automatically select the first item in the DataModel when I check if it is null?
for example I'm trying to set the rendered attribute on a component based on wether or not the DataModelSelection is null. But by doing this check it automatically selects the first item in the DataModel!
How can I stop this?
Currently I have a work around by using the DataModelSelectionIndex which does not have this behaviour.
But using this makes my code a lot messier and harder to read.
I totally agree, Datamodelselection should be initialized with null.
I've made a patch in my seamfonts to change this.
But now it is a bad idea to change this for Seam future versions, because such change will probably affect existing Seam applications behaviors.