Andrew Robinson wrote:
Isn't that intentionally done when using JSP w/ JSF when there are jsp includes?
I think you're correct. I just tried doing some includes with 1.2.2 and if there are no other components with the same ID the ID will render as expected. If I tried including the same JSP twice in the same page, the second instance of the components were rendered with "j_id" suffixes. This makes sense as element IDs have to be unique and JSP includes introduce a level of uncertainty about uniqueness.

Still, I have to wonder what's going on in this situation (and the one reported in MYFACES-1807) since it doesn't seem as though multiple components with the same IDs are being included in the same page. Vitaly, could you perhaps come up with a minimal set of pages that reproduces this scenario (i.e., no Richfaces stuff, please)? I could try and see if I can figure out what's going on.

Thanks,


Curtiss Howard

On Feb 19, 2008 2:17 AM, Vitaly Venediktov
<[EMAIL PROTECTED]> wrote:

Hi,

My jsp looks like

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j"; prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich"; prefix="rich"%>


<h:form id="taskListData">
        <h:panelGrid>
                <rich:panel>
                        <f:facet name="header">
                                <h:outputText value="#{...}" />
                        </f:facet>
                        <rich:dataTable id="taskListData_table"
var="taskList"
                                columnClasses="align_hcenter"
value="#{...}">
---skip---

                        </rich:dataTable>
                </rich:panel>
        </h:panelGrid>
</h:form>

Rendered ID for dataTable in html looks like
"taskListDataj_id_1:taskListData_tablej_id_1". It is confusing since I
expected "taskListData:taskListData_table" as id. It was as expected just
before update to new faces revision. Do you know the cause of this behavior?

Best Regards
Vitaly

Reply via email to