나는 아주 이상한 문제가있다. 내가 예를 들어 원래의 구성 요소와 직접 작업하고있는 경우 데이터 테이블 내부데이터 테이블에서 사용자 지정 구성 요소를 사용하는 경우 유효성 검사가 실패하는 이유는 무엇입니까?
필요한 검증 위대한 작품 : 나는 양식을 POST 버튼을 누를 때
<ice:inputText id="inputTextt" field="#{bean[fieldValue]}" required="true"/>
<ice:message for="inputTextt"></ice:message>
필요한 메시지를 올릴 것이다. 내가 좋아하는 내 구성 요소를 호출하고있는 데이터 테이블에서, 이제
<ice:inputText
id="#{id}"
value="#{bean[field]}"
rendered="#{rendered and empty validatorBean}"
styleClass="#{styleClass} #{not required ? 'graNotRequired':''}"
style="width: #{width};height:#{height}"
partialSubmit="#{partialSubmit}"
disabled="#{disabled}"
required="#{required}">
</ice:inputText>
<ice:message
styleClass="graValidationMessage graNotRequired"
for="#{id}" />
:
글쎄, 난 사용자 지정 구성 요소를 GRA이 : 나는 조금 더 복잡 같은 물건하지만 어디다을 inputTextValidated
<gra:inputTextValidated
id="inputText"
bean="#{bean}"
field="#{fieldValue}"
renderLabel="false"
required="true"
disabled="#{disabled}"
width="90%"
height="#{secondTabComponentsHeight}"
>
</gra:inputTextValidated>
이제 유효성 검사 메시지가 더 이상 발생하지 않습니다. gra : inputTextValidated 구성 요소는 잘 작동하지만 값은 렌더링되므로 유효성 검사에만 문제가 있습니다.
나는 이것에 대해 약 3 시간을 보냈습니다. id :에 대한 것입니다. 어떻게 든 ice : 메시지의 특성이 사용자 지정 구성 요소의 입력 텍스트를 제대로 볼 수 없습니다. 거기, 스팸으로 렌더링).
의견이 있으십니까?