You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Joey Geiger <jo...@staff.onmilwaukee.com> on 2006/02/24 17:22:43 UTC

linkDummyForm not rendering on every page

I recently upgraded to a 1.1.2 nightly build, and I've run into an issue where the linkdummyform
listed below is not being created on every page. This wasn't an issue with the 1.1.1 release.
I know that I can surround all of my h:commandLink tag sections with forms to make them work,
but I was wondering specifically what triggers the code below to render. I'd rather not have
7-8 different forms on a page just for common links that can be processed by one form.

Thank you.



<!-- MYFACES JAVASCRIPT -->
<form id="linkDummyForm" name="linkDummyForm" style="display:inline" method="post" action="/main/display.jsf">
<input type="hidden" name="linkDummyForm:_link_hidden_" /><script type="text/javascript"><!--
function clear_linkDummyForm() {
  var f = document.forms['linkDummyForm'];
  f.elements['linkDummyForm:_link_hidden_'].value='';
  f.target='';
}
clear_linkDummyForm();
//--></script>
</form>



Re: linkDummyForm not rendering on every page

Posted by Joey Geiger <jo...@staff.onmilwaukee.com>.
I've found it has something to do with the need for an actual page to be 
part of the url.

If the browser is showing www.site.com/ or www.site.com/admin/ it fails.
With www.site.com/page.jsf, the link dummy form will render and the 
links on the page
work fine.


Joey Geiger wrote:
> I recently upgraded to a 1.1.2 nightly build, and I've run into an 
> issue where the linkdummyform
> listed below is not being created on every page. This wasn't an issue 
> with the 1.1.1 release.
> I know that I can surround all of my h:commandLink tag sections with 
> forms to make them work,
> but I was wondering specifically what triggers the code below to 
> render. I'd rather not have
> 7-8 different forms on a page just for common links that can be 
> processed by one form.
>
> Thank you.
>
>
>
> <!-- MYFACES JAVASCRIPT -->
> <form id="linkDummyForm" name="linkDummyForm" style="display:inline" 
> method="post" action="/main/display.jsf">
> <input type="hidden" name="linkDummyForm:_link_hidden_" /><script 
> type="text/javascript"><!--
> function clear_linkDummyForm() {
>  var f = document.forms['linkDummyForm'];
>  f.elements['linkDummyForm:_link_hidden_'].value='';
>  f.target='';
> }
> clear_linkDummyForm();
> //--></script>
> </form>
>
>
>
>



Re: linkDummyForm not rendering on every page

Posted by Adam Brod <AB...@intralinks.com>.
I know that ADF Faces overrides all of the default renderers and the ADF 
Faces commandLink does not create a dummy form for you.  Perhaps that is 
your problem?

Adam Brod
Product Development Team


Joey Geiger <jo...@staff.onmilwaukee.com> 
02/24/2006 11:22 AM
Please respond to
"MyFaces Discussion" <us...@myfaces.apache.org>


To
MyFaces Discussion <us...@myfaces.apache.org>
cc

Subject
linkDummyForm not rendering on every page






I recently upgraded to a 1.1.2 nightly build, and I've run into an issue 
where the linkdummyform
listed below is not being created on every page. This wasn't an issue with 
the 1.1.1 release.
I know that I can surround all of my h:commandLink tag sections with forms 
to make them work,
but I was wondering specifically what triggers the code below to render. 
I'd rather not have
7-8 different forms on a page just for common links that can be processed 
by one form.

Thank you.



<!-- MYFACES JAVASCRIPT -->
<form id="linkDummyForm" name="linkDummyForm" style="display:inline" 
method="post" action="/main/display.jsf">
<input type="hidden" name="linkDummyForm:_link_hidden_" /><script 
type="text/javascript"><!--
function clear_linkDummyForm() {
  var f = document.forms['linkDummyForm'];
  f.elements['linkDummyForm:_link_hidden_'].value='';
  f.target='';
}
clear_linkDummyForm();
//--></script>
</form>