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.
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
There is a study made about Management based on Somali Pirates and Taliban ( insurgents in Afghanistan), you can read more about it in the article from economist.
What is interesting for me is the comparison between Somali pirates strategy in attacking ships and strategy Nintendo in penetrating gaming market and competing companies like Microsoft.
Also Taliban strategies is very interesting for me in project management, and how companies can have small teams taking quick decisions without returning to management and doing micro-management. They don't wait for long-term approvals.
I liked it and I wanted to share it with you.
|