You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tobias Glensk (JIRA)" <de...@myfaces.apache.org> on 2007/03/21 17:44:32 UTC

[jira] Created: (TOBAGO-330) Application hangs / crashes when browser window is resized to a small window and an action is exectued

Application hangs / crashes when browser window is resized to a small window and an action is exectued
------------------------------------------------------------------------------------------------------

                 Key: TOBAGO-330
                 URL: https://issues.apache.org/jira/browse/TOBAGO-330
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.10
         Environment: Apache Tomcat 5.5.20
IBM Websphere
Firefox 2
IE 6
            Reporter: Tobias Glensk


Inside a browser I have a view with many components on it. I am resizing the browser window so that the components are packed tightly together. After that I execute an action which is calling a method in the controller. The view shows the progress image and the application doesn't return to the normal view even after the method call in the controller is completed. The browser doesn't respond after it. If you close the browser the application (java process) is still running on a high load and doesn't finishes (loop).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-330) Application hangs / crashes when browser window is resized to a small window and an action is exectued

Posted by "Tobias Glensk (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483127 ] 

Tobias Glensk commented on TOBAGO-330:
--------------------------------------

A Workaround is to use a managed bean for the layout which is extending PageStateImpl. If the actual width and height of the view is lower than the minimum width and height, the values for the minimum width and height are returned.

import org.apache.myfaces.tobago.model.PageStateImpl;

public class Layout extends PageStateImpl {

	private static final int MIN_WIDTH = 640;
	private static final int MIN_HEIGHT = 480;

	private int width;
	private int height;

	public int getWidth() {
		int result = getClientWidth();
		if (result == 0) {
			result = width;
		}
		result = Math.max(result, MIN_WIDTH);
		return result;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		int result = getClientHeight();
		if (result == 0) {
			result = height;
		}
		result = Math.max(result, MIN_HEIGHT);
		return result;
	}

	public void setHeight(int height) {
		this.height = height;
	}

}

> Application hangs / crashes when browser window is resized to a small window and an action is exectued
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-330
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-330
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: Apache Tomcat 5.5.20
> IBM Websphere
> Firefox 2
> IE 6
>            Reporter: Tobias Glensk
>         Attachments: debug.txt, threaddump.txt, threaddump2.txt
>
>
> Inside a browser I have a view with many components on it. I am resizing the browser window so that the components are packed tightly together. After that I execute an action which is calling a method in the controller. The view shows the progress image and the application doesn't return to the normal view even after the method call in the controller is completed. The browser doesn't respond after it. If you close the browser the application (java process) is still running on a high load and doesn't finishes (loop).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-330) Application hangs / crashes when browser window is resized to a small window and an action is exectued

Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483112 ] 

Bernd Bohmann commented on TOBAGO-330:
--------------------------------------

Can you set the log level of org.apache.myfaces.tobago.util.LayoutInfo to debug and attach the log output.

Can you reproduce the problem on every page or only on one page?
If only on one page add the page to the issue, please.

> Application hangs / crashes when browser window is resized to a small window and an action is exectued
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-330
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-330
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: Apache Tomcat 5.5.20
> IBM Websphere
> Firefox 2
> IE 6
>            Reporter: Tobias Glensk
>         Attachments: threaddump.txt, threaddump2.txt
>
>
> Inside a browser I have a view with many components on it. I am resizing the browser window so that the components are packed tightly together. After that I execute an action which is calling a method in the controller. The view shows the progress image and the application doesn't return to the normal view even after the method call in the controller is completed. The browser doesn't respond after it. If you close the browser the application (java process) is still running on a high load and doesn't finishes (loop).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TOBAGO-330) Application hangs / crashes when browser window is resized to a small window and an action is exectued

Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOBAGO-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Bohmann resolved TOBAGO-330.
----------------------------------

    Resolution: Fixed

> Application hangs / crashes when browser window is resized to a small window and an action is exectued
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-330
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-330
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.10
>         Environment: Apache Tomcat 5.5.20
> IBM Websphere
> Firefox 2
> IE 6
>            Reporter: Tobias Glensk
>         Assigned To: Bernd Bohmann
>             Fix For: 1.0.11
>
>         Attachments: debug.txt, threaddump.txt, threaddump2.txt
>
>
> Inside a browser I have a view with many components on it. I am resizing the browser window so that the components are packed tightly together. After that I execute an action which is calling a method in the controller. The view shows the progress image and the application doesn't return to the normal view even after the method call in the controller is completed. The browser doesn't respond after it. If you close the browser the application (java process) is still running on a high load and doesn't finishes (loop).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.