You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Adam Winer (JIRA)" <de...@myfaces.apache.org> on 2007/09/19 00:27:43 UTC

[jira] Resolved: (TRINIDAD-721) h:commandButton "immediate" attribute is broken

     [ https://issues.apache.org/jira/browse/TRINIDAD-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer resolved TRINIDAD-721.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3-core

Fixed for 1.0.3 (and 1.2.3 when we re-branch).

> h:commandButton "immediate" attribute is broken
> -----------------------------------------------
>
>                 Key: TRINIDAD-721
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-721
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.2-core, 1.2.2-core
>            Reporter: Mike Hanafey
>            Assignee: Adam Winer
>             Fix For: 1.0.3-core
>
>
> The doc file spec-diff.html states: "It is important to emphasize that there is no requirement whatsoever that you convert from standard JSF tags to Apache Trinidad tags. Standard JSF tags and Apache Trinidad tags can be mixed freely within a single page."
> However, if you are converting a page with standard JSF tags, and happen to leave behind a h:commandButton tag that has "immediate='true'" you end up with a button that functions, but does not conform to the dictates of the immediate attribute. I don't know if this is a documentation problem, or a bug in the code.
> In the example below (from the trinidad-blank application), "button3" results in a validation error, but "button2" works as expected:
> <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:h="http://java.sun.com/jsf/html"
> 	xmlns:tr="http://myfaces.apache.org/trinidad">
>     <jsp:directive.page contentType="text/html;charset=utf-8"/>
>     <f:view>
> 	<tr:document title="Apache Trinidad Blank Demo">
> 	    <tr:form>
> 		<tr:panelPage>
> 		    <tr:inputText label="Your name" id="input1" value="#{helloWorldBacking.name}" required="true"/>
> 		    <tr:commandButton id="button1" text="press me" action="#{helloWorldBacking.send}"/>
> 		    <tr:commandButton id="button2" immediate="true" text="clear" action="#{helloWorldBacking.clear}"/>
> 		    <h:commandButton id="button3" immediate="true" value="clear" action="#{helloWorldBacking.clear}"/>
> 		</tr:panelPage>
> 	    </tr:form>
> 	</tr:document>
>     </f:view>
> </jsp:root>

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