hi,
i have a page like this
<a4j:include viewId="page1.xhtml" rendered="false"/> <a4j:include viewId="page1.xhtml" rendered="true" /> <img onclick="$('#{rich:clientID("sth")').toggle()" /> in the page1.xhtml, there is table with id="sth"
I cant understand why rich:clientId returns the table in the first include even it is not rendered? someone can help me to figure out this?
thanks in advance
liu
Hi Liu,
This function searches for the whole view, not only its rendered or non-rendered parts. If there are several components with this id in the view, you should clarify the search by using longer expression, e.g. #{rich:clientid("form:component")}