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
public String someViewAction() { | |
System.out.println("flashExampleBean.someViewAction called"); | |
Flash fl = FacesContext.getCurrentInstance().getExternalContext().getFlash(); | |
Set flSet = fl.keySet(); | |
System.out.println("FL set size = " + flSet.size() | |
+ ", i1 value=" + fl.get("i1") | |
+ ", i2 value=" + fl.get("i2") | |
+ ", i3 value=" + fl.get("i3")); | |
return "index_1"; |
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
<h:outputText value="#{flash['i1']}"></h:outputText> | |
<h:outputText value="#{flash.keep.i2}"></h:outputText> |
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
<c:set target="#{flash}" property="i2" value="Incept"></c:set> |
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
<h:outputText style="color: blue; font-weight: bold" value="flash.i1= "/> | |
<h:inputText id="i1" label="Input1: " value="#{flash.i1}"></h:inputText> |
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
@Named | |
@RequestScoped | |
public class IndexBean implements Serializable { | |
@Inject | |
ImplementerIntf obj; |
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
<beans xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
<alternatives> | |
<class>com.incept.cdialternative.ImplementerC</class> | |
</alternatives> | |
</beans> |
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
@Alternative | |
public class ImplementerA implements ImplementerIntf{ | |
@Override | |
public String showImplementer() { | |
return this.getClass().getName(); | |
} | |
} |
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
The contents of keytab file can be verified using either Unix/linux ktutil or klist commands or java ktab utility. | |
(1) | |
-bash-3.2$ ktutil | |
ktutil: rkt krba01.keytab | |
ktutil: list | |
slot KVNO Principal | |
---- ---- ------------------------------------------------------------------------------------------------ |
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
com.sun.security.jgss.krb5.initiate { | |
com.sun.security.auth.module.Krb5LoginModule required | |
principal="[email protected]" doNotPrompt=true | |
useKeyTab=true keyTab=krba01.keytab | |
storeKey=true debug=true; | |
}; | |
com.sun.security.jgss.accept { | |
com.sun.security.auth.module.Krb5LoginModule required | |
principal="[email protected]" doNotPrompt=true |
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
[libdefaults] | |
default_realm = INCEPT.LAB | |
default_tkt_enctypes = rc4-hmac | |
default_tgs_enctypes = rc4-hmac | |
ticket_lifetime = 600 | |
# to support multiple enc types, provide a space separated list -- | |
# default_tkt_enctypes = aes128-cts rc4-hmac | |
[realms] |
NewerOlder