[jira] Commented: (TRINIDAD-1139) partial submit (for ppr) does not work for content type xhtml (_submitPartialChange() does not submitForm() for xhtml)

2008-12-31 Thread Denis Bogdanas (JIRA)

[ 
https://issues.apache.org/jira/browse/TRINIDAD-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12660079#action_12660079
 ] 

Denis Bogdanas commented on TRINIDAD-1139:
--

I thing this problem is related to the bug:

I have a simple trinidad page, with no jsp:directive.page charset specified:

?xml version=1.0 encoding=UTF-8 ?
jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=2.1
xmlns:f=http://java.sun.com/jsf/core;
xmlns:h=http://java.sun.com/jsf/html;
xmlns:tr=http://myfaces.apache.org/trinidad;
  f:view
tr:document title=not working
  tr:form
h:commandButton value=h: Click me action=#{loginHandler.login}/
tr:commandButton text=tr: Click me action=#{loginHandler.login}/
  /tr:form
/tr:document
  /f:view
/jsp:root

Both buttons don't work. When I click them request is not sent to server.

Now, if I add:

jsp:directive.page contentType=text/html; charset=utf-8/

at the beginning of the page, both buttons work properly.
Environment: myfaces 1.2.5, trinidad 1.2.10, tomcat 6.0.18, windoze vista, 
firefox 3. 

 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
Assignee: Matthias Weßendorf
 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
  titletest/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.



[jira] Commented: (TRINIDAD-1139) partial submit (for ppr) does not work for content type xhtml (_submitPartialChange() does not submitForm() for xhtml)

2008-07-07 Thread burghard.w.v.britzke (JIRA)

[ 
https://issues.apache.org/jira/browse/TRINIDAD-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12610899#action_12610899
 ] 

burghard.w.v.britzke commented on TRINIDAD-1139:


yes you are right! it issue has deals with text/xml content (it is 
TRINIDAD-1142 that deals with jsp:text)

 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
  titletest/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.



[jira] Commented: (TRINIDAD-1139) partial submit (for ppr) does not work for content type xhtml (_submitPartialChange() does not submitForm() for xhtml)

2008-07-03 Thread JIRA

[ 
https://issues.apache.org/jira/browse/TRINIDAD-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12610163#action_12610163
 ] 

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

OK, now I got it.
the html snippet was more confusion than helpful :-)
The real testcase helped.
Looks like a problem with text/xml as contentType.
This (instead of jsp:text) fails as well:

jsp:directive.page contentType=text/xml;charset=utf-8/


 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
  titletest/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.



[jira] Commented: (TRINIDAD-1139) partial submit (for ppr) does not work for content type xhtml (_submitPartialChange() does not submitForm() for xhtml)

2008-07-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/TRINIDAD-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12610029#action_12610029
 ] 

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

how come that there is no name on form?
what is the actual content of the faces page ?
Like how did the source look like.
The HTML above is the reason, why there is undefined.
But I don't get why there is no name rendered on the form...

 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
   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
  titletest/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.



[jira] Commented: (TRINIDAD-1139) partial submit (for ppr) does not work for content type xhtml (_submitPartialChange() does not submitForm() for xhtml)

2008-07-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/TRINIDAD-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12610047#action_12610047
 ] 

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

to be clear.
document[form] = document[nameOfMyForm], like form name=nameOfMyForm.
document.forms[id]= document.forms[idOfMyForm], like form id=idOfMyForm.

I think the JSF 1.2 spec requires rendering id and name.



 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
   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
  titletest/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.



[jira] Commented: (TRINIDAD-1139) partial submit (for ppr) does not work for content type xhtml (_submitPartialChange() does not submitForm() for xhtml)

2008-07-02 Thread burghard.w.v.britzke (JIRA)

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

burghard.w.v.britzke commented on TRINIDAD-1139:


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
   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
  titletest/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.