[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4648) s:defaultAction blocks new lines in <textArea>

Nicholas Oxhøj (JIRA) jira-events at lists.jboss.org
Fri Mar 4 03:43:46 EST 2011


    [ https://issues.jboss.org/browse/JBSEAM-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585958#comment-12585958 ] 

Nicholas Oxhøj commented on JBSEAM-4648:
----------------------------------------

The wrapping suggested in the original post, is for fixing the issue, right? (I take it that "s:convertEntity" should have said "s:defaultAction")

I don't think there is currently any workaround for using <s:defaultAaction> on forms with textarea's, so I can't understand, that this issue seems to go unnoticed - and why more people apparently don't have a problem with this: Googling for s:defaultaction and textarea, basically have this issue report as it's only hit.

> s:defaultAction blocks new lines in <textArea>
> ----------------------------------------------
>
>                 Key: JBSEAM-4648
>                 URL: https://issues.jboss.org/browse/JBSEAM-4648
>             Project: Seam
>          Issue Type: Bug
>          Components: JSF Controls
>    Affects Versions: 2.2.1.CR1
>            Reporter: Adrian Mitev
>
> s:defaultAction shouldn't work if the enter button is presses inside textarea element. To fix the issue wrap the javascript that s:convertEntity generates inside this code:
> var evt = event.IE ? event.srcElement : event.target; if (evt.tagName.toLowerCase() != 'textarea') { <original javascript here> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the seam-issues mailing list