Outcommented Facelets code still invokes EL expressions like #{bean.action()} and causes javax.el.PropertyNotFoundException on #{bean.action}
问题 I\'ve the following code snippet in my Facelet: <h:commandLink id=\"cmdbtn\"> <f:ajax event=\"click\" execute=\"@form\" listener=\"#{screenShotBean.takeScreenshot}\" /> </h:commandLink> It works fine, but when I outcomment it like this, <!-- <h:commandLink id=\"cmdbtn\"> --> <!-- <f:ajax event=\"click\" execute=\"@form\" --> <!-- listener=\"#{screenShotBean.takeScreenshot}\" /> --> <!-- </h:commandLink> --> then it throws the following exception: javax.el.PropertyNotFoundException: Property \