7 Replies Latest reply on Aug 4, 2007 6:06 AM by pmuir

    SelectBooleanCheckbox and Y/N mapping

    nickarls

      Not exactly an Seam issue but I wonder how you have tackled similar problems:

      How can I bind a SelectBooleanCheckbox to a String field ("Y" or "N")? I tried writing a converted but it didn't fire correctly. Well, I read that according to the JSF spec, it shouldn't even. And there is no truevalue/falsevalue properties available, either :-/

      I tried to do the conversion in the setter/getter but that interfered with both the validation and the loading from db.

      Is there a prettier solution than adding a dummy boolean setter/getter alongside the real one in the entity?