开发者

a4j:commandLink doesn't show the required message for required fields

开发者 https://www.devze.com 2023-03-01 13:36 出处:网络
I hav开发者_如何学Ce some required fields. When I try to submit the page with h:commandLink I get the required message (As defined by me).

I hav开发者_如何学Ce some required fields. When I try to submit the page with h:commandLink I get the required message (As defined by me). When I use a4j:commandLink to call a method, I don't get the message (Although the method is not called, which proves to me that the required-validation does work)

Doesn't Work:

<a4j:commandLink value="#{msg.Submit_Button}" styleClass="linkStyle" action="#{general.submit}"
            reRender="StatusPanelStatusText, SendingSMSMSG" />

Works (But no ajax, no good):

<h:commandLink value="#{msg.Submit_Button}" styleClass="linkStyle" action="#{general.submit}" />

What Gives? Thanks!

UPDATE Versions - JSF 1.2.7 with Richfaces 3.3.2 SR1

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号