Urgent ADF
English
Please I have this problem
I need to put information in a uix page based in a search page, I mean, when I select a record and push the accept button, all the information about that record may be updated on de opener page.
Spanish
Por favor, tengo este problema
Necesito poner información en una página uix basada en una pagina de búsqueda, quiero decit, cuando seleccione un registro y presione el boton Aceptar, toda la informacion acerca de ese registro se cargue en la pantalla que la abrió
This tutorial shows you how to link two pages.
Selecting a record in one of them and editing it in the next.
http://www.oracle.com/technology/obe/obe9051jdev/uixtutorial/lesson_uix.htm#t3
Similar Messages
-
URGENT: ADF Faces table updating issue.
I have a project that uses JSF, ADF Faces, EJB 3.0, and the ADF binding framework.
In this project, I have a page with a databound ADF Faces Table. The table has a number of read-only columns and two read-write columns. I also have an Edit button that allows the user to pop up a dialog box to edit the selected row of the table. When the user clicks OK in the dialog box, the data is passed back to the main page and the table is updated.
Everything works correctly for the read-only columns. For the read-write columns, however, the table data does not get updated following an edit. This is what I have found:
1. The table row data gets passed in to the Edit dialog correctly.
2. The data gets passed back correctly.
3. The model gets updated correctly (up to and including the database).
4. Looking at the iterator in the debugger shows the correct, updated data.
5. When the table row is getting redrawn, the getter calls for the read-write columns return the updated data.
6. As mentioned above, the read-only columns get updated correctly.
7. Updating the read-write columns directly from the table works correctly.
So, the problem appears to be in the GUI layer. I suspect that, somehow, the submitted values of the read-write columns are not getting set properly, but I cannot figure out how to do this.
Note that clicking on the Edit button results in a partial submit. In the return listener, I add a call to AdfFacesContext.getCurrentInstance().addPartialTarget(getRecipientTable()) in order to redraw the table (getRecipientTable() is the bound value of the ADF table).
Please help! We are so close to production and we need to fix this.
Thanks,
AraHi,
I don't have a testcase for this, so I just come up with ideas to try
1. refresh the parent container of the table. It seems that the input text components are not triggered to refresh if the refresh is on the table.
2. If using ADF, make sure the update is performed directly on theiterator (which automatically is the case if you use a ADF bound form for this)
3. Check if executing the table iterator and then setting back the current row makes a difference
Frank -
No primary key attribute and does not support rowId -- URGENT : ADF Swing
Hi , i have created a view and while create Entity Object through Business Components wizard for that view i am getting following error.
ENTITY CREATION FAILED FOR THE FOLLOWING DATABASE OBJECT
NO PRIMARY KEY ATTRIBUTES AND DOES NOT SUPPORT ROWID . USE ENTITY WIZARD TO CREATE THE ENTITY OBJECT.
very urgent.
Jdeveloper version :: 10.1.3.1.0
oracle version :: 10g
view script is :
SELECT
oh.order_number||'- ('||ol.line_number||'-'||ol.shipment_number||')' so_line,
oh.cust_po_number customer_po,
ol.flow_status_code status,
ol.shipping_method_code carrier,
ol.ordered_item item_no,
nvl(xxapplication_express_pkg.getcustomerpart(ol.inventory_item_id, hca.cust_account_id), ' ') customer_item_number,
nvl(mtl.description , 'na') description,
nvl(org.organization_name , 'oak park') ship_from,
hcsu.location||' ('||hl.city||' '||hl.state||' '||hl.postal_code||')' ship_to,
nvl(ol.promise_date, sysdate) promised_date,
nvl(ol.ordered_quantity, 0) order_quality ,
xxapps.xx_eg_calculated_onhand(ol.line_id) available_qty,
nvl(ol.shipped_quantity, 0) shipped_quality ,
ol.order_quantity_uom uom,
hp.party_name customer_name,
jrs.name sales_person_name,
0 refer
FROM
oe_order_headers_all oh,
oe_order_lines_all ol,
hz_cust_accounts hca,
hz_parties hp ,
hz_cust_site_uses_all hcsu,
hz_cust_acct_sites_all hcas,
hz_party_sites hps,
hz_locations hl,
org_organization_definitions org ,
mtl_system_items_b mtl ,
jtf_rs_salesreps jrs
WHERE
oh.header_id = ol.header_id and
oh.org_id = ol.org_id and
oh.sold_to_org_id = hca.cust_account_id and
hca.party_id = hp.party_id and
hcas.cust_account_id = hca.cust_account_id and
hcsu.cust_acct_site_id = hcas.cust_acct_site_id and
hcas.party_site_id = hps.party_site_id and
hps.location_id = hl.location_id and
hcsu.site_use_id = oh.ship_to_org_id and
hcsu.site_use_code = 'SHIP_TO' and
org.organization_id = ol.ship_from_org_id and
org.organization_id = mtl.organization_id and
ol.inventory_item_id = mtl.inventory_item_id and
ol.ship_from_org_id = mtl.organization_id and
ol.salesrep_id = jrs.salesrep_id and
ol.org_id = jrs.org_id
can i know will it check for any constraints while correlation multiple table or whether this type of exception can be sorted out .
need help looking forward to reply...
Regards
bhanu prakash
Message was edited by:
user579125
Message was edited by:
user579125User,
I assume that this is for read-only activity. If so, don't create an EO from the database view; create a read-only view object instead. The only reason you'd want to use an Entity Object is if you were going to insert/update through the EO; unless you have an instead-of trigger, this database view is non-insertable/non-updatable.
Short answer: I think what you want to do is a read-only View Object (not EO) - put "select x, y, z (your columns) from view_name" as the SQL.
John -
Hi,
We have a problem with an UI module we have built using ADF. The application is in production and we're facing, time-to-time, strange data locking issues.
We have noticed that blocks inside a the DB table showed in the UI but also used by other application modules are blocked w/o reason. After deeper investigation we have noticed in OEM that somebody was executing:
SELECT columns FROM table WHERE ..... FOR UPDATE
Tracing the statement, we have succeeded in identifying the responsible for this request: the UI built in ADF.
Our ADF module is deployed in cluster on 2 OAS nodes.
Please advice us. We've found out that ADF is using SELECT FOR UPDATE to do row-level locking, but could we avoid this data lock? Other modules needs to update data inside that table.
Any suggestion/comment is highly appreciated.
Regards,
OvidiuHello user,
I assume this is a web application? Are your applications set to use optimistic locking mode? Check out section 28.9.1 of the ADF Developer's Guide for Forms/4GL Developers for more information. A brief cut from there:
Oracle recommends using optimistic locking for web applications. Pessimistic locking,
which is the default, should not be used for web applications as it creates pending
transactional state in the database in the form of row-level locks
John -
Urgent: ADF faces/binding: MethodNotFoundException: addControlActionBinding
Hi all,
I've got a Faces managed, request-scope bean that has a managed property, bindings, which I've set to equal #{bindings} (this is so I can use databindings programatically if I need to). I've got the following methods:
public void setBindings(BindingContainer bindings)
this.bindings = bindings;
checkCart();
public void checkCart()
OperationBinding checkCart = bindings.getOperationBinding("checkCart");
checkCart.execute();
}When navigating into the page from elsewhere, this works fine. My operation binding is always executed before displaying any data, which is what I want.
However, it doesn't work when the page is submitted--either on a partial submit via a component's 'autosubmit="true"' attribute or via a command link/button trying to navigate off the page. checkCart() is being called, but an exception is thrown at the line checkCart.execute()--
javax.faces.FacesException: Can't set managed bean property: 'bindings'.
Caused by: javax.faces.el.MethodNotFoundException: addControlActionBinding
at com.sun.faces.el.MethodBindingImpl.method(MethodBindingImpl.java:199)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:124)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:134)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:104)
at com.csea.webstore.view.backing.ViewCartPage.checkCart(ViewCartPage.java:40)
at com.csea.webstore.view.backing.ViewCartPage.setBindings(ViewCartPage.java:53)When I step into the code, I notice that checkCart's "Result" property is still there from the original page load--which surprised me. Aren't all the bindings supposed to be re-initialized on each request? I don't know if this is the problem or not. "addControlActionBinding" certainly isn't anything from my code.
Message was edited by:
Avrom
[This has nothing specific to do with PPR; changed this to reflect that fact.]Anyone?
The last bit of Oracle code in the root cause stack trace, FacesCtrlActionBinding.java:134, is the following:
// bug 4681281:
m._addControlActionBinding.invoke(fc, new Object[] {getName(), this});
I've searched the Bug DB through metalink, and it claims it can't find Bug #4681281. I don't know if the problem has anything to do with this bug or not.
I have also noticed that this bug doesn't always appear on partial submit. It appears whenever the page submits a form (that is, not when the page first loads, but when the user uses an auto-submit or a command button that navigates out). I'm goint to change the top subject line accordingly. -
dear All :
i am using ADSf 10 with WLS 11
i have the following problem :
i add inputdate feild into my screen and i read it is data in the backing bean ,
but i have the following format : Thu Aug 19 00:00:00 IDT 2010
i try to use simple date or any other formates to convert this date into dd/mm/yyyy format but every time the following message appear in server log :
java.text.ParseException : Unparsable date "Thu Aug 19 00:00:00 IDT 2010:i need your help
Edited by: bara on Aug 15, 2010 1:11 AMi use the following :
<af:inputDate label="To Date" id="id2" autoSubmit="true"
immediate="true"
valueChangeListener="#{BBCampaigsReport.getToDate}"
simple="true">
<af:convertDateTime pattern="yyyy/M/d" secondaryPattern="d/M/yyyy" />but it still the same -
dear All :
i am using ADSf 10 with WLS 11
i have the following problem :
i add inputdate feild into my screen and i read it is data in the backing bean ,
but i have the following format : Thu Aug 19 00:00:00 IDT 2010
i try to use simple date or any other formates to convert this date into dd/mm/yyyy format but every time the following message appear in server log :
java.text.ParseException : Unparsable date "Thu Aug 19 00:00:00 IDT 2010:i need your helpduplicate Urgent - Adf input Date
-
Urgent help needed in achieving below ADF 11g flow
Hi, I am using JDEV 11.1.1.2.0 with ADF 11g.
I have a below requirement.
Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2
Screen1
Col1 Col2 Col3
Nm1 Code1 10
Nm1 Code1 30
Nm2 Code1 30
Nm1 Code2 20
Here in screen 2 I will have a calculated field as shown below. Besides this In the same screen I will have a list showing distinct of col2 for the value cliked in col1. So here in this eg. it will be for Nm1 I will have 2 values in the list Code1 and Code2.
Screen 2
Col1 Nm1
Col2 Code1
Tot *40*
Col2 Select
Code1 X
Code2
Now here if user selects the radio of 'Code2' Then my above data should change as below
Col1 Nm1
Col2 Code2
Tot *20*
Col2 Select
Code1
Code2 X
I do this by passing the col1 value as a param to a query VO.
I have tried this using different VOs like a VO with query, VO with user defined column... nothing helps.
I am just unable to reach to screen 2. I am either getting invalid column OR missing in out parameters.
Can any one help on how and what should be done? This is not even master-details stuff. master-details seems easier than this.
Urgent help is needed.
Thanks in advanceI have resolved your problem and build a sample application.
You have to create 2 views and use master detail.
First view will be a simple view for the page 1 and second view will be readonly using group by. Then create a view link between them.
Let me know your email id. I will email you the sample application.
SID
Edited by: manieshsailoz on Apr 26, 2010 5:12 PM -
Urgent!!! Need help with ADF 11g app deployment
Hi,
My application is designed using ADF 11g and am using adfc-config.xml for page flow.
Through Jdev 11g integrated WLS server the application is running smoothly.
But when i deployed application using EAR file on WLS 11g server and accessed the appliction, the page flow didnt worked.
That is i tried opening login page of my application, it opened. Then i provided login credentials , they were successfully validated.
But after that the application home page did not apperaed and application stuck at Login page only. The page flow didnt worked.
Please help on this, its urgent...
Thanks n Regards
Manav RatraThanks Timo/Arun,
The problem was same as figured by you. :)
The application is running smoothly in IE7 but in Mozilla 3.0.15 it is not running.
There it is throwing error:
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
+10.4.5 404 Not Found+
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
Any pointers to this ...
Thanks n Regards
Manav Ratra
Edited by: user11255144 on Nov 16, 2009 11:22 PM -
Very urgent Decimal issue in ADF page
Hello friends,
i have an issue in ADF page which was weight field, issue has below.
1) weight filed was validated that without entering 5 digit value in filed, example suppose i enter 12345 in weight it is showing that in small dialog box -weight value should be 0 to 9999.999 only. but it is let me to go next field and submit button. it is happening only in create page only.
2)but when i go to detail page , same weight fild is populated there - i enter invalid weight something 12345, it is showing that in small dialog box -weight value should be 0 to 9999.999 only. but here let me not go to another filed until i ENTER valid value.
create page weight filed need to work same as detail page.i am new to ADF development, how to check where this validation done and how to fix this.
very very urgent.
Thanks,
vamshi.If you use ADF BC, open the entity and choose "Business Rules". You can then add validation rules such as range limits under the attributes. It is usually best practice to include validation rules in the entity (model layer), this way they apply automatically to all view objects based on the entity and you are guaranteed to have only valid values in the database. (View layer validation may have its place as a convenience supplement.)
Read more about business rules in the developer's guide: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcvalidation.htm -
ADF- PERFORMING DML OPERATIONS- VERY URGENT
Dear All,
i have an urgent requirement on ADF.
i have not developed any page in ADF till now this is my first page so plz help Friends.
Requirement is as follows:
"I should create a page which should perform all DML operations (Insert, Update, Delete)".
please specify step by step procedure for creating this plz help. very urbent friends.
Thanks alot Friends.
Regards,
Raja.well user,
here nothing to urgernt
and *"no urgent."*
user welcome this forums.
you have passed 23 posts in this forums.
you have to see this.
Announcement: Please read this before you post
https://forums.oracle.com/forums/ann.jspa?annID=56
without any details. how can we help you. though.
here you need.
http://andrejusb.blogspot.in/2010/05/crud-operations-in-oracle-adf-11g-table.html
http://andrejusb.blogspot.in/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html -
Urgent! Simple master detail jsp without ADF.
We need to develop a master detail page. personal and detail process record for that personal.
This will work on the web so We are using jsp technology.
(We are using tomcad so We can't use ADF because of deployment problem. maybe the fallowing phase ADF will be used.)
We can't find these kind of sample java and web. Especially data grid type interface on the web.
This is very important program and we need urgently finish.
Thanks for your help.You can use ADF with Tomcat, you just need to install the ADF runtime libraries on your tomcat.
There is a toole->install ADF Runtime option for this. -
Urgent: how to traverse through records using ADF ReadOnly Form
Hi Guru's,
I am new to ADF.
I am having an requirement where i need to show the records in "ADF Read Only Form" where my query fetch more than one record, now i want to traverse through all the record as we do in ADF Table. How can i achieve this using ADF Readonly Form.
Please suggest me on urgent basis.
Thanks
SPCHi,
What is your JDev version? Did you try setting the rowSelection property of the table?
Ex :
<af:table value="#{bindings.EmpView1.collectionModel}" var="row" rows="#{bindings.EmpView1.rangeSize}"
emptyText="#{bindings.EmpView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.EmpView1.rangeSize}" rowBandingInterval="0"
selectedRowKeys="#{bindings.EmpView1.collectionModel.selectedRow}"
selectionListener="#{bindings.EmpView1.collectionModel.makeCurrent}" rowSelection="single"
id="t1">-Arun -
URGENT***How to chance ADF bean properties at runtime?
Hi Friends,
Please help me to get some sample java code to create the ADF UI bean object at runtime.
As per my requirement in my ADF screen (.jspx) I got 3 input text fields, where last fields 2 are disabled while loading the page. When I enter some value in the first textbox and tab out , the second one should be automatically enabled without any button click. Please help me how to achieve the same. How can I set my UI bean properties at runtime (Please share the code to get the UI object)? And how can I able to handle / know where the first text box has value or not.
This is very urgent requirement. Please help me .
Thanks
klogubeHi,
Thanks for helping me. But so far no luck with the 3rd row enabled. Below is my code. As per my real requirement each row should have 2 columns. (col 1: choice box and col2: free textbox).
Can able to make enable the 2nd row's columns. But the last row not getting enabled. Seems the 2nd row textbox (password) value not getting populated in the managed bean. When I print the value it is showing null. (But if I totally remove the first row and enable the 2nd row then test the same. In this case 3rd row getting enabled.). So worried that after enable the 2rd row by EL, it is not passing the entered value to bean it seems.
</p>
<af:panelGroupLayout id="pone">
<af:selectOneChoice label="username choice" value="#{SearchBean.choiceone}">
<af:selectItem label="First Name" value="firstname"/>
<af:selectItem label="Last Name" value="lastname"/>
</af:selectOneChoice>
<af:inputText id="username" value="#{SearchBean.username}" autoSubmit="true" />
</af:panelGroupLayout>
</p>
<p>
<af:panelGroupLayout id="ptwo">
<af:selectOneChoice label="password choice" disabled = "#{empty SearchBean.username}" partialTriggers="username" value="#{SearchBean.choicetwo}">
<af:selectItem label="First Name" value="firstname"/>
<af:selectItem label="Last Name" value="lastname"/>
</af:selectOneChoice>
<af:inputText id="password" value="#{SearchBean.password}" partialTriggers="username" disabled = "#{empty SearchBean.username}" autoSubmit="true"/>
</af:panelGroupLayout>
</p>
<p>
<af:panelGroupLayout id="pthree">
<af:selectOneChoice label="email choice" disabled = "#{empty SearchBean.password or empty SearchBean.username}" partialTriggers="password username" value="#{SearchBean.choicethree}">
<af:selectItem label="First Name" value="firstname"/>
<af:selectItem label="Last Name" value="lastname"/>
</af:selectOneChoice>
<af:inputText id="email" value="#{SearchBean.email}" disabled = "#{empty SearchBean.password or empty SearchBean.username}" partialTriggers="password username" />
</af:panelGroupLayout>
</p> -
ADF Exception--Need some urgent help
Hi Guys,
I am a new biee in ADF and am trying to override an apply button on a JSPX page. I have created a Custom Bean, which popultes a drop down list and now now i want to select one item from drop down and when i click the apply button, the selected item from drop down needs to be saved in DB.
Below is the code that i have written, however when i am trying to execute it i am getting exceptions. Please Help
Caused By: javax.faces.FacesException: javax.el.PropertyNotFoundException: Missing Resource in EL implementation: ???propertyNotReadable???
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:261)
at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:513)
at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:782)
at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:71)
at oracle.adfinternal.view.faces.unified.taglib.input.UnifiedSelectOneChoiceTag.doStartTag(UnifiedSelectOneChoiceTag.java:51)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
Below is the extract from the jsff.xml
<mds:insert parent="pfl1" position="first">
<af:selectOneChoice xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="e4680291729" label="Custom Dropdown"
valueChangeListener="#{backingBeanScope.userformbean.submitActionValidator}" binding="#{backingBeanScope.userformbean.emailSelected}">
<f:selectItems xmlns:f="http://java.sun.com/jsf/core" value="#{backingBeanScope.userformbean.emaillistdropdown}" id="emlis12" />
</af:selectOneChoice>
</mds:insert>
package oracle.iam.ui.sample.userform.view;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.faces.component.UIComponent;
import java.util.StringTokenizer;
import javax.el.MethodExpression;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.model.BindingContext;
import oracle.adf.view.rich.component.rich.input.RichSelectItem;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
import oracle.binding.BindingContainer;
import oracle.iam.identity.exception.NoSuchUserException;
import oracle.iam.identity.exception.UserSearchException;
import oracle.iam.identity.usermgmt.api.UserManager;
import oracle.iam.identity.usermgmt.api.UserManagerConstants;
import oracle.iam.identity.usermgmt.vo.User;
import oracle.iam.platform.Platform;
import oracle.iam.platform.entitymgr.vo.SearchCriteria;
import oracle.iam.selfservice.exception.UserLookupException;
import oracle.jbo.uicli.binding.JUCtrlListBinding;
import org.apache.tools.ant.taskdefs.Get;
//import oracle.iam.ui.sample.common.model.OIMClientFactory;
public class UserFormRequestBean {
private static final String USER_LOGIN_ATTRIBUTE = "usr_login__c";
private static final String EMAIL_ATTRIBUTE = "usr_email__c";
private static final String EMAIL_LIST_ATTRIBUTE = "EMAIL_LIST__c";
private static final String LAST_NAME_ATTRIBUTE = "usr_last_name__c";
private static List<SelectItem> emaillistdropdown;
private static RichSelectOneChoice emailSelected;
private String preffemail;
private static String filterboxvalue;
private List<User> userlist;
private static final String USR_LOGIN="oimcontext.currentUser.usr_key";
private UIComponent emaillist;
public UserFormRequestBean() {
setFilterboxvalue("test custom bean");
setEmaillistdropdown(getEmailList());
public static List getEmailList() {
// String userlastname =
// FacesUtils.getAttributeBindingValue(LAST_NAME_ATTRIBUTE, String.class);
emaillistdropdown = new ArrayList<SelectItem>();
try {
UserManager usrService = OIMClientFactory.getUserManager();
Set retAttrs = new HashSet();
String emailAttribute=null;
SearchCriteria criteria = new SearchCriteria(UserManagerConstants.AttributeName.USER_LOGIN.getId(),"XELSYSADM", SearchCriteria.Operator.EQUAL);
// SearchCriteria(UserManagerConstants.AttributeName.USER_LOGIN.getId(),userlogin, SearchCriteria.Operator.EQUAL);
retAttrs.add("EMAIL_LIST");
List<User> users = usrService.search(criteria, retAttrs, null);
for (int i = 0; i < users.size(); i++) {
emailAttribute =(String)users.get(i).getAttribute("EMAIL_LIST");
System.out.println("Value for email :: " + emailAttribute);
StringTokenizer st = new StringTokenizer(emailAttribute, ",");
while (st.hasMoreElements()) {
SelectItem emaItem = new SelectItem();
String token = st.nextToken();
emaItem.setLabel(token);
emaItem.setValue(token);
emaillistdropdown.add(emaItem);
} catch (UserSearchException e) {
e.printStackTrace();
return emaillistdropdown;
* Generic value change listener. Handles value change events of all customized components.
* Source component is identified by component reference.
public void submitActionValidator(ActionEvent actionEvent) {
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
// Get the sepecific list binding
JUCtrlListBinding listBinding = (JUCtrlListBinding)bindings.get("Custom Dropdown");
// Get the value which is currently selected
Object emailSelected = listBinding.getSelectedValue();
System.out.println("Inside SubmitAction Avlidator***********************************");
// emailSelected =
// (RichSelectOneChoice)actionEvent.getSource();
System.out.println("emailSelected***********************************:"+emailSelected);
if (emailSelected != null) {
preffemail = emailSelected.toString();
System.out.println("preffemail***********************************"+preffemail);
FacesContext facesContext = FacesContext.getCurrentInstance();
FacesUtils.setAttributeBindingValue(EMAIL_ATTRIBUTE,
preffemail);
// execute original submit button action listener
MethodExpression originalActionListener =
FacesUtils.getMethodExpressionFromEL("#{backingBeanScope.MyInformationUIBean.applyButton}",
null,
new Class[] { ActionEvent.class });
originalActionListener.invoke(FacesUtils.getELContext(),new Object[] {actionEvent});
public void setemaillist(UIComponent emaillist) {
this.emaillist = emaillist;
public UIComponent getemaillist() {
return emaillist;
public static void setFilterboxvalue(String filterboxvalue) {
filterboxvalue = filterboxvalue;
public String getFilterboxvalue() {
return filterboxvalue;
public void setEmaillistdropdown(List<SelectItem> emaillistdropdown) {
this.emaillistdropdown = emaillistdropdown;
public List<SelectItem> getEmaillistdropdown() {
return emaillistdropdown;
public void setEmailSelected(RichSelectOneChoice emailSelected) {
this.emailSelected = emailSelected;
public static RichSelectOneChoice getEmailSelected() {
return emailSelected;
public void setPreffemail(String preffemail) {
this.preffemail = preffemail;
public String getPreffemail() {
return preffemail;
}There isn't sufficient detail in your post. To confirm,
1) Are you customizing an out-of-the-box WebCenter taskflow?
2) How are you deploying the new managed bean class? Is it deployed as an ADF Library jar within a shared library?
3) If ADF Library JAR, do you have the managed bean defined in the config files (adfc-config or faces-config) within the ADF Library JAR
Maybe you are looking for
-
I AM SWITCHING TO A MBP FOR GRAD SCHOOL & TO REPLACE MY DEAD DELL.
(I should say I am using a brother's mac now so anything that you see in the area of personal profile stuff, is not mine. There is nothing that should be about me or my computer.) Hey- I thank you for at least attempting to see what it is I am needin
-
How can i get an update for my macbook?
I have a mac OS X version 10.4.11 and i just recently purchased the latest itouch but i can't use the latest version of itunes because the itunes needs version 10.5 and above. Where do i get this update from? I have tried looking for it on software u
-
BADI BBP_TARGET_OBJTYPE
Hello, I'm working with SRM 5.O and due to some specific business requirements we needed to implement the BADI BBP_TARGET_OBJTYPE. But we still didn't cover all our requirements. <u>Here is the required logic we need to pud into the BADI:</u> 1. If w
-
Over a period of several weeks I have been getting Fire Fox updates download requests. The first time looked strange, wanted me to download 3 extra things, 1 toolbar, other 2 I forgot. My computer developed so many problems, I had to spend TWELVE HOU
-
Dear Experts, can you please tell me the reason for the below changes in the request level. Step1) Once I executed the Info package till 5 to 6 hours atleast one record will not update and the request will be in yellow . Step 2) Then suddenly the req