Bug 149497 - Should support f:selectItems validation of value
Summary: Should support f:selectItems validation of value
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: Core (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Cameron Bateman CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2006-07-03 18:09 EDT by Cameron Bateman CLA
Modified: 2008-04-14 19:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Bateman CLA 2006-07-03 18:09:03 EDT
While working with JSF to develop a same app, I discovered that when you have code like this:

<h:selectOneMenu id="selectOneMenu1">
   <f:selectItems value="#{helloBean.selectItem}" 
                          id="selectItems1"/>
</h:selectOneMenu>

and either helloBean.selectItem either cannot be resolved or resolves to the wrong type then the error message resulting from the RI is extremely cryptic and hard to trace.  

We will validate a cannot resolve method from an EL perspective, but we can't check that the property is the correct SelectItem type until we add meta-data.
Comment 1 Raghunathan Srinivasan CLA 2007-01-05 15:09:29 EST
Triaged for WTP 2.0
Comment 2 Raghunathan Srinivasan CLA 2008-04-14 19:52:49 EDT
Deferred due to lack of resources.