Showing posts with label JDeveloper 12c. Show all posts
Showing posts with label JDeveloper 12c. Show all posts

Friday, 6 May 2016

Troubleshooting read only selectOneChoice content alignment issue

While using an ALTA UI with JDeveloper 12c (12.2.1) I have noticed the following misbehavior.





As you can see, when selectOneChoice component is set to read only, the label and the content are misaligned.

This can be resolved by surrounding the component with panelLabelAndMessage component (set the label of panelLabelAndMessage to the label selectOneChoice and set simple the attribute of selectOneChoice to true (simple=true). But this approach is much time consuming, so this has to be addressed by skinning the component.

Add new skin into your project, to make troubleshooting easier add

   
        If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.
        org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
        true
   
   
        No obfuscation of CSS.
        org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
        true
   

into your web.xml file. The description is here http://docs.oracle.com/cd/E21764_01/user.1111/e21420/adfsg_apply.htm#ADFSG312

The second parameter DISABLE_CONTENT_COMPRESSION is essential as if you do not set it, you won't see "human" readable tags while you troubleshoot the issue with FireBug or similar skin inspecting tools.

So when the page is rendered, you inspect the component under the question and you shall see the similar picture.








If you make changes to

.af_selectOneChoice.p_AFReadOnly .AFPanelFormLayoutContentCell {
    padding-left: 12px;
}

and add padding-top: 10px;

This will fix the issue, to make it a permanent fix add the following into your skin file.

af|selectOneChoice:read-only .AFPanelFormLayoutContentCell {
    padding-top: 8px;
}

And here is the result





P.S. Reset back CHECK_FILE_MODIFICATION and DISABLE_CONTENT_COMPRESSION to their default values when you deploy your application to production.




Friday, 4 March 2016

JDeveloper is slow on Windows 10

Yeah, it is slow! The version of JDeveloper is Studio Edition Version 12.2.1.0.0, OS is Windows 10 Pro with 16 GB RAM, core i7 CPUs and still it is slow.
I have done all the possible tweaks, none helped so far.

The same works with no delays on Windows Server Standard (although not certified), no issues with the performance....

An update.
Finally, after I have changed some BIOS settings, namely disabled "Intel Speed Step" as well as "C-States Control" settings the JDeveloper now works at acceptable performance levels. I have to admit, that there still some random freezes, but this may be related to  the project itself.

Because of lack of time, I have not checked which setting out of two has made such a significant change.

Thursday, 3 March 2016

JDeveloper 12c (12.2.1) and MySQL database

I have started a project where I plan to use MySQL (
5.7.11, community edition) as a data backend. I use JDeveloper 12c (12.2.1.0) to develop model, UI etc.
The first problem I faced is that JDeveloper does not correctly add associations (therefore, create viewlinks) between tables. This is described in this entry https://java.net/jira/browse/ADFEMG-142 but for earlier versions of JDeveloper and MySQL, but the issue is reproduced in JDeveloper 12c as well.
Unfortunately, the reported bug has no resolution. To resolve the issue, I had to manually create or adjust the associations and viewlinks.