Java Reference
In-Depth Information
}
public void setInputText3(HtmlInputText inputText3) {
this.inputText3 = inputText3;
}
public HtmlInputText getInputText3() {
return inputText3;
}
public void setOutputLabel4(HtmlOutputLabel outputLabel4) {
this.outputLabel4 = outputLabel4;
}
public HtmlOutputLabel getOutputLabel4() {
return outputLabel4;
}
public void setInputText4(HtmlInputText inputText4) {
this.inputText4 = inputText4;
}
public HtmlInputText getInputText4() {
return inputText4;
}
public void setCommandButton1(HtmlCommandButton commandButton1) {
this.commandButton1 = commandButton1;
}
public HtmlCommandButton getCommandButton1() {
return commandButton1;
}
public String commandButton1_action() {
// Add event code here...
try {
String id = (String) inputText1.getValue();
String journal = (String) inputText2.getValue();
String publisher = (String) inputText3.getValue();
String edition_date = (String) inputText4.getValue();
InitialContext context = new InitialContext();
EJB3SessionEJB beanRemote = (EJB3SessionEJB) context.lookup(
"EJB3RelationshipsJSF-Model-EJB3SessionEJB#model.
EJB3SessionEJB");
beanRemote.createEdition(id, journal, publisher, edition_date);
} catch (NamingException e) {
System.err.println(e.getMessage());
return "notcreated";
 
Search WWH ::




Custom Search