Wednesday, May 28, 2014

Why GWT app didn't fire when users click on the href link that have the domain that is the same as host domain?

I am using GWTP

Here is the problem

I have a customer page like this http://127.0.0.1:8888/MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=1

Suppose I have this code:

InlineHTML myLink=new InlineHTML("<a href=\"http://car.com" > car </a> ");  

When clicking on car link it went to car page.

Ok, now I have other InlineHTML

InlineHTML myLink=new InlineHTML("<a href=\"http://127.0.0.1:8888  /MyProject.html?gwt.codesvr=127.0.0.1:9997#!cust;custID=2\" > cust2 </a> ");  

When clicking on cust2, the url changed from #!cust;custID=1 to #!cust;custID=2 & just stayed there, it did not refresh the whole page or fire the page as It did in the "car" link example.

I have not deployed my app with a real domain yet, but I think GWT app will not fire when users click on the href link that have the domain that is the same as host domain.

How to fix this simple issue?


http://stackoverflow.com/questions/23904871/why-gwt-app-didnt-fire-when-users-click-on-the-href-link-that-have-the-domain-t

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment