Re: Where does log4j output go?

2009-12-31 Thread mirceade
Hi,
Read the log4j docs. Use a console apender.

On 31 dec., 11:39, Paul Grenyer  wrote:
> HI
>
> On Wed, Dec 30, 2009 at 10:08 PM, leslie  wrote:
> > Hi.  I'm using Log4J with GWT 2.0 also.  I'm building with Eclipse.
>
> > Inside the properties file, "log4J.properties", I've included a line
> > similar to the following which directs the output to a specific
> > location, a specific file:
>
> > log4j.appender.A1.File=${user.home}/Documents/log4Joutput.txt
>
> > Note that you will want to be sure to update this setting, in addition
> > to probably changing the sensitivity of the logger (DEBUG vs ERROR)
> > when you deploy to your production server.
>
> Thanks! I'm sure that would work, but I'd really like to have the
> output back in Eclipse.
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com
> b: paulgrenyer.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: list serialization

2009-09-27 Thread mirceade

PS: list of objects also works in 1.6.

On Sep 25, 6:06 pm, mwaschkowski  wrote:
> Hi,
>
> Quick question about serialization:
>
> If I have something to be serialized with the following type defined:
>
>   private List resultList
>
> gwt gives me a serialization error, but if I take away the 
> tag:
>
>   private List resultList
>
> it works fine.
>
> I'm a bit worried that I'm breaking a rule somehow, and if things get
> tightened up in a future version, my app might break. Can someone
> please shed a little light on this for me?
>
> 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: list serialization

2009-09-27 Thread mirceade

I'm using list of serializables just fine (it only shows some warnings
since gwt 1.6) because my domain classes are not ready to inherit some
strange superclass just for gwt ser. to work. So I guess you're using
1.5 or lower.

On Sep 25, 6:06 pm, mwaschkowski  wrote:
> Hi,
>
> Quick question about serialization:
>
> If I have something to be serialized with the following type defined:
>
>   private List resultList
>
> gwt gives me a serialization error, but if I take away the 
> tag:
>
>   private List resultList
>
> it works fine.
>
> I'm a bit worried that I'm breaking a rule somehow, and if things get
> tightened up in a future version, my app might break. Can someone
> please shed a little light on this for me?
>
> 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: SmartGWT (or any other GWT-compatible JAR) integration

2009-08-27 Thread mirceade

Maybe adding the jars to sources in the Eclipse java build config?

On Aug 24, 4:29 pm, CI-CUBE  wrote:
> Hi,
>
> I'm fighting for several hours :-( but still get this 'No source code
> is available for type  ...' error. From my
> setup on the home office I know it works but until now I did not find
> the essential piece to be added to the build/source path.
>
> I did successfully integrate my own GWT-based JAR. But in that case I
> have the sources. Everything works as expected. In case of SmartGWT I
> only have those two JARs.
>
> Can anyone please tell me how to integrate them in the Eclipse
> settings and/or .classpath to remove the error? Thx alot in advance!
>
>    Ekki
>
> SmartGWT 1.2, GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13
--~--~-~--~~~---~--~~
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: Announcing the Google Plugin for Eclipse 1.1.0

2009-08-02 Thread mirceade

Perfect. Thanks!

On Jul 30, 8:00 pm, Miguel Méndez  wrote:
> Hi everyone,
>
> We wanted to let all of you know that the Google Plugin for Eclipse 1.1.0 is
> now available.  Some of the notable improvements are:
>
>    - Support for Eclipse 3.5 (Galileo)
>    - GWT RPC interface validation with quick fixes
>    - App Engine DataNucleus enhancer console no longer steals focus on save
>
> If you'd like more details on the contents of the release, please see
> the Release
> Notes .
>
> To get started right way, take a look at the installation
> instructions or
> just use the update site below that corresponds to your version of Eclipse.
>
>    - Eclipse 3.5 (Galileo) -http://dl.google.com/eclipse/plugin/3.5
>    - Eclipse 3.4 (Ganymede) -http://dl.google.com/eclipse/plugin/3.4
>    - Eclipse 3.3 (Europa) -http://dl.google.com/eclipse/plugin/3.3
>
> Cheers,
>
> Miguel, on behalf of the Google Plugin for Eclipse Team
--~--~-~--~~~---~--~~
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: Hint: Previous compiler errors may have made this type unavailable

2009-07-24 Thread mirceade

Read the manual, read the errors, learn English, get a life.

On Jul 23, 2:46 pm, BMax  wrote:
> Hi, I post here my module xml code:
>
> 
>
>         
>
>         
>
>         
>
>         
>         
>         
>
>         
>
>          class="org.xlab.semantic.gwtext.server.SismaServiceImpl"/>
>
>         
>
> 
>
> I think that it's good...!
> Bye, Max
>
> On 23 Lug, 13:27, Norman Maurer  wrote:
>
> > Hi,
>
> > like stated in the error message... Do you have am inherits statment
> > for "org.xlab.semantic.gwtext.client.Sisma" ?
>
> > Bye,
> > Norman
>
> > 2009/7/23 BMax :
>
> > > Hi guys,
> > > please help me! I have to finish an important work but now my project
> > > is blocked by this error:
>
> > > Checking rule  > > class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
> > >            [ERROR] Unable to find type
> > > 'org.xlab.semantic.gwtext.client.Sisma'
> > >               [ERROR] Hint: Previous compiler errors may have made
> > > this type unavailable
> > >               [ERROR] Hint: Check the inheritance chain from your
> > > module; it may not be inheriting a required module or a module may not
> > > be adding its source path entries properly
>
> > > I readed other post about this problem but I didn't find a solution!
>
> > > Thanks, Max
>
>
--~--~-~--~~~---~--~~
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: RPC Serialization of abstract classes

2009-06-02 Thread mirceade

Well, I have finally found the problem:
Drums roll:
The GWT Timer class is not serializable (my super class had a Timer
field buried down in there)! The compiler doesn't complain at all and
when the time to serialize comes it just doesn't serialize the whole
class without throwing any exception. Thanks Paul for your support and
I'm sorry for wasting your time with this.


On Jun 2, 2:04 am, Paul Robinson  wrote:
> I (and presumably many others) am serializing things from an inheritance
> hierarchy without any problems.
>
> I can suggest two things for you:
> (1) reduce your code to the simplest working code that will show the
> problem, and then append that code to the issue you created. The source
> you posted to this thread didn't include all your code (eg State wasn't
> there)
> (2) Have you tried stepping through the GWT RPC code in a debugger to
> see if the data gets written out and it if then gets read in? This
> should tell you where the problem lies.
>
> Paul
>
> mirceade wrote:
> > Come on guys, hasn't anybody else used more than plain strings and
> > ints with GWT RPC? Is this really a bug (not serializing correctly up
> > on the inheritance chain) or am I doing it all wrong? Help!
>
> > On 14 Mai, 18:35, Paul Robinson  wrote:
>
> >> I don't see anything wrong.
>
>
--~--~-~--~~~---~--~~
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: HostedModeException: Expected primitive type int; actual value was undefined

2009-06-02 Thread mirceade

Ignore my previous comment. It has nothing to do with it.

On May 31, 11:33 am, "igor.khd"  wrote:
> Hello guys!
>
> I am using GWT-1.6 + gwt-ext-2.0.5 +  gilead (previous name is
> hibernate4gwt).
>
> I encountered next problem:
>
> I am getting next exception when sending to the client an instance of
> class bellow which extends form LightEntity:
>
> com.google.gwt.dev.shell.HostedModeException: Expected primitive type
> int; actual value was undefined
>         at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt
> (ModuleSpace.java:209)
>         at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.readInt
> (Native Method)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
> (AbstractSerializationStreamReader.java:46)
>         at net.sf.gilead.pojo.java5.LightEntity_FieldSerializer.deserialize
> (LightEntity_FieldSerializer.java:5)
>         at by.orwest.oms.core.entity.Insurance_FieldSerializer.deserialize
> (Insurance_FieldSerializer.java:91)
>         at
> by.orwest.oms.gwt.client.rpc.IInsuranceRemote_TypeSerializer.deserialize
> (Native Method)
>         at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
> (ClientSerializationStreamReader.java:116)
>
> Here is my class:
>
> @Entity
> @Table(name="INSURANCE")
> public class Insurance extends LightEntity implements Serializable
> {
>     private long id;
>     private String sn;
>     private Date createdDate;
>     private Date startDate;
>     private Date endDate;
>     private String insuranceCompany;
>     private String insurer;
>     private long price;
>     private String comment;
>
>     public Insurance() {
>     }
>
>     @Id
>         @GeneratedValue
>         @Column(name="ID")
>     public long getId() {
>         return id;
>     }
>
>     public void setId(long id) {
>         this.id = id;
>     }
>
>     @Column(name="SN",unique = true, nullable = true, length = 20)
>     public String getSN() {
>         return sn;
>     }
>
>     public void setSN(String sn) {
>         this.sn = sn;
>     }
>
>     @Column(name="CREATED_DATE", nullable = true)
>     @Temporal(TemporalType.DATE)
>     public Date getCreatedDate() {
>         return createdDate;
>     }
>
>     public void setCreatedDate(Date createdDate) {
>         this.createdDate = createdDate;
>     }
>
>     @Column(name="START_DATE", nullable = false)
>     @Temporal(TemporalType.DATE)
>     public Date getStartDate() {
>         return startDate;
>     }
>
>     public void setStartDate(Date startDate) {
>         this.startDate = startDate;
>     }
>
>     @Column(name="END_DATE", nullable = false)
>     @Temporal(TemporalType.DATE)
>     public Date getEndDate() {
>         return endDate;
>     }
>
>     public void setEndDate(Date endDate) {
>         this.endDate = endDate;
>     }
>
>     @Column(name="INSURANCE_COMPANY", nullable = true, length = 30)
>     public String getInsuranceCompany() {
>         return insuranceCompany;
>     }
>
>     public void setInsuranceCompany(String insuranceCompany) {
>         this.insuranceCompany = insuranceCompany;
>     }
>
>     @Column(name="INSURER", nullable = true, length = 30)
>     public String getInsurer() {
>         return insurer;
>     }
>
>     public void setInsurer(String insurer) {
>         this.insurer = insurer;
>     }
>
>     @Column(name="PRICE", nullable = true)
>     public long getPrice() {
>         return price;
>     }
>
>     public void setPrice(long price) {
>         this.price = price;
>     }
>
>     @Column(name="COMMENT", nullable = true, length = 400)
>     public String getComment() {
>         return comment;
>     }
>
>     public void setComment(String comment) {
>         this.comment = comment;
>     }
>
> }
>
> LightEntity is abstract class from gilead library (adapter-core.jar).
> It is serializable class which contains only one protected field
> Map
>
> public abstract class LightEntity implements ILightEntity,
> Serializable
> {
>         private static final long serialVersionUID = 1061336746068017740L;
>         protected Map _proxyInformations;
>
>         public Map getProxyInformations()
>         {
>                 return _proxyInformations;
>         }
>
>         @SuppressWarnings("unchecked")
>         public void setProxyInformations(Map informations)
>         {
>                 _proxyInformations = informations;
>         }
>
>         public LightEntity()
>         {
>                 super();
>         }
>
>         public void addProxyInformation(String property,
>                                                                         
> String proxyInfo)
>         {...}
>
>         public void removeProxyInformation(String property)
>         {...    }
>
>         public String getProxyInformation(String property)
>         {...    }
>         public String getDebugString()
>         {

Re: RPC Serialization of abstract classes

2009-06-02 Thread mirceade

Ok, that was what I wanted to know. I'll proceed with doing what you
suggested. Thanks.

On Jun 2, 2:04 am, Paul Robinson  wrote:
> I (and presumably many others) am serializing things from an inheritance
> hierarchy without any problems.
>
> I can suggest two things for you:
> (1) reduce your code to the simplest working code that will show the
> problem, and then append that code to the issue you created. The source
> you posted to this thread didn't include all your code (eg State wasn't
> there)
> (2) Have you tried stepping through the GWT RPC code in a debugger to
> see if the data gets written out and it if then gets read in? This
> should tell you where the problem lies.
>
> Paul
>
> mirceade wrote:
> > Come on guys, hasn't anybody else used more than plain strings and
> > ints with GWT RPC? Is this really a bug (not serializing correctly up
> > on the inheritance chain) or am I doing it all wrong? Help!
>
> > On 14 Mai, 18:35, Paul Robinson  wrote:
>
> >> I don't see anything wrong.
>
>
--~--~-~--~~~---~--~~
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: HostedModeException: Expected primitive type int; actual value was undefined

2009-06-02 Thread mirceade

Hi Igor. I think your problem is related to mine:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3652
But I can reproduce it in both hosted mode and in the browser. I think
there is a serialization issue with the GWT RPC when sending inherited
(super-class) fields.

On May 31, 11:33 am, "igor.khd"  wrote:
> Hello guys!
>
> I am using GWT-1.6 + gwt-ext-2.0.5 +  gilead (previous name is
> hibernate4gwt).
>
> I encountered next problem:
>
> I am getting next exception when sending to the client an instance of
> class bellow which extends form LightEntity:
>
> com.google.gwt.dev.shell.HostedModeException: Expected primitive type
> int; actual value was undefined
>         at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt
> (ModuleSpace.java:209)
>         at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.readInt
> (Native Method)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
> (AbstractSerializationStreamReader.java:46)
>         at net.sf.gilead.pojo.java5.LightEntity_FieldSerializer.deserialize
> (LightEntity_FieldSerializer.java:5)
>         at by.orwest.oms.core.entity.Insurance_FieldSerializer.deserialize
> (Insurance_FieldSerializer.java:91)
>         at
> by.orwest.oms.gwt.client.rpc.IInsuranceRemote_TypeSerializer.deserialize
> (Native Method)
>         at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
> (ClientSerializationStreamReader.java:116)
>
> Here is my class:
>
> @Entity
> @Table(name="INSURANCE")
> public class Insurance extends LightEntity implements Serializable
> {
>     private long id;
>     private String sn;
>     private Date createdDate;
>     private Date startDate;
>     private Date endDate;
>     private String insuranceCompany;
>     private String insurer;
>     private long price;
>     private String comment;
>
>     public Insurance() {
>     }
>
>     @Id
>         @GeneratedValue
>         @Column(name="ID")
>     public long getId() {
>         return id;
>     }
>
>     public void setId(long id) {
>         this.id = id;
>     }
>
>     @Column(name="SN",unique = true, nullable = true, length = 20)
>     public String getSN() {
>         return sn;
>     }
>
>     public void setSN(String sn) {
>         this.sn = sn;
>     }
>
>     @Column(name="CREATED_DATE", nullable = true)
>     @Temporal(TemporalType.DATE)
>     public Date getCreatedDate() {
>         return createdDate;
>     }
>
>     public void setCreatedDate(Date createdDate) {
>         this.createdDate = createdDate;
>     }
>
>     @Column(name="START_DATE", nullable = false)
>     @Temporal(TemporalType.DATE)
>     public Date getStartDate() {
>         return startDate;
>     }
>
>     public void setStartDate(Date startDate) {
>         this.startDate = startDate;
>     }
>
>     @Column(name="END_DATE", nullable = false)
>     @Temporal(TemporalType.DATE)
>     public Date getEndDate() {
>         return endDate;
>     }
>
>     public void setEndDate(Date endDate) {
>         this.endDate = endDate;
>     }
>
>     @Column(name="INSURANCE_COMPANY", nullable = true, length = 30)
>     public String getInsuranceCompany() {
>         return insuranceCompany;
>     }
>
>     public void setInsuranceCompany(String insuranceCompany) {
>         this.insuranceCompany = insuranceCompany;
>     }
>
>     @Column(name="INSURER", nullable = true, length = 30)
>     public String getInsurer() {
>         return insurer;
>     }
>
>     public void setInsurer(String insurer) {
>         this.insurer = insurer;
>     }
>
>     @Column(name="PRICE", nullable = true)
>     public long getPrice() {
>         return price;
>     }
>
>     public void setPrice(long price) {
>         this.price = price;
>     }
>
>     @Column(name="COMMENT", nullable = true, length = 400)
>     public String getComment() {
>         return comment;
>     }
>
>     public void setComment(String comment) {
>         this.comment = comment;
>     }
>
> }
>
> LightEntity is abstract class from gilead library (adapter-core.jar).
> It is serializable class which contains only one protected field
> Map
>
> public abstract class LightEntity implements ILightEntity,
> Serializable
> {
>         private static final long serialVersionUID = 1061336746068017740L;
>         protected Map _proxyInformations;
>
>         public Map getProxyInformations()
>         {
>                 return _proxyInformations;
>         }
>
>         @SuppressWarnings("unchecked")
>         public void setProxyInformations(Map informations)
>         {
>                 _proxyInformations = informations;
>         }
>
>         public LightEntity()
>         {
>                 super();
>         }
>
>         public void addProxyInformation(String property,
>                                                                         
> String proxyInfo)
>         {..

Re: RPC Serialization of abstract classes

2009-06-01 Thread mirceade

Come on guys, hasn't anybody else used more than plain strings and
ints with GWT RPC? Is this really a bug (not serializing correctly up
on the inheritance chain) or am I doing it all wrong? Help!

On 14 Mai, 18:35, Paul Robinson  wrote:
> I don't see anything wrong.
--~--~-~--~~~---~--~~
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: RPC Serialization of abstract classes

2009-05-23 Thread mirceade

I think this is a duplicate of Issue 2557 that was fixed in 1.5 RC 2
but resurfaced in 1.6.4.
--~--~-~--~~~---~--~~
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: RPC Serialization of abstract classes

2009-05-19 Thread mirceade

I don't want to become annoying, but has anyone noticed this while
using
GWT-RPC? Can it be reproduced on another configuration than mine?

On May 14, 9:27 pm, mirceade  wrote:
> I don't either, so it must be a serialization issue with gwt RPC. It
> would be very helpful if somebody else would try to reproduce this bug
> too.
>
> On 14 Mai, 18:35, Paul Robinson  wrote:
>
> > I don't see anything wrong.
>
>
--~--~-~--~~~---~--~~
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: RPC Serialization of abstract classes

2009-05-14 Thread mirceade

I don't either, so it must be a serialization issue with gwt RPC. It
would be very helpful if somebody else would try to reproduce this bug
too.

On 14 Mai, 18:35, Paul Robinson  wrote:
> I don't see anything wrong.
--~--~-~--~~~---~--~~
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: RPC Serialization of abstract classes

2009-05-14 Thread mirceade

Well,
here it is:


/*
 * View.java
 */

package com.client.infrastructure.statemachine;

import com.google.gwt.user.client.ui.Panel;

import java.io.Serializable;
import java.util.HashMap;

public abstract class View implements Serializable {
/**
 *
 */
private static final long serialVersionUID = 5321684062654183464L;
public abstract void doView(Panel panel, HashMap model);
}




/*
 * ViewState.java
 */

package com.client.infrastructure.statemachine;

import java.io.Serializable;

public abstract class ViewState extends State implements Serializable{

/**
 *
 */
private static final long serialVersionUID = 1460737022142028448L;
private View view;

@Override
void enter() {
this.onEnter();
}

@Override
void process() {
this.view.doView(null, null);
}

void exit() {
this.onExit();
}

/**
 * @return the view
 */
public View getView() {
return view;
}

/**
 * @param view the view to set
 */
public void setView(View view) {
this.view = view;
}

}






/*
 * RealState.java
 */

package com.client.flows.core.base.states;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

import com.client.infrastructure.gui.Composition;
import com.client.infrastructure.gui.Menu;
import com.client.infrastructure.gui.MenuButton;
import com.client.infrastructure.gui.Screen;
import com.client.infrastructure.statemachine.Event;
import com.client.infrastructure.statemachine.ViewState;

public class RealState extends ViewState implements Serializable {

/**
 *
 */
private static final long serialVersionUID = 844593773394013632L;

@Override
public void onEnter() {
System.out.println("hello");
}
}



/*
 * SimpleView.java
 */
package com.client.flows.core.views;

import java.io.Serializable;
import java.util.HashMap;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.client.infrastructure.gui.Composition;
import com.client.infrastructure.gui.MenuButton;
import com.client.infrastructure.gui.MenuButtonClickHandler;
import com.client.infrastructure.statemachine.View;

public class SimpleView extends View implements Serializable {

/**
 *
 */
private static final long serialVersionUID = 3027649895615644495L;

public void doView(Panel panel, HashMap model) {
panel.clear();
}

}






/*
 * FlowDefinitionsService.java
 *
 */

package com.client;
import com.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.client.infrastructure.statemachine.FlowDefinition;
import com.client.infrastructure.statemachine.State;

import java.util.List;

@RemoteServiceRelativePath("flowdefs")
public interface FlowDefinitionsService extends RemoteService{
public State retrieveViewState();
}

/*
 * FlowDefinitionsServiceAsync.java
 *
 */

package com.client;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.client.infrastructure.statemachine.FlowDefinition;
import com.client.infrastructure.statemachine.State;


public interface FlowDefinitionsServiceAsync {
public abstract void retrieveViewState(AsyncCallback
asyncCallback);
}


/*
 * FlowDefinitionsServiceImpl.java
 *
 */

package com.server;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.client.FlowDefinitionsService;
import com.client.flows.core.base.states.RealState;
import com.client.flows.core.views.SimpleView;
import com.client.infrastructure.statemachine.FlowDefinition;
import com.client.infrastructure.statemachine.State;
import
com.server.infrastructure.processor.FlowDefinitionProcessorMock;

@SuppressWarnings("serial")
public class MappedFlowDefinitionsServiceImpl extends
RemoteServiceServlet implements FlowDefinitionsService {

public State retrieveViewState() {
RealState state = new RealState();
state.setView(new SimpleView()); <--- this is 
debugged
as null on the client
return state;
}
}



on the client - startup code:

private final FlowDefinitionsServiceAsync flowDefinitionsService =
GWT.create(FlowDefinitionsService.class);
public class MainEntryPoint implements EntryPoint {

/** Creates a new instance of MainEntryPoint */
public MainEntryPoint() {
}

private static final AbsolutePanel loadingArea = new AbsolutePanel
();

/**
 * The entry point method, called automatically by loading a
module
 * that declares an implementing class as an entry-point
 */
public void onModuleLoad() {
flowDefinitionsService.retrieveVie

Re: RPC Serialization of abstract classes

2009-05-14 Thread mirceade

Am I doing something wrong? Is this supposed not to happen by design
and I'm forgetting some configuration?

On May 14, 4:29 pm, mirceade  wrote:
> Hi Jim,
> Forgot to add:
>
> All classes are defined in the client package and implement
> Serializable (yes I know that only the base classes actually have to,
> but for the sake of it they all do).
> That was just an example to understand the inheritance.
>
> On May 13, 11:59 pm, Jim  wrote:
>
> > The code you posted is not right because any class doesn't implements
> > java.io.Serializable.
>
> > You may try to implement java.io.Serializable in any class including
> > abstract class.
>
> > Jimhttp://www.gwtorm.comhttp://code.google.com/p/dreamsource-orm/
>
> > On May 13, 3:52 pm, mirceade  wrote:
>
> > > Hi,
> > > I've got a problem for which I've filled a bug but I thought I should
> > > have started with the forum first:
>
> > > I've got an abstract class with an abstract field. I send an object
> > > whose class is derived from this abstract class with the abstract
> > > property set to another object. When sending the parent object through
> > > RPC it's field becomes null with no serialization exception:
>
> > > public abstract class AbProperty {
>
> > > }
>
> > > public abstract class AbClass {
> > >  AbProperty abProperty;
>
> > > }
>
> > > public class RealProperty extends AbProperty {
>
> > > }
>
> > > public class RealClass extends AbClass {
>
> > > }
>
> > > AbClass rc= new RealClass();
> > > rc.setAbProperty(new RealProperty());
>
> > > ---> rpc
> > > on the client an AbClass result is expected but debugging reveals that
> > > rc.abProperty is null!!!
>
> > > Help is very, very, very much appreciated.
> > > 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-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: RPC Serialization of abstract classes

2009-05-14 Thread mirceade

Hi Jim,
Forgot to add:

All classes are defined in the client package and implement
Serializable (yes I know that only the base classes actually have to,
but for the sake of it they all do).
That was just an example to understand the inheritance.



On May 13, 11:59 pm, Jim  wrote:
> The code you posted is not right because any class doesn't implements
> java.io.Serializable.
>
> You may try to implement java.io.Serializable in any class including
> abstract class.
>
> Jimhttp://www.gwtorm.comhttp://code.google.com/p/dreamsource-orm/
>
> On May 13, 3:52 pm, mirceade  wrote:
>
> > Hi,
> > I've got a problem for which I've filled a bug but I thought I should
> > have started with the forum first:
>
> > I've got an abstract class with an abstract field. I send an object
> > whose class is derived from this abstract class with the abstract
> > property set to another object. When sending the parent object through
> > RPC it's field becomes null with no serialization exception:
>
> > public abstract class AbProperty {
>
> > }
>
> > public abstract class AbClass {
> >  AbProperty abProperty;
>
> > }
>
> > public class RealProperty extends AbProperty {
>
> > }
>
> > public class RealClass extends AbClass {
>
> > }
>
> > AbClass rc= new RealClass();
> > rc.setAbProperty(new RealProperty());
>
> > ---> rpc
> > on the client an AbClass result is expected but debugging reveals that
> > rc.abProperty is null!!!
>
> > Help is very, very, very much appreciated.
> > 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-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: maximize the hosted window...?

2009-05-13 Thread mirceade

Javascript doesn't usually allow you to maximize the window where your
application is loading, only newly created windows.

On 13 Mai, 21:50, "salvador.ce"  wrote:
> try this:
>
>    Window window2 = new Window();
>     window2.setMaximizable(true);
>
> 2009/5/13 Balasundaram 
>
>
>
> > Dear friends...
> > by default..., how to maximize the hosted window in development
> > mode...?
>
> --
> Carlos Salvador
> Consultor BI / SAP BW BPS
> 021-8426-8120
> 011-9579-7865

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



RPC Serialization of abstract classes

2009-05-13 Thread mirceade

Hi,
I've got a problem for which I've filled a bug but I thought I should
have started with the forum first:

I've got an abstract class with an abstract field. I send an object
whose class is derived from this abstract class with the abstract
property set to another object. When sending the parent object through
RPC it's field becomes null with no serialization exception:

public abstract class AbProperty {
}

public abstract class AbClass {
 AbProperty abProperty;
}

public class RealProperty extends AbProperty {
}

public class RealClass extends AbClass {
}


AbClass rc= new RealClass();
rc.setAbProperty(new RealProperty());

---> rpc
on the client an AbClass result is expected but debugging reveals that
rc.abProperty is null!!!

Help is very, very, very much appreciated.
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-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
-~--~~~~--~~--~--~---