[jboss-user] [JBoss Seam] - How to declare navigation from ajax method with args?
Stateless Bean
do-not-reply at jboss.com
Sun Sep 30 07:11:54 EDT 2007
Hi,
Can anyone help me to declare navigation in pages.xml if I got ajax method with arguments?
Here is my method
| <a href="#" onclick="javascript:sendEmail('1');">
| public String sendEmail(String trajectory) {
| try {
|
| }
| catch (Exception e) {
| if (currentPerson != null) {
| log.error("User: (" + currentPerson.getUsername() +
| ") ->galaxyAction - email(String trajectory): " + e.getMessage());
| } else {
| log.error("User: (null) ->galaxyAction - email(String trajectory): " + e.getMessage());
| }
| }
| }
|
and if my method has argument "trajectory"
| public String sendEmail(String trajectory)
|
how shoud I declare pages.xml for change page to example /pages/email.xhtml?
| <navigation from-action="#{galaxyAction.sendEmail}">
| <redirect view-id="/pages/email.xhtml"/>
| </navigation>
| ???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090021#4090021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090021
More information about the jboss-user
mailing list