[
https://issues.apache.org/jira/browse/TRINIDAD-992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584564#action_12584564
]
Paul Mander commented on TRINIDAD-992:
--------------------------------------
I've got a solution to this problem now. It appears there is a defect in
Core.js - _function _validateInline(form, source, validators).
In this function, the code attempts to clear the old message by setting the
innerHTML to "". This works in Firefox but takes up space in IE.
if (msgElem)
msgElem.innerHTML = "";
A better check would be
if (msgElem && messageElem.innerHTML !="")
msgElem.innerHTML = "";
Or even better, use some IE save way of removing all children from the msgElem.
Can someone commit a fix for this please?
> Validator as child of tr:inputText causes "label jumping" when client side
> validation enabled
> ---------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-992
> URL: https://issues.apache.org/jira/browse/TRINIDAD-992
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.6-core
> Environment: IE7
> Reporter: Paul Mander
> Attachments: pre submit.jpg, submit.jpg
>
>
> Using panelFormLayout, an inputText and a validator causes labels to jump if
> client side validation is enabled.
> Consider the following markup
> <ui:composition>
> <tr:form>
> <tr:panelFormLayout>
> <tr:inputText id="cardNumberInputText" label="Card
> Number"
> value="#{pageBean.cardNumber}">
> <tr:validateRegExp pattern="^[0-9]+" />
> </tr:inputText>
> </tr:panelFormLayout>
> <tr:commandButton text="Next" action="#{pageBean.next}"/>
> </tr:form>
> </ui:composition>
> If the minimal skin is used or client validation is disabled (amounts to the
> same thing), then labels do not jump when the page is submitted.
> See attached screen shots
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.