Re: Dynamic Properties File Creation not effective

2009-05-22 Thread Magius
Sorry, I understand now it's a strong requirement for you. It's not an usual way of work and it's not strange that you found some problems. I haven't tried anything similar but I'll try to help a bit. In hosted mode GWT uses Java and has direct access to the files. In web mode the code is

Re: Dynamic Properties File Creation not effective

2009-05-22 Thread Magius
The way to have dynamic internationalization is explained here: http://code.google.com/intl/es-ES/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html#DevGuideDynamicStringInternationalization On May 22, 9:44 am, Magius antonio.diaz@gmail.com wrote: Sorry, I understand now it's a strong requirement

Re: Help with storing into session and accessing the session value in a Panel

2009-05-21 Thread Magius
You can create a RPC to ask the server what is the current user role. You'll need to create a session when the user creates a new session and then you can store inside some user data like the login, profile, ... For a stronger security, you'd have to validate in server RPCs that the current

Re: Password Encryption

2009-05-21 Thread Magius
Security is a very complex and wide world. It's not the same an application for a blog with basic security that a back application with a very high security at the browser, communication and server levels. Usually it's enough using a hash D Peters said. For enterprises, usually I have to use

Re: GWT DIV

2009-05-21 Thread Magius
AbsolutePanel is a simple DIV On May 21, 2:48 pm, grigoregeorge grigoregeorge631...@gmail.com wrote: I have this 3 element: Label label1=new Label(TEXT_1); Label label2=new Label(TEXT_2); TextBox selectPage=new TextBox(); I want to organize the elements of above in this maner: div

Re: Dynamic Properties File Creation not effective

2009-05-20 Thread Magius
I'm not sure if I understand you, do you want to create dynamically new files (property or any other) inside a deployed war? It's impossible, you don't know how the server manage the WAR files (usually it decompresses it in a temporal folder), you'll need to access to the deploy directory (using

Re: Accessing a method in a server not through RPC ?

2009-05-19 Thread Magius
Hi, I think your 1st approach is the correct and that you don't need to have 2 RPCs. How many time takes the Grid loading (100x80 = 8000 cells)? Probably some seconds. While loading the new grid, the browser freezes and didn't repaint its window (it's monothread). Seems to be this the problem?

Re: Accessing a method in a server not through RPC ?

2009-05-19 Thread Magius
currentRow could be to update 1 row of the grid, or 1 row of a new invisible grid, On May 19, 12:08 pm, Suren nsurendi...@gmail.com wrote: Hi Magius, I am loading 100x80 cells in the beginning and updating the changed cells in the during my refresh. How many time takes the Grid loading

Re: GWT widget - HTML rendering

2009-05-19 Thread Magius
Have you try using a FormPanel with a TextBox inside? It should be translated as a INPUT tag... On May 19, 2:00 pm, JK samochad...@gmail.com wrote: Hello, My question is related to GWT widget - HTML rendering. If I create the simplest HTML widget with html source inside:      add(new

Re: Password Encryption

2009-05-19 Thread Magius
If you encrypt the password at the client side, everybody can review the javascript algorithm and break it. If you establish an HTTPS connection, then the channel is secure and you can transfer the password in clear or with a simple transformation. On May 19, 6:50 am, abhiram

Re: Password Encryption

2009-05-19 Thread Magius
Unfortunately I've never done, it usually setup by the client administrators. I think it's not complicated but depends on the server you are planning to use On May 19, 3:35 pm, abhiram wuntakal abhir...@gmail.com wrote: Hi Magius,   Thanks a lot for that info. My next question, how do i make

Re: Changing the text according to the loading data in Grid

2009-05-19 Thread Magius
You have to update the message (xx% loaded) and to call to deferredCommand to go on with the load after the browser has repainted the screen. It's very similar to http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/2bd8a812c0d7e21b?hl=en On May 19, 12:48 pm, Suren

Re: StackPanel and CSS

2009-05-19 Thread Magius
In a special case (using myGwt components) and for a special component I needed to add an ID to the component and to specify the CSS by ID. In general it works well using addStyleName. But the styles available depends on the type of HTML component, I think the StackPanel is an HTML TABLE. On

Re: Design best practice

2009-05-19 Thread Magius
You can (a) call to the server and receive a string formatted date or (b) build the string using Date.getDay( ), Date.getMonth( ), ... and an array with Sunday, Monday, ... On May 19, 4:57 pm, Dalla dalla_man...@hotmail.com wrote: I´m building an application where I need to print the day of

Re: StackPanel and CSS

2009-05-19 Thread Magius
There are some predefined styles that GWT applies to each component like '.gwt-StackPanel'. I haven't tried this way. GWT helps you with the HTML and javascript generation but CSS is a bit hard to work with. You can asign a CSS class to a component with 'w.setStyleName(aaa)' and then define the

Re: GWT Module inheritance and entry point class

2009-05-13 Thread Magius
If you want to use the module A separatly you can create a C module with the EntryPoint from A. On May 13, 2:24 am, Ian Bambury ianbamb...@gmail.com wrote: Have a module (*.gwt.xml) file for A that doesn't define an entry point and inherit that in the module file for B Ian

Re: Share Source Files Between Modules (GWT 1.6)

2009-05-13 Thread Magius
Have you add to the classpath 'proj2/src/'? The compiler will need this sources to. On May 12, 11:21 pm, Manu man...@gmail.com wrote: Hi, The scenario is I have two different source trees and I want to share some classes between my projects. For example I have one set of files on

Re: TabPanel

2009-05-13 Thread Magius
In not 100% sure but I remember that the size is 0 until the component is rendered. In this moment the browser calculates the layout of the page. And the browser executes first the js code, then update the DOM and finally it repaint the page. In this case, the final width and height are not

Re: RPC Deployment issue

2009-05-12 Thread Magius
If you are using Eclipse, you can setup 'projectName/war/WEB-INF/ classes' as the default output folder and the class files are compiled and placed in this folder automatically. 'ant' is the best way but with Eclipse is fastest to test it On May 11, 9:30 pm, Sumit Chandel

Re: RPC Call and onSuccess get File.

2009-05-12 Thread Magius
Another way, I created the report using RPC and then I 'window.opened' a new window with the URL of a servlet and the proper ContentType. The report was opened in a new window with Acrobat (PDF), Excel (XLS), ... On May 11, 7:44 pm, Sergio Silva sdcsi...@gmail.com wrote: Just to let everyone

Re: Pagination Example

2009-05-12 Thread Magius
I created one using a flexTable and some buttons to forward, backward, ... I stored all the result in memory and loaded the table with the current page results. On May 12, 7:59 am, abbu minhaj.mis...@gmail.com wrote: Hi everybody, Here i have a FlexTable and a datalist which is getting

Re: Calling RPC Service inside another module

2009-05-08 Thread Magius
Have you tried duplicating the mapping entries for both modules? servlet servlet-nameUserService/servlet-name servlet-class com.test.UserServiceImpl /servlet-class /servlet servlet-mapping servlet-nameUserService/servlet-name

Re: How to get URL for image within an image bundle - if possible

2009-04-15 Thread Magius
The imageBundle has a unique URL for all the images, in fact it's a one big image made by all the little ones. GWT loads the whole image but uses a clipper control to show only the clip containing the image. On Apr 15, 2:53 pm, Joe Hudson joe...@gmail.com wrote: Hi, I'm trying to use

Re: FlexTable population, very faster in Firefox and dead slow in IE. why?

2009-04-02 Thread Magius
I'm not a fanatic of paginated tables but I think this is the easiest way. I receive all the data in the GWT-client and show the information in a paginated way. Each time the user press next you anly have to replace the table data with the next N records. On Apr 2, 3:09 pm, Thomas Broyer

Re: What's the Easiest Way to Handle Server / Client Time differences?

2009-04-01 Thread Magius
It's a bit unclear, the problem with a day is because the difference of 4 hours? One way to manage dates, when all the users are in the same timezone, is to manage it as a String (mmdd for example). It's very clear for all developpers in the project (specially for junior ones). The best way

Re: customized CSS for gwt

2009-03-30 Thread Magius
With IE you can use the IE Developer Toolbar. It's very helpful. I've heard there a version for mozilla but i havn't used it. Sometimes I had to add a specific ID to the widget, to overwrite the element default style with my own styles. On Mar 29, 7:22 pm, Arthur Kalmenson

Re: FlexTable : how to get not wrapping text functionality

2009-03-30 Thread Magius
I achieved to avoid the word wrap after a long session with google and trying different things. And only for IE! Tables are old elements of HTML with a lot of css-options to render. I did several things, probably some of them are not needed, I expect to not have forgot anyone. In my widget

Re: How to use Servlets to download file to browser?

2009-03-29 Thread Magius
On Mar 25, 2:58 am, Thomas Broyer t.bro...@gmail.com wrote: On 24 mar, 21:53, vroom_vroom slabarb...@gmail.com wrote: Surprizingly, keeping all code the same with the exception of the client side...and changing all that code to just: Window.open(/exportExcel, _self, ); actually

Re: Problem with getting response from server only in hosted mode.

2009-03-29 Thread Magius
I think you need to place some Struts stuff in the web.xml file. On Mar 29, 8:34 am, nicopozo nicop...@gmail.com wrote: Hi all, I need some help, I'm working with GTW and using some Struts classes. The thing is that when I compile the GWT code and run it on my server, it works ok. But if I

Re: Problem with opening a new Window

2009-03-23 Thread Magius
Ummm, it seems complex. The DialogBox it's a layer placed on top of the current window, but it's part of the window and I don't know how to print only it (you could manipulate the rest of the elements using css to not print them but I think it not a good idea). Probably the best approach is to

Re: How to configure web.xml to include RPC service?

2009-03-23 Thread Magius
It works fine for me including the full package name. For tomcat, in the module's xml I use the servlet name: servlet path=/rpcCommon class=giros.server.services.common.CommonServiceImpl/ In the web.xml for Weblogic I used the fullModuleNameWithDots/ servletName: servlet

Re: Approaches to develop a stateful application

2009-03-23 Thread Magius
In general, It's as easy as to create a HttpSession in the RemoteServiceServlet. I've created an abstract BaseService that only accepts RPC calls when the child Service NOT isSecured() OR when (the child Service isSecured() AND there's a HttpSession previously stablished). abstract public

Re: Approaches to develop a stateful application

2009-03-23 Thread Magius
That's true, the easiest way is to store all the posiblle information in the client side. And in this way you application is more scalable. Anyway, there are some information that I have to store in the server. I have often 1 or 2 servlets for PDF/XLS/JPG generation that need to shared some basic

Re: Loading Images into GWT via MySQL

2009-03-13 Thread Magius
I stored images in the filesystem. At the client code, I use image1.setURL( /servlet/...) as 'stone' describes above. An HttpServlet receive it and sends the image (resized in my case). It performs well. On Mar 13, 10:08 am, stone stones...@gmail.com wrote: use a servlet url for downloading

Re: GWT project with multiple pages

2009-03-13 Thread Magius
I had this problem some months ago. I had several pages in the same project (GWT 1.4), sharing services, code and images. The first approach was to create several modules, but each module had to be compiled separately. The problem was that the whole compilation took num-modules times more than a

Re: RPC error - garbled text as the response.

2009-03-13 Thread Magius
I remenber to have read that GWT-RPC zips the data sent in some cases. And your message has a PK mark, the same that for ZIP files. If this is true the RPC message could be ok. I cannot help wtith the rest. In the exception log there isn't any gwt classes... By the way, I migrated from GWT 1.4

Re: GWT project with multiple pages

2009-03-13 Thread Magius
? On Fri, Mar 13, 2009 at 6:12 AM, Magius antonio.diaz@gmail.com wrote: I had this problem some months ago. I had several pages in the same project (GWT 1.4), sharing services, code and images. The first approach was to create several modules, but each module had to be compiled separately

Re: Memory leak in GWT based application

2009-03-13 Thread Magius
With GWT 1.4 + IE, there was a problem with ImageBundles. For each image in the form, IE loaded in memory a copy off the whole ImageBundle. Then, when my app grows, a simple form with a few image-buttons used 200Mb, 300 Mb, 400 Mb... It tought it was a memory leak until we found a great message

Re: Synchornous GWT, how can i do that

2009-03-12 Thread Magius
I've had the same problem some months ago. I was developping a big application for a telco enterprise and most of the application forms requiered loading several fields at the same time during initialization. For example, the create a route between servers form requieres to load several drop-down

Re: Slow data loading to a FlexTable

2009-03-05 Thread Magius
I've had the same problem in an application for a customer that uses IE. Finally I've decided to create a paged table to show only a few rows in screen. In this way it's faster to render the table. It's a workaround, not really a solution, but it was acceptable for the customer. On Mar 5, 3:47