GWT+SPRING+MAVEN

2008-12-26 Thread Mikhail M
Good day.

I work on a project (client server application) where I use GWT + SPRING +
MAVEN.
And now I need to add auth block to determine if users have any rights to
perform any
actions.

Do you have any ideas, links or something which could be helpful in this
terribly perfect situation? )


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



how to implement history back

2008-12-26 Thread rajasekhar

Hi All,

 Please let me know how to implement history back in gwt when
I click on cancel button.
( like jsp A href=javascript:window.history.back();Previous Page /
A ).





Regards,
Rajasekhar
--~--~-~--~~~---~--~~
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: Isssues in migration to GWT 1.5

2008-12-26 Thread pravn

hi,

 I tried to remove jar fiels one by one and tested.
 This issue is coming only when i add weblogic.jar file which is used
by webservices modules.
 Anyone used weblogic.jar library with GWT 1.5?

Thanks and Regards,
Praveen



On Dec 26, 10:23 am, pravn pravn...@gmail.com wrote:
 Hi,

  Our current application is using GWT 1.4.
 When i try to migrate into GWt 1.5 I am facing following exception 
 inhostedmode
 Exception in thread main java.lang.NoClassDefFoundError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0
 (Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance
 (Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
 (Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.parsers.FactoryFinder.findJarServiceProvider
 (Unknown Source)
         at javax.xml.parsers.FactoryFinder.find(Unknown Source)
         at javax.xml.parsers.DocumentBuilderFactory.newInstance
 (Unknown Source)
         at org.apache.commons.modeler.util.DomUtil.readXml
 (DomUtil.java:284)
         at
 org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
 (MbeansDescriptorsDOMSource.java:130)
         at
 org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescripto­rs
 (MbeansDescriptorsDOMSource.java:120)
         at org.apache.commons.modeler.Registry.load(Registry.java:819)
         at org.apache.commons.modeler.Registry.loadDescriptors
 (Registry.java:931)
         at org.apache.commons.modeler.Registry.loadDescriptors
 (Registry.java:909)
         at org.apache.commons.modeler.Registry.findDescriptor
 (Registry.java:992)
         at org.apache.commons.modeler.Registry.findManagedBean
 (Registry.java:696)
         at org.apache.commons.modeler.Registry.findManagedBean
 (Registry.java:1047)
         at org.apache.commons.modeler.Registry.registerComponent
 (Registry.java:859)
         at org.apache.coyote.tomcat5.CoyoteConnector.initialize
 (CoyoteConnector.java:1351)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:
 851)
         at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.init
 (EmbeddedTomcatServer.java:244)
         at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.start
 (EmbeddedTomcatServer.java:69)
         at com.google.gwt.dev.GWTShell.startUp(GWTShell.java:778)
         at com.google.gwt.dev.GWTShell.run(GWTShell.java:582)
         at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

 When i tried to compile and generate js fiels, only
 com.abc.xyz.Test.nocahce.js
 GWT 1.4 compilers where generating multiple js fiels and corresponding
 xml fiels also.
 Can u plz asdvice me what  might have gone wrong while migrating GWT
 1.5?

 Thanks in advance.
 pravn
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



how to minimize the panel

2008-12-26 Thread rajasekhar

Hi All,

  I have a panel with collapsible(true).In some places I
need to minimize panel .Please let me know how to do this.






Regards,
Rajasekhar
--~--~-~--~~~---~--~~
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: Get file from server with GWT-RPC

2008-12-26 Thread todd.sei...@gmail.com

A GWT Image widget is basically the equivalent of using an HTML image
tag. When you use setUrl() it will set the src attribute of the image.
From there on out the retreival of the image is up to the clients
browser.

On Dec 25, 11:13 am, Daniele dany.hat...@gmail.com wrote:
 So I lost power of asyncronous features??Or Image widget retrieve
 images with asyncronous power?

 2008/12/24, todd.sei...@gmail.com todd.sei...@gmail.com:



  GWT RPC is not uesd for getting images. You can just and an Image
  widget to your application and set the URL to something like
  myServerFolder/image.jpg

  On Dec 24, 9:01 am, Daniele B dany.hat...@gmail.com wrote:
  Hi.
  I work on a photogallery application for my thesis.
  I have a problem.
  How can I do to retrieve image files stored on a server folder trought
  GWT-RPC?

  Thanks at all!
  Sorry fo my english!!! :)

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



Popup is NOT modal

2008-12-26 Thread BR

I have a popup dialog that is very, very simple.

I've tried to subclass PopupPanel (and passing false, true to autoHide
and modal) as well as constructing a PopupPanel (with false, true to
autoHide and modal) and setting the widget to be a FlexTable, and in
all cases the Popup is NOT modal. I can still click around the panels
from which which I created the popup, its parent and its parent's
other children.

An I misunderstanding the meaning of modal in this context?

Thanks,
BR
--~--~-~--~~~---~--~~
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: Are RPC servlets Thread safe

2008-12-26 Thread byhisdeeds

Sorry for bothering everybody in this season of good cheer. I found
the problem which was my own (of course). I had my json object
instantiated per the RPC servlet class and not the servlet method.

Think I'll go and have a drink now.

John

On Dec 26, 4:05 pm, byhisdeeds byhisde...@gmail.com wrote:
 Please forgive me if the question seems a bit daft. Its christmas and
 maybe I have had too much to drink. I have a GWT 1.5 application using
 RPC to access some server side code running under tomcat 6.xxx. I've
 just recently seen something that puzzles me. When I let fly with 10
 or 20 independent RPC calls from my client, each of which queries a
 database and returns an entry for a single row in a table, I see all
 the calls being received by the server RPC method, but  when I look at
 the response being sent back to the client (within the RPC method) I
 see some overwriting each other. That is, I instantiate a JSONObject
 (http://www.jason.orglibrary) within the RPC myMethod(String s){...}
 and see that different call to the RPC method result in the same
 values for the JSON object just before returning. Since I instantiate
 these within myMethod(String s){...} I expect that they should not
 interfere with each other. Am I missing something.

 John
 P.S. A merry Christmas and Happy New Year when it comes (even if you
 can';t help me solve my problem).
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Desktop Problem

2008-12-26 Thread Vagner Araujo
Hi guys,

I tried to create an instance of class Desktop and had the following
exception:

[ERROR] Failed to create an instance of 'com.jdukes.jtalk.client.
JTalk' via deferred binding
com.google.gwt.core.client.JavaScriptException: (NS_ERROR_INVALID_POINTER):
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)
[nsIDOMHTMLDivElement.appendChild]
 QueryInterface:
function QueryInterface() {
[native code]
}

 result: 2147500035
 initialize:
function initialize() {
[native code]
}

at com.google.gwt.dom.client.Node$.appendChild$(Native Method)
at com.extjs.gxt.desktop.client.Desktop$1.onRender(Desktop.java:66)
at com.extjs.gxt.ui.client.widget.Component.render(Component.java:795)
at
com.extjs.gxt.ui.client.widget.Layout.renderComponent(Layout.java:236)
at com.extjs.gxt.ui.client.widget.Layout.renderAll(Layout.java:227)
at com.extjs.gxt.ui.client.widget.Layout.onLayout(Layout.java:211)
at
com.extjs.gxt.ui.client.widget.layout.RowLayout.onLayout(RowLayout.java:218)
at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:90)
at com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:285)
at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:375)
at
com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:246)
at com.extjs.gxt.ui.client.widget.Container.onAttach(Container.java:386)
at com.extjs.gxt.ui.client.widget.Viewport.onAttach(Viewport.java:82)
at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:231)
at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:86)
at
com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:80)
at com.extjs.gxt.desktop.client.Desktop.init(Desktop.java:80)
at com.jdukes.jtalk.client.JTalk.init(JTalk.java:43)



the problem occurs at line 66 of the class constructor
com.extjs.gxt.desktop.client.Desktop.Desktop

line 66 = getElement().appendChild(XDOM.getElementById(x-desktop));

is this a bug ?

I'm using version 1.2.1 of gxt, Slackware Linux, and GWT 1.5.3

have anyone any suggestions ?


I'm sorry my English, I am still beginner in writing in English

thanks.



-- 
Professor Vagner
Java Programmer
Sun Certified Programmer for the Java Platform, SE 6

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



Cannot run GWT application in hosted mode

2008-12-26 Thread basil



I am facing exactly the same problem as ArunDhaJ reported in

http://groups.google.co.nz/group/Google-Web-Toolkit/browse_thread/thread/f6a17b3812e7efd/1a90aa9d56d46948?lnk=gstq=%22bad+request%22#

I do the following:

1. Create a test GWT application:

applicationCreator.cmd -out Test test.client.Test

2. Run the application in hosted browser:

Test-shell.cmd

The hosted browser opens and I see the HTTP 400 - Bad request error
in it. And I see the following log records in the development shell:

[INFO] Starting HTTP on port 
[TRACE] Property 'catalina.base' not specified; checking for a
standard catalina base image instead
[WARN] Could not find com/google/gwt/dev/etc/tomcat/

Can anyone possibly help me to solve this problem?

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



Emutation of client rpc

2008-12-26 Thread Stalex

How client-side rpc can be emulated in 1.5 GWT ? in old versions we
used ClientStreamSerializationReader/Writer but in new GWT theese
classed contains native methods

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



Error's , PLEASE HELP ME :)

2008-12-26 Thread King

Hello Guys,

I get the following Error Message, if I try to run the chart example
from the page http://www.gwt-ext.com/demo-charts/#lineChart ... I
included the source code in my projekt , I only rename the
source to StringCounterClient, dont ask why :) !

The Error Message is:
[ERROR] Unable to load module entry point class
se1.gwt.client.StringCounterClient (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' ist Null oder kein Objekt
 number: -2146823281
 description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.clinit(Component.java:108)

the secon error Message is:
[ERROR] Failure to load module 'se1.gwt.StringCounterClient'

I get this messages on the the shell (Web-Browser) if i want to run
the projekt as a gwt application
...

Technical details:
I use:
Eclipse 3.4.1
GWT: 1.5.3
GWT-EXT: 2.0.5.3

this is the source code of GWT-EXT Charts, with the changes from me on
line 18:

package se1.gwt.client;


 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.i18n.client.NumberFormat;
 import com.gwtext.client.data.*;
 import com.gwtext.client.widgets.Panel;
 import com.gwtext.client.widgets.Viewport;
 import com.gwtext.client.widgets.chart.yui.LineChart;
 import com.gwtext.client.widgets.chart.yui.NumericAxis;
 import com.gwtext.client.widgets.chart.yui.SeriesDefY;
 import com.gwtext.client.widgets.form.NumberField;
 import com.gwtext.client.widgets.form.TextField;
 import com.gwtext.client.widgets.grid.*;
 import
com.gwtext.client.widgets.grid.event.EditorGridListenerAdapter;
 import com.gwtext.client.widgets.layout.VerticalLayout;

 public class StringCounterClient implements EntryPoint {

public void onModuleLoad() {

 Panel panel = new Panel();
 panel.setPaddings(15);

panel.setLayout(new VerticalLayout(15));

 MemoryProxy proxy = new MemoryProxy(getData());
 RecordDef recordDef = new RecordDef(
 new FieldDef[]{
 new StringFieldDef(month),
 new FloatFieldDef(rent),
 new FloatFieldDef(utilities)
 }
 );

 ArrayReader reader = new ArrayReader(recordDef);
 final Store store = new Store(proxy, reader);
 store.load();

 SeriesDefY[] seriesDef = new SeriesDefY[]{

 new SeriesDefY(Rent, rent),
 new SeriesDefY(Utilities, utilities)

 };

 NumericAxis currencyAxis = new NumericAxis();
 currencyAxis.setMinimum(800);
 currencyAxis.setLabelFunction(formatCurrencyAxisLabel);
 final LineChart chart = new LineChart();
 chart.setTitle(Monthly Expenses);
 chart.setWMode(transparent);
 chart.setStore(store);
 chart.setSeries(seriesDef);
 chart.setXField(month);
 chart.setYAxis(currencyAxis);
 chart.setDataTipFunction(getDataTipText);
 chart.setExpressInstall(js/yui/assets/
expressinstall.swf);
 chart.setWidth(500);
 chart.setHeight(400);

 panel.add(chart);


 Renderer renderer = new Renderer() {
 public String render(Object value, CellMetadata
cellMetadata, Record record, int rowIndex, int colNum, Store store)
{
 NumberFormat nf = NumberFormat.getCurrencyFormat();
 return nf.format(((Number) value).doubleValue());
 }
 };
 ColumnConfig monthConfig = new ColumnConfig(Month, month,
150, true);
 TextField monthField = new TextField();
 monthField.setSelectOnFocus(true);
 monthConfig.setEditor(new GridEditor(monthField));

 NumberField rentField = new NumberField();
 rentField.setSelectOnFocus(true);

 ColumnConfig rentConfig = new ColumnConfig(Rent, rent,
100, true);
 rentConfig.setEditor(new GridEditor(rentField));
 rentConfig.setRenderer(renderer);

 NumberField utilitiesField = new NumberField();
 utilitiesField.setSelectOnFocus(true);

 ColumnConfig utilitiesConfig = new ColumnConfig(Utilities,
utilities, 100, true);
 utilitiesConfig.setEditor(new GridEditor(utilitiesField));
 utilitiesConfig.setRenderer(renderer);

 ColumnModel columnModel = new ColumnModel(new ColumnConfig[]
{
 monthConfig,
 rentConfig,
 utilitiesConfig
 });

 EditorGridPanel grid = new EditorGridPanel();
 grid.setStore(store);
 grid.setClicksToEdit(1);
 grid.setColumnModel(columnModel);
 grid.setWidth(360);

 grid.addEditorGridListener(new EditorGridListenerAdapter()
{
 public void onAfterEdit(GridPanel grid, Record record,
String field, Object newValue, Object oldValue, int rowIndex, int
colIndex) {

How to center the whole page (not the content inside a panel)?

2008-12-26 Thread Yossi

Hi,

I try to build a page that will contain a dock panel - using this
panel it is very easy to maintain the page layout.

But I want that the root dock panel will be centered in the page and
not aligned to the left.

Can someone please help?

Thanks,
Yossi

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

2008-12-26 Thread Freller


Hi Guys,

You should actually use the fixed version:

http://groups.google.com.my/group/Google-Web-Toolkit/msg/338428a62c79d013

Regards,
Freller


On Dec 23, 4:11 pm, lukehashj bobwazn...@gmail.com wrote:
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 [...] [Andre Freller] created a simple class that can print any HTML,
 DOM.Element or Widget
 without opening a new window. [...]

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