You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org> on 2007/09/07 18:49:30 UTC

[jira] Created: (TRINIDAD-697) Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update

Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update
---------------------------------------------------------------------------------------------------------------------

                 Key: TRINIDAD-697
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-697
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 1.0.2-core
            Reporter: Andrew Robinson


There is no built-in method in Trindad to have components re-render to show validation errors and conversion errors during a PPR request with client-side validation disabled.

As a result, component messages are not shown to the user on validation and conversion errors.

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


[jira] Commented: (TRINIDAD-697) Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597532#action_12597532 ] 

Blake Sullivan commented on TRINIDAD-697:
-----------------------------------------

Adam's proposal would work in all cases and eliminate any need on the programmer's part to decorate his page with extra components

> Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-697
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-697
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core
>            Reporter: Andrew Robinson
>
> There is no built-in method in Trindad to have components re-render to show validation errors and conversion errors during a PPR request with client-side validation disabled.
> As a result, component messages are not shown to the user on validation and conversion errors.

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


[jira] Commented: (TRINIDAD-697) Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update

Posted by "Stefan Meyer (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594495#action_12594495 ] 

Stefan Meyer commented on TRINIDAD-697:
---------------------------------------

This is a serious shortcoming. 
1. client side validation is not sufficient (see seam validation).
2. display of messages cannot be sufficiently done by using h:message or the built-in messages in the components. We need to be able to use facelets decoration to create messages. Thus we need full partial page rendering support upon validation failure. 

Ajax4Jsf has it - Trinidad should too.


> Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-697
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-697
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core
>            Reporter: Andrew Robinson
>
> There is no built-in method in Trindad to have components re-render to show validation errors and conversion errors during a PPR request with client-side validation disabled.
> As a result, component messages are not shown to the user on validation and conversion errors.

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


[jira] Commented: (TRINIDAD-697) Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597529#action_12597529 ] 

Blake Sullivan commented on TRINIDAD-697:
-----------------------------------------

>From Adam Winer's e-mail on this subject to the mailing list Sept. 3, 2007:

This all seems like enormous overkill *just* to get messages
sent down.  We have Javascript that can insert messages
on the client.  All we need to do is lean slightly on that code
to reuse it for inserting server-side messages, and this'll work fine
without any architectural changes at all.

-- Adam 



> Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-697
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-697
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core
>            Reporter: Andrew Robinson
>
> There is no built-in method in Trindad to have components re-render to show validation errors and conversion errors during a PPR request with client-side validation disabled.
> As a result, component messages are not shown to the user on validation and conversion errors.

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


[jira] Commented: (TRINIDAD-697) Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597538#action_12597538 ] 

Andrew Robinson commented on TRINIDAD-697:
------------------------------------------

@Blake - That would only be partial fix. This would not allow developers to re-render non-Trinidad components that show messages to the user. I am not saying Trinidad could benefit from that code, but I am saying that such a code change would not be enough to resolve this issue.

> Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-697
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-697
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core
>            Reporter: Andrew Robinson
>
> There is no built-in method in Trindad to have components re-render to show validation errors and conversion errors during a PPR request with client-side validation disabled.
> As a result, component messages are not shown to the user on validation and conversion errors.

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


[jira] Commented: (TRINIDAD-697) Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525781 ] 

Andrew Robinson commented on TRINIDAD-697:
------------------------------------------

Way to reproduce this bug:

1) Disable client-side validation

2) Execute this view:

<tr:panelLabelAndMessage label="TEST-697">
  <tr:inputText required="true" partialTriggers="testLink" value="#{test}" simple="true" />
</tr:panelLabelAndMessage>
<tr:commandLink partialSubmit="true" id="testLink" text="Submit" />

3) Load the view, do not enter a value in the text box.
4) Submit the form with the link
5) tr:panelLabelAndMessage is not correctly rendered - the message is not rendered


> Trinidad has no way to re-render components to show server validation errors or conversion errors on a partial update
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-697
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-697
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core
>            Reporter: Andrew Robinson
>
> There is no built-in method in Trindad to have components re-render to show validation errors and conversion errors during a PPR request with client-side validation disabled.
> As a result, component messages are not shown to the user on validation and conversion errors.

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