Skip to main content

Posts

ADF: Scroll down to item on your page

I wanted to scroll down to a component in my page and first tried anchor which just did not work on mu input driven screen. So I tried the af:scrollComponentIntoViewBehavior on my command link and it just worked. <af:commandLink id="c_cert" text="certify" >   <af:scrollComponentIntoViewBehavior componentId="sbc4" focus="true" subTargetId="content"/> </af:commandLink> ... long content <af:selectBooleanCheckbox value="false" clientComponent="true" id="sbc4"/> Note: don't do this with anchors on a non read only content page it just get messy

ADF: Logger timestamp included

I am doing some performance testing and needed to look at the times produced by the ADF Diagnostic logging items. Analyze log was not good enough because it is too slow to find the grouped info I needed. So step one) I loaded my Configure Oracle Diagnostic logging (action menu in the log window) and went straight to the source tab At the top of the logging .xml file there is an entry <log_handler name='console-handler' class='oracle.core.ojdl.logging.ConsoleHandler' level='ALL'   formatter='oracle.core.ojdl.weblogic.ConsoleFormatter' /> it need to be to see the logs in all there glory with timestamps etc <log_handler name='console-handler' class='oracle.core.ojdl.logging.ConsoleHandler' level='ALL'/>

Oracle Diagnotics logging turning it off : Logging.xml

I mistakenly put oracle Root logger to finest which of course crashed everything. So I restarted JDev then restarted Weblogic horror the setting was still set. Great so now I could not work. Solution (thanks google and this oracle doc  ): located the logging.xml file in your integrated weblogic server: C:\Users\[your user]\AppData\Roaming\JDeveloper\system11.1.1.6.38.62.29\DefaultDomain\config\fmwconfig\servers\DefaultServer Edit it and remove the offending log leve setting. (mine was <logger name='oracle'/ level='FINEST'> ==> <logger name='oracle'/>) All fixed and working again...

Webcenter PS5 migration - Iterative Development setting

Noticed that this setting was different when comparing a newly created ps5 portal project and our current project, might save some time for someone: In Portal.jws file near the end. Old        <hash n="oracle.webcenter.dt.config.WebCenterSettings">       <value n="iterativeDevelopment" v="false"/>      </hash> New       <hash n="oracle.webcenter.dt.config.WebCenterSettings">       <value n="iterativeDevelopment" v="true"/>    </hash> Or for those with less of an affinity for source :

Webcenter Menu: invalidate cache

We where getting an exception when executing some code that worked on PS3 on PS5. (We are reconstructing our menu based on user roles and we can masquerade as another user on click of a button) The stack trace of the error included: <SiteStructureResource><getChildren> javax.naming.NamingException [Root exception is java.lang.NullPointerException] at oracle.adfinternal.rc.jndi.CatalogContextWrapper.listBindings(CatalogContextWrapper.java:654) at oracle.adfinternal.rc.jndi.CatalogContextWrapper.listBindings(CatalogContextWrapper.java:616) Caused by: java.lang.NullPointerException at oracle.adfinternal.rc.jndi.FolderContext.loadCache(FolderContext.java:338) at oracle.adf.rc.spi.jndi.InMemoryContext.checkCacheLoaded(InMemoryContext.java:1401) at oracle.adfinternal.rc.jndi.FolderContext.loadCache(FolderContext.java:383) java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor916.invoke(Unknown Source)   public v...