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
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
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
<!-- 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
package com.nicequestion.donatas.chat.model; | |
import java.beans.PropertyChangeListener; | |
public interface ChatListener extends PropertyChangeListener { | |
public void setUsername(String username); | |
public String getUsername(); | |
public boolean isAlive(); | |
public void setAlive(boolean alive); | |
} |
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.chat.model; | |
import java.util.List; | |
public interface Chat { | |
public void login(ChatListener listener); | |
public void logout(ChatListener listener); | |
public void addMessage(String message); | |
public List<String> getMessages(); | |
public List<String> getUsers(); |
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
/** | |
* Chat listener implemented as view scoped JSF bean for the | |
* sample ADF active Chat. Shows a usage of active data service | |
* functionality to push the updates to the UI in Oracle ADF. | |
* | |
* @author Donatas Valys | |
* | |
*/ | |
@ManagedBean | |
@ViewScoped |
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
/** Chat implemented as application scoped JSF bean for the | |
* sample ADF active Chat. Shows a usage of active data service | |
* functionality to push the updates to the UI in Oracle ADF. | |
*/ | |
@ManagedBean | |
@ApplicationScoped | |
public class ChatBean implements Chat { | |
private List<String> messages = Collections.synchronizedList(new ArrayList<String>()); | |
private List<String> users = Collections.synchronizedList(new ArrayList<String>()); |
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; | |
import javax.faces.bean.ManagedBean; | |
import javax.faces.bean.NoneScoped; | |
@ManagedBean(name = "utilityFlowReference") | |
@NoneScoped | |
public class UtilityTaskFlowReference { | |
public static final String FLOW_ID |
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
<af:inputText label="Utility Task Flow Input Parameter" id="it1" | |
value="#{pageFlowScope.inputParameter}"/> | |
<af:commandButton text="back" id="cb1" action="back"> | |
<af:setPropertyListener from="#{pageFlowScope.inputParameter}" | |
to="#{pageFlowScope.returnValue}" | |
type="action"/> | |
</af:commandButton> | |
<af:commandButton text="next" id="cb2" action="next"> | |
<af:setPropertyListener from="#{pageFlowScope.inputParameter}" | |
to="#{pageFlowScope.returnValue}" |