You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Oliver Pfau (JIRA)" <de...@myfaces.apache.org> on 2007/03/19 16:53:32 UTC

[jira] Created: (MYFACES-1569) Error message when input text is disabled or readOnly

Error message when input text is disabled or readOnly
-----------------------------------------------------

                 Key: MYFACES-1569
                 URL: https://issues.apache.org/jira/browse/MYFACES-1569
             Project: MyFaces Core
          Issue Type: Improvement
          Components: General
            Reporter: Oliver Pfau
            Priority: Minor


Submit of a from with input text is disabled == true leads to the following message:
"WARNING: There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only . Component : <...inputText>"

The warning does not appear when readOnly == true. Please remove the part "or read-only" from the message.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-1569) Error message when input text is disabled or readOnly

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485238 ] 

Mike Kienenberger commented on MYFACES-1569:
--------------------------------------------

Considering this rewrite:

        = "There should always be a submitted value for an input if it is rendered,"
       + " its form is submitted, and it was not originally rendered
disabled or read-only.";
       + "  You cannot submit a form after disabling an input element via javascript."
       + "  Consider setting read-only to true instead"
   + " or resetting the disabled value back to false prior to form
submission.";

Also changing InputHtmlRenderer and HtmlCalendarRenderer to pull error from public static constant in HtmlRendererUtils.

> Error message when input text is disabled or readOnly
> -----------------------------------------------------
>
>                 Key: MYFACES-1569
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1569
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>            Reporter: Oliver Pfau
>            Priority: Minor
>
> Submit of a from with input text is disabled == true leads to the following message:
> "WARNING: There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only . Component : <...inputText>"
> The warning does not appear when readOnly == true. Please remove the part "or read-only" from the message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-1569) Error message when input text is disabled or readOnly

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482131 ] 

Mike Kienenberger commented on MYFACES-1569:
--------------------------------------------

I would go a step further and change the warning to recommend the use of read-only as a possible solution.


> Error message when input text is disabled or readOnly
> -----------------------------------------------------
>
>                 Key: MYFACES-1569
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1569
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>            Reporter: Oliver Pfau
>            Priority: Minor
>
> Submit of a from with input text is disabled == true leads to the following message:
> "WARNING: There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only . Component : <...inputText>"
> The warning does not appear when readOnly == true. Please remove the part "or read-only" from the message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-1569) Error message when input text is disabled or readOnly

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Kienenberger resolved MYFACES-1569.
----------------------------------------

       Resolution: Fixed
    Fix Version/s:  1.1.6-SNAPSHOT
         Assignee: Mike Kienenberger

Fixed.

> Error message when input text is disabled or readOnly
> -----------------------------------------------------
>
>                 Key: MYFACES-1569
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1569
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>            Reporter: Oliver Pfau
>         Assigned To: Mike Kienenberger
>            Priority: Minor
>             Fix For:  1.1.6-SNAPSHOT
>
>
> Submit of a from with input text is disabled == true leads to the following message:
> "WARNING: There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only . Component : <...inputText>"
> The warning does not appear when readOnly == true. Please remove the part "or read-only" from the message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-1569) Error message when input text is disabled or readOnly

Posted by "Gurminderpal (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909753#action_12909753 ] 

Gurminderpal commented on MYFACES-1569:
---------------------------------------

<h:inputText id="name"
                         readonly="#{!webNewBean.genericTypeSelected}"
                         rendered="#{webNewBean.genericTypeSelected}"
                         styleClass="input_field"
                         value="#{webNewBundleBean.name}"/>

As you can see i need readonly or disabled attribute to be opposite of rendered attribute. and still don't want to see the above  warning mentioned. 
Even if i use only rendered attribute then too i see the above warning.

Please help me how to get rid of this warning.

Thank you. 

> Error message when input text is disabled or readOnly
> -----------------------------------------------------
>
>                 Key: MYFACES-1569
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1569
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>            Reporter: Oliver Pfau
>            Assignee: Mike Kienenberger
>            Priority: Minor
>             Fix For: 1.1.6
>
>
> Submit of a from with input text is disabled == true leads to the following message:
> "WARNING: There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only . Component : <...inputText>"
> The warning does not appear when readOnly == true. Please remove the part "or read-only" from the message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.