You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Grigoras Cristinel (JIRA)" <de...@myfaces.apache.org> on 2006/06/15 20:48:53 UTC
[jira] Created: (TOMAHAWK-497) Java script rendering inside
f:subview and s:subForm
Java script rendering inside f:subview and s:subForm
----------------------------------------------------
Key: TOMAHAWK-497
URL: http://issues.apache.org/jira/browse/TOMAHAWK-497
Project: MyFaces Tomahawk
Type: Bug
Versions: 1.1.4-SNAPSHOT
Environment: Myfaces 1.1.4 snapshot , tomcat 5.5 jboss 4.0.4.GA
Reporter: Grigoras Cristinel
When i use subform i get a command link like next.
<a href="#" onclick="clear_formPagina_3Aheader_3AheaderSubform();
document.forms['formPagina:header:headerSubform'].elements['autoScroll'].value=getScrolling();
document.forms['formPagina:header:headerSubform'].elements['formPagina:header:headerSubform:_link_hidden_'].value='formPagina:header:headerSubform:linkLogoutHeader';
if(document.forms['formPagina:header:headerSubform'].onsubmit){var result=document.forms['formPagina:header:headerSubform'].onsubmit();
if( (typeof result == 'undefined') || result ) {document.forms['formPagina:header:headerSubform'].submit();}}
else{document.forms['formPagina:header:headerSubform'].submit();}
return false;"
id="formPagina:header:headerSubform:linkLogoutHeader" class="header_dreapta_logout"></a>
Because of java script error the link is not submited.
Error: clear_formPagina_3Ameniu_3AmeniuSubform is not defined
Source File: http://192.168.2.11:8080/comercial/faces/sec/index.jsp
Line: 1
I have tried today with the last sources from subversion and i get the same error.
The clear method is not rendered anymore.
I have attached a small example.
Cristi.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (TOMAHAWK-497) Java script rendering inside
f:subview and s:subForm
Posted by "Grigoras Cristinel (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-497?page=comments#action_12417159 ]
Grigoras Cristinel commented on TOMAHAWK-497:
---------------------------------------------
I's Ok.
Thanks,
Cristi
> Java script rendering inside f:subview and s:subForm
> ----------------------------------------------------
>
> Key: TOMAHAWK-497
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-497
> Project: MyFaces Tomahawk
> Type: Bug
> Versions: 1.1.4-SNAPSHOT
> Environment: Myfaces 1.1.4 snapshot , tomcat 5.5 jboss 4.0.4.GA
> Reporter: Grigoras Cristinel
> Assignee: Catalin Kormos
> Fix For: 1.1.4-SNAPSHOT
> Attachments: indexdebug2.jsp
>
> When i use subform i get a command link like next.
> <a href="#" onclick="clear_formPagina_3Aheader_3AheaderSubform();
> document.forms['formPagina:header:headerSubform'].elements['autoScroll'].value=getScrolling();
> document.forms['formPagina:header:headerSubform'].elements['formPagina:header:headerSubform:_link_hidden_'].value='formPagina:header:headerSubform:linkLogoutHeader';
> if(document.forms['formPagina:header:headerSubform'].onsubmit){var result=document.forms['formPagina:header:headerSubform'].onsubmit();
> if( (typeof result == 'undefined') || result ) {document.forms['formPagina:header:headerSubform'].submit();}}
> else{document.forms['formPagina:header:headerSubform'].submit();}
> return false;"
> id="formPagina:header:headerSubform:linkLogoutHeader" class="header_dreapta_logout"></a>
> Because of java script error the link is not submited.
> Error: clear_formPagina_3Ameniu_3AmeniuSubform is not defined
> Source File: http://192.168.2.11:8080/comercial/faces/sec/index.jsp
> Line: 1
> I have tried today with the last sources from subversion and i get the same error.
> The clear method is not rendered anymore.
> I have attached a small example.
> Cristi.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Reopened: (TOMAHAWK-497) Java script rendering inside
f:subview and s:subForm
Posted by "Grigoras Cristinel (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-497?page=all ]
Grigoras Cristinel reopened TOMAHAWK-497:
-----------------------------------------
Thanks Catalin,
Now i have this warning...
11:20:16,891 WARN [javax.faces.component.UIComponentBase] No Renderer found for component {Component-Path : [Class: javax.faces.component.UIViewRoot,
ViewId: /sec/index.jsp][Class: com.exadel.htmLib.components.UIHtml,Id: _idJsp0][Class: com.exadel.htmLib.components.UIBody,Id: _idJsp5][Class: javax.f
aces.component.html.HtmlForm,Id: formPagina][Class: javax.faces.component.UINamingContainer,Id: documente][Class: org.apache.myfaces.custom.subform.Su
bForm,Id: documenteSubform]} (component-family=org.apache.myfaces.SubForm, renderer-type=org.apache.myfaces.SubForm)
11:20:16,891 WARN [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl] Unsupported component-family/renderer-type: org.apache.myfaces.SubForm/org.ap
ache.myfaces.SubForm
Cristi
> Java script rendering inside f:subview and s:subForm
> ----------------------------------------------------
>
> Key: TOMAHAWK-497
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-497
> Project: MyFaces Tomahawk
> Type: Bug
> Versions: 1.1.4-SNAPSHOT
> Environment: Myfaces 1.1.4 snapshot , tomcat 5.5 jboss 4.0.4.GA
> Reporter: Grigoras Cristinel
> Assignee: Catalin Kormos
> Fix For: 1.1.4-SNAPSHOT
> Attachments: indexdebug2.jsp
>
> When i use subform i get a command link like next.
> <a href="#" onclick="clear_formPagina_3Aheader_3AheaderSubform();
> document.forms['formPagina:header:headerSubform'].elements['autoScroll'].value=getScrolling();
> document.forms['formPagina:header:headerSubform'].elements['formPagina:header:headerSubform:_link_hidden_'].value='formPagina:header:headerSubform:linkLogoutHeader';
> if(document.forms['formPagina:header:headerSubform'].onsubmit){var result=document.forms['formPagina:header:headerSubform'].onsubmit();
> if( (typeof result == 'undefined') || result ) {document.forms['formPagina:header:headerSubform'].submit();}}
> else{document.forms['formPagina:header:headerSubform'].submit();}
> return false;"
> id="formPagina:header:headerSubform:linkLogoutHeader" class="header_dreapta_logout"></a>
> Because of java script error the link is not submited.
> Error: clear_formPagina_3Ameniu_3AmeniuSubform is not defined
> Source File: http://192.168.2.11:8080/comercial/faces/sec/index.jsp
> Line: 1
> I have tried today with the last sources from subversion and i get the same error.
> The clear method is not rendered anymore.
> I have attached a small example.
> Cristi.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (TOMAHAWK-497) Java script rendering inside
f:subview and s:subForm
Posted by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-497?page=comments#action_12416468 ]
Catalin Kormos commented on TOMAHAWK-497:
-----------------------------------------
The actual problem is with the subForm component from the sandbox. It has a wrong component family, which determines a wrong clear function name to be rendered in the onclick attribute (instead of using the enclosing h:form id, it uses the enclosing s:subForm's id). I'm going to change the family of this component and it will work then.
Regards,
Catalin
> Java script rendering inside f:subview and s:subForm
> ----------------------------------------------------
>
> Key: TOMAHAWK-497
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-497
> Project: MyFaces Tomahawk
> Type: Bug
> Versions: 1.1.4-SNAPSHOT
> Environment: Myfaces 1.1.4 snapshot , tomcat 5.5 jboss 4.0.4.GA
> Reporter: Grigoras Cristinel
> Attachments: indexdebug2.jsp
>
> When i use subform i get a command link like next.
> <a href="#" onclick="clear_formPagina_3Aheader_3AheaderSubform();
> document.forms['formPagina:header:headerSubform'].elements['autoScroll'].value=getScrolling();
> document.forms['formPagina:header:headerSubform'].elements['formPagina:header:headerSubform:_link_hidden_'].value='formPagina:header:headerSubform:linkLogoutHeader';
> if(document.forms['formPagina:header:headerSubform'].onsubmit){var result=document.forms['formPagina:header:headerSubform'].onsubmit();
> if( (typeof result == 'undefined') || result ) {document.forms['formPagina:header:headerSubform'].submit();}}
> else{document.forms['formPagina:header:headerSubform'].submit();}
> return false;"
> id="formPagina:header:headerSubform:linkLogoutHeader" class="header_dreapta_logout"></a>
> Because of java script error the link is not submited.
> Error: clear_formPagina_3Ameniu_3AmeniuSubform is not defined
> Source File: http://192.168.2.11:8080/comercial/faces/sec/index.jsp
> Line: 1
> I have tried today with the last sources from subversion and i get the same error.
> The clear method is not rendered anymore.
> I have attached a small example.
> Cristi.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (TOMAHAWK-497) Java script rendering inside
f:subview and s:subForm
Posted by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-497?page=comments#action_12417092 ]
Catalin Kormos commented on TOMAHAWK-497:
-----------------------------------------
Oops...:) resolved now, i forgot to change the component family in the faces-config also. Please confirm that it works as expected, i'll close this issue after that.
Thanks,
Catalin
> Java script rendering inside f:subview and s:subForm
> ----------------------------------------------------
>
> Key: TOMAHAWK-497
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-497
> Project: MyFaces Tomahawk
> Type: Bug
> Versions: 1.1.4-SNAPSHOT
> Environment: Myfaces 1.1.4 snapshot , tomcat 5.5 jboss 4.0.4.GA
> Reporter: Grigoras Cristinel
> Assignee: Catalin Kormos
> Fix For: 1.1.4-SNAPSHOT
> Attachments: indexdebug2.jsp
>
> When i use subform i get a command link like next.
> <a href="#" onclick="clear_formPagina_3Aheader_3AheaderSubform();
> document.forms['formPagina:header:headerSubform'].elements['autoScroll'].value=getScrolling();
> document.forms['formPagina:header:headerSubform'].elements['formPagina:header:headerSubform:_link_hidden_'].value='formPagina:header:headerSubform:linkLogoutHeader';
> if(document.forms['formPagina:header:headerSubform'].onsubmit){var result=document.forms['formPagina:header:headerSubform'].onsubmit();
> if( (typeof result == 'undefined') || result ) {document.forms['formPagina:header:headerSubform'].submit();}}
> else{document.forms['formPagina:header:headerSubform'].submit();}
> return false;"
> id="formPagina:header:headerSubform:linkLogoutHeader" class="header_dreapta_logout"></a>
> Because of java script error the link is not submited.
> Error: clear_formPagina_3Ameniu_3AmeniuSubform is not defined
> Source File: http://192.168.2.11:8080/comercial/faces/sec/index.jsp
> Line: 1
> I have tried today with the last sources from subversion and i get the same error.
> The clear method is not rendered anymore.
> I have attached a small example.
> Cristi.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (TOMAHAWK-497) Java script rendering inside
f:subview and s:subForm
Posted by "Grigoras Cristinel (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-497?page=all ]
Grigoras Cristinel resolved TOMAHAWK-497:
-----------------------------------------
Resolution: Fixed
> Java script rendering inside f:subview and s:subForm
> ----------------------------------------------------
>
> Key: TOMAHAWK-497
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-497
> Project: MyFaces Tomahawk
> Type: Bug
> Versions: 1.1.4-SNAPSHOT
> Environment: Myfaces 1.1.4 snapshot , tomcat 5.5 jboss 4.0.4.GA
> Reporter: Grigoras Cristinel
> Assignee: Catalin Kormos
> Fix For: 1.1.4-SNAPSHOT
> Attachments: indexdebug2.jsp
>
> When i use subform i get a command link like next.
> <a href="#" onclick="clear_formPagina_3Aheader_3AheaderSubform();
> document.forms['formPagina:header:headerSubform'].elements['autoScroll'].value=getScrolling();
> document.forms['formPagina:header:headerSubform'].elements['formPagina:header:headerSubform:_link_hidden_'].value='formPagina:header:headerSubform:linkLogoutHeader';
> if(document.forms['formPagina:header:headerSubform'].onsubmit){var result=document.forms['formPagina:header:headerSubform'].onsubmit();
> if( (typeof result == 'undefined') || result ) {document.forms['formPagina:header:headerSubform'].submit();}}
> else{document.forms['formPagina:header:headerSubform'].submit();}
> return false;"
> id="formPagina:header:headerSubform:linkLogoutHeader" class="header_dreapta_logout"></a>
> Because of java script error the link is not submited.
> Error: clear_formPagina_3Ameniu_3AmeniuSubform is not defined
> Source File: http://192.168.2.11:8080/comercial/faces/sec/index.jsp
> Line: 1
> I have tried today with the last sources from subversion and i get the same error.
> The clear method is not rendered anymore.
> I have attached a small example.
> Cristi.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira