I have an application developed using Primefaces 2.2.1 and JSF 2.0, deployed on Glassfish 3.1 local machine.
Problem is that when I access the application using http://localhost:8080/MyApp
, the UI formatting is fine. But if I access the application using http://ip-address:8080/MyApp
instead of localhost in the url, the UI formatting is kind of messed up.
This problem occurs only on IE (I have version 8.0), not on FF. What's the difference between using localhost:8080
and ip-address:8080
in the url? Following are the pictures that illustrate my problem.
Using http://ip-address:8080/MyApp
:
Using http://localhost:8080/MyApp
:
Thank you.