This file contains 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.validate; | |
import javax.el.ValueExpression; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.validator.BeanValidator; | |
import javax.faces.validator.FacesValidator; | |
import javax.faces.validator.ValidatorException; |
This file contains 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.commons; | |
import java.io.Serializable; | |
/** Provider interface for a consuming | |
* ADF Task Flow controller to provide an | |
* input parameter and receive a return value | |
* | |
* @param <T> task flow input parameter type | |
* @param <R> task flow return value type |
This file contains 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.commons; | |
/** Utility bean, decleared and configured in a task-flow-template.xml | |
* as a request scoped bean to suport a parameter passing | |
* between ADF task flows | |
* | |
* @param <T> task flow input parameter type | |
* @param <R> task flow return value type | |
* | |
* @author Donatas Valys |
This file contains 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
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:key name="gis" match="*" use="name()"/> | |
<xsl:template match="/"> | |
<table> | |
<xsl:apply-templates/> | |
<xsl:message>done reading</xsl:message> | |
<xsl:for-each select="//*[generate-id(.)=generate-id(key('gis',name(.))[1])]"> | |
<xsl:sort select="name()"/> | |
<tr> | |
<td><xsl:value-of select="name(.)"/></td> |
This file contains 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}" |
This file contains 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 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 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 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 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); | |
} |
NewerOlder