for listening on events on your widget you can define UiHandler or Attach /
Add handlers
for example, if you have a button defined in your UIBinder
Hello
now if you want to listen on click event of this button, you can do either
of these two operations
@UiHandler("button1")
public void OnButton
try importing them as Maven Project in eclipse.
~Ashwin
On Sun, Jun 26, 2011 at 1:51 PM, saurabh saurabh wrote:
> Hi all,
>I am going through Sample applications that comes with GWT 2.3
> plugin. There is problem with these samples that you can't simply
> import them in eclipse. Eclipse
Nicolas,
The first this I can think of is in your module definition you have not
included the path
Your UserServiceImpl is defined in your server package but you don't have
that included in the module.
Try adding that.
Regards
Ashwin
On Mon, Jun 27, 2011 at 12:12 PM, Zgouingo wrote:
> Well
J,
did you look at EntityProxyChange.registerForProxyType ? You can use this
and register for any changes to your entities with the eventBus. The Handler
method is called on change of entities (especially version changes).
example:
EntityProxyChange.registerForProxyType(eventBus, UserContactsPro
Are you following the exact sample? or are you using the CompositeCell in
your own project?
Can you paste the code where you are associating your CompositeCell with a
table or CellList
~Ashwin
On Wed, Jun 29, 2011 at 9:42 AM, Daniel Johnston wrote:
> Thanks for the help Ashwin, but I checked th
Hello,
I am building a project where I have a datamodel as shown below.
A {
@Transient
B b;
@Transient
C c;
}
//there are few more params, just showing the basic structure
B {
String title;
Set child;
}
C {
//set of keys is stored
Set d;
Set count;
}
D {
String name;
String countr
you should be able to dynamically populate a drop list using requestFactory.
Once you fetch the data from the server, you can update your list.
The only instance where you would have to build a custom widget is when you
want to dynamically populate a SelectionCell with your dynamic data. For
that
you have not specified the events you want your cell to consume. You will
have to add a constructor and specify the events you want to consume
AbstractButtonCell() {
super(new String[] { "click", "keydown" });
//do rest of the init;
}
~Ashwin
On Wed, Jun 29, 2011 at 7:30 PM, Tod Jackson wrot
sion (I just saved it!). EntityProxyChange
> doesn't seem to provide a reference to the proxy object that triggered
> the change.
>
> I'm kind of confused with RequestFactory, I see having multiple change
> contexts and multiple proxy graphs as a handicap rather that an
>
Victor,
based on what I read, your flowpanel is part of a view which is mapped to a
presenter. You are dynamically adding buttons to the flowpanel. You can
setup click handlers for each of your buttons. if the button is present and
clicked, its handler would be invoked. Inside the handler call the
Associate a MultiSelectionModel with your list box. On the selection change
event, you can do the following
selectionModel.getSelectedSet();
this would fetch you all selected items.
Thanks
Ashwin
On Mon, Jul 11, 2011 at 6:09 PM, Jose Luis Hernandez <
jose.hernande...@gmail.com> wrote:
> Hello
Popup Panels have a isShowing() method, use that to determine if its
currently displayed
~Ashwin
On Tue, Jul 12, 2011 at 6:30 AM, Craig Mitchell wrote:
> Hi,
>
> I wanted to check if a popup is showing, so I wrote this method:
>
> public static int getNumPopupsShowing() {
> int result = 0;
> No
look at the source code, the initialize method shows how to add new tabs.
You can add a button in one of these tab panels and on click of it create
new tabs.
Thanks
Ashwin
On Tue, Jul 12, 2011 at 7:21 PM, Vik wrote:
> hie
>
> the demo does not show the adding new tab etc
> http://gwt.google.com
Mark,
I think you should be able to achieve it using places. Try to have an
additional property in your place, lets say location which would tell you
which tab the user clicked. Now pass this value to the activity/ Delegate
which drives your view. Based on the location render the contents.
Regar
nks! Should i be using the content panel that contains the tab
> panel or should i somehow create content panels and activity mappers
> for each tab panel.
>
> On Jul 18, 10:30 am, "ashwin.desi...@gmail.com"
> wrote:
> > Mark,
> >
> > I think you should be a
use an absolute panel and render the image inside it. use absolute position
to render your images at the prescribed positions.
regards
Ashwin
On Mon, Jul 18, 2011 at 9:00 PM, JC wrote:
> I have a DockLayout Panel. I want to place an image into the center
> of: . If I add the image to or nest i
Very good.
if you are doing more than one image then placing them relative to each
other would be difficult using a HTMLPanel and table combination. In those
instances you can use an absolute panel
On Mon, Jul 18, 2011 at 11:34 PM, JC wrote:
> It was frustrating but in the end I figured it ou
include the statement INSTANCE..ensureInjected(); that should fix your
problem.
For your reference read the following
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#ImageResource
Overview
1. Write a CSS file, with or without GWT-specific extensions
2. If GWT-specific
all layout panels have to be placed under other layout panels otherwize they
won't render properly as the resizing would not work automatically. You can
alternatively use a ResizeLayoutPanel which is an extension of a
SimplePanel. Use it instead of the simple panel.
On Tue, Jul 19, 2011 at 3:59
you are having this problem because your page is not able to resize
properly. What sort of widget is your is that a Simple Panel?
you can place your Tab Layout Panel directly inside the RootLayout Panel.
since you want to have two Tab Panels, place them inside a simple panel
would not work prope
here is an example
public interface DesktopResouces extends ClientBundle {
}
On Tue, Jul 19, 2011 at 2:49 AM, Markus wrote:
> Thanks for your reply. But I don't know how it should work with CSS
> Resource?
>
> Ok I created
>
> public interface ResourceBundle extends ClientBundle {
>
>
managing your changing styles for the page
Thanks
Ashwin
On Tue, Jul 19, 2011 at 9:33 AM, ashwin.desi...@gmail.com <
ashwin.desi...@gmail.com> wrote:
> here is an example
>
> public interface DesktopResouces extends ClientBundle {
>
> }
>
> On Tue, Jul 19, 2
> I keep track of which tab is currently selcted and utilize the
> variables depending on the selected index of the tab. for example when
> the second tab is selected the 2 variables are used. doing this still
> combines all the browser history together no matter what tab is
> selec
register for entitychange events in your delegate and on change of the
entity values, update your view.
On Tue, Jul 19, 2011 at 12:22 PM, sanjay kanwar wrote:
> Hi there,
>
> How can i update an entity in a webpage without refreshing the whole page.
> using AJAX refresh method of the delegate. T
the problem is not with your TabLayout panel. what you have there would work
fine. The issue is with the Grid.
Its best to use LayoutPanels inside other layoutpanels. In your case if all
that you are doing is rendering two TabLayoutPanels, you don't have to
necessarily use a grid.
i would instead
Also, make sure the height of the tabLayoutPanel is set to 100%
.gwt-TabLayoutPanel {
height : 100%;
}
~Ashwin
On Tue, Jul 19, 2011 at 8:10 PM, ashwin.desi...@gmail.com <
ashwin.desi...@gmail.com> wrote:
> the problem is not with your TabLayout panel. what you have there would
> wo
reduce the width of the topPanel. try to inspect the resizelayoutpanel, it
would be going out of the frame. If you set overflow : auto, you may mostly
see a scroll bar. if you reduce the width to below 100% your right margin's
should get set.
On Tue, Jul 19, 2011 at 8:30 PM, JC wrote:
> I can'
are you setting 100% as the height for both the resize layout panels? if yes
how will the page render as your total height is 100% and you are assigning
to the 1st resisze panel, the second panel would not be able to calculate
its layout details.
try setting the height to 50% and see the out come
oh, if you want to render your panels on click of a button, then you don't
necessarily need two ResizeLayoutPanels, just render the contents of the
appropriate tabLayoutPanel
alternatively, you can set the visibility of the panels to true/ false on
click. this would also force the height adjustmen
you can set styles via code.
On Wed, Jul 20, 2011 at 1:42 AM, MChan wrote:
> It still did not work. However, when I changed the resulting divs (Chrome
> inspect element tool) position to "relative" instead of absolute, I was able
> to see the tab content fit. But I can't do that programmatically
use RootPanel or RootLayoutPanel and add your widget to it.
On Tue, Jul 19, 2011 at 8:40 PM, Matt wrote:
> I am trying to add events to a Button using the UiBinder, but nothing
> is happening when I click the Button. Here is my code:
>
> Login.ui.xml:
> xmlns:ui="urn:ui:com.google.gwt.uibinder
best would be to do a place change, call the same activity, but re-use the
view (you can mark it singleton). this would make the code clean.
On Wed, Jul 20, 2011 at 5:43 AM, P.G.Taboada wrote:
> Hi,
>
> I need to tell the history manager that I am switching from
> userViewPlace: to userViewPlace:
Daya,
you can customize the style of the DataGrid by overriding the CSS
properties? Did you try that.
Regards
Ashwin
On Fri, May 4, 2012 at 11:28 AM, Dayananda B V wrote:
> please help on this regard
>
> On May 3, 11:57 am, Dayananda B V wrote:
> > Hi all,
> >
> > How to make DataGrid column h
Ryan,
You can create your own custom annotation (for example : LoggedIn). Apply
this on all methods you want to authenticate the user/ session to be
validated.
Define your own ApplicationRequestFactoryServlet and
ApplicationServiceLayerDecorators. Override the invoke method under
ServiceLayerDeco
there are multiple options available apart from HTML5 canvas.
1. RapahelGWT (this is an extension of Raphael JS for GWT), using this
images would be rendered as SVG. And raphael works with lower versions of
ie as well http://code.google.com/p/raphaelgwt/
2. you can also look at a SlidingPanel (exa
simply put GWT is a client side library. you develop using java/ phyton or
Go instead of javascript.
Its is similar to packaging a jsp/ html page inside a web app and would run
under any j2ee container.
yes you can combine, servlets and jsp in GWT app.
~Ashwin
On Fri, Jul 6, 2012 at 11:44 AM,
are you setting the size of the docklayout panel or making it use all the
available size of your popuppanel? Yes you can use window %.
I would suggest you set min width and height for your popup panel and make
the docklayout panel cover the width and height of your popup. Setting min
width and he
i have a similar implementation for my project. I have a panel to which I
add a canvas (first) and dynamically I add multiple widgets.
I actually don't use z-index ( so i am wrong with my previous comment). All
that I do is I add the canvas before any of my other widgets. I have
enabled domEvents
Santosh,
If you have the privilege (depending on your app) to use html5 and css3 as
the min browser requirement, then I would suggest draw the process as as
div and style them as circle using border-radius CSS style.
to draw the connectors, use HTML5 canvas. GWT supports canvas on browsers
which
Check out
https://groups.google.com/forum/m/?fromgroups#!topic/google-web-toolkit/VpQq_gxATYY
On Aug 13, 2012 11:25 PM, "James" wrote:
> I get a long list of records (2) for MultiWordSuggestOracle from
> database. The page containing SuggestBox takes very long time to load. I
> can add its i
check if the instance of EventBus is the same. I know you have declared it
as eagerSingleton in your GIN configuration. But do a quick log to see if
the instances are the same.
I remember encountering a similar issue wherein I used to have a new
instance of the EventBus getting injected even thoug
Doc,
You cannot add Widgets directly to a CellTable. You will have to write a
custom implementation by extending one of the AbstractCell Types.
Is there a reason why you need to place a Panel inside a CellTable? If you
are using a table to place widgets either use Grid or FlexGrid. CellTable
is f
some previous threads where securing RequestFactory has been discussed
https://groups.google.com/forum/#!searchin/google-web-toolkit/securing$20RequestFactory/google-web-toolkit/QjZhnGydDFA/GmdSq5FlyckJ
https://groups.google.com/forum/#!searchin/google-web-toolkit/securing$20RequestFactory/googl
do you place your grid directly on the layoutPanel or is it inside other
panels like HTMLPanel etc?
I have had similar issues with loosing the size of the panel, In my case
since I was using absolute positioning, I forced position of my grid on
code to over come the issue.
myGrid.getElement().getS
datagrid inside a flex table would not invoke the resize of the grid. Add a
resizelayoutPanel inside your dockLayout, override the resize method and
set the height of the grid.
On Tue, Jan 15, 2013 at 1:25 PM, tong123123 wrote:
> DataGrid inside a FlexTable which is then inside a DockLayoutPane
drop your canvas inside a ResizeLayoutPanel. This way onResize event you
can adjust the width and height of the canvas.
On Sat, Jan 19, 2013 at 7:16 PM, RyanZA wrote:
> Make sure that the actual container your uibinder is using is
Please respect the sanctity of this forum. This is not the place to
advertise.
Admin,
Please remove/ block such users.
Regards
Ashwin
On Sun, Jan 20, 2013 at 12:45 PM, wrote:
> HI,
>
> PLEASE FIND THE BELOW LINK FOR .NET ONLINE TRAINING AND PROJECT SUPPORT.
>
> http://onlinenettrainings.blog
easiest way to clear a canvas is to use the context clearRect function and
pass the canvas co-ordinate space width & height. This would clear the
entire canvas. And you can redraw the shapes you want to remain on screen.
You can also clear portion of a screen, using the above function by passing
t
great. let me know if you need more details on the same. I have implemented
panning and zooming as well for one of my projects
regards
Ashwin
On Mon, Jan 21, 2013 at 7:01 PM, Kody wrote:
> Followed your suggestion using front and drag/back-canvas. Works really
> nice.
>
> If someone else is lo
49 matches
Mail list logo