1 Reply Latest reply on Nov 5, 2007 7:15 AM by Carlos Zaniolo

    @DataModelSelection help

    Tim Evers Master

      Hi all,

      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.