Re: Gwt server push
If you are using appengine you can try with the Channel Api http://code.google.com/appengine/docs/java/channel/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/prz7oTOCIvIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mix Fixed and Relative Column Widths in CellTable?
Is anyone using fixed width and relative width columns in Chrome / Mac? I would like to know if this issue that I am having is something that I am doing wrong. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4-TvM2gNydkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mix Fixed and Relative Column Widths in CellTable?
It doesn't display the way that I'd like. I would like that my table has a 100% width so it adjust it size to the container div. Here is a capture: http://www.under-code.com/cap-celltable.png In FF It displays in the way that I want: http://www.under-code.com/cap-ff.png -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/P4BLZ4IAL54J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mix Fixed and Relative Column Widths in CellTable?
You are right, I am a total dumb. My CellTable was inside a VerticalPanel. Removing the VerticalPanel now my CellTable is displaying as I want. About what you are saying of having at least one column without width, that was my first attempt, also displaying well in FF but not in Chrome, but again the trouble (now I know) was the VerticalPanel that was wrapping the CellTable. On one side, thanks a lot! On the other side, sorry me about my idiot doubt :) Sometimes I get blinded looking for the solution in only one place and I don't look other pieces of the puzzle. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fiAaF2c40msJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Mix Fixed and Relative Column Widths in CellTable?
I'm trying to have fixed width columns and relative width columns togheter, can't get it running. As described here http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html I am trying to do it in this way: table.addColumn(checkBoxColumn); table.addColumn(nameColumn, constants.Name()); table.addColumn(emailColumn, constants.Email()); table.setWidth(100%, true); table.setColumnWidth(checkBoxColumn, 10.0, Unit.PX); table.setColumnWidth(nameColumn, 40.0, Unit.PCT); table.setColumnWidth(emailColumn, 50.0, Unit.PCT); But I can't make it work. I am on Chrome / Mac. Is there anything that I am doing bad? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2YzJ1v4lkNkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Spring Security
I have implemented Spring Security and GWT togheter, but what I can't figure out hw can I handle is how to logout when an RPC fails because the user is not logged in anymore. For example, the user logs in in my application, then he for example clean the browser session, so he is not logged in anymore. And now he want's to perform some action that call's an RPC, obviusly this call fails beacause the user need to be logued in to call /rpc/* I would like that if the user logs out by any reason, and calls an RPC that fails (beacause he's logued out) redirect the user to the login again. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zT2RLl-1ClgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is there anyway to don't go to a place until a rpc is done?
For example, let's say that I have this dummy menu [ *Goto Activity Foo* | *Goto Activity Bar* ] When I click on [ *Goto Activity Foo* ] I go to the the Foo Activity, and in the start() method I call to a rpc, let's say dummyService.fetchData(). And, then I click on the [ *Goto Acitivity Bar* ] before that the rpc that the rpc call dummyService.fetchData() finished. Is there anyway to don't go to Bar Activity if the previous rpc is still undone? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/UWIifo3tqJAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there anyway to don't go to a place until a rpc is done?
For example, let's say I have a menu option List Users, and I have a button in the List Users view that removes a User. Then a user of my app clicks in the Delete User button, and inmediately clicks in List Users option in the menu. This RPC goes to the server before that the deleteUser RPC is done. And maybe also the fetchUsers RPC is back before the deleteUser RPC efectively deleted the user, so in the list will come the deleted user. So I was looking a way to don't allow the user to go to the Users Lists activity before the deleteUser rpc is done. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bHS8nJLtSCwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Styling CellList?
thank :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4VXQUZk0KTwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Styling CellList?
I am trying to apply styles to a CellList, and I have this in my Java: interface MyCellListResources extends CellList.Resources { @Source({CellList.css}) MyCellListStyle cellTableStyle(); } interface MyCellListStyle extends CellList.Style { } cellList = new CellListInboxModel(contactCell, resources); And my CellList.css is a copy of the GWT original where I online changed some colors. I have no error at all... but I am not seing my defined styles in my app. I am missing something? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZlJly6r8HfAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How can I create a widget add it to a CellTable and perform some action when it's clicked?
I need to put some kind of Button in a CellTable column. I created a class that extends AbstractCell: public class AnchorCell extends AbstractCellAnchor { @Override public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context context, Element parent, Anchor value, NativeEvent event, ValueUpdaterAnchor valueUpdater) { Window.alert(hello); } @Override public void render(com.google.gwt.cell.client.Cell.Context context, Anchor h, SafeHtmlBuilder sb) { sb.append(SafeHtmlUtils.fromTrustedString(h.toString())); } } And then, when I am working with my CellTable, I create a column in this way: ColumnCompanyModel, Anchor actionsColumn = new ColumnCompanyModel, Anchor(new AnchorCell()) { @Override public Anchor getValue(CompanyModel company) { Anchor h = new ActionsButton(company.getCompanyId(), Acciones + company.getCompanyId()); return h; } }; But I can't get the browser events.. How can I perform some action when my widget is clicked? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/q3ixAJpcHxwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I create a widget add it to a CellTable and perform some action when it's clicked?
Looks i was trying to reinvent the wheel :D Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2WphgIMPNWIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Validation framework
Any of those validation options can be easily used with MVP Editor fw? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Tnuj01pYZZsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT deployment
You can create an ant task to compile your gwt app and create a war. Try with something like this: ?xml version=1.0 encoding=utf-8 ? project name=MyProject default=war basedir=. !-- Configure path to GWT SDK -- property name=gwt.sdk location=/path/to/gwt-sdk / !-- SWT on Mac requires the -XstartOFirstThreadFlag. -- condition property= XstartOnFirstThreadFlag value=-XstartOnFirstThread else=-Dgwt.dummy.arg1= os family=mac/ /condition !-- SWT on Mac requires the -d32 flag if the VM is 64-bit. -- condition property=d32Flag value=-d32 else=-Dgwt.dummy.arg2= and os family=mac/ equals arg1=${sun.arch.data.model} arg2=64/ /and /condition path id=project.class.path pathelement location=war/WEB-INF/classes/ pathelement location=${gwt.sdk}/gwt-user.jar/ fileset dir=${gwt.sdk} includes=gwt-dev*.jar/ !-- Add any additional non-server libs (such as JUnit) -- fileset dir=war/WEB-INF/lib includes=**/*.jar/ /path target name=libs description=Copy libs to WEB-INF/lib mkdir dir=war/WEB-INF/lib / copy todir=war/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar / !-- Add any additional server libs that need to be copied -- /target target name=javac depends=libs description=Compile java source mkdir dir=war/WEB-INF/classes/ javac srcdir=src includes=** encoding=utf-8 destdir=war/WEB-INF/classes source=1.5 target=1.5 nowarn=true debug=true debuglevel=lines,vars,source classpath refid=project.class.path/ /javac copy todir=war/WEB-INF/classes fileset dir=src excludes=**/*.java/ /copy /target target name=gwtc depends=javac description=GWT compile to JavaScript java failonerror=true fork=true classname=com.google.gwt.dev.Compiler classpath pathelement location=src/ path refid=project.class.path/ /classpath !-- add jvmarg -Xss16M or similar if you see a StackOverflowError -- jvmarg value=-Xmx256M/ jvmarg value=${XstartOnFirstThreadFlag}/ jvmarg value=${d32Flag}/ !-- Additional arguments like -styzle PRETTY or -logLevel DEBUG -- arg line=-style PRETTY/ arg value=com.mypackage.myproject.MyEntryPoint/ /java /target target name=hosted depends=javac description=Run hosted mode java failonerror=true fork=true classname=com.google.gwt.dev.HostedMode classpath pathelement location=src/ path refid=project.class.path/ /classpath jvmarg value=-Xmx256M/ jvmarg value=${XstartOnFirstThreadFlag}/ jvmarg value=${d32Flag}/ arg value=-startupUrl/ arg value=MyEntryPoint.html/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=com.mypackage.myproject.MyEntryPoint/ /java /target target name=build depends=gwtc description=Build this project / target name=war depends=build description=Create a war file zip destfile=/path/to/place/the/war/Project.war basedir=war/ /target target name=clean description=Cleans this project delete dir=war/WEB-INF/classes failonerror=false / delete dir=war/mymodule failonerror=false / /target /project -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to show a message while waiting on a RPC service request (not RequestFactory request)
Take a look to this post: https://groups.google.com/forum/#!searchin/google-web-toolkit/onreturn/google-web-toolkit/tvBFoeW3SWw/IY_CVamzTkYJ With this approach your message will show while there is at least one rpc call that hasn't finished. When all your rpc calls finish your message will be hidden. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Temporary disable URL changes when using Places?
You have to put in your PlaceHistoryMapper only the places that want to handle with the history handler. PlaceHistoryMapper is the link between your PlaceTokenizers and GWT's PlaceHistoryHandler that synchronizes the browser URL with each Place. http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html#PlaceHistoryMapper -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What do you think about my Session flow?
I have a login.jsp with the login form. And a hostedPage.jsp where the user is redirected after his logged in. Also I have a MyServiceServlet that extends RemoteServiceServlet. In this class I overrided onBeforeRequestDeserialized and I check if the user if logued in. If he is not, I throw an AuthenticationException protected void onBeforeRequestDeserialized(String serializedRequest) { UserService userService = UserServiceFactory.getUserService(); com.google.appengine.api.users.User user = userService.getCurrentUser(); if (user == null) { throw new AuthenticationException(); } } In this class also I have a few methods to know if the user is logued in, ie: public String getUserId() { HttpServletRequest request = this.getThreadLocalRequest(); HttpSession session = request.getSession(); if (session.getAttribute(SessionVariables.USER_SESSION) != null) { return ((User) session .getAttribute(SessionVariables.USER_SESSION)).getEmail(); } return null; } Then all my ServiceImpl extends MyServiceServlet. I hope this helps you a little. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: compiling projects with multiple GWT Client modules
On Friday, March 11, 2011 1:19:32 AM UTC-3, zixzigma wrote: Hello Everyone, I have broken my Client side part of my GWT app, into several gwt modules, - a common module configuring EventBus,PlaceController,ActivityMapper, + EntryPoint) - several modules each corresponding to a Functional Area (Reports, Tasks, etc), these don't have any EntryPoint, and contain Activity,Places, UI specific to their own functional area. My intention was to work on each module separately, compile and test in isolation, and then for final deployment, pull them all together for a final compile. now when I compile individual modules, I get [ERROR] Module has no entry points defined. I understand this is because only one of my modules has the EntryPoint. That's easy. Right Click over your project - Google - Web Toolkit Settings - Select the modules that doesn't have an Entry Point and remove them from this list. Click in OK, and that's it. Recompile! do you know how I can get around this problem ? - do you think the only solution is to define a dummy EntryPoint, to make compile happy ? It is not necesary. - if you favor monolithic compile, what is the point of having multiple module.gwt.xml ? if all of them are going to be built together ? - if GWT module A INHERITS from GWT Module B, do I have to copy the GWT Sources for Module B into a location so that they be included for Compiling Module A ? You just need to include in your Module A Descriptor the inherits tag; inherits name='com.zixzigma.project.moduleb.Moduleb'/ - does it make sense breaking Client part of GWT project, into several projects ? multiple GWT Modules which have separate builds (ant/maven, etc? ) I have been struggling with figuring out the correct way to configure GWT projects. I Really appreciate your thoughts on the questions. Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where to place external libs?
Did you added your lin to your class path? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where to place external libs?
*lin = lib -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Spring GWT Integration
1+ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Including gwt-widgets in a servlet generated page
Yes, it's simple, create a GWT Module for each entry point that you need. Then create, for example a new JSP file called MyModule.jsp and copy from your recently created hosted page (.html) the script tag to include the GWT generated js. I hope this helps you. PS: And if you need to share some classes you can create a module without an entry point and then in your other Module Descriptors inherits this module with this tag: inherits name='com.mycompany.myapp.mymodule.Mymodule'/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
I think that your trouble is that the classes compiled to JS are different to the classes that you have in the server. Using dev mode after change in a class that I use in a RPC I just reload the page and the problem is gone. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Including gwt-widgets in a servlet generated page
In the same way that in a html page. http://code.google.com/intl/es-AR/webtoolkit/articles/dynamic_host_page.html#servlet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Info. about Gmail Contextual Gadget
http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted http://code.google.com/intl/es-AR/apis/gadgets/docs/dev_guide.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Why my app isn't getting the locale from the browser preferred languages?
I'm using FF in Mac. I have es-ar as the only preferred language. I'm using i18n with Constants. I have this in my Module Descriptor inherits name=com.google.gwt.i18n.I18N/ extend-property name=locale values=en/ extend-property name=locale values=es/ And, i can't see my app in the es locale being the one selected as preferred in FF. But if I go to http://localhost:/?gwt.codesvr=127.0.0.1:9997locale=es I see my app in the correct locale. What am I missing? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I18N compilation error
Do you have your resource properties file? *Begin by creating a default properties file called MyConstants.propertiesin your GWT project. You can place the file anywhere in your module's source path, but the .properties file and corresponding interface must be in the same package. It's fine to place the file in the same package as your module's entry point class.* http://code.google.com/webtoolkit/doc/latest/DevGuideI18nConstants.html#Constants For example in com/google/gwt/i18n/client/Constants.properties containing buttonText=Text of the button -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Append #name to URL
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/History.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: BestPractice : Use of the Editor Framework with MVP (Place, Activity) and RequestFactory
Great -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Widget Library
Check this post: http://swe-strongsteve.blogspot.com/2010/11/creating-re-usable-composites-using-gwt.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Created project, but there is no Build.xml
Try with this build.xml When you compile gwt first your java classes are compiled. ?xml version=1.0 encoding=utf-8 ? project name=MyProject default=war basedir=. !-- Configure path to GWT SDK -- property name=gwt.sdk location=/path/to/gwt-sdk / !-- SWT on Mac requires the -XstartOFirstThreadFlag. -- condition property=XstartOnFirstThreadFlag value=-XstartOnFirstThread else=-Dgwt.dummy.arg1= os family=mac/ /condition !-- SWT on Mac requires the -d32 flag if the VM is 64-bit. -- condition property=d32Flag value=-d32 else=-Dgwt.dummy.arg2= and os family=mac/ equals arg1=${sun.arch.data.model} arg2=64/ /and /condition path id=project.class.path pathelement location=war/WEB-INF/classes/ pathelement location=${gwt.sdk}/gwt-user.jar/ fileset dir=${gwt.sdk} includes=gwt-dev*.jar/ !-- Add any additional non-server libs (such as JUnit) -- fileset dir=war/WEB-INF/lib includes=**/*.jar/ /path target name=libs description=Copy libs to WEB-INF/lib mkdir dir=war/WEB-INF/lib / copy todir=war/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar / !-- Add any additional server libs that need to be copied -- /target target name=javac depends=libs description=Compile java source mkdir dir=war/WEB-INF/classes/ javac srcdir=src includes=** encoding=utf-8 destdir=war/WEB-INF/classes source=1.5 target=1.5 nowarn=true debug=true debuglevel=lines,vars,source classpath refid=project.class.path/ /javac copy todir=war/WEB-INF/classes fileset dir=src excludes=**/*.java/ /copy /target target name=gwtc depends=javac description=GWT compile to JavaScript java failonerror=true fork=true classname=com.google.gwt.dev.Compiler classpath pathelement location=src/ path refid=project.class.path/ /classpath !-- add jvmarg -Xss16M or similar if you see a StackOverflowError -- jvmarg value=-Xmx256M/ jvmarg value=${XstartOnFirstThreadFlag}/ jvmarg value=${d32Flag}/ !-- Additional arguments like -styzle PRETTY or -logLevel DEBUG -- arg line=-style PRETTY/ arg value=com.mypackage.myproject.MyEntryPoint/ /java /target target name=hosted depends=javac description=Run hosted mode java failonerror=true fork=true classname=com.google.gwt.dev.HostedMode classpath pathelement location=src/ path refid=project.class.path/ /classpath jvmarg value=-Xmx256M/ jvmarg value=${XstartOnFirstThreadFlag}/ jvmarg value=${d32Flag}/ arg value=-startupUrl/ arg value=MyEntryPoint.html/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=com.mypackage.myproject.MyEntryPoint/ /java /target target name=build depends=gwtc description=Build this project / target name=war depends=build description=Create a war file zip destfile=/path/to/place/the/war/Project.war basedir=war/ /target target name=clean description=Cleans this project delete dir=war/WEB-INF/classes failonerror=false / delete dir=war/mymodule failonerror=false / /target /project -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Created project, but there is no Build.xml
;) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT External JARs and use on the Client Side
You can include JARs, but those JARs must include the source code. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: No Log messages at level INFO in eclipse.
If you are using dev server, try to update your appengine sdk. I was having the same issues and now using appengine-sdk-1.4.0 I can log with INFO level. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Created project, but there is no Build.xml
In previuos releases of the sdk if you create your project using webAppCreator the build.xml was created. I believe that with gwt 2.1 must be created too. Try using that tool and then import your project to ecplise. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gmail/facebook like chat -asp.net
I think that there's betters places to ask what you need. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to skip history token on place change? (Activies, Places and History management)
If you don't add MyPlace.Tokenizer.class to your AppPlaceHistoryMapper the activity will be fired but the history won't change -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: deploy GWT app with Tomcat istead GAE..
If you need I can give an example of an ant.xml that compiles your gwt code and then makes the war. So you can run the ant task and then upload the war file to your tomcat. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I need your help error: An IncompatibleRemoteServiceException was thrown while processing this call
Try to recompile your gwt code. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 MVP Multiple activities clarification help
Very nice example Mauro! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: BlobInfo using the BlobKey
You should post your answer in Google Appengine group https://groups.google.com/forum/#!forum/google-appengine -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: deploy GWT app with Tomcat istead GAE..
Look here http://code.google.com/intl/es-AR/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 compiler option : -noserver
Is this package com.xyz.dashboard.prototype.gwt.widget translatable to js? You should insert a line in your MyModule.gwt.xml like this !-- Specify the paths for translatable code-- source path='widget'/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Locale setting priority
Hi, i'm using locale with constants. If I print this when I render my jsp for the hosted page meta name='gwt:property' content=locale=es And the user adds to the url the param ?locale=en Wich one of the two locale has priority? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Logging in shared code
I have a similar issue with translations in shared code. Is there any way to know if the code is running on server side or running in client side? For example: if (isRunningOnClient) { Window.alert(myConstants.hello()); } else if (isRunningOnServer) { System.out.println(myResources.getString(hello)); } On 5 ene, 02:45, lalit lalit.bh...@gmail.com wrote: Hi, How can we do logging in the shared code? Some logging need to happen on server side and some logging will be happening on client side and there might be a possibility of same log active in both client and server side. thanks in advance, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to write file with GWT?
Can't you deploy your app in a Tomcat? If you do this, you don't have any restriction. On 4 ene, 17:18, a...@mechnicality.com a...@mechnicality.com wrote: Yes, but that doesn't actually 'write' the file does it? It just generates a String which contains the XML representation of the java object. Its not persisted anywhere. You can generate a String representation of an object on the client with a few StringBuilder calls if you want to. I believe that OPs problem is that he wants to save it somewhere. Alan On 1/4/2011 12:05 PM, A. Stevko wrote: I've used this code frag to write XML on app engine without any problems. ByteArrayOutputStream baos = new ByteArrayOutputStream( ); XMLEncoder encoder = new XMLEncoder(baos); encoder.writeObject(myObject); encoder.close(); return baos.toString(); I believe I got the code from Example Depot at http://www.exampledepot.com/egs/java.beans/WriteXml.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Alan Chaney CTO and Founder, Mechnicality, Inc.www.mechnicality.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How can I know if my script is running inside an iframe or not?
I have a script that sometimes will run inside an iframe an sometimes not. How can i know if the script if running inside an iframe? Another doubt, if the script is running inside the iframe how can i redirect the parent window? If I do Window.Location.assign(/newUrl) obviusly the content of the iframe is redirected but I need to redirect the parent window of the iframe. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: deploy new server version - how to inform clients?
When you call to your services you can do something like this in your AsyncCallback public void onFailure(Throwable caught) { if (caught instanceof IncompatibleRemoteServiceException) { Window.Location.assign(/newUrl); } } Regards. On 4 ene, 09:22, Nirmal Patel nirmaljpa...@gmail.com wrote: You need to handle IncompatibleRemoteServiceException Read here:http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication... Regards, Nirmal -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: File choose
Take a look to the gwtupload project source http://code.google.com/p/gwtupload/ On 3 ene, 08:44, jc jc.chan...@gmail.com wrote: I am using only GWT code for file choosing, but posting code are in javascript and HTML 5. I know only the java and not other. So i need app for GWT for read, write and access file. Please send me some sample app in GWT and not in other like HTML, or javascript. Because, here GWT will convert to javascript as already know. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to get a widget from another panel
Just add the widget to the panel that you want. panel.add(widget); On 3 ene, 00:29, Néstor Boscán nesto...@gmail.com wrote: Hi I have a GWT application with two panels. How to I get a Widget from one panel from the other panel?. Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Happy New Year
++; On 1 ene, 16:08, gopal bhalala gopalbhal...@gmail.com wrote: Happy New Year to all Best Regards Thanking you, Gopal Dhanjibhai Bhalala On Sat, Jan 1, 2011 at 9:27 PM, Duong BaTien duong.bat...@gmail.com wrote: Happy New Year to all participants in GWT, GAE and Objectify. On Fri, Dec 31, 2010 at 12:33 PM, Jeff Schwartz jefftschwa...@gmail.comwrote: Happy New Year to you all! -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Dr. Duong BaTien DBGROUPS BudhNet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: New user - how to create new GWT project
http://code.google.com/intl/es-AR/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideCreatingServices On 27 dic, 19:12, xdzgor xdz...@hotmail.com wrote: Hi - I am using Eclipse to create a GWT-based application. When I create a new GWT remote service, an interface called, for example, MyTestService is created. In this interface, a static class called Util is automatically created which won't compile, because it refers to a class (or interface?) called MyTestServiceAsync. How do I get Eclipse to generate the necessary code for me, so that the basic project will compile? Thanks, Peter -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there anyway to choose language in runtime?
Thanks. On 28 dic, 15:59, Jim Douglas jdou...@basis.com wrote: That seems to be the approved method, but with one suggestion -- if you need to work with localized number and date formats, consider offering complete locales (es_MX) as opposed to just language codes (es). http://gwt.google.com/samples/Showcase/Showcase.html?locale=fr_FR#!Cw... (See the locale selector in the upper right.) http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.htmlhttp://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html#... On Dec 28, 12:21 pm, nacho vela.igna...@gmail.com wrote: Hi, i'm using i18n with Constants, i have two languages {ES, EN} and it runs ok. What i need that when the user choose another language in a combo, for example [Spanish] show the content of my app in Spanish. What i'm doing is to redirect to the user to my app url passing the locale as parameter. For examplehttp://myapp.com?locale=es Is this the correct way to change the display language? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder i18n best practices?
Hi, i would to know about your experience with UiBinder and i18n? Wich is is the best way to do this? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is there anyway to choose language in runtime?
Hi, i'm using i18n with Constants, i have two languages {ES, EN} and it runs ok. What i need that when the user choose another language in a combo, for example [Spanish] show the content of my app in Spanish. What i'm doing is to redirect to the user to my app url passing the locale as parameter. For example http://myapp.com?locale=es Is this the correct way to change the display language? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: handling session timeout - is there a central hook?
In the server side I created a class (MyServiceServlet) that extends from RemoteServiceServlet and in the method onBeforeRequestDeserialized(String serializedRequest) i check if the user is logued. If is not, i throw a AuthenticationException. And in the client side I created a abstract class that implements AsyncCallbackT, and i created a method onReturn(Throwable caught) in this method i check if the Exception is instance of AuthenticationException i redirect the user to the login. Finally, every ServiceImpl extends from MyServiceServlet so i don't need to check in every method if the user is logued. I hope this could be useful for you. Regards! On 28 dic, 09:27, sergio von Knorring svonknorr...@gmail.com wrote: Hi Magnus You can implement a java Filter in the server Side and check if the session is valid if is not valid yo do the redirect in the server side. you can use that way if you call a normal resource to the server for example a .js or img or .jsp or html to use it for a RPC call you must implement a custom response to the client , and there manage the redirect something like that, in your web.xml filter filter-nameMyFilter/filter-name filter-classcom.mycompany.myapp.MyFilter/filter-class /filter filter-mapping filter-nameMyFilter/filter-name url-pattern/*/url-pattern /filter-mapping in the client side you must have a class like public abstract class DefaultAsyncCallbackT implements AsyncCallbackT { private void handleException(Throwable caught) { String msg = caught.getMessage(); if(caught instanceof SerializableException) { SerializableException se = (SerializableException)caught; msg = se.getMessage(); String[] tokens = msg.split(\\|); if (some custom code to do the redirect.equals(tokens[0])){ GWT.log(Token invalido, redirect a: +tokens[1], null); redirect(tokens[1]); return; } } Regards On Mon, Dec 27, 2010 at 7:56 PM, Magnus alpineblas...@googlemail.comwrote: Hi, I wondered why my application still worked, even when the session timed out on the server. It still worked, because the current user is also stored in my application and I never check this against the server's session data. However, I have a lot of services and each service has a lot of methods. The only solution that comes into my mind is to check the session on every service call, i. e. in every method: class MyServiceImpl... { ... public void oneOfManyMethods () { if (sessionTimedOut ()) gotoLoginPage (); } But this would be a bad solution, since I had to do this check in every method. It would be much more elegant if there were a central place for this code. Can I place some code somewhere so that it will be executed on every service call? Thanks Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Application Login/Logout
On 27 dic, 04:01, katampa...@gmail.com katampa...@gmail.com wrote: Hi, I am developing RIA with GWT frame work which is built using MVP architecture [Views, Places, Activities model]. This application include login page, main page and logout page etc.. Each page is made as a view and these pages are shown by using activities. At server, i am using RPC services to send the data to client. I have few queries regarding the GWT MVP pattern. 1. How to delete the view objects in main page, when user logout from the application? Are you downloading all the code in the same page? I mean, dispite the user is logued or not you are downloading the code for your tabs and your services, etc? Why don't you use 2 pages? login.html and logued.html? If you still want to delete widgets from the page try with RootPanel.get(ID).remove(IsWidget child); i.e. when user login and open some tabs and logout without closing the tabs in the main page. Next time if any user login again in the same browser, then the tabs in the main page are still opened and its showing the same main page view with tabs open. I want to create the view objects each time when user login (delete the history views when user logout). 2. How to redirect to login view when session times out in the server? Validate the session and then Window.Location.assign('/login.html'); 3. I am using views, places activities at client side to show different pages in the browser using MVP pattern. Is it best way to design GWT applications? I dont't know if this is the best way, but it works nice for me. Regards, Pavan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Tomcat - Failed to get the SerializationPolicy (gwt/rpc)
I think that you forget in any of your model classes to implements com.google.gwt.user.client.rpc.IsSerializable; Every class that you want to send through a RPC you need to make it implement com.google.gwt.user.client.rpc.IsSerializable; If this is not your problem, be sure that you have a zero-argument constructor in all your models class. Regards! On 27 dic, 11:51, Magnus alpineblas...@googlemail.com wrote: Hi, my Tomcat shows the following errors in the logs: Dec 27, 2010 8:52:47 AM org.apache.catalina.core.ApplicationContext log INFO: ChatServlet: ERROR: The serialization policy file '/bcs/ 99E2FAA12E412633D1C3951141C107AD.gwt.rpc' was not found; did you forget to include it in this deployment? Dec 27, 2010 8:52:47 AM org.apache.catalina.core.ApplicationContext log INFO: ChatServlet: WARNING: Failed to get the SerializationPolicy '99E2FAA12E412633D1C3951141C107AD' for module 'http://www.bavaria64.de/ bcs/bcs/'; a legacy, 1.3.3 compatible, serialization policy will be used. Dec 27, 2010 1:37:03 PM org.apache.catalina.core.ApplicationContext log INFO: ChatServlet: ERROR: The serialization policy file '/bcs/ 99E2FAA12E412633D1C3951141C107AD.gwt.rpc' was not found; did you forget to include it in this deployment? Dec 27, 2010 1:37:03 PM org.apache.catalina.core.ApplicationContext log INFO: ChatServlet: WARNING: Failed to get the SerializationPolicy '99E2FAA12E412633D1C3951141C107AD' for module 'http://www.bavaria64.de/ bcs/bcs/'; a legacy, 1.3.3 compatible, serialization policy will be used. What does this mean? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Calling Server Side code on Client Side
Hi Taurun. You can use in your client code classes that you are using in the server. For example, your model classes. But, you can't use in those classes any class that you don't have the source. Suposse that you have a model class: User.class, in this class, all the code must be translatable (you must have the source of anything you use here) and also thi class must implements isSerializable. http://java.dzone.com/news/understanding-gwt-compiler Are you using any library inside those Persistent classes that you say? Maybe that's the problem. Paste some of your Persistent class code so we can see the problem. On 11 dic, 06:13, Tarun tarun.chha...@gmail.com wrote: Hi David, I tried that but it seems GWT doesn't allow the inclusion of any kind of server code in the shared package. I tried to put the Persistent Classes in the shared folder but it still doesn't work. This doesn't seem to be fair, how can one make AJAX applications without calling the server side code at all!!! On Nov 30, 7:38 am, David Chandler drfibona...@google.com wrote: HiTarun, You need to put your domain classes in a shared dir, then add source path=shared tag in your .gwt.xml. See http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec... for more info. HTH, /dmc On Mon, Nov 29, 2010 at 5:31 AM,Taruntarun.chha...@gmail.com wrote: I am creating a GWT based application using Google App Engine for Java. I have created a persistent class whose data is to be shown in a widget using GWT RPC calls. I run a query on the server side and pass its results as a List of objects of the persistent class in the *ServiceImpl class on the server side. To do that I have imported the class in both *Service class and *ServiceAsync class. Whenever I try to compile the GWT code the following error occurs: [ERROR] Errors in 'file:/C:/.../*Service.java' [ERROR] Line 15: No source code is available for type (Server Class) did you forget to inherit a required module? It seems as if the client side code is unable to import the server side code. Is there any way to solve this problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkithttp://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: WEB SERVICES
Yes, but i can't remember all the step that i followed. Take a look to this, it is similar in some way to your needs http://stackoverflow.com/questions/2629297/is-it-possible-to-debug-gwt-client-code-on-a-remote-server-using-intellij-9-commu The first step is the different one, where you must configure your project to use Tomcat. Let me know if this helped you :) On 6 dic, 13:17, bond daniele.re...@gmail.com wrote: Hi nancho. I've a similar problem. I've a web project made with eclipse plugin that run on embedded jetty. I want to create a ws with axis2 but the axis2 plugin don't permit me to add a webservice because my project has not a server (Tomcat). Have you created a gwt project that can run on Tomcat with eclipse + gwt eclipse plugin? Can you give me some suggestions? Thanks very much Daniele On 5 Dic, 14:50, nacho vela.igna...@gmail.com wrote: What i did was interact to the ws in my gwt app server code. What i mean is, for example, if you are using RPC to comunicate to your server, that you need to call to your ws in your MyServiceImpl class and that's all. But i have to say to you, that i needed to use JAX-WS and this lib is not supported with appengine, so i had to run and deploy my app in a Tomcat server. I don't know if this your case too. On 4 dic, 04:36, satti vsatish@gmail.com wrote: hi, can any one help how to intract with webservice in GWT. actually i genarated Java code from WSDL by using apache axis2, so that where i hav to add that code in my GWT application, can u please tell me step by step because i m new to GWT can any one help me pls... Thank in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is there a way to use i18n in a shared class that works on client and server too?
Any idea? Noone did this before? On 19 nov, 12:36, nacho vela.igna...@gmail.com wrote: I have some Validators classes. I use those classes in the client code, so I think to use Constants: For example, in some part of my AccountValidator I have this: errors.add(myConstants.accountTypeRequired()); That works great for GWT compiled code. But what about if I need to use this same validator on the server and I want to send the errors on a Exception through the rpc service? How can I handlei18nin a class that I use in server classes and in client classes? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: WEB SERVICES
What i did was interact to the ws in my gwt app server code. What i mean is, for example, if you are using RPC to comunicate to your server, that you need to call to your ws in your MyServiceImpl class and that's all. But i have to say to you, that i needed to use JAX-WS and this lib is not supported with appengine, so i had to run and deploy my app in a Tomcat server. I don't know if this your case too. On 4 dic, 04:36, satti vsatish@gmail.com wrote: hi, can any one help how to intract with webservice in GWT. actually i genarated Java code from WSDL by using apache axis2, so that where i hav to add that code in my GWT application, can u please tell me step by step because i m new to GWT can any one help me pls... Thank in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is there a way to use i18n in a shared class that works on client and server too?
I have some Validators classes. I use those classes in the client code, so I think to use Constants: For example, in some part of my AccountValidator I have this: errors.add(myConstants.accountTypeRequired()); That works great for GWT compiled code. But what about if I need to use this same validator on the server and I want to send the errors on a Exception through the rpc service? How can I handle i18n in a class that I use in server classes and in client classes? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + JDO (GAE)
+1 On 7 nov, 11:17, Jeff Schwartz jefftschwa...@gmail.com wrote: +1 On Sun, Nov 7, 2010 at 5:46 AM, Shawn Brown big.coffee.lo...@gmail.comwrote: Hi, I've been using JDO these weeks. I've followed the tutorial at GAE Docs, and I learned how to create and get entity objects. It just my opinion based on struggling with JDO that objectify is much easier to use. Much much much easier. http://code.google.com/p/objectify-appengine/ Shawn -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Jeff -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + MySQL
Are you running the app in the Jetty server provided by the Google plugin? This server emulates appengine enviroment and you must use classes that are in the appengine whitelist: http://code.google.com/intl/es-AR/appengine/docs/java/jrewhitelist.html Try running your app in a Tomcat. On 7 nov, 08:52, Paul Robinson ukcue...@gmail.com wrote: Is the mysql driver jar file in the server's runtime classpath? It ought to be in your war file. On 05/11/10 13:23, Ross McKinnon wrote: Hi there, I've spent numerous hours this week trying to get my existing GWT application to connect with an existing MySQL database with no luck. I've created my code to connect to the database using JDBC and is kept in the server package to ensure it remains as java code. Also i have included the mySQL jar file in the build path for the project but still get an error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ... I have tried numerous ways of getting the database and have ran out of ideas now so thought I would consult the experts to see if any kind person can lend a hang.. Thanks for any help, Ross -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I het a URL link to open up my web app passing an argument?
great :) On 27 oct, 08:17, novarse stephenmwi...@gmail.com wrote: great, thanks nacho. exactly what i wanted On Oct 27, 4:01 am, nacho vela.igna...@gmail.com wrote: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g... On 26 oct, 07:59, novarse stephenmwi...@gmail.com wrote: Hi all, Lets say I have a twitter message containing an URL link which has an event Id as an argument somewhere as part of the URL e.g. Next event is tuesday.http://myapp.appspot.com?eventId=678; or Next event is tuesday.http://myapp.appspot.com/myservlet?eventId=678; or some other composition?? how can I communicate between the URL and my web app so that my app starts and uses the eventId? thanks stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Servlet mappings in GWT development mode
Yo say that you can enter in http://localhost/foo.html but then you say that you want to enter to http://mymachine:/foo.html?gwt.codesvr=mymachine:9997 What about if you enter to http://127.0.0.1:/foo.html?gwt.codesvr=127.0.0.1:9997 On 26 oct, 19:39, Constantin Tanno constantin.ta...@gmail.com wrote: My GWT host page happens to be a JSP page called hostpage.jsp and I have a bunch of different URLs all mapped to it through web.xml: servlet servlet-namehostPageServlet/servlet-name jsp-filehostPage.jsp/jsp-file /servlet servlet-mapping servlet-namehostPageServlet/servlet-name url-patternfoo.html/url-pattern /servlet-mapping servlet-mapping servlet-namehostPageServlet/servlet-name url-patternbar.html/url-pattern /servlet-mapping When I'm not running in GWT development mode, everything works fine - I can enter inhttp://localhost/foo.htmlorhttp://localhost/bar.html and either way hostpage.jsp is invoked and the GWT module is loaded and runs. However, when I'm running in GWT development mode, if I enter in a URL like: http://mymachine:/foo.html?gwt.codesvr=mymachine:9997 I just get a 404 error. Why does this not work? How can I get it to work? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How can i delete a GWT Module?
I made a GWT module in eclipse (File - New - Module) And now, i want to delete that module. I already deleted MyModule.gwt.xml and MyModule.java (entry point class). But when i try to run my application i get this in my console: Loading modules com.mycompany.myapp.MyModule [ERROR] Unable to find 'com/mycompany/myapp/MyModule.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? I also tried: Project Properties - Google - Web Toolkit - Entry Point Modules, and remove the module here. But the error still there. How can i delete the module? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: File Upload from jsp through GWT client
Have you tried this lib? http://code.google.com/p/gwtupload/ On 27 oct, 12:00, WL wailai...@hotmail.com wrote: Hi , I’m working on a application which has GWT client and jsp’s. The Layout of the page is designed in the GWT client and the body of the page is taken from the jsp. I want to do a file upload from the jsp through the GWT Client using RequestBuilder class. I have tried using the FormPanel together with the FileUpload and they did not work well for me(I passed the file name from the jsp to the text box in the formpanel using javascript) Only if I’m submitting the form then I’m getting the file uploaded successfully, but I lose the context of my page. Can anyone suggest how to do a file upload from a jsp through the GWT client using RequestBuilder class, without losing the context of the originating page. Any help to solve this issue is appreciated. Thanks in Advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I het a URL link to open up my web app passing an argument?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/History.html On 26 oct, 07:59, novarse stephenmwi...@gmail.com wrote: Hi all, Lets say I have a twitter message containing an URL link which has an event Id as an argument somewhere as part of the URL e.g. Next event is tuesday.http://myapp.appspot.com?eventId=678; or Next event is tuesday.http://myapp.appspot.com/myservlet?eventId=678; or some other composition?? how can I communicate between the URL and my web app so that my app starts and uses the eventId? thanks stephen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: createLoginUrl not working in gwt dev mode (GWT and GAE tutorial)
I made something like that in a servlet: I have this method in my servlet: private boolean isDevelopment() { return ( SystemProperty.environment.value() == SystemProperty.Environment.Value.Development ); } so you can do something like this: String redirectUrl = /MyApp.html; if (isDevelopment()) { redirectUrl += ?gwt.codesvr=127.0.0.1:9997; } resp.setContentType(text/plain); resp.sendRedirect(userService.createLoginURL(redirectUrl)); On 21 oct, 12:16, David Chandler drfibona...@google.com wrote: A possible workaround is to use GWT.isProdMode() and manually append the codesvr URL. HTH, On Thu, Oct 21, 2010 at 10:17 AM, BrianP brifo...@gmail.com wrote: I've run into the same problem. I'm running in dev mode at http://127.0.0.1:/mypage.jsp?gwt.codesvr=127.0.0.1:9997but GWT.getHostPageBaseURL() returnshttp://127.0.0.1:/and so I am redirected there. Is there any way to detect dev mode and append my info, or have GWT.getHostPageBaseURL() return a dev mode url? On Sep 3, 9:13 am, moriones avo...@gmail.com wrote: i get more or less the behaviour described in the quoted message (gwt 2.0.4, appengine 1.3.7) when I return from login the application works but i cannot see what i send to the console with System.out, i cannot debug, I suppose this is because of the wrong urlhttp://127.0.0.1:/ the system.out worked just one time after i made a 'gwt compile' (but the debug still didn't work) -- Forwarded message -- From: Billy billy_turc...@hotmail.com Date: 19 Mag, 02:55 Subject:createLoginUrlnotworkingin gwt dev mode - loses gwt.codesvr parameter To: Google Web Toolkit I have an application using GWT and AppEngine (more or less following the StockWatcher tutorial) which I access locally as: http://127.0.0.1:/mypage.jsp?gwt.codesvr=127.0.0.1:9997 I am creating a login url using: userService.createLoginURL(requestUri) where requestUri is passed to my server-side login service from my entry point as: GWT.getHostPageBaseURL(). After logging in I am redirected tohttp://127.0.0.1:/ This loses the dev mode parameter gwt.codesvr and thusly this redirect only works after I have a done a GWT compile. (This is using GWT SD 2.0.3 and App Engine SDK 1.3.3) Is it possible to use thecreateLoginUrlfunctionality while remaining in dev mode? Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkithttp://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to dim background while showing a DialogBox?
I didn't knew about this. So, so, so nice. That's why i love gwt :) On 20 oct, 09:57, marius.andreiana marius.andrei...@gmail.com wrote: On Oct 20, 1:58 pm, Lothar Kimmeringer j...@kimmeringer.de wrote: Am 20.10.2010 12:51, schrieb marius.andreiana: Do you have any suggestions on how to dim background while showing a modal DialogBox? When DialogBox is hidden, the background should come back to normal. When working with GWT 2.0, call setGlassEnabled(true) in your DialogBox-class (e.g. in the constructor). I've googled for this but I guess it was so obvious that nobody asked about it before... Danke :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to implement UserAuth / Login in GWT2.1
Are you looking something like this? http://code.google.com/intl/es-AR/webtoolkit/articles/dynamic_host_page.html On 19 oct, 08:41, Patrick Hilsbos patrick.hils...@cloudsters.net wrote: Hi, can someone tell me how to implement an user auth - using userinformation in gwt2.1? i already got, that i should subclass UserInformationSimpleImpl - but what to do next / how to wire up? thx -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Send e-mail in GWT
You can use appengine to deploy your app and use the appengine mail api. On 4 oct, 09:41, Jeff Chimene jchim...@gmail.com wrote: Since you want the recipient address hidden, you cannot use GWT[1]. You'll have to send a request to the server and have it compose and send the email. [1] Otherwise, you'd use a *mailto* url On Mon, Oct 4, 2010 at 2:37 AM, naveen naveenkumarnl1...@gmail.com wrote: Hi team, My requirement is to send a mail from my website. i will elaborate the requirement. I have my own website, which is in simple html now. Am planning to develop my website using gwt. There is a contact us page in the website where a user can mail an enquiry to us. the form is like below. Name: Sender E-mail:sen...@abc.com e-mail%3asen...@abc.com Message: body sendbutton As soon as user clicks on send button, the mails come to specified To address. To address is hard coded and hidden. I want the same functionality to be implemented in gwt. how can i do it? Please help. Thanks and regards Naveen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: calling GWT Javascript compiler from ant
Try with this: ?xml version=1.0 encoding=utf-8 ? project name=ProjectName default=war basedir=. !-- Configure path to GWT SDK -- property name=gwt.sdk location=/path/to/gwt / !-- SWT on Mac requires the -XstartOFirstThreadFlag. -- condition property=XstartOnFirstThreadFlag value=- XstartOnFirstThread else=-Dgwt.dummy.arg1= os family=mac/ /condition !-- SWT on Mac requires the -d32 flag if the VM is 64-bit. -- condition property=d32Flag value=-d32 else=-Dgwt.dummy.arg2= and os family=mac/ equals arg1=${sun.arch.data.model} arg2=64/ /and /condition path id=project.class.path pathelement location=war/WEB-INF/classes/ pathelement location=${gwt.sdk}/gwt-user.jar/ fileset dir=${gwt.sdk} includes=gwt-dev*.jar/ !-- Add any additional non-server libs (such as JUnit) -- fileset dir=war/WEB-INF/lib includes=**/*.jar/ /path target name=libs description=Copy libs to WEB-INF/lib mkdir dir=war/WEB-INF/lib / copy todir=war/WEB-INF/lib file=${gwt.sdk}/gwt-servlet.jar / !-- Add any additional server libs that need to be copied -- /target target name=javac depends=libs description=Compile java source mkdir dir=war/WEB-INF/classes/ javac srcdir=src includes=** encoding=utf-8 destdir=war/WEB-INF/classes source=1.5 target=1.5 nowarn=true debug=true debuglevel=lines,vars,source classpath refid=project.class.path/ /javac copy todir=war/WEB-INF/classes fileset dir=src excludes=**/*.java/ /copy /target target name=gwtc depends=javac description=GWT compile to JavaScript java failonerror=true fork=true classname=com.google.gwt.dev.Compiler classpath pathelement location=src/ path refid=project.class.path/ /classpath !-- add jvmarg -Xss16M or similar if you see a StackOverflowError -- jvmarg value=-Xmx256M/ jvmarg value=${XstartOnFirstThreadFlag}/ jvmarg value=${d32Flag}/ !-- Additional arguments like -styzle PRETTY or -logLevel DEBUG -- arg line=-style PRETTY/ arg value=com.mycompany.myProject.MyEntryPoint/ /java /target target name=hosted depends=javac description=Run hosted mode java failonerror=true fork=true classname=com.google.gwt.dev.HostedMode classpath pathelement location=src/ path refid=project.class.path/ /classpath jvmarg value=-Xmx256M/ jvmarg value=${XstartOnFirstThreadFlag}/ jvmarg value=${d32Flag}/ arg value=-startupUrl/ arg value=MyEntryPoint.html/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=com.mycompany.myProject.MyEntryPoint/ /java /target target name=build depends=gwtc description=Build this project / target name=war depends=build description=Create a war file zip destfile=/path/to/MyWar.war basedir=war/ /target target name=clean description=Cleans this project delete dir=war/WEB-INF/classes failonerror=false / /target /project Let me know if it works for you. On 4 oct, 11:45, 3p1...@googlemail.com 3p1...@googlemail.com wrote: Hi Sebastian and thank you for your help ant gives me Reference project.class.path not found. on this line: java failonerror=true fork=true classname=com.google.gwt.dev.Compiler and do i have to do anything in your lib requirement or can i omit it in my case? best regards On Oct 4, 4:02 pm, Sebastian Rothbucher sebastian.rothbuc...@clarities.de wrote: Hi, you can invoke it e.g. with the following script: target name=gwtc depends=libs description=GWT compile to JavaScript java failonerror=true fork=true classname=com.google.gwt.dev.Compiler classpath pathelement location=src/ !-- this is gwt-dev.jar gwt-user.jar all JARs you have yourself -- path refid=project.class.path/ /classpath !-- add jvmarg -Xss16M or similar if you see a StackOverflowError -- jvmarg value=-Xmx256M/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=org.whatever.yourapphere/ /java /target Basically, the GWT compiler is just a java program you can invoke via the java command... Hope this helps - best regards Sebastian Rothbucher On 4 Okt., 12:13, 3p1...@googlemail.com 3p1...@googlemail.com wrote: Hi everyone How can i call the gwt Javascript compiler from an Ant build script? I am using eclipse 3.5 with GWT plugin 2.0 best regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Datastore
I'm also using Objectify and it is great and simple On 25 sep, 06:09, Didier DURAND durand.did...@gmail.com wrote: Hi Trevor, I would suggest giving also a try to Objectify which a layer on top of raw Datastore: it makes access to data much easier and has a lower learning curve than JDO. Seehttp://code.google.com/p/objectify-appengine/(have a special look at wiki pages) I moved away from JDO for Objectify and I am very satisfied with it. didier On Sep 24, 5:17 pm, David Chandler turboman...@gmail.com wrote: You can use any of GWT's client / server protocols to connect to a servlet running on App Engine that in turn calls the Datastore. See the App Engine docs and forum for Datastore questions. The following links may help on the GWT side: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html http://code.google.com/p/gwt-dispatch/ http://turbomanage.wordpress.com/2009/10/07/calling-appengine-securel... HTH, /dmc On Sep 24, 5:30 am, trevor trevor.bra...@btinternet.com wrote: Having trouble in finding how to use Datastore or BigTable in GWT. I have developed using Python and usd datastore. Where should I look -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Any recommended input validation lib?
Thnaks. On 27 sep, 21:11, Andrew Pietsch andrew.piet...@gmail.com wrote: Hi there, thanks for your compliments about pectin. Just as a matter of interest I've started talking with the author of Bindgen (http://bindgen.org/) about the possibilities of using it with pectin and things are looking promising. If we can get it working (and I think we can) you'll be able to create meta models using type safe code completed bindings generated from your bean graph. e.g. fieldBoundTo(employee.employer().name()), and in cases where you don't need a meta model you'll be able bind directly to the auto-generated model. This is a little old now but give's a bit of an idea:https://wave.google.com/wave/waveref/googlewave.com/w+UQNykyjbA I'd also like to see this integrated with the new gwt validation code (or at least a similar mechanism), so if anyone feels like contributing drop me a line. Cheers Andrew On Sep 28, 12:59 am, P.G.Taboada pgtabo...@googlemail.com wrote: Learn from gwt-pectin, this is a comment I found in the bikeshed source code. And, I must say, gwt-pectin is a really nice binding and validation framework. To be honest, it is the best I have seen until now. My wishlist? GWT uses a metamodel and API like gwt-pectin does provide, plus a nice uibinder integration to make things easier. And, by the way, what about a fluent builder API for forms like the one in gwt-mosaic? Badly missing something like that in GWT. brgds, Papick On 27 Sep., 10:51, Thomas Broyer t.bro...@gmail.com wrote: On Sep 27, 2:47 am, nacho vela.igna...@gmail.com wrote: Hi, searching on google i've found a few gwt validation libraries. I would like to know if you are using anyone in special or if you have tested some of them. FYI, GWT 2.1 should come with built-in support for javax.validation. I don't know if they borrowed code from there but the GWT team has been talking a lot with the maintainer of the gwt-validation project:https://wave.google.com/wave/waveref/googlewave.com/w+yAUzf_-lA(you have to be subscribed to the GWT-Contributors Google Group to access the wave) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Any recommended input validation lib?
Hi, searching on google i've found a few gwt validation libraries. I would like to know if you are using anyone in special or if you have tested some of them. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT save and modify in database(mysql)
I see lot of code but what is your trouble / question? On 20 sep, 07:34, Buica Tatiana doggie...@yahoo.com wrote: So i had to do the following assignment in GWT: 1.Implement a selection/de-selection component as described below: The selected item in the first list goes into the second list and is removed from the first list when the button is pressed. The selected item in the second list goes into the first list and is removed from the second list when the button is pressed. The latest selected item text is also displayed into the bottom text control with the label “Selection”. There also exists two checkboxes allowing the user to SAVE the content of the second list to a file or a database. After i searched a lot over the internet i came out with this program: This is the client side, meaning that this is what the user can see in the Web Browser. I made the whole GUI in the 'onModuleLoad()' section, including the action-listeners i needed for my application. I also had to communicate with the server side so i can connect to a database. 'CInterfaceAsync inter = GWT.create(CInterface.class);' with this line i create a connection with the server-side trough an interface that should be created on the client side too. using inter.function allows me to access the methods from the server side. package gwt.hom.client; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ChangeEvent; import com.google.gwt.event.dom.client.ChangeHandler; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.*; public class WebApp implements EntryPoint { private static final long serialVersionUID = 1L; CInterfaceAsync inter = GWT.create(CInterface.class); public static ListBox list1; public ListBox list2; public Button left, right, save; public Label label, file, db; ArrayListString list1Elems, list2Elems; public CheckBox toFile, toDB; public TextArea selected; public Panel panel, panel2, panel3; @Override public void onModuleLoad() { list1 = new ListBox(); list1.setVisibleItemCount(4); list1.addChangeHandler(new ChangeHandler() { @Override public void onChange(ChangeEvent event) { int selectedIntdex = list1.getSelectedIndex(); String selectedString = list1.getValue(selectedIntdex); selected.setText(selectedString); } }); inter.getInfo1(new AsyncCallbackArrayListString() { @Override public void onSuccess(ArrayListString result) { IteratorString it = result.iterator(); while (it.hasNext()) list1.addItem(it.next().toString()); } @Override public void onFailure(Throwable caught) { Window.alert(Error loading the Database! ); } }); list2 = new ListBox(); list2.setVisibleItemCount(4); list2.addChangeHandler(new ChangeHandler() { @Override public void onChange(ChangeEvent event) { int selectedIntdex = list2.getSelectedIndex(); String selectedString = list2.getValue(selectedIntdex); selected.setText(selectedString); } }); inter.getInfo2(new AsyncCallbackArrayListString() { @Override public void onSuccess(ArrayListString result) { IteratorString it = result.iterator(); while (it.hasNext()) list2.addItem(it.next().toString()); } @Override public void onFailure(Throwable caught) { Window.alert(Error loading the Database! ); } }); left = new Button( ); left.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) {
Re: how do i do Gadget read/write file?
1) Let the user upload a file to your server and then parse it. 2) Create a file in your server and send it to the browser so the user can download it. On 14 sep, 22:50, Alex monsterno...@gmail.com wrote: 1)How do i read a file in client side, i want my gadget to read a file and parse it. 2)how do i have my gadget to create a file and let the user save it somewhere? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and concurrency
I don't jnow if this is what you are searching but http://download.oracle.com/javase/1.5.0/docs/api/java/util/ConcurrentModificationException.html is in the jre emulation http://code.google.com/intl/es-CL/webtoolkit/doc/1.6/RefJreEmulation.html On 19 sep, 10:53, Blagoja Chavkoski baze...@gmail.com wrote: Hi, As Stefano wrote...ur loop will never end..:) and no other cycle can be executed. This is a concurrency topic and threading, try to create in java(or any other language) a thread with while(true) do something, and try to confine some other thread(some other work) to be done on this thread... ul see that this can never be done:) As a example: Make a java gui with a one button...and inside the EDT(swing thread) make a endless loop...ull se that ul never be able to catch a event fired from the button...(this is because the EDT thread will never go to idle and never get a new task(in case of java a new runnable or calable) out from the EDT- que. This is the famous Producer-Consumer pattern. so basically here is done the same(a program written in a programming language dose it for u, and its called browser, so the browser engine is the one responsible for this...and thats why I dont like web programming:) i dont have the overview of what is happening, and usually strange things happens:) ) regards On Sun, Sep 19, 2010 at 2:00 PM, Stefano Ciccarelli stef...@indacosoftware.it wrote: There is no preemption. The events are polled when the thread is idle and in your example the thread is not idle because is stuck in your endless and freezing cycle. On Sunday, September 19, 2010, Johannes Lehmann johannes.lehma...@googlemail.com wrote: I appreciate that with JavaScript interpreters executing in one thread there will never be any *true* concurrency. However it seems perfectly possible for concurrency issues to arise with the way that asynchronous callbacks are used A simple example is if I am continuously checking the value of a variable x, and then incrementing it: while(!stop) { int i = x; x = i+1; } Once the event occurs, the handler prints the variable and sets a flag that causes the incrementing to stop: print(x); stop = true; The intended behavior might be that the final value of the counter is printed. However if the event handler is invoked right after the assignment 'int i = x', the value will be incremented one more time after it is printed, which is a concurrency bug. In such cases the synchronized keyword could have been used to define pieces of code which must not be interrupted by other pieces of code in such way. In plain Java the synchronized keyword provides an easy way of dealing with such issues. The problem I described in my first post is very similar to this in nature and I am lost as to what to do. I hope this makes what I mean a bit clearer. Of course I am not excluding the possibility that I just misunderstood somthing about how the GWT/JavaScript eventing mechanism works. Thanks, Johannes On Sep 17, 5:40 pm, Thomas Broyer t.bro...@gmail.com wrote: On Sep 17, 4:13 pm, Johannes Lehmann johannes.lehma...@googlemail.com wrote: OK, that is basically what I assumed. This however seems to create concurrency issues, which the synchronized keyword was designed to address. Without any language support such as semaphores or mutexes and without any guarantees regarding preemption, how could I solve a problem such as the above? Excuse my ignorance about semaphores/mutexes/preemption details, but how can there be concurrency issues if things never execute concurrently? (and *your* code will never execute concurrently with *your* code) If you really want the gory details: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapi... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Stefano Ciccarelli* stef...@indacosoftware.it *Indaco srl* via Sabin, 22 - 40017 San Giovanni in Persiceto (BO) - Italy tel. +39.051.827762 - fax +39.051.6874570 i...@indacosoftware.it www.indacosoftware.it *- This e-mail is confidential and may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail. Please then delete the e-mail and do not disclose its contents to any other person. - Le informazioni contenute in questa comunicazione sono riservate e destinate esclusivamente alla/e persona/e o all'ente sopra indicati.
How to handle every key down event in the page?
I've found this class, but i can't get an example about how to use it. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/event/dom/client/HandlesAllKeyEvents.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
I need a little help with request builder
Well, the trouble is not exactly with request builder. The thing is like this. I have a class BinFileReader that in the constructor receives an url an read it address file contents. And the class haves some methods, like readString(), readInt, readByte, etc. But, obviusly, first at all, to execute those methods, i need to have the file readed using RequestBuilder, so when i execute this for example: BinFileReader fileReader = new BinFileReader(/mytext.txt); String result = fileReader.readString(0, 10); // 0 = from, 10 = to Could happen, and it happens, that the file is not allready readed, and i don't have file contents, so readString method is not usefull. My question, is, how could i build my BinFileReader so i dont have this issue? Do i have to check if the file is readed, if don't put a timer and try again, and over and over again till the file was readed? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: I need a little help with request builder
Yes, i thought to do in that way. But the trouble is that i need to work with 3 files, and i need to execute more than one method over the file contents, so that was that i was wondering some how to make sure that the content was loaded and then work with it. On 16 ago, 14:45, André Moraes andr...@gmail.com wrote: If i get it correct: 1- Your file as a file that your server will serve when you make a GET request. 2- You are using RequestBuilder to open a connection to your server and fetch the file 3- If all of this is true, you should do: 3.1 - create the requestbuilder and point it to your file 3.2 - you created your request passing a RequestCallback (see:http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g... ) 3.3 - Inside the onResponseReceived of that call, you write the logic to load and process your file. This approach is much more complex but this have the advantage of not blocking the browser. Hope it helps, -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.comhttp://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: multi-file selection upload - swfupload can work with gwt?
I think that GMail now is using html5. On 31 jul, 15:26, buz...@gmail.com buz...@gmail.com wrote: There is a project called swfupload-gwt, which embeds multi-file upload capabilities into gwt application. We are using that in several applications, so it is quite stable. Without Flash you can opt for HTML5 upload, which also supports multi- file selection. http://code.google.com/p/swfupload-gwt/ Dmitry On Jul 29, 5:11 am, cy dev cydevelo...@gmail.com wrote: i am working out a multiple file upload module with gwt (which can support multi-file selection). the most available tool i can find is swfupload, however the samples provided seems to work with php platform only. the progress i am working is to create a HTML widget and embed the flash button object, the select dialog prompts and allow multiple selection. however i have no idea how (or if it is possible) to post to server, get status response etc. gmail seems to do the same to embed the flash button for attaching files. can someone share experience about this? any samples? thanks. the object i am embedding is: object id=SWFUpload_0 type=application/x-shockwave-flash data=../ swfupload/swfupload.swf?preventswfcaching=1280303624557 width=270 height=22 class=swfupload param name=wmode value=window / param name=movie value=../swfupload/swfupload.swf? preventswfcaching=1280303624557 / param name=quality value=high / param name=allowScriptAccess value=always / param name=flashvars value=movieName=SWFUpload_0amp;uploadURL= %2Fv250beta3%2Ffeaturesdemo%2Fupload.php%3Fget_name %3Dget_valueamp;useQueryString=falseamp;requeueOnError=falseamp;httpSuccess=123%2C444amp;assumeSuccessTimeout=25amp;params=post_name1%3Dpost_value1%26amp %3Bpost_name2%3Dpost_value2amp;filePostName=Filedataamp;fileTypes=*.*amp;fileTypesDescription=All %20Filesamp;fileSizeLimit=100%20MBamp;fileUploadLimit=10amp;fileQueueLimit=0amp;debugEnabled=trueamp;buttonImageURL= %2Fimages %2Fbutton_270x22.pngamp;buttonWidth=270amp;buttonHeight=22amp;buttonText= %3Cspan%20class%3D%22btnText%22%3ESelect%20Files...%3C%2Fspan %3Eamp;buttonTextTopPadding=3amp;buttonTextLeftPadding=100amp;buttonTextStyle=.btnText %20%7B%20font-size%3A%2010%3B%20font-weight%3A%20bold%3B%20font-family %3A%20MS%20Shell%20Dlg%3B %20%7Damp;buttonAction=-110amp;buttonDisabled=falseamp;buttonCursor=-1 / /object -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to use external jars and java.awt on server side
If the lib is not supported by app engine you will need to deploy into another server, for example a Tomcat. On 30 jul, 19:24, RhinestoneMaster guruko...@gmail.com wrote: We're trying to convert a pdf to an image using a software called JPedal. This software is in an external jar. Our development environment is in eclipse. If we include the BufferedImage class in our code, we get this compiler error: java.awt.image.BufferedImage is not supported by Google App Engine's Java runtime environment. Also, after adding the JPedal jars to the eclipse library our code looks like this: String url=C:/2007NissanTowingGuide.pdf; /**instance of PdfDecoder to convert PDF into image From JPedal*/ PdfDecoder decode_pdf = new PdfDecoder(true); /**set mappings for non-embedded fonts to use*/ PdfDecoder.setFontReplacements(decode_pdf); /**open the PDF file - can also be a URL or a byte array*/ try { decode_pdf.openPdfFile(url); /**get page 1 as an image*/ //page range if you want to extract all pages with a loop //int start = 1, end = decode_pdf.getPageCount(); //BufferedImage img=decode_pdf.getPageAsImage(1); /**close the pdf file*/ decode_pdf.closePdfFile(); //RenderedImage rendImage = img; // Save as JPEG File file = new File(yimage.jpg); //ImageIO.write(rendImage, jpg, file); System.out.println(It worked); } catch (PdfException e) { e.printStackTrace(); } and we get the following exception: java.lang.NoClassDefFoundError: org/jpedal/exception/PdfException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java: 428) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java: 339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at
Re: How to show server log file on the client?
and if you have a timer that runs every 5 seconds for example and you call a rpc and get the last logs entries on the server? On 28 jul, 02:21, Magnus alpineblas...@googlemail.com wrote: Hi, I would like to show the contents of a log at the client side: There is a complex operation (chess move analysis) on the server, triggered by a client's RPC serivce call. The operation produces a list of log entries, which should be presented at the client. My intuitive idea is to collect the log entries and return them as part of the return value of the RPC call. But in this case, all the log entries would be presented at once. I would prefer the log entries to be shown as they are created. I think that in this case the server has to contact the client. But I have no idea of a concept for such a scenario, and I would avoid getting the whole scene too complex. How would you do that? Thanks Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Tree Padding
jejje yes i pulled out all my hairs from the head when i was fighting with that. On 28 jul, 11:36, David E. dve1...@gmail.com wrote: Thanks for the response Nacho. I got too frustrated trying to work with the GWT Tree implementation, so I just rolled out my own from scratch. It's much more beautiful as I can do exactly what I want with it. Should have done this from the start, it was actually pretty easy to model. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create a GWT Library?
Thanks. Yes, i was thinking about see some libs to inspire myself. The trouble is that right now i am overloaded :D I think that the next week i could start trying to do it. On 26 jul, 09:45, Peter Simun si...@seges.sk wrote: Just inspire by the existing GWT libraries. Sources are opensourced ;) Better libraries/frameworks has also documentation how to build them. Maven will simplify this a lot. One example:http://code.google.com/p/acris/source/browse/#svn/trunkhttp://code.google.com/p/acris/wiki/HowTo Peter On 23. Júl, 20:06 h., cokol eplisc...@googlemail.com wrote: hi.its fairly easy to do.just google for a gwt module howto On Jul 23, 6:14 pm, nacho vela.igna...@gmail.com wrote: Hi, i'm looking some info about how to create and package my own gwt's lib. Does anyone know where can i find some tuto? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Css Calendar using GWT
Jejej i was thinking in do myself something like that. it's nice On 26 jul, 09:30, Peter Simun si...@seges.sk wrote: Seems not working for me in FF, I'm not able to click on the date in the calendar. Is there any official project site? Peter On 25. Júl, 23:39 h., dodo dard keratonj...@gmail.com wrote: Hello, I would like to present my new gwt-application, css-calendar. If you know zen garden, the idea of my application is the same. I'm hoping that people will join to my cause and share their css design through this application. And I would like also your opinion of this application. You can test it in :http://css-calendar.appspot.com/ Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Tree Padding
Something like that happened to me. What i did was the following. For example: div id=container !-- here goes my tree -- /div In the css: #container div { padding: 20px; margin: 20px; } Play with padding and margin and it could help you. On 25 jul, 21:11, David E. dve1...@gmail.com wrote: I'm trying to control the margin, image size and padding in a gwt-tree and gwt-tree-items. I've read the various posts but haven't found anything definitive that resolved the problem. I may have missed something, but below is the results of my latest efforts on being able to control these attributes on the tree. See below for the firebug view of the html in the browser. You can see that gwt-Tree and gwtTreeItem don't have any padding or margins set but the phantom div parent that was generated does. How do you control the on that parent div to gwt-TreeItem? Also, you can see GWT inserts the 16px x 16px blank space, where does that come from and how can we control it? Thanks in advance, css: .gwt-Tree { margin: 0px 0px 0px 0px !important; padding: 0px 0px 0px 0px !important; } .gwt-Tree .gwt-TreeItem { margin: 0px 0px 0px 0px !important; padding: 0px 0px 0px 0px !important; } .gwt-Tree .gwt-TreeItem-selected { margin: 0px 0px 0px 0px !important; padding: 0px 0px 0px 0px !important; } output from firebug: div style=padding: 0px; margin-left: 0pt; table style=white-space: nowrap; tbody tr td style=vertical-align: middle; img border=0 style=width: 16px; height: 16px; background: url(quot;http://localhost:/formsui2/ A7CD51F9E5A7DED5F85AD1D82BA67A8A.cache.pngquot;) no-repeat scroll -32px 0px transparent; src=http://localhost:/formsui2/ clear.cache.gif /td td style=vertical-align: middle; div style=display: inline; class=gwt-TreeItem role=treeitem id=gwt-uid-46Fast Load_FF /div /td /tr /tbody /table div style=white-space: nowrap; display: none; div style=padding: 3px 3px 3px 23px; margin-left: 16px; div style=display: inline; class=gwt-TreeItem role=treeitem id=gwt-uid-47What Up? /div /div /div -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Strange Mail from group 'islam'
i receive a mail of that On 26 jul, 16:48, Breno Gomes breno.gomesfernan...@gmail.com wrote: yes 2010/7/26 Nabeel Ali Memon nabeelalime...@gmail.com No, i've never been hit by spam due to signing up with gwt mailing list :) Nabeel On Mon, Jul 26, 2010 at 9:39 PM, jsaar duddelfud...@googlemail.comwrote: After having posted a question to GWT ... Has anynone had problems of thos kind? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Rocks!
Hi, i just must say that i like GWT more and more every second!!! In argentinian 'GWT es una masa!!!' In spanish 'GWT está de puta madre!!!' Nothing more, i had to share my felling :D -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Draggable widget
Are you using Fred Sauer's gwt-dnd? If you are using it, this could help you. Fist at all follow Fred's example: http://code.google.com/p/gwt-dnd/wiki/GettingStarted Now you must make a change to your widgets, first your widget class must implement HasDragHandle. And second i guess that you want to have some information, like an id, attached to your widget. Take a look at this: public class DraggableCategory extends Composite implements HasDragHandle { private String categoryId; private Image image; public DraggableCategory(Category category){ super(); this.categoryId = category.getId(); image = new Image(category.getThumbnail()); image.setWidth(60px); image.setHeight(60px); initWidget(image); } public String getCategoryId() { return categoryId; } public Image getImage() { return image; } /* this is the important part */ public Widget getDragHandle() { return this.image; } } Now your widget is draggable and in your DropController you can access to your id, for example, create your own DropController and do this: public void onDrop(DragContext context) { for (Widget widget : context.selectedWidgets) { if (widget instanceof DraggableCategory) { DraggableCategory draggableCategory = (DraggableCategory) widget; Window.alert(draggableCategory.getId()); } } } Of course, dont forget to register your own DropController to the DragController and make your widget draggable: DraggableCategory draggableCategory = new DraggableCategory(category); PickupDragController myDragController = new PickupDragController(RootPanel.get(), false); MyDropController myDropController = new MyDropController(RootPanel.get()); /* register your dropController */ myDragController.registerDropController(myDropController); /* make draggable your widget */ myDragController.makeDraggable(draggableCategory); I think i didn't forget anything, I hope this could help you. On 23 jul, 09:13, rlebosse rlebo...@gmail.com wrote: Hi everybody, I've lots of widgets (extends Composite) that I would like to be able to drag in the displayed web page? How can I do that? Thanks for your help, Romain -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT app looks ugly in IE6
Is so easy and free to install FF in any computer, that i don't know why developers must keep loosing time with IE6. When someone's want's a web development we must say Ok, but i will not do it IE6 compliant, Google doesn't losses any more time in that, why should we? I don't loose time in that. I have no more hair to pull of my head :D On 23 jul, 10:28, Stefan Bachert stefanbach...@yahoo.de wrote: Hi to all, There is no need for jsni. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... Window.Navigator.getNavigator() should do the job. a link to the download page(s) of modern browser may be useful, too. Stefan Bachert http::/gwtworld.de Inquiries for professional GWT support are welcome. I am sorry, I won't do free personal support. On 23 Jul., 10:07, Sven sven.ti...@googlemail.com wrote: Hi Magnus, I do it like this: public static native String getUserAgent() /*-{ return navigator.userAgent.toLowerCase(); }-*/; public void onModuleLoad() { if (MyMainClass.getUserAgent().contains(msie 6.0)) { HTML message = new HTML(Please notice: as you are using an old version of your browser, some functionalities of this site may be limited.); message.setStylePrimaryName(info); RootPanel.get(info).add( message ); } } The warning is displayed on top of the page. You may want to have a look atwww.dotvoting.orgwhereI've implemented it. I noticed that not only many transparencies of my icons are currently not rendered well, but also some layouting is wrong. However, as the main functions should work, I thought adding a message for IE 6 and focusing on IE 7, 8, FF, Chrome, Safari, ... is more appropriate than making it perfect for IE 6. Hope this helps, Sven On 23 Jul., 04:21, Magnus alpineblas...@googlemail.com wrote: Hi Brett, ok, but BTW: How can one do this, i. e. determine the browser version with GWT? Magnus On Jul 22, 8:03 pm, Brett Thomas brettptho...@gmail.com wrote: I think it looks classy to display a note for IE6 users that says something along the lines of unfortunately our website no longer supports IE6, click here to learn how to upgrade I think plenty of people have no idea what browser version they are using. They may know the difference between IE and Firefox, but not what version number it is. If a site doesn't work, they'll just say must be because my computer is old and forget about it. So, tell them what they can do to fix it... On Thu, Jul 22, 2010 at 2:00 PM, charlie charlie.f...@gmail.com wrote: Agreed. It's been the bane of web developers existence for far too long. On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau goudreau.christ...@gmail.com wrote: Let's drop IE6 and IE7 support, I think it's time anyway for that. On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett itru...@gmail.com wrote: GWT doesn't promise to make your application look the same on all browsers. It does try its very best to make sure that the JS it produces functions the same across browsers, and doesn't leave any nasty side effects, leak memory, or anything like that. There may be some cases where GWT will leverage CSS tricks on each browser to achieve a result (although I can't think of any such cases off the top of my head), but that doesn't mean that GWT will take steps to ensure that all of your CSS is magically transformed into something that works on any browser. For one thing, that's out of scope, and for another it isn't possible. Some things in CSS just aren't supported, especially in older browsers. On Thu, Jul 22, 2010 at 1:35 PM, Magnus alpineblas...@googlemail.comwrote: Hi, sorry for repeating: I thought that the promise of GWT was that one never ever has to deal with such problems anymore? Why are we discussing about wether to spent time in supporting IE6 while the GWT compiler should do this? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to
How to create a GWT Library?
Hi, i'm looking some info about how to create and package my own gwt's lib. Does anyone know where can i find some tuto? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Mouse Over Image
Hi, i want to do the following, i want to display a label when the user passes the mouse over the image and i want to hide the label when the user takes out the mouse from the image. Just like a toolkit. What i did is the following, what am i missing? final Label lblRecyclerBin = new Label(Recycler Bin); lblRecyclerBin.setVisible(false); RootPanel.get().add(lblRecyclerBin); final Image imgRecyclerBin = new Image(images/icons/trashcan.png); imgRecyclerBin.setHeight(40px); imgRecyclerBin.setWidth(40px); imgRecyclerBin.setStylePrimaryName(reflex); imgRecyclerBin.addMouseOverHandler(new MouseOverHandler() { public void onMouseOver(MouseOverEvent arg0) { lblRecyclerBin.setVisible(true); RootPanel.get().setWidgetPosition(lblRecyclerBin, imgRecyclerBin.getAbsoluteLeft(), imgRecyclerBin.getAbsoluteTop()); } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mouse Over Image
Hi, thanks both. The problem was that i was using this javascript library http://www.netzgesta.de/reflex/ with that image and the reflection script was modifing the image widget html generated by gwt. On the other hand i'm using a label because i'm building a gwt-apple- like-dock so the simple title of an image wasn't be usefull for me. On 21 jul, 18:11, cokol eplisc...@googlemail.com wrote: as lineman already written, you first have to add the label widget to the DOM ,you could do it just after setting label to hidden. Then you also have to give the widget the property position: absolute in your case you could also use tooltips over widgets, they are better fitted since they know where to show if, i.e. the target widget (like your bin) is near to the edge of the screen, then the tooltip would be placed in a position that is readible. in its simplest way you could use the setTitle() on any control, which would popup a simple text after a user holds with a mouse, a tooltip (in GWT vanilla its called PopupPanel) can take any widget, like HTML or image or whatsoever... br, On 21 Jul., 22:22, lineman78 linema...@gmail.com wrote: I believe you need to use the add(Widget, x, y) method on root panel when you add it in the first place so that it sets it as position absolute. Why not just use the alt text on an image(setTitle)? It is a lot less work and is accessable, meaning the alt text is what screen readers look to in order to describe an image for a blind person. On Jul 21, 2:16 pm, nacho vela.igna...@gmail.com wrote: Hi, i want to do the following, i want to display a label when the user passes the mouse over the image and i want to hide the label when the user takes out the mouse from the image. Just like a toolkit. What i did is the following, what am i missing? final Label lblRecyclerBin = new Label(Recycler Bin); lblRecyclerBin.setVisible(false); RootPanel.get().add(lblRecyclerBin); final Image imgRecyclerBin = new Image(images/icons/trashcan.png); imgRecyclerBin.setHeight(40px); imgRecyclerBin.setWidth(40px); imgRecyclerBin.setStylePrimaryName(reflex); imgRecyclerBin.addMouseOverHandler(new MouseOverHandler() { public void onMouseOver(MouseOverEvent arg0) { lblRecyclerBin.setVisible(true); RootPanel.get().setWidgetPosition(lblRecyclerBin, imgRecyclerBin.getAbsoluteLeft(), imgRecyclerBin.getAbsoluteTop()); } }); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How can i debug an GWT application in IE 7?
I'm getting an error in the generated js in my app running on ie7. And all i get in the ie console is Argument not valid an the line of the script that is causing the trouble: 44756 :P -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
MVP Question.
Hi, i'm trying to make a view like the following that i paste. But i need to add click handlers to the links in the presenter. How could i do. I was looking the method getClickedCell in the mvp presentation but the problem is that my links are inside a FlowPanel that is inside a Vertical that is inside a Cell. What i need to do is to fire an event when the links are clicked, for example, when i press in the View link i need to populate the pnlCategoryImages with the result of my rpc. The only thing that i figure to do is to call the event bus from the view itself, but it doesn't look so pretty. Anyone have some ideas? This is part of my code in the setData() method. for(Category category: categories){ int tblCategoriesNumRow = tblCategories.getRowCount(); VerticalPanel pnlCategory = new VerticalPanel(); Hyperlink lnkAdd = new Hyperlink(Add, ); Hyperlink lnkRemove = new Hyperlink(Remove, ); Hyperlink lnkView = new Hyperlink(View, ); FlowPanel pnlCategoryButtons = new FlowPanel(); pnlCategoryButtons.add(lnkAdd); pnlCategoryButtons.add(lnkRemove); pnlCategoryButtons.add(lnkView); pnlCategory.add(pnlCategoryButtons); tblCategories.setWidget(tblCategoriesNumRow, 0, chkCategory); tblCategories.setWidget(tblCategoriesNumRow, 1, pnlCategory); tblCategoriesNumRow = tblCategories.getRowCount(); ScrollPanel pnlCategoryImages = new ScrollPanel(); tblCategories.setWidget(tblCategoriesNumRow, 0, pnlCategoryImages); } ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.