You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Boris Kovalenko <bo...@tagnet.ru> on 2006/02/12 07:45:18 UTC

No javascript output with nightly 1.1.2?

Hello!

	May be I missed something, but with latest 1.1.2 and Facelets I see no 
javascript code in generated files. So command links and other things 
stop working. There is no problem with 1.1.1 code.

With respect,
	Boris

Re: No javascript output with nightly 1.1.2?

Posted by Boris Kovalenko <bo...@tagnet.ru>.
Hello!

	Sorry, Martin, but I'm still newbie. So, please tell me exactly what 
should I do. I have no form around command-links (t:panelNavigation used).

Martin Marinschek wrote:
> Do you have a form around your command-links?
> 
> If yes, you'll need to look into the HtmlLinkRendererBase class.
> 
> If not, you'll need to look into:
> 
> ExtensionsPhaseListener
> 
> and
> 
> ExtensionsFilter
> 
> and tell us, what happens in there.
> 
> regards,
> 
> Martin
> 
With respect,
	Boris

Re: No javascript output with nightly 1.1.2?

Posted by Joey Geiger <jo...@staff.onmilwaukee.com>.
I had/have this issue as well. The link dummy form was not being created 
by the javascript, so my links were not working on my pages.

I changed my index.jsp to be a javascript redirect instead of a 
jsp:forward to get around the problem for now.
(window.location = '/pages/home.jsf') for your example.


Carsten Burghardt wrote:
> Am Monday 13 February 2006 06:37 schrieb Boris Kovalenko:
>   
>> Hello!
>>
>> 	Wow! What I discovered! My start page (index.jsp) looks like
>>
>> <%@ page session="false" contentType="text/html; charset=utf-8"%>
>> <jsp:forward page="/pages/home.jsf"/>
>>
>> and when I use it for startup I have no javascript in resulting html.
>> When I type /pages/home.jsf in browser I get html with JavaScript and
>> even detailStamp begin to work (Claudio, it looks like detailStamp can
>> not work without JavaScript). When I change index.jsp to index.html all
>> is ok too. So, may be this discovery will help us?
>>
>> P.S. I'm happy for now as index.jsp is not a problem for me.
>>
>> With respect,
>> 	Boris
>>     
>
> Any progress here? If I'm not mistaken I have the same problem..
>
>
> Carsten
>
>
>   



Re: No javascript output with nightly 1.1.2?

Posted by Carsten Burghardt <ca...@cburghardt.com>.
Am Monday 13 February 2006 06:37 schrieb Boris Kovalenko:
> Hello!
>
> 	Wow! What I discovered! My start page (index.jsp) looks like
>
> <%@ page session="false" contentType="text/html; charset=utf-8"%>
> <jsp:forward page="/pages/home.jsf"/>
>
> and when I use it for startup I have no javascript in resulting html.
> When I type /pages/home.jsf in browser I get html with JavaScript and
> even detailStamp begin to work (Claudio, it looks like detailStamp can
> not work without JavaScript). When I change index.jsp to index.html all
> is ok too. So, may be this discovery will help us?
>
> P.S. I'm happy for now as index.jsp is not a problem for me.
>
> With respect,
> 	Boris

Any progress here? If I'm not mistaken I have the same problem..


Carsten

Re: No javascript output with nightly 1.1.2?

Posted by Boris Kovalenko <bo...@tagnet.ru>.
Hello!

	Wow! What I discovered! My start page (index.jsp) looks like

<%@ page session="false" contentType="text/html; charset=utf-8"%>
<jsp:forward page="/pages/home.jsf"/>

and when I use it for startup I have no javascript in resulting html. 
When I type /pages/home.jsf in browser I get html with JavaScript and 
even detailStamp begin to work (Claudio, it looks like detailStamp can 
not work without JavaScript). When I change index.jsp to index.html all 
is ok too. So, may be this discovery will help us?

P.S. I'm happy for now as index.jsp is not a problem for me.

With respect,
	Boris

Re: No javascript output with nightly 1.1.2?

Posted by Boris Kovalenko <bo...@tagnet.ru>.
Hello!

	I also found that writerWrapper is properly populated:
<form id="linkDummyForm" name="linkDummyForm" style="display:inline" 
method="pos
t" action="/pages/home.jsf">
<input type="hidden" name="jsf_sequence" value="1" />
<input type="hidden" name="autoScroll" />

<input type="hidden" name="linkDummyForm:_link_hidden_" /><script 
type="text/jav
ascript"><!--
function clear_linkDummyForm() {
   var f = document.forms['linkDummyForm'];
   f.elements['linkDummyForm:_link_hidden_'].value='';
   f.target='';
}
clear_linkDummyForm();
//--></script>
</form>
<script type="text/javascript"><!--
function getScrolling() {
     var x = 0; var y = 0;
     if (self.pageXOffset || self.pageYOffset) {
         x = self.pageXOffset;
         y = self.pageYOffset;
     } else if ((document.documentElement && 
document.documentElement.scrollLeft)
||(document.documentElement && document.documentElement.scrollTop)) {
         x = document.documentElement.scrollLeft;
         y = document.documentElement.scrollTop;
     } else if (document.body) {
         x = document.body.scrollLeft;
         y = document.body.scrollTop;
     }
     return x + "," + y;
}

//--></script>

and it is not present in output html.


Boris Kovalenko wrote:
> Hello!
> 
> Bruno Aranda wrote:
> 
>> Mmmh, this thing again :-(
>> so it is not called, rendering no javascript stuff.
>> using maven, and put some tracing code in the ExtensionsPhaseListener
>> class to see if it is getting called?
> 
> 
>     Inserted 3 debug lines and found that:
> 
> renderCodeBeforeBodyEnd start - the function started
> renderCodeBeforeBodyEnd continue - myFacesJavascript is null
> renderCodeBeforeBodyEnd dummy - DummyFormUtils.writeDummyForm called
> 
> What should I do next?
> 
> With respect,
>     Boris
> 

Re: No javascript output with nightly 1.1.2?

Posted by Boris Kovalenko <bo...@tagnet.ru>.
Hello!

Bruno Aranda wrote:
> Mmmh, this thing again :-(
> so it is not called, rendering no javascript stuff.
> using maven, and put some tracing code in the ExtensionsPhaseListener
> class to see if it is getting called?

	Inserted 3 debug lines and found that:

renderCodeBeforeBodyEnd start - the function started
renderCodeBeforeBodyEnd continue - myFacesJavascript is null
renderCodeBeforeBodyEnd dummy - DummyFormUtils.writeDummyForm called

What should I do next?

With respect,
	Boris

Re: No javascript output with nightly 1.1.2?

Posted by Boris Kovalenko <bo...@tagnet.ru>.
Hello!

	Yes Bruno, I'll try this tomorrow.

> using maven, and put some tracing code in the ExtensionsPhaseListener
> class to see if it is getting called?
> I will try to dig it deeper to this tonight if I have time.
> 
> Regards,
> 
> Bruno

With respect,
	Boris

Re: No javascript output with nightly 1.1.2?

Posted by Bruno Aranda <br...@gmail.com>.
Mmmh, this thing again :-(

It seems to me that the new ExtensionsPhaseListener is not working
somehow. It is registered in the faces-config.xml file in tomahawk. I
don't know how facelets work, but can facelets interfere with that
file somehow? It seems like the phase listener is not being registered
so it is not called, rendering no javascript stuff.
This filter creates the needed javascript code and puts it in the
request, so the extensionsFilter can write it later in the response.
Boris, could you try to build the application from the SVN sources
using maven, and put some tracing code in the ExtensionsPhaseListener
class to see if it is getting called?
I will try to dig it deeper to this tonight if I have time.

Regards,

Bruno

On 2/12/06, Martin Marinschek <ma...@gmail.com> wrote:
> Do you have a form around your command-links?
>
> If yes, you'll need to look into the HtmlLinkRendererBase class.
>
> If not, you'll need to look into:
>
> ExtensionsPhaseListener
>
> and
>
> ExtensionsFilter
>
> and tell us, what happens in there.
>
> regards,
>
> Martin
>
> On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> > Hello!
> >
> >         As it is important for me we may try. Please tell me what should I do
> > exactly.
> >
> > Martin Marinschek wrote:
> > > Now what we implemented was trying to fix the stuff between facelets
> > > and MyFaces ;)
> > >
> > > Ok, give Bruno and me some time to sort this out.
> > >
> > > If you can do some debuggin in the filter and the new phase-listener
> > > in tomahawk, that would be great.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> > >
> > >>Hello!
> > >>
> > >>        Of course, Martin, I have extensionFilter configured (I always
> > >>configure it even I not use extensions). I have a working project with
> > >>extfilter configured and etc. It is working fine with facelets 1.0.10
> > >>(and 1.0.7) & MyFaces 1.1.1. When I change MyFaces to the latest nigthly
> > >>  I see no javascript output (this was my first try to use 1.1.2). Of
> > >>course, if org.apache.myfaces.ALLOW_JAVASCRIPT is false - the
> > >>application begin to work. Strange thing - when
> > >>org.apache.myfaces.ALLOW_JAVASCRIPT is false I see <!-- MYFACES
> > >>JAVASCRIPT --> and nothing more, and when
> > >>org.apache.myfaces.ALLOW_JAVASCRIPT is true I even can't see <!--
> > >>MYFACES JAVASCRIPT --> !!!
> > >>
> > >>P.S. Without Facelets all is ok. So (IMHO) the problem is between
> > >>MyFaces and Facelets.
> > >>
> > >>Martin Marinschek wrote:
> > >>
> > >>>Hi Boris,
> > >>>
> > >>>we've been digging a lot in this area in the last two weeks, so this
> > >>>feedback is important.
> > >>>
> > >>>A question - do you have the extensionsFilter configured, or do you
> > >>>not use extended components?
> > >>>
> > >>>regards,
> > >>>
> > >>>Martin
> > >>>
> > >>>On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> > >>>
> > >>>
> > >>>>Hello!
> > >>>>
> > >>>>       May be I missed something, but with latest 1.1.2 and Facelets I see no
> > >>>>javascript code in generated files. So command links and other things
> > >>>>stop working. There is no problem with 1.1.1 code.
> > >>>>
> > >>>>With respect,
> > >>>>       Boris
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>>--
> > >>>
> > >>>http://www.irian.at
> > >>>
> > >>>Your JSF powerhouse -
> > >>>JSF Consulting, Development and
> > >>>Courses in English and German
> > >>>
> > >>>Professional Support for Apache MyFaces
> > >>>
> > >>
> > >>With respect,
> > >>        Boris
> > >>
> > >
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> > With respect,
> >         Boris
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

Re: No javascript output with nightly 1.1.2?

Posted by Martin Marinschek <ma...@gmail.com>.
Do you have a form around your command-links?

If yes, you'll need to look into the HtmlLinkRendererBase class.

If not, you'll need to look into:

ExtensionsPhaseListener

and

ExtensionsFilter

and tell us, what happens in there.

regards,

Martin

On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> Hello!
>
>         As it is important for me we may try. Please tell me what should I do
> exactly.
>
> Martin Marinschek wrote:
> > Now what we implemented was trying to fix the stuff between facelets
> > and MyFaces ;)
> >
> > Ok, give Bruno and me some time to sort this out.
> >
> > If you can do some debuggin in the filter and the new phase-listener
> > in tomahawk, that would be great.
> >
> > regards,
> >
> > Martin
> >
> > On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> >
> >>Hello!
> >>
> >>        Of course, Martin, I have extensionFilter configured (I always
> >>configure it even I not use extensions). I have a working project with
> >>extfilter configured and etc. It is working fine with facelets 1.0.10
> >>(and 1.0.7) & MyFaces 1.1.1. When I change MyFaces to the latest nigthly
> >>  I see no javascript output (this was my first try to use 1.1.2). Of
> >>course, if org.apache.myfaces.ALLOW_JAVASCRIPT is false - the
> >>application begin to work. Strange thing - when
> >>org.apache.myfaces.ALLOW_JAVASCRIPT is false I see <!-- MYFACES
> >>JAVASCRIPT --> and nothing more, and when
> >>org.apache.myfaces.ALLOW_JAVASCRIPT is true I even can't see <!--
> >>MYFACES JAVASCRIPT --> !!!
> >>
> >>P.S. Without Facelets all is ok. So (IMHO) the problem is between
> >>MyFaces and Facelets.
> >>
> >>Martin Marinschek wrote:
> >>
> >>>Hi Boris,
> >>>
> >>>we've been digging a lot in this area in the last two weeks, so this
> >>>feedback is important.
> >>>
> >>>A question - do you have the extensionsFilter configured, or do you
> >>>not use extended components?
> >>>
> >>>regards,
> >>>
> >>>Martin
> >>>
> >>>On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> >>>
> >>>
> >>>>Hello!
> >>>>
> >>>>       May be I missed something, but with latest 1.1.2 and Facelets I see no
> >>>>javascript code in generated files. So command links and other things
> >>>>stop working. There is no problem with 1.1.1 code.
> >>>>
> >>>>With respect,
> >>>>       Boris
> >>>>
> >>>
> >>>
> >>>
> >>>--
> >>>
> >>>http://www.irian.at
> >>>
> >>>Your JSF powerhouse -
> >>>JSF Consulting, Development and
> >>>Courses in English and German
> >>>
> >>>Professional Support for Apache MyFaces
> >>>
> >>
> >>With respect,
> >>        Boris
> >>
> >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> With respect,
>         Boris
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: No javascript output with nightly 1.1.2?

Posted by Boris Kovalenko <bo...@tagnet.ru>.
Hello!

	As it is important for me we may try. Please tell me what should I do 
exactly.

Martin Marinschek wrote:
> Now what we implemented was trying to fix the stuff between facelets
> and MyFaces ;)
> 
> Ok, give Bruno and me some time to sort this out.
> 
> If you can do some debuggin in the filter and the new phase-listener
> in tomahawk, that would be great.
> 
> regards,
> 
> Martin
> 
> On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> 
>>Hello!
>>
>>        Of course, Martin, I have extensionFilter configured (I always
>>configure it even I not use extensions). I have a working project with
>>extfilter configured and etc. It is working fine with facelets 1.0.10
>>(and 1.0.7) & MyFaces 1.1.1. When I change MyFaces to the latest nigthly
>>  I see no javascript output (this was my first try to use 1.1.2). Of
>>course, if org.apache.myfaces.ALLOW_JAVASCRIPT is false - the
>>application begin to work. Strange thing - when
>>org.apache.myfaces.ALLOW_JAVASCRIPT is false I see <!-- MYFACES
>>JAVASCRIPT --> and nothing more, and when
>>org.apache.myfaces.ALLOW_JAVASCRIPT is true I even can't see <!--
>>MYFACES JAVASCRIPT --> !!!
>>
>>P.S. Without Facelets all is ok. So (IMHO) the problem is between
>>MyFaces and Facelets.
>>
>>Martin Marinschek wrote:
>>
>>>Hi Boris,
>>>
>>>we've been digging a lot in this area in the last two weeks, so this
>>>feedback is important.
>>>
>>>A question - do you have the extensionsFilter configured, or do you
>>>not use extended components?
>>>
>>>regards,
>>>
>>>Martin
>>>
>>>On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
>>>
>>>
>>>>Hello!
>>>>
>>>>       May be I missed something, but with latest 1.1.2 and Facelets I see no
>>>>javascript code in generated files. So command links and other things
>>>>stop working. There is no problem with 1.1.1 code.
>>>>
>>>>With respect,
>>>>       Boris
>>>>
>>>
>>>
>>>
>>>--
>>>
>>>http://www.irian.at
>>>
>>>Your JSF powerhouse -
>>>JSF Consulting, Development and
>>>Courses in English and German
>>>
>>>Professional Support for Apache MyFaces
>>>
>>
>>With respect,
>>        Boris
>>
> 
> 
> 
> --
> 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
With respect,
	Boris

Re: No javascript output with nightly 1.1.2?

Posted by Martin Marinschek <ma...@gmail.com>.
Now what we implemented was trying to fix the stuff between facelets
and MyFaces ;)

Ok, give Bruno and me some time to sort this out.

If you can do some debuggin in the filter and the new phase-listener
in tomahawk, that would be great.

regards,

Martin

On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> Hello!
>
>         Of course, Martin, I have extensionFilter configured (I always
> configure it even I not use extensions). I have a working project with
> extfilter configured and etc. It is working fine with facelets 1.0.10
> (and 1.0.7) & MyFaces 1.1.1. When I change MyFaces to the latest nigthly
>   I see no javascript output (this was my first try to use 1.1.2). Of
> course, if org.apache.myfaces.ALLOW_JAVASCRIPT is false - the
> application begin to work. Strange thing - when
> org.apache.myfaces.ALLOW_JAVASCRIPT is false I see <!-- MYFACES
> JAVASCRIPT --> and nothing more, and when
> org.apache.myfaces.ALLOW_JAVASCRIPT is true I even can't see <!--
> MYFACES JAVASCRIPT --> !!!
>
> P.S. Without Facelets all is ok. So (IMHO) the problem is between
> MyFaces and Facelets.
>
> Martin Marinschek wrote:
> > Hi Boris,
> >
> > we've been digging a lot in this area in the last two weeks, so this
> > feedback is important.
> >
> > A question - do you have the extensionsFilter configured, or do you
> > not use extended components?
> >
> > regards,
> >
> > Martin
> >
> > On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> >
> >>Hello!
> >>
> >>        May be I missed something, but with latest 1.1.2 and Facelets I see no
> >>javascript code in generated files. So command links and other things
> >>stop working. There is no problem with 1.1.1 code.
> >>
> >>With respect,
> >>        Boris
> >>
> >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> With respect,
>         Boris
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: No javascript output with nightly 1.1.2?

Posted by Boris Kovalenko <bo...@tagnet.ru>.
Hello!

	Of course, Martin, I have extensionFilter configured (I always 
configure it even I not use extensions). I have a working project with 
extfilter configured and etc. It is working fine with facelets 1.0.10 
(and 1.0.7) & MyFaces 1.1.1. When I change MyFaces to the latest nigthly 
  I see no javascript output (this was my first try to use 1.1.2). Of 
course, if org.apache.myfaces.ALLOW_JAVASCRIPT is false - the 
application begin to work. Strange thing - when 
org.apache.myfaces.ALLOW_JAVASCRIPT is false I see <!-- MYFACES 
JAVASCRIPT --> and nothing more, and when 
org.apache.myfaces.ALLOW_JAVASCRIPT is true I even can't see <!-- 
MYFACES JAVASCRIPT --> !!!

P.S. Without Facelets all is ok. So (IMHO) the problem is between 
MyFaces and Facelets.

Martin Marinschek wrote:
> Hi Boris,
> 
> we've been digging a lot in this area in the last two weeks, so this
> feedback is important.
> 
> A question - do you have the extensionsFilter configured, or do you
> not use extended components?
> 
> regards,
> 
> Martin
> 
> On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> 
>>Hello!
>>
>>        May be I missed something, but with latest 1.1.2 and Facelets I see no
>>javascript code in generated files. So command links and other things
>>stop working. There is no problem with 1.1.1 code.
>>
>>With respect,
>>        Boris
>>
> 
> 
> 
> --
> 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
With respect,
	Boris

Re: No javascript output with nightly 1.1.2?

Posted by Martin Marinschek <ma...@gmail.com>.
Hi Boris,

we've been digging a lot in this area in the last two weeks, so this
feedback is important.

A question - do you have the extensionsFilter configured, or do you
not use extended components?

regards,

Martin

On 2/12/06, Boris Kovalenko <bo...@tagnet.ru> wrote:
> Hello!
>
>         May be I missed something, but with latest 1.1.2 and Facelets I see no
> javascript code in generated files. So command links and other things
> stop working. There is no problem with 1.1.1 code.
>
> With respect,
>         Boris
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces