PrimeFaces Datatable Column Sorting is not working in IE8 but it works fine in Firefox - facelets

PrimeFaces Datatable Column Sorting is not working in IE8 but it works fine in Firefox.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 17 Feb 2011 17:56:48 UTC
Message: Unexpected call to method or property access.
jquery.js.jsf
Line: 23
Char: 21078
Code: 0
URI: http://localhost:8080/PrimeFacesTutorial/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&v=2.2.1

You might have:
<h:form id="form1">
.....
<h:form id="form2">
...
</h:form>
...
</h:form>
I got the same error, I remove the nested Form. I removed Form2 and it worked fine.

Related

Unable to create new remote session

How to resolve this issue. Earlier my code was working, but IE settings were reseted by someone. Now I am getting this exception.
Started InternetExplorerDriver server (32-bit)
2.53.1.0
Listening on port 16183
Only local connections are allowed
Oct 21, 2016 10:14:12 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
Oct 21, 2016 10:14:12 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to straight W3C remote end connection
Oct 21, 2016 10:14:12 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to original OSS JSON Wire Protocol.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}], required capabilities = null
Build info: version: 'unknown', revision: '3169782', time: '2016-09-29 10:24:50 -0700'
System info: host: 'BWT12654001', ip: '10.52.132.157', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_101'
Driver info: driver.version: InternetExplorerDriver
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:228)
at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:180)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:172)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:144)
at mypackage.TestIEBrowser.main(TestIEBrowser.java:33)
This can work out of the box without the desired capability settings. Go to internet options>>Security, click on:'Reset all zones to default level and after that, ensure that the 'Enable protected mode' checkbox is ticked for all the four zones.
First, check your default zoom level in Internet Explorer. If it's not 100% then do the following steps:
Open Internet Explorer.
Press Alt + X and then click on Internet Options.
Click on the Advanced tab.
Place a check mark on "Reset Zoom level for new Windows and tab"
Press Apply and ok.
Close and open Internet Explorer window and check if the Default Zoom
is set to 100 %.
Once you have done with above steps, add following lines in your code:
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
Now run your program and it should work.
Hope it will help!!
The issue is discussed on Selenium project on Github
Here is the quote of the most relevant/informative part which helped me to solve the issue:
The good news is that it looks like the IE driver mostly works with IE11, provided
that (a) all security zones are set to the same Protected Mode setting and (b) Enhanced
Protected Mode is turned off. Note that the standard registry checks that the IE driver
uses to test for Protected Mode settings in IE7-10 are broken for IE11, and we've never
made any attempt to check for Enhanced Protected Mode, so there's no warning (yet)
if you don't have these settings properly set.
The bad news is that cookie manipulation is broken. Badly. If you attempt to set or
retrieve cookies, there's a chance that you'll end up with the "Unable to get browser"
error encountered before. At the moment, there is no workaround for that.
I had the same issue (in my case Firefox):
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}, version=, platform=ANY}], required capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}]
Using Selenium driver 3.3.1:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.3.1</version>
</dependency>
And solved it via another version like 3.4+.
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' for Firefox and IE edge

I got a new machine window 10 pro and setup IIS 10 for web application using dot net 4.5.2.
My web.config use
<authentication mode="Windows"/>
<identity impersonate="true"/>
My db connection
Data Source=ServerName;Database=DBName;Integrated Security=True;
When I run application locally, IE 11 and Chrome works without problem, but IE edge and Fire Fox version 47 get login failed error for DataSet.
Dim adapterName As New BasicTableAdapters.NamesTableAdapter
Dim Name As String = ""
Name = adapterName.GetName("ID") 'This line get error

AngularJS - Upgrading v1.2.5 to 1.3 to use bind once

I am trying to improve the performance of my ng-repeat's. I have upgraded my project to use library v1.3.0 (main lib and route).
I am trying to use the bind once as here: Do bindings nested inside of a lazy one-time ng-repeat binding bind just once?
However, when i add :: to my ng-repeat, the list is not populated:
<li ng-repeat="info in Profile.ChangeInfo">
<p> {[{info.Message}]} </p>
</li>
The above works.
The below fails:
<li ng-repeat="info in ::Profile.ChangeInfo">
<p> {[{::info.Message}]} </p>
</li>
Error i see is:
Error: [$parse:syntax] http://errors.angularjs.org/1.3.0-beta.9/$parse/syntax?p0=%3A&p1=not%20a%20primary%20expression&p2=1&p3=%3A%3AProfile.ChangeInfo&p4=%3A%3AProfile.ChangeInfo
UPDATE
Upgraded to beta 16, and now seeing this error in IE8:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
Timestamp: Fri, 15 Aug 2014 12:01:03 UTC
Message: [$injector:modulerr] Failed to instantiate module ng due to:
Object doesn't support this property or method
http://errors.angularjs.org/1.3.0-beta.16/$injector/modulerr?p0=ng&p1=Object%20doesn't%20support%20this%20property%20or%20method
Line: 3982
Char: 7
Code: 0
URI: http://local host:1010/js/vendor/angular.js
The bindonce syntax :: has been introduced since angularjs version 1.3.0-beta.16
You have to upgrade angularjs to version 1.3.0-beta.16 or newer.
please see here sample demo http://jsbin.com/wimon/2/edit
Use the latest angularjs beta
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.18/angular.min.js"></script>
Remove square bracket
<li ng-repeat="info in ::Profile.ChangeInfo">
<p> {{::info.Message}} </p>
</li>

running an xap (silverlight app) in VS 2005

I've written a small silverlight app in vs 2008. Now I'd like to plug that app into a site that was developed using vs.net 2005. what are the steps needed to do this. This is what I've done so far.
In web.config
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls" assembly="System.Web.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
In the asp page.
<%# Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<%# Register TagPrefix="asp" Namespace="System.Web.UI.SilverlightControls" Assembly="System.Web.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<body>
<form id="form1" runat="server">
<div>
Silverlight Test
<asp:ScriptManager ID="scriptManager" runat="server" />
<div style="height: 100%;">
<asp:Silverlight ID="silverlightControl" runat="server" Source="~/TypingTestV2.xap"
MinimumVersion="2.0.31005.0" Width="100%" Height="100%" />
</div>
</div>
</form>
When i run the app, i get an error in IE
Webpage error details :
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; MS-RTC LM 8; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Fri, 7 Aug 2009 13:12:30 UTC
Message: ASP.NET Ajax client-side framework failed to load.
Line: 38
Char: 34
Code: 0
URI: htt://localhost:4063/Silverlight.aspx
Message: 'Sys' is undefined
Line: 48
Char: 1
Code: 0
URI: htt://localhost:4063/Silverlight.aspx
Message: 'Sys' is undefined
Line: 57
Char: 1
Code: 0
URI: htt://localhost:4063/Silverlight.aspx
Message: 'Sys' is undefined
Line: 67
Char: 1
Code: 0
URI: htt://localhost:4063/Silverlight.aspx
and in Firefox :
ASP.NET Ajax client-side framework failed to load.
[Break on this error] if (typeof(Sys) === 'undefined') throw n...ient-side framework failed to load.');\r\n
So i'm not sure what the problem is. although it says AJAX, I'm not sure what the next step would be
(the htt above was http, but the site won't allow me to do more than one hyperlink in the post, so i changed it to htt)
hope someone is willing to help.
Shannon
Sliverlight 3 has dropped the asp silverlight server control, hence you would be better off duplicating the content of the test .htm page that VS 2008 creates. Use the <object> tag directly in your ASP.NET 2.0 app.

Silverlight Runtime Error 1001

So I have a deployed Silverlight app that works fine on most client machines. However, I have 1 client machine (Windows Vista / IE8) that throws the following javascript error:
Webpage error details
User Agent: Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 6.0; Trident/4.0;
SLCC1; .NET CLR 2.0.50727; .NET CLR
3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3;
OfficeLivePatch.0.0) Timestamp: Tue,
21 Jul 2009 14:38:15 UTC
Message:
Sys.InvalidOperationException: Runtime
error 1001 in control 'Xaml1', method
: 1001 An error has occurred. Line:
453 Char: 17 Code: 0
URI: www.DOMAINNAME.com/ScriptResource.axd?d=DYlfEE5ljRCaoM7uReLHHn6ek5uYaOA1UhTw1oJkABzHek2FGpt_ylvF5NNjuH26VVA5njj6q3r4MlWsNnz7ag2&t=1f1ca10
This is working fine on other Vista / IE8 machines and I cannot reproduce on my dev machine.
I am assuming this is a generic error message and the real details are not being displayed. Based on the following link there is probably a way to access what is really going on, but I have no idea how.
https://silverlight.net/forums/p/99022/226122.aspx#226122
You can try to check if browser set in 'Compatible' mode. If yes, then you can try set the java script line into HEADER of your HTML/ASP page:
<head runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>

Resources