This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Get an instance of method binding named loadData1 (feeling analyzer service) | |
* of current binding container | |
* The implementation is therefore COUPLED with a page definition | |
*/ | |
BindingContext context = BindingContext.getCurrent(); | |
BindingContainer bindings = context.getCurrentBindingsEntry(); | |
OperationBinding operation = bindings.getOperationBinding("loadData1"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="windows-1252"?> | |
<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"> | |
<factory> | |
<exception-handler-factory>com.nicequestion.donatas.adf.CustomExceptionHandlerFactory</exception-handler-factory> | |
</factory> | |
</faces-config> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FacesBehavior("donatas.nicequestion.com.adf.extensions.initialFocus") | |
public class SetInitialFocusBehavior extends ClientBehaviorBase { | |
/** (ADF) Faces component attributes to handle special cases | |
* where setting the initial focus doesn't make sense | |
*/ | |
private static final String ATTR_READ_ONLY = "readOnly"; | |
private static final String ATTR_VISIBLE = "visible"; | |
private static final String ATTR_DISABLED = "disabled"; | |
/** Custom marker attribute. | |
* Marks initial focus as already set to handle special cases: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- adfExt facelets taglib contains Set Initial Focus tag --> | |
<context-param> | |
<param-name>javax.faces.FACELETS_LIBRARIES</param-name> | |
<param-value>/WEB-INF/resources/adfExt.taglib.xml</param-value> | |
</context-param> |
NewerOlder