Portlet integration (Liferay) Canvas problem

SEEMS TO BE MY FAULT, NOT SMARTGWT FAULT
CHEERS


Hi everyone,

I’ve been working in a Liferay Portlet using SmartGWT and I’m facing some integration problems.

I have a SectionStackItem that contains 2 controls (a textitem, and a Canvas).

Im DevMode, it works perfectly (as shown in the 1st joined picture). But, deployed in Liferay, my Canvas background color (the one set as a SectionStackItem control) doesn’t show up (as shown in the 2nd picture).

I’m aware of CSS problems, but I’ve already check CSS Visibility and Z-index, and those values are correct.

Any thoughts on what could be conflicting with SmartGWT ? How Background-color of a Canvas is managed ?

Same issue with SmartGWT 2.4 & SmartGWT 2.5 (using GWT 2.3), Firefox 5.

Thanks for helping.

showing.PNG

not showing.PNG

Hey,

In fact, I found my issue.

In GWT developper mode, using

Canvas.setBackgroundColor("[B]0000FF[/B]");

working perfectly, but not in deploymentmode.

I’m aware of the fact that the javadoc mention using **#**0000FF, but its a strange behavior that it works only in DevelopperMode.

Just posting in case it may help someone.

Cheers.