Pages

Thursday, February 9, 2017

Showing The First Tab On PanelTabbed Component In WebCenter Portal ( Spaces )


This issue of showing First tab on panelTabbed component in webcenter portal ( Spaces ) has troubled me for long.

Page A has three tabs. When user select second or third tab and then navigate to another page. When user comes back to Page A, his last selected tab is displayed instead of first tab.

Google Search for showing first tab on panelTabbed component gives you lot many results...and mostly works for adf application. Found a very little for webcenter portal framework ...but none for webcenter portal ( spaces ),

I knew that it has something to do with MDS ...disclosed tab getting persisted. Also verified that using RedSamurai MDS Cleaner taskflow. There were MDS file getting created persisting disclosed tab information.

Found the solution ...

http://dba-adf.blogspot.com/2014/02/showing-first-tab-always-when-enabling.html



 public void tabDisclosureListener(DisclosureEvent disclosureEvent) {     
        RichShowDetailItem tab = (RichShowDetailItem)disclosureEvent.getComponent();
        FacesContext fc = FacesContext.getCurrentInstance();
        ChangeManager cm = RequestContext.getCurrentInstance().getChangeManager();
        ComponentChange cc = new AttributeComponentChange("disclosed", Boolean.FALSE);
        cm.addComponentChange(fc, tab, cc);
        ........
    }

This will reset the disclosed property when ever any of the tabs where clicked.


Enjoy !!!

Tuesday, November 8, 2016

ADF Skinning - Styling table column And Hiding checkbox in SelectManyChoice



Few ADF Skinning Tips

Recently I came across a OTN question and some requirements on ADF Skinning. 

OTN question : How to allow user to select multiple values in selectManyChoice but not showing   checkbox ?

Well first I checked whether it is possible to select multiple values using CTRL+CLICK without selecting checkbox ...and yes it is. So only thing left is to hide the checkbox. Well then all we need is correct adf skin selectors and some basic css. Here is the sample code :

Apply the smcCheckboxHide class on SelectManyChoice component 
          <af:selectManyChoice label="TestCheckbox" styleClass="smcCheckboxHide">
          <f:selectItem itemValue="MALE" itemLabel="MALE" id="si11"/>
            <f:selectItem itemValue="FEMALE" itemLabel="FEMALE" id="s1i2"/>
          </af:selectManyChoice>

and hide the checkbox in css using below code : 

af|selectManyChoice::content-input.smcCheckboxHide {
display:none
}

Refer to http://jdevadf.oracle.com/adf-richclient-demo/docs/skin-selectors.html
af|selectManyChoice::content-input - >Style on the native checkbox of the af:selectManyChoice component.

Another requirement that came up is to have right border on few columns in adf table. Again we need to lookup for the right adf skin selectors. Sample code : 

Apply the style class on column { rightColHeaderBorder for header and for datacell }

<af:column sortable="false" headerText="Name" align="start" id="c2" headerClass="rightColHeaderBorder" styleClass="rightColBorder">
            <af:outputText value="#{row.name}" id="ot2"/>
 </af:column>

Skinning code :

af|table af|column::column-header-cell.rightColHeaderBorder, 
af|table af|column::banded-data-cell.rightColBorder, 
af|table af|column::data-cell.rightColBorder{
    border-right-color: Blue;
    border-right-width: thin;
}


Enjoy!!!! 
Feel free to provide your inputs in comments..

Tuesday, July 5, 2016

How to enable Webservices request and response dumping in WebLogic

Always thought to find some settings in weblogic to dump webservice request and response soap xml while calling webservice. Finally found the settings in blog post here.  Thanks to

https://www.igorkromin.net/index.php/2015/05/11/how-to-enable-webservices-request-and-response-dumping-in-weblogic/


Below image from



For reference I am posting them here :

 JVM start parameters:

-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true
-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true
-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true



Enjoy...