Re: Strippable check system in GWT 2.8?

2017-02-04 Thread 'Alex opn' via GWT Users
Thanks for the explanation Thomas. I think it should be safe to disable 
them then in my case. :-)

On Friday, 3 February 2017 17:44:17 UTC+1, Thomas Broyer wrote:
>
>
>
> On Friday, February 3, 2017 at 4:55:06 PM UTC+1, Alex opn wrote:
>>
>> What is the risk of disabling these checks?
>>
>
> If your code depends on ClassCastException, IndexOutOfBoundsException, 
> etc. to be thrown, then it'll no longer work as intended. The checks make 
> sure the contracts of the emulated Java API is respected; disabling the 
> checks means the contracts are no longer guaranteed.
>
> For example:
>
> try {
>   o = myList.get(2);
> } catch (IndexOutOfBoundsException ioobe) {
>   // handle error; e.g. show error to the user, or log it to the console 
> or up to the server
> }
>
> This code would break with checks disabled. 'o' would simply be 'null' 
> instead of the exception being thrown.
>
> The "correct" way to program this is:
>
> if (myList.size() > 2) {
>   o = myList.get(2);
> } else {
>   // handle error
> }
>
> And similarly use "o instanceof MyObj" instead of "try { (MyObj) o; } 
> catch (ClassClassException cce) { … }".
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Strippable check system in GWT 2.8?

2017-02-03 Thread 'Alex opn' via GWT Users
What is the risk of disabling these checks?

On Friday, 3 February 2017 14:33:34 UTC+1, Bruno Salmon wrote:
>
> Thank you Thomas,  value="MINIMAL" /> in my gwt.xml file works :-)
>
> On Friday, 3 February 2017 13:47:57 UTC+1, Thomas Broyer wrote:
>>
>> This is 
>> https://github.com/gwtproject/gwt/blob/2.8.0/user/super/com/google/gwt/emul/javaemul/internal/InternalPreconditions.java
>> The javadoc and first few lines of the class tells it all (note that 
>> System.getProperty is the emulated one here, so the properties are from 
>> your gwt.xml files, not the JVM System properties when calling the GWT 
>> compiler)
>> FWIW, the properties (and their default value) are defined in 
>> https://github.com/gwtproject/gwt/blob/2.8.0/user/super/com/google/gwt/emul/Preconditions.gwt.xml
>>
>> On Friday, February 3, 2017 at 12:47:00 PM UTC+1, Bruno Salmon wrote:
>>>
>>> hi,
>>>
>>> I heard that the GWT 2.8 check system is strippable (source: 
>>> https://www.youtube.com/watch?v=P4VhPck5s_g&t=1337s).
>>>
>>> By defaut the check level would be normal, which means that the 
>>> generated js code will do all checks (such as collections bounds checks, 
>>> API usage checks, java type checks, ...). But if we are confident that the 
>>> application successfully passes all checks, it seems possible to reduce 
>>> that check level from normal to optimized or minimal and get a smaller and 
>>> faster compiled production code.
>>>
>>> I haven't found any documentation about this feature, not sure it is 
>>> actually documented.
>>>
>>> Does anybody know how to tell the GWT compiler to change that check 
>>> level?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: NEW world for me

2016-02-10 Thread Alex opn


On Wednesday, 10 February 2016 12:09:12 UTC+1, koffi jean françois koffi 
wrote:
>
> I am new GWT developper and I have to make an enterprise application with 
> GWT so I hope that you will be prompt to help me ... Thks 
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT website moved to gwtproject.org

2013-07-31 Thread Alex opn
I thought the same when I saw Scala's new page for the first time yesterday 
;-)

Am Dienstag, 30. Juli 2013 17:59:24 UTC+2 schrieb RyanZA:
>
> Something like this would be great:
>  http://scala-lang.org/
>
>
> On Saturday, July 27, 2013 8:03:07 PM UTC+2, salk31 wrote:
>>
>> Anyone like this one?
>>
>> http://html5up.net//uploads/demos/minimaxing/
>>
>> Might need to replace the jquery code ;)
>>
>>
>>

-- 
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/groups/opt_out.




Re: Handling Violations controlled by groups or Violations not found by default validation

2013-05-21 Thread Alex opn
Thanks for your answer!

Well...propably I'm abusing bean validation (?), but in my case that 
doesn't help (actually I'm already doing it like this with different 
groups).

I'll try to explain my problem:

Basically I've got two validation groups which both should be run on the 
server-side: Client and Server 

Client: These validators should be run when an object enters the server 
from the client (in the ServiceLayerDecorator)
Server: These validators should be run before persist / update etc happens 
(in my DAOs)

The reason why I separated it like this is that there are some class level 
constraints which may be violated when an object enters the server that 
should get corrected in the service method afterwards, but for safety be 
checked again before updating the database.

So far that works good and was pretty easy to implement:

ServiceLayerDecorator:

@Override
public  Set> validate(T domainObject) {
return validator.validate(domainObject, Client.class);
}

But ViolationExceptions occuring later are, as Michael already explained 
pretty well, reported as ServerFailures, not as ConstraintViolations -> 
non-resusable RequestContext, no error messages shown etc :-/

I already tried to copy/paste SimpleRequestProcessor & 
RequestFactoryServlet (into com.google... package structure) to change it 
to my needs. I have to admit though that I couldn't figure out how to catch 
all exceptions and not handle ConstraintViolationExceptions as server 
failures. I would already be happy with that although it feels a bit hacky 
:)! 

Am Dienstag, 21. Mai 2013 14:58:32 UTC+2 schrieb Jens:
>
> By default, GWT calls validator.validate(domain) in 
> ReflectiveServiceLayer.validate(), but you probably want 
>
> if(domain.getId() == null) {
>   return validator.validate(domain, CreateGroup.class);
> }
> return validator.validate(domain, Server/DefaultGroup.class);
>
> You can do this by providing a custom ServiceLayerDecorator to 
> RequestFactoryServlet and implement ServiceLayerDecorator.validate(T 
> domain) accordingly.
>
> -- J.
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Handling Violations controlled by groups or Violations not found by default validation

2013-05-21 Thread Alex opn
I just ran into the same issue. As there is no way to get or change the 
SimpleRequestProcessor im stuck now! Have you found out anything more, 
Michael Wiles?

Am Mittwoch, 27. März 2013 10:52:24 UTC+1 schrieb Michael Wiles:
>
> I'm using GWT 2.5.0 and Request Factory.
>
> I have configured a constraint to only apply on create (initial save) of 
> my object.
>
> This violation is not picked up by the default gwt request factory 
> violation check mechanism - which kind of makes sense I guess, because it's 
> in a group (I assume).
>
> But it is thrown when I actually call my method.
>
> So then what happens is that the violation exception is picked up as a 
> server failure and not as a violation exception.
>
> This is because in the 
> SimpleRequestProcessor
>  and 
> method void process(RequestMessage req, ResponseMessage resp). The check 
> violations is called before the method is invoked. This is fine, except 
> that because my violation is in a group and I've configured it via this 
> group to only apply on create the violation is not picked up. It is only 
> picked up when the actually method is called.
>
> And there is no check to see if the _method_ throws a violation exception 
> and then to deal with any violation exceptions actually thrown by my 
> method...
>
> Would it not be possible to add a try catch around my method being called 
> and dealing with these violations the same as the "normal" violation 
> exceptions?
>
> Or maybe somebody can tell me how to configure the gwt request processing 
> to handle these violation exceptions and send them to the client as 
> violation exceptions?
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT 2.5.1 now available

2013-03-12 Thread Alex opn
Just upgraded. Works, thanks! Please announce when the maven plugin gets 
updated, too!

Am Dienstag, 12. März 2013 02:11:16 UTC+1 schrieb Matthew Dempsky:
>
> Hi everyone,
>
> We're excited to announce the GWT 2.5.1 release!  There will be an 
> announcement soon on the GWT Blog , 
> and you can download it 
> here.
>  
>  This release has been uploaded to Maven Central with the version string of 
> "2.5.1".
>
> GWT 2.5.1 contains over 50 new bug fixes, many of which were contributed 
> by the community.  Thanks to everyone who reported issues and/or submitted 
> patches.
>
> -Matthew, on behalf of the GWT team
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: CellTable - how to change icon positon?

2013-02-19 Thread Alex opn
Have a look at the 
CwCustomDataGridfrom
 the showcase. You'll have to create a custom header builder 
extendingAbstractHeaderOrFooterBuilder. 
AbstractHeaderOrFooterBuilder offers a method "

setSortIconStartOfLine(boolean)"


Am Samstag, 16. Februar 2013 18:05:49 UTC+1 schrieb membersound:
>
> Hi,
>
> I have a custom CellTable which overrides most styles from the gwt 
> celltable. But how can I override the alignment of the sort icon?
> I could not find any css class in the gwt CellTable.css defining an 
> alignment for the sort icon. I just wan to display it right beneath the 
> header text (instead of left).
>
> Thanks
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: DataGrid vertical scrollbar overlaps the last column

2013-02-08 Thread Alex opn
It's caused by 
CustomScrollPanelwhich
 is used internally by DataGrid afaik. The documentation suggests: 
 
>
> If the scrollbars obscures the content, you can set the padding-top and 
> padding-bottom of the content to shift the content out from under the 
> scrollbars. 
>

Hope this helps a bit? 

Am Freitag, 8. Februar 2013 07:53:24 UTC+1 schrieb kedar vyawahare:
>
> Hi all,
> I am facing a DataGrid horizontal/Vetricle Scrollbar overlaps the last row
> issue. While displaying the data grid, It overlaps the last row as well as 
> column.
> Attached is the screen shot.
>
> This issue is not specific to IE8. You can reproduce it any browser.
> For vertical scroll bar, even if I add some padding  or make the last
> column wider , the issue is still persist.
>
> Please suggest workaround to sort out this.
>
> Thanks in advance.
>
> Kedar
>  
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Intellij for GWT app development. Is it worth it?

2013-01-17 Thread Alex opn
No offense, just made me smile: "works out of the bugs"! : )

Am Donnerstag, 17. Januar 2013 10:09:42 UTC+1 schrieb HamsterofDeath:
>
> i have made a lot of good experiences with that combo (intellij + gwt)
> it understand the native js parts, the asnc/sync interface stuff, 
> debugging/running works out of the bugs
>
>
> 2012/10/19 Jens >
>
>> I am thinking about moving away from Eclipse (IMHO 4.2 feels really 
>> sluggish) and switching to Intellij IDEA 12 when its released.
>>
>> Is anybody here that has used both Eclipse + GPE and Intellij + GWT 
>> Plugin and can share his/her experience? Having Jetbrains joining the GWT 
>> steering group I guess GWT support in Intellij will never fall behind.
>>
>> So is it worth its money? 
>>
>> I already tested Intellij 11 and it seems ok, but having some opinions 
>> from people that have used Eclipse and Intellij for a longer period of time 
>> would be nice. For example I quickly noticed this: 
>> http://stackoverflow.com/questions/9763801/why-intellij-idea-prefers-not-to-extend-composite-when-use-gwt-uibinderand
>>  wonder whats the rational behind it (UiBinder plays better with Widget 
>> instead of IsWidget) and if there are other differences that have the 
>> potential of being annoying.
>>
>> Thanks in advance
>>
>> -- J.
>>
>> -- 
>> 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/-/Uyg_HEyWDawJ.
>> To post to this group, send email to 
>> google-we...@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.
>>
>
>

-- 
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/-/NyFfG1y-kfYJ.
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: Force refresh of a CellTree?

2013-01-14 Thread Alex opn
Have you called yourDataProvider.refresh() after the value change?

Also the second answer from here could help: 
http://stackoverflow.com/questions/7239960/programatically-refresh-a-gwt-celltree

Am Sonntag, 13. Januar 2013 18:52:08 UTC+1 schrieb membersound:
>
> ListDataProvider.
>
>
>

-- 
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/-/WwKYEIHmYTIJ.
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: Force refresh of a CellTree?

2013-01-12 Thread Alex opn
ListDataProvider or AsyncDataProvider?

Am Freitag, 11. Januar 2013 17:09:11 UTC+1 schrieb membersound:
>
> Hi,
>
> I have a CellTree where onSelection I change a specific element.
> BUT if I reselect an element that was selected before, the changed value 
> is NOT updated in the view. Only if I fold and unfold the tree I see the 
> changed value visually.
>
> Question: how can I fore the tree to refresh itself without having to 
> fold/unfold 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/-/MRIw8hAiVoYJ.
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: DataGrid / CellTable: ValueChangeEvent from CheckBoxCell in a custom built header

2012-12-28 Thread Alex opn
CheckBoxColumn should be  CheckboxHeader! Sorry for the confusion!
Am Freitag, 28. Dezember 2012 14:18:00 UTC+1 schrieb Alex opn:
>
> Hello folks,
>
> I've encountered a problem with a 
> CheckBoxCell<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/CheckboxCell.html>in
>  a custom built header for a 
> DataGrid<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/DataGrid.html>
> .
>
> What I've done is adapting the 
> CwCustomDataGrid-example<http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#%21CwCustomDataGrid>to
>  my needs and adding a "Check all"-column in the header. I'm using the 
> CheckboxColumn implementation from the accepted answer from here: ->> 
> StackOverflow<http://stackoverflow.com/questions/8828271/handling-onclick-for-a-checkbox-in-a-celltable-header>
>  
>
> This is how I add the valueChangeHandler to the column in the constructor 
> of my CustomHeaderBuilder:
>
>> checkboxHeader.addValueChangeHandler(new ValueChangeHandler() { 
>> // TODO: Fix, does not work :-/
>> @Override
>> public void onValueChange(ValueChangeEvent 
>> event) {
>> final boolean selected = event.getValue();
>> ...
>> }
>> });
>>
>
> I've also tried several other places to register the handler before and 
> after the construction of the CustomHeaderBuilder without any effect.
>
> The strange thing is that the CheckBoxColumn works flawlessly when not 
> using a custom built header. But the problem is that the column is not 
> propagating any events when used in combination with an 
> AbstractHeaderOrFooterBuilder<http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/AbstractHeaderOrFooterBuilder.java?r=10597>
> .
>
> I debugged a lot already and can confirm that the handler gets registered 
> correctly and the column-instance used is definitely the same all the time.
>
> Anyone has an idea what could prevent events from Cells / Columns in 
> custom built headers / footers?
>
> Thanks
> Alex
>

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



DataGrid / CellTable: ValueChangeEvent from CheckBoxCell in a custom built header

2012-12-28 Thread Alex opn
Hello folks,

I've encountered a problem with a 
CheckBoxCellin
 a custom built header for a 
DataGrid
.

What I've done is adapting the 
CwCustomDataGrid-exampleto
 my needs and adding a "Check all"-column in the header. I'm using the 
CheckboxColumn implementation from the accepted answer from here: ->> 
StackOverflow
 

This is how I add the valueChangeHandler to the column in the constructor 
of my CustomHeaderBuilder:

> checkboxHeader.addValueChangeHandler(new ValueChangeHandler() { 
> // TODO: Fix, does not work :-/
> @Override
> public void onValueChange(ValueChangeEvent event) 
> {
> final boolean selected = event.getValue();
> ...
> }
> });
>

I've also tried several other places to register the handler before and 
after the construction of the CustomHeaderBuilder without any effect.

The strange thing is that the CheckBoxColumn works flawlessly when not 
using a custom built header. But the problem is that the column is not 
propagating any events when used in combination with an 
AbstractHeaderOrFooterBuilder
.

I debugged a lot already and can confirm that the handler gets registered 
correctly and the column-instance used is definitely the same all the time.

Anyone has an idea what could prevent events from Cells / Columns in custom 
built headers / footers?

Thanks
Alex

-- 
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/-/_mcGo8Y4dHUJ.
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: CellTable Filtering on client-side Based On ListBox Selection

2012-12-21 Thread Alex opn
What's the problem or did I just miss it between the code? :)

Am Donnerstag, 20. Dezember 2012 17:09:12 UTC+1 schrieb VB:
>
> I have a CellTable with 3 columns, and 1 ListBox that is supposed to 
> provide a drop down of possible filter values.
> i want to drive the filtering of the celltable rows, based from a 
> selection in a ListBox (that contains all possible values) of one of the 
> columns in the CellTable
> I am using a ListDataProvider and just want to filter on the client side.
>
> The ListBox is populated with String values...
> final ListBox supportCaseStatusListBox = new ListBox();
> supportCaseStatusListBox.addItem("In Progress", "1");
> supportCaseStatusListBox.addItem("Closed", "5");
> ..
>
> The statusColumn in CellTable is defined as:
> TextColumn statusColumn = new TextColumn() 
> {
> @Override
> public String getValue(SupportCaseDTO supportCase) {
> return supportCase.getStatus();
> }
> };
>
>
> --
>
> import java.util.ArrayList;
> import java.util.List;
>
> import org.dozer.DozerBeanMapper;
>
> import com.google.common.collect.Lists;
> import com.google.gwt.core.client.Scheduler;
> import com.google.gwt.core.client.Scheduler.ScheduledCommand;
> import com.google.gwt.dom.client.Style.Unit;
> import com.google.gwt.event.dom.client.ClickEvent;
> import com.google.gwt.event.dom.client.ClickHandler;
> import com.google.gwt.user.cellview.client.CellTable;
> import com.google.gwt.user.cellview.client.SimplePager;
> import com.google.gwt.user.cellview.client.TextColumn;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.HTML;
> import com.google.gwt.user.client.ui.HasHorizontalAlignment;
> import com.google.gwt.user.client.ui.HorizontalPanel;
> import com.google.gwt.user.client.ui.Label;
> import com.google.gwt.user.client.ui.ListBox;
> import com.google.gwt.user.client.ui.Panel;
> import com.google.gwt.user.client.ui.VerticalPanel;
> import com.google.gwt.view.client.ListDataProvider;
>
> public class ViewSupportCasesPanel extends BasePanel{
>
> static final String TITLE = "View Support Case";
>
> private SupportCaseDTO supportCaseDTO = new SupportCaseDTO();
> private final Button backButton = new RpButton("Back");
> private final HorizontalPanel buttonPanel = new HorizontalPanel();
> private final RegistrationBean registrationBean;
>
> public ViewSupportCasesPanel(AppControl appControl,
> RegistrationBean registrationBean) {
> super(appControl);
>
> this.registrationBean = registrationBean;
>
> VerticalPanel mainVerticalPanel = new VerticalPanel();
> initWidget(mainVerticalPanel);
>
> final HTML header = new HTML(Messages.SUPPORT_CASE_VIEW_CASES_HEADER);
> mainVerticalPanel.add(header);
>
> final Label supportCaseStatusListLabel = new Label("Support Case Status:");
>  final ListBox supportCaseStatusListBox = new ListBox();
> supportCaseStatusListBox.addItem("In Progress", "1");
> supportCaseStatusListBox.addItem("Closed", "5");
> supportCaseStatusListBox.addItem("Awaiting Customer Reply", "2");
> supportCaseStatusListBox.addItem("RMA", "3");
> supportCaseStatusListBox.addItem("Escalated to QA/Dev", "8");
> supportCaseStatusListBox.addItem("Software Upgrade Needed", "6");
> supportCaseStatusListBox.addItem("Product Replacement Needed", "7");
> supportCaseStatusListBox.addItem("Awaiting Customer Confirmation", "4");
>  // create CellTable
> final CellTable cellTable = new 
> CellTable();
>
> // Create case number column.
> TextColumn numberColumn = new TextColumn() 
> {
> @Override
> public String getValue(SupportCaseDTO supportCase) {
> return supportCase.getCaseNumber();
> }
> };
>
> // Make the name column sortable.
> numberColumn.setSortable(false);
>
> // Create subject column.
> TextColumn subjectColumn = new 
> TextColumn() {
> @Override
> public String getValue(SupportCaseDTO supportCase) {
> return supportCase.getTitle();
> }
> };
>
> // Create status column.
> TextColumn statusColumn = new TextColumn() 
> {
> @Override
> public String getValue(SupportCaseDTO supportCase) {
> return supportCase.getStatus();
> }
> };
> /* // Create product column.
> TextColumn productColumn = new 
> TextColumn() {
> @Override
> public String getValue(SupportCaseDTO supportCase) {
> return supportCase.getProduct();
> }
> };*/
>
> // Add the columns.
> cellTable.addColumn(numberColumn, "Case #");
> cellTable.addColumn(subjectColumn, "Subject");
> cellTable.addColumn(statusColumn, "Status");
> // cellTable.addColumn(productColumn, "Product");
>
> cellTable.setWidth("100%", true);
> cellTable.setColumnWidth(numberColumn, 10, Unit.PCT);
> cellTable.setColumnWidth(subjectColumn, 60, Unit.PCT);
> cellTable.setColumnWidth(statusColumn, 15, Unit.PCT);
> // cellTable.setColumnWidth(productColumn, 15, Unit.PCT);
>  // Create a data provider.
> ListDataProvider listDataProvider = new 
> ListDataProvider();
>
> // Connect the table to the data provider.
> listDataProvider.addDataDisplay(cellTable);
>
> DrSimplePager pager = new 

Re: Styling Cell individually in CellTable

2012-12-14 Thread Alex opn
I can't belive I haven't seen the setCellStyleNames method! : ) Thanks for 
pointing me in the right direction again!

Am Freitag, 14. Dezember 2012 14:36:55 UTC+1 schrieb Thomas Broyer:
>
> Have a look at 
> Column#getCellStyleNames<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/Column.html#getCellStyleNames%28com.google.gwt.cell.client.Cell.Context,+T%29>,
>  
> override it as needed in your column.
>
> On Thursday, December 13, 2012 9:17:25 PM UTC+1, Alex opn wrote:
>>
>> I know this is pretty old but I face the same issue for a few hours now. 
>> Anybody found a solution or has an idea? I even tried crazy GQuery stuff 
>> but there is no event which indicates that the table/grid has been 
>> redrawn/drawn and so my tricks all didn't work sadly!
>>
>> Am Mittwoch, 23. März 2011 18:49:06 UTC+1 schrieb Raphaël Brugier:
>>>
>>> Hi,
>>>
>>> I've got a use case with the CellTable where a cell should be rendered 
>>> with a different background color depending on the cell content. I've also 
>>> some TD with a rowspan > 1. 
>>> I've implemented an AbstractCell to set a style depending on the status 
>>> (short version) :
>>>
>>> public class StatusCell extends AbstractCell {
>>> @Override
>>> public void render(final Status status, final Object key, final 
>>> SafeHtmlBuilder sb) {
>>> String cellStyle;
>>> if (status == Status.OK) {
>>> cellStyle = "greenCell";
>>> } else {
>>> cellStyle = "redCell";
>>> }
>>> sb.appendHtmlConstant(">> "\">");
>>> sb.appendEscaped(status.toString());
>>> sb.appendHtmlConstant("");
>>> }
>>> }
>>>
>>> Here is the result : 
>>>
>>> 
>>> 
>>> 
>>> >> colspan="1">Product
>>> Status
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> car
>>> 
>>> 
>>> 
>>> OK
>>> 
>>> 
>>> 
>>> 
>>> 
>>> car
>>> 
>>> 
>>> 
>>> 
>>> car
>>> 
>>> 
>>> 
>>> KO
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> But the point is that when the cell is rendered by the CellTable view, 
>>> it encapsulates it inside an other DIV and then put it in the TD. Then my 
>>> Div where I have applied a style will not have the max height of the TD so 
>>> the background color will not be fully applied to the TD. (The green of the 
>>> OK cell does not extend to the TD)
>>>
>>>
>>> I got two ideas : 
>>> 1/ Use css to extends the DIV to be the height of the TD. But setting 
>>> height: 100% did not work.
>>> 2/ Find a way to set manually a style to the . But there is nothing 
>>> on the CellTable api to access the TD after they have been rendered.
>>>
>>> Is anybody have encountered this use case or have a solution please ?
>>>
>>> Thanks in advance.
>>>
>>>
>>>
>>>
>>>

-- 
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/-/iH5TW089cbMJ.
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: Styling Cell individually in CellTable

2012-12-13 Thread Alex opn
I know this is pretty old but I face the same issue for a few hours now. 
Anybody found a solution or has an idea? I even tried crazy GQuery stuff 
but there is no event which indicates that the table/grid has been 
redrawn/drawn and so my tricks all didn't work sadly!

Am Mittwoch, 23. März 2011 18:49:06 UTC+1 schrieb Raphaël Brugier:
>
> Hi,
>
> I've got a use case with the CellTable where a cell should be rendered 
> with a different background color depending on the cell content. I've also 
> some TD with a rowspan > 1. 
> I've implemented an AbstractCell to set a style depending on the status 
> (short version) :
>
> public class StatusCell extends AbstractCell {
> @Override
> public void render(final Status status, final Object key, final 
> SafeHtmlBuilder sb) {
> String cellStyle;
> if (status == Status.OK) {
> cellStyle = "greenCell";
> } else {
> cellStyle = "redCell";
> }
> sb.appendHtmlConstant("");
> sb.appendEscaped(status.toString());
> sb.appendHtmlConstant("");
> }
> }
>
> Here is the result : 
>
> 
> 
> 
> Product
> Status
> 
> 
> 
> 
> 
> 
> car
> 
> 
> 
> OK
> 
> 
> 
> 
> 
> car
> 
> 
> 
> 
> car
> 
> 
> 
> KO
> 
> 
> 
> 
> 
>
> But the point is that when the cell is rendered by the CellTable view, it 
> encapsulates it inside an other DIV and then put it in the TD. Then my Div 
> where I have applied a style will not have the max height of the TD so the 
> background color will not be fully applied to the TD. (The green of the OK 
> cell does not extend to the TD)
>
>
> I got two ideas : 
> 1/ Use css to extends the DIV to be the height of the TD. But setting 
> height: 100% did not work.
> 2/ Find a way to set manually a style to the . But there is nothing on 
> the CellTable api to access the TD after they have been rendered.
>
> Is anybody have encountered this use case or have a solution please ?
>
> Thanks in advance.
>
>
>
>
>

-- 
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/-/7bZq3cWmHTAJ.
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: DataGrid with a Frozen Column?

2012-12-06 Thread Alex opn
I haven't tried the TableBuilder yet but if it's possible it's by using it 
imo. Have you had a look into the 
CustomDataGrid-Example?
 
As I'm currently working a lot with DataGrids I can maybe tell you in some 
time : ) Right now I have only used Header- and FooterBuilder which can be 
fun, once you get how they work :-P

Am Mittwoch, 5. Dezember 2012 16:29:12 UTC+1 schrieb Joshua Godi:
>
> Is it possible to have a frozen column inside a DataGrid? I would like the 
> first column to always show no matter if the user scrolls right or not.
>
> 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/-/LBlwTmK_g_oJ.
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: RFC 1867-compatibe File Upload

2012-12-04 Thread Alex opn
 Looks good! How about making GWT Uploader available via maven? : )

Am Dienstag, 4. Dezember 2012 04:09:34 UTC+1 schrieb Shawn Quinn:
>
> The GWT Uploader project also provides callbacks for file upload progress 
> events, all on the client side:
>
> http://www.moxiegroup.com/moxieapps/gwt-uploader/
>
> Thanks,
>
>   -Shawn
>
> On Monday, January 25, 2010 11:26:05 AM UTC-5, CI-CUBE wrote:
>>
>> Hi @ all,
>>
>> I'm looking for an RFC 1867-compatible, pure (non-UI) file upload
>> functionality to be used at [Smart]GWT's client side. It would be
>> perfect if the code could provide a callback to render a progress bar.
>>
>> Is there something like that, maybe a JSNI wrapper to a JS library,
>> available?
>>
>> Thx in advance,
>>
>>Ekki
>>
>> * GWT Rocks! * SmartGWT Rocks Even Harder! * SmartGWT PRO 2.0,
>> GWT 2.0, Jetty 7.0.0, Eclipse 3.5.1, JRE 1.6.0_16 *
>> For Evaluation only: MySQL 5.1.41, Connector/J 5.1.10
>>
>> *** www.EasternGraphics.com/X-4GPL ***
>>
>>

-- 
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/-/OLkSX0bb1x0J.
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 2.5 RC2 EntityProxy Validation

2012-11-05 Thread Alex opn
I just tried to implement clientside validation like that and ran into the 
problem that I get "Incompatible return types" for @OneToMany etc. 
associations as one has to use the Proxy types as return types in the Proxy 
interfaces and the Entity interfaces in the Entity interfaces. Anyone has 
an idea how it could be possible to get around that? :) 

Am Samstag, 13. Oktober 2012 05:29:10 UTC+2 schrieb Daniel Mauricio Patino 
León:
>
> Hello there.
>
> I have a question of wich is the best option to validate my domain objects 
> on the client side with RequestFactory.
>
> It's posible to validate a Proxy with the new Validation of 2.5 RC2 ?
>
> If i do a validation of my proxy don't get any constraints violations.
>
> What i did to get a work arround of this was move the anoations to my 
> proxy:
>
> @ProxyFor(value=Employee.class, locator=EntityLocator.class)
> public interface EmployeeProxy extends EntityProxy {
>  @NotNull(message="Cannot be empty.")
> @Size(min = 4, message = "Name must be at least 4 characters long.")
> public String getFirstName();
> /* ..   */
> }
>
> Then i implemented that interface on my domain object.
>
>
> @Entity
> public class Employee extends EntityBase implements EmployeeProxy {
>   @Column(nullable = false) 
>   private String firstName;
>   @Override
> public String getFirstName() {
> return firstName;
> }
>/* ..   */
>@Override
> public EntityProxyId stableId() {
> return null;
> }
> }
>
>
> Now i get validation on the client side with:
>
> EmployeeRequest request = requestFactory.employeeRequest();
> EmployeeProxy employeeProxy = request.create(EmployeeProxy.class);
> request.addNewEmployee(employeeProxy);
>  driver.edit(employeeProxy, request);
> Set> violations = 
> validator.validate(employeeProxy);
> System.out.println(violations);
>
>
> and also on the server side when i click on save button with this:
>
>
> driver.flush().fire(new Receiver() {
>  @Override
> public void onSuccess(Void response) {
> Window.alert("Succeed");
> }
>  @Override
> public void onConstraintViolation(Set> violations) {
> //ConstraintViolation violation = violations.iterator().next();
>  //Window.alert(violation.getMessage() + " " 
> +violation.getPropertyPath().toString());
> for(ConstraintViolation violation: violations){
> if(violation.getPropertyPath().toString().equals("age")){
> ageError.setText(violation.getMessage());
> }else if(violation.getPropertyPath().toString().equals("firstName")){
> firstNameError.setText(violation.getMessage());
> }else if(violation.getPropertyPath().toString().equals("lastName")){
> lastNameError.setText(violation.getMessage());
> }
> }
> // ... others
> }
> });
>
>
> I this correct?
>
> This can cause problems ?
>
>
> thank you.
>

-- 
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/-/rqL48dqNCtIJ.
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: RequestFactory: possible to load the whole object graph

2012-10-31 Thread Alex opn
Never thought about that : )

Btw: Here is the open issue about the possibility to load the whole object 
graph with RequestFactory: id 
7082<http://code.google.com/p/google-web-toolkit/issues/detail?id=7082>

Am Dienstag, 30. Oktober 2012 21:58:45 UTC+1 schrieb Richard:
>
> Alternatively, just fetch all objects in a flat list, have each object 
> hold their parent id, and build up the tree on the client end. A little bit 
> of work but it'll be one fetch.
>
> On Tuesday, October 30, 2012 5:30:48 PM UTC+2, Tiago wrote:
>>
>> Thank you for your reply.
>>
>> I'm actually displaying it in a Tree widget, not on a HasData. I guess 
>> I'll load it dynamically while the user clicks through the nodes. Or load 
>> it all at once in a series of recursive requests, don't know yet.
>>
>> On Tuesday, October 30, 2012 4:11:57 PM UTC+1, Alex opn wrote:
>>>
>>> Is there a way to load the entire tree with a single request in Request 
>>>> Factory?
>>>>
>>>
>>> No, there is not : / Although it would be nice and there was already an 
>>> open issue for it. (
>>> http://code.google.com/p/google-web-toolkit/issues/detail?id=6697)
>>>  
>>> What you can do is use an async data provider if you show your tree 
>>> structure through a celltree or a cellbrowser. But that introduces other 
>>> problems. It's not that easy to refresh the data or traverse the tree to 
>>> open all nodes or similar things. I'd really like to provide an example for 
>>> an async data provider but don't have the time now.
>>>
>>> HTH
>>> opn
>>>
>>> Am Dienstag, 30. Oktober 2012 13:13:24 UTC+1 schrieb Tiago:
>>>>
>>>> Hello all,
>>>>
>>>> I found this topic through Google. I have a similar problem.
>>>>
>>>> I have a tree structure, with an arbitrary (dynamic) number of levels. 
>>>> Ex, an entity A which has a "children" relation which is a Set.
>>>> Is there a way to load the entire tree with a single request in Request 
>>>> Factory?
>>>>
>>>> I can't use the solution proposed in this discussion 
>>>> (with("child.grandchild...")) because I don't know in advance how many 
>>>> levels the tree will have. All I know is that it's a tree (no cycles) and 
>>>> that I may assume it's small enough to be downloaded in a HTTP request and 
>>>> stored locally on the client, in memory.
>>>>
>>>> Thank you!
>>>>
>>>

-- 
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/-/MtDzVRuCwLAJ.
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: RequestFactory: possible to load the whole object graph

2012-10-30 Thread Alex opn

>
> Is there a way to load the entire tree with a single request in Request 
> Factory?
>

No, there is not : / Although it would be nice and there was already an 
open issue for it. (
http://code.google.com/p/google-web-toolkit/issues/detail?id=6697)
 
What you can do is use an async data provider if you show your tree 
structure through a celltree or a cellbrowser. But that introduces other 
problems. It's not that easy to refresh the data or traverse the tree to 
open all nodes or similar things. I'd really like to provide an example for 
an async data provider but don't have the time now.

HTH
opn

Am Dienstag, 30. Oktober 2012 13:13:24 UTC+1 schrieb Tiago:
>
> Hello all,
>
> I found this topic through Google. I have a similar problem.
>
> I have a tree structure, with an arbitrary (dynamic) number of levels. Ex, 
> an entity A which has a "children" relation which is a Set.
> Is there a way to load the entire tree with a single request in Request 
> Factory?
>
> I can't use the solution proposed in this discussion 
> (with("child.grandchild...")) because I don't know in advance how many 
> levels the tree will have. All I know is that it's a tree (no cycles) and 
> that I may assume it's small enough to be downloaded in a HTTP request and 
> stored locally on the client, in memory.
>
> Thank you!
>

-- 
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/-/UdmG9XRHEJoJ.
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 Bean Validation doubts

2012-10-23 Thread Alex opn
*Bump*

I'd be interested in answers, too :)

Am Donnerstag, 18. Oktober 2012 17:46:46 UTC+2 schrieb vehdra music:
>
> Hi.
>
> I am trying to use GWT Bean Validation but I can't find in the docs wich 
> ones are the supported annotations in client side and server side. For 
> example I've tried to use @Email and it seems doesn't work.
>
> So I would like to know if there some list of supported annotations.
>
> On the other side I can't figure how can I throw 
> custom ConstraintViolationException(s) in my ServiceImpl. 
>
> For example I can't have 2 users with the same email. So, in my 
> UserServiceImpl.create() method I would like to throw a 
> ConstraintViolationException if someone tries to register with a email that 
> is already in the database. But I can't figure how to throw 
> a ConstraintViolationException in this case.
>

-- 
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/-/VuE3B9WsKKcJ.
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: How to update GWT CellTree data model preserving the node open states?

2012-10-08 Thread Alex opn
Sorry for asking so late, I didn't see your answer until now.

Do you use an async data provider? Because I had problems once with an 
async data provider and code like this:

// Expand previously expanded metaspaces

for (int i = 0; i < rootNode.getChildCount(); i++){

final String nodeName = (rootNode.getChildValue(i));

if (expandedNodes.contains(nodeName)){

rootNode.setChildOpen(i, true, false);

}

}


I see that you only seem to have one level under the root node. But what if 
I have more levels? The deeper nodes would not open up as the childs had to 
be fetched and the loop was too fast or something like that. I wish there 
was a clean way to refresh an async celltree somehow. Maybe I just have not 
discovered it yet : )


Am Donnerstag, 23. August 2012 23:38:15 UTC+2 schrieb alexkrishnan:
>
> My solution is not pretty, but it works.
>
> // Build a list of already expanded nodes
>
> Set expandedNodes = new HashSet();
>
> TreeNode rootNode = tree.getRootTreeNode();
>
> for (int i = 0; i < rootNode.getChildCount(); i++){
>
> if (rootNode.isChildOpen(i)){
>
> expandedNodes.add(rootNode.getChildValue(i));
>
> }
>
> }
>
>
> // Data update logic goes here
>
>
> // Expand previously expanded metaspaces
>
> for (int i = 0; i < rootNode.getChildCount(); i++){
>
> final String nodeName = (rootNode.getChildValue(i));
>
> if (expandedNodes.contains(nodeName)){
>
> rootNode.setChildOpen(i, true, false);
>
> }
>
> }
>
>
> On Thursday, August 23, 2012 1:38:54 AM UTC-7, Alex opn wrote:
>>
>> You ever found a solution?
>>
>> Am Donnerstag, 31. Mai 2012 15:57:31 UTC+2 schrieb bogyom:
>>>
>>> Hi, 
>>>
>>> I'd like to implement a hiarachical task viewer with CellTree control. 
>>> Task states are on the server side. The client shows the task tree and 
>>> updates it say every 2 second. Each task has a progress info 
>>> displayed. If a task finised it is removed from the tree. 
>>>
>>> The CellTree with async data procider works fine. My problem is how to 
>>> do the 2 sec update preserving the mode open states? Right now I call 
>>> updateRowData for the root this refreshes the tree but all node gets 
>>> closed. 
>>>
>>> Any suggestions? 
>>> Thanks 
>>> Gyorgy
>>
>>

-- 
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/-/lBSa__ALtn4J.
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: enable closure compiler

2012-09-04 Thread Alex opn
Yep. You got it : )

Am Dienstag, 28. August 2012 10:45:53 UTC+2 schrieb Henrik Aasted Sørensen:
>
> Alex, 
>
> Could it be this post? 
> https://plus.google.com/110412141990454266397/posts/ACHHv2KSBCD 
>
>  Regards 
>  Henrik 
>
> On Monday, August 27, 2012 11:56:44 PM UTC+2, Alex opn wrote: 
> > In my case the generated javascript is about 10% smaller now. Can't tell 
> exactly because I just made a quick test and the compileReport flag is 
> ignored with the closure compiler enabled. 
> > 
> >  I read on g+ some time ago that some people had even better results (I 
> think up to 20% and more code size reduction? Can't find the post with the 
> comments anymore). 
> > Am Montag, 27. August 2012 23:08:08 UTC+2 schrieb Deepak Singh:So what's 
> benefit of this closure compiler ? 
> > 
> > 
> > On Tue, Aug 28, 2012 at 1:46 AM, Alex opn  wrote: 
> > 
> > Sorry for double post : ) Forgot to say that using the snapshot indeed 
> solved the problem. 
> > 
> > Am Montag, 27. August 2012 22:14:46 UTC+2 schrieb Alex opn: 
> > 
> > 
> > You can get it here: 
> > 
> > http://code.google.com/p/gwtquery/wiki/Downloads?tm=2 
> > 
> > 
> > Direct Download: 
> > 
> > 
> https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwtquery/gwtquery/1.1.1-SNAPSHOT/gwtquery-1.1.1-20120724.210322-26.jar
>  
> > 
> > 
> > Maven users of the SNAPSHOT version you have to add these lines:   
>  
> >  
> >   sonatype-snapshots 
> > 
> >   http://oss.sonatype.org/content/repositories/snapshots 
> > 
> >   true 
> >   false 
> > 
> >  
> >
> > 
> >   
> > 
> >  com.googlecode.gwtquery 
> > 
> >  gwtquery 
> >  1.1.1-SNAPSHOT 
> > 
> >  provided 
> > 
> >   
> > 
> > Am Montag, 27. August 2012 20:52:45 UTC+2 schrieb Deepak Singh: 
> > Can i also have the new Gwtquery-snapshot to avoid this error ? 
> > 
> > 
> > On Mon, Aug 27, 2012 at 9:23 PM, Alex opn  wrote: 
> > 
> > Thanks for pointing this out! Google didn't come up with the issue. 
> Trying with the new GQuery-Snapshot now. 
> > 
> > 
> > 
> > Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer: 
> > 
> > 
> > On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote: 
> > 
> > After reading this I thought I'd give it a try, too and got the same 
> error: 
> > 
> > [ERROR] Unexpected internal compiler error 
> > [INFO]  java.lang.IllegalStateException: Expected non-empty 
> string. Reference node STRING 
> > 
> > 
> > 
> > Any hints? : ) 
> > 
> > 
> > 
> > See http://code.google.com/p/google-web-toolkit/issues/detail?id=7469 
> > 
> > 
> > The issue seems to only happen if you have a switch/case in JSNI with an 
> empty string as a 'case' value (see 
> http://code.google.com/p/gwtquery/source/detail?r=1035) 
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > 
> > 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/-/oDSZBHOG6_EJ. 
> > 
> > 
> > 
> > 
> >   
> > To post to this group, send email to google-we...@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. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > Deepak Singh 
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > 
> > You received this message because you are subscribed to the Google 
> Groups "gwtquery" group. 
> > 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msg/gwtquery/-/aNRPR-97yCcJ. 
> > 
> > 
> > 
> >   
> > To post to this group, send email to gwtq...@googlegroups.com. 
> > 
> > To unsubscribe from this group, send email to 
> gwtquery+u...@googlegroups.com. 
> > 
> > 
> > For more options, visit this group at 
> http://groups.google.com/group/gwtquery?hl=en. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > Deepak Singh 
>
>

-- 
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/-/bNG4nECZ31oJ.
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: enable closure compiler

2012-08-27 Thread Alex opn
Sorry for double post : ) Forgot to say that using the snapshot indeed 
solved the problem.

Am Montag, 27. August 2012 22:14:46 UTC+2 schrieb Alex opn:
>
> You can get it here:
>
> http://code.google.com/p/gwtquery/wiki/Downloads?tm=2
>
> Direct Download:
>
>
> https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwtquery/gwtquery/1.1.1-SNAPSHOT/gwtquery-1.1.1-20120724.210322-26.jar
>
> Maven users of the SNAPSHOT version you have to add these lines: 
>
>  
>
>  sonatype-snapshots
>  http://oss.sonatype.org/content/repositories/snapshots
>  true
>  false
>
>  
>
> 
>   
> com.googlecode.gwtquery
> gwtquery
> 1.1.1-SNAPSHOT
> provided
>   
> 
>
>
>
>
> Am Montag, 27. August 2012 20:52:45 UTC+2 schrieb Deepak Singh:
>>
>> Can i also have the new Gwtquery-snapshot to avoid this error ?
>>
>> On Mon, Aug 27, 2012 at 9:23 PM, Alex opn  wrote:
>>
>>> Thanks for pointing this out! Google didn't come up with the issue. 
>>> Trying with the new GQuery-Snapshot now.
>>>
>>> Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer:
>>>
>>>>
>>>>
>>>> On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote:
>>>>>
>>>>> After reading this I thought I'd give it a try, too and got the same 
>>>>> error:
>>>>>
>>>>> [ERROR] Unexpected internal compiler error
>>>>> [INFO]  java.lang.**IllegalStateException: Expected non-empty 
>>>>> string. Reference node STRING
>>>>>
>>>>> Any hints? : )
>>>>>
>>>>
>>>> See http://code.google.com/p/**google-web-toolkit/issues/**
>>>> detail?id=7469<http://code.google.com/p/google-web-toolkit/issues/detail?id=7469>
>>>> The issue seems to only happen if you have a switch/case in JSNI with 
>>>> an empty string as a 'case' value (see http://code.google.com/p/**
>>>> gwtquery/source/detail?r=1035<http://code.google.com/p/gwtquery/source/detail?r=1035>
>>>> )
>>>>
>>>  -- 
>>> 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/-/oDSZBHOG6_EJ.
>>>
>>> To post to this group, send email to google-we...@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.
>>>
>>
>>
>>
>> -- 
>> Deepak Singh
>>
>

-- 
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/-/aNRPR-97yCcJ.
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: enable closure compiler

2012-08-27 Thread Alex opn
You can get it here:

http://code.google.com/p/gwtquery/wiki/Downloads?tm=2

Direct Download:

https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwtquery/gwtquery/1.1.1-SNAPSHOT/gwtquery-1.1.1-20120724.210322-26.jar

Maven users of the SNAPSHOT version you have to add these lines: 
   
 
   
 sonatype-snapshots
 http://oss.sonatype.org/content/repositories/snapshots
 true
 false
   
 
   

  
com.googlecode.gwtquery
gwtquery
1.1.1-SNAPSHOT
provided
  

   
   


Am Montag, 27. August 2012 20:52:45 UTC+2 schrieb Deepak Singh:
>
> Can i also have the new Gwtquery-snapshot to avoid this error ?
>
> On Mon, Aug 27, 2012 at 9:23 PM, Alex opn  >wrote:
>
>> Thanks for pointing this out! Google didn't come up with the issue. 
>> Trying with the new GQuery-Snapshot now.
>>
>> Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer:
>>
>>>
>>>
>>> On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote:
>>>>
>>>> After reading this I thought I'd give it a try, too and got the same 
>>>> error:
>>>>
>>>> [ERROR] Unexpected internal compiler error
>>>> [INFO]  java.lang.**IllegalStateException: Expected non-empty 
>>>> string. Reference node STRING
>>>>
>>>> Any hints? : )
>>>>
>>>
>>> See http://code.google.com/p/**google-web-toolkit/issues/**
>>> detail?id=7469<http://code.google.com/p/google-web-toolkit/issues/detail?id=7469>
>>> The issue seems to only happen if you have a switch/case in JSNI with an 
>>> empty string as a 'case' value (see http://code.google.com/p/**
>>> gwtquery/source/detail?r=1035<http://code.google.com/p/gwtquery/source/detail?r=1035>
>>> )
>>>
>>  -- 
>> 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/-/oDSZBHOG6_EJ.
>>
>> To post to this group, send email to 
>> google-we...@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.
>>
>
>
>
> -- 
> Deepak Singh
>

-- 
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/-/8DPc0LGWsBoJ.
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: enable closure compiler

2012-08-27 Thread Alex opn
Thanks for pointing this out! Google didn't come up with the issue. Trying 
with the new GQuery-Snapshot now.

Am Montag, 27. August 2012 17:32:03 UTC+2 schrieb Thomas Broyer:
>
>
>
> On Monday, August 27, 2012 4:13:24 PM UTC+2, Alex opn wrote:
>>
>> After reading this I thought I'd give it a try, too and got the same 
>> error:
>>
>> [ERROR] Unexpected internal compiler error
>> [INFO]  java.lang.IllegalStateException: Expected non-empty 
>> string. Reference node STRING
>>
>> Any hints? : )
>>
>
> See http://code.google.com/p/google-web-toolkit/issues/detail?id=7469
> The issue seems to only happen if you have a switch/case in JSNI with an 
> empty string as a 'case' value (see 
> http://code.google.com/p/gwtquery/source/detail?r=1035)
>

-- 
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/-/oDSZBHOG6_EJ.
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: enable closure compiler

2012-08-27 Thread Alex opn
After reading this I thought I'd give it a try, too and got the same error:

[ERROR] Unexpected internal compiler error
[INFO]  java.lang.IllegalStateException: Expected non-empty string. 
Reference node STRING

Any hints? : )

Am Sonntag, 26. August 2012 23:59:09 UTC+2 schrieb Deepak Singh:
>
> enabling the closure compiler gives following exception (GWT2.5Rc1)
>
>  [ERROR] Unexpected internal compiler error
> java.lang.IllegalStateException: Expected non-empty string. Reference node 
> STRING 
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator$1.handleViolation(AstValidator.java:51)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.violation(AstValidator.java:763)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateNonEmptyString(AstValidator.java:328)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLiteralKeyName(AstValidator.java:739)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitStringKey(AstValidator.java:726)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitKey(AstValidator.java:683)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLit(AstValidator.java:670)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:252)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitStringKey(AstValidator.java:727)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLitKey(AstValidator.java:683)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateObjectLit(AstValidator.java:670)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:252)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateAssignmentExpression(AstValidator.java:603)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:219)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateVar(AstValidator.java:399)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateStatement(AstValidator.java:123)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateBlock(AstValidator.java:280)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateFunctionExpression(AstValidator.java:363)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:268)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateCall(AstValidator.java:377)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExpression(AstValidator.java:260)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateExprStmt(AstValidator.java:476)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateStatement(AstValidator.java:126)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateBlock(AstValidator.java:280)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateFunctionStatement(AstValidator.java:355)
> at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateStatement(AstValidator.java:102)
>  at 
> com.google.gwt.thirdparty.javascript.jscomp.AstValidator.validateScript(AstValidator.java:89)
> at 
> com.google.gwt.dev.js.ClosureJsAstTranslator.translate(ClosureJsAstTranslator.java:127)
>  at 
> com.google.gwt.dev.js.ClosureJsRunner.createClosureJsAst(ClosureJsRunner.java:273)
> at 
> com.google.gwt.dev.js.ClosureJsRunner.createClosureModule(ClosureJsRunner.java:284)
>  at 
> com.google.gwt.dev.js.ClosureJsRunner.createClosureModules(ClosureJsRunner.java:293)
> at com.google.gwt.dev.js.ClosureJsRunner.compile(ClosureJsRunner.java:185)
>  at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.generateJavaScriptCode(JavaToJavaScriptCompiler.java:1035)
> at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:462)
>  at 
> com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:134)
> at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:195)
>  at 
> com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:49)
> at 
> com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:73)
>  at java.lang.Thread.run(Thread.java:619)
>   [ERROR] Unrecoverable exception, shutting down
> com.google.gwt.core.ext.UnableToCompleteException: (see previous log 
> entries)
>  at 
> com.google.gwt.dev.javac.CompilationProblemReporter.logAndTranslateException(CompilationProblemReporter.java:96)
> at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:503)
>  at 
> com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:13

Re: How to update GWT CellTree data model preserving the node open states?

2012-08-23 Thread Alex opn
You ever found a solution?

Am Donnerstag, 31. Mai 2012 15:57:31 UTC+2 schrieb bogyom:
>
> Hi, 
>
> I'd like to implement a hiarachical task viewer with CellTree control. 
> Task states are on the server side. The client shows the task tree and 
> updates it say every 2 second. Each task has a progress info 
> displayed. If a task finised it is removed from the tree. 
>
> The CellTree with async data procider works fine. My problem is how to 
> do the 2 sec update preserving the mode open states? Right now I call 
> updateRowData for the root this refreshes the tree but all node gets 
> closed. 
>
> Any suggestions? 
> Thanks 
> Gyorgy

-- 
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/-/ZzPhomnvhlQJ.
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: ValueListBox Editor decorator

2012-08-22 Thread Alex opn
This is my approach:

https://gist.github.com/3425954

As you can see its basically a copy of the ValueBox decorator but with <
TakesValueEditor> as generic type (Had no time to clean it up yet so 
don't wonder about the wrong JavaDocs). Don't know if it's a good approach 
but it works for me so far.

HTH

Am Mittwoch, 22. August 2012 14:16:42 UTC+2 schrieb Steve:
>
> Hi
>
> I'm trying to figure out how to wrap a ValueListBox with a decorator for 
> my editors. As ValueListBox is not a ValueBox then the standard 
> ValueBoxEditorDecorator doesn't work. Has anyone managed to come up with a 
> way of doing this?
>
> Thanks
>
> Steve
>
>

-- 
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/-/W6zzgrcL6k8J.
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: Editor Framework and Multi Select Listbox

2012-07-20 Thread Alex opn
Thanks a lot again, works good and was pretty easy to implement! : ) I 
decided to go for a CellList with a MultiSelectionModel by the way.

Am Donnerstag, 19. Juli 2012 18:22:03 UTC+2 schrieb Thomas Broyer:
>
> It depends on the widget you intend to use for display.
> Given that ListBox has no notion of "value" other than a bare String, I'd 
> rather go with CellList or CellTable (but if Strings are OK, then just use 
> a ListBox).
> The easiest would then be to use a LeafValueEditor> wrapping 
> the SelectionModel; similar actually to the ValuePicker.
> We've actually implemented just that a few days ago in a proto.
>
> On Thursday, July 19, 2012 3:16:40 PM UTC+2, Alex opn wrote:
>>
>> Hello all,
>>
>> I tried to implement a "MultiSelectValueListBox" based on the 
>> ValueListBox<http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/ValueListBox.html>but
>>  I did not come far. Not even worth posting my messy code here :)
>>
>> I hope anyone has done this already and can help me out on how to start 
>> or give some ideas how to approach this. I quickly ran out of ideas.
>>
>> I am wondering why this is not shipped with the Editor Framework anyway 
>> and why no one seems to need this functionality? Googled a bit and only 
>> found one question on Stackoverflow regarding this. [1]
>>
>> [1] GWT ValueListBox: can it support more than a single 
>> selection?<http://stackoverflow.com/questions/5108192/gwt-valuelistbox-can-it-support-more-than-a-single-selection>
>>
>> Regards
>> Alex
>>
>

-- 
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/-/X-VQF4OoyxYJ.
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.



Editor Framework and Multi Select Listbox

2012-07-19 Thread Alex opn
Hello all,

I tried to implement a "MultiSelectValueListBox" based on the 
ValueListBoxbut
 I did not come far. Not even worth posting my messy code here :)

I hope anyone has done this already and can help me out on how to start or 
give some ideas how to approach this. I quickly ran out of ideas.

I am wondering why this is not shipped with the Editor Framework anyway and 
why no one seems to need this functionality? Googled a bit and only found 
one question on Stackoverflow regarding this. [1]

[1] GWT ValueListBox: can it support more than a single 
selection?

Regards
Alex

-- 
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/-/-GDNE2t5QCMJ.
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: RequestFactory proxies stuck in RequestContext edit context

2012-06-20 Thread Alex opn
Alright, thanks for the update on this! I think then I'll have to live with 
that one for the moment, because I don't feel like I could fix this myself 
somehow.

Am Mittwoch, 20. Juni 2012 18:05:46 UTC+2 schrieb Thomas Broyer:
>
>
>
> On Wednesday, June 20, 2012 5:54:53 PM UTC+2, Alex opn wrote:
>>
>> I know it's a pretty old thread but I just stumbled upon 
>> http://code.google.com/p/google-web-toolkit/issues/detail?id=6685 in my 
>> code. Are there any news about a patch for this or other suggestions how to 
>> work around this except the ones in the bug report?
>
>
> The only progress so far is that I added a TODO in the code: 
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java?r=11004#1211
> The idea is to avoid sending to the server those proxies that you no 
> longer use, instead of removing them from the RequestContext.
> The ability to remove proxies from a given RequestContext would probably 
> be needed in other cases, but as I said on the issue tracker, this is not 
> as easy as it sounds.
>
>>

-- 
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/-/DqcTMCdAjDEJ.
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: RequestFactory proxies stuck in RequestContext edit context

2012-06-20 Thread Alex opn
I know it's a pretty old thread but I just stumbled upon 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6685 in my 
code. Are there any news about a patch for this or other suggestions how to 
work around this except the ones in the bug report? I just began to really 
love the editor framework in combination with RF but then I discovered this 
nasty bug which imo is a pretty big problem : /

Am Samstag, 13. August 2011 15:47:05 UTC+2 schrieb Jesse Hutton:
>
> I have a entity proxy A that contains a collection of relations (List), 
> which corresponds to a standard @OneToMany association in JPA. My edit view 
> of proxy A contains a HasDataEditor implementation managing the list of 
> associations. The form also allows an arbitrary number of new B proxies to 
> be added as relations. When adding a new B, I have a popup form that 
> implements Editor, which I use to edit the properties of the new 
> instance. When that form is confirmed, I flush its editor driver, and add 
> the proxy instance to the HasDataEditor list in the main form. In this 
> way, new B instances are only created on the server when A is persisted and 
> the object graph is sent along with the request. In order for this to work, 
> I have to use the RequestContext that is managing edits of A when I create 
> new B proxy instances. And it works great if the B instances I instantiate 
> can always be submitted in a valid state.
>
> The problem I'm having is that once I create a new proxy B in the 
> RequestContext managing A, I can't seem to remove it. For example, if I 
> click the "Create new B" button and then close the popup form immediately, 
> the new proxy created for adding the aborted B is stuck in the 
> RequestContext. Even though B is never added to the HasDataEditor 
> element in the form for A, it will be submitted as part of the set of 
> objects being edited by the RequestContext. This can lead to a state where 
> the form for A cannot be submitted due to validation errors from lingering 
> (ostensibly discarded) B instances.
>
> What would work for me is a way to remove proxies from a RequestContext's 
> map of editedProxies. I was also thinking that using RequestContext 
> appending instead of editing everything in the same context might be a work 
> around... Does anyone know of another way to work around this issue?
>
> Jesse
>

-- 
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/-/OU7U31axVCEJ.
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: URL for GwtDevPluginSetup.exe is broken

2012-05-25 Thread Alex opn
Had the same yesterday, was able to download it from svn:

http://google-web-toolkit.googlecode.com/svn-history/trunk/plugins/ie/prebuilt/gwt-dev-plugin-x86.msi

I think with the above you get the newest available?

Also possible to add a specific revision (r10267 in this case):
http://google-web-toolkit.googlecode.com/svn-history/r10267/trunk/plugins/ie/prebuilt/gwt-dev-plugin-x86.msi

taken from: 
http://stackoverflow.com/questions/6600226/trouble-installing-gwt-developer-plugin-for-ie-through-firewall

Regards

Am Mittwoch, 23. Mai 2012 18:16:18 UTC+2 schrieb gwtdev:
>
> Since yesterday, I keep getting following error when load local GWT 
> application for the first time, please help where I can get 
> GwtDevPluginSetup.exe. 
>
> 404. That’s an error. 
> The requested URL /tag/s/appguid%3D%7B9a5e649a- 
> ec63-4c7d-99bf-75adb345e7e5%7D%26lang%3Den%26appname%3DGWT 
> %2520Developer%2520Plugin%2520for%2520IE%2520%2528x86%2529%26needsadmin 
> %3Dfalse/gwt/plugins/ie/GwtDevPluginSetup.exe was not found on this 
> server. That’s all we know 
>

-- 
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/-/vKxfIheh-VIJ.
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: JSON Parsing in GWT Client

2012-05-25 Thread Alex opn
"restygwt drives one of the biggest websites in Germany. We never had 
any performance issues."

You can't say which one, i suggest? :) Would be interesting to know.

Am Freitag, 25. Mai 2012 13:03:58 UTC+2 schrieb ra:
>
> Hi, 
>
>
> the solution is really simple: 
> Use resty gwt: https://github.com/chirino/resty-gwt 
>
> A sample project including GWT configuration can be found here: 
> http://code.google.com/p/play-gae-gwt-dreamteam-showcase 
>
> restygwt drives one of the biggest websites in Germany. We never had 
> any performance issues. 
>
>
> Cheers, 
>
> Raphael 
>
> On Thu, May 24, 2012 at 10:52 AM, Thomas Broyer  
> wrote: 
> > 
> > 
> > On Thursday, May 24, 2012 8:56:53 AM UTC+2, dominikz wrote: 
> >> 
> >> I was just having the same problem. I evaluated the solutions yesterday 
> >> and frankly speaking was surprised by the lack of straight answers from 
> both 
> >> GWT documentation and the internet. 
> >> The number of projects there are is just amazing, but nothing seems to 
> >> stand out. 
> >> 
> >> I don't like the idea of using Overlay Types since it's too much coding 
> >> and the objects coded this way can be used only on browser-side 
> >> I'm not sure what's the status of AutoBean 
> >> (http://code.google.com/p/google-web-toolkit/wiki/AutoBean) since 
> clicking 
> >> on 'Project Home' here takes me to some I think very old start page for 
> GWT. 
> >> No official references from main GWT 
> >> site https://developers.google.com/web-toolkit/ 
> > 
> > AutoBean is the technology backing RequestFactory; it's stable and has 
> very 
> > few known bugs in 2.4 (one or two, no more; all being already fixed in 
> > trunk; this is an all different story for RequestFactory). 
> > I just think nobody had/took the time to copy the wiki page to the dev 
> guide 
> > at developers.google.com/web-toolkit. 
> > 
> > -- 
> > 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/-/I6JfHi2Gw4QJ. 
> > 
> > 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. 
>
>
>
> -- 
> inc: http://ars-machina.raphaelbauer.com 
> tech: http://ars-codia.raphaelbauer.com 
> web: http://raphaelbauer.com 
>

-- 
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/-/YEMebkQic2gJ.
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: Set title on specific dates in DatePicker

2012-05-10 Thread Alex opn
Cool, exactly what I need : )

Starred!

Thanks a lot

Am Mittwoch, 9. Mai 2012 03:38:20 UTC+2 schrieb Patrick Tucker:
>
> Take a look at the patch I just made.
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=7360
>
> On Tuesday, May 8, 2012 8:45:09 AM UTC-4, Alex opn wrote:
>>
>> Hello,
>>
>> I'd like to be able to to set some text as title (which show up when a 
>> user hovers over a specific date) on some dates of a datepicker similar to 
>> the addStyleToDates-method:
>>
>>
>> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#addStyleToDates%28java.lang.String,%20java.util.Date%29
>>
>> As I can't find a method for that I think it's not available out of the 
>> box, right?
>> Anyone ever implemented this functionality or something similar, are 
>> there problems extending DatePicker?
>>
>> Regards
>> Alex
>>
>

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



Set title on specific dates in DatePicker

2012-05-08 Thread Alex opn
Hello,

I'd like to be able to to set some text as title (which show up when a user 
hovers over a specific date) on some dates of a datepicker similar to the 
addStyleToDates-method:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html#addStyleToDates%28java.lang.String,%20java.util.Date%29

As I can't find a method for that I think it's not available out of the 
box, right?
Anyone ever implemented this functionality or something similar, are there 
problems extending DatePicker?

Regards
Alex

-- 
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/-/_F8M2acKJbkJ.
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: Exception adding Items to ListBox in IE8

2012-03-21 Thread Alex opn
Thanks alot for the hint! Indeed I'm using html5shim but would have never 
thought that its causing the problem!

It's working now when I remove html5shim.

You made my day : )

Am Dienstag, 20. März 2012 15:30:32 UTC+1 schrieb Freddi Hinz:
>
> I had exactly the same problem. In my case it was due to the twitter 
> bootstrap template, which includes the html5shim:
>
>   
>
> Seemed to be an issue related to the handling of select/option elements in 
> html5.js.
>
>
>
>
>
>

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



Exception adding Items to ListBox in IE8

2012-03-01 Thread Alex opn
I'm getting an exception when adding an item to a that seems to be an
internal thing ListBox. I'm using gwt from trunk compiled yesterday
29.02.2012. Anyone knows what's wrong there? Works perfectly on
Chrome, Firefox, even on my buddy's IPad. Just not in IE8 couldnt try
IE9 yet, but version 8 is the target  main platform : /

Caused by: com.google.gwt.core.client.JavaScriptException: (Error)
@com.google.gwt.dom.client.DOMImplTrident::selectAdd(Lcom/google/gwt/
dom/client/SelectElement;Lcom/google/gwt/dom/client/OptionElement;Lcom/
google/gwt/dom/client/OptionElement;)([JavaScript object(434),
JavaScript object(970), null]): Invalid argument.   at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
249)at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
570)at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
298)at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
107)at
com.google.gwt.dom.client.DOMImplTrident.selectAdd(DOMImplTrident.java)
at com.google.gwt.dom.client.SelectElement$.add$(SelectElement.java:
55) at com.google.gwt.user.client.ui.ListBox.insertItem(ListBox.java:
356)at com.google.gwt.user.client.ui.ListBox.insertItem(ListBox.java:
328)at com.google.gwt.user.client.ui.ListBox.insertItem(ListBox.java:
295)at com.google.gwt.user.client.ui.ListBox.addItem(ListBox.java:
173)at
org.kurfuersten.projectTaskManagerGWT.client.view.ProjectTaskFilterView.initUi(ProjectTaskFilterView.java:
63) at
org.kurfuersten.projectTaskManagerGWT.client.presenter.ProjectTaskFilterPresenterWidget.init(ProjectTaskFilterPresenterWidget.java:
134)at
org.kurfuersten.projectTaskManagerGWT.client.presenter.ProjectTaskFilterPresenterWidget.setTeams(ProjectTaskFilterPresenterWidget.java:
88) at
org.kurfuersten.projectTaskManagerGWT.client.presenter.TaskManagementPresenter
$6.onSuccess(TaskManagementPresenter.java:147)  at
org.kurfuersten.projectTaskManagerGWT.client.presenter.TaskManagementPresenter
$6.onSuccess(TaskManagementPresenter.java:1)at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onSuccess(AbstractRequest.java:
129)at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$StandardPayloadDialect.processPayload(AbstractRequestContext.java:
377)at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$5.onTransportSuccess(AbstractRequestContext.java:1120) at
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:136) at
org.kurfuersten.projectTaskManagerCommonGWT.client.util.LoadIndicatingRequestTransport
$1.onResponseReceived(LoadIndicatingRequestTransport.java:31)   at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
338)at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
219)at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
570)at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
278)at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java)at
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:234)  at
sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
293)at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
547)at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannel

Re: EntityProxy efficiency

2012-02-22 Thread Alex opn
See also:

http://code.google.com/p/google-guice/wiki/JPA

guice-persist supports the "open session in view" pattern, too

-- 
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/-/3D6YJYGcufwJ.
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: To any Editors Gurus: I could use some ListEditor use help for the GWT demo I've made...

2012-02-06 Thread Alex opn
Thanks for sharing all this : )

Examples for Editors are hard to find and yours is great!

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