So only the navigation should be open and the same

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ean checked = (useSubmittedValues && lookupSet^M > // .contains(itemStrValue))^M > // || (!useSubmittedValues && lookupSet.contains(itemValue));^M > // HAN - the myfaces code does not work with a converter. The lookupSet=getS*ValuesAsSet() ultimately calls RenderUtils.internalSubmittedOrSelectedValuesAsSet^M > // That routine calls getConvertedStringValue(); which always returns strings. Hence lookupSet should always be compared to itemStrValue.^M > boolean checked = lookupSet.contains(itemStrValue);^M HtmlRendererUtils.java: 457,458c460,464 < if ((useSubmittedValue && lookupSet.contains(itemStrValue))^M < || (!useSubmittedValue && lookupSet.contains(itemValue))) {^M --- > // if ((useSubmittedValue && lookupSet.contains(itemStrValue))^M > // || (!useSubmittedValue && lookupSet.contains(itemValue))) {^M > // HAN - the myfaces code does not work with a converter. The lookupSet=getS*ValuesAsSet() ultimately calls RenderUtils.internalSubmittedOrSelectedValuesAsSet^M > // That routine calls getConvertedStringValue(); which always returns strings. Hence lookupSet should always be compared to itemStrValue.^M > if (lookupSet.contains(itemStrValue)) {^M Validation error I got the validation error today by trying to do the 'smart thing'. Basically i have the list of objects and display as the combo box. What i do before work very fine because all thing is string. This time i try to populate directly my objects to the combo box by specify the converter. The result is OK, i got what i want but when i submit the form i got the Validation error. The code simple like this: <h:selectOneMenu id="S1" value = "#{csCardRequestHandler.suffixesModel[0].selectedValue}" disabled="#{csCardRequestHandler.suffixesModel[0].disableSelect}"> <f:selectItems value="#{csCardRequestHandler.suffixesModel[0].availableItems}"/> <f:converter converterId="com.ps.cardservices.SuffixFieldConverter"/> <!--f:validator validator...
View Full Document

Ask a homework question - tutors are online