Calling Managed Bean Method From JavaScript [duplicate]
问题 This question already has an answer here : How to invoke a JSF managed bean on a HTML DOM event using native JavaScript? (1 answer) Closed last year . I have an application with a client-side image map with multiple sections defined. I need to call a method in the Managed Bean from the <area> onclick attribute. This doesn't work: <area id="ReviewPerson" shape="rect" coords="3, 21, 164, 37" href="#" onclick="#{personBean.method}" alt="Review Person" id="reviewPersonArea" title="Review Person"