File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes a4j function versus javascript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "a4j function versus javascript function" Watch "a4j function versus javascript function" New topic

a4j function versus javascript function

Robert Darling
Ranch Hand

Joined: Jun 21, 2008
Posts: 100


Just wondering that if we call a a4j function from a java script function, how does the browser no if this is a plain java script function or a arj function. And secondly what if the names of 2 functions collide like a a4j function has the name of a Java Script function?

Kind Regards,
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16914

The browser doesn't know. The browser doesn't care.

I'm not sure what you mean by "a4j function", though.

Customer surveys are for companies who didn't pay proper attention to begin with.
Max Katz
Ranch Hand

Joined: Aug 03, 2009
Posts: 72
When you use a4j:jsFucntion, a standard JavaScript function is rendered to the page. So, it's just a plain JavaScript function.
It is sorta covered in the JavaRanch Style Guide.
subject: a4j function versus javascript function
jQuery in Action, 3rd edition