To illustrate, what exactly i mean i will use ejb-in-war wildfly quickstart example. Main artifacts there are greeter.xhtml facelet, named backing bean Greeter and stateful EJB GreeterEJB.
Facelet greeter.xhtml referes to the atribute name (3) and to the method setName (5) of the backing bean:
1: <h:panelGrid columns="3">
2: <h:outputLabel>Name:</h:outputLabel>
3: <h:inputText value="#{name}" />
4: <h:commandButton id="add" value="Greet"
5: action="#{greeter.setName(name)}">
6: </h:commandButton>
7: </h:panelGrid>
Backing bean Greeter includes the method setName which will be used as action parameter and where GreeterEJB will be called.
public void setName(String name) {
message = greeterEJB.sayHello(name);
}
As extension of this example i will add attribute rendered to the h:panelGrid and set it to false. As consequence all nested ui elements won't be rendered in the HTML-Tree on the page.
I have the question, if it still possible to access the method setName of the backing bean and the method sayHello of the EJB, e.g. by manipulating the http call or in any other way?