Select One Choice-select multiple attributes into mutiple columns
Select One Choice-select multiple attributes into mutiple columns does not work.
read-only view object view1 - columns a, b, c
updatable view object view2 - also columns a, b, c
Select One choice has the capability to bind multiple columns to multiple columns. I understand how this wizard is to be used for these multiple mappings, i.e., view2.a mapped to view1.a, view2.b mapped to view1.b, etc., and using 'select multiple...' for the display attribute. When I complete the 'List Binding Editor" correctly, in this example, only column a will be updated. Columns b,c, etc. will not be effected.
Has anyone solved this? Please do not reply telling me how to use the editor, I know how, it just is not working.
Here is my jspx segment,
<af:selectOneChoice value="#{bindings.Eis000tv1SlOffice.inputValue}"
label="#{bindings.Eis000tv1SlOffice.label}">
<f:selectItems value="#{bindings.Eis000tv1SlOffice.items}"/>
Here is pageDef segment:
<list id="Eis000tv1SlOffice" IterBinding="Eis000tv1Iterator"
StaticList="false" ListOperMode="0" ListIter="OfficeSpaceV1Iterator"
NullValueFlag="1" NullValueId="Eis000tv1SlOffice_null">
<AttrNames>
<Item Value="SlOffice"/>
<Item Value="Floor"/>
<Item Value="FloorArea"/>
</AttrNames>
<ListAttrNames>
<Item Value="SlOffice"/>
<Item Value="Floor"/>
<Item Value="Area"/>
</ListAttrNames>
<ListDisplayAttrNames>
<Item Value="SlOffice"/>
<Item Value="Floor"/>
<Item Value="Area"/>
</ListDisplayAttrNames>
</list>
Here is the iterator:
can u set as specified here
-Djps.app.credential.overwrite.allowed=true http://radalcove.com/blog/?p=34
Similar Messages
-
How do I get an LOV / Select One Choice label / Display Attribute in bean?
Guys and Gals,
Using Studio Edition Version 11.1.1.3.0
I must have read and tried to implement 15/20 different threads looking for the answer to this question and didn't find anything suitable so I thought I'd post the code I finally cobbled together. The closest thing I got was ( http://blogs.oracle.com/jdevotnharvest/2010/11/how-to_get_the_selected_afselectonechoicelabel.html ) but it gave me class casting errors. Hopefully this post will help others along the way.
public void onCategoryChangeListener(ValueChangeEvent valueChangeEvent)
RichSelectOneChoice rsoc = (RichSelectOneChoice) valueChangeEvent.getSource();
List childList = rsoc.getChildren();
Integer newVal = (Integer) valueChangeEvent.getNewValue();
Integer oldVal = (Integer) valueChangeEvent.getOldValue();
System.out.println("Old: " + oldVal + ", New:" + newVal);
String newCategory = "";
String oldCategory = "";
for (int i = 0; i < childList.size(); i++)
UISelectItems items = (UISelectItems) childList.get(i);
List children = (List)items.getValue();
for (int j = 0; j<children.size(); j++)
SelectItem item = (SelectItem)children.get(j);
System.out.println(item.getLabel());
System.out.println(item.getDescription());
System.out.println(item.getValue());
System.out.println();
if (newVal.equals((Integer) item.getValue()))
newCategory = item.getLabel();
if (oldVal.equals((Integer) item.getValue()))
oldCategory = item.getLabel();
updateNotes = "category changed from " + oldCategory + " to " + newCategory;
System.out.println(updateNotes);
}Output
Old: 7, New:13
null
0
Castings
null
1
Coil Springs
null
2
Finished Goods
null
3
Hardware Bags
null
4
Instruction Packets
null
5
Kit Boxes
null
6
Masterpacks
null
7
Operations
null
8
Packaging Supplies
null
9
Parts
null
10
Powdercoated Brackets
null
11
Raw Brackets
null
12
Raw Goods
null
13
Raw Shock Absorbers
null
14
Services
null
15
Shocks Absorber Kits
null
16
Spacers
null
17
U-Bolts
null
18
category changed from Masterpacks to Raw GoodsHahahahaha ..... sigh.
Thanks Amit. That works perfectly. Here's my slightly modified code following your directions.
Integer oldValue = (Integer)valueChangeEvent.getOldValue();
Integer newValue = (Integer)valueChangeEvent.getNewValue();
List<SelectItem> silist = (List<SelectItem>) getCategorySOCItems().getValue();
String oldCategory = silist.get(oldValue.intValue()).getLabel();
String newCategory = silist.get(newValue.intValue()).getLabel();
System.out.println("category changed from " + oldCategory + " to " + newCategory);I should have just broken down and asked the forums two days ago. But thank you again. Your example was exactly what I was looking for and eventually ended up hacking together. -
Select One Choice shows 25 items I need about 100.
Hi, I'm new to Jdeveloper 11g and ADF.
I'm building an application that requires "select one choice", "Select Many Shuttle" and some others, but they only show 25 items. If I add a "Next Set" button I can retreive the next set of 25 items, but I don't like it this way. I would like that the controls display all the items at once (about 70 items).
Thanks,
Mike.Hi Mike,
You can implement the suggestions given by Timo and Puthanampatti for fetching all the rows and display in list. However, having more items in the list would make the selection of an item from the list difficult for the users. Instead, you might want to implement List Of Values instead of a Select one choice. List Of Values has a search capability inbuilt which would help the users to narrow down the selection, instead of scrolling through all the records in select one choice.
To implement that, instead of setting the list type to select one choice (in your model - for the attribute for which you've defined list of values), change it to input text with list of values.
HTH.
-Arun -
Select One Choice attribute' LoV based on two bind variables, best practice
Hello there,
I am in the process of learning the ADF 11g, I have following requirement,
A page must contain a list of school names which is needed to be fetched based on two parameters, the parameters are student information been inserted in the previous page.
I have defined a read only view "SchoolNamesViewRO", it's query depends on two bind variables :stdDegree and stdCateg.
added that RO View as a view accessor to the entity to which the name attribute belongs, and then add LoV for the name attribute using the ReadOnly view,
added the name attribute as Select One Choice to page2,
and now I need to pass the values of the bind variables of the ReadOnly view,
the information needed to be passed as the bind variables is inserted in the previous page, I could have the data as bindings attribute values in the page2 definition
I have implemented the next two appraoches but both resulted in an empty list :
* added ExecuteWithParams Action to the bindings of the page and then defined an Invoke Action (set refresh condition) in the executable s, set the default values of the parameters to be the attributes values' input value,
in the trace I code see that the binding fetches correct values as supposed , but the select list appears empty, does the this execution for the query considered to be connected to the list ?
* added a method to the ReadOnly view Imp java class to set the bind variables, then I define it as a MethodAction in the bindings , and then create an Invoke action for it , also the select is empty,
if the query been executed with the passed variables, then why the list is empty? is it reading data from another place than the page!
and what is the best practice to implement that requirement?
would the solution be : by setting the default value of the bind variables to be some kind of Expression!
please notice that query execution had the bound variables ( I see in the trace) are set to the correct values.
would you give some hints or redirect me to a useful link,
Thanks in advance
Regards,please give me any example using backing bean .for example
<?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:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:selectOneChoice label="Label 1" id="soc1" binding="#{Af.l1}"
autoSubmit="true">
<af:selectItem label="A" value="1" id="si1"/>
<af:selectItem label="B" value="2" id="si2"/>
</af:selectOneChoice>
<af:selectOneChoice label="Label 2" id="soc2" disabled="#{Af.l1=='2'}"
partialTriggers="soc1">
<af:selectItem label="C" value="3" id="si3"/>
<af:selectItem label="D" value="4" id="si4"/>
</af:selectOneChoice>
</af:form>
</af:document>
</f:view>
</jsp:root>
package a;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class A {
private RichSelectOneChoice l1;
public A() {
public void setL1(RichSelectOneChoice l1) {
this.l1 = l1;
public RichSelectOneChoice getL1() {
return l1;
is there any mistake -
How to make any select one choice attribute read only base on different att
i have two select one choice attribute .one is create without binding and another one is base on data control .i do not want to write code in backing bean for making attribute read only .
Example:
<af:form id="f1">
<af:selectOneChoice label="Label 1" id="soc1"
autoSubmit="true">
<af:selectItem label="Y" value="Y" id="si3"/>
<af:selectItem label="N" value="N" id="si1"/>
</af:selectOneChoice>
<af:selectOneChoice value="#{bindings.ViewObj.inputValue}"
label="#{bindings.ViewObj.label}"
required="#{bindings.ViewObj.hints.mandatory}"
shortDesc="#{bindings.ViewObj.hints.tooltip}"
id="soc2" partialTriggers="soc1">
<f:selectItems value="#{bindings.ViewObj.items}" id="si2"/>
</af:selectOneChoice>
</af:form>
on the basis of first select one choice the second select one choice should be disable .
i know that i need to bind first select one choice to backing bean .also make auto submit true and add partialTriggers in second select one choice .
please give me hints
thanks
prateekplease give me any example using backing bean .for example
<?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:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:selectOneChoice label="Label 1" id="soc1" binding="#{Af.l1}"
autoSubmit="true">
<af:selectItem label="A" value="1" id="si1"/>
<af:selectItem label="B" value="2" id="si2"/>
</af:selectOneChoice>
<af:selectOneChoice label="Label 2" id="soc2" disabled="#{Af.l1=='2'}"
partialTriggers="soc1">
<af:selectItem label="C" value="3" id="si3"/>
<af:selectItem label="D" value="4" id="si4"/>
</af:selectOneChoice>
</af:form>
</af:document>
</f:view>
</jsp:root>
package a;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class A {
private RichSelectOneChoice l1;
public A() {
public void setL1(RichSelectOneChoice l1) {
this.l1 = l1;
public RichSelectOneChoice getL1() {
return l1;
is there any mistake -
How to get a value from select one choice (created by static view)
Hi,
Whene ever Iam trying to get value from select one choice which is created by static view iam getting only index.How to get the actual value in 11g .please help me anybody .Thanx in advance....
Edited by: 874530 on Jul 22, 2011 11:05 PMThnax for your quick reply..
Iam using 11.1.1.3.0 version.
My code is
<af:selectOneChoice value="#{bindings.DenialLevel.inputValue}"
label="#{bindings.DenialLevel.label}"
required="#{bindings.DenialLevel.hints.mandatory}"
shortDesc="#{bindings.DenialLevel.hints.tooltip}"
id="soc2"
valuePassThru="true"
binding="#{backing_denialcomment.denialLevelList}">
<f:selectItems value="#{bindings.DenialLevel.items}" id="si6"/>
</af:selectOneChoice>
and in bean am not able to get value of attribute .Iam getting only index... -
How to refresh the list of select one choice which is inside a table?
Hello I am using Jdeveloper Version 11.1.2.1.0.
The table is a normal table that is made to look like a treeTable.
For some rows are or can be parents with Parent_vo_group_id = null and other are children with parent_vo_group_id = vo_group_id of the parent...
If a children changes its parent_vo_group_id to null it can become a parent as well.
I am having a select one choice inside a table column. The list comes from the same table with column Name:
<af:table value="#{bindings.VoGroupAdminView2.collectionModel}" var="row"
rows="#{bindings.VoGroupAdminView2.rangeSize}"
contentDelivery="immediate"
visible="#{bindings.VoGroupAdminView2Iterator.currentRow != null}"
fetchSize="#{bindings.VoGroupAdminView2.rangeSize}"
partialTriggers="::soc1" styleClass="AFStretchWidth"
rowBandingInterval="0" editingMode="clickToEdit"
binding="#{adminGroupManagementBean.groupTable}"
selectionListener="#{adminGroupManagementBean.groupSelectionListener}"
rowSelection="single" id="t5">
<af:column sortProperty="#{bindings.VoGroupAdminView2.hints.Name.name}"
sortable="false" styleClass="columnData"
headerClass="tableHeader"
headerText="#{bindings.VoGroupAdminView2.hints.Name.label}"
id="c1">
<af:inputText value="#{row.bindings.Name.inputValue}"
requiredMessageDetail="Please enter a group name"
label="#{bindings.VoGroupAdminView2.hints.Name.label}"
required="true" id="it7" immediate="true" autoSubmit="true"
columns="#{bindings.VoGroupAdminView2.hints.Name.displayWidth}"
maximumLength="#{bindings.VoGroupAdminView2.hints.Name.precision}"
shortDesc="#{bindings.VoGroupAdminView2.hints.Name.tooltip}"
contentStyle="#{row.ParentVoGroupId eq null? 'font-weight:bold' : 'padding-left:20px'}"
valueChangeListener="#{adminGroupManagementBean.groupNameChangeListener}"
partialTriggers="soc2">
<f:validator binding="#{row.bindings.Name.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.name}"
sortable="false" styleClass="columnData"
headerClass="tableHeader"
headerText="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.label}"
id="c4">
<af:selectOneChoice value="#{row.bindings.ParentVoGroupId.inputValue}"
label="#{row.bindings.ParentVoGroupId.label}"
simple="true" immediate="true"
required="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.mandatory}"
shortDesc="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.tooltip}"
id="soc2" autoSubmit="true"
unselectedLabel="<null>"
valueChangeListener="#{adminGroupManagementBean.parentIdValueChangeListener}"
visible="#{row.bindings.ChildrenCount.inputValue eq 0 ? true : false}">
<f:selectItems binding="#{adminGroupManagementBean.selectOneChoiceList}"
value="#{row.bindings.ParentVoGroupId.items}"
id="si2"/>
</af:selectOneChoice>
</af:column>
</af:table> My select one choice uses the same iterator as the table.
<iterator Binds="VoGroupAdminView2" RangeSize="-1" DataControl="AppModuleDataControl" id="VoGroupAdminView2Iterator"/>The table uses this view called VoGroupAdminView:
Select t1.vo_Group_id,
t1.name,
t1.Vehicle_Owner_Id,
t1.Graphical_Symbol,
t1.Lm_Comment,
t1.Parent_Vo_Group_Id ,
decode (t2.children_count, null, 0, t2.children_count) as children_count
from
(SELECT VoGroup.vo_Group_id,
VoGroup.name,
VoGroup.Vehicle_Owner_Id,
VoGroup.Graphical_Symbol,
VoGroup.Lm_Comment,
VoGroup.Parent_Vo_Group_Id
FROM VO_GROUP VoGroup
START WITH VoGroup.Parent_Vo_Group_Id IS NULL
CONNECT BY VoGroup.Parent_Vo_Group_Id = PRIOR VoGroup.Vo_Group_Id
order SIBLINGS by VoGroup.name) t1,
(select parent_vo_group_id, count (parent_vo_group_id) as children_count from vo_group
group by parent_vo_group_id) t2
where t1.vo_group_id = t2.parent_vo_group_id (+)the ParentVoGroupId attribute has list of values from this view object called VoGroupAdminLov:
SELECT
VO_GROUP.NAME,
VO_GROUP.VEHICLE_OWNER_ID,
VO_GROUP.PARENT_VO_GROUP_ID,
VO_GROUP.VO_GROUP_ID
FROM
VO_GROUP
WHERE VO_GROUP.PARENT_VO_GROUP_ID is null
and VO_GROUP.VO_GROUP_ID <> ?
order by VO_GROUP.NAMEI want to refresh the list of values in the select one choice everytime when i add a new row in the table, delete row in the table or change the value of select one choice component.
What I have tried:
public void parentIdValueChangeListener(ValueChangeEvent valueChangeEvent) {
this.setValueToEL("#{row.bindings.ParentVoGroupId.inputValue}", valueChangeEvent.getNewValue());
BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
am.getTransaction().postChanges();
am.getVoGroupAdminView2().executeQuery(); //refresh the table view object;
am.getVoGroupAdminLov1().executeQuery(); //refresh the list of values view object
voGroupAdminIterator.invalidateCache(); //remove the cache of the iterator
voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true)); // set the selected row again.
RichSelectOneChoice soc =
(RichSelectOneChoice)FacesContext.getCurrentInstance().getViewRoot().findComponent(":pt1:t5:soc2");
AdfFacesContext.getCurrentInstance().addPartialTarget(soc);
AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable);
}When i am adding a new row to the table its select one choice list is refreshed but only for the new row. The rest rows have not updated list of values for their select one choice components.
public String addGroupButtonAction() {
AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
ViewObjectImpl voGroupAdminView = am.getVoGroupAdminView2();
Row newRow = voGroupAdminView.createRow();
newRow.setNewRowState(Row.STATUS_INITIALIZED);
voGroupAdminView.insertRowAtRangeIndex(0, newRow);
am.getTransaction().postChanges();
return "null";
}Edited by: 897833 on Mar 19, 2012 9:07 AMI made a button to refresh the value of select one choice and it doesn't work yet.
So I just move one of the
public String refreshParentIdSOCButtonAction() {
BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
am.getTransaction().postChanges();
am.getVoGroupAdminView2().executeQuery();
am.getVoGroupAdminLov1().executeQuery();
voGroupAdminIterator.invalidateCache();
voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true));
AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoice); //refresh the binded SOC as you said
AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoiceList); //refresh the binded list even
AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable); //refresh the table it is in;
return null;
}Edited by: 897833 on Mar 23, 2012 2:58 AM -
How to set a default value in Select one choice.
Hi
I'm using ADF BC, in that how to set a default value in select one choice.
pls. help on this.
regardsset the default value on the underlying EO or VO attribute
john -
Having problems with select-one-choice pull down component in an adf table
all the values in the affected column come up the same. when any value in the column is changed all the values are changed. it's as if jdev doesn't realize the the column with the select-one-choice is really a column. what am i doing wrong?
thanxHi StuCoat,
Did you have a look on this example from Steve Muench:
http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/editabletabledropdown/dropdownlistineditabletable.html?_template=/ocom/technology/content/print
Maybe if you post the part of code including your list into your table (from the <af:column ... to the </selectOneChoice>), we could find an explanation of this behavior.
Regards,
Tif -
How to prevent flushing out the value in Select one choice on page refresh
Hi All,
I am using Jdeveloper 11.1.1.4.0. In my page fragment I am using select one choice ADF component. I have a requirement that unless one fills all details on 1st fragment he/she cant move to next fragment.
So validations are there to check that mandatory fields filled or not. If not than I am showing message to fill the mandatory fields when user press on "Review " Button.
But the value in select one choice is getting cleared while other input values like date fields or input text are not(The input information stored in static variables)
How can I prevent flushing out of select one choice value .
Thanx
kanikaKanika,
You don't have value property set due to which the selected value doesn't get stored and looses its value on refresh.
When you drop attribute as select one choice on page, the value property get bounded to some value, did you remove it intentionally?
If so, can you try keeping the property and see if you see the intended behavior?
Sireesha -
ADF Dependent select one choice list
hi all
i have two lists in my page, and the second one takes value from the first, but it is not working, the second list is empty always whatever i select in the first one.
i have searched many threads and it is not working. i also did the steps in the page http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html#t2
this what i have did in details:
first list : LevelComboVO
select distinct group_level from mrcps_group_link
second list: GroupComboVO
select large_group_seq, group_level, symbol
from mrcps_group_link
where group_level = :selectedLevel
then i made a bind variable for the second list GroupComboVO named selectedLevel
for the first list LevelComboVO i made the following:
press plus on the ListOfValues:GroupLevel and for the list data source i have made new one for GroupComboVO and choosen the list attribute groupLevel and for ui hent i chosed groupLevel
then i have tested the AM but no data returned for GroupComboVO
please helpfirst i have done the 2 view objects and the corresponding two select one choice list
for the first list i have made a managed bean for valueChangedListener -- > #{GrouplLevelBean.passLevel}
and i have put code as you told me :
package mrcps.view;
import javax.faces.context.FacesContext;
import javax.faces.event.ValueChangeEvent;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.jbo.ViewObject;
public class GrouplLevelBean {
public GrouplLevelBean() {
public void passLevel(ValueChangeEvent valueChangeEvent) {
// Add event code here...
DCIteratorBinding testListIter1 = getItrtBindings("GroupComboVOObj1Iterator");
ViewObject vo1 = testListIter1.getViewObject();
vo1.setNamedWhereClauseParam("selectedLevel", valueChangeEvent);
vo1.executeQuery();
getItrtBindings( is giving me a red underline indication that method not found
Edited by: user604057 on Apr 3, 2009 3:27 PM -
Hi
I am using JDeveloper 11.5.My usecase is
1. I created a view object based on two entity obj also created association and view link.
2. I use LOV for an Application description attribute in view object.
3. In JSF page I drag and drop view object from data control,application description attribute as select one choice and financial ctrl attribute as selectoneboolean checkbox.
How to update the table if i select any one application and check the flag?
view object
http://www.4shared.com/photo/R5CRcSk1/2_online.html
http://www.4shared.com/photo/grb9KjVn/1_online.htmlJdeveloper version is 11.1.1.5
I have created web service data control based on the wsdl,
I have drag on attribute return by web service datacontrol on form, as selectonechoice
It ask for base datasource as list datasource.
Both by Base datadouce and list data souce are diferrent in fact the I have manuakky chage the attribute as updatable from readonly,
But then also same error.
Selected attribute has readonly access.Please select an updatable attribute
When I click on Ok button -
Value change listener on select one choice is not working
Hello all,
I have a Jsff page in that i have 2 panel group layout with panel form layout with some input fields in both.
in first panel form layout i have select one choice drop down with 2 values in that.
based on the selection of the list the second panel group layout will get rendered/visible(suggest me which one to use)
but i am facing the problem when i select the value from the drop down it will navigate to the main page.
here is my code.
<af:selectOneChoice value="#{bindings.IsPersentAddDifferent.inputValue}"
label="#{bindings.IsPersentAddDifferent.label}"
required="#{bindings.IsPersentAddDifferent.hints.mandatory}"
shortDesc="#{bindings.IsPersentAddDifferent.hints.tooltip}"
id="soc1"
valueChangeListener="#{UserManagement.isPresentAddresVCL}"
autoSubmit="true">
<af:selectItem label="Yes" id="si1" value="Y"/>
<af:selectItem label="No" id="si2" value="N"/>
</af:selectOneChoice>
bean code:
private RichPanelGroupLayout updateValue;
public void isPresentAddresVCL(ValueChangeEvent valueChangeEvent) {
valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
System.out.println(valueChangeEvent.getNewValue().toString());
if (valueChangeEvent.getNewValue() != null &&
valueChangeEvent.getNewValue().toString().equalsIgnoreCase("Y"))
updateValue.setVisible(false);
else if (valueChangeEvent.getNewValue() != null &&
valueChangeEvent.getNewValue().toString().equalsIgnoreCase("N"))
updateValue.setVisible(true);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(updateValue);
public void setUpdateValue(RichPanelGroupLayout updateValue) {
this.updateValue = updateValue;
public RichPanelGroupLayout getUpdateValue() {
return updateValue;
and i have changed autosubmit =true for the select one choice and partialtrigger =si1 si2 for the secound panel group layout
Thanks in advance
CheersHi Suchith,
You can achieve the functionality without writing a line of code. Just learn how to use page variables Creating Variables and Attribute Bindings to Store Values Temporarily in the PageDef . After,
You just need to put a partialTrigger to your second panelGroupLayout and the visible condition like #{myVariable.inputValue eq 'Y' ? true : false}
That should be enough for you to hide / show dynamically based on the LOV selection.
Regards -
Select One Choice can't connect to DB on weblogic server
Hi,
I've added to my jspx page a "Select One Choice" control that reads the select values from a database table. I did the following steps:
1. Define database connection
2. Create business entity, view and app module for the code table that will populate the select control.
3. Drop the data control of my field into the page as a "Select One Choice" and specify the dynamic list based on the data control from #2
But when I deploy this to the weblogic server, I get an SQLException of "null password given; logon denied"
Is there somewhere on weblogic server I should be setting the connection parameters?
Thanks :Dcan u set as specified here
-Djps.app.credential.overwrite.allowed=true http://radalcove.com/blog/?p=34 -
Text input in a Select One Choice Component
Is there a simple way to enable text input in a Select One Choice Component or do I need to use an LOV or other component to provide that functionality?
You should only use LOV.
Maybe you are looking for
-
Error encountered while communicating with primary IP-address
Hi I have recently deployed my first Exchange Server. This is an Exchange Server 2013 Standard and I set up everything using this document on Technet for installation: http://technet.microsoft.com/en-us/library/bb124778(v=exchg.150).aspx For post-ins
-
Fox formula for actual/plan data - Planning function
Hello, I am working on the following scenarios for developing a planning functions for a monthly forecast. It is rolling montly forcast where user starts the planning in Jan and he has to show the actaul value for the month of Jan and blank values f
-
I need documentation related to designing ui elements as per requirement. Please reply
-
I created a VPN connection. Once I connected to the VPN in Windows 8.1, it does not show DISCONNECT option when I click on the VPN again. It just keep showing CONNECT option only. Why? This has to be a bug! Please fix!
-
Where to store stateless session bean reference?
Hi, I am currently writing my first ejb-jar <-> web app pair of applications. Thanks to EJB3.0 and J2EE5 the ejb part was quite easy to learn. J2EE has become a really cool platform in its recent version. On the Web Application side I have the follow