You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2007/09/20 09:38:31 UTC

[jira] Commented: (TRINIDAD-727) funny issue with form and defaultCommand (in IE)

    [ https://issues.apache.org/jira/browse/TRINIDAD-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529009 ] 

Matthias Weßendorf commented on TRINIDAD-727:
---------------------------------------------

reason is this

<script>

function changeValue(element)
{
 element.value = element.id;
}


</script>

<button id="foo" onclick="changeValue(this);">bar</button>

in FF, never the button-text is changed.

> funny issue with form and defaultCommand (in IE)
> ------------------------------------------------
>
>                 Key: TRINIDAD-727
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-727
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>            Reporter: Matthias Weßendorf
>            Assignee: Matthias Weßendorf
>
> I noticed this funny thing with form's defaultCommand and
> IE7 (true for IE 6 as well ??)
> here is a demo, that has a form, containing a defaultCommand
> http://www.irian.at/trinidad-demo/faces/components/form.jspx
> Do the following:
> -enter first value
> -enter second value AND! hit enter.
> => Notice that the button label changes to the ID of the button :-)
> (sure, FF it works as expected ;-))
> the source-code is:
> <tr:form defaultCommand="first" binding="#{editor.component}">
> ...
>  <tr:inputText label="First form, First Field:" shortDesc="Field 1" />
>  <tr:inputText label="First form, Second Field:" shortDesc="Field 2" />
>  <tr:commandButton id="first" text="First" />
> ...
> </tr:form>

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