Re: GWT and BV/javax.validation 1.1

2014-08-20 Thread Ted Gulesserian
I had to upgrade to JPA 2.1 today to be able to use this feature:

http://dreamand.me/java/java-jee7-jpa-stored-procedure-example/ 

It also required upgrading Hibernate.  In the process I ran into the same 
issue that Jörg ran into.

My solution was to hold back hibernate-validator to 4.2.0 as my version of 
hibernate (4.3.6) still works with it. 

My concern is that if GWT development has wound down, and Google is no 
longer bankrolling it, no one is going to take on this project, and I am 
sure there are other projects that use BV 1.1 that GWT developers will be 
unable to use. 

If there is a straightforward and practical way of using a different 
version on the client side versus the server side, the GWT devs should at 
least explore that option. 

I use the built in Eclipse debugger extensively, both for client code as 
well as my server code, so the solution should definitely not break the 
eclipse IDE tools, because I think it's one of the best features of GWT 
development. 

Anyway, I just want to tell all the devs that I love this platform,  it has 
re-ignited my passion for making applications, keep up the amazing work.  

My two recent favorite features:

Editor Framework
Using the combinaion of Requestfactory with JPA. 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Insert a page break when printing a popup panel

2012-07-26 Thread Ted
Hello, I'd like to have a popup panel that prints.  I want to have a page 
break at a specific location when printing.  I am using GWT 2.4 with 
UiBinder.  Here are some specifics:

ui:uiBinder
  g:HTMLPanel
g:FlexTable...I am programmatically building the flex 
table.../g:FlexTable

!-- I want a page break here --
g:Label.../g:Label

  /g:HTMLPanel
...


I have tried adding a style to the label like this:

.pageBreak {
   page-break-before: always;
}
...
g:Label addStyleNames={style.pageBreak}.../g:Label



I've also tried something like this:

g:HTML addStyleNames={style.pageBreak}/
g:Label.../g:Label


even tried this...

g:HTML
  div style=page-break-before: always;/
/g:HTML
g:Label.../g:Label

But nothing seems to work.  Does anyone have a suggestion?

Thanks,
Ted

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



Printing with RootPanel vs RootLayoutPanel

2012-03-29 Thread Ted
Hello,

I have a GWT page created with UiBinder that I want to print.  The top 
level element is a g:ScrollPanel with g:VerticalPanel.  When I add the view 
to RootPanel I can print it just fine.  When I add to RootLayoutPanel and 
try to print, I only get a blank page.

Does anyone know why this might be the case?

Thanks.

Ted

-- 
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/-/D-wbVGhBv1QJ.
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: runtime UI

2010-12-29 Thread Ted Malaska
Hey Guys,

Here is the latest, I opened a night worth of the code to the open
comminity.  Here is the link.

http://code.google.com/p/gwt-binding-fly/

The code here is a GWT widget only example, even through the pattern works
fine for GXT also.  I haven't been working on it because I'm busy finishing
up an android game right now.

But my current prototype that I haven't published yet supports the
following.

1. Widget validation
2. Cross Widget valition
3. Dynamic conbo box that get there source from a list that the user creates
4. HTML print view
5. PDF print view
6. Client side and server side validation
7. CSV load




On Wed, Dec 29, 2010 at 10:30 AM, Chris Conroy con...@google.com wrote:

 Ted Malaska has a prototype project which may suit your needs. At this
 time, we're not looking to add something like this to GWT proper.

 See:
 https://groups.google.com/d/topic/google-web-toolkit-contributors/NFAXFQN_x-k/discussion

 On Wed, Dec 29, 2010 at 9:51 AM, Abdullah Shaikh 
 abdullah.shaik...@gmail.com wrote:

 Hi,

 What I want to do is have a xml file (not the ui binder xml file, as
 its compile time) which will define the UI, when the request comes, it
 will parse the xml file and create an object representation of the UI
 definition from the xml file and send the object back to the client,
 the client will then use the object to create the UI.

 I have done things till the stage it renders the UI but need to think
 how to do event handling, event bus, history etc.

 Is there any framework, which does these things and will help me in
 creating UI in runtime ?

 Any idea how to go about implementing this ?


 Thanks,
 Abdullah

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



hbm2ddl not working with POJO that implement IsSerializable

2010-10-05 Thread Ted Malaska
I've used GWT on about 10 projects now and it's been great.  This
project I tried doing things a little differently.  Using JPA
(Hibernate) and hbm2ddl.  Now I'm have a bunch of problems.

I think I solved all the problem except for hbm2ddl.  When I run it on
the POJOs I get a ClassNotFoundException.  If I remove IsSerializable
then hbm2ddl finds the POJOs.

Does anyone know a fix for this or do I have to drop hbm2ddl?

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-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: hbm2ddl not working with POJO that implement IsSerializable

2010-10-05 Thread Ted Malaska
I figured it out.

I'm using Maven and my GWT dependency looked like this

dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version${gwt.version}/version
scoperuntime/scope
/dependency

The org.codehaus.mojo.hibernate3-maven-plugin requires the dependency
scope to be in test.  So I removed the runtime scope and it worked.



On Oct 5, 10:14 pm, Ted Malaska ted.mala...@gmail.com wrote:
 I've used GWT on about 10 projects now and it's been great.  This
 project I tried doing things a little differently.  Using JPA
 (Hibernate) and hbm2ddl.  Now I'm have a bunch of problems.

 I think I solved all the problem except for hbm2ddl.  When I run it on
 the POJOs I get a ClassNotFoundException.  If I remove IsSerializable
 then hbm2ddl finds the POJOs.

 Does anyone know a fix for this or do I have to drop hbm2ddl?

 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-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 client as Maven module in multi-module project

2010-09-08 Thread Ted Malaska
I have made a step by step walk through of how to make a multi maven
module project using gwt and gxt.

I use the event bus pattern to support two war modules.  One for off
line and one for on line.

I implement my custom widget in sub maven modules so they can be re
used through out my company.

http://travelingjavadeveloper.blogspot.com/2010/09/how-to-build-multi-maven-module-gwtgxt.html

Let me know if it is helpful

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



How to Guide: Multi Maven Module GWT/GXT Project using event-bus pattern

2010-09-08 Thread Ted Malaska
I'm trying to create a step by step guide on how to create a multi
module Maven project in Eclipse that supports the following.

1. Be able to use Maven and GWT together
2. Have custom high level widgets live in their own maven sub-module.
3. Have the widget be unaware of the back end.  That means they do no
RPC, REST, HTTP.  However they can communicate through an event-bus
pattern. Then listeners to the event bus can ether talk to the server
or mock objects
4. Be able to run and debug my widget modules in ether in online mode
(connected to a server) or offline mode (Browser only).
5. Use EXT widgets

Here is my first draft:
http://travelingjavadeveloper.blogspot.com/2010/09/how-to-build-multi-maven-module-gwtgxt.html

Please let me know what you think

-- 
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: More woes with IE + Client(Image) Bundles

2010-08-11 Thread Ted
I have had success with IE and using the AbstractImagePrototype that
is now deprecated.  It is somewhat distasteful to use deprecated API
this way, but I figure IE itself is deprecated and I just hope they
keep that in there until IE is but a painful memory.

On Aug 11, 8:00 am, Sean slough...@gmail.com wrote:
 I have a widget that dynamically makes medals. What it does is takes
 the place they are in (1st,2nd...) and gets the right color background
 medal from a ClientBundle, then using the same Client Bundle it
 creates the number from the ClientBundle, which has the #'s 0-9 in it.
 If it's 10, it grabs 1 and 0, and scales them accordingly. It takes
 all these images and arranges them on an Absolute Panel to center
 everything and it works amazingly well.

 Except of course on IE. When on IE it looks like it takes the whole
 ImageBundle and smooshes it together with all transparency lost of
 course. I am SO sick of IE. I like to do lots of things with Images
 and Bundles and I find IE messes it up almost every-time.

 Is there anyway around this or should I check for the user using IE
 and warn them their browser sucks and my site won't always render
 correctly using it?

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



2.1.0M2 observations with IE7 and IE8

2010-08-02 Thread Ted
Hello,

I've done a rough comparison of performance of the new data
presentation widgets for different browsers.  I focus on CellTable
because that is our primary need.  The test renders a 20 column table
with 100 rows.  The timings are purely for rendering - no RPC, etc.
Here are my observations.

For safari, firefox  chrome cell table is much faster than FlexTable
and is slightly faster than our home grown table builder.  However for
ie7 and ie8 cell table is even slower than FlexTable.  This is a big
surprise.

I am curious if this is due to milestone status, not yet optimized for
IE browsers?  Unfortunately we are stuck with IE for our application
(internal users).  I am seeking reassurance that this can be addressed
by optimizing the new Cell rendering stuff.

I am happy to share results of my evaluation to have other ppl
reproduce findings, etc.

Thanks,
Ted

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



multiple icons using IconCellDecorator in IE7

2010-07-28 Thread Ted
Hello,

I would like to decorate a text cell with two or more icons.  I
attempt to 'chain' the decorators together with the last decorator
acting on the text cell, the second decorator acting on the first icon
decorator, etc.  This works fine in Safari, but in IE7 it repeats the
next to last icon in the chain multiple times.

Is this the recommended way to put multiple Icons in a Cell?  FWIW I
can override render on the TextColumn and build up the images manually
but this fails to work in IE.  It doesn't 'sprite' the images
correctly and just displays the entire sprite bundle for each icon.

Is there a better way that works with all browsers and sprite bundles
to pack multiple icons inside a single cell?

Thanks,
Ted

-- 
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 how to customize style for TextColumn

2010-07-27 Thread Ted
Hi Christian,

Thanks for the link.  The Column object doesn't appear to have a way
to set the style.  There are no setStyleName or addStyleNames methods
to call as in UIObject.  I am hoping there is an alternative way but I
cannot discover it yet.

Thanks,
Ted

On Jul 27, 9:18 am, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr...

 As for customization, use the same technique as for any other widget.

 Cheers,

 On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh 
 deepaksingh...@gmail.comwrote:





  Hello,

  I have to use this data presentation widget for my project. Can anybody
  help me how to use it or any sample code for that would be very helpful.

  Regards
  Deepak

  On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:

  Hello,

  Does anyone have a suggestion for the preferred way to customize a
  style for a given cell using a TextColumn with the new Data
  Presentation Widgets framework in GWT 2.1?

  Thanks,
  Ted

  --
  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.comgoogle-web-toolkit%2Bunsubs
   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.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Christian Goudreau

-- 
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 how to customize style for TextColumn

2010-07-27 Thread Ted
Hi Christian,

When I override the render object of Column I can nest a span inside
the td for that cell.  This way I can control the style of the
span.  However if there is a way to control the style of the td I
would be interested in what you can discover.

Thanks,
Ted

On Jul 27, 1:41 pm, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 You're right, but if a row can have his style changed, I bet a Cell can too.

 Give me 10 minutes, I'll do a fast check, I'm also right into this stuff
 right now.

 Cheers,





 On Tue, Jul 27, 2010 at 2:37 PM, Ted ted.slus...@gmail.com wrote:
  Hi Christian,

  Thanks for the link.  The Column object doesn't appear to have a way
  to set the style.  There are no setStyleName or addStyleNames methods
  to call as in UIObject.  I am hoping there is an alternative way but I
  cannot discover it yet.

  Thanks,
  Ted

  On Jul 27, 9:18 am, Christian Goudreau goudreau.christ...@gmail.com
  wrote:
  http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr...

   As for customization, use the same technique as for any other widget.

   Cheers,

   On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh deepaksingh...@gmail.com
  wrote:

Hello,

I have to use this data presentation widget for my project. Can anybody
help me how to use it or any sample code for that would be very
  helpful.

Regards
Deepak

On Tue, Jul 27, 2010 at 2:07 AM, Ted ted.slus...@gmail.com wrote:

Hello,

Does anyone have a suggestion for the preferred way to customize a
style for a given cell using a TextColumn with the new Data
Presentation Widgets framework in GWT 2.1?

Thanks,
Ted

--
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.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
  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.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
  cr...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

   --
   Christian Goudreau

  --
  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.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Christian Goudreau

-- 
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 how to customize style for TextColumn

2010-07-26 Thread Ted
Hello,

Does anyone have a suggestion for the preferred way to customize a
style for a given cell using a TextColumn with the new Data
Presentation Widgets framework in GWT 2.1?

Thanks,
Ted

-- 
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: Events from SelectionCell in CellTable - GWT 2.1 M1

2010-07-25 Thread Ted
Can you please provide an example of how to do cell selection using
setFieldUpdater?

Thanks,
Ted

On Jun 28, 10:42 am, saklig d3andr...@gmail.com wrote:
 The setFieldUpdater proved to be a better solution, thanks :-)
 For some reason InternetExplorer does not send change events when
 changing the value of the selectionCell.

 Is this a known bug in GWT 2.1 M1 ?

 On Jun 27, 2:59 pm, Paul Stockley pstockl...@gmail.com wrote:



  use the setFieldUpdater(fieldUpdater) on the Column class

  On Jun 27, 6:28 am, saklig d3andr...@gmail.com wrote:

   Which class has the addValueUpdateHandler ?

   On Jun 25, 4:08 pm, Paul Stockley pstockl...@gmail.com wrote:

Can't you just add a ValueUpdater handler to see when the selection
changes?

On Jun 25, 4:27 am, saklig d3andr...@gmail.com wrote:

 After a couple of tries Ive managed to write something that gets the
 job done.

 My example:

 ListString opts = new ArrayListString();
 opts.add(Enabled);
 opts.add(Disabled);

 table.addColumn(new IdentityColumnMyData(new
 ActiveSelectionCell(opts)), Active);

 private class ActiveSelectionCell implements CellMyData{

                 private HashMapString, Integer indexForOption = new
 HashMapString, Integer();
                 private final ListString options;

                   public ActiveSelectionCell(ListString options) {
                     this.options = new ArrayListString(options);
                     int index = 0;
                     for (String option : options) {
                       indexForOption.put(option, index++);
                     }
                   }

                 @Override
                 public boolean consumesEvents() {
                         return false;
                 }

                 @Override
                 public boolean dependsOnSelection() {
                         return false;
                 }

                   private int getSelectedIndex(String value) {
                     Integer index = indexForOption.get(value);
                     if (index == null) {
                       return -1;
                     }
                     return index.intValue();
                   }

                 @Override
                 public void setValue(Element parent, MyData value, 
 Object viewData)
 {
                         StringBuilder sb = new StringBuilder();
                     render(value, viewData, sb);
                     parent.setInnerHTML(sb.toString());

                 }

                 @Override
                 public Object onBrowserEvent(Element parent, MyData 
 value,
                                 Object viewData, NativeEvent event,
                                 ValueUpdaterMyData valueUpdater) {
                         String type = event.getType();
                     if (change.equals(type)) {
                       SelectElement select = 
 parent.getFirstChild().cast();

 if( 
 options.get(select.getSelectedIndex()).equalsIgnoreCase(Enabled))
                           value.setActive(1);
                       else
                           value.setActive(0);
                       System.out.println(value.getName() +  -  +
 options.get(select.getSelectedIndex()));

 //                    valueUpdater.update(value);
                     }
                     return viewData;
                 }

                 @Override
                 public void render(MyData value, Object viewData, 
 StringBuilder sb)
 {
                         int selectedIndex = 0;
                         if(value.getActive().equalsIgnoreCase(1)){
                                 selectedIndex = 
 getSelectedIndex(Enabled);
                         }else{
                                 selectedIndex = 
 getSelectedIndex(Disabled);
                         }

                     sb.append(select);
                     int index = 0;
                     for (String option : options) {
                       if (index++ == selectedIndex) {
                         sb.append(option selected='selected');
                       } else {
                         sb.append(option);
                       }
                       sb.append(option);
                       sb.append(/option);
                     }
                     sb.append(/select);

                 }

         }

 If you think this was the wrong/not the best way to get an event from
 a cell, pleas give me a comment.

 On Jun 22, 1:25 pm, saklig d3andr...@gmail.com wrote:

  Hi,

  How does one handle events from cells in aCellTable( specifically a
  SelectionCell ) ?

-- 
You received

Re: chrome/safari error

2009-08-20 Thread ted

Check out
http://www.digitalsanctuary.com/tech-blog/java/firefox-xhtml-jboss-420-jsf-and-google-ads.html

We were getting the same error and adding
f:view contentType=text/html/
to the xhtml pages fixed the problem in our project

Cheers, Ted

--~--~-~--~~~---~--~~
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 hosted in JSF page doesn't work in Google Chrome

2009-08-20 Thread ted

Check out
http://www.digitalsanctuary.com/tech-blog/java/firefox-xhtml-jboss-420-jsf-and-google-ads.html

Adding
f:view contentType=text/html/
to the xhtml pages fixed the problem in our project

Cheers, Ted

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



I am not qualified and trying to edit someones code. Please help putting an external href into a menu

2009-07-11 Thread Ted

Below is the code I am editing. I am trying to change the menu items
so that I can link to a outside website. For example about would link
to http://blog.google.com/about.html

public class FooterMenu extends AbstractMenu {
public FooterMenu() {

HorizontalPanel menu = new HorizontalPanel();

Hyperlink aboutItem = createLink(About, about);
Hyperlink contactItem = createLink(Contact, contact);
Hyperlink faqItem = createLink(FAQ's, faq);
Hyperlink privacyItem = createLink(Privacy Policy, privacy);
Hyperlink tosItem = createLink(Terms of Service, tos);

menu.add(aboutItem);
menu.add(sep());
menu.add(contactItem);
menu.add(sep());
menu.add(faqItem);
menu.add(sep());
menu.add(privacyItem);
menu.add(sep());
menu.add(tosItem);
initWidget(menu);
}

@Override
protected String getMenuStyleName() {
return FooterMenu;
}
}



I started here,
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/792521daa6eec1e1/5b346e9d0db31ee0?lnk=gstq=creating+an+external+links+in+menu#5b346e9d0db31ee0

But I can't figure out where to put the code new html as I get a
compile error each time.

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