wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Oracle JDev 10.1.3 (JSF, ADF BC) SelectOneChoice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Oracle JDev 10.1.3 (JSF, ADF BC) SelectOneChoice" Watch "Oracle JDev 10.1.3 (JSF, ADF BC) SelectOneChoice" New topic
Author

Oracle JDev 10.1.3 (JSF, ADF BC) SelectOneChoice

Matthew Borden
Greenhorn

Joined: Jun 23, 2010
Posts: 2
Hi,

New to JDev and Java (just earned my SCJA last Friday) and unable to find a way to return all rows when "no selection" item is selected in a SelectOneChoice. I want the user to be able to move back and forth from all rows by selecting "no selection" and to view a filtered set of rows based on selected critera in the SelectOneChoice.

I thought the following would work in my ViewObject Impl file along with a dynamic select one choice:

public void testmbq(String testthisp){
if (testthisp != null) {
setWhereClause("IPEDS_CAT_ID = :TheId");
defineNamedWhereClauseParam("TheId", null, null);
setNamedWhereClauseParam("TheId", testthisp);
executeQuery();}
else {
skipNamedWhereClauseParam("IPEDS_CAT_ID = :TheId");
removeNamedWhereClauseParam("TheId");
executeQuery();
}

Unfortunately, I cannot get all rows from my viewobject to return when the SelectOneChoice is submitted with <no selection>.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Oracle JDev 10.1.3 (JSF, ADF BC) SelectOneChoice
 
Similar Threads
JSP Invoking another JSP in Iframe
af:selectOneChoice - setting default selected value other than the first in line
Convert Long to String inside JSF el expression
multi-selection list box
Oracle Jdev 10.1.3 (JSF, ADF BC) Return All Rows When No Selection in SelectOneChoice