<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Update: JDeveloper - Ice Tabs Will Not Change: "Not able to find user agent. Returning default""]]></title>
		<link>http://www.icefaces.org/JForum/posts/list/13.page</link>
		<description><![CDATA[Latest messages posted in the topic "Update: JDeveloper - Ice Tabs Will Not Change: "Not able to find user agent. Returning default""]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Update: JDeveloper - Ice Tabs Will Not Change: &quot;Not able to find user agent. Returning default&quot;</title>
				<description><![CDATA[ I am getting the following warning when trying to switch tabs on a running page:

Jul 30, 2007 4:31:21 AM com.icesoft.faces.component.style.OutputStyleRenderer browserType
WARNING: Not able to find user agent. Returning default

The tabs will not change.

I am running:

JDeveloper 10.1.3.1.0 with th eembedded OC4J server
ICEfaces-JDeveloper-IDE-v2.0.0
ICEfaces-1.6.0-libs-JDeveloper.zip

I pasted the exact page into Eclipse 3.2 and ran it with JBoss 4.0.3, and the page worked fine. I was able to switch tabs. I tried both servers with two browsers. Both of them worked and did not work in the same places.

Is this a bug or do I need to do something special to get this to work with JDeveloper and OC4J?

Thanks,
Kurzweil4

]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/5205.page#23295</guid>
				<link>http://www.icefaces.org/JForum/posts/list/5205.page#23295</link>
				<pubDate><![CDATA[Mon, 30 Jul 2007 03:39:03]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:JDeveloper - Ice Tabs Will Not Change: &quot;Not able to find user agent. Returning default&quot;</title>
				<description><![CDATA[ Are you using the same libaries in different IDE combinations?

If you use latest Eclipse Europa , it has a option in server Run time for the standalone Oracle OC4J standalone 10.1.3.1. Is this working for you.

If you look at the release notes, there is some detailed info related to deployment to OC4J server.

\icefaces\docs\ReleaseNotes.html
http://support.icesoft.com/jive/entry.jspa?entryID=752&categoryID=80

]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/5205.page#23305</guid>
				<link>http://www.icefaces.org/JForum/posts/list/5205.page#23305</link>
				<pubDate><![CDATA[Mon, 30 Jul 2007 09:10:35]]> GMT</pubDate>
				<author><![CDATA[ frank.ye]]></author>
			</item>
			<item>
				<title>Re:JDeveloper - Ice Tabs Will Not Change: &quot;Not able to find user agent. Returning default&quot;</title>
				<description><![CDATA[ 
I am using the same library versions.

I used the web.xml from the documentation you provided and it worked.

Thanks,
Kurzweil4
]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/5205.page#23331</guid>
				<link>http://www.icefaces.org/JForum/posts/list/5205.page#23331</link>
				<pubDate><![CDATA[Mon, 30 Jul 2007 18:21:49]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:Update: JDeveloper - Ice Tabs Will Not Change: &quot;Not able to find user agent. Returning default&quot;</title>
				<description><![CDATA[ Hi,

I have exactly the same problem but even when i changed my web.xml it doesn't work. 
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>28.08.2007 15:30:27 com.icesoft.faces.component.style.OutputStyleRenderer browserType
WARNUNG: Not able to find user agent. Returning default</pre>
		</div>

Is it possible that facelets are producing this WARNING? 
Is concurrentDomViews=true allowed in the oc4j application server?

Because this are the two things that are different from your recommended web.xml

It think this is also the root of the problem described in http://www.icefaces.org/JForum/posts/list/5456.page . IceFaces doesn't find the user agent and so it takes a wrong js library for the IE browser.

regards 

Cyrill

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
&lt;web-app id="WebApp_ID"&gt;
	&lt;display-name&gt;Ice-AttributeProfilEditor&lt;/display-name&gt;
	&lt;context-param&gt;
		&lt;param-name&gt;com.icesoft.faces.debugDOMUpdate&lt;/param-name&gt;
		&lt;param-value&gt;false&lt;/param-value&gt;
	&lt;/context-param&gt;
	&lt;context-param&gt;
		&lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
		&lt;param-value&gt;server&lt;/param-value&gt;
	&lt;/context-param&gt;
	&lt;context-param&gt;
		&lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;
		&lt;param-value&gt;.jspx&lt;/param-value&gt;
	&lt;/context-param&gt;
	&lt;context-param&gt;
		&lt;param-name&gt;com.icesoft.faces.concurrentDOMViews&lt;/param-name&gt;
		&lt;param-value&gt;true&lt;/param-value&gt;
	&lt;/context-param&gt;
	&lt;context-param&gt;
		&lt;param-name&gt;com.icesoft.faces.standardRequestScope&lt;/param-name&gt;
		&lt;param-value&gt;false&lt;/param-value&gt;
	&lt;/context-param&gt;
	&lt;listener&gt;
		&lt;listener-class&gt;
			com.icesoft.faces.util.event.servlet.ContextEventRepeater
		&lt;/listener-class&gt;
	&lt;/listener&gt;
	&lt;servlet&gt;
		&lt;servlet-name&gt;Main Servlet&lt;/servlet-name&gt;
		&lt;servlet-class&gt;
			com.icesoft.faces.webapp.http.servlet.MainServlet
		&lt;/servlet-class&gt;
		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
	&lt;/servlet&gt;
	&lt;servlet&gt;
		&lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
		&lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
	&lt;/servlet&gt;
	&lt;servlet-mapping&gt;
		&lt;servlet-name&gt;Main Servlet&lt;/servlet-name&gt;
		&lt;url-pattern&gt;/xmlhttp/*&lt;/url-pattern&gt;
	&lt;/servlet-mapping&gt;
	&lt;servlet-mapping&gt;
		&lt;servlet-name&gt;Main Servlet&lt;/servlet-name&gt;
		&lt;url-pattern&gt;*.iface&lt;/url-pattern&gt;
	&lt;/servlet-mapping&gt;
	&lt;servlet-mapping&gt;
		&lt;servlet-name&gt;Main Servlet&lt;/servlet-name&gt;
		&lt;url-pattern&gt;*.jspx&lt;/url-pattern&gt;
	&lt;/servlet-mapping&gt;
	&lt;servlet-mapping&gt;
		&lt;servlet-name&gt;Main Servlet&lt;/servlet-name&gt;
		&lt;url-pattern&gt;/block/*&lt;/url-pattern&gt;
	&lt;/servlet-mapping&gt;
	&lt;welcome-file-list&gt;
		&lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
	&lt;/welcome-file-list&gt;
&lt;/web-app&gt;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/5205.page#24234</guid>
				<link>http://www.icefaces.org/JForum/posts/list/5205.page#24234</link>
				<pubDate><![CDATA[Tue, 28 Aug 2007 08:40:24]]> GMT</pubDate>
				<author><![CDATA[ Cyrill]]></author>
			</item>
			<item>
				<title>Re:Update: JDeveloper - Ice Tabs Will Not Change: &quot;Not able to find user agent. Returning default&quot;</title>
				<description><![CDATA[ <span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>28.08.2007 15:30:27 com.icesoft.faces.component.style.OutputStyleRenderer browserType
 WARNUNG: Not able to find user agent. Returning default</pre>
		</div>

I think i solved the warning. The problem is when I use oc4j the header names are capitalized ("USER-AGENT").

I added following code in  OutputStyleRenderer and the warning disappeared. But my IE problem -> http://www.icefaces.org/JForum/posts/list/5456.page  still occurs.

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>                useragent = request.getHeader&#40;"user-agent"&#41;;
		    if&#40;useragent == null&#41;
                   //OC4J
		       useragent = request.getHeader&#40;"USER-AGENT"&#41;;</pre>
		</div>
]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/5205.page#24237</guid>
				<link>http://www.icefaces.org/JForum/posts/list/5205.page#24237</link>
				<pubDate><![CDATA[Tue, 28 Aug 2007 09:54:16]]> GMT</pubDate>
				<author><![CDATA[ Cyrill]]></author>
			</item>
			<item>
				<title>Re:Update: JDeveloper - Ice Tabs Will Not Change: &quot;Not able to find user agent. Returning default&quot;</title>
				<description><![CDATA[ Cyrill,

Sounds like your knowledge on this matter is greater than mine :-)

Kurzweil4
]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/5205.page#24313</guid>
				<link>http://www.icefaces.org/JForum/posts/list/5205.page#24313</link>
				<pubDate><![CDATA[Wed, 29 Aug 2007 17:58:41]]> GMT</pubDate>
				<author><![CDATA[ kurzweil4]]></author>
			</item>
			<item>
				<title>Re:Update: JDeveloper - Ice Tabs Will Not Change: &quot;Not able to find user agent. Returning default&quot;</title>
				<description><![CDATA[ According to the javaee specification (JSR-154 spec, i assume) getHeader(String name) and similar should handle the name parameter case-insensitive. ServletEnvironmentRequest handles it case sensitive.

Is it possible to get a fix for that? Or do one need to write a workaround for that?]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/5205.page#60420</guid>
				<link>http://www.icefaces.org/JForum/posts/list/5205.page#60420</link>
				<pubDate><![CDATA[Tue, 9 Feb 2010 08:23:33]]> GMT</pubDate>
				<author><![CDATA[ mirage]]></author>
			</item>
	</channel>
</rss>
