GWT+hibernate annotations+persisting Enum
Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- 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+hibernate annotations+persisting Enum
Says that the column is of type XXX (my postgres enum) and I am trying to insert varchar... I know its an hibernate problem but i cant make some solutions showed in web cause client side does not support UserType class, for example. I am trying to use Type annotation btw, and it doesnt work... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the stack trace? 2011/9/26 Marko Borges markoborge...@gmail.com Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- 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. -- 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. -- 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+hibernate annotations+persisting Enum
Well, thanks... I tried it and now says it tries to insert integer but i dont know why: public enum BoundType { UPPER, LOWER, REF; } Im my class i have the attribute: @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } and then i call it Boundtype bt = new Boundtype(name, BoundType.UPPER); hibernateTemplate.save(bt); and says that i try to insert type as Integer ... Thanks for trying to help me 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Use JPA2 if you can, it has native support to enums. See Mapping simple propertieshttp://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-mapping-property in hibernate manual reference, the *Enumerated *annotation. 2011/9/26 Marko Borges markoborge...@gmail.com Says that the column is of type XXX (my postgres enum) and I am trying to insert varchar... I know its an hibernate problem but i cant make some solutions showed in web cause client side does not support UserType class, for example. I am trying to use Type annotation btw, and it doesnt work... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the stack trace? 2011/9/26 Marko Borges markoborge...@gmail.com Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- 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. -- 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. -- 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. -- 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. -- 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+hibernate annotations+persisting Enum
Guess I have to update my Hibernate. I am using version 3.2.5 and maybe need at least 3.5 to use JPA2. Am I correct? Thanks Juan, really!!! 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com What jpa providers (and version) are you use? 2011/9/26 Marko Borges markoborge...@gmail.com Well, thanks... I tried it and now says it tries to insert integer but i dont know why: public enum BoundType { UPPER, LOWER, REF; } Im my class i have the attribute: @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } and then i call it Boundtype bt = new Boundtype(name, BoundType.UPPER); hibernateTemplate.save(bt); and says that i try to insert type as Integer ... Thanks for trying to help me 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Use JPA2 if you can, it has native support to enums. See Mapping simple propertieshttp://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-mapping-property in hibernate manual reference, the *Enumerated *annotation. 2011/9/26 Marko Borges markoborge...@gmail.com Says that the column is of type XXX (my postgres enum) and I am trying to insert varchar... I know its an hibernate problem but i cant make some solutions showed in web cause client side does not support UserType class, for example. I am trying to use Type annotation btw, and it doesnt work... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the stack trace? 2011/9/26 Marko Borges markoborge...@gmail.com Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- 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. -- 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. -- 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. -- 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. -- 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. -- 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. -- 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+hibernate annotations+persisting Enum
Actually i am using hibernate-jpa-2.0-api-1.0.0.Final.jar I think it is supposed to work... 2011/9/26 Marko Borges markoborge...@gmail.com Guess I have to update my Hibernate. I am using version 3.2.5 and maybe need at least 3.5 to use JPA2. Am I correct? Thanks Juan, really!!! 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com What jpa providers (and version) are you use? 2011/9/26 Marko Borges markoborge...@gmail.com Well, thanks... I tried it and now says it tries to insert integer but i dont know why: public enum BoundType { UPPER, LOWER, REF; } Im my class i have the attribute: @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } and then i call it Boundtype bt = new Boundtype(name, BoundType.UPPER); hibernateTemplate.save(bt); and says that i try to insert type as Integer ... Thanks for trying to help me 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Use JPA2 if you can, it has native support to enums. See Mapping simple propertieshttp://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-mapping-property in hibernate manual reference, the *Enumerated *annotation. 2011/9/26 Marko Borges markoborge...@gmail.com Says that the column is of type XXX (my postgres enum) and I am trying to insert varchar... I know its an hibernate problem but i cant make some solutions showed in web cause client side does not support UserType class, for example. I am trying to use Type annotation btw, and it doesnt work... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the stack trace? 2011/9/26 Marko Borges markoborge...@gmail.com Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- 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. -- 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. -- 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. -- 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. -- 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. -- 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. -- 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+hibernate annotations+persisting Enum
-src --com.nameproject.client.services (where I use Services and ServicesAsync and my EntryPoint) --com.nameproject.server (where I have my ServicesImpl) (for example: hibernateTemplate.save(object)) --com.nameproject.shared.enums (my enum that i showed u before) --com.nameproject.shared.entities (where i have my mapped objects like: @Entity @Table(name = boundtype, schema = SchemaTableConfig.SCHEMA2) public class Boundtype implements Serializable { private static final long serialVersionUID = 1L; private String nodename; private BoundType type; public Boundtype() { } public Boundtype(String nodename, BoundType type) { this.nodename = nodename; this.type = type; } @Id @Column(name = nodename, unique = true, nullable = false, columnDefinition = text) public String getNodename() { return this.nodename; } public void setNodename(String nodename) { this.nodename = nodename; } @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } ... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the classpath? In what servlet container are you running or you make a test? Juan 2011/9/26 Marko Borges markoborge...@gmail.com I updated to version 3.6.7 final version and it looks that the same happens :( Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into boundtype (type, name) values ('0', 'name') was aborted. Call getNextException to see the cause. I saw the cause and it is trying to insert integer 0... i think that if some gwt library was making conflict with hibernate library it would send an error so i dont know why this happens... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Sure, hibernate 3.2.5 not support jpa2 :), yes you must update your hibernate version, for example to 3.6.x. Version 4 I'm not sure if is stable. 2011/9/26 Marko Borges markoborge...@gmail.com Guess I have to update my Hibernate. I am using version 3.2.5 and maybe need at least 3.5 to use JPA2. Am I correct? Thanks Juan, really!!! 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com What jpa providers (and version) are you use? 2011/9/26 Marko Borges markoborge...@gmail.com Well, thanks... I tried it and now says it tries to insert integer but i dont know why: public enum BoundType { UPPER, LOWER, REF; } Im my class i have the attribute: @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } and then i call it Boundtype bt = new Boundtype(name, BoundType.UPPER); hibernateTemplate.save(bt); and says that i try to insert type as Integer ... Thanks for trying to help me 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Use JPA2 if you can, it has native support to enums. See Mapping simple propertieshttp://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-mapping-property in hibernate manual reference, the *Enumerated *annotation. 2011/9/26 Marko Borges markoborge...@gmail.com Says that the column is of type XXX (my postgres enum) and I am trying to insert varchar... I know its an hibernate problem but i cant make some solutions showed in web cause client side does not support UserType class, for example. I am trying to use Type annotation btw, and it doesnt work... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the stack trace? 2011/9/26 Marko Borges markoborge...@gmail.com Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- 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. -- 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. -- 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. -- You received this message because you are subscribed to the Google Groups Google Web
Re: GWT+hibernate annotations+persisting Enum
no... i actually have an enum called BoundType and an entity class called Boundtype. My enum is: public enum BoundType { UPPER, LOWER, REF; } my Boundtype is what i showed u before 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com BoundType isn't an enum. It must be: enum BoundType { ... } 2011/9/26 Marko Borges markoborge...@gmail.com -src --com.nameproject.client.services (where I use Services and ServicesAsync and my EntryPoint) --com.nameproject.server (where I have my ServicesImpl) (for example: hibernateTemplate.save(object)) --com.nameproject.shared.enums (my enum that i showed u before) --com.nameproject.shared.entities (where i have my mapped objects like: @Entity @Table(name = boundtype, schema = SchemaTableConfig.SCHEMA2) public class Boundtype implements Serializable { private static final long serialVersionUID = 1L; private String nodename; private BoundType type; public Boundtype() { } public Boundtype(String nodename, BoundType type) { this.nodename = nodename; this.type = type; } @Id @Column(name = nodename, unique = true, nullable = false, columnDefinition = text) public String getNodename() { return this.nodename; } public void setNodename(String nodename) { this.nodename = nodename; } @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } ... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the classpath? In what servlet container are you running or you make a test? Juan 2011/9/26 Marko Borges markoborge...@gmail.com I updated to version 3.6.7 final version and it looks that the same happens :( Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into boundtype (type, name) values ('0', 'name') was aborted. Call getNextException to see the cause. I saw the cause and it is trying to insert integer 0... i think that if some gwt library was making conflict with hibernate library it would send an error so i dont know why this happens... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Sure, hibernate 3.2.5 not support jpa2 :), yes you must update your hibernate version, for example to 3.6.x. Version 4 I'm not sure if is stable. 2011/9/26 Marko Borges markoborge...@gmail.com Guess I have to update my Hibernate. I am using version 3.2.5 and maybe need at least 3.5 to use JPA2. Am I correct? Thanks Juan, really!!! 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com What jpa providers (and version) are you use? 2011/9/26 Marko Borges markoborge...@gmail.com Well, thanks... I tried it and now says it tries to insert integer but i dont know why: public enum BoundType { UPPER, LOWER, REF; } Im my class i have the attribute: @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } and then i call it Boundtype bt = new Boundtype(name, BoundType.UPPER); hibernateTemplate.save(bt); and says that i try to insert type as Integer ... Thanks for trying to help me 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Use JPA2 if you can, it has native support to enums. See Mapping simple propertieshttp://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-mapping-property in hibernate manual reference, the *Enumerated *annotation. 2011/9/26 Marko Borges markoborge...@gmail.com Says that the column is of type XXX (my postgres enum) and I am trying to insert varchar... I know its an hibernate problem but i cant make some solutions showed in web cause client side does not support UserType class, for example. I am trying to use Type annotation btw, and it doesnt work... 2011/9/26 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the stack trace? 2011/9/26 Marko Borges markoborge...@gmail.com Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- 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. -- 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. -- You received this message because you
Re: multi pages in gwt
Thanks for your answer. This looks like a little complicated and confusing. Isnt there a easier way? I will have many pages. Thanks, Mark 2011/8/25 Sandney Farias sandneyfar...@gmail.com Mark, Try this link http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html. I think that it can help you. -- 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/-/nKFb_l7W81UJ. 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. -- 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: multi pages in gwt
By the way I am trying to work with gwt-multipage jar that looks simple but had to update gwt and smartgwt and everything is crashing now... Baah 2011/8/29 Marko Borges markoborge...@gmail.com Thanks for your answer. This looks like a little complicated and confusing. Isnt there a easier way? I will have many pages. Thanks, Mark 2011/8/25 Sandney Farias sandneyfar...@gmail.com Mark, Try this link http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html. I think that it can help you. -- 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/-/nKFb_l7W81UJ. 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. -- 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: multi pages in gwt
Cause i am doing a project migration and i dont wanna loose the structure. I know that GWT applications have a single page as pattern but I would like to use multiple pages. In case I change my mind and wanna use MVP, does anyone have a complete example, cause in case of menus and complex widgets how would MVP work? 2011/8/29 Cristian Rinaldi cristian.rina...@logikas.com What is the reason to have multiple pages? (HTML Pages) Ajax applications respond to the pattern Sinlge Page. You can manage the content to be displayed using MVP (Place / Activities). A.U.S Cristian Rinaldi 2011/8/29 Marko Borges markoborge...@gmail.com By the way I am trying to work with gwt-multipage jar that looks simple but had to update gwt and smartgwt and everything is crashing now... Baah 2011/8/29 Marko Borges markoborge...@gmail.com Thanks for your answer. This looks like a little complicated and confusing. Isnt there a easier way? I will have many pages. Thanks, Mark 2011/8/25 Sandney Farias sandneyfar...@gmail.com Mark, Try this link http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html. I think that it can help you. -- 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/-/nKFb_l7W81UJ. 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. -- 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. -- 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. -- 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.
multi pages in gwt
Hello. I am trying to use 3 different pages and I can see the result ok in the hosted page but not in the respective page. Its weird cause I had 2 pages, and create 1 module for each one and it worked! but for this 3rd page it doesnt. I consider module as the Service and ServiceAsync classes. Am I right? For the first 2 pages I used only one entry point, one module for each page and the server class which implements the 2 services. This worked, but for the new page doesnt. Can anybody explain me why? Thanks, Mark -- 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.
Debug in client side
Hello! I am getting crazy with this! How can I debug the client side of an application. I am using Eclipse in hosted mode and I use breakpoints in both sides but only works for server side. How can I do the same in client side? Thankful for attention, Mark -- 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: Debug in client side
Solved! Sorry, it was such an idiot thing. I feel embarassed. Thanks for trying to help! 2011/8/18 Boris Lenzinger boris.lenzin...@gmail.com Just to be sure : you are starting the host mode in debug and connect to it through the http://127.0.0.1:9997/yourApp address ? Another potential reason is you have error(s) before reaching your breakpoints and code execution stops. Could you describe more how you start your application with Eclipse ? 2011/8/18 Marko Borges markoborge...@gmail.com Hello! I am getting crazy with this! How can I debug the client side of an application. I am using Eclipse in hosted mode and I use breakpoints in both sides but only works for server side. How can I do the same in client side? Thankful for attention, Mark -- 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. -- 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. -- 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: MenuBar working well in hosted page but not in the others
Sorry! I forgot to tell. I have it working now! Thanks for trying to help. Is there an easy way to insert blank space in Menu before inserting MenuItems? If there is a way without having to edit css would be perfect. I tried to insert in an HorizontalPanel but my menu stays badly formatted inside of it :( 2011/8/17 BST babusri...@gmail.com I just tried the example that you posted. It works for me. I am getting an alert whenever I select Bold or A or B. Are you expecting something else? -- 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/-/NPLdwKrrHCQJ. 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. -- 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: MenuBar working well in hosted page but not in the others
what i do is create my menu and in items and menu without items I add Command to go to a certain page. this happens ok with the hosted page. but in another page the first item of each menu doesnt let execute Command and neither let select that item when mouse is over. Here is the code: code for (int i = 0; i result.size(); i++) { final PageDTO page = result.get(i); if (page.getParentid() == 1) { mb.add(page); } } boolean[] bools = new boolean[mb.size()]; MenuBar menu = new MenuBar(); menu.setAutoOpen(true); menu.setHeight(25px); menu.setAnimationEnabled(true); for (int i = 0; i result.size(); i++) { final PageDTO page = result.get(i); if (page.getParentid() != 1) { for (int j = 0; j mb.size(); j++) { PageDTO parent = mb.get(j); if (page.getParentid() == parent.getPageid()) { bools[j] = true; if (last == parent.getPageid()) { lastName = parent.getPagename(); items.add(page.getPagename()); } if (last == 0) { items.add(page.getPagename()); last = parent.getPageid(); lastName = parent.getPagename(); } if (i == result.size() - 1 || last != parent.getPageid()) { MenuBar menuButton = new MenuBar(true); menuButton.addStyleName(demo-MenuItem); menu.addSeparator(); MenuItem mi = new MenuItem(lastName, menuButton); mi.setHeight(20px); menu.addItem(mi); for (int x = 0; x items.size(); x++) { MenuItem mi2 = new MenuItem(items .get(x), new Command() { @Override public void execute() { ActivityDTO act = page .getActivity(); boolean found = false; if (act != null) { Iterator itr = act .getActivityPaths() .iterator(); while (!found) { ActivityPathDTO ap = (ActivityPathDTO) itr .next(); found = true; redirect(http://127.0.0.1:/; + ap.getFolder() + .htm); } } } }); menuButton.addItem(mi2); } items = new ArrayListString(); last = parent.getPageid(); lastName = parent.getPagename(); items.add(page.getPagename()); // break; } } else { if (page.getParentid() mb.get(j).getPageid() !bools[j]) { final PageDTO actual = mb.get(j); bools[j] = true; MenuItem mib = new MenuItem(mb.get(j) .getPagename(), new Command() { @Override public void execute() { ActivityDTO act = actual .getActivity(); boolean found = false; if (act != null) { Iterator itr = act .getActivityPaths() .iterator(); while (!found) { ActivityPathDTO ap = (ActivityPathDTO) itr .next(); found = true; redirect(http://127.0.0.1:/; + ap.getFolder() + .htm); } } } }); menu.addItem(mib); } } } } } RootPanel.get(navmenu).add(menu, 50, 50); /code 2011/8/16 BST babusri...@gmail.com Could you elaborate, maybe provide code snippet ? -- 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/-/Y_bxITPaS0cJ. 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. -- 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: MenuBar working well in hosted page but not in the others
http://www.java2s.com/Code/Java/GWT/Menuwithstyle.htm I tried this example and it happens the same =( Is it a bug of gwt or something its missing on my project? the first item of each menu cant be selected :( whyy? 2011/8/16 Marko Borges markoborge...@gmail.com what i do is create my menu and in items and menu without items I add Command to go to a certain page. this happens ok with the hosted page. but in another page the first item of each menu doesnt let execute Command and neither let select that item when mouse is over. Here is the code: code for (int i = 0; i result.size(); i++) { final PageDTO page = result.get(i); if (page.getParentid() == 1) { mb.add(page); } } boolean[] bools = new boolean[mb.size()]; MenuBar menu = new MenuBar(); menu.setAutoOpen(true); menu.setHeight(25px); menu.setAnimationEnabled(true); for (int i = 0; i result.size(); i++) { final PageDTO page = result.get(i); if (page.getParentid() != 1) { for (int j = 0; j mb.size(); j++) { PageDTO parent = mb.get(j); if (page.getParentid() == parent.getPageid()) { bools[j] = true; if (last == parent.getPageid()) { lastName = parent.getPagename(); items.add(page.getPagename()); } if (last == 0) { items.add(page.getPagename()); last = parent.getPageid(); lastName = parent.getPagename(); } if (i == result.size() - 1 || last != parent.getPageid()) { MenuBar menuButton = new MenuBar(true); menuButton.addStyleName(demo-MenuItem); menu.addSeparator(); MenuItem mi = new MenuItem(lastName, menuButton); mi.setHeight(20px); menu.addItem(mi); for (int x = 0; x items.size(); x++) { MenuItem mi2 = new MenuItem(items .get(x), new Command() { @Override public void execute() { ActivityDTO act = page .getActivity(); boolean found = false; if (act != null) { Iterator itr = act .getActivityPaths() .iterator(); while (!found) { ActivityPathDTO ap = (ActivityPathDTO) itr .next(); found = true; redirect(http://127.0.0.1:/; + ap.getFolder() + .htm); } } } }); menuButton.addItem(mi2); } items = new ArrayListString(); last = parent.getPageid(); lastName = parent.getPagename(); items.add(page.getPagename()); // break; } } else { if (page.getParentid() mb.get(j).getPageid() !bools[j]) { final PageDTO actual = mb.get(j); bools[j] = true; MenuItem mib = new MenuItem(mb.get(j) .getPagename(), new Command() { @Override public void execute() { ActivityDTO act = actual .getActivity(); boolean found = false; if (act != null) { Iterator itr = act .getActivityPaths() .iterator(); while (!found) { ActivityPathDTO ap = (ActivityPathDTO) itr .next(); found = true; redirect(http://127.0.0.1:/; + ap.getFolder() + .htm); } } } }); menu.addItem(mib); } } } } } RootPanel.get(navmenu).add(menu, 50, 50); /code 2011/8/16 BST babusri...@gmail.com Could you elaborate, maybe provide code snippet ? -- 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/-/Y_bxITPaS0cJ. 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. -- 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.