Re: [TOBAGO] Controls self-adjusted in the page
For Tobago 1.0 it is a good thing to put a managed bean in the session, which manages the layout sizes like: When the bean in in the session, the sizing also works when the user reloads a page directly in the browser. Regards, Udo Am 23.03.10 15:25, schrieb Fernando Augusto: Hey Udo, Thanks for your support again. I already have a login form in the app, and what happens is: 1 - Login Form (the login page has a rows/columns problem and the form doesn't want to be in the center, but I am trying to fix it myself). User uses ID/PWD and validates itself; 2 - Main Form (with the alignment problem stated here). Clicking in the buttons or menus and making the page refresh a few times makes the appearance get better. @Udo: I am sending you in PVT the URL, with login/pwd for you to see the problem. Best Regards, Fernando Augusto Udo Schnurpfeil escreveu: Hi Fernando, a usual solution is to have a start/welcome/waiting page. This page may automatically forwards to your application, after checking the size of the browser (which will be done automatically). You can also use a login page for that. Is this a solution for you? If not, you may call the Tobago page with a script, and add the browser size as parameter, but this is not the preferred solution. I, don't know why you have wrong sizes on your 2nd page. Have you a simple example for that? Regards, Udo Am 23.03.10 04:52, schrieb Fernando Augusto: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] Controls self-adjusted in the page
Hey Udo, Thanks for your support again. I already have a login form in the app, and what happens is: 1 - Login Form (the login page has a rows/columns problem and the form doesn't want to be in the center, but I am trying to fix it myself). User uses ID/PWD and validates itself; 2 - Main Form (with the alignment problem stated here). Clicking in the buttons or menus and making the page refresh a few times makes the appearance get better. @Udo: I am sending you in PVT the URL, with login/pwd for you to see the problem. Best Regards, Fernando Augusto Udo Schnurpfeil escreveu: Hi Fernando, a usual solution is to have a start/welcome/waiting page. This page may automatically forwards to your application, after checking the size of the browser (which will be done automatically). You can also use a login page for that. Is this a solution for you? If not, you may call the Tobago page with a script, and add the browser size as parameter, but this is not the preferred solution. I, don't know why you have wrong sizes on your 2nd page. Have you a simple example for that? Regards, Udo Am 23.03.10 04:52, schrieb Fernando Augusto: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] Controls self-adjusted in the page
In Tobago 1.5 the layout management (was rewritten) a moved to core. Udo Am 23.03.10 04:55, schrieb Fernando Augusto: Another question regarding GridLayout class... Why is it inside scarborough theme JAR instead of a core jar, that will be distributed even if I change themes and remove scarborough Fernando Em Ter, 2010-03-23 às 00:52 -0300, Fernando Augusto escreveu: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] Controls self-adjusted in the page
Hi Fernando, a usual solution is to have a start/welcome/waiting page. This page may automatically forwards to your application, after checking the size of the browser (which will be done automatically). You can also use a login page for that. Is this a solution for you? If not, you may call the Tobago page with a script, and add the browser size as parameter, but this is not the preferred solution. I, don't know why you have wrong sizes on your 2nd page. Have you a simple example for that? Regards, Udo Am 23.03.10 04:52, schrieb Fernando Augusto: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] Controls self-adjusted in the page
All renderers are theme dependend. You can't remove scarborough because it's the base theme and it contains all renderers. If you want to remove scarborough you must implement all rendereres yourself. But you can define your own theme based on scarborough and override the css style classes. Helmut Am 23.03.2010 04:55, schrieb Fernando Augusto: Another question regarding GridLayout class... Why is it inside scarborough theme JAR instead of a core jar, that will be distributed even if I change themes and remove scarborough Fernando Em Ter, 2010-03-23 às 00:52 -0300, Fernando Augusto escreveu: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] Controls self-adjusted in the page
Have you had a look on the error/info log of the gridlayout renderer? It gives you several hints when it's unable to layout the controls correctly. Helmut Am 23.03.2010 04:52, schrieb Fernando Augusto: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] Controls self-adjusted in the page
Another question regarding GridLayout class... Why is it inside scarborough theme JAR instead of a core jar, that will be distributed even if I change themes and remove scarborough Fernando Em Ter, 2010-03-23 às 00:52 -0300, Fernando Augusto escreveu: > Hello, > > While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the > following situation: I use GridLayout with * sizes in some rows and > columns. When the page is first loaded, the page organization is quite > messy, with heights and widths different from the window size. When it > first repaints, the controls are ALMOST (by 50px error) aligned > correctly. When the screen is repainted in the 2nd time, the controls > are correctly placed. > How do I fix it, so the controls can be fit the first time the page is > loaded??? > > Best Regards, > > Fernando Augusto >
[TOBAGO] Controls self-adjusted in the page
Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto