j_idt56_3Aattrid002_3Av is not defined: rich:validator
forn Mar 10, 2011 2:59 AMHello to All.
When i have the dynamic generation of h:input with rich:validator there is the next JS error: j_idt56_3Aattrid002_3Av is not defined. So as result no JS function generated for dynamic field.
Can any body explain how fix this?
<h:form>
<!-- Форма редактирования -->
<rich:popupPanel id="essenceEditPanel" modal="true" resizeable="true"
onmaskclick="#{rich:component('essenceEditPanel')}.hide()"
width="800" height="400" domElementAttachment="parent">
<f:facet name="header">
<h:outputText
value="Редактирование: #{uiManager.tableTreeManager.editedEssence.title}" />
</f:facet>
<f:facet name="controls">
<a4j:commandLink value="Закрыть"
onclick="#{rich:component('essenceEditPanel')}.hide(); return false;" />
</f:facet>
<rich:tabPanel switchType="client" id="groupTabs"
style="height:500px; width:700px;"
rendered="#{not empty uiManager.tableTreeManager.editedEssence}">
<c:forEach items="#{uiManager.tableTreeManager.groupForDisplay}"
var="group" varStatus="groupStatus">
<rich:tab header="#{group.name}">
<c:forEach items="#{group.attributes}" var="groupAttribute"
varStatus="groupAttributeStatus">
<!-- Строка -->
<!-- a4j:region
rendered="#{(groupAttribute.type=='string') and (groupAttribute.readonly)}">
<h:outputText value="#{groupAttribute.name}: "
style="font-weight:bold;" />
<h:outputText
value="#{uiManager.tableTreeManager.editedEssence.dataAsMap[groupAttribute.code]}" />
</a4j:region>
<a4j:region
rendered="#{(groupAttribute.type=='string') and (!groupAttribute.readonly)}">
<h:outputText value="#{groupAttribute.name}:"
style="font-weight:bold;" />
<h:inputText id="attrid#{groupStatus.index}#{groupAttributeStatus.index}1"
value="#{uiManager.tableTreeManager.editedEssence.dataAsMap[groupAttribute.code]}"
required="true" requiredMessage="asdfasdfafads"/>
<rich:message for="attrid#{groupStatus.index}#{groupAttributeStatus.index}1" />
</a4j:region-->
<!-- Число -->
<!-- a4j:region
rendered="#{(groupAttribute.type=='integer') and (groupAttribute.readonly)}">
<h:outputText value="#{groupAttribute.name}: "
style="font-weight:bold;" />
<h:outputText
value="#{uiManager.tableTreeManager.editedEssence.dataAsMap[groupAttribute.code]}" />
<h:panelGroup />
</a4j:region>
<a4j:region
rendered="#{(groupAttribute.type=='integer') and (!groupAttribute.readonly)}">
<h:outputText value="#{groupAttribute.name}:"
style="font-weight:bold;" />
<h:inputText id="attrid#{groupStatus.index}#{groupAttributeStatus.index}2"
value="#{uiManager.tableTreeManager.editedEssence.dataAsMap[groupAttribute.code]}"
required="true" requiredMessage="asdfasdfafads">
<f:validateLongRange />
</h:inputText>
<rich:message id="#{groupAttribute.code}Message2"
for="attrid#{groupStatus.index}#{groupAttributeStatus.index}2" />
</a4j:region-->
<h:outputText value="#{groupAttribute.name}:"
style="font-weight:bold;" />
<h:inputText
id="attrid#{groupStatus.index}#{groupAttributeStatus.index}2"
value="#{uiManager.tableTreeManager.editedEssence.dataAsMap[groupAttribute.code]}"
required="true" requiredMessage="asdfasdfafads"
validatorMessage="Должно быть целочисленное число"
converterMessage="Должно быть целочисленное число">
<f:validateRequired />
<rich:validator />
</h:inputText>
<rich:message
for="attrid#{groupStatus.index}#{groupAttributeStatus.index}2" />
</c:forEach>
</rich:tab>
</c:forEach>
</rich:tabPanel>
<a4j:commandButton value="Сохранить"
action="#{uiManager.tableTreeManager.storeEssence}"
render="dataTable" execute="essenceEditPanel"
oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('essenceEditPanel')}.hide();}" />
<a4j:commandButton value="Отмена" execute="@this"
onclick="#{rich:component('essenceEditPanel')}.hide(); return false;" />
</rich:popupPanel>
</h:form>
