Is it possible to call bean methods & directly pass parameters to them from the view instead of requiring to first set the bean properties and then call methods without argu
You can call ManagedBean methods with arguments like this.
The corresponding ManagedBean would be like this.
@ManagedBean
@RequestScoped
public class StateBean
{
@EJB
private RemoteInterface obj=null;
public void delete(String stateID)
{
//Code stuff here.
}
}
You can also directly set the value of ManagedBean properties using
like this.