Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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: 17421

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

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

An IDE is no substitute for an Intelligent Developer.
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.
I agree. Here's the link:
subject: a4j function versus javascript function
It's not a secret anymore!