0
사용자가 클릭 내가 선택한 항목의 값을 얻으려면 버튼을 제출할 때 내가 RichSelectManyChoice, 을 데
...RichSelectManyChoice의 ADF 오라클과 jdev를
에서 선택한 항목의 값을 받고 ---------- ------------------------------------------------페이지. jspx ------------------------------------------------- ----------------------------
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="untitled1.jspx" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:panelGridLayout id="pgl1">
<af:gridRow height="100%" id="gr1">
<af:gridCell width="100%" halign="stretch" valign="stretch" id="gc1">
<!-- Content -->
<af:selectManyChoice value="#{bindings.CountriesView1.inputValue}"
label="#{bindings.CountriesView1.label}" id="smc1"
binding="#{suspect.country}" valuePassThru="true">
<f:selectItems value="#{bindings.CountriesView1.items}" id="si1"/>
<f:validator binding="#{bindings.CountriesView1.validator}"/>
</af:selectManyChoice>
</af:gridCell>
</af:gridRow>
</af:panelGridLayout>
<af:button text="button 1" id="b1" action="#{suspect.valide}"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
------------ -------------------------------------------------- ------ suspect.java ----------------------------------------- --------------------------
package test.view;
import com.sun.org.apache.xpath.internal.operations.String;
import oracle.adf.view.rich.component.rich.input.RichSelectManyChoice;
public class suspect {
private RichSelectManyChoice country;
String chaine=null;
public suspect() {
}
public void valide() {
//getting the selected items values from RichSelectManyChoice
}
public void setCountry(RichSelectManyChoice country) {
this.country = country;
}
public RichSelectManyChoice getCountry() {
return country;
}
}
어떤 하나의 아이디어 PLZ이?