RichInputText input = (RichInputText)
JSFUtils.findComponentInRoot(id);
input.setSubmittedValue(null);
input.resetValue(); // input.setValue("") doesn't work here
AdfFacesContext.getCurrentInstance().addPartialTarget(input);
Wednesday, February 26, 2014
Reset Input Text Field ADF
Thursday, February 13, 2014
af:Read Only Table ADF
When you use a Read Only View Object to be displayed as a Table, Use it as a Read Only Table(instead of Table) to avoid issues and display correct data
Sunday, December 15, 2013
Tuesday, November 12, 2013
Popup window not showing on page refresh ADF
<af:popup id="..."
autoCancel="disabled" />
Set the autoCancel Property to disabled
https://forums.oracle.com/message/10765271
Tuesday, October 29, 2013
Point to html page from ADF taskflow using URL View
In an ADF task Flow use URL view component
at URL* specify the path of the page
fog e.g /context-root/ServerError.html
at URL* specify the path of the page
fog e.g /context-root/ServerError.html
Friday, October 25, 2013
Logout from Single Sign On an ADF application
<af:goLink text=' #{securityContext.authenticated ? "Logout" : "Login"}'
id="gl1"
destination='#{securityContext.authenticated ? "/adfAuthentication?logout=true&end_url=/<context-root>/faces/start-page-of-the-app" : "/adfAuthentication?success_url=/<context-root>/faces/start-page-of-the-app"} '/>
or
Use a Logout Button with an Action Listener method to avoid this exception while logout - oracle.adf.controller.ControllerException: ADFC-04008: The BindingContext on the session is null
Session Invalidate Add before logging out : update required
id="gl1"
destination='#{securityContext.authenticated ? "/adfAuthentication?logout=true&end_url=/<context-root>/faces/start-page-of-the-app" : "/adfAuthentication?success_url=/<context-root>/faces/start-page-of-the-app"} '/>
or
Use a Logout Button with an Action Listener method to avoid this exception while logout - oracle.adf.controller.ControllerException: ADFC-04008: The BindingContext on the session is null
<af:commandButton text=" #{securityContext.authenticated ? "Logout" : "Login"}" id="cb7"
actionListener="#{backingBeanScope.backingBean.logout}"/>
public void logout(ActionEvent actionEvent) {
ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
String url = request.getContextPath() +
"/adfAuthentication?logout=true&end_url=/faces/start-page-of-the-application";
try
{
ectx.redirect(url);
}
catch (Exception ex)
{
System.out.println("Exception!! Logging out"+ex);
// Handle the exception
}
}
Session Invalidate Add before logging out : update required
Labels:
ADF,
ADFC-04008,
Jdev,
logout,
Security,
SSO,
The BindingContext on the session is null
Deploying ADF application with both HTTP Client Authentication(Public Key Certificate) and Form-Based Authentication
To Start with, implement security for the application with Form Based Authentication by specifying the login page, error page and default page
Then to configure HTTP Client Authentication(Public Key Certificate) Go To -> Web.xml of the application and -> manually change <auth-method>FORM</auth-method> to <auth-method>CLIENT-CERT,FORM</auth-method>
Then to configure HTTP Client Authentication(Public Key Certificate) Go To -> Web.xml of the application and -> manually change <auth-method>FORM</auth-method> to <auth-method>CLIENT-CERT,FORM</auth-method>
Now if the application is deployed to single sign on, the application would be authenticated with HTTP Client Authentication(Public Key Certificate) . If the application is deployed as standalone on LDAP it would require Form Based Authentication to login
Subscribe to:
Posts (Atom)



