mallikarjunreddy.m-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-25 04:25 UTC
unable to invoke Backing Bean method
Hi all, I am new to this group, I am using Prototype''s Ajax.Request o make ajax call but i was not able to invoke my backing bean method. any one help me please. My jsf page: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript" src="prototype.js"></script> <SCRIPT type="text/javascript"> function validateUsername(username) { // Use Prototype''s Ajax.Request new Ajax.Request("dynamic/loginBean/validateUsername.faces" ); } </SCRIPT> </head> <body> <f:view> <h:form> <h:inputText value="" onblur="validateUsername(this.value);"/> </h:form> </f:view> </body> </html> My faces Config file: <faces-config> <managed-bean> <managed-bean-name>loginBean</managed-bean-name> <managed-bean-class>com.xyz.jsf.LoginBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> </faces-config> Backing Bean: public class LoginBean { public void validateUsername() { System.out.println("inside valideteUsername"); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
mallikarjunreddy.m-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-25 04:26 UTC
unable to invoke Backing Bean method
Hi all, I am new to this group, I am using Prototype''s Ajax.Request o make ajax call but i was not able to invoke my backing bean method. any one help me please. My jsf page: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript" src="prototype.js"></script> <SCRIPT type="text/javascript"> function validateUsername(username) { // Use Prototype''s Ajax.Request new Ajax.Request("dynamic/loginBean/validateUsername.faces" ); } </SCRIPT> </head> <body> <f:view> <h:form> <h:inputText value="" onblur="validateUsername(this.value);"/> </h:form> </f:view> </body> </html> My faces Config file: <faces-config> <managed-bean> <managed-bean-name>loginBean</managed-bean-name> <managed-bean-class>com.xyz.jsf.LoginBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> </faces-config> Backing Bean: public class LoginBean { public void validateUsername() { System.out.println("inside valideteUsername"); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---