Retrieve Cell from another Column
Hello all. I have two Columns in a CellTable: Column A contains a custom RadioButtonGroupCell, which extends AbstractInputCell. The group contains three radio buttons. Column B contains a ButtonCell, and a click on the button is supposed to clear the selection made by the user in Column A. My problem is I don't know how to retrieve a Cell in Column A from Column B. If I can retrieve the relevant Cell from Column A, I can work it out from there. Do the columns share a parent Element I can work with? I don't know the 'best practice' to follow and would be grateful for any tips. Thank 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.
Paging and tables
Hello all, would be grateful for any ideas. Requirement -- (A) table containing A.1 text columns A.2 one column for HTML content A.3 one column to house a radio button group (B) ability to page through records, e.g. by use of SimplePager. Alternatives considered so far - 1. FlexTable - can provide all of (A) but not (B) 2. CellTable - can provide A.1 and (B), but not A.2 nor A.3 Can anyone suggest an alternative(s) that provides all of A and B? I have looked also at Smart GWT but don't see anything I can use. Thank 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.
Re: TabLayoutPanel
Hello Marco, This is what I do: 1. client code: DecoratedTabPanel tabPanel = new DecoratedTabPanel(); tabPanel.setStylePrimaryName("tabPanel"); tabPanel.setAnimationEnabled(true); 2. CSS: .tabPanel { width:99%; height:99%; position:fixed; top:5px; left:5px; } I couldn't get it to 100%, but 99% is enough for me. On Mar 28, 3:19 pm, Marco Gadaleta wrote: > Hello, > I'm using DecoratorTabPanel inside my gwt project but > the compiler say me that DecoratorTabPanel was deprecated and recommend to > me to use > TabLayoutPanel. > But a TabLayoutPanel doesn't work inside a RootPanel that is the component > that i must use. > > Some suggestion? > > Is there a way to set DecoratorTabPanel to 100% in width and height? > > -- > Marco -- 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.
Proxy hell
I have bashed my head against this for almost two weeks now. I am trying to do something really simple - proxy a request from a stand- alone Jetty 6.1.22 instance to localhost to connect to my Bugzilla installation. My app is developed using GWT2.2.0. My Bugzilla runs just fine at http://localhost/bugzilla. The folder containing my webapp is to be found at jetty-6.1.22/webapps/ proxytest. I have read about proxies and GWT extensively, the most useful thing I found are the tales of woe (and advice) at http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c25 . Based on comment 46 on this page, I chose to use Jetty 6.1.22. My client code looks like this: public void onModuleLoad() { Frame frame = new Frame("/bugzilla/"); frame.setHeight("100%"); frame.setWidth("100%"); RootPanel.get().add(frame); } My web.xml looks like this: http://java.sun.com/dtd/web-app_2_3.dtd";> JettyProxy org.mortbay.servlet.ProxyServlet$Transparent ProxyTo http://localhost/ Prefix / 1 greetServlet com.searchsystem.gwt.server.GreetingServiceImpl greetServlet /test/greet JettyProxy /bugzilla/* Test.html In WEB-INF/lib I have jetty-util-6.1.22.jar and gwt-servlet.jar. When I run the app by hitting http://localhost:8080/proxytest, this is the output I get. Please please please can anyone help me get past this 404 error? I see there is no value in the output for javax.servlet.forward.context_path - is this fatal? Thanks in advance ... WebApp JSP Snoop page Request information Requested URL: http://localhost:8080/jspsnoop/ERROR/404 Request method: GET Request URI:/jspsnoop/ERROR/404 Request protocol: HTTP/1.1 Servlet path: /jspsnoop Path info: /ERROR/404 Path translated:/usr/share/java/jetty-6.1.22/webapps/test/ERROR/404 Query string: Content length: -1 Content type: null Server name:localhost Server port:8080 Remote user:null Remote address: 127.0.0.1 Remote host:127.0.0.1 Authorization scheme: null Request headers Header: Value: Hostlocalhost:8080 Connection keep-alive Referer http://localhost:8080/proxytest/ Accept application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5 User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3 Accept-Encoding gzip,deflate,sdch Accept-Language en-GB,en-US;q=0.8,en;q=0.6 Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie LASTORDER=bug_status%2Cpriority%2Cassigned_to%2Cbug_id; JSESSIONID=igusquo0nqig Request Attributes Attribute: Value: javax.servlet.forward.request_uri /bugzilla/ org.mortbay.jetty.error_page/jspsnoop/ERROR/404 javax.servlet.forward.servlet_path /bugzilla/ testFilter 2 javax.servlet.error.message NOT_FOUND requestInitialized '' javax.servlet.forward.context_path javax.servlet.error.status_code 404 javax.servlet.error.servlet_namedefault org.mortbay.jetty.newSessionId ed9z6uthzmor javax.servlet.error.request_uri /bugzilla/ -- 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: Issues with IE GWT compiled javascript is 11MB
Yes, you can instruct GWT to compile only for say Firefox on Windows: see http://stackoverflow.com/questions/890352/gwt-module-xml-how-to-redefine-and-use-more-than-one-user-agent On Mar 4, 5:18 pm, sridevi macherla wrote: > Is there any mechanism to generate browser sepecific example I have 3 > browser, but currenlty user is browsing in Firefox, so the rest of > permutation can be ignored meaning dynamic binding of browser specific way > so that way the javascript can be reduced to a larger extent, but please > suggest me. -- 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.
Jetty configuration
Hello all. As I understand it, GWT uses an embedded Jetty server. Can anyone tell me where I can find the Jetty .xml configuration files used by GWT? I have a webapp which makes uses of Jetty's ContinuationFilter and ProxyServlet. The app works fine under GWT but fails when run in a separate Jetty instance outside of GWT. If I can replicate the GWT Jetty config then I think I'll be okay. Many thanks, Clive -- 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: CGI problem
Whilst my fix worked for my app running on GWT development mode, I had to make a change so it would run properly on a separate Jetty server running on port 8080. The change I had to make was as follows: change : Frame bugFrame = new Frame("/bugzilla/") to : Frame bugFrame = new Frame("/bugzilla/index.cgi") I made no change to web.xml -- 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: CGI problem
I was able to fix this as follows, in a GWT project I called 'Test'. I followed this useful blog posting http://blogs.yellowfish.biz/2010/gwt-development-with-traditional-servlets/ My Test.java file reads as follows package com.searchsystem.gwt.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.DecoratedTabPanel; import com.google.gwt.user.client.ui.Frame; import com.google.gwt.user.client.ui.RootPanel; /** * Entry point classes define onModuleLoad(). */ public class Test implements EntryPoint { @SuppressWarnings("unused") private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class); /** * This is the entry point method. */ @Override public void onModuleLoad() { RootPanel.get("tabContainer").add(createTabs()); } private DecoratedTabPanel createTabs() { DecoratedTabPanel tabPanel = new DecoratedTabPanel(); tabPanel.setStylePrimaryName("tabPanel"); tabPanel.setAnimationEnabled(true); // Add another tab Frame bugFrame = new Frame("/bugzilla/");// Apache must be running for this to be served bugFrame.setStyleName("frame"); DOM.setElementPropertyInt(bugFrame.getElement(), "frameBorder", 0);// remove frame border tabPanel.add(bugFrame, "Bugs"); // Return the content tabPanel.selectTab(0); tabPanel.ensureDebugId("cwTabPanel"); return tabPanel; } } Web.xml in my war file reads as follows (please note that the order of the filter, filter-mapping, servlet, servlet-mapping directives is important): http://java.sun.com/dtd/web-app_2_3.dtd";> JettyContinuationFilter org.eclipse.jetty.continuation.ContinuationFilter JettyContinuationFilter /bugzilla/* greetServlet com.searchsystem.gwt.server.GreetingServiceImpl jetty-proxy-servlet org.eclipse.jetty.servlets.ProxyServlet $Transparent ProxyTo http://localhost/ Prefix / 1 greetServlet /test/greet jetty-proxy-servlet /bugzilla/* Test.html -- 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.
CGI problem
Hello all, I've been knocking my head against this for a few days now. I have a GWT webapp (running on Ubuntu Lucid Lynx) which acts as a kind of dashboard for my application. The dashboard has a number of tabs, one of which displays my bugzilla installation. The bugzilla home page is contained within a Frame. The Frame is initialised as follows: // bugzilla tab // Apache must be running for this to be served com.google.gwt.user.client.ui.Frame bugFrame = new Frame("http:// localhost/bugzilla"); bugFrame.setStyleName("frame"); DOM.setElementPropertyInt(bugFrame.getElement(), "frameBorder", 0);// remove frame border DecoratedTabPanel tabPanel = new DecoratedTabPanel(); tabPanel.add(bugFrame, "Bugzilla") The bugzilla installation runs on Apache and MySQL, and works fine when I access it via http://localhost/bugzilla. I can view, create and edit bugs, all perfectly fine. Please note that the bugzilla index page is index.cgi. However, when the GWT webapp runs, no output is displayed for the bugzilla tab. I have tried using both GWT development mode and a separate Jetty server on port 8080 to see if that makes a difference, but the results are identical. The Apache access.log file appears to indicate that the page is successfully fetched, but nothing happens: Using Jetty === 127.0.0.1 - - [23/Feb/2011:13:55:14 +] "GET /bugzilla HTTP/1.1" 301 557 "http://localhost:8080/dash/"; "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid) Namoroka/3.6.15pre" 127.0.0.1 - - [23/Feb/2011:13:55:14 +] "GET /bugzilla/ HTTP/1.1" 200 3062 "http://localhost:8080/dash/"; "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid) Namoroka/3.6.15pre" Using GWT development mode == 127.0.0.1 - - [23/Feb/2011:13:50:07 +] "GET /bugzilla HTTP/1.1" 301 557 "http://127.0.0.1:/Dashboard.html? gwt.codesvr=127.0.0.1:9997" "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid) Namoroka/ 3.6.15pre" 127.0.0.1 - - [23/Feb/2011:13:50:07 +] "GET /bugzilla/ HTTP/1.1" 200 3062 "http://127.0.0.1:/Dashboard.html? gwt.codesvr=127.0.0.1:9997" "Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid) Namoroka/ 3.6.15pre" If I change the bugzilla URL in the GWT code above to fetch some page which is not a cgi file (e.g. http://localhost/bugzilla/README), it is rendered fine. It seems therefore that I have some configuration problem which prevents GWT from displaying the output of a cgi file. My apache2.conf file reads as follows (the bugzilla cgi config section is at the bottom). Does anyone have any pointers for me, please? Thank you. Clive apache2.conf # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs/2.2/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "/var/log/ apache2/foo.log" # with ServerRoot set to "" will be interpreted by the # server as "//var/log/apache2/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at http://httpd.apache.org/docs-2.1/mod/ mpm_common.html#lockfile>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the direct
Re: DecoratedTabPanel setWidth and setHeight not working as expected
Using GWT2.1.1, I had some limited success setting the height of the DecoratedTabPanel by including this in my CSS file: .gwt-TabPanelBottom { height: 10%; } see the Javadoc for DecoratedTabPanel which indicates that two CSS style rules are used: .gwt-DecoratedTabPanel { the tab panel itself } .gwt-TabPanelBottom { the bottom section of the tab panel (the deck containing the widget) } On Jan 2, 12:38 pm, Leung wrote: > Hi, > > I am trying to put a VerticalPanel inside aDecoratedTabPanel. I would like > the width and height of theDecoratedTabPanelfixed, no matter the length of > the strings inside the VerticalPanel. Then, I use setWidth andsetHeightfor > bothDecoratedTabPaneland VerticalPanel. However, the dimensions of > theDecoratedTabPaneldo not change to the specified size. > How to fix it? > > 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.
Inherited modules and TabPanel
Hello all, I'm a GWT novice, using the Eclipse GWT plugin. I've got it working to the point where I have two separate projects (let's call them project 1 and project 2) both running fine. Both of these projects have their own .gwt.xml files, entry point classes and various servlets. Now I want to combine projects 1 and 2 into a single application so that the user can select on a TabPanel which of the two 'systems' he/she wants to use. I think that what I need to do is the following: 1. create a new third project ('project 3'), and in this project 3's .gwt.xml file, define projects 1 and 2 as inherited modules 2. copy the source files for projects 1 and 2 into the source folders for project 3 Presuming that steps 1 and 2 above are correct (***are they?***), I then need to: 3. link project 1 and project 2 to the TabPanel. My problem is that TabPanel.add() expects a Widget as its argument, and I don't see how I can cast a module as a Widget. Maybe I've got this all wrong and there's an easier way - any suggestions gratefully received. Thank 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.