Tuesday, February 23, 2016

How to hide expand button in TreeTable.

I saw many questions about how to hide expand button for leaf nodes in treeTable or tree component. So I'll show a simple trick. The idea is to hide it with CSS class which will be assigned to column in the nodeStamp facet if a view object row does not have child records.

Friday, June 5, 2015

Attractive ADF.

Imho, attractive functionality is better than just functionality. In this post I'm going to show how you can use jQuery in ADF applications.

Sunday, December 9, 2012

Advanced hotkeys in ADF.

In this post I'm going to share a way to get a fully functional hotkeys support in ADF applications.
AccessKey property has many restrictions which I don't like:
  • it is a browser specific feature (accessKey is triggered by browser-specific and platform-specific modifier keys. It even has browser-specific meaning. For example, Internet Explorer 7.0 will set focus when you press Alt+. Firefox 2.0 on some operating systems you press Alt+Shift+. Firefox 2.0 on other operating systems you press Control+);
  • I can't have hotkeys like Ctrl+Space;
  • I can't trigger particular events;
  • I can't set several hotkeys for one component;
  • and so on.
So I've written a script which gives me ability to circumvent this restrictions and easily add hotkeys (and one auxiliary script which provides methods to obtain af:document component, attach listeners to dom elements in different browsers and initialize my custom libraries when document is loaded).


Saturday, June 30, 2012

Non resizable panel splitter.

There is a component Panel Splitter, which used to divide a region into two parts one of which can be resized or collapsed. Great but there are cases when I want only to collapse/uncollapse one side and not to resize. The panelSplitter doesn't have such property. After playing with firebug I've made a css class wich satisfies my needs.

Thursday, June 28, 2012

Complex forms? Simple and easy! (part 2)

In the previous post I showed a sketch of a desired form and a way to achieve it. But the result was not exact.

Checkboxes and radiobuttons

Tired of native checkboxes and radiobuttons which look different in browsers and have inconsistent appearance?
If you don't know a way to change the look and feel of native checkboxes and radiobuttons with pure css (I don't know too except tricks with javascript or crazy css hacks like this) I'll show you how to get radiobuttons and checkboxes like on the image below.

Tuesday, June 26, 2012

Complex forms? Simple and easy!

   In this post I'll show you how to make form with such layout simply and easy. The idea is to use trinidad table in which inputs will stretch the entire width of a cell.

Monday, June 25, 2012

Obtaining hostname and printers via applet

In this post I'm going to show how to obtain client's hostname, printers and display them in the page.

Sunday, June 24, 2012

ADF Application + Jenkins + WebSphere Application Server

At first sorry for my terrible English. But I hope information I want to share worth it. Please report about mistakes in the post and I'll fix them. If post seems very briefly or there are things you do not understand then write in comments and I'll explain more detailed.