java - JSF and f:ajax for hiding/showing div -
i thinking of making hidable/showable menu on web application. before this, used php , ajax extensively purpose. however, since html element id regenerated in jsf framework found out method no longer feasible @ least in scope. i have read f:ajax tag in jsf , tried implement it. apparently no luck me. looks easy still not find out did wrong. i have prepared prototype test f-ajax tag functionality no luck. here code ` <h:body> <h:outputlabel> <h:outputtext value="click a" /> <f:ajax event="click" render="texta"/> </h:outputlabel> <h:outputlabel> <h:outputtext value="click b" /> <f:ajax event="click" render="textb"/> </h:outputlabel> <h:outputlabel> <h:outputtext value="click c" /> <f:ajax event="click" render="textc"/> </h:outputlabel> ...