You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fliptaboada <fl...@gmail.com> on 2013/07/18 15:22:17 UTC

Wicket Atmosphere - Encoding and MultiTab issues

Hi,

I'm using wicket atmosphere on multiple pages to push some messages, like
when a report is ready.

The first problem is that the html updated by the wicket-atmosphere response
arrives with broken enconding.
Everything is fine until the respose reaches the jquery.atmosphere
javascript.

Already tried to do this on the javascript resources, but without success:
@Override 
public JavaScriptPackageResource getResource() 
{ 
JavaScriptPackageResource resource = super.getResource(); 
resource.setTextEncoding("UTF-8"); 
return resource; 
} 


The second one is that when the user keep opening tabs, after 6 tabs, pages
got locked and wait until you close another tab.
Is there a parameter or something about this?


Both problems are reproducibles at
http://www.wicket-library.com/wicket-examples-6.0.x/atmosphere/
For the first just try to send a message with "á"
For the second, keep opening tabs with this address, the sixth tab don't
finish and the seventh still waiting.

Thanks,
Felipe Taboada.




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-Encoding-and-MultiTab-issues-tp4660342.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket Atmosphere - Encoding and MultiTab issues

Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Jul 24, 2013 at 11:39 PM, fliptaboada <fl...@gmail.com> wrote:

> Ticket filed :)
> https://issues.apache.org/jira/browse/WICKET-5285
>
> > The browsers have a limit of max opened connections to a domain.
> > For Firefox and Chrome it is 6 connections.
> > For IE 7/8 (not sure about the newer versions) it is 2.
>
> Interesting,
> Is this diferent when using websocket?
>
> We use JBoss EAP 6.1, so the Atmosphere version included in
> wicket-atmosphere (1.0.13) don't support JBoss Websockets, it fallsback to
> streaming and this issue happens, but I tried to implement a websocket
> based
> on this https://github.com/Atmosphere/jboss-websockets using a servlet and
> then this issue don't happens anymore, none of the tabs get blocked.
> In this test I've not used the jquery.atmosphere javascript, only the
> servlet implementation and basic Websocket javascript api.
>

The only reference I can find is
http://stackoverflow.com/questions/12475462/html5-websockets-max-number-of-open-connections

http://stackoverflow.com/questions/985431/max-parallel-http-connections-in-a-browser
-
this is about http connections in general


>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-Encoding-and-MultiTab-issues-tp4660342p4660474.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket Atmosphere - Encoding and MultiTab issues

Posted by fliptaboada <fl...@gmail.com>.
Ticket filed :)
https://issues.apache.org/jira/browse/WICKET-5285

> The browsers have a limit of max opened connections to a domain. 
> For Firefox and Chrome it is 6 connections. 
> For IE 7/8 (not sure about the newer versions) it is 2. 

Interesting, 
Is this diferent when using websocket?

We use JBoss EAP 6.1, so the Atmosphere version included in
wicket-atmosphere (1.0.13) don't support JBoss Websockets, it fallsback to
streaming and this issue happens, but I tried to implement a websocket based
on this https://github.com/Atmosphere/jboss-websockets using a servlet and
then this issue don't happens anymore, none of the tabs get blocked.
In this test I've not used the jquery.atmosphere javascript, only the
servlet implementation and basic Websocket javascript api.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-Encoding-and-MultiTab-issues-tp4660342p4660474.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket Atmosphere - Encoding and MultiTab issues

Posted by Martin Grigorov <mg...@apache.org>.
Hi,


On Thu, Jul 18, 2013 at 4:22 PM, fliptaboada <fl...@gmail.com> wrote:

> Hi,
>
> I'm using wicket atmosphere on multiple pages to push some messages, like
> when a report is ready.
>
> The first problem is that the html updated by the wicket-atmosphere
> response
> arrives with broken enconding.
> Everything is fine until the respose reaches the jquery.atmosphere
> javascript.
>
> Already tried to do this on the javascript resources, but without success:
> @Override
> public JavaScriptPackageResource getResource()
> {
> JavaScriptPackageResource resource = super.getResource();
> resource.setTextEncoding("UTF-8");
> return resource;
> }
>
>
> The second one is that when the user keep opening tabs, after 6 tabs, pages
> got locked and wait until you close another tab.
> Is there a parameter or something about this?
>
>
> Both problems are reproducibles at
> http://www.wicket-library.com/wicket-examples-6.0.x/atmosphere/
> For the first just try to send a message with "á"
>

Please file a ticket about this.


> For the second, keep opening tabs with this address, the sixth tab don't
> finish and the seventh still waiting.
>

The browsers have a limit of max opened connections to a domain.
For Firefox and Chrome it is 6 connections.
For IE 7/8 (not sure about the newer versions) it is 2.


>
> Thanks,
> Felipe Taboada.
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-Encoding-and-MultiTab-issues-tp4660342.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>