Monday, June 14, 2010

Error:java.lang.String cannot be cast to javax.faces.model.SelectItem

 Problem

<;f:selectItem itemLabel="Male" value="male">
Solution

<;f:selectItem itemLabel="Male" itemValue="male">

<: is used as an escape from html  rendering  correct portion is