[ 
https://issues.apache.org/jira/browse/TRINIDAD-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610057#action_12610057
 ] 

bubi edited comment on TRINIDAD-1139 at 7/2/08 3:18 PM:
------------------------------------------------------------------------

there is an id attribut and! a name attribute on the rendered form. this issue 
does not depend on the absence of either attribute. I produced it with a simple 
jsp which is to render xhtml (I attached it to this issue).


      was (Author: bubi):
    there is an id attribut and! a name attribute on the rendered form. this 
issue does not depend on the absense of either attribute. I produced it with a 
simple jsp which is to render xhtml (I attached it to this issue).

  
> partial submit (for ppr)  does not work for content type xhtml 
> (_submitPartialChange() does not submitForm() for xhtml)
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1139
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1139
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions:  1.2.8-core
>         Environment: Mac OS X 10.5.4, Glassfish, JSF1.2, Firefox 3.0, Safari, 
> 3.1.2
>            Reporter: burghard.w.v.britzke
>         Attachments: test.jspx
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> xhtml rendered pages does not submit forms via _submitPartialChange()
> I found the following code snippet in DebugCommon1_2_8.js in function 
> _submitPartialChange()
> 9176 // Get the actual form object
> 9177 if ((typeof form) == "string")
> 9178 form = document[form];
> 9179
> 9180 if (!form)
> 9181 return false;
> 9182
> the expression document[form] returns --> undefined for xhtml documents
> so this function exits always without submitting.
> my sample document 
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
>  <title>test</title>
> </head>
> <body onload="alert(document['formid']+' 
> '+document.getElementById('formid'))">
>  <form id="formid" action="test.html"></form>
> </body>
> </html>
> alerts the following message: "undefined [object HTMLFormElement]"
> there are other places where document[form] is used in DebugScript1_2_8.js

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

Reply via email to