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
<!-- Data push --> <!-- anonymous javascript function onevent does nothing --> | |
<f:ajax event="propertyChange" onevent="function(e) {}" render="t1 t2 ot1"> | |
<af:activeOutputText value="#{chatListenerBean.message}" id="aot1"> | |
<f:ajax/> <!-- this tag does nothing --> | |
</af:activeOutputText> | |
</f:ajax> | |
<!-- Output text Alive:true --> | |
<af:outputText id="ot1" | |
value=" Alive:#{chatListenerBean.pong}" | |
clientComponent="true"/> |
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
public class Person { | |
private Integer number; | |
private String firstName; | |
private String lastName; | |
private Date birthday; | |
public Person() { | |
super(); | |
} |
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
public class CRUDPersonsTaskFlowController { | |
private List<Person> personList; | |
.. getter and setter omitted.. | |
/** Copy person by using copy constructor | |
* | |
* @param person person to copy | |
*/ |
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
<context-param> | |
<description>Security precaution to prevent clickjacking: bust frames | |
if the ancestor window domain(protocol, host, and port) and the frame | |
domain are different. Another options for this parameter are always and never. | |
</description> | |
<param-name>org.apache.myfaces.trinidad.security.FRAME_BUSTING</param-name> | |
<param-value>never</param-value> | |
</context-param> |
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
<iframe frameborder="0" height="110" width="90%" | |
name="ADF Task Flow sample running in Java cloud" | |
src="http://cloud.nicequestion.com/faces/home.jsf"> | |
</iframe> |
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
<context-param> | |
<param-name>oracle.adf.view.rich.prettyUrl.OPTIONS</param-name> | |
<param-value>off</param-value> | |
</context-param> |
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
public class SampleFlowController { | |
private String sampleValue; | |
/* The method is aimed to show, that the same instance | |
* of controller is used, regardless of a way it gets consumed - | |
* as a data control or managed bean. | |
* */ | |
public void doSomethingUseful() { | |
sampleValue = sampleValue.toUpperCase(); | |
System.out.println("Something useful performed on testSampleValue:" + sampleValue); |
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
package com.nicequestion.donatas.adf; | |
import oracle.adf.view.rich.context.AdfFacesContext; | |
/** Base generic implementation of ADF flow scoped bean data control. | |
* | |
* Note: specific design and naming convention is applied: | |
* the type T must be defined as managed bean (name flowController, scope pageFlow) | |
* in a bounded task flow definition. | |
* |
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
package com.nicequestion.donatas.adf; | |
import com.nicequestion.donatas.controller.SampleFlowController; | |
/** Implementation of specific ADF flow scoped bean data control. | |
* | |
* (Used to "Right-Click->Create Data Control" in JDeveloper :) | |
* | |
* SampleFlowDataControl as parameterized type is used to | |
* provide type information for the ADF data control facility |
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
// Put the text as an input parameter value for feelings service | |
operation.getParamsMap().put("Text", tweet.getMessage()); | |
// Call feeling analyzer method binding | |
operation.execute(); | |
Object operationResult = operation.getResult(); | |
if (operationResult != null) { | |
// operationResult is an instance of anonymous inner class | |
// which (fortunatly) implements an Iterator interface | |
Iterator result = (Iterator)operationResult; |