This content has been marked as final.
Show 2 replies
-
1. Re: rich:findComponent and required not working
rafaelk Jun 10, 2010 1:33 PM (in response to hwoarang)Hello Flávio!
Can you try this?
{code:xml}
<r:columnGroup>
<a4j:support event="onkeyup" reRender="field2"/>
<r:column styleClass="noBorders">
<h:inputText
id="field1"
size="7"
disabled="#{MyBean.isExclusao}"
value="#{MyBean.object.field1}">
</h:inputText></r:column>
<r:column styleClass="noBorders">
<h:inputText
id="field2"
size="2"
required="#{not empty r:findComponent('field1').value}"
requiredMessage="Informe o ramal"
disabled="#{MyBean.isExclusao}"
value="#{MyBean.object.field2}" />
</r:column>
</r:columnGroup>{code}
A post preview would be very nice!
-
2. Re: rich:findComponent and required not working
hwoarang Jun 10, 2010 4:49 PM (in response to rafaelk)Rafael, obrigado!
Resolvido.