Saturday, September 21, 2013

ViewExpired Exception ADF

By default the value of org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS in web.xml is set   to 3, try to set the value to 20 and try                                                                                                                                                        




Wednesday, September 18, 2013

Compare 2 groovy expressions ADF using && operator to render a button

#{securityContext.userInRole['Officer'] && row.bindings.InspectionStatus.inputValue == 'APPROVED'}

Get username from security context in backing bean ADF

ADFContext.getCurrent().getSecurityContext().getUserName()

Resolve Expression in backing bean ADF

 BigDecimal getValue=(BigDecimal)JSFUtils.resolveExpression(expression);

Tuesday, September 17, 2013

refresh page after taskflow return ADF

http://www.jobinesh.com/2010/08/refresh-parent-view-when-in-line-popup.html

Use returnListener for the action button/link to do some functionality on the parent page on return from TaskFlow

Use Run As Dialog on the TaskFlowCall to open the TaskFlow as a dialog window instead of overwriting the parent window

Thursday, September 12, 2013

Groovy Expression to render a button based on the inspection status

#{row.bindings.InspectionStatus.inputValue == 'Pending' || 'Reject' || 'Approve'}