[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [jboss-user] [JBoss Seam] - How to declare navigation from ajax
From:       Stateless Bean <do-not-reply () jboss ! com>
Date:       2007-09-30 11:11:54
Message-ID: 24705849.1191150714585.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]

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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic