Hi,
RF automatically maps entities to RF Proxy. Is there a way in which we
could pass a custom mapper?
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
PM UTC+5:30, Thomas Broyer wrote:
On Friday, April 20, 2012 11:16:30 AM UTC+2, Thomas Broyer wrote:
On Friday, April 20, 2012 10:56:02 AM UTC+2, -sowdri- wrote:
RF automatically maps entities to RF Proxy. Is there a way in which we
could pass a custom mapper?
Almost everything
As you were doing in your project, this kind of supplying a custom mapper
for proxy to entity mapping could be a common requirement.
Any thoughts on whether it would be appropriate to file a bug requesting
this feature in RF?
On Friday, April 20, 2012 3:14:02 PM UTC+5:30, -sowdri- wrote
) which are only the mirror of the entities. It is just
like a proxy layer that is same as entity layer.
Thanks,
On Fri, Apr 20, 2012 at 3:53 PM, Thomas Broyer t.bro...@gmail.com wrote:
On Friday, April 20, 2012 11:45:48 AM UTC+2, -sowdri- wrote:
As you were doing in your project, this kind
the role to DTOs) which are only the mirror of the entities. It is just
like a proxy layer that is same as entity layer.
Thanks,
On Friday, April 20, 2012 3:36:44 PM UTC+5:30, Thomas Broyer wrote:
On Friday, April 20, 2012 11:44:02 AM UTC+2, -sowdri- wrote:
For properties on proxies, you can
Did you try styleName tag?? in case 'class' would do..
On Tuesday, March 20, 2012 12:48:20 AM UTC+5:30, Stevko wrote:
I am using span id=mySpanId within my UI Binder ui.xml files
along with the debugId
I also use span ui:field=mySpan to identify dynamic elements
available to the
Hi, If you want activities to be talking to each other, one way of
achieving them is via encapsulating the data in the Place, as mentioned
above.
Imagine a complex application, where in a lot of objects are required by
different activities. In events like that, you have to pass on all the
This is possible! But you have to write a GWT Generator for to achieve
that. For example:
class Customer {
// field1 .. field10;
}
// This still has to be written, to semantically determine what type of
widget you are planning to use in your editor
interface CustomerView implements
If I were you, I'd rather write a generator outside GWT;
Thanks Thomas for pointing this out! Now I could understand that Generators
are not the only way of using reflection in GWT.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To
This usually doesn't happen, as the entities with existing id will be only
merged rather than creating the new instance. Try checking your equals and
hashcode implementations for 'Articulo' class, as that plays a central role
in merge mechanism.
If you still want a workaround,
public void
You cannot use Reflection in GWT!
--
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/-/TV8B0NWv8tcJ.
To post to this group, send email to
GWT certainly is for people who know java.
I never used Java for back end coding tho.
If you are planning to learn Java through GWT, then I strongly recommend
you to reconsider!
-sowdri-
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group
Is there anything that 's preventing you from creating
a ValueListBoxDepartmentProxy)??
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
Can you post the class firing the below request?
requests.find(proxyId).with(resource,
action, subjects).fire(callback);
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
in a large application the
code size could easily cross 1.5 MB which might take a long time to load.
If the former is of importance(which actually makes the app interactive)
then GWT is definitely the way to go.
-sowdri-
--
You received this message because you are subscribed to the Google Groups
native GWT widgets like calender for example.
So make sure you copy the relevant portions of it to your default.css.
Thanks,
-sowdri-
--
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
Mike, this is exactly where DTO pattern has to be used.
1. Just create a DTO which encapsulated all the objects required at
startup.
2. And expose a new service, which would do all the sequential calls on
the server and construct the dto and return.
Hope this helps!
--
You
Mike, this is exactly where DTO pattern has to be used.
1. Just create a DTO which encapsulated all the objects required at
startup.
2. And expose a new service, which would do all the sequential calls on
the server and construct the dto and return.
Remember, a server call
Could you paste the actual code?
--
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/-/qDcURn1hVnkJ.
To post to this group, send email to
Add the jar containing the bean as dependency and use it directly. Being a
GWT module doesn't change anything when it comes to server-side.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
, is used for code splitting, ie to introduce split points. If you
look at the simple example with just creation of widget inside the runAsync
block, it may look like a better version of LazyPanel, but its not.
-sowdri-
--
You received this message because you are subscribed to the Google Groups
Autobean directly have a clone() method:
clone()
An AutoBean http://code.google.com/p/google-web-toolkit/wiki/AutoBean and
the property values stored within it can be cloned. The clone() method has
a boolean parameter that will trigger a deep or a shallow copy. Any tag
values associated with
Inside TAB1, I have a tree on the left.
Make the activity that is displaying the tree listen to PlaceChangeEvent.
Now you know whenever the place changes, such that you can highlight the
required item in the tree based on the place.
Thanks,
--
You received this message because you are
?com/google/gwt/core/client/GWT.html
for
accomplishing this.
For changing pages within the module, use PlaceController.goTo(new
MyNewPlace());
-sowdri-
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web
Good the hear that!
Ya the image charts are static by nature,,
But you will lose the interactivity though :(
-sowdri-
--
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
if no such element was found*
Looks like your host html is missing an element with id stockList, so
either add it to your host page or Use the following line, without the id
param,
RootPanel.get().add(mainPanel);
Thanks,
-sowdri-
--
You received this message because you are subscribed to the Google
can embed this into the celltable.
But you will lose the interactivity though :(
Hope this helps,
-sowdri-
--
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
If you are looking at Authentication and Authorization, then spring
security is the de facto standard (of course this is all for the server
side)!
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
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_WhenDoModulesLoad
-sowdri-
--
You received this message because you are subscribed to the Google Groups
I need to know how to make a rpc call from module2 to module1. I have
server class running in module1 and i have to invoke the methods in module1
from client of module2.
In GWT each module could define the client and server packages that must
include. In your case, make sure you include the
module, pass it as url parameter.
If you are using Activities/Places, then the parsing will take place in the
PlaceTokenizer for the DefaultActivity.
Hope this helps,
-sowdri-
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view
For you context-less collection of objects, get away from
EntityProxy equality semantics by wrapping/translating the objects in
a class that has the equality semantics that you define.
Building upon Robert's solution:
The process of adding and removing proxies to collections could be
I use this class for copying proxies across contexts. May be helpful in
your case too:
/**
* Convenience method to copy an entity proxy to another request context.
*
* @author sowdri
*
*/
public class RequestFactoryUtils {
public static T extends BaseProxy T copy(ClassT clazz, T proxy
Have your tried moving login part to a separate GWT module, with a
different url (consequently a separate host html) and let the container
handle the session management?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this
Hi Rohan,
I guess you are trying to user PlaceController in isolation.
PlaceController control = new PlaceController(eventBus);
This is not supposed to work. Have you referred the documentation on
Activities and Places? Have you run the sample application given in the
below link?
http://localhost:8080/#place-name:key1=value1key2=value2key3=value3 (as
many nvpairs as you require)
Once you hit this url, the place tokenizer will take care of parsing the url
and you can directly access the values of the params, using
place.hasParameter() and place.getParameter() as
When you are creating the place, pass this using the constructor. Ex:
placeController.goTo(new MyPlace(key1, value1, key2, value2, key3,
value3));
Rest must be automatically taken care of!
When your MyPlace extends AbstractBasePlace, make sure, you also expose all
the constructors of
Activities and Places are in first place to make navigation simple.
*To Navigate to other url on clicking a hyperlink. *
Hyperlink link = new Hyperlink(Navigate to Chemical, thePlaceToken);
Instead,
Create a gwtanchor, and in the click handler, call
placeController.goTo(new
Did you thought about using HTMLPanel, with handlers for keyboard input?
such that you can have a complete control over the area and this will also
enable you to add any kind of widget dynamically.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit
public abstract class AbstractBasePlace extends Place {
private static final Logger logger =
Logger.getLogger(AbstractBasePlace.class.getName());
private static final String VALIDATE_TOKENS_MESSAGE_PREFIX = Missing
token(s): ;
private String url;
private MapString, String params = new
// place and placetokenizer for your reference
public class AgencyPlace extends AbstractBasePlace {
public AgencyPlace(String token) {
super(token);
}
@Prefix(agency-place)
public static class Tokenizer implements PlaceTokenizerAgencyPlace {
@Override
public AgencyPlace getPlace(String token)
Did you try RequestFactory?
--
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/-/aVhDDIFkHvIJ.
To post to this group, send email to
Are you using
PlaceTokenizerhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html?com/google/gwt/core/client/GWT.html?
If yes, they you can achieve what you are looking for using that.
One idea I can see is to make the place token the entire argument
list. So, in the above
Sorry that was a typo,
*RequestVoid persist(); // correct*
*
*
and while calling,
RequestVoid createReq = request.persist().using(newEmployee); // wrong
request.persist(newEmployee).fire(); // correct
I suggest you read the RF documentation!
--
You received this message because you are
Are you using the
EntityLocator/AppServiceLayerDecorator/AppRequestFactoryServlet solution?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
.with(view.editorDriver().getPaths()).fire();
Assuming:
// on the server
class Config ... {
ListLanguage languageList;
}
This could be simply be
.with(*languageList*).fire();
I thought maybe it wasn't working because I use using the simple version
of
but I cannot guarantee the JSON format.
What library are you using on the server?
Should I look to change my JSON server output so that even if a
single object is returned it is still wrapped in an array?
Yes!
--
You received this message because you are subscribed to the Google Groups
One occasion in which UiBinder errors are misleading is when you add custom
xml namespace like, *xmlns:c=urn:com.google.gwt.user.cellview.client*, in
this case i 've actually missed xmlns:*import*:c, the compiler would just
say it cannot find a matching element on the xml file.
A better
http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/
.
The solution presented in the above blog, suggests RF integration using
DispatcherServlet, but there actually there is another way of integrating
directly with your spring container.
I'll put
Thanks, HasRequestContext is in fact the right way to do it!
--
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/-/qOAvwhYiyHIJ.
To post to this group,
In the code above: The RC which creates the LanguageProxy is different from
the one which is used to fire the request on ConfigProxy. That could be the
reason why your LanguageProxy is not presisted on the server.
In the commented code thats not the case, thats why its working.
To overcome
Your editor for ConfigProxy would be a ValueAwareEditor. It'll receive
the ConfigProxy in setValue so you could push the LanguageProxy to a
widget of your choice (actually you could even use a sub editor driver).
In the flush method, you'd manually flush the LanguageProxy to the
ConfigProxy.
Once you know the stack, which might vary from company to company, one
option is to write a Maven Archetype that generates the boilerplate required
to get started. Which could well include your gwt-commons library, and a
rich set of BaseClasses for places and activities.. which is what we are
Even I'm struggling with ValueAwareEditors!
According to my understanding, onPropertyChange of Editors implementing
ValueAwareEditors, must be called automatically, by the driver, but so far
no success with it,,
A simple sample wil be a great help!
--
You received this message because you
Eclipse has 2 notions of classpath.
1. Classpath: Modify this in the Project properties BuildPath
settings
2. Runtime classpath: Modify this in Project properties run/debug
configuration settings
Almost every Eclipse classpath (ClassNotFoundException could be solved this
Maven or Ant build? And what version of GWT you are using (I could see
web.bindery, 2.3 or 2.4)?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
Do not try to resize the celltable, resize the div (Flowpanel or similar)
that is holding the celltable.
By default say I raw a cell table with 25 rows and when the the window
is shrink ed in size to show 20 rows , then scroll bar should automatically
appear on the table .
The browser must
Hi,
I've SearchCriteriaView which is an EditorSearchCriteriaProxy, one the
user clicks on 'Search', i fire the request to the server with the bound
proxy.
If the user has to search again, I create new Proxy using new RC and have to
bind the new proxy and fire the new RC. Now the previous
Thanks Thomas!
I like this idea:
clone your proxies using an AutoBeanVisitor (create a new proxy, visit
the old one –get its AutoBean using AutoBeanUtils–, and for each property,
update the new one)
Is it possible to use the proxy created using the above method as a
parameter in the
Would it be possible to have a rc.copy(xxx) feature??
CustomerProxy new = *rc1*.create(CustomerProxy.class);
// modified by user action
CustomerProxy copy = *rc2*.clone(old); // this should be as good as created
using *rc2*
*
*
Thanks,
--
You received this message because you are subscribed
This is exactly what I'm looking for, thanks!
As suggested, I've used AutobeanCodex to convert my proxy to json. And upon
receiving it on the server side, I could re-create the Proxy using
AutoBeanFactorySource.
Now I've to convert the proxy to concrete type.
*// this works!*
Hi Jeff, thank you so much for sharing the code! Even I've got a lot of use
cases. Just that, they were TODOs so for..
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
GWT doesn't care about how you design your application. It depends upon the
mockup you create (Plain old HTML and CSS). Checkout #UiBinder, which is
designed precisely to separate design and implementation concerns.
--
You received this message because you are subscribed to the Google Groups
If you would like to have a non-invasive workaround (where-in the size of
the child entities you are loading is not so heavy), you can go for this!
And I do agree with your view!
Thanks,
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
Hi,
I would like to clone ValueProxy/EntityProxy to preserve the state of the
UI, which is maintained by Editor? e;
I tried to solve it using AutoBean.clone() without success (and its is
depricated). I got the following exception:
Caused by: java.lang.AssertionError: Unfrozen bean with null
Hi Tiago,
I faced similar issues with hibernate, RF and lazy initialization.
Finally I found that it was because of proxying that is done by hibernate. I
finally solved it by using the @Proxy(lazy=false) annotation.
@Entity
@Table(name = CALL_TABLE)
@Proxy(lazy=false)
public class Call
While a Place can hold any data structure, including other places, as you
said once you refresh the browser, the data is lost.
To circumvent this, Place must be considered to be a special kind of object
in GWT, such that, the state of the place must be represented as part of
url. This is the
Rob,,
The fundamental reason for the problem is, as you have rightly guessed there
were residues. But what caused these residues?
If you are using GPE, the first time you run it, it would ask for webapp
directory. Select *target/web-app-name* for that. Do not use *src/main/webapp
*which is
Any updates on this issue??
--
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/-/Y8H6VYMM59UJ.
To post to this group, send email to
Hi,
Is is possible to setEmptyTableWidget using uibinder??
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/-/qSUTay-rb_AJ.
To post to
Hi,
The above solution was working fine, i even deployed a version and tested it
live!
But suddenly i've started getting this error:
DevMode warning: Clobbering appcache.nocache.manifest to allow debugging.
Recompile before deploying your app!
And the appcache.nocache.manifest_*user-agent
Hi,
Using SimpleAppCacheLinker from GWT trunk for generating HTML5 offline
manifest, results in the error
DevMode warning: Clobbering appcache.nocache.manifest to allow debugging.
Recompile before deploying your app!
Any ideas on this??
Thanks
--
You received this message because you are
I tried creating a custom run configuration, just for the compiler and tried
with both 'GWTCompiler' and 'Compiler' as the main class, but still i'm
getting the same warning.
And this happened when the application is compiled by GPE for deploying to
appengine:
## Compiler output
Interestingly,
1. This project is a maven build, running mvn clean install also produces
the same error.
2. The same linker has worked for me once.
3. The same linker when used with a fresh project (ant build, defaut GPE
sample project) works as expected.
Am I missing
Thanks Shawn and Stefan! This post helped a lot in designing this linker.
A linker based on the discussion above could be found here:
GWT HTML5 Offline Manifest Generation Linker
http://pastebin.com/JHi7NEuA
Thanks,
--
You received this message because you are subscribed to the Google Groups
You must also add this file in the same package as the above class for this
to work:
appcache.manifest.template
http://pastebin.com/ipWSVDS9
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
Hi All,
Regarding serializing the EntityProxies, I use AutoBeans directly. I tried
using RF ProxySerializer with no luck.
// from the docs...
To create a self-contained message that encapsulates a proxy:
// taken from the javadocs
RequestFactory myFactory = ...;
MyFooProxy someProxy =
@Thomas
GWT-RPC is not a symmetric protocol, ...
Guess, we cant straight away use the existing serializer/de-serializer!
Any plans for official support for serializer/de-serializer for the purpose
of HTML5 storage??
Thanks,
--
You received this message because you are subscribed to the
I completely agree with the fact that RequestFactory is the way to go! I
use RF in all my projects. But I also use RPC along side, esp. when it comes
to Google Collections (Table DS for instance).
Or to put the question other way around:
*Is it possible to make ValueProxies, which can embed
To create a self-contained message that encapsulates a proxy:
RequestFactory myFactory = ...;
MyFooProxy someProxy = ...;
DefaultProxyStore store = new DefaultProxyStore();
ProxySerializer ser = myFactory.getSerializer(store);
// More than one proxy could be serialized
String *key* =
I believe you have already converted your existing code into a gwt module.
(With that this is not possible) and finally in the module's gwt.xml file
include the path of the package which contains the enum.
Then it will be available on the client code!
Hope this helps!
--
You received this
Hi,
I've been working with AsyncDataProvider for celltable, and the
implementation is fantastic! Yet I've a few concerns:
*Use existing data:*
Each time the range change event is fired,
Hi,
For utilizing HTML5 storage, we have to serialize/de-serialize object(s) on
the client. But the output need not be necessarily human readable, so is it
possible to utilize GWT-RPC serializer/de-serializer for this purpose, such
that we could serialize RPC-serializable types, (including
Hi,
Use SingleSelectionModel or MultipleSelectionModel depending upon your
requirement. And refer
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#selection
for more info on adding handlers for
Dear All,
I was trying to make an RPC call and it was failing with
IncompatibleRemoteServiceException
After removing the arraylists present in the return type DTO, the error
changed to *Invalid type signature *exception. After hours together of
debugging, *renaming the DTO made RPC to
Did you try doing the same with
g:ListBox *uifield=myListbox*
g:item value='1'
first
/g:item
g:item value='2' selected='true'
second
/g:item
g:item value='3'
third
/g:item
/g:ListBox
@UiField
*Listbox myListbox;*
public constructor(){
//...
Can someone suggest using JEXL or similar library on client side??
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group,
(com.google.gwt.requestfactory.shared.RequestFactory,
E) to allow a modified
EventBus../../../../../com/google/gwt/event/shared/EventBus.html to
be monitored for subscription services.
I guess this must help you to notify changes to the bean.
Thanks,-sowdri-
--
You received this message because you are subscribed
Dear All,
I would like to get the current element that has focus in the DOM. But
couldn't find a way.
Any help is appreciated!!!
Thanks in advance,
-sowdri-
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send
Hi,
Can this feature be implemented? If yes, how to raise a request to the GPE
team??
This could save a lot of time and boilerplate code.
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
That's wonderful, Thanks Thomas!
--
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
was working properly in GWT 2.2, I migrated the code to 2.3
today, and I'm facing this issue. *
Any help (or *workaround*) is appreciated.
Thanks,
-sowdri-
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email
Dear All,
Actual code reduced to demonstrate the problem.
// widget
public interface LocationPrefEditView extends IsWidget,
EditorLocationPrefProxy,
HasMask, HasPresenterPresenter,
HasVisibility {
ValueListBoxString state();
ValueListBoxString city();
// .. omitted
on the client side
:)
Thanks,
-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
To create a new contact:
ContactRequest cr = rf.contactRequest();
// create contact here
ContactProxy contact = cr.create(ContactProxy.class);
// populate the proxy here, you need not verify, it is created here, just
that it is not sent to the server
contact.setAddress(xyz);
// now send this
Could you post the contents of the file GWTRPCServiceExporter.java
Thanks,
-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
be a natural fit.
Thanks,
-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
In fact RF is simple compared to RPC!
--
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
to your default ant project. I've been using this for quite
sometime and the integration is seamless.
Thanks,
-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 your default ant project. I've been using this for quite
sometime and the integration is seamless.
Thanks,
-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
1 - 100 of 128 matches
Mail list logo