Thread: No button images being generated by ADF JSF app on Linux


Permlink Replies: 10 - Pages: 1 - Last Post: May 14, 2008 8:59 AM Last Post By: alopez
Alan Richardson

Posts: 16
Registered: 01/10/01
No button images being generated by ADF JSF app on Linux
Posted: Mar 8, 2007 11:26 PM
Click to report abuse...   Click to reply to this thread Reply
I have a 10.1.3.1 ADF Faces application which uses the mycompany skin. When I deploy on my laptop (Windows XP) using standalone OC4J or the app server that comes with SOA 10.1.3, the UI looks fine.

When I deploy to standalone OC4J on a Linux server, or the app server that comes with SOA 10.1.3, the UI looks OK except the buttons are regular browser buttons, not generated images.

As far as I can tell no images are being generated on Linux. After turning on logging to FINE I see the following message in the oc4j log file:

Finished initializing image cache: /home/10gAS/j2ee/os_poc/application-deployments/os_job_manager_ui/job_management_ui/temp/adf/images/cache/en/

but the directory is always empty.

Does anyone have any ideas? I read about generation of images by UIX requiring an XServer on UNIX, is that true of JSF?

Thanks in advance!
jdrogers

Posts: 164
Registered: 09/20/05
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 2, 2007 1:44 PM   in response to: Alan Richardson in response to: Alan Richardson
Click to report abuse...   Click to reply to this thread Reply
Did you find out anything about this issue?

I seem to be running into this same issue of the default buttons being used when I run on a Linux based server.

When I run locally on the JDeveloper OC4J the buttons look like they should.

Anyone else have this problem? Maybe I'm missing some setting?
KUBA

Posts: 877
Registered: 11/18/05
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 2, 2007 2:44 PM   in response to: Alan Richardson in response to: Alan Richardson
Click to report abuse...   Click to reply to this thread Reply
Hi,

In my company we have exactly the same problem custom skin for buttons doesn't work as should after deploying on OAS on Linux server

Kuba
Didier Laurent

Posts: 611
Registered: 01/10/01
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 2, 2007 10:40 PM   in response to: KUBA in response to: KUBA
Click to report abuse...   Click to reply to this thread Reply
Do you use your own skin ?
Could you try with the "oracle" skin ?

ADF Faces generates these images buttons at runtime.
The generated images depend, among others, on the font.
Linux has less fonts available than Windows, and it has a set of rules to substitute some fonts to others.
When the substitution fails for some reasons (f.ex. no substitution rule defined for a specific font), the generation of the images fails without any warning.
This could be the root cause of the problem.

Regards,

Didier.
KUBA

Posts: 877
Registered: 11/18/05
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 2, 2007 11:15 PM   in response to: Didier Laurent in response to: Didier Laurent
Click to report abuse...   Click to reply to this thread Reply
Hi Didier,

We are using followig systems:
RedHat Enterprise
SuSe
Fedora

How to resolve problem you have described ?

Kuba
Didier Laurent

Posts: 611
Registered: 01/10/01
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 3, 2007 12:38 AM   in response to: KUBA in response to: KUBA
Click to report abuse...   Click to reply to this thread Reply
Before trying to solve the problem, please be sure that it was diagnosed correctly.
See my previous post

Do you use your own skin ?
Could you try with the "oracle" skin ?

If you use your own skin and cannot reproduce with the "oracle" skin, you have to find out the "culprit" font(s), so that either you remove it (them) from your skin, or you insure the substitution rules are defined in your Linux system.

If I remember well, Oracle 9iAS had a set of fonts that could be used in all OS.
Not sure if they are still present in 10g however.

Regards,

Didier.
KUBA

Posts: 877
Registered: 11/18/05
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 3, 2007 12:46 AM   in response to: Didier Laurent in response to: Didier Laurent
Click to report abuse...   Click to reply to this thread Reply
Hi,

I use custom skin. With default adf faces skin applications work well. We are using OAS 10.1.3.
What does mind "culprit" skin(s) ?

I have following button definition in css

/************************************************************************
* BUTTON ENABLED
************************************************************************/
.AFButtonServerText:alias
{
background-color: #014F28;
color: #FFFF00;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: center;
}

.AFButtonStartIcon:alias
{
content:url(/css/img/buttonEnabled-Left.jpg);
width:3px;
height:20px;
}

.AFButtonEndIcon:alias
{
content:url(/css/img/buttonEnabled-Right.jpg);
width:3px;
height:20px;
}

.AFButtonTopBackgroundIcon:alias
{
content:url(/css/img/buttonEnabled-Top.jpg);
width:1px;
height:2px;
}

.AFButtonBottomBackgroundIcon:alias
{
content:url(/css/img/buttonEnabled-Bottom.jpg);
width:1px;
height:2px;
}

/************************************************************************
* BUTTON DISABLED
************************************************************************/

.AFButtonServerTextDisabled:alias
{
padding 2px;
background-color:#CCCCCC;
color:#666666;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: center;
}

.AFButtonDisabledStartIcon:alias
{
content:url(/css/img/buttonDisabled-Left.jpg);
width:10px;
height:18px;
}

.AFButtonDisabledEndIcon:alias
{
content:url(/css/img/buttonDisabled-Right.jpg);
width:10px;
height:18px;
}

.AFButtonDisabledTopBackgroundIcon:alias
{
content:url(/css/img/buttonDisabled-Top.jpg);
width:1px;
height:3px;
}

.AFButtonDisabledBottomBackgroundIcon:alias
{
content:url(/css/img/buttonDisabled-Bottom.jpg);
width:1px;
height:3px;
}

Kuba

Didier Laurent

Posts: 611
Registered: 01/10/01
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 3, 2007 1:19 AM   in response to: KUBA in response to: KUBA
Click to report abuse...   Click to reply to this thread Reply
What does mind "culprit" skin(s) ?
One of these:
font-family: Verdana, Arial, Helvetica, sans-serif;

I would try to identify which of the 4 fonts cause the problem.
It can be that one of these is not installed on your system.
NB: "sans-serif" is the correct syntax in HTML, but I'm wondering if it's not "SansSerif" in Java.
There are utilities to see the fonts that exist on your system, like xlsfonts, xfontsel -pattern Arial, ...

I think that on top of OS potential problems, there is also a limitation caused by Java, as it only "knows" a limited set of fonts.
There is a mapping defined between the Java fonts and the fonts from your Linux machine. The mapping is defined in font.properties, or font.properties.<locale> in case you use a locale, f.ex. "fr".

I would test it with font "Dialog", that's a Java "virtual font", which is guaranteed to exist on every system. I think there are also other physical fonts always supplied with the JDK, like "Lucida".

Concerning the fonts installed with iAS, forget my previous message. I checked with the iAS team; information was correct, but for the Albany font, used for Japanese, Korean, ...

Sorry, I have no solution to offer "on a plate", just tracks that you can investigate to find the cause, and then the solution...

Regards,

Didier.
jdrogers

Posts: 164
Registered: 09/20/05
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 3, 2007 8:06 AM   in response to: Didier Laurent in response to: Didier Laurent
Click to report abuse...   Click to reply to this thread Reply
Didier,

Thank you so much for your reply! The font was the cause of the problem.

I had only specified Tahoma in the font-family. That font is clearly not installed on the Linux system.

I modified the css file for my skin to specify Lucida and Dialog as the fonts for the buttons. Using Lucida makes the button fairly close to the Tahoma we are using in the rest of the application.

I have not done any testing to determine which other fonts might be valid.

Thanks again for pointing me in the right direction!

Jim
Didier Laurent

Posts: 611
Registered: 01/10/01
Re: No button images being generated by ADF JSF app on Linux
Posted: Jul 3, 2007 10:05 AM   in response to: jdrogers in response to: jdrogers
Click to report abuse...   Click to reply to this thread Reply
Thanks for confirming Jim.
alopez

Posts: 150
Registered: 09/26/03
Re: No button images being generated by ADF JSF app on Linux
Posted: May 14, 2008 8:59 AM   in response to: Didier Laurent in response to: Didier Laurent
Click to report abuse...   Click to reply to this thread Reply
Hello:

I'm having this same problem, but with the oracle default skin.

It happens from one deploy to another, in the ondemand's servers.
1.- The deploy I send on Monday works ok, but I have to correct some things in the code,

2.- Then, I had to send the deploy on Thursday, and the problem was there, no buttons or panelPage features are rendered correctly.

Is there any reason or activity during the deploy execution that could be the cause of this behavior?

This is urgent.

Thnks in advance.
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums