Monday, December 20, 2010

Adding profiles to COLLECTION_DISPLAY template

I have a requirement to allow users to check-in files inside folders according to a chosen profile, this will not be done from WebDAV it will be from the UCM Web Interface.


So in this case we need to customize with COLLECTION_DISPLAY template or resources used inside it.

After investigations I found that I need to customize the two resources collection_explore_menus, and new_content_form

For example I created a new profile called Processes, and I want to add it as a link under New Content link. In the first resource collection_explore_menus we will add the following at the end of the resource

FOLDER_EXPL_NEW_CONTENT_Processes,  FOLDER_EXPL_NEW_ITEM,     70,        wwArchiveProcesses,    javascript:document.newcontentformProcesses.submit(),

Where

id            = FOLDER_EXPL_NEW_CONTENT_Processes
parentId  = FOLDER_EXPL_NEW_ITEM
labelKey = wwArchiveProcesses
href        = javascript:document.newcontentformProcesses.submit()

Then as you noticed we are firing Submit action for a HTML form called newcontentformProcesses which has to be created by us and here comes the role of the next resource new_content_form, so will add the following to the resource and after the first HRML form there

<form action="<$HttpCgiPath$>" method="GET" name="newcontentformProcesses">

<input name="IdcService" type="hidden" value="CHECKIN_NEW_FORM" />
<input name="<$collectionIDMeta$>" type="hidden" value="<$dCollectionID$>" />
<input name="xIdcProfile" type="hidden" value="wwArchiveProcesses" />

</form>

Notice the hidden field xIdcProfile which is the profile trigger metadata field.

I hope this post will be helpful

Wednesday, December 15, 2010

Top 50 Media Gawker passwords

While I was reading articles in ShalshDot website, I read one taking about the top 50 passwords

For me the top passwords I am always facing are
  • welcome1
  • oracle
  • oracle123
  • Oracle10g
  • Oracle11g
  • companyname@password
  • companyname@password123
  • passw)rd
  • admin
  • admin123
  • weblogic1
  • weblogic123
  • weblogic123$
  • password2$
  • companyname123$
Unfortunately, I found those easy passwords in big organizations (some of them multinational ones) in Middle East. I think the best approach to create passwords it to use random password generator. However sometimes I am using one of those passwords for the sake of facilitating implementation and deployment, but system supposed to change them however he isn't doing that. May be in the future I will avoid that.

Sunday, December 12, 2010

Guys did hear about "ECM Maturity Model"

As the post title asks "Did you hear about ECM Maturity Model?"


If you are not, go and visit it, and download this document. It is great job, but what I liked is page number 12 and the matrix there. I didn't use it in a project but I imagine it will be helpful for me as a consultant working in a project where using it I can assess how much maturity we reached in that project.

However, the website and the document lacks a lot of information, may misguide some people. Also I saw the same things discussed there before, like for example in Bex's last book "", but really I like their remarkable maturity matrix.

Anyway it's nice work and I advice by taking a look on it.

Chrome OS

I have downloaded Chrome OS, and I tried it. I think it is good OS, light, and suitable for Notebook users. The OS is Linux based on SUSE Linux (as I think), also uses OpenOffice but SUSE release (not Oracle). It is mainly focusing on using Online services offered by Google like google docs, so the main interface used is Chrome browser, not Explorer.exe in Windows.

Really I like the idea, but still for windows users it's hard to make them change, where most windows users are using local storage and services, and they didn't have the Cloud concept. However Google is the only one who has the power to convince users to change.

For me as Fedora user, I think there is no big difference but services and features offered by fedora for me as developer are higher.


Let us see how Google community will improve Chrome OS.

Tuesday, December 7, 2010

Oracle BPM Suite 11g: New Book

Packt has asked me to review this book, I have just downloaded it and I will start reading it tomorrow. However one of friends told me that the book is good and it covers SOA too.

It worth to mention that BPM is an important part of Middleware which facilitates building of business processes by business users, and those processes are SOA based. I didn't use it yet, after reviewing the book I will come with an example of how to use BPM and UCM together.


I wish Packt will change their books' titles to "Hands On" :D which became very helpful to start with Oracle Middleware solutions in short time.

Monday, November 22, 2010

Change panelGroupLayout to use <table> instead of <div>

As most of us know that ADF by default is converting most of its containers to <div>, but sometimes there is a need to work with <table>, let us see how to do that:

It is very simple, we will use three styles  table, table-row, and table-cell. Let us suppose that we have the following ADF faces code


    <af:panelGroupLayout>
        <!-- some controls goes here -->
    </af:panelGroupLayout>
    <af:panelGroupLayout>
        <!-- some controls goes here -->
    </af:panelGroupLayout>
</af:panelGroupLayout>



We need to convert it to a table with two rows and on column, so it will be


<af:panelGroupLayout inlineStyle="display:table;">
    <af:panelGroupLayout inlineStyle="display:table-row;">
        <af:panelGroupLayout inlineStyle="display:table-cell;">
            <!-- some controls goes g -->
        </af:panelGroupLayout>
    </af:panelGroupLayout>
    <af:panelGroupLayout inlineStyle="display:table-row;">
        <af:panelGroupLayout inlineStyle="display:table-cell;">
            <!-- some controls goes g -->
        </af:panelGroupLayout>
    </af:panelGroupLayout>
</af:panelGroupLayout>



Note if you used layout property for panelGroupLayout with value equal to Horizontal, it will be converted to able but you will not have full control over it where cells will be generated automatically and you cannot add styles to them.

Wednesday, November 10, 2010

ADF: Images in CSS not displayed with IE

I am currently working on a portal project in Saudi Arabia using WebCenter. I have created my own skin and styles, and in the last days I was developing on Fedora linux so I tested my work on Firefox and Chrome. After deployment, I got surprised that images not displayed.

The issues was that I was using styles like the following:


background-image: url("../images/logo.png")repeat-x; 



but while debugging on Internet Explorer, I found that the style is not existing within the css class (not being served to Internet Explorer). To fix it, you have switch to the following


background-image: url(../images3/Center.png);
background-repeat: repeat-x;



it took from me time, to find the problem, world of css :D