quinta-feira, 22 de agosto de 2013
Make client action from managed bean.
To add some message to client use addMessage from client session:
FacesContext.getCurrentInstance().addMessage(null, message);
The RequestContext can make some calls to Client side from bean.
RequestContext context = RequestContext.getCurrentInstance();
To execute some Javascript:
context.execute("Javascript_statement");
Example open new page;
String url;
context.execute("window.open('" + url + "', '_blank', 'location=no, status=no, menubar=no, toolbar=no, width=800, height=600')");
The RequestContext can update the client UI:
context.update("formSelectedElementOnMap");
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário