Tuesday, November 8, 2011

How to Stretch an ADF Table to occupy maximum width

ADF Table can be stretched to occupy the maximum width available in the window by using a PanelStretchLayout Component and AFStretchWidth Style Class in conjuction. The Table must be embedded inside the center facet of a PanelStretchLayout component and the Style Class of both the Table and Layout component must be set to AFStretchWidth.

Sample Code:

Sample Demo:

Friday, July 15, 2011

LOVS based on Views with High Number of Rows

If you opted to have an LOV from a View which has huge number of rows and if the LOV type choosen is
'Choice List' then your page would just hang, you won't know for reason it hung.

In such cases the best LOV type to use is Input Text with List of Values, I just learnt it the hard way.

Tuesday, June 21, 2011

StoreFrontUI Project Fails to Deploy in JDeveloper 11.1.1.5.0

I am using the latest JDeveloper 11.1.1.5.0 and downloaded the Fusion Order Demo application developed for 11.1.1.2.0. As prescribed changed the build.properties and was able to build the stuff. But Deploying the StoreFront Project was failing with this
error.



weblogic.application.ModuleException: Failed to load webapp: 'StoreFrontModule'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
Truncated. see log file for complete stacktrace

<Jun 21, 2011 8:19:48 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'StoreFrontModule [Version=V2.0]'.> 
<Jun 21, 2011 8:19:48 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Failed to load webapp: 'StoreFrontModule'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
Truncated. see log file for complete stacktrace

[08:19:48 PM] ####  Deployment incomplete.  ####
[08:19:48 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application StoreFrontModule due to error deploying to IntegratedWebLogicServer.
[Application StoreFrontModule stopped and undeployed from Server Instance IntegratedWebLogicServer]


And the Reason for this is, the Project Properties of StoreFrontUI JSF Tag Libraries -> JSF Core and JSF HTML refer to non-existent 

jar:file:/<MIDDLEWARE_HOME>/oracle_common/modules/oracle.jsf_2.0/jsf-impl.jar!/META-INF/jsf_core.tld

jar:file:/<MIDDLEWARE_HOME>/oracle_common/modules/oracle.jsf_2.0/jsf-impl.jar!/META-INF/html_basic.tld

This can be noticed by the red color of the libraries. To fix this, just delete them and add JSF Core 1.2 libraries.

Learning ADF

This time I am serious to learn ADF and want to document whatever interests me over here.
Wish Me Good Luck.