new bee design widget with markup
I am new bee learning gwt. I have a simple widget code public class HomeScreen extends Composite{ public HomeScreen() { VerticalPanel vp=new VerticalPanel(); Label lblWelcome=new Label(); lblWelcome.setText(Hello +Saibaba); Button loginscreenbtn= new Button(loginscreen); loginscreenbtn.addClickHandler(new ClickHandler() { public void onClick(ClickEvent arg0) { PersonEntryPoint.add(new LoginScreen()); } }); vp.add(loginscreenbtn); vp.add(lblWelcome); initWidget(vp); } } /code I add this to my rootpanel and this widget shows up , that is good, can I create a mark up file for this and refer the lblWelcome , loginscreenbtn and all the widgets , what I did not get is how do I design the look and feel of this HomeScreen 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.
retrieving entrypoint instance
I am a new bee starting with gwt. I did a hello world example , I did not understand how to retrieve the entrypoint instance to repalce content from RootPanel. Here is the code I have code public class Application implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { singleton=this; RootPanel.get().add(new LoginScreen()); } private static Application singleton; public static Application get() { return singleton; } public static void add(Widget widget){ RootPanel.get().clear(); RootPanel.get().add(widget); } } /code in the above code whihc I got from some getting started tutorial , an instanceof entry point is saved in onModuleLoad method and a static method which return this instance ? will this not casue issues in multithreaded ? , please suggest me how to retrieve entry point instance ? -- 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: integrating with wicket
Thanks for you email , I tried adding a simple Hello world exampleinto my exsistin g app . here are the files I added . first I created a file code package gov.hhs.acf.web.gwt.client; import com.google.gwt.core.client.EntryPoint; 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.ui.Button; import com.google.gwt.user.client.ui.RootPanel; public class Hello implements EntryPoint { @Override public void onModuleLoad() { Button b = new Button(Click me, new ClickHandler() { public void onClick(ClickEvent event) { Window.alert(Hello, AJAX); } }); RootPanel.get().add(b); } } /code in the same package I added a file Hello.gwt.xml code module rename-to=hello inherits name=com.google.gwt.user.User/ entry-point class=gov.hhs.acf.web.gwt.client.Hello/ /module /code finally I added gwt-maven plugin , building project gives me this error code module rename-to=hello inherits name=com.google.gwt.user.User/ entry-point class=gov.hhs.acf.web.gwt.client.Hello/ /module /code On Oct 4, 4:43 pm, Georg Sendt georg.se...@googlemail.com wrote: Yes this is no problem. You can use GWT as normal as JavaScript in your Wicket application. Create a GWT-Project and include the YourApplication.nocache.js in your wicket page. You can do this easily with org.apache.wicket.markup.html.WebComponent. Regards, Georg On 3 Okt., 06:10,fachhochfachh...@gmail.com wrote: My application uses wicket , I recently saw some GWT widgets , and would like to use them in my application , please suggest me if there is any integration between wicket and GWT , can I use GWT widgets inside my wicket pages ? -- 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: integrating with wicket new bee need help !
Need help please !. I resolved the problem with compilation.Next a new probelm started and this is when building my project I get java heap out of memory error. I resolved that using extraJvmArgs vm argument , so then the build works. Now I get out of memory when I run my app using embedded tomat, using tomcat maven plugin. Please help me On Oct 4, 4:43 pm, Georg Sendt georg.se...@googlemail.com wrote: Yes this is no problem. You can use GWT as normal as JavaScript in your Wicket application. Create a GWT-Project and include the YourApplication.nocache.js in your wicket page. You can do this easily with org.apache.wicket.markup.html.WebComponent. Regards, Georg On 3 Okt., 06:10, fachhoch fachh...@gmail.com wrote: My application uses wicket , I recently saw some GWT widgets , and would like to use them in my application , please suggest me if there is any integration between wicket and GWT , can I use GWT widgets inside my wicket pages ? -- 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: integrating with wicket new bee need help !
I could not reolve the out of memory issue I get this at compile time. here is my maven plguin plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version1.2/version configuration logLevelDEBUG/logLevel compileTargets valuegov.hhs.acf.web.gwt.client.Hello/value /compileTargets extraJvmArgs-Xmx512m/extraJvmArgs /configuration executions execution goals goalcompile/goal /goals /execution /executions /plugin I get this error please help me he system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Java heap space at com.sun.tools.javac.util.Name.fromUtf(Name.java:84) at com.sun.tools.javac.util.Name$Table.fromUtf(Name.java:510) at com.sun.tools.javac.util.ByteBuffer.toName(ByteBuffer.java:151) at com.sun.tools.javac.jvm.ClassWriter.typeSig(ClassWriter.java:407) at com.sun.tools.javac.jvm.ClassWriter.writePool(ClassWriter.java: 493) at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java: 1567) at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java: 1444) at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java: 618) at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java: 1289) at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java: 1259) at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java: 765) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java: 730) at com.sun.tools.javac.main.Main.compile(Main.java:353) at com.sun.tools.javac.main.Main.compile(Main.java:279) at com.sun.tools.javac.main.Main.compile(Main.java:270) at com.sun.tools.javac.Main.compile(Main.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java: 420) at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java: 141) at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java: 493) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java: 114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java: 540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: 371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java: 332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java: 181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java: 516) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java: 114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 678) ... 16 more On Oct 7, 8:19 pm, fachhoch fachh...@gmail.com wrote: Need help please !. I resolved the problem with compilation.Next a new probelm started and this is when building my project I get java heap out of memory error. I resolved that using extraJvmArgs vm argument , so then the build works. Now I get out of memory when I run my app using embedded tomat, using tomcat maven plugin. Please help me On Oct 4, 4:43 pm, Georg Sendt georg.se...@googlemail.com wrote: Yes this is no problem. You can use GWT as normal as JavaScript in your Wicket application. Create a GWT-Project and include the YourApplication.nocache.js in your wicket page. You can do this easily with org.apache.wicket.markup.html.WebComponent. Regards, Georg On 3 Okt., 06:10, fachhoch fachh
integrating with wicket
My application uses wicket , I recently saw some GWT widgets , and would like to use them in my application , please suggest me if there is any integration between wicket and GWT , can I use GWT widgets inside my wicket pages ? -- 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.