Re: Hibernate session in RequestFactory

2012-08-26 Thread bond
Hi Thomas,
I already override isLive method and I return always true.

I can't understand if is possibile to create an Exception and send it to 
the client from the class PersistenceFilter. Forgetting for a moment the 
question of how I manage sessions with Hibernate, I would like to know how 
I can raise and send an exception to the client from the PersistenceFilter 
class ie outside the context of the request.

Thanks for your patience

Il giorno domenica 26 agosto 2012 12:55:56 UTC+2, Thomas Broyer ha scritto:
>
>
>
> On Thursday, August 16, 2012 12:57:02 AM UTC+2, bond wrote:
>>
>> Hi Thomas,
>> thanks for your reply. My problem is not use or not use a Filter to solve 
>> this problem. My problem is try to send exception caugth in 
>> PersicensteFilter on the client. I need a per request session and 
>> transaction.
>> If my problem was only lazy inizialization of course this method is not 
>> necessary. I've many entity with complex fields and when I persist, RF 
>> calls automatically findById that raise 
>> org.hibernate.NonUniqueObjectException: a different object with the same 
>> identifier value was already associated with the session. So I need that 
>> when I call a method on RF all go in a unique session and transaction.
>>
>
> If you cannot retrieve the same object twice in the same session (but 
> different transactions), then fix that.
> As an alternative, you can also override the isLive method of your 
> Locators so that it doesn't rely on find().
>
> But I reiterate my first answer: you're looking at the wrong problem.
>

-- 
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/-/W0tngk8ye3MJ.
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: Hibernate session in RequestFactory

2012-08-26 Thread bond
Hi guys,
any ideas about my question?

Thanks very much

Il giorno giovedì 16 agosto 2012 00:57:02 UTC+2, bond ha scritto:
>
> Hi Thomas,
> thanks for your reply. My problem is not use or not use a Filter to solve 
> this problem. My problem is try to send exception caugth in 
> PersicensteFilter on the client. I need a per request session and 
> transaction.
> If my problem was only lazy inizialization of course this method is not 
> necessary. I've many entity with complex fields and when I persist, RF 
> calls automatically findById that raise 
> org.hibernate.NonUniqueObjectException: a different object with the same 
> identifier value was already associated with the session. So I need that 
> when I call a method on RF all go in a unique session and transaction.
>
> Thanks very much
>
> Daniele
>
> Il giorno martedì 14 agosto 2012 17:13:55 UTC+2, Thomas Broyer ha scritto:
>>
>> You're trying to solve the wrong problem. If you have an issue with lazy 
>> loading, then load eagerly, do not extend your transaction lifetime.
>
>

-- 
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/-/lHqqwPQ2xc0J.
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: Request Factory polymorphic with locator

2012-08-24 Thread bond
Hi Thomas,
I watched the DeobfuscatorBuilder and it seems ok. After some tests the 
example that I wrote works but this one no:

@Entity class Document {...}

@Entity class CustomerDocument extends Document{...}
@Entity class CustomerInvoice extends CustomerDocument{...}
@Entity class CustomerCreditNote extends CustomerDocument{...}

@Entity class SupplierDocument extends Document{...}
@Entity class SupplierInvoice extends SupplierDocument {...}
@Entity class SupplierCreditNote extends SupplierDocument {...}

...
@ProxyFor(Document .class) class DocumentProxy extends EntityProxy {...}
@ProxyFor(CustomerDocument.class) class CustomerDocumentProxy extends 
DocumentProxy {...}
@ProxyFor(CustomerInvoice.class) class CustomerInvoiceProxy extends 
CustomerDocumentProxy {...}
...

@Service(value = CustomerDocumentDao.class, locator = DaoLocator.class)
@ExtraTypes({ CustomerInvoice.class, CustomerCreditNote.class })
public interface CustomerDocumentRequest extends RequestContext {
Request getStuff(); //
}
...
Request getStuffRequest = request.getStuff();
getStuffRequest.fire(new Receiver() {
@Override
public void onSuccess(CustomerDocumentProxy proxy) {
if(proxy instanceof  CustomerInvoiceProxy){ //HERE IS THE PROBLEM!!
}else if(proxy instanceof  CustomerInvoiceProxy){}
 }
});

In this case, I want get the customer's documents on the client. On the server, 
with Hibernate, I get the list without problem with the correct type of every 
document.
On the client RF tell me that all entries are of type CustomerDocument insted 
of concrete class that should be CustomerInvoice or CustomerCreditNote.

I hope that my example is enough clear.

Thanks





Il giorno venerdì 24 agosto 2012 10:31:46 UTC+2, Thomas Broyer ha scritto:
>
> All I can say is that it's nothing to do with the use of a ServiceLocator, 
> and that it works for me.
> Can you look at the DeobfuscatorBuilder generated by ValidationTool? (if 
> you configured annotation processing in Eclipse, look at the .apt_generated 
> folder, otherwise use the "apt" tool from the JDK (or javac) with the "-s" 
> argument to write the generated source to disk) Does it look OK wrt 
> client/server-classes mappings?
> Alternately, could you set a breakpoint in 
> com.google.web.bindery.server.ResolverServiceLayer#resolveClientType and 
> try to understand why it chooses MyBaseProxy for a MyChild1 object instead 
> of MyChild1Proxy?
>
> On Wednesday, August 22, 2012 6:06:25 PM UTC+2, bond wrote:
>>
>> Hi,
>> I'd like to use polymorphic type mapping with use of Locator.
>>
>> I'm in this situation:
>>
>> @Entity class MyBase {...}
>> @Entity class MyChild1 extends MyBase {...}
>> @Entity class MyChild2 extends MyBase {...}
>> ...
>> @ProxyFor(MyBase.class) class MyBaseProxy extends EntityProxy {...}
>> @ProxyFor(MyChild1.class) class MyChild1Proxy extends MyBaseProxy {...}
>> @ProxyFor(MyChild2.class) class MyChild2Proxy extends MyBaseProxy {...}
>> ...
>>
>> @Service(value = MyBaseRequestDao.class, locator = DaoLocator.class)
>> @ExtraTypes({ MyChild1.class, MyChild2.class })
>> public interface MyBaseRequest extends RequestContext {
>> Request getStuff(); // MyChild1 here
>> }
>> ...
>> Request getStuffRequest = request.getStuff();
>> getStuffRequest.fire(new Receiver() {
>> @Override
>> public void onSuccess(MyBaseProxy proxy) {
>> if(proxy instanceof  MyChild1Proxy)   
>> button.setText(((MyChild1Proxy)proxy).getQwerty()); // HERE!
>> }
>> });
>>
>> I'm using Hibernate on the server and in the server (on my MyBaseRequestDao) 
>> I can see the correct type of objects. On the client instead the polymorphic 
>> mapping seems don't work.
>>
>> Maybe the problem is the use of locator?
>>
>> Thanks very much 
>>
>>
>>

-- 
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/-/LYEzH4Wu7AcJ.
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: Request Factory polymorphic with locator

2012-08-24 Thread bond
Hi,
anyone has some ideas about this problem?

Thanks!!

Il giorno mercoledì 22 agosto 2012 18:06:25 UTC+2, bond ha scritto:
>
> Hi,
> I'd like to use polymorphic type mapping with use of Locator.
>
> I'm in this situation:
>
> @Entity class MyBase {...}
> @Entity class MyChild1 extends MyBase {...}
> @Entity class MyChild2 extends MyBase {...}
> ...
> @ProxyFor(MyBase.class) class MyBaseProxy extends EntityProxy {...}
> @ProxyFor(MyChild1.class) class MyChild1Proxy extends MyBaseProxy {...}
> @ProxyFor(MyChild2.class) class MyChild2Proxy extends MyBaseProxy {...}
> ...
>
> @Service(value = MyBaseRequestDao.class, locator = DaoLocator.class)
> @ExtraTypes({ MyChild1.class, MyChild2.class })
> public interface MyBaseRequest extends RequestContext {
> Request getStuff(); // MyChild1 here
> }
> ...
> Request getStuffRequest = request.getStuff();
> getStuffRequest.fire(new Receiver() {
> @Override
> public void onSuccess(MyBaseProxy proxy) {
> if(proxy instanceof  MyChild1Proxy)   
> button.setText(((MyChild1Proxy)proxy).getQwerty()); // HERE!
> }
> });
>
> I'm using Hibernate on the server and in the server (on my MyBaseRequestDao) 
> I can see the correct type of objects. On the client instead the polymorphic 
> mapping seems don't work.
>
> Maybe the problem is the use of locator?
>
> Thanks very much 
>
>
>

-- 
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/-/bW9somO6ssIJ.
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.



Request Factory polymorphic with locator

2012-08-22 Thread bond
Hi,
I'd like to use polymorphic type mapping with use of Locator.

I'm in this situation:

@Entity class MyBase {...}
@Entity class MyChild1 extends MyBase {...}
@Entity class MyChild2 extends MyBase {...}
...
@ProxyFor(MyBase.class) class MyBaseProxy extends EntityProxy {...}
@ProxyFor(MyChild1.class) class MyChild1Proxy extends MyBaseProxy {...}
@ProxyFor(MyChild2.class) class MyChild2Proxy extends MyBaseProxy {...}
...

@Service(value = MyBaseRequestDao.class, locator = DaoLocator.class)
@ExtraTypes({ MyChild1.class, MyChild2.class })
public interface MyBaseRequest extends RequestContext {
Request getStuff(); // MyChild1 here
}
...
Request getStuffRequest = request.getStuff();
getStuffRequest.fire(new Receiver() {
@Override
public void onSuccess(MyBaseProxy proxy) {
if(proxy instanceof  MyChild1Proxy)   
button.setText(((MyChild1Proxy)proxy).getQwerty()); // HERE!
}
});

I'm using Hibernate on the server and in the server (on my MyBaseRequestDao) I 
can see the correct type of objects. On the client instead the polymorphic 
mapping seems don't work.

Maybe the problem is the use of locator?

Thanks very much 


-- 
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/-/s2ioXxqMWz8J.
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: Hibernate session in RequestFactory

2012-08-15 Thread bond
Hi Thomas,
thanks for your reply. My problem is not use or not use a Filter to solve 
this problem. My problem is try to send exception caugth in 
PersicensteFilter on the client. I need a per request session and 
transaction.
If my problem was only lazy inizialization of course this method is not 
necessary. I've many entity with complex fields and when I persist, RF 
calls automatically findById that raise 
org.hibernate.NonUniqueObjectException: a different object with the same 
identifier value was already associated with the session. So I need that 
when I call a method on RF all go in a unique session and transaction.

Thanks very much

Daniele

Il giorno martedì 14 agosto 2012 17:13:55 UTC+2, Thomas Broyer ha scritto:
>
> You're trying to solve the wrong problem. If you have an issue with lazy 
> loading, then load eagerly, do not extend your transaction lifetime.

-- 
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/-/dLc7x5HkV-kJ.
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: Hibernate session in RequestFactory

2012-08-14 Thread bond
Hi Thomas,
I know that a session is different from a transaction. But in my case I 
need also a single transaction per request in order to manage correctly the 
lazy entity with hibernate.
The problem is that I can't send error message to the client when the error 
is on PersistenceFilter.

Any ideas?

Thanks

Il giorno lunedì 13 agosto 2012 23:53:42 UTC+2, Thomas Broyer ha scritto:
>
> Session != transaction.
>
>  You're supposed to use a single session per request but one transaction 
> per service method.
>

-- 
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/-/rhMjVikyG-YJ.
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: Hibernate session in RequestFactory

2012-08-13 Thread bond
Hi guys,
I'm using request factory with single Hibernate session per request using 
FilterServlet implementation as described here 
http://stackoverflow.com/questions/4988397/gwt-requestfactory-how-to-use-single-entitymanager-per-request.
These are the two classes:

public class ThreadLocalHibernate
{
private static ThreadLocal holder = new ThreadLocal();

private ThreadLocalHibernate()
{
}

public static Session get()
{
return holder.get();
}

public static void set(Session session)
{
holder.set(session);
}
}

public class PersistenceFilter implements Filter {
protected static final Logger log = 
Logger.getLogger(PersistenceFilter.class.getName());

@Override
public void init(FilterConfig filterConfig) throws ServletException {
// Avvia Hibernate
MyHibernateUtil.getSessionFactory();
}

@Override
public void destroy() {
// Ferma Hibernate
MyHibernateUtil.getSessionFactory().close();
}

@Override
public void doFilter(ServletRequest req, ServletResponse res, 
FilterChain chain) throws IOException, ServletException {
Session session = 
MyHibernateUtil.getSessionFactory().getCurrentSession();
ThreadLocalHibernate.set(session);
try {
// Inizia la transazione
session.beginTransaction();
chain.doFilter(req, res);

// Chiude la transazione
session.flush();
session.getTransaction().commit();

} catch (Throwable ex) {
log.error("", ex);
try {
if (session != null && session.getTransaction() != null && 
session.getTransaction().isActive()) {
session.getTransaction().rollback();
}
} catch (RuntimeException rbEx) {
log.error("Non riesco ad annullare la transazione.", rbEx);
}
String message = "";
if (ex.getCause() != null)
message = ex.getCause().getMessage();
else
message = ex.getMessage();

throw new IOException(message);
}
}
}

I can't send to the clients exceptions that are rised in doFilter() methods 
of PersistenceFilter. In fact many errors are launch only when the row 
session.getTransaction().commit() is run. So actually I see an error in the 
server but on the client I see a success message.

Thanks for your help

Best regards


Il giorno domenica 27 marzo 2011 22:36:58 UTC+2, frog ha scritto:
>
>
> I think filters were designed for this kind of  job 
> Have you seen this?
>
> http://stackoverflow.com/questions/4988397/gwt-requestfactory-how-to-use-single-entitymanager-per-request
> 
>
> On Sun, Mar 27, 2011 at 7:27 PM, rwiatr >wrote:
>
>> Thanks for the response Nooonika.
>> Unfortunately it doesn't work for me. I'm looking for a mechanism to
>> open a session before request is processed and close after (or
>> something like that).
>> Here's something that works, at least for now.
>>
>> public class SessionRequestFactoryServlet extends
>> RequestFactoryServlet {
>>private static final ThreadLocal perThreadSession = new
>> ThreadLocal();
>>
>>@Override
>>protected void doPost(HttpServletRequest request,
>>HttpServletResponse response) throws IOException, 
>> ServletException
>> {
>>
>> perThreadSession.set(HibernateUtil.getSessionFactory().openSession());
>>try {
>>super.doPost(request, response);
>>} finally {
>>perThreadSession.get().close();
>>perThreadSession.set(null);
>>}
>>}
>>
>>public static Session getPerThreadSession() {
>>return perThreadSession.get();
>>}
>> }
>> in the DAO object:
>>@Transient
>> public static List rootHierarchyRequest() {
>> try {
>>Session session = SessionRequestFactoryServlet
>>.getPerThreadSession();
>> List hList = new 
>> ArrayList(session
>>.createQuery("from Hierarchy where 
>> parent is null").list());
>> return hList;
>>} catch (Exception e) {
>>e.printStackTrace();
>>}
>>return null;
>>}
>> And a servlet entry in web.xml
>> app.server.requestfactory.SessionRequestFactoryServlet> servlet-class>
>>
>> RequestFactoryServet uses ThreadLocal variables so I guess it's ok.
>> Anyone knows a more suitable way to achieve this? I don't have any
>> experience with such thing and I'm afraid it can cause much more
>> problems in the future. Anyone has any suggestions?
>>
>> On 27 Mar, 

Re: GWT 2.4 istantiate Activity

2012-08-03 Thread bond
Hi Pablo,
how?

In my principal view I've something this:

...


Trattamenti




   ...

where ListaTrattamentoViewImpl is a subview that have to stay in a tab. But 
where I create the place for my principal view how I can create the 
activity for the ListaTrattamentoViewImpl? The ActivityManager will not 
invoke the start method on the activity of ListaTrattamentoViewImpl but 
only in the my principal view.

Thanks


Il giorno lunedì 30 luglio 2012 20:01:46 UTC+2, Juan Pablo Gardella ha 
scritto:
>
> Use event bus to communicate the view with the activity. 
>
> 2012/7/30 bond 
>
>> Hi, anyone has some ideas about this problem?
>> It is strange that no one has this need!
>>
>> Thanks
>>
>> Il giorno sabato 14 luglio 2012 10:44:14 UTC+2, bond ha scritto:
>>>
>>> Any ideas?
>>>
>>> Thanks!
>>>
>>> Il giorno giovedì 12 luglio 2012 14:53:09 UTC+2, bond ha scritto:
>>>>
>>>> Hi guys,
>>>> I've a design question about mvp pattern in GWT. I'm using 
>>>> Activity,Place and View.
>>>> I've some view that shows a list of products (every view show a 
>>>> particular list of objects). I'd like to group these views in a single 
>>>> view 
>>>> that has a TabPanel and in every tab I want to show the view that I 
>>>> created 
>>>> (see attachment).
>>>>
>>>> I'd like to include every view in the one that include all but I can't 
>>>> because in this way the Activity is not associated to the view. 
>>>>
>>>> Which is the best way to model this scenario?
>>>>
>>>> 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/-/Hj0mktV_kLgJ.
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7DsyB3OwHjIJ.
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 2.4 istantiate Activity

2012-07-30 Thread bond
Hi, anyone has some ideas about this problem?
It is strange that no one has this need!

Thanks

Il giorno sabato 14 luglio 2012 10:44:14 UTC+2, bond ha scritto:
>
> Any ideas?
>
> Thanks!
>
> Il giorno giovedì 12 luglio 2012 14:53:09 UTC+2, bond ha scritto:
>>
>> Hi guys,
>> I've a design question about mvp pattern in GWT. I'm using Activity,Place 
>> and View.
>> I've some view that shows a list of products (every view show a 
>> particular list of objects). I'd like to group these views in a single view 
>> that has a TabPanel and in every tab I want to show the view that I created 
>> (see attachment).
>>
>> I'd like to include every view in the one that include all but I can't 
>> because in this way the Activity is not associated to the view. 
>>
>> Which is the best way to model this scenario?
>>
>> 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/-/Hj0mktV_kLgJ.
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.



RequestFactory complex scenario

2012-07-17 Thread bond
Hi,
we have this complex scenario:

public Class A{

private long id;

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval 
= false)
private List child = new ArrayList();

@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, optional = 
true)
private A parent;
}

On the client I have a tree showing our objects. I want to edit an item of 
the tree and change its parent. So I make a request to server in which I 
persist the item I changed. But in this manner on the server I have an 
ConstrainViolationException because the old parent still have the object 
the i changed on his list's child. So, in order to make work this example I 
have to make 2 requests, the first to modify the old parent's child list, 
and then a  request to modify the item I changed. It's work fine but this 
not guaratees the transaction.

Any suggestions?

Thanks

Daniele

-- 
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/-/D12Jz3prbwkJ.
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: Orphan removal with RequestFactory

2012-07-16 Thread bond
Hi,
I'm in this scenario.

There is the class A that has a list of object of class B.

I've a Ui where I can add and remove (for every object A) object B. Where I 
remove object B from A and then persist, in my database is removed the 
association from A -> B but the entity B is still in the table!!! So, seems 
that orphanremoval don't work as expected.

I've the default implementation of setter and getter of A and B classes.

Thank very much

Daniele

Il giorno lunedì 16 luglio 2012 18:01:48 UTC+2, Jens ha scritto:
>
> And whats actually your problem? Or do you have the exact same problem as 
> in the linked discussion?
>
> How is your setter implemented? In the linked discussion the problem is 
> pretty much that the setter is implemented like
>
> public void setChildList(List childs) {
>   //dereferences the original (hibernate) list which could cause the 
> exception on commit.
>   this.childs = childs; 
> }
>
> instead of
>
> public void setChildList(List childs) {
>   //keep the (hibernate) list so hibernate can track its changes
>   this.childs.clear();
>   this.child.addAll(childs);
> }
>
> --- J.
>

-- 
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/-/xDJub0U1OeYJ.
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.



Orphan removal with RequestFactory

2012-07-16 Thread bond
Hi guys,
I'm using Hibernate + Gw's Request factory. I've a problem using a class 
with a list of object like this:

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval 
= true)
private Set scadenze = new 
LinkedHashSet();

It's seems that orphanRemoval don't work with Request Factory as show in 
this post: 
https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/oWJRhnUHAYc
.

Before using request Factory I used Gwt + Gilead and orphanRemoval worked 
great!!

Any idea in order to resole this problem?

Thanks very much!

Best regards

Daniele Renda

-- 
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/-/fBujdDvWLz8J.
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 2.4 istantiate Activity

2012-07-14 Thread bond
Any ideas?

Thanks!

Il giorno giovedì 12 luglio 2012 14:53:09 UTC+2, bond ha scritto:
>
> Hi guys,
> I've a design question about mvp pattern in GWT. I'm using Activity,Place 
> and View.
> I've some view that shows a list of products (every view show a particular 
> list of objects). I'd like to group these views in a single view that has a 
> TabPanel and in every tab I want to show the view that I created (see 
> attachment).
>
> I'd like to include every view in the one that include all but I can't 
> because in this way the Activity is not associated to the view. 
>
> Which is the best way to model this scenario?
>
> 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/-/3T2_QdRuz-YJ.
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: Method findById requestFactory

2012-07-12 Thread bond
Thanks very much. Links you posted are very usefull!!!

Daniele

Il giorno lunedì 2 luglio 2012 19:28:21 UTC+2, Thomas Broyer ha scritto:
>
>
> On Monday, July 2, 2012 5:35:35 PM UTC+2, bond wrote:
>>
>> Hello everybody,
>> I'm a question: I'm using request factory with mvp pattern. I have a 
>> CellTable and when dataProvider is inovoked, I see that on server is called 
>> the count() and getRow() method but is also called the method findById() 
>> for every record that previus method fetched.
>>
>> Can Anyone explain me the reason why this happen?
>>
>
> See http://code.google.com/p/google-web-toolkit/issues/detail?id=6721
>
> http://stackoverflow.com/questions/6083346/requestfactory-and-findentity-method-in-gwt
>
> http://stackoverflow.com/questions/7669502/how-to-prevent-redundant-persistence-calls-from-gwt-requestfactory-context
> and 
> http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryMovingParts#Flow
>  
>

-- 
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/-/GgcdAswrOYgJ.
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.



Method findById requestFactory

2012-07-02 Thread bond
Hello everybody,
I'm a question: I'm using request factory with mvp pattern. I have a 
CellTable and when dataProvider is inovoked, I see that on server is called 
the count() and getRow() method but is also called the method findById() 
for every record that previus method fetched.

Can Anyone explain me the reason why this happen?

Thanks very much

Best regards

Daniele

-- 
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/-/A2D-lsvEl58J.
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 2.4 ERROR WITH IE8

2012-03-08 Thread bond
Someone can help me?

Thanks

Il giorno mercoledì 7 marzo 2012 18:19:21 UTC+1, bond ha scritto:
>
> Hi,
> I wrote a web application, some like an ecommerce. It works fine with 
> FF,Chrome,IE9,Safari but with IE8 I've several errors :-(
>
> For example when I load a page (see attachment) I have this error:
>
> 18:00:18.812 [ERROR] [ztlstore] Errore
> com.google.gwt.core.client.JavaScriptException: (Error): Errore di 
> run-time sconosciuto
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
> at 
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
> at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
> at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
> at 
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
> at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
> at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> at 
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> at 
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
> at java.lang.Thread.run(Unknown Source)
>
> I cant' find where is the error; I suppose it is a problem of GWT with 
> IE8. Someone can help me?
>
> Thanks
>
> best regards
>

-- 
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/-/jaQaIdYJrsIJ.
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: Loading javascript on Uibinder

2011-11-22 Thread bond
Hi Thomas,
your suggestion is very good but unfortunally I'm using GWT 2.1.1 and
I can't change it :-(

Another way maybe can be know when uiBinder finish to display the
page.

After initWidget(uiBinder.createAndBindUi(this)); the page is not yet
made. Can I know when the page is built?

Thanks very much

On 22 Nov, 10:34, Thomas Broyer  wrote:
> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...
> ?

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



{SAP-Jobs-SAP-FAQ} {{ http://www.bignlife.in } Re: Loading javascript on Uibinder

2011-11-21 Thread bond
Hi sowdri. Thanks for your post. I know that but I need the javascript
file is loaded only after the html page is rendered. And the html page
is made throught uibinder.
So there is a way to do this?

Thanks very much!

Best regards

On 22 Nov, 05:36, -sowdri-  wrote:
> UiBinder is not the place to load external js files. For more info on when
> and where its appropriate to load external js 
> refer:http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_WhenDoMo...
>
> -sowdri-

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

-- 
Go to Master Mind Web Earner Blog  :-

http://www.bignlife.in/

 http://www.bignlife.in/

Unsubscribe All Group Post :-   http://j.gs/624707/unsubscribe 
  
http://q.gs/624707/unsubscribe



Subscribe All Group Post :-   http://j.gs/624707/subscribe

 http://q.gs/624707/subscribe

Make Money E-mail Sending Job :-

  http://www.bignlife.in/

  http://www.bignlife.in/

  http://www.bignlife.in/

  http://www.bignlife.in/

  http://www.bignlife.in/

  http://www.bignlife.in/

 http://www.bignlife.in/

  http://www.bignlife.in/

  http://www.bignlife.in/

 http://www.bignlife.in/

  http://www.bignlife.in/

  http://www.bignlife.in/

-- 
You received this message because you are subscribed to the Google Groups 
"SAP-Jobs-SAP-FAQ" group.
To post to this group, send email to sap-jobs-sap-...@googlegroups.com.
To unsubscribe from this group, send email to 
sap-jobs-sap-faq+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sap-jobs-sap-faq?hl=en.



Loading javascript on Uibinder

2011-11-21 Thread bond
Hi,
I need to load a javacript in a uibinder.xml file. In a few words,a
need to load this script http://malsup.com/jquery/cycle/ when the page
is created. I can't load the script at startup of application.

THanks very much!

-- 
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 2.1 CellTable row

2011-04-07 Thread bond
Thanks very much, it is very usefull!

Daniele

On 6 Apr, 16:28, manstis  wrote:
> This is by design, SimplePager ensures you always view a whole page.
>
> There are lots of posts about this "issue" with earlier versions of
> GWT on the internet.
>
> Here's an example of a simple pager extension that does what you
> need:-
>
> /**
>  * A custom Pager that maintains a set page size and displays page
> numbers and
>  * total pages more elegantly. SimplePager will ensure pageSize code>
>  * rows are always rendered even if the "last" page has less than
>  * pageSize rows remain.
>  */
> public class GuvnorSimplePager extends SimplePager {
>
>     //Page size is normally derieved from the visibleRange
>     private int pageSize = 10;
>
>     @Override
>     public void setPageSize(int pageSize) {
>         this.pageSize = pageSize;
>         super.setPageSize( pageSize );
>     }
>
>     // We want pageSize to remain constant
>     @Override
>     public int getPageSize() {
>         return pageSize;
>     }
>
>     // Page forward by an exact size rather than the number of visible
>     // rows as is in the norm in the underlying implementation
>     @Override
>     public void nextPage() {
>         if ( getDisplay() != null ) {
>             Range range = getDisplay().getVisibleRange();
>             setPageStart( range.getStart()
>                           + getPageSize() );
>         }
>     }
>
>     // Page back by an exact size rather than the number of visible
> rows
>     // as is in the norm in the underlying implementation
>     @Override
>     public void previousPage() {
>         if ( getDisplay() != null ) {
>             Range range = getDisplay().getVisibleRange();
>             setPageStart( range.getStart()
>                           - getPageSize() );
>         }
>     }
>
>     // Override so the last page is shown with a number of rows less
>     // than the pageSize rather than always showing the pageSize
> number
>     // of rows and possibly repeating rows on the last and penultimate
>     // page
>     @Override
>     public void setPageStart(int index) {
>         if ( getDisplay() != null ) {
>             Range range = getDisplay().getVisibleRange();
>             int displayPageSize = getPageSize();
>             if ( isRangeLimited()
>                  && getDisplay().isRowCountExact() ) {
>                 displayPageSize = Math.min( getPageSize(),
>                                             getDisplay().getRowCount()
>                                                     - index );
>             }
>             index = Math.max( 0,
>                               index );
>             if ( index != range.getStart() ) {
>                 getDisplay().setVisibleRange( index,
>                                               displayPageSize );
>             }
>         }
>     }
>
>     // Override to display "0 of 0" when there are no records
> (otherwise
>     // you get "1-1 of 0") and "1 of 1" when there is only one record
>     // (otherwise you get "1-1 of 1"). Not internationalised (but
>     // neither is SimplePager)
>     protected String createText() {
>         NumberFormat formatter = NumberFormat.getFormat( "#,###" );
>         HasRows display = getDisplay();
>         Range range = display.getVisibleRange();
>         int pageStart = range.getStart() + 1;
>         int pageSize = range.getLength();
>         int dataSize = display.getRowCount();
>         int endIndex = Math.min( dataSize,
>                                  pageStart
>                                          + pageSize
>                                          - 1 );
>         endIndex = Math.max( pageStart,
>                              endIndex );
>         boolean exact = display.isRowCountExact();
>         if ( dataSize == 0 ) {
>             return "0 of 0";
>         } else if ( pageStart == endIndex ) {
>             return formatter.format( pageStart )
>                    + " of "
>                    + formatter.format( dataSize );
>         }
>         return formatter.format( pageStart )
>                + "-"
>                + formatter.format( endIndex )
>                + (exact ? " of " : " of over ")
>                + formatter.format( dataSize );
>     }
>
> }
>
> Cheers,
>
> Mike
>
> On Apr 6, 8:31 am, bond  wrote:
>
> > Hello guys,
> > I'm using CellTable on my project.
> > If the page size is 10 and I've 15 rows, Cell table display on the
> > f

Gwt 2.1 CellTable row

2011-04-06 Thread bond
Hello guys,
I'm using CellTable on my project.
If the page size is 10 and I've 15 rows, Cell table display on the
first page results from 1-10, when I turn page it displays result from
5-15.
Is possibile change this behaviuor displaying on the first page
results from 1-10 and on the second page results from 10-15?

Thanks

Cheers

Daniele

-- 
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: Range start can not be less than 0

2011-02-03 Thread bond
I've the same problem!

Thanks

Daniele

On 1 Feb, 14:56, Deepak Singh  wrote:
> Hi All,
>
> I have cell table working fine.
> But when i move through the results fast using arrow keys, i sometimes get
> this exception
>
> (Impl.java:216) 2011-02-01 19:23:53,859 [FATAL] Uncaught Exception:
> java.lang.IllegalArgumentException:
> *Range start cannot be less than 0*
>     at 
> com.google.gwt.user.cellview.client.HasDataPresenter.setVisibleRange(HasDataPresenter.java:1414)
>     at 
> com.google.gwt.user.cellview.client.HasDataPresenter.setKeyboardSelectedRow(HasDataPresenter.java:833)
>     at 
> com.google.gwt.user.cellview.client.HasDataPresenter.keyboardPrev(HasDataPresenter.java:709)
>     at 
> com.google.gwt.user.cellview.client.AbstractHasData.onBrowserEvent(AbstractHasData.java:469)
>     at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
>     at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264)
>
> Anything i need to set to table.
>
> 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: GWT + GILEAD + AXIS2 POJO PROBLEM

2011-02-03 Thread bond
HI,
any news about this problem?

Thanks

Regards

Daniele

On 24 Gen, 18:00, bond  wrote:
> Hi Stefan,
> thanks for your suggestion. I thought about using Request Factory
> without Gilead but I should rewrite many lines of code because the
> project is very large.
>
> I think you're right; maybe there is a circular reference inside
> LightEntity :-(
>
> Now I'm trying to creare a plain java class in witch I copy all fields
> fron LightEntity object. But I've this exception:
>
> org.apache.axis2.AxisFault: java.lang.RuntimeException:
> org.apache.axis2.AxisFault: Mapping qname not fond for the package:
> org.hibernate.collection
>         at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:
> 517)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:
> 371)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:
> 417)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:
> 229)
>         at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:
> 165)
>         at
> it.pianetatecno.ztl.server.webservices.PassWsStub.autenticaCliente(PassWsStub.java:
> 2780)
>         at it.Main.main(Main.java:28)
>
> Strange: infact my object is detached from hibernate session!!
>
> Thanks
>
> On 24 Gen, 13:44, Stefan Ollinger  wrote:
>
> > Hi Daniele,
>
> > You could give JPA (via Hibernate) and GWT 2.1.1 Request Factory a try.
> > With those, you dont need to have serializable Java classes like with
> > GWT-RPC before.
> > Request Factory uses Interfaces instead, for a) Entity/Value Proxies and
> > b) Service Facades (Request Context) and works seamlessly together with
> > annotated JPA classes.
> > That means your domain classes dont have to extend LightEntity.
>
> > The other option would be to find a way to marshal the LightEntities via
> > Axis2.
>
> > 23/01/2011 11:56:00 DEBUG StAXOMBuilder:333 - START_ELEMENT:
> > 23/01/2011 11:56:00 DEBUG StAXOMBuilder:334 -   QName: 
> > {http://gwt.pojo.gilead.sf.net/xsd}debugString
> > 23/01/2011 11:56:15 DEBUG StAXOMBuilder:350 - END_ELEMENT:
> > 23/01/2011 11:56:15 DEBUG StAXOMBuilder:351 -   QName: 
> > {http://gwt.pojo.gilead.sf.net/xsd}debugString
> > 23/01/2011 11:56:28 DEBUG StAXOMBuilder:333 - START_ELEMENT:
> > 23/01/2011 11:56:28 DEBUG StAXOMBuilder:334 -   QName: 
> > {http://gwt.pojo.gilead.sf.net/xsd}underlyingValue
>
> > ...
>
> > Looks like LightEntities contain properties which you dont want to send
> > to the client (debugString, underlyingValue). Maybe there is even a
> > circular reference inside where the timeout comes from.
>
> > Regards,
> > Stefan
>
> > Am 24.01.2011 13:00, schrieb bond:
>
> > > Hi Stefan,
> > > I need Gilead because my application is a GWT application and ALSO
> > > expose some webservice to another java standalone application.
> > > So my application internally uses GWT+Gilead+Hibernate, instead my
> > > application<->external application communicate with webservices Axis2.
>
> > > So to avoid rewriting my domain I'd like to return a domain object but
> > > in this case every domain object extends LightEntity.
>
> > > Thanks!!
>
> > > Daniele
>
> > > On 24 Gen, 12:53, Stefan Ollinger  wrote:
> > >> Why do you need Gilead?
>
> > >> Regards,
> > >> Stefan
>
> > >> Am 24.01.2011 09:15, schrieb bond:
>
> > >>> Hi Y2i,
> > >>> I think so. This is a problem infact. The only solution I think is
> > >>> creare a pojo class with the same fields of the object I want return
> > >>> but that doesn't extends LightEntity.
> > >>> Any other idea?
> > >>> Thanks
> > >>> On 23 Gen, 18:57, Y2i    wrote:
> > >>>> May be the problem is related to the fact that 
> > >>>> LightEntity<http://noon.gilead.free.fr/javadoc/index.html>    is
> > >>>> not translatable?

-- 
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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-24 Thread bond
Hi Stefan,
thanks for your suggestion. I thought about using Request Factory
without Gilead but I should rewrite many lines of code because the
project is very large.

I think you're right; maybe there is a circular reference inside
LightEntity :-(

Now I'm trying to creare a plain java class in witch I copy all fields
fron LightEntity object. But I've this exception:

org.apache.axis2.AxisFault: java.lang.RuntimeException:
org.apache.axis2.AxisFault: Mapping qname not fond for the package:
org.hibernate.collection
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:
517)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:
371)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:
417)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:
229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:
165)
at
it.pianetatecno.ztl.server.webservices.PassWsStub.autenticaCliente(PassWsStub.java:
2780)
at it.Main.main(Main.java:28)

Strange: infact my object is detached from hibernate session!!

Thanks

On 24 Gen, 13:44, Stefan Ollinger  wrote:
> Hi Daniele,
>
> You could give JPA (via Hibernate) and GWT 2.1.1 Request Factory a try.
> With those, you dont need to have serializable Java classes like with
> GWT-RPC before.
> Request Factory uses Interfaces instead, for a) Entity/Value Proxies and
> b) Service Facades (Request Context) and works seamlessly together with
> annotated JPA classes.
> That means your domain classes dont have to extend LightEntity.
>
> The other option would be to find a way to marshal the LightEntities via
> Axis2.
>
> 23/01/2011 11:56:00 DEBUG StAXOMBuilder:333 - START_ELEMENT:
> 23/01/2011 11:56:00 DEBUG StAXOMBuilder:334 -   QName: 
> {http://gwt.pojo.gilead.sf.net/xsd}debugString
> 23/01/2011 11:56:15 DEBUG StAXOMBuilder:350 - END_ELEMENT:
> 23/01/2011 11:56:15 DEBUG StAXOMBuilder:351 -   QName: 
> {http://gwt.pojo.gilead.sf.net/xsd}debugString
> 23/01/2011 11:56:28 DEBUG StAXOMBuilder:333 - START_ELEMENT:
> 23/01/2011 11:56:28 DEBUG StAXOMBuilder:334 -   QName: 
> {http://gwt.pojo.gilead.sf.net/xsd}underlyingValue
>
> ...
>
> Looks like LightEntities contain properties which you dont want to send
> to the client (debugString, underlyingValue). Maybe there is even a
> circular reference inside where the timeout comes from.
>
> Regards,
> Stefan
>
> Am 24.01.2011 13:00, schrieb bond:
>
> > Hi Stefan,
> > I need Gilead because my application is a GWT application and ALSO
> > expose some webservice to another java standalone application.
> > So my application internally uses GWT+Gilead+Hibernate, instead my
> > application<->external application communicate with webservices Axis2.
>
> > So to avoid rewriting my domain I'd like to return a domain object but
> > in this case every domain object extends LightEntity.
>
> > Thanks!!
>
> > Daniele
>
> > On 24 Gen, 12:53, Stefan Ollinger  wrote:
> >> Why do you need Gilead?
>
> >> Regards,
> >> Stefan
>
> >> Am 24.01.2011 09:15, schrieb bond:
>
> >>> Hi Y2i,
> >>> I think so. This is a problem infact. The only solution I think is
> >>> creare a pojo class with the same fields of the object I want return
> >>> but that doesn't extends LightEntity.
> >>> Any other idea?
> >>> Thanks
> >>> On 23 Gen, 18:57, Y2i    wrote:
> >>>> May be the problem is related to the fact that 
> >>>> LightEntity<http://noon.gilead.free.fr/javadoc/index.html>    is
> >>>> not translatable?

-- 
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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-24 Thread bond
Hi Stefan,
I need Gilead because my application is a GWT application and ALSO
expose some webservice to another java standalone application.
So my application internally uses GWT+Gilead+Hibernate, instead my
application<->external application communicate with webservices Axis2.

So to avoid rewriting my domain I'd like to return a domain object but
in this case every domain object extends LightEntity.

Thanks!!

Daniele

On 24 Gen, 12:53, Stefan Ollinger  wrote:
> Why do you need Gilead?
>
> Regards,
> Stefan
>
> Am 24.01.2011 09:15, schrieb bond:
>
> > Hi Y2i,
> > I think so. This is a problem infact. The only solution I think is
> > creare a pojo class with the same fields of the object I want return
> > but that doesn't extends LightEntity.
>
> > Any other idea?
>
> > Thanks
>
> > On 23 Gen, 18:57, Y2i  wrote:
> >> May be the problem is related to the fact that 
> >> LightEntity<http://noon.gilead.free.fr/javadoc/index.html>  is
> >> not translatable?

-- 
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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-24 Thread bond
Hi Y2i,
I think so. This is a problem infact. The only solution I think is
creare a pojo class with the same fields of the object I want return
but that doesn't extends LightEntity.

Any other idea?

Thanks

On 23 Gen, 18:57, Y2i  wrote:
> May be the problem is related to the fact that 
> LightEntity is
> not translatable?

-- 
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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-23 Thread bond
1 11:55:19 DEBUG StAXOMBuilder:351 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:55:21 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:55:21 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}underlyingValue
23/01/2011 11:55:23 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:55:23 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:55:27 DEBUG StAXOMBuilder:350 - END_ELEMENT:
23/01/2011 11:55:27 DEBUG StAXOMBuilder:351 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:55:30 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:55:30 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}underlyingValue
23/01/2011 11:55:36 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:55:36 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:55:43 DEBUG StAXOMBuilder:350 - END_ELEMENT:
23/01/2011 11:55:43 DEBUG StAXOMBuilder:351 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:55:50 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:55:50 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}underlyingValue
23/01/2011 11:56:00 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:56:00 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:56:15 DEBUG StAXOMBuilder:350 - END_ELEMENT:
23/01/2011 11:56:15 DEBUG StAXOMBuilder:351 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:56:28 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:56:28 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}underlyingValue
23/01/2011 11:56:50 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:56:50 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:57:19 DEBUG StAXOMBuilder:350 - END_ELEMENT:
23/01/2011 11:57:19 DEBUG StAXOMBuilder:351 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}debugString
23/01/2011 11:57:46 DEBUG StAXOMBuilder:333 - START_ELEMENT:
23/01/2011 11:57:46 DEBUG StAXOMBuilder:334 -   QName: {http://
gwt.pojo.gilead.sf.net/xsd}underlyingValue

And it go on indefinitely with these log also if the client throw
TimeoutException!! It's very strange!!

Any ideas?

Thanks!

On 23 Gen, 01:01, bond  wrote:
> Hi Stefan,
> I'will make in practice your suggestions. I hope notice some
> interesting in logs!!
>
> Thanks
>
> Daniele
>
> On 22 Gen, 17:20, Stefan Ollinger  wrote:
>
> > You could enable logging at debug level and see if there is any useful
> > output. Or you can debug the code with eclipse by setting a breakpoint
> > in gilead and check which operation does timeout.
>
> > After how many seconds does the timeout exception occur?
>
> > Regards,
> > Stefan
>
> > Am 22.01.2011 15:35, schrieb bond:
>
> > > Hi Stefan,
> > > I've this problem with a standalone Java client!!!
>
> > > Any ideas??
>
> > > Thanks!
>
> > > On 22 Gen, 15:05, Stefan Ollinger  wrote:
> > >> Hello Daniele,
>
> > >> are you calling the Axis2 Webservice via Javascript?
> > >> Does the Webservice only timeout when using GWT, or also when called
> > >> from a standalone Java client?
>
> > >> Regards,
> > >> Stefan
>
> > >> Am 22.01.2011 12:12, schrieb bond:
>
> > >>> Someone can help me please?
> > >>> Thanks!
> > >>> On 19 Gen, 20:56, bond    wrote:
> > >>>> Hi,
> > >>>> I've a project in witch I'm using Gwt 2.1.1 with Gilead 1.3.3,
> > >>>> Hibernate 3.3 and Axi2.
> > >>>> I created a web service that returns gilead pojo object of domain. The
> > >>>> server seems return the object but it doesn't arrive on the client
> > >>>> that go to org.apache.axis2.AxisFault: Read timed out. If I use a
> > >>>> simple bean that doesn't extends LightEntity it works!! There is a
> > >>>> manner to return from web service a gilead pojo object serializable
> > >>>> that doesn't create this problem?
> > >>>> Thanks!
> > >>>> 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-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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-22 Thread bond
Hi Stefan,
I'will make in practice your suggestions. I hope notice some
interesting in logs!!

Thanks

Daniele

On 22 Gen, 17:20, Stefan Ollinger  wrote:
> You could enable logging at debug level and see if there is any useful
> output. Or you can debug the code with eclipse by setting a breakpoint
> in gilead and check which operation does timeout.
>
> After how many seconds does the timeout exception occur?
>
> Regards,
> Stefan
>
> Am 22.01.2011 15:35, schrieb bond:
>
> > Hi Stefan,
> > I've this problem with a standalone Java client!!!
>
> > Any ideas??
>
> > Thanks!
>
> > On 22 Gen, 15:05, Stefan Ollinger  wrote:
> >> Hello Daniele,
>
> >> are you calling the Axis2 Webservice via Javascript?
> >> Does the Webservice only timeout when using GWT, or also when called
> >> from a standalone Java client?
>
> >> Regards,
> >> Stefan
>
> >> Am 22.01.2011 12:12, schrieb bond:
>
> >>> Someone can help me please?
> >>> Thanks!
> >>> On 19 Gen, 20:56, bond    wrote:
> >>>> Hi,
> >>>> I've a project in witch I'm using Gwt 2.1.1 with Gilead 1.3.3,
> >>>> Hibernate 3.3 and Axi2.
> >>>> I created a web service that returns gilead pojo object of domain. The
> >>>> server seems return the object but it doesn't arrive on the client
> >>>> that go to org.apache.axis2.AxisFault: Read timed out. If I use a
> >>>> simple bean that doesn't extends LightEntity it works!! There is a
> >>>> manner to return from web service a gilead pojo object serializable
> >>>> that doesn't create this problem?
> >>>> Thanks!
> >>>> 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-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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-22 Thread bond
Hi Maurice,
I need to use Axis because I've to call some services from another
java application.
I know that axis is not necessary in order to send data from client to
server in gwt applications.

Thanks!!

Daniele

On 22 Gen, 20:35, Maurice Nee  wrote:
> Hey,
>
> Probably a dumb question, but why do you need to use Axis2? I don't
> have any experience with it, but I built a GWT app that uses Gilead to
> deal with Hibernate/GWT serialization issues and was able to serialize
> my POJOs just fine using GWTs built in RPC mechanism.
>
> -Lyden
>
> On Jan 19, 2:56 pm, bond  wrote:
>
> > Hi,
> > I've a project in witch I'm using Gwt 2.1.1 with Gilead 1.3.3,
> > Hibernate 3.3 and Axi2.
> > I created a web service that returns gilead pojo object of domain. The
> > server seems return the object but it doesn't arrive on the client
> > that go to org.apache.axis2.AxisFault: Read timed out. If I use a
> > simple bean that doesn't extends LightEntity it works!! There is a
> > manner to return from web service a gilead pojo object serializable
> > that doesn't create this problem?
>
> > Thanks!
>
> > 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-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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-22 Thread bond
Hi Stefan,
I've this problem with a standalone Java client!!!

Any ideas??

Thanks!

On 22 Gen, 15:05, Stefan Ollinger  wrote:
> Hello Daniele,
>
> are you calling the Axis2 Webservice via Javascript?
> Does the Webservice only timeout when using GWT, or also when called
> from a standalone Java client?
>
> Regards,
> Stefan
>
> Am 22.01.2011 12:12, schrieb bond:
>
> > Someone can help me please?
>
> > Thanks!
>
> > On 19 Gen, 20:56, bond  wrote:
> >> Hi,
> >> I've a project in witch I'm using Gwt 2.1.1 with Gilead 1.3.3,
> >> Hibernate 3.3 and Axi2.
> >> I created a web service that returns gilead pojo object of domain. The
> >> server seems return the object but it doesn't arrive on the client
> >> that go to org.apache.axis2.AxisFault: Read timed out. If I use a
> >> simple bean that doesn't extends LightEntity it works!! There is a
> >> manner to return from web service a gilead pojo object serializable
> >> that doesn't create this problem?
>
> >> Thanks!
>
> >> 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-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 + GILEAD + AXIS2 POJO PROBLEM

2011-01-22 Thread bond
Someone can help me please?

Thanks!

On 19 Gen, 20:56, bond  wrote:
> Hi,
> I've a project in witch I'm using Gwt 2.1.1 with Gilead 1.3.3,
> Hibernate 3.3 and Axi2.
> I created a web service that returns gilead pojo object of domain. The
> server seems return the object but it doesn't arrive on the client
> that go to org.apache.axis2.AxisFault: Read timed out. If I use a
> simple bean that doesn't extends LightEntity it works!! There is a
> manner to return from web service a gilead pojo object serializable
> that doesn't create this problem?
>
> Thanks!
>
> 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-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.



GWT + GILEAD + AXIS2 POJO PROBLEM

2011-01-19 Thread bond
Hi,
I've a project in witch I'm using Gwt 2.1.1 with Gilead 1.3.3,
Hibernate 3.3 and Axi2.
I created a web service that returns gilead pojo object of domain. The
server seems return the object but it doesn't arrive on the client
that go to org.apache.axis2.AxisFault: Read timed out. If I use a
simple bean that doesn't extends LightEntity it works!! There is a
manner to return from web service a gilead pojo object serializable
that doesn't create this problem?

Thanks!

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-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 2.1.1 runtime error

2011-01-13 Thread bond
Solved,
I had gwt-bikeshed.jar in my WEB-INF/lib. I removed it and now all
works fine.

Thanks!

On 12 Gen, 10:32, bond  wrote:
> Hi,
> I've a strange error with my project made with gwt 2.1.1. When I run
> it in development mode all works fine; but if I compile the project
> and then run it I've this error:
>
> One or more exceptions caught, see full set in
> UmbrellaException#getCauses - Unknown.Ep(Unknown source:0)
> Unknown.jp(Unknown source:0)
> Unknown.vp(Unknown source:0)
> Unknown.lp(Unknown source:0)
> Unknown.fk(Unknown source:0)
> Unknown.ek(Unknown source:0)
> Unknown.lk(Unknown source:0)
> Unknown.vk(Unknown source:0)
> Unknown.Bk(Unknown source:0)
> Unknown.sX(Unknown source:0)
> Unknown.JW(Unknown source:0)
> Unknown.PW(Unknown source:0)
> Unknown.$Uf(Unknown source:0)
> Unknown.Pyf(Unknown source:0)
> Unknown.kVf(Unknown source:0)
> Unknown.oVf(Unknown source:0)
> Unknown.dKd(Unknown source:0)
> Unknown.tZ(Unknown source:0)
> Unknown.h$(Unknown source:0)
> Unknown.anonymous(Unknown source:0)
> Unknown.tn(Unknown source:0)
> Unknown.wn(Unknown source:0)
> Unknown.anonymous(Unknown source:0)
> Unknown.anonymous(Unknown source:0)
>
> I can't find the error!! Any suggestion?
>
> Thanks very much

-- 
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: Eclipse heap space during build

2011-01-13 Thread bond
Hi Filipe,
I disabled ALL validation on my projet but Eclipse continue to make
"Javascript validator on /myprojectname" and then run to heap space.
Why Eclipse ignore my settings on the project?

Thanks!

On 13 Gen, 00:27, bond  wrote:
> yes Alan,
> I've Windows 7 64bit; maybe is better use Eclipse 64it. However I
> think the problem can be solved with suggest of Filipe.
>
> Thanks!
>
> Daniele
>
> On 12 Gen, 20:06, "a...@mechnicality.com" 
> wrote:
>
> > On 1/12/2011 10:32 AM, bond wrote:
>
> > > Hi,
> > > this is my eclipse.ini
>
> > > -startup
> > > plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> > > --launcher.library
> > > plugins/
> > > org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
> > > -product
> > > org.eclipse.epp.package.jee.product
> > > --launcher.defaultAction
> > > openFile
> > > --launcher.XXMaxPermSize
> > > 256M
> > > -showsplash
> > > org.eclipse.platform
> > > --launcher.XXMaxPermSize
> > > 256m
> > > --launcher.defaultAction
> > > openFile
> > > -vmargs
> > > -Dosgi.requiredJavaVersion=1.5
> > > -Xms1024m
> > > -Xmx1024m
>
> > > My machine has 6GB of RAM but if I set Xmx over 1024mb eclipse doesn't
> > > start with error "JVM Error".
>
> > You are using 32 bit eclipse - have you considered using 64 bit? I assume 
> > you have windows64.
> > However, that may not be your problem.
>
> > Alan
>
> > > My project is a gwt project and use also axis2 so I can't remove the
> > > gwt part!
>
> > > The error during building is "An internal error occurred during:
> > > "Building workspace".
> > > Java heap space"
>
> > > Thanks very much!
>
> > > On 12 Gen, 17:30, "a...@mechnicality.com"
> > > wrote:
> > >> And another thought. If you don't need the GWT project, just close it.
>
> > >> On 1/12/2011 8:12 AM, bond wrote:
>
> > >>> Hi,
> > >>> I've a gwt projet and I converted to facet project in order to use
> > >>> Axis2. When I compile the project all works fine, but when I reopen
> > >>> the project Eclipse go to heap space during building workspace and in
> > >>> particular analysing the folder where there are the compiled files of
> > >>> gwt.
> > >>> I think that Eclipse go to heap space because analize all the file
> > >>> compiled by gwt; there is some solution to the problem?
> > >>> Thanks very much
> > >>> Best regards
> > >> --
> > >> 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-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: Eclipse heap space during build

2011-01-12 Thread bond
yes Alan,
I've Windows 7 64bit; maybe is better use Eclipse 64it. However I
think the problem can be solved with suggest of Filipe.

Thanks!

Daniele

On 12 Gen, 20:06, "a...@mechnicality.com" 
wrote:
> On 1/12/2011 10:32 AM, bond wrote:
>
> > Hi,
> > this is my eclipse.ini
>
> > -startup
> > plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> > --launcher.library
> > plugins/
> > org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
> > -product
> > org.eclipse.epp.package.jee.product
> > --launcher.defaultAction
> > openFile
> > --launcher.XXMaxPermSize
> > 256M
> > -showsplash
> > org.eclipse.platform
> > --launcher.XXMaxPermSize
> > 256m
> > --launcher.defaultAction
> > openFile
> > -vmargs
> > -Dosgi.requiredJavaVersion=1.5
> > -Xms1024m
> > -Xmx1024m
>
> > My machine has 6GB of RAM but if I set Xmx over 1024mb eclipse doesn't
> > start with error "JVM Error".
>
> You are using 32 bit eclipse - have you considered using 64 bit? I assume you 
> have windows64.
> However, that may not be your problem.
>
> Alan
>
> > My project is a gwt project and use also axis2 so I can't remove the
> > gwt part!
>
> > The error during building is "An internal error occurred during:
> > "Building workspace".
> > Java heap space"
>
> > Thanks very much!
>
> > On 12 Gen, 17:30, "a...@mechnicality.com"
> > wrote:
> >> And another thought. If you don't need the GWT project, just close it.
>
> >> On 1/12/2011 8:12 AM, bond wrote:
>
> >>> Hi,
> >>> I've a gwt projet and I converted to facet project in order to use
> >>> Axis2. When I compile the project all works fine, but when I reopen
> >>> the project Eclipse go to heap space during building workspace and in
> >>> particular analysing the folder where there are the compiled files of
> >>> gwt.
> >>> I think that Eclipse go to heap space because analize all the file
> >>> compiled by gwt; there is some solution to the problem?
> >>> Thanks very much
> >>> Best regards
> >> --
> >> 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.



Re: Eclipse heap space during build

2011-01-12 Thread bond
Hi,
this is my eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/
org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms1024m
-Xmx1024m

My machine has 6GB of RAM but if I set Xmx over 1024mb eclipse doesn't
start with error "JVM Error".
My project is a gwt project and use also axis2 so I can't remove the
gwt part!

The error during building is "An internal error occurred during:
"Building workspace".
Java heap space"

Thanks very much!



On 12 Gen, 17:30, "a...@mechnicality.com" 
wrote:
> And another thought. If you don't need the GWT project, just close it.
>
> On 1/12/2011 8:12 AM, bond wrote:
>
> > Hi,
> > I've a gwt projet and I converted to facet project in order to use
> > Axis2. When I compile the project all works fine, but when I reopen
> > the project Eclipse go to heap space during building workspace and in
> > particular analysing the folder where there are the compiled files of
> > gwt.
>
> > I think that Eclipse go to heap space because analize all the file
> > compiled by gwt; there is some solution to the problem?
>
> > Thanks very much
>
> > Best regards
>
> --
> 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.



Eclipse heap space during build

2011-01-12 Thread bond
Hi,
I've a gwt projet and I converted to facet project in order to use
Axis2. When I compile the project all works fine, but when I reopen
the project Eclipse go to heap space during building workspace and in
particular analysing the folder where there are the compiled files of
gwt.

I think that Eclipse go to heap space because analize all the file
compiled by gwt; there is some solution to the problem?

Thanks very much

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: GWT + GILEAD OR REQUEST FACTORY?

2011-01-12 Thread bond
Thanks to all for your replies!!

On 12 Gen, 00:01, George Georgovassilis 
wrote:
> Wow, thanks a lot :-)
>
> On 11.01.2011 19:45, Thomas Broyer wrote:
>
>
>
> > On Tuesday, January 11, 2011 5:51:59 PM UTC+1, George Georgovassilis
> > wrote:
>
> >     Hi Richard,
>
> >     Sorry to hijack this thread (I promise I'll be quiet after that:-).
> >     Since I've not yet had the chance to write any code with the
> >     RequestFactory, I am still curious about the http payload size. For
> >     example, what I didn't like with RPC was that it included the full
> >     qualified class names in the serialized payload which imo could have
> >     been avoided and bloats up the payload.
>
> > It can be avoided using a simple  > name='com.google.gwt.user.RemoteServiceObfuscateTypeNames
> > '
> > />
>
> >     How does that look like with RequestFactory's payload?
>
> > It's generally lighter, but as of GWT 2.1.1 there's still no way to
> > obfuscate the type names (contrary to GWT-RPC, RF is designed to work
> > with different "versions" of the app on the clients and servers; you
> > don't *have* to redeploy your server code if you only change your
> > client code �even if you change your proxies and service stubs� and
> > vice versa, making sure your clients refresh their page, �even if you
> > change your domain objects�)
> > Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=5729
> > --
> > 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.

-- 
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 2.1.1 runtime error

2011-01-12 Thread bond
Hi,
I've a strange error with my project made with gwt 2.1.1. When I run
it in development mode all works fine; but if I compile the project
and then run it I've this error:

One or more exceptions caught, see full set in
UmbrellaException#getCauses - Unknown.Ep(Unknown source:0)
Unknown.jp(Unknown source:0)
Unknown.vp(Unknown source:0)
Unknown.lp(Unknown source:0)
Unknown.fk(Unknown source:0)
Unknown.ek(Unknown source:0)
Unknown.lk(Unknown source:0)
Unknown.vk(Unknown source:0)
Unknown.Bk(Unknown source:0)
Unknown.sX(Unknown source:0)
Unknown.JW(Unknown source:0)
Unknown.PW(Unknown source:0)
Unknown.$Uf(Unknown source:0)
Unknown.Pyf(Unknown source:0)
Unknown.kVf(Unknown source:0)
Unknown.oVf(Unknown source:0)
Unknown.dKd(Unknown source:0)
Unknown.tZ(Unknown source:0)
Unknown.h$(Unknown source:0)
Unknown.anonymous(Unknown source:0)
Unknown.tn(Unknown source:0)
Unknown.wn(Unknown source:0)
Unknown.anonymous(Unknown source:0)
Unknown.anonymous(Unknown source:0)

I can't find the error!! Any suggestion?

Thanks very much

-- 
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 + GILEAD OR REQUEST FACTORY?

2011-01-10 Thread bond
Hi,
actually I'm using gwt 2.1.1 with hibernate and gilead. Gilead is very
comfortable because I don't have to create DTO class for my domain.
I would like an opinion on the new system "RequestFactory"  compared
with Gilead. What do you recommend?

Thanks very much

Best regards

Daniele

-- 
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: Problem with java.util.Date

2011-01-06 Thread bond
Hi,
maybe I've some more ideas about this problem.
With the simple code above it works; but I've a bean with several
field. For example


BeanExample

private long id;
private Date date;
private String text;

This bean has getter and setter; when I get the value of date's field
I print his class:

Window.alert("class: "+objet.getDate().getClass());

And the class of the objet is "java.sql.Date" instead of
"java.util.Date". In the bean I've imported ONLY java.util.Date.
I think the bug is on Gilead that I used on every bean.

Thanks very much




On 5 Gen, 20:22, Y2i  wrote:
> > Just copied and tested above code in 2.1.1 and works fine in
> > development mode.
>
> This is what I said earlier: the example also works for me in GWT
> 2.1.1...
>
> > Looking at the exception, you are using the setHours() method in the
> > sql Date object...
>
> But if I replace java.util.Date with java.sql.Date the example would
> not compile because java.sql.Date does not have a default
> constructor...http://download.oracle.com/javase/6/docs/api/java/sql/Date.html
>
> A mystery...
>
> Initially I thought it might be that setHours() was being passed an
> Integer instead of an int and the Integer was null, but the call was
> explicit setHours(13)...
>
> What if you call date.setHours(12) or date.setHours(11)?
>
> Also, check your project settings, may be your project is referring to
> both GWT 2.1.1 and 2.0 at the same time, which may cause some side
> effects.

-- 
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: Setting HTML on TextCell GWT 2.1.1

2011-01-06 Thread bond
Thanks very much Thomas.
I forget to say that I need that the cell is clickable. So I extended
ClickableTextCell but the HTML is not rendered.
Instead with SafeHtmlCell it is rendered but the cell is not
clickable :-)

Thanks for your suggestions!

Regards

Daniele

On 5 Gen, 18:49, Thomas Broyer  wrote:
> That's what happens when you take advantage of bugs and then they fix them
> ;-)
>
> Use a SafeHtmlCell
> instead:http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...

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



Setting HTML on TextCell GWT 2.1.1

2011-01-05 Thread bond
Hi,
with GWT 2.1.1 I've a problem when I set some html text to a cell.
I know that now it used SafeHtml that escape charactes.

I've something like this:

addSortColumn("Html column", new TextCell(), new GetValue() {
public String getValue(String object) {
return 
SafeHtmlUtils.fromSafeConstant("This is a test").asString();
}
}, new Property("html", String.class));

but when I display the table I see "This is a test"
because the html tags are escaped!!!
With GWT 2.1 my code worked perfectly!!!

Thanks very much!

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: Problem with java.util.Date

2011-01-05 Thread bond
Yes, it's deprecated but is the only manner to set the hour on the
client with GWT.

Daniele

On 5 Gen, 16:34, smida02  wrote:
> date.setHours has been deprecated since Java 1.1
>
> On Jan 5, 2:42 am, bond  wrote:
>
> > Yes,
> > if I comment the line date.setHours(13); it works!!!
>
> > Thanks!
>
> > On 3 Gen, 22:38, Y2i  wrote:
>
> > > You are using java.util.Date because if you used java.sql.Date your
> > > example would not compile.
>
> > > does your example work if you comment out the line below?
> > > // date.setHours(13);
>
> > > On Jan 3, 1:16 pm, bond  wrote:
>
> > > > Hi,
> > > > I'm usign java.util.Date!!! So the dafult constructor is present.
> > > > My IDE import java.util and not java.sql package.
>
> > > > Any ideas?
>
> > > > Thanks!
>
> > > > On 30 Dic 2010, 22:49, Y2i  wrote:
>
> > > > > java.sql.Date does not have a default constructor, so the example
> > > > > won't compile; it must be something different.
>
> > > > > BTW, I copied the three lines above to my client code: there is no
> > > > > problem with compiling and running it using java.util.Date and GWT
> > > > > 2.1.1.
>
> > > > > On Dec 30, 1:31 pm, Slava Lovkiy  wrote:
>
> > > > > > Is this error happing in old code or newly created?
> > > > > > Check the package name in the import of the file, there is a chance
> > > > > > your IDE auto-imported class Date not from java.util but from 
> > > > > > java.sql
> > > > > > package.
>
> > > > > > On Dec 31, 2:17 am, bond  wrote:
>
> > > > > > > Hi,
> > > > > > > with the last version of GWT (2.1.1); in the client when I'm using
> > > > > > > this code:
> > > > > > > Date date = new Date();
> > > > > > > date.setHours(13);
> > > > > > > date.setMinutes(00);
>
> > > > > > > throw this exception:
>
> > > > > > > java.lang.IllegalArgumentException: null
> > > > > > >     at java.sql.Date.setHours(Unknown Source)
>
> > > > > > > I think that the problem is linked to the fact that now 
> > > > > > > java.sql.Date
> > > > > > > is implemented in Gwt.
> > > > > > > How I can resolve the problem?
>
> > > > > > > Thanks very much
>
> > > > > > > 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: Problem with java.util.Date

2011-01-05 Thread bond
Yes,
if I comment the line date.setHours(13); it works!!!

Thanks!

On 3 Gen, 22:38, Y2i  wrote:
> You are using java.util.Date because if you used java.sql.Date your
> example would not compile.
>
> does your example work if you comment out the line below?
> // date.setHours(13);
>
> On Jan 3, 1:16 pm, bond  wrote:
>
> > Hi,
> > I'm usign java.util.Date!!! So the dafult constructor is present.
> > My IDE import java.util and not java.sql package.
>
> > Any ideas?
>
> > Thanks!
>
> > On 30 Dic 2010, 22:49, Y2i  wrote:
>
> > > java.sql.Date does not have a default constructor, so the example
> > > won't compile; it must be something different.
>
> > > BTW, I copied the three lines above to my client code: there is no
> > > problem with compiling and running it using java.util.Date and GWT
> > > 2.1.1.
>
> > > On Dec 30, 1:31 pm, Slava Lovkiy  wrote:
>
> > > > Is this error happing in old code or newly created?
> > > > Check the package name in the import of the file, there is a chance
> > > > your IDE auto-imported class Date not from java.util but from java.sql
> > > > package.
>
> > > > On Dec 31, 2:17 am, bond  wrote:
>
> > > > > Hi,
> > > > > with the last version of GWT (2.1.1); in the client when I'm using
> > > > > this code:
> > > > > Date date = new Date();
> > > > > date.setHours(13);
> > > > > date.setMinutes(00);
>
> > > > > throw this exception:
>
> > > > > java.lang.IllegalArgumentException: null
> > > > >     at java.sql.Date.setHours(Unknown Source)
>
> > > > > I think that the problem is linked to the fact that now java.sql.Date
> > > > > is implemented in Gwt.
> > > > > How I can resolve the problem?
>
> > > > > Thanks very much
>
> > > > > 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: Problem with java.util.Date

2011-01-03 Thread bond
Hi,
I'm usign java.util.Date!!! So the dafult constructor is present.
My IDE import java.util and not java.sql package.

Any ideas?

Thanks!

On 30 Dic 2010, 22:49, Y2i  wrote:
> java.sql.Date does not have a default constructor, so the example
> won't compile; it must be something different.
>
> BTW, I copied the three lines above to my client code: there is no
> problem with compiling and running it using java.util.Date and GWT
> 2.1.1.
>
> On Dec 30, 1:31 pm, Slava Lovkiy  wrote:
>
> > Is this error happing in old code or newly created?
> > Check the package name in the import of the file, there is a chance
> > your IDE auto-imported class Date not from java.util but from java.sql
> > package.
>
> > On Dec 31, 2:17 am, bond  wrote:
>
> > > Hi,
> > > with the last version of GWT (2.1.1); in the client when I'm using
> > > this code:
> > > Date date = new Date();
> > > date.setHours(13);
> > > date.setMinutes(00);
>
> > > throw this exception:
>
> > > java.lang.IllegalArgumentException: null
> > >     at java.sql.Date.setHours(Unknown Source)
>
> > > I think that the problem is linked to the fact that now java.sql.Date
> > > is implemented in Gwt.
> > > How I can resolve the problem?
>
> > > Thanks very much
>
> > > 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.



Problem with java.util.Date

2010-12-30 Thread bond
Hi,
with the last version of GWT (2.1.1); in the client when I'm using
this code:
Date date = new Date();
date.setHours(13);
date.setMinutes(00);

throw this exception:

java.lang.IllegalArgumentException: null
at java.sql.Date.setHours(Unknown Source)


I think that the problem is linked to the fact that now java.sql.Date
is implemented in Gwt.
How I can resolve the problem?

Thanks very much

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: AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-10 Thread bond
Hi Filipe,
thanks for your magnific suggestion!! Can you tell me wich versione of
Dynamic Web Module do you use(2.2,2.4,2.5,3.0)  and wich of Axis2?
I've some problem to start the system!

Thanks!!

On 9 Dic, 02:45, Filipe Sousa  wrote:
> On Wednesday, December 8, 2010 6:49:14 PM UTC, bond wrote:Any ideas??
>
> Convert your project to a web project. Select menu Project | Properties
> | Project Facets and enable Dynamic Web 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: AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-08 Thread bond
Any ideas??

Thanks!

On 3 Dic, 15:14, bond  wrote:
> Hi,
> thanks for your reply.
> I created an Tomcat 6.20 server but how I can add it to my project? I
> remember you that my project is a "GWT Web Application Project"
> created with Gwt Plugin for Eclipse.
>
> Can you send me a link of a tutorial?
>
> Thanks very much
>
> Regards
>
> Daniele
>
> On 3 Dic, 14:53, v b  wrote:
>
> > Look for adding a server in eclipse.
>
> > On Dec 3, 1:32 pm, bond  wrote:
>
> > > Hi guys,
> > > I've a big problem. I've a gwt project with Eclipse Helios + gwt 2.1
> > > and gwt plugin 3.6. So my project is NOT a web project and when I run
> > > it Eclipse uses Jetty to deploy it.
>
> > > Now I've to creare some web services with axis 2 in order to publish
> > > them in my project. The web service wizard can't create my service
> > > because it wants a web project with Tomcat.
>
> > > There is some solutions to my problem?
>
> > > Thanks very much
>
> > > 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: WEB SERVICES

2010-12-06 Thread bond
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  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  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: AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-03 Thread bond
Hi,
thanks for your reply.
I created an Tomcat 6.20 server but how I can add it to my project? I
remember you that my project is a "GWT Web Application Project"
created with Gwt Plugin for Eclipse.

Can you send me a link of a tutorial?

Thanks very much

Regards

Daniele

On 3 Dic, 14:53, v b  wrote:
> Look for adding a server in eclipse.
>
> On Dec 3, 1:32 pm, bond  wrote:
>
> > Hi guys,
> > I've a big problem. I've a gwt project with Eclipse Helios + gwt 2.1
> > and gwt plugin 3.6. So my project is NOT a web project and when I run
> > it Eclipse uses Jetty to deploy it.
>
> > Now I've to creare some web services with axis 2 in order to publish
> > them in my project. The web service wizard can't create my service
> > because it wants a web project with Tomcat.
>
> > There is some solutions to my problem?
>
> > Thanks very much
>
> > 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.



AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-03 Thread bond
Hi guys,
I've a big problem. I've a gwt project with Eclipse Helios + gwt 2.1
and gwt plugin 3.6. So my project is NOT a web project and when I run
it Eclipse uses Jetty to deploy it.

Now I've to creare some web services with axis 2 in order to publish
them in my project. The web service wizard can't create my service
because it wants a web project with Tomcat.

There is some solutions to my problem?

Thanks very much

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: GWT 2.1 CELL TABLE

2010-10-31 Thread bond
Thanks very much bradr!!

I'll try you suggestions!!

Daniele

On 29 Ott, 22:51, bradr  wrote:
> To do this, you have to override the CellTable's default style.
> Because CellTable uses a CssResource, which ultimately gets obfuscated
> when you compile, you have to create your own implementation and pass
> it to the CellTable in the constructor.
>
> Here is how I did it:
>
> Step 1) Create your own implementation of the Resource
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.user.cellview.client.CellTable;
> import com.google.gwt.user.cellview.client.CellTable.Resources;
> public interface MyCellTableResources extends Resources {
>
>         public MyCellTableResources INSTANCE =
>                 GWT.create(MyCellTableResources.class);
>
>         /**
>          * The styles used in this widget.
>          */
>         @Source("CellTable.css")
>         CellTable.Style cellTableStyle();
>
> }
>
> Step 2) Copy the CellTable.css file into your project (from gwt trunk)
> into the same package as your Resource implementation. Customize the
> css until it meets your style needs.
>
> Step 3) When you create an instance of the CellTable, give it your
> your custom CssResource:
>
>    myTable = new
> CellTable(Integer.MAX_VALUE,CellTableResources.INSTANCE);
>
> Hope that helps!
>
> On Oct 29, 11:55 am, bond  wrote:
>
> > Hi,
> > is possibile to remove the box around the single cell that appears
> > when I click on a cell?
>
> > Thanks very much
>
> > 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.



GWT 2.1 CELL TABLE

2010-10-29 Thread bond
Hi,
is possibile to remove the box around the single cell that appears
when I click on a cell?

Thanks very much

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: SelectionModel on CellTable

2010-06-28 Thread bond
Thanks very much Thomas.Do you think that is a good idea open an
issue?

Thanks

On 24 Giu, 20:27, Thomas Broyer  wrote:
> On 24 juin, 18:30, bond  wrote:
>
>
>
> > Hi,
> > I've  a question on Cell table and in particolar on the SelectionModel
> > (SingleSelectionModel).
> > I've a table with several colums.Some column are plain data (text or
> > html), some other columns are an image that you can click in order to
> > make an action (for example a lock icon is used for enable o disable
> > an operator and so on).
>
> > I'm using a TextCell in plain columns,and I've created a MyActionCell
> > in wich i can manage an image and a click on it.
> > The problem is that the SelectionModel catch all the clicks on each
> > cell.I'd like to know which is the best method to manage this
> > situation.
>
> > I'm using SelectionModle because my UI is very similar to this
> >http://gwt-bikeshed.appspot.com/Expenses.html,
> > so when you click on a row is shown the detail of that row.
> > I'd like to know if is possible to use SelectionModel on a subset of
> > cells.
>
> I think it's a bug in CellTable. CellList only calls setSelected on
> the SelectionModel when the Cell's consumesEvents returns false, but
> CellTable calls setSelected unconditionally.

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



SelectionModel on CellTable

2010-06-24 Thread bond
Hi,
I've  a question on Cell table and in particolar on the SelectionModel
(SingleSelectionModel).
I've a table with several colums.Some column are plain data (text or
html), some other columns are an image that you can click in order to
make an action (for example a lock icon is used for enable o disable
an operator and so on).

I'm using a TextCell in plain columns,and I've created a MyActionCell
in wich i can manage an image and a click on it.
The problem is that the SelectionModel catch all the clicks on each
cell.I'd like to know which is the best method to manage this
situation.

I'm using SelectionModle because my UI is very similar to this
http://gwt-bikeshed.appspot.com/Expenses.html, so when you click on a
row is shown the detail of that row.
I'd like to know if is possible to use SelectionModel on a subset of
cells.

Thanks very much

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: Order in new CellTable

2010-06-23 Thread bond
Thanks very much Jaroslav!!

best regards

Daniele

On 20 Giu, 19:48, Jaroslav Záruba  wrote:
> The reason why I proposed adding single event-handler on whole table was due
> to performance concerns. I read somewhere in GWT-docs that large number of
> event-handlers might affect responsiveness of your UI. (My UIs are too
> simple so far to test when that becomes an issue though.)
>
> Cheers
>   J. Záruba
>
> On Sun, Jun 20, 2010 at 7:30 PM, bond  wrote:
> > Thanks for your reply.
> > I had an idea, maybe can be usefull:
>
> > private abstract class MouseOverCell extends AbstractCell {
>
> >               �...@override
> >                public void render(String value, Object viewData,
> > StringBuilder sb)
> > {
> >                        if (value != null) {
> >                                sb.append(value);
> >                        }
> >                }
>
> >               �...@override
> >                public Object onBrowserEvent(Element parent, String value,
> >                                Object viewData, NativeEvent event,
> >                                ValueUpdater valueUpdater) {
> >                        String type = event.getType();
> >                        if ("mouseover".equals(type)) {
> >                                onMouseOver();
> >                        }
> >                        return viewData;
> >                }
>
> >                public abstract void onMouseOver();
> >        }
>
> > I've created a new type of Cell that i've named MouseOverCell where I
> > catch the native event 'mouseover' and than call an abstract method.
>
> > So when you add this cell to your table:
> > addSortColumn("XX", new MouseOverCell() {
>
> >                       �...@override
> >                        public void onMouseOver() {
> >                                Window.alert("ON MOUSE OVER");
>
> >                        }
> >                }, new GetValue() {
> >                        public String getValue(Operatore object) {
> >                                return object.getNome();
> >                        }
> >                }, new Property("nome", String.class));
>
> > Bye
>
> > On 20 Giu, 19:02, Jaroslav Záruba  wrote:
> > > I would consider adding one listener on the whole table and then check
> > > whether the target is your (one of) your cell(s).
> > > But I'm not saying this is The One Proper solution, I'm still only
> > learning
> > > to use CellTables.
>
> > > On Sun, Jun 20, 2010 at 4:24 PM, bond  wrote:
> > > > Hi Jaroslav,
> > > > thanks for your reply.The google's source code is very usefull.
> > > > It's possible add an 'onMouseOver' event on a single cell?
>
> > > > Thanks very much
>
> > > > Best regards
>
> > > > On 17 Giu, 15:56, Jim  wrote:
> > > > > I got all source code from this repository and created a project -
> > > > > bikeshed21. I fixed some minor issues because Parser and Render
> > > > > classes are duplicated in two packages. Now I got a clean Eclipse
> > > > > project without any syntax errors. But I can not run it because there
> > > > > are DataNucleus-enhance problems which I have not fixed. I was trying
> > > > > to get a working copy of bikeshed from this group. So far I am out of
> > > > > luck. I would appreciate it if you can provide us with a working copy
> > > > > of "bikeshed" Eclipse project. Or if you need this half-done project
> > I
> > > > > finished, I can provide it.
>
> > > > > On Jun 17, 8:09 am, Jaroslav Záruba 
> > wrote:
>
> > > > > > The Expenses demo-app uses ordering columns:
> > > >http://gwt-bikeshed.appspot.com/Expenses.html(seereportdetails)
> > > > > > source:
> > > >http://code.google.com/p/google-web-toolkit/source/browse/branches/2..
> > ..
>
> > > > > > On Thu, Jun 17, 2010 at 2:06 PM, bond 
> > wrote:
> > > > > > > Hi,
> > > > > > > I'm using the new GWT2.1M1. I'm testing CellTable and it seems
> > very
> > > > > > > beautiful.
> > > > > > > I've 2 questions:
>
> > > > > > > -how I can order the data display clicking on the column header?
> > > > > > > -how I can add an &

Re: Order in new CellTable

2010-06-20 Thread bond
Thanks for your reply.
I had an idea, maybe can be usefull:

private abstract class MouseOverCell extends AbstractCell {

@Override
public void render(String value, Object viewData, StringBuilder 
sb)
{
if (value != null) {
sb.append(value);
}
}

@Override
public Object onBrowserEvent(Element parent, String value,
Object viewData, NativeEvent event,
ValueUpdater valueUpdater) {
String type = event.getType();
if ("mouseover".equals(type)) {
onMouseOver();
}
return viewData;
}

public abstract void onMouseOver();
}

I've created a new type of Cell that i've named MouseOverCell where I
catch the native event 'mouseover' and than call an abstract method.

So when you add this cell to your table:
addSortColumn("XX", new MouseOverCell() {

@Override
public void onMouseOver() {
Window.alert("ON MOUSE OVER");

}
}, new GetValue() {
public String getValue(Operatore object) {
return object.getNome();
}
}, new Property("nome", String.class));

Bye

On 20 Giu, 19:02, Jaroslav Záruba  wrote:
> I would consider adding one listener on the whole table and then check
> whether the target is your (one of) your cell(s).
> But I'm not saying this is The One Proper solution, I'm still only learning
> to use CellTables.
>
> On Sun, Jun 20, 2010 at 4:24 PM, bond  wrote:
> > Hi Jaroslav,
> > thanks for your reply.The google's source code is very usefull.
> > It's possible add an 'onMouseOver' event on a single cell?
>
> > Thanks very much
>
> > Best regards
>
> > On 17 Giu, 15:56, Jim  wrote:
> > > I got all source code from this repository and created a project -
> > > bikeshed21. I fixed some minor issues because Parser and Render
> > > classes are duplicated in two packages. Now I got a clean Eclipse
> > > project without any syntax errors. But I can not run it because there
> > > are DataNucleus-enhance problems which I have not fixed. I was trying
> > > to get a working copy of bikeshed from this group. So far I am out of
> > > luck. I would appreciate it if you can provide us with a working copy
> > > of "bikeshed" Eclipse project. Or if you need this half-done project I
> > > finished, I can provide it.
>
> > > On Jun 17, 8:09 am, Jaroslav Záruba  wrote:
>
> > > > The Expenses demo-app uses ordering columns:
> >http://gwt-bikeshed.appspot.com/Expenses.html(seereportdetails)
> > > > source:
> >http://code.google.com/p/google-web-toolkit/source/browse/branches/2
>
> > > > On Thu, Jun 17, 2010 at 2:06 PM, bond  wrote:
> > > > > Hi,
> > > > > I'm using the new GWT2.1M1. I'm testing CellTable and it seems very
> > > > > beautiful.
> > > > > I've 2 questions:
>
> > > > > -how I can order the data display clicking on the column header?
> > > > > -how I can add an "onMouseOver" event on a single cell?
>
> > > > > Thanks very much
>
> > > > > 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 > 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 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.

-- 
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: Order in new CellTable

2010-06-20 Thread bond
Hi Jaroslav,
thanks for your reply.The google's source code is very usefull.
It's possible add an 'onMouseOver' event on a single cell?

Thanks very much

Best regards

On 17 Giu, 15:56, Jim  wrote:
> I got all source code from this repository and created a project -
> bikeshed21. I fixed some minor issues because Parser and Render
> classes are duplicated in two packages. Now I got a clean Eclipse
> project without any syntax errors. But I can not run it because there
> are DataNucleus-enhance problems which I have not fixed. I was trying
> to get a working copy of bikeshed from this group. So far I am out of
> luck. I would appreciate it if you can provide us with a working copy
> of "bikeshed" Eclipse project. Or if you need this half-done project I
> finished, I can provide it.
>
> On Jun 17, 8:09 am, Jaroslav Záruba  wrote:
>
> > The Expenses demo-app uses ordering 
> > columns:http://gwt-bikeshed.appspot.com/Expenses.html(seereport details)
> > source:http://code.google.com/p/google-web-toolkit/source/browse/branches/2
>
> > On Thu, Jun 17, 2010 at 2:06 PM, bond  wrote:
> > > Hi,
> > > I'm using the new GWT2.1M1. I'm testing CellTable and it seems very
> > > beautiful.
> > > I've 2 questions:
>
> > > -how I can order the data display clicking on the column header?
> > > -how I can add an "onMouseOver" event on a single cell?
>
> > > Thanks very much
>
> > > 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 > >  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 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.



Order in new CellTable

2010-06-17 Thread bond
Hi,
I'm using the new GWT2.1M1. I'm testing CellTable and it seems very
beautiful.
I've 2 questions:

-how I can order the data display clicking on the column header?
-how I can add an "onMouseOver" event on a single cell?

Thanks very much

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: Simple working example of the Data Presentation Widget CellTable

2010-06-17 Thread bond
Hi,
someone can post a complete example of use of Data presentation
Widget?
it'll be also welcome an example of server side.

Thanks

Best regards

On 3 Giu, 14:14, Paul Stockley  wrote:
> Sorry my message got truncated:
>
> Your over complicating it. You should just subclass
> AsyncListViewAdapter such as:
>
>         protected class residentAsyncAdapter extends
> AsyncListViewAdapter{
>                 @Override
>                 protected void onRangeChanged(ListView view) {
>                         Range newRange = view.getRange();
>
>                         updateViewData(newRange.getStart(), 
> newRange.getLength(),  ofdatafor the requested range>);
>                 }
>         }
>
> Then add the table as a view of the adapter
>
> CellTable residentTable = new
> CellTable(5);
>
>   Column unitColumn = new
> Column(new TextCell()) {
>                 @Override
>                 public String getValue(ResidentListDO object) {
>                         return object.getUnit();
>                 }
>
> };
>
> residentTable.addColumn(unitColumn, "Unit");
>
> SimplePager thePager = new
> SimplePager(residentTable);
> residentTable.setPager(thePager);
>
> mainGridContainer.add(residentTable);
> pagerContainer.add(thePager);
>
> residentAsyncAdapter residentTableAdapter = new
> residentAsyncAdapter();
> residentTableAdapter.addView(view.residentTable);
> residentTableAdapter.updateDataSize(, true);
>
> If you have a list on the client already for thedataset it is even
> easier. Instead of using
> AsyncListViewAdapter use ListViewAdapter as follows:
>
> List ourList = new ArrayList();
> ListViewAdapter residentTableAdapter = new
> ListViewAdapter(ourList );
> residentTableAdapter.addView(view.residentTable);
> //No need to call updateDataSize
>
> On Jun 3, 7:52 am, Paul Stockley  wrote:
>
> > Your making it overly complicated:
>
> > For the case where you have all thedatain a list already:
>
> >             Column unitColumn = new
> > Column(new TextCell()) {
> >                 @Override
> >                 public String getValue(ResidentListDO object) {
> >                         return object.getUnit();
> >                 }
> >                 };
>
> >                 Column nameColumn = new
> > Column(new TextCell()) {
> >                 @Override
> >                 public String getValue(ResidentListDO object) {
> >                         return object.getName();
> >                 }
> >                 };
>
> >                 residentTable.addColumn(unitColumn, "Unit");
> >                 residentTable.addColumn(nameColumn, "Name");
>
> >                 SimplePager thePager = new
> > SimplePager(residentTable);
> >                 residentTable.setPager(thePager);
>
> >                 mainGridContainer.add(residentTable);
> >                 pagerContainer.add(thePager);
>
> >                residentTableAdapter = new residentAsyncAdapter();
>
> > On Jun 2, 11:18 pm, Andrew  wrote:
>
> > > The following code is what I'm woking on, hope it can help you:
>
> > > protected void init() {
> > >                 VerticalPanel container = new VerticalPanel();
> > >                 initWidget(container);
>
> > >                 int pageSize = 10;
> > >                 CellTable cellTable = new CellTable(pageSize);
> > >                 setColumns(cellTable);
> > >                 setSelectionModel(cellTable);
>
> > >                 setDataSize(cellTable);
> > >                 int pageStart = 0;
> > >                 loadData(pageStart, pageSize, cellTable);
>
> > >                 SimplePager pager = createPager(cellTable);
>
> > >                 container.add(cellTable);
> > >                 container.add(pager);
> > >         }
>
> > >         private SimplePager createPager(final CellTable
> > > cellTable) {
> > >                 SimplePager pager = new SimplePager(cellTable,
> > >                                 SimplePager.TextLocation.CENTER) {
> > >                         public void 
> > > onRangeOrSizeChanged(PagingListView listView) {
> > >                                 loadData(listView.getPageStart(), 
> > > listView.getPageSize(),
> > >                                                 listView);
> > >                                 super.onRangeOrSizeChanged(listView);
> > >                         }
> > >                 };
> > >                 return pager;
> > >         }
>
> > >         private void setColumns(CellTable cellTable) {
> > >                 cellTable.addColumn(new TextColumn() {
> > >                         @Override
> > >                         public String getValue(User user) {
> > >                                 return user.getName();
> > >                         }
> > >                 }, new TextHeader("Name"));
>
> > >                 cellTable.addColumn(new TextColumn() {
> > >                         @Override
> > >                         public String getValue(User user) {
> > >                                 return user.getLocation();
> > >    

Re: How to embed an external page in GWT application?

2010-01-28 Thread bond
Hi Stevko,
maybe you can help me!
How I can load a menu made with javascript in a ui binder xml file?
In this post you can find my problem:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/10646c40a2bb96fb

Thanks

Best regards

On 27 Gen, 19:31, "kelvin.huang"  wrote:
>  Thanks Stevko!

-- 
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: Loading Javascript menu with GWT 2.0

2010-01-27 Thread bond
Any suggestion about?

Thanks!

On 26 Gen, 09:18, bond  wrote:
> Hi,
> I've a small application made with GWT 2.0 + UI Binder with MVP
> pattern.
> I'm using a css premade template with a menu that is animated by
> jquery.
> In order to avoid to rewrite css I'd like to use the menu that is
> something this:
> 
>                         
>                                 
>                                         Dashboard
>                                 
>                                 
>                                         
>                                                 
>                                                         Administration
>                                                 
>
>                                         
>                                         
>                                                 Forms
>                                         
>                                         
>                                                 Tables
>                                         
>                                         
> ...
> ...
>
> I've wrote this code in my view with uiBinder. BUT the problem is that
> this menu is animated by this javascript:
> $(document).ready(function() {
>
>         // Navigation menu
>
>         $('ul#navigation').superfish({
>                 delay:       1000,
>                 animation:   {opacity:'show',height:'show'},
>                 speed:       'fast',
>                 autoArrows:  true,
>                 dropShadows: false
>         });
>
>         $('ul#navigation li').hover(function(){
>                 $(this).addClass('sfHover2');
>         },
>         function(){
>                 $(this).removeClass('sfHover2');
>         });
>
> Also if I load this script in MainEntryPoint.html is doesn't work!!
> Neither if I load the script in the UIBinder. So I don't know how I
> can do work this example!
>
> THanks very much
> 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.



Loading Javascript menu with GWT 2.0

2010-01-26 Thread bond
Hi,
I've a small application made with GWT 2.0 + UI Binder with MVP
pattern.
I'm using a css premade template with a menu that is animated by
jquery.
In order to avoid to rewrite css I'd like to use the menu that is
something this:



Dashboard




Administration




Forms


Tables


...
...

I've wrote this code in my view with uiBinder. BUT the problem is that
this menu is animated by this javascript:
$(document).ready(function() {

// Navigation menu

$('ul#navigation').superfish({
delay:   1000,
animation:   {opacity:'show',height:'show'},
speed:   'fast',
autoArrows:  true,
dropShadows: false
});

$('ul#navigation li').hover(function(){
$(this).addClass('sfHover2');
},
function(){
$(this).removeClass('sfHover2');
});

Also if I load this script in MainEntryPoint.html is doesn't work!!
Neither if I load the script in the UIBinder. So I don't know how I
can do work this example!

THanks very much
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.



GWT 2.0 UI BINDER MVP

2010-01-22 Thread bond
Hi,
I read several articles about the mvp model in gwt. This guide is very
usefull: 
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/tutorial/mvp-architecture.html.
But is not clear to me how to manage the Presenters with UiBinder.

For example if I've a tipical application with header,sidebar,content,
maybe I'll make at least 3 template (ui.xml).
So the App.ui.xml could be something as:













where  is another ui.xml template with the specific
content.
The entry point is:

public class Main implements EntryPoint {

@Override
public void onModuleLoad() {
ServiceAsync rpcService = GWT.create(Service.class);
HandlerManager eventBus = new HandlerManager(null);
AppController appViewer = new AppController(rpcService, 
eventBus);
appViewer.go(RootPanel.get());
}

}

But then if I add the Presenter of App.ui.xml only that presenter will
be binded to the view!! And the presenter/s of  when(how)
can be binded?

Can you give me some suggestion or a basic structure of a generic
application with this pattern and uibinder?

Thanks

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: GWT 2.0M1 java.lang.NoSuchFieldError WITH ECLIPSE PLUGIN

2009-10-27 Thread bond

Any ideas?

On 26 Ott, 21:49, bond  wrote:
> Hi,
> I've a problem when I try to compile my dummy Eclipse web project with
> GWT Module with Google Plugin 1.1.2.
> The error is this:
>
> [ERROR] Unexpected
> java.lang.NoSuchFieldError:
> reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
>         at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
> (JdtCompiler.java:208)
>         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.
> (JdtCompiler.java:94)
>         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> 253)
>         at com.google.gwt.dev.javac.CompilationState.compile
> (CompilationState.java:338)
>         at com.google.gwt.dev.javac.CompilationState.refresh
> (CompilationState.java:247)
>         at com.google.gwt.dev.javac.CompilationState.
> (CompilationState.java:116)
>         at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
> (ModuleDef.java:285)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:489)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:408)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:194)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:145)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 89)
>         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
> (CompileTaskRunner.java:83)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:152)
>
> Anyone has some ideas of the problem? I'm tring to deploy GWT
> application on Tomcat 6.0.20 directly from Eclipse.
>
> Thanks very much
>
> 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-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
-~--~~~~--~~--~--~---



GWT 2.0M1 java.lang.NoSuchFieldError WITH ECLIPSE PLUGIN

2009-10-26 Thread bond

Hi,
I've a problem when I try to compile my dummy Eclipse web project with
GWT Module with Google Plugin 1.1.2.
The error is this:

[ERROR] Unexpected
java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
(JdtCompiler.java:208)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.
(JdtCompiler.java:94)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
253)
at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:338)
at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:247)
at com.google.gwt.dev.javac.CompilationState.
(CompilationState.java:116)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:285)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:489)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:408)
at com.google.gwt.dev.Compiler.run(Compiler.java:194)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:145)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
89)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:83)
at com.google.gwt.dev.Compiler.main(Compiler.java:152)

Anyone has some ideas of the problem? I'm tring to deploy GWT
application on Tomcat 6.0.20 directly from Eclipse.

Thanks very much

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-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 2.0 ms1 RPC issue IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

2009-10-16 Thread bond

I've the same problem.Any ideas?

On 16 Ott, 04:39, tskaife  wrote:
> While running in either hosted mode, or compiled I get this error. I
> have no problems with RPC calls that pass primitive types. But I've
> tried both java.lang.String and java.lang.Long and get the same
> results. I've tried both JDK 1.6.0_10 and 1.5.0_21 to no avail. I'm on
> Linux, if that matters, and haven't had any problems with the
> application while using GWT 1.7.1, 1.7.0, 1.6.4... Any insights on
> what it might be would be much appreciated.
>
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance
> (NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> (DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 105)
>         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
>         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> (OophmSessionHandler.java:146)
>         at
> com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
> (BrowserChannel.java:1573)
>         at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> (BrowserChannelServer.java:124)
>         at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> (ModuleSpaceOOPHM.java:120)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 502)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> (ModuleSpace.java:275)
>         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> (JavaScriptHost.java:91)
>         at
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate
> (transient source for
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer)
>         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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
>         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
>         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> (OophmSessionHandler.java:146)
>         at
> com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
> (BrowserChannel.java:1573)
>         at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> (BrowserChannelServer.java:124)
>         at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> (ModuleSpaceOOPHM.java:120)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 502)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> (ModuleSpace.java:275)
>         at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> (JavaScriptHost.java:91)
>         at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap
> $.instantiate$(SerializerBase.java)
>         at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate
> (SerializerBase.java:140)
>         at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
> (ClientSerializationStreamReader.java:114)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
> (AbstractSerializationStreamReader.java:61)
>         at
> com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
> (RequestCallbackAdapter.java:199)
>         at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> (Request.java:316)
>         at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> (Request.java:288)
>         at com.google.gwt.http.client.Request.fireOnResponseReceived
> (Request.java:270)
>         at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
> (RequestBuilder.java:396)
>         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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
>         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
>         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> (OophmSessionHandler.java:146)
>         at com.go

ERROR IN GWT CALENDAR

2009-07-02 Thread bond

Hi,
I've a problem with gwt calendar widget. Sometimes, occurs this error:

Errore (NS_ERROR_DOM_NOT_SUPPORTED_ERR): Operation is not supported
 code: 9
 INDEX_SIZE_ERR: 1
 DOMSTRING_SIZE_ERR: 2
 HIERARCHY_REQUEST_ERR: 3
 WRONG_DOCUMENT_ERR: 4
 INVALID_CHARACTER_ERR: 5
 NO_DATA_ALLOWED_ERR: 6
 NO_MODIFICATION_ALLOWED_ERR: 7
 NOT_FOUND_ERR: 8
 NOT_SUPPORTED_ERR: 9
 INUSE_ATTRIBUTE_ERR: 10
 INVALID_STATE_ERR: 11
 SYNTAX_ERR: 12
 INVALID_MODIFICATION_ERR: 13
 NAMESPACE_ERR: 14
 INVALID_ACCESS_ERR: 15
 VALIDATION_ERR: 16
 TYPE_MISMATCH_ERR: 17
 result: 2152923145
 filename: 
http://localhost:8084/pianetadentisti/it.pianetatecno.pianetadentisti.Main/907DB3A984B24B3609BAC5BC28218FF7.cache.html
 lineNumber: 1288
 columnNumber: 0
 inner: null
 data: null [Ljava.lang.StackTraceElement;@66

The error is throw every time when I drag an image near the datebox on
it (I've not configured any drag and drop listener).

I do not understand the problem.

Thanks very much
--~--~-~--~~~---~--~~
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: Add keyHandler to Absolute panel

2009-05-13 Thread bond

Thanks very much  Alyxandor

Regards

Daniele

On 13 Mag, 15:20, Alyxandor  wrote:
> YourWidget.addDomHandler(new KeyUpHandler(){
>                         public void onKeyUp(KeyUpEvent event) {
>                                 // TODO Auto-generated method stub
>
>                         }
>
>                 }, KeyUpEvent.getType());
>
> Just like real DOM, you've got to manually add KeyUp, KeyPress and
> KeyDown.  This saves on memory leaks, and is more efficient than using
> onBrowserEvent()...  Which you can also use.
>
> YourWidget = new FlowPanel(){
>                         @Override
>                         public void onBrowserEvent(Event event) {
>                         switch(event.getTypeInt()){
>                         case Event.ONKEYUP:
>
>                         }
>                         }
>                 };
>
> Also, you can manually add an old event listener, but you've got to
> set and clear events yourself {that's what HandlerRegistration is
> for}:
>
> DOM.setEventListener(YourWidget.getElement(), new EventListener(){
>                         public void onBrowserEvent(Event event) {
>                                 // TODO Auto-generated method stub
>
>                         }
>                 });
> DOM.sinkEvents(YourWidget.getElement(), Event.ONKEYUP);
>
> ...If you want to grab key events, only certain DOM elements are
> normally capable of receiving key events, so you might want to do:
>
> Event.addNativePreviewHandler(new NativePreviewHandler(){
>                         public void onPreviewNativeEvent(NativePreviewEvent 
> event) {
>                                 if (event.getTypeInt()==Event.ONKEYPRESS){
>
>                                 }
>                         }
>                 });
>
> JUST MAKE SURE YOU CLEAR THE NATIVE EVENT PREVIEW WHEN YOUR WIDGETS
> DETACH, OR STUFF LIKE POPUP PANEL MIGHT DIE ON 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
-~--~~~~--~~--~--~---



Add keyHandler to Absolute panel

2009-05-13 Thread bond

Hi,
it's possibile to add a keyHandler to an absolute panel or, more
generically, to a widget?
I've noticed that keyHandler is present only on a TextBox but I need
to catch the event on a Panel.

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: java.lang.StackOverflowError with GWT

2009-04-03 Thread bond

Thanks very much!! Sorry but I had not noticed that post!
For me is working with:

gwt.compiler.jvmargs=-Xmx1G -Xss1024k

Regards

On 3 Apr, 19:58, Jason Essington  wrote:
> have you tried increasing the stack size? -Xss
>
> -jason
> On Apr 3, 2009, at 11:46 AM, bond wrote:
>
>
>
> > Hi,
> > i've a strange error in my project. After some modify when I try to
> > compile the project with GWT (1.6.3) it's rised this error:
>
> > Worker permutation 1 of 10
> >      [ERROR] Unexpected internal compiler error
> > java.lang.StackOverflowError
> >        at java.io.ObjectInputStream$PeekInputStream.read
> > (ObjectInputStream.java:2266)
> >        at java.io.ObjectInputStream$PeekInputStream.readFully
> > (ObjectInputStream.java:2279)
> >        at java.io.ObjectInputStream$BlockDataInputStream.readInt
> > (ObjectInputStream.java:2774)
> >        at java.io.ObjectInputStream.readHandle(ObjectInputStream.java:
> > 1431)
> >        at java.io.ObjectInputStream.readClassDesc
> > (ObjectInputStream.java:1490)
> >        at java.io.ObjectInputStream.readOrdinaryObject
> > (ObjectInputStream.java:1732)
> >        at java.io.ObjectInputStream.readObject0
> > (ObjectInputStream.java:1329)
> >        at java.io.ObjectInputStream.defaultReadFields
> > (ObjectInputStream.java:1947)
> >        at java.io.ObjectInputStream.readSerialData
> > (ObjectInputStream.java:1871)
> >        at java.io.ObjectInputStream.readOrdinaryObject
> > (ObjectInputStream.java:1753)
> >        at java.io.ObjectInputStream.readObject0
> > (ObjectInputStream.java:1329)
> >        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:
> > 351)
> >        at java.util.ArrayList.readObject(ArrayList.java:593)
> >        at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown
> > Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at java.io.ObjectStreamClass.invokeReadObject
> > (ObjectStreamClass.java:974)
> >        at java.io.ObjectInputStream.readSerialData
> > (ObjectInputStream.java:1849)
> >        at java.io.ObjectInputStream.readOrdinaryObject
> > (ObjectInputStream.java:1753)
> >        at java.io.ObjectInputStream.readObject0
> > (ObjectInputStream.java:1329)
> >        at java.io.ObjectInputStream.defaultReadFields
> > (ObjectInputStream.java:1947)
> >        at java.io.ObjectInputStream.readSerialData
> > (ObjectInputStream.java:1871)
> >        at java.io.ObjectInputStream.readOrdinaryObject
> > (ObjectInputStream.java:1753)
> >        at java.io.ObjectInputStream.readObject0
> > (ObjectInputStream.java:1329)
> >        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:
> > 351)
> >        at java.util.ArrayList.readObject(ArrayList.java:593)
> >        at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown
> > Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at java.io.ObjectStreamClass.invokeReadObject
> > (ObjectStreamClass.java:974)
> >        at java.io.ObjectInputStream.readSerialData
> > (ObjectInputStream.java:1849)
> >        at java.io.ObjectInputStream.readOrdinaryObject
> > (ObjectInputStream.java:1753)
> >        at java.io.ObjectInputStream.readObject0
> > (ObjectInputStream.java:1329)
> >        at java.io.ObjectInputStream.defaultReadFields
> > (ObjectInputStream.java:1947)
> >        at java.io.ObjectInputStream.readSerialData
> > (ObjectInputStream.java:1871)
> >        at java.io.ObjectInputStream.readOrdinaryObject
> > (ObjectInputStream.java:1753)
> >        at java.io.ObjectInputStream.readObject0
> > (ObjectInputStream.java:1329)
> >        at java.io.ObjectInputStream.defaultReadFields
> > (ObjectInputStream.java:1947)
> >        at java.io.ObjectInputStream.readSerialData
> > (ObjectInputStream.java:1871)
> >        at java.io.ObjectInputStream.readOrdinaryObject
> > (ObjectInputStream.java:1753)
> >        at java.io.ObjectInputStream.readObject0
> > (ObjectInputStream.java:1329)
> >        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:
> > 351)
> >        at java.util.ArrayList.readObject(ArrayList.java:593)
> >        at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown
> > Source)
> >        at sun.reflect.DelegatingMethod

GWT VISUALIZATION GEOMAP MARKER ERROR

2009-03-18 Thread bond

Hi,
I've a problem using google visualization. I've tried to make in GWT
the example show here 
http://code.google.com/intl/it-IT/apis/visualization/documentation/gallery/geomap.html
(section Markers Example).

When I'm trying to draw the markers on the map, the google widget
display this error message "Google Maps API not included.".

Instead, if you display only region there are no problems and them are
show.

Any ideas?

Thanks

Regard


--~--~-~--~~~---~--~~
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: DATEBOX & HOURS RESETTED

2009-03-11 Thread bond

any ideas?

Thanks

On 4 Mar, 23:24, bond  wrote:
> Hi,
> I've a question about DateBox widget. If you set a Format as this: "dd/
> MM/ HH:mm" on DateBox, when you are selecting a Date, the hour &
> minutes are resetted.
>
> So in your dateBox you have a date as 04/03/2009 15:30 and then you're
> focusing on the textbox, the DatePicker is displayed.But when you
> select a date (ex. 10/03/2009) the hours&minutes are resetted and your
> date will be 10/03/2009 00:00.
>
> Anyone can suggest a solution?
>
> This one is not very good because the date is first setted on the
> textbox and then is rewritten:
>
> txtDataCompilazione.getDatePicker().addValueChangeHandler(new
> ValueChangeHandler() {
>
>             @Override
>             public void onValueChange(ValueChangeEvent event) {
>                 Date ok = event.getValue();
>                 ok.setHours(dataCompilazione.getHours());
>                 ok.setMinutes(dataCompilazione.getMinutes());
>                 txtDataCompilazione.setValue(ok,false);
>             }
>         });
>         txtDataCompilazione.getTextBox().addBlurHandler(new BlurHandler
> () {
>
>             @Override
>             public void onBlur(BlurEvent event) {
>                 try {
>                     dataCompilazione = DateTimeFormat.getFormat("dd/MM/
>  HH:mm").parseStrict(txtDataCompilazione.getTextBox().getText());
>
>                 } catch (Exception ex) {
>                 }
>             }
>         });
>
> Thanks
>
> 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-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
-~--~~~~--~~--~--~---



DATEBOX & HOURS RESETTED

2009-03-04 Thread bond

Hi,
I've a question about DateBox widget. If you set a Format as this: "dd/
MM/ HH:mm" on DateBox, when you are selecting a Date, the hour &
minutes are resetted.

So in your dateBox you have a date as 04/03/2009 15:30 and then you're
focusing on the textbox, the DatePicker is displayed.But when you
select a date (ex. 10/03/2009) the hours&minutes are resetted and your
date will be 10/03/2009 00:00.

Anyone can suggest a solution?

This one is not very good because the date is first setted on the
textbox and then is rewritten:

txtDataCompilazione.getDatePicker().addValueChangeHandler(new
ValueChangeHandler() {

@Override
public void onValueChange(ValueChangeEvent event) {
Date ok = event.getValue();
ok.setHours(dataCompilazione.getHours());
ok.setMinutes(dataCompilazione.getMinutes());
txtDataCompilazione.setValue(ok,false);
}
});
txtDataCompilazione.getTextBox().addBlurHandler(new BlurHandler
() {

@Override
public void onBlur(BlurEvent event) {
try {
dataCompilazione = DateTimeFormat.getFormat("dd/MM/
 HH:mm").parseStrict(txtDataCompilazione.getTextBox().getText());

} catch (Exception ex) {
}
}
});

Thanks

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



SuggestBox info

2009-02-27 Thread bond

Hi,
I've a question: is possible with a suggestBox +
MultiWordSuggestOracle display all the results when the suggestBox get
focus? So the idea is: I give focus to the suggestBox, is displayed
the box with all the results and the list change when I type some
character on the textBox.

Now results are displayed ONLY when I'm writing something on the box.

Thanks

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



historyHandler GWT 1.6m1 and IE6/7 error

2009-02-18 Thread bond

Hi,
I'm trying the GWT's milestone 1. With this code:

final ValueChangeHandler historyHandler = new
ValueChangeHandler() {

@Override
public void onValueChange(ValueChangeEvent event)
{
//Window.alert("Valore history cambiato");
}
};
History.addValueChangeHandler(historyHandler);


All in Firefox works but in IE6 or IE7 the application is not loaded
beacuse of an error: handlers is null or it's not a object.
This is the code that raise the error(get with a debug tool):

_ = DocumentRootImpl.prototype = new Object_0();
_.getClass$ = getClass_21;
_.typeId$ = 0;
var documentRoot;
function $addValueChangeHandler(this$static, handler){
  return $addHandler_0(this$static.handlers, getType_1(), handler);
}

Any ideas to solve the problem?

Thanks!

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



Hibernate4GWT with GWT 1.5 & Mysql

2009-02-18 Thread bond

Hi,
I've a problem with GWT 1.5.3, Gilead, Hibernate 3 & Mysql 5. The
problem is the same of many others people and is about the timeout of
connections to the database that are closed after some hours.
In particular after some hours when I try to list data on my
application is raised this error:
09:12:38,104  WARN JDBCExceptionReporter:100 - SQL Error: 0, SQLState:
08S01
09:12:38,104 ERROR JDBCExceptionReporter:101 - Communications link
failure

Last packet sent to the server was 63 ms ago.
org.hibernate.exception.JDBCConnectionException: could not execute
query
at org.hibernate.exception.SQLStateConverter.convert
(SQLStateConverter.java:97)
at org.hibernate.exception.JDBCExceptionHelper.convert
(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2231)
at org.hibernate.loader.Loader.listIgnoreQueryCache
(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.criteria.CriteriaLoader.list
(CriteriaLoader.java:118)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1596)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
at it.pianetatecno.pianetabarche.server.dao.NewsDao.cercaNews
(NewsDao.java:127)
at it.pianetatecno.pianetabarche.server.ServiceImpl.cercaNews
(ServiceImpl.java:112)
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 com.google.gwt.user.server.rpc.RPCCopy_GWT15.invoke
(RPCCopy_GWT15.java:563)
at com.google.gwt.user.server.rpc.RPCCopy.invoke(RPCCopy.java:
134)
at net.sf.gilead.gwt.PersistentRemoteService.processCall
(PersistentRemoteService.java:149)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:263)
at org.apache.coyote.ajp.AjpAprProcessor.process
(AjpAprProcessor.java:419)
at org.apache.coyote.ajp.AjpAprProtocol
$AjpConnectionHandler.process(AjpAprProtocol.java:394)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run
(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure


I'm using c3p0 and my hiberntate.cg.xml is:






com.mysql.jdbc.Driver
jdbc:mysql://
192.168.1.101:3306/pianetabarche
true
true
true
user
psw



org.hibernate.connection.C3P0ConnectionProvider
1
14400
100
0
10

14400
100
0
10
25200


org.hibernate.dialect.MySQLInnoDBDialect


org.hibernate.transaction.JDBCTransactionFactory

thread



org.hibernate.cache.NoCacheProvider

false



false
true
true


update





I've made many test but it doesn't work!!

Any suggestion?

Thanks

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-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: FLEXTABLE & CSS ON

2009-02-03 Thread bond

Sorry,
it's possibile with tableGrid.getRowFormatter().

Thanks

On 3 Feb, 20:21, bond  wrote:
> Hi,
> it's possibile to apply a css to the tag  of a flextable? I'm
> seing that with flexcellformartter I can apply css only to a cell and
> so to a .
>
> Any suggestion?
>
> Thanks
>
> 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-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: Clear all html tags from a page

2009-02-03 Thread bond

Thanks,
it's a good idea.

Regads

On 2 Feb, 17:42, Martin Trummer  wrote:
> here's what I do:
> I put all stuff that I want to hide after the app. start into a div:
> e.g. called "loadingdiv" (because I use it to show a loading message).
> the first thing I do in my entrypoint, is to hide the loading div:
> e.g.
>                 RootPanel.get("loadingdiv").setVisible(false);
> then I build my components and widgets and add this to the rootPanel:
>    RootPanel.get().add(viewport);
>
> hope it helps..
>
> On Feb 2, 11:51 am, bond  wrote:
>
> > Sorry but it doesn't work.
>
> > This is the page .html:
>
> > 
> > 
> > 
> > 
> > 
> >         
> >         
> >         
> >         
> > 
> > 
>
> > 
> > 
> >         
> >         
> >         
> >         
> >         
> >         
> >                 
> >                         
> >                                 
> >                 
> >                         
> >                         
> >                                 
> >                 
> >                         
> >             
> >             
> >                 
> >         
> >         
> >          
> > 
> > 
> > 
> >         
> >         
> > 
> > 
>
> > I'd like to remove ALL HTML CODE inside body (exception tag 

FLEXTABLE & CSS ON

2009-02-03 Thread bond

Hi,
it's possibile to apply a css to the tag  of a flextable? I'm
seing that with flexcellformartter I can apply css only to a cell and
so to a .

Any suggestion?

Thanks

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-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: Clear all html tags from a page

2009-02-02 Thread bond

Sorry but it doesn't work.

This is the page .html:



































 









I'd like to remove ALL HTML CODE inside body (exception tag 

Re: Clear all html tags from a page

2009-02-02 Thread bond

Thanks for your reply. The problem is that RootPanel.get("Id").clear
(); doesn't not delete the tag from the page but only remove widgets
inside the tag.
The problem is that I've not widget inside the tag but other tag with
css style attached.

Any ideas?

Thanks

On 2 Feb, 11:32, rudolf michael  wrote:
> RootPanel.get().clear();
> you can always get any div Id also and clear it. by using
> RootPanel.get("Id").clear();
>
> On Mon, Feb 2, 2009 at 12:31 PM, rudolf michael  wrote:
> > RootPanel.get().celar();
>
> > On Mon, Feb 2, 2009 at 12:29 PM, bond  wrote:
>
> >> Hi,
> >> I've a simple problem. I've mi page.html where there are some tags:
>
> >> http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Clear all html tags from a page

2009-02-02 Thread bond

Hi,
I've a simple problem. I've mi page.html where there are some tags:

http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with Generics

2009-01-24 Thread bond

Maybe another better solution:

class Filter:

public abstract class Filtro {

public abstract T getValore();

public abstract void setValore(T valore);
}

an then 1 class for each filter that you want (String, date,ecc ecc)
as this:

FilterString:
public class  FiltroString extends Filtro implements Serializable{
private String valore;

public Object getValore() {
   return valore;
}

public void setValore(Object valore) {
this.valore = (String) valore;
}

}

Any suggestion?

Thanks

On 24 Gen, 18:39, bond  wrote:
> Hi,
> I've a big problem with generics in GWT. I'm making a generic utility
> to set a filter in a collection of data. I'd like to have a class
> Filter with an attribute value that is the type that the user set:
>
> public class  Filter  implements Serializable{
>
> private T value;
>
> }
>
> The problem is that GWT compiler raise an error beacuse the type T is
> not Serializable. Another solution doesn't work:
>
> public class  Filter  implements Serializable{
>
> private T value;
>
> }
>
> beacusa the type T can either implements or extends serializable.
>
> So the only solution that I've think is to create a wrapper class
> (that implements interface MyType) for each type that the attribute
> value can be obtain (String,Date,Integer) and so the class Filter
> became:
>
> public class  Filter  implements
> Serializable{
>
> private T value;
>
> }
>
> But I dont' like this solution.
>
> Can someone post some ideas??
>
> Thanks
>
> 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-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
-~--~~~~--~~--~--~---



Problem with Generics

2009-01-24 Thread bond

Hi,
I've a big problem with generics in GWT. I'm making a generic utility
to set a filter in a collection of data. I'd like to have a class
Filter with an attribute value that is the type that the user set:

public class  Filter  implements Serializable{

private T value;

}

The problem is that GWT compiler raise an error beacuse the type T is
not Serializable. Another solution doesn't work:

public class  Filter  implements Serializable{

private T value;

}

beacusa the type T can either implements or extends serializable.

So the only solution that I've think is to create a wrapper class
(that implements interface MyType) for each type that the attribute
value can be obtain (String,Date,Integer) and so the class Filter
became:

public class  Filter  implements
Serializable{

private T value;

}

But I dont' like this solution.

Can someone post some ideas??

Thanks

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



Localization of com.google.gwt.gen2.datepicker.client.DateBox

2009-01-21 Thread bond

Hi,
how I can Localizate to italian the display of DateBox? now the name
of month and days are in english.

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



BROKEN DISPLAY OF DECORATOR PANEL

2009-01-16 Thread bond

Hi,
I've add a decorator panel in a RootPanel but in IE6 the image at the
4 corner are not display. In firefox it work correctly.

Any ideas?

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



Problem layout with html + gwt

2009-01-16 Thread bond

Hi,
I've a problem with a new example that I've made.
In this example I've the main.html as this:









Beautiful Day









Beautiful Day




Tristique porta

Fusce porta pede nec eros. Maecenas ipsum sem, 
interdum non,
aliquam vitae, interdum nec, metus. Maecenas ornare lobortis risus.


















Porttitor posuere
Jun 13, 2006 by Vulputate

In hac habitasse platea dictumst. Duis porttitor. 
Sed vulputate
elementum nisl. Vivamus et mi at arcu mattis iaculis. Nullam posuere
tristique tortor. In bibendum. Aenean ornare, nunc eget pretium porttitor, sem est pretium
leo, non euismod nulla dui non diam. Pellentesque dictum faucibus leo.
Vestibulum ac ante. Sed in est.

Sed sodales nisl sit amet augue. Donec 
ultrices,
augue ullamcorper posuere laoreet, turpis massa tristique justo, sed
egestas metus magna sed purus.

Aliquam risus justo, mollis in, laoreet a, 
consectetuer nec,
risus. Nunc blandit sodales lacus. Nam luctus semper mi. In eu diam.

Fusce porta pede nec eros. Maecenas ipsum sem, 
interdum non,
aliquam vitae, interdum nec, metus. Maecenas ornare lobortis risus.
Etiam placerat varius mauris. Maecenas viverra. Sed feugiat. Donec
mattis quam aliquam risus. Nulla non felis
sollicitudin urna blandit egestas. Integer et libero varius pede
tristique ultricies. Cras nisl. Proin quis massa semper felis euismod
ultricies.


Adipiscing
Jun 11, 2006 by Laoreet

Aliquam risus justo, mollis in, laoreet a, 
consectetuer nec,
risus. Nunc blandit sodales lacus. Nam luctus semper mi. In eu diam.
Phasellus rutrum elit vel nisi. Cras mauris nulla, egestas quis,
cursus at, venenatis ac, ante. Fusce accumsan enim et arcu. Duis
sagittis libero at lacus. Suspendisse lacinia nulla eget urna.


Tristique
Aenean
Pretium


In hac habitasse platea dictumst. Duis porttitor. 
Sed vulputate
elementum nisl. Vivamus et mi at arcu mattis iaculis. Nullam posuere
tristique tortor. In bibendum. Aenean ornare, nunc eget pretium
porttitor, sem est pretium leo, non euismod nulla dui non diam.
Pellentesque dictum faucibus leo. Vestibulum ac ante. Sed in est. Sed
sodales nisl sit amet augue. Donec ultrices, augue ullamcorper posuere
laoreet, turpis massa tristique justo, sed egestas metus magna sed
purus. Fusce eleifend, dui ut posuere auctor, justo elit posuere
sapien, at blandit enim quam fringilla mi.

Interdum
May 24, 2006 by Lectus

Praesent nisi sem, bibendum in, ultrices sit amet, 
euismod sit
amet, dui. Donec varius tincidunt nisi. Ut ut sapien. Integer porta.
Fusce nibh. Curabitur pellentesque, lectus at volutpat interdum, sem justo placerat elit, eget
feugiat est leo tempor quam. Ut quis neque convallis magna consequat
molestie. Nullam semper massa eget ligula. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Pellentesque a nibh quis nunc volutpat aliquam

margin-bottom: 12px;
font: normal 1.1em "Lucida Sans Unicode",serif;
background: url(img/quote.gif) no-repeat;
padding-left: 28px;
color: #555;

Eget feugiat est leo tempor quam. Ut quis neque 
convallis magna
consequat molestie.





Something

pellentesque
sociis natoque
semper
convallis


Another thing

consequat 
molestie
sem justo
semper
sociis natoque


Third and last

sociis natoque
magna sed 
purus
tincidunt
consequat 
molestie








© 2006 Website.com.
Valid http://jigsaw.w3.org/css-validator/check/referer";>CSS & http://validator.w3.org/check?uri=referer";>XHTML. Template design by http://templates.arcsin.se";>Arcsin









and in the MainEntryPoint the code is:
public void onModuleLoad() {
 RootPanel.get("container")