Friday, April 20, 2012

Scrollbar

ScrollBar: For scrollbar we need to use/surround table or other components with PanelGrouplayout. Panelgrouplayout has property called layout under Apperence, set this value to scroll and you will see scrollbars.

Wednesday, April 18, 2012

PageFlowScope Variables Programmatically

AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
Map pageFlowScope = adfFacesContext.getPageFlowScope();
pageFlowScope.put("firstName","Tanveer");
pageFlowScope.get("firstName");

Tuesday, April 17, 2012

Working With SelectOneChoice

One of the simpler way to work with selectone choice is as under.

1) In page definition(bindings) create an iterator from view object in executables.
2) In bindings section click on '+' and select table from list. Select the viewobject you want to deal with. Select the attributes you want to reference.
3) Now on you jsf/jsff page write below code for selectonechoice component.
4) No create Managed bean and create variable of type RichSelectOneChoice as: private RichSelectOneChoice deptName;
and generate accessors for it.
5) The selectonechoice in jsff is binded to this variable. Now you can create a button to test the value for this using below code on action
System.out.println(submType.getValue());