Ok, heres my issue: I have a JSF application and some JSP files. Let's
say i have main.jsp which has a view and includes sub.jsp. This works
fine. sub.jsp contains a subview. As a result all the ID's of the form
elements in sub.jsp follow the form of 'subview:component'. Now suppose
I'm using some ajax and want to fetch the jsp page sub.jsp and include
it in a DIV somewhere. Now the ID's all are of the form 'component'. I
don't know a way around this, and having to check for 2 different sets
of IDs in my interactive javascript is a pain. Is there any way to get
consistant IDs?

I've tried: Removing the subview - (then the AJAX call will fail because
no view is found)

and

h:form prependid=false - this only removes the form id, not the subview
ids

Reply via email to