You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Jim Graf <jg...@pacbell.net> on 2006/11/17 02:52:43 UTC

converting ADF -> Trinidad problem: javascriptDetector not found??

Hi,

I'm converting a working MyFaces/ADF app to MyFaces/Trinidad and I'm 
grinding through it. Most is pretty simple as it is in documentation 
that I can find, but for something like 'region' => 'componentRef' (and 
etc), I had to go to the demo source for. I just couldn't find it in the 
'things renamed': http://wiki.apache.org/myfaces/Trinidad_renaming

But now I'm stuck on the strangest thing:

The requested resource (/GdsSubmit2/_javascriptDetector_) is not available.

I thought javascript came from the Adf ResourceServlet? What I now have is:

<!-- ADF resource loader servlet -->
<servlet>
	<servlet-name>resources</servlet-name>
	<servlet-class>
		org.apache.myfaces.trinidad.webapp.ResourceServlet
	</servlet-class>
</servlet>

<servlet-mapping>
	<servlet-name>resources</servlet-name>
	<url-pattern>/adf/*</url-pattern>
</servlet-mapping>

I believe this matches the demo web.xml, but I could have easily 
introduced some mistake.

The other interesting thing is that when I access my app:
http://sparky/GdsSubmit2/faces/Login.jspx

I get this redirect:

http://sparky/GdsSubmit2/_javascriptDetector_?goto=/GdsSubmit2/faces/Login.jspx

I'm just being a bit lazy by posting this, as I should just convert one 
of my small test apps and figure it out, but I really hope someone goes 
"Seen it!"

thanks,
jim

Re: converting ADF -> Trinidad problem: javascriptDetector not found??

Posted by Adam Winer <aw...@gmail.com>.
Whoa, *no idea*.  Definitely isn't a Trinidad thing.  Maybe
this comes from the MyFaces side of things?

-- Adam



On 11/16/06, Jim Graf <jg...@pacbell.net> wrote:
>
> Hi,
>
> I'm converting a working MyFaces/ADF app to MyFaces/Trinidad and I'm
> grinding through it. Most is pretty simple as it is in documentation
> that I can find, but for something like 'region' => 'componentRef' (and
> etc), I had to go to the demo source for. I just couldn't find it in the
> 'things renamed': http://wiki.apache.org/myfaces/Trinidad_renaming
>
> But now I'm stuck on the strangest thing:
>
> The requested resource (/GdsSubmit2/_javascriptDetector_) is not available.
>
> I thought javascript came from the Adf ResourceServlet? What I now have is:
>
> <!-- ADF resource loader servlet -->
> <servlet>
>         <servlet-name>resources</servlet-name>
>         <servlet-class>
>                 org.apache.myfaces.trinidad.webapp.ResourceServlet
>         </servlet-class>
> </servlet>
>
> <servlet-mapping>
>         <servlet-name>resources</servlet-name>
>         <url-pattern>/adf/*</url-pattern>
> </servlet-mapping>
>
> I believe this matches the demo web.xml, but I could have easily
> introduced some mistake.
>
> The other interesting thing is that when I access my app:
> http://sparky/GdsSubmit2/faces/Login.jspx
>
> I get this redirect:
>
> http://sparky/GdsSubmit2/_javascriptDetector_?goto=/GdsSubmit2/faces/Login.jspx
>
> I'm just being a bit lazy by posting this, as I should just convert one
> of my small test apps and figure it out, but I really hope someone goes
> "Seen it!"
>
> thanks,
> jim
>