Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-06-19 Thread Julian
Hi,

i've had the same problem, many thanks to Jens and Rajeshwar for the
solution!

I've extended Column and TextColumn:

public abstract class TooltipColumn extends Column{
private final Cell cell;

public TooltipColumn(Cell cell) {
super(cell);
this.cell = cell;
}

public abstract SafeHtml getTooltipValue(T object);

@Override
 public void render(Context context, T object, SafeHtmlBuilder sb) {
SafeHtmlBuilder mysb = new SafeHtmlBuilder();

cell.render(context, getValue(object), mysb);
mysb.appendHtmlConstant("");
mysb.append(getTooltipValue(object));
mysb.appendHtmlConstant("");
sb.append(mysb.toSafeHtml());
  }
}

public abstract class TooltipTextColumn extends TooltipColumn {

  /**
   * Construct a new TextColumn.
   */
  public TooltipTextColumn() {
super(new TextCell());
  }

}

CSS:
  .CssCellTableCell span {
display:none
}

  .CssCellTableCell:hover span {
border:1px solid #e6e3e5;
DISPLAY: block;
Z-INDEX: 1000;
PADDING: 0px 10px 0px 10px;
POSITION:absolute;
float:left;
background:#d1;
TEXT-DECORATION: none
}

Add a Column:

TooltipTextColumn aTextColumn = new
TooltipTextColumn() {

@Override
public String getValue(Todos object) {
return object.getText();
}

@Override
public SafeHtml getTooltipValue(Todos object) {
return new
SafeHtmlBuilder().appendEscaped(object.getText()).toSafeHtml();
}
};

cellTable.addColumn(aTextColumn, "Text");

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



Problem using classes from external modules

2011-10-07 Thread Julian
Hi

I am trying to get my GWT application to work with an existing project 
consisting of several maven modules. Currently I'm struggling trying to use 
an enum from one of the existing maven modules, in my GWT client-side code. 
The way I'm tying to do it is by creating an extra GWT module where the enum 
is located.


EXISTING MAVEN MODULE: *ExtraModule*

src/com/app/extra/ExtraModule.gwt.xml
src/com/app/extra/data/MyEnum.java


> 
> 
> 
> 



NEW GWT MAVEN MODULE: *MainModule*

src/com/app/main/MainModule.gwt.xml
src/com/app/main/client/XAdmin.java


> 
> 
> 



I managed to make the source from ExtraModule available in MainModule by 
using the Build Helper maven-plugin:

from my pom.xml


> org.codehaus.mojo
> build-helper-maven-plugin
> 1.7
> 
> 
> add-source
> generate-sources
> 
> add-source
> 
>  
> 
> /path/to/project/src/com/app/extra/
> 
> 
> 
> 
> 



This seems to work just fine, as ExtraModule was found and skipped (as there 
is no entry-point). The enum, MyEnum.java, however, is nowhere to be found. 
What am I doing wrong here? 


The stacktracke from running mvn clean install

[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ app-web ---
[INFO] auto discovered modules [ExtraModule, com.app.main.MainModule]
[INFO] ExtraModule has no EntryPoint - compilation skipped
[INFO] Compiling com.app.main.MainModule
[INFO]Validating newly compiled units
[INFO]   Ignored 2 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see 
all errors.
[INFO]Finding entry point classes
[INFO]   [ERROR] Errors in 
'file:/Users/chuck.norris/workspace/app-web/src/main/java/com/app/main/shared/dto/SomeProxy.java'
[INFO]  [ERROR] Line 81: No source code is available for type 
com.app.extra.data.MyEnum; did you forget to inherit a required module?

-- 
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/-/apcM5xoLAOwJ.
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: Request Factory Proxy Variable Null problem

2011-09-28 Thread Julian


*Your other properties are already filled because they are primitive types ( 
= no entity proxy). Only properties that are entity proxies or lists of 
entity proxies are null when you do not add these properties to the .with() 
method.*

This also applies to instances of ValueProxy.

-- 
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/-/NlWZRivqHu4J.
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: Request Factory Proxy Variable Null problem

2011-09-28 Thread Julian
Could this be related?

https://groups.google.com/forum/#!searchin/google-web-toolkit/requestfactory$20null/google-web-toolkit/ocBf6sXrv-I/HNkuYb9CnfQJ

-- 
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/-/bAyOIDTwkRgJ.
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: Child proxy is null on client side

2011-09-12 Thread Julian
Thank you Aidan! 

.with("video") solved the problem :)

Somehow I thought it only applied to ValueProxies.

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



RequestFactory: Child proxy is null on client side

2011-09-11 Thread Julian
Hi there

I'm having some difficulties using RequestFactory (and Objectify). I have 
two entities Item and Payload, and corresponding proxies ItemProxy and 
PayloadProxy (*#1*). If I call ItemRequestContext.saveAndReturn() on the 
clientside (*#3*) a simple println in my ItemDao shows the Payload as having 
an id (*#2*). But when the Response reaches the client side, the Payload is 
just null. 

Is there some obvious reason why the Payload doesn't make it to the client 
side, given the code snippets below?


*CODE SNIPPET #1*

@Entity
public class Item extends DatastoreObjectGenerated {

   private Key payloadKey;
   @Transient
   private Payload load;

   public Item() {
   }

   public void setPayload(Payload load) {
  this.load = load;
   }

   public Payload getPayload() {
  return this.load;
   }
}

@ProxyFor(value = Item.class, locator = ObjectifyGeneratedLocator.class)
public interface ItemProxy extends DatastoreObjectGeneratedProxy {

   public void setPayload(PayloadProxy load);

   public PayloadProxy getPayload();

}


@Entity
public class Payload extends DatastoreObject {

   public Payload() {
   }
}

@ProxyFor(value = Payload.class, locator = ObjectifyLocator.class)
public interface PayloadProxy extends DatastoreObjectProxy {

}


*CODE SNIPPET #2*

public class ItemDao extends ObjectifyDao {

   public Item saveAndReturn(Item item) {

  ...

  Item it = getItem(item.getId());
  System.out.println("Payload ID: " + it.getPayload().getId());

  return tr;
   }
}

// PRINTS
// Payload ID: 18

*CODE SNIPPET #3*

Request req = this.itemRequestContext.saveAndReturn(item);
req.fire(new Receiver() {
   @Override
   public void onSuccess(ItemProxy response) {
  System.out.println("Payload ID: " + response.getPayload());
   }
});

// PRINTS
// Payload ID: null 

-- 
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/-/THZWXQKKy0AJ.
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: Create Canvas widget from CanvasElement

2011-08-12 Thread Julian

>
>
> constructor 
> protected CanvasElement() 
>
> It means that you can derive your own class for CanvasElement. 
> Adding it in a GWT container works for me. 
>
> I agree with you : I don't understand why there is also a Canvas 
> class, and why the constructor is private ? 
>
>
Canvas is a Widget (derives from FocusWidget).
CanvasElement is just a wrapper around the DOM element  (derives 
com.google.gwt.dom.client.Element).
To be precise, CanvasElement is not even a wrapper it is a JavaScriptObject 
which means that you can not create it in Java (by calling a constructor).
Instead, we have to use Document.get().createCanvasElement() which does its 
work by calling a JSNI method.
I want the widget so that I can do all the event handling in Java 
(FocusWidget implements tons of Has*Handlers interfaces). 

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



Create Canvas widget from CanvasElement

2011-08-11 Thread Julian
I want to wrap a CanvasElement ( in HTML) in an Canvas widget.

Many widgets (e.g. Label) have a static method SomeWidget.wrap(Element) for 
wrapping an existing DOM element.
I imagine Canvas does not feature such a method because not all browser 
support  and therefore the user should be forced to go 
through createIfSupported().

Unfortunately the constructor in Canvas is private, which means that Canvas 
can not be subclassed. (There isn't any constructor available in the derived 
class.)

Code snippets of createIfSupported and the constructor in Canvas:

  public static Canvas createIfSupported() {
// check if canvas is supported; if it is not supported: return null
return new Canvas(element);
  }

  private Canvas(CanvasElement element) {
setElement(element);
  }

I ended up copying the Canvas class and making the constructor public.

Is there a better way to do this?
If not, what is the reasoning behind it (besides that it might not be 
supported)?

I am using version 2.4.0.rc1.

Thanks,
Julian

-- 
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/-/MpcJQFQy4BAJ.
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 causing OutOfMemoryError

2011-06-14 Thread Julian Scheid
On Tue, Jun 14, 2011 at 7:18 PM, Filip Krygowski
 wrote:
> I took a long and careful look at the heap and after some analysis I
> noticed that the Longs I’ve been sending don’t get garbage-collected
> (also true for other types stored in lists, which I checked later).
> The same goes for all serialized properties (the ‘message’ String and
> Longs). The questions at this point is: is this some kind of caching
> feature that backfires on us? Or is it possible that we messed up
> configuration at some point? Or perhaps this is a new bug?

http://code.google.com/p/google-web-toolkit/issues/detail?id=6193

-- 
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: How to set background color for button?

2011-06-08 Thread Julian
Try using button.*setStyleName*("color-icon"); instead.

Alternatively use

.color-icon { 
  height: 16px; 
  width: 23px; 
  background-image: none *!important*; 
  background-color: #77; 
}


-- 
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/-/ckVXMDBQS1Fqb2tK.
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: ProxyAutoBean server-side cache

2011-03-25 Thread Julian Scheid
On Sat, Mar 26, 2011 at 1:05 AM, Thomas Broyer  wrote:
> Looking at the code, ProxyAutoBean's createShim creates a reference cycle
> (the shim references the proxyAutoBean, which keeps a reference on the
> shim). Because the value in the WeakMapping is kept with a strong reference,
> there's always a strong reference to key as well, so the cleanup() never has
> anything to clean.

Right, that would explain it... I suppose with the Googlers in CC
there's no need for me to file a bug report?

And while I got you guys on the line, would you mind having a quick
look at another recent RF-related post of mine, maybe you missed it at
the time I posted it?
http://groups.google.com/group/google-web-toolkit/msg/21bc3c893c96f4c6?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-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.



ProxyAutoBean server-side cache

2011-03-24 Thread julian...@gmail.com
Hi,

it appears that for every EntityProxy instance that a client requests
via RequestFactory, a ProxyAutoBean object is created on the server.
Is this correct?  If so, what is the lifecycle of the ProxyAutoBean,
at what point does it get deleted?  I can see (in jvisualvm) that it
lives in a WeakMapping, so maybe it is intended to be removed when the
GC needs the memory it occupies.  However, a few initial tests seem to
show that the ProxyAutoBeans survive low memory conditions and keep
accumulating.  Am I doing something wrong or is this expected
behaviour?

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



requestFactory: NPE while traversing local read-only proxies

2011-03-03 Thread julian...@gmail.com
Hi,

I've recently set up remote logging which now gives me more visibility
on client-side bugs.  One problem that I've discovered this way, but
never ran into myself, are spurious errors like the ones attached
below.  As you can see, the stack trace isn't always identical but it
usually looks like an NPE somewhere in AbstractRequestContext.doFire.

Now, my understanding is that this might have to do with the
requestContext looking for any changes to local proxies. What baffles
me, though, is that for the specific RequestContext involved in these
errors the entities are never edited - the corresponding proxy class
doesn't even have setters, and edit() is never called. The calls in
question here are purely for getting data from the server
(specifically, a total entity count and one result page, for
populating a page of a CellTable). That's why I'm not sure why
getVersion would even have to be called on the client side at all.

I've double-checked that all arguments to the count and list
operations are non-null.

So far I don't know how to reproduce this error or else I would try to
condense it into a test case. I'm hoping you might have an idea of
where I could start looking?  Also, is there any way I can make the
stack traces more informative or enable other relevant debug output?

Thanks.

2011-03-03 13:49:22,399 ERROR [redacted.client2.Redacted] - Uncaught
Exception
java.lang.Throwable: (TypeError): dynamicCast($getWrapped(this
$static.this$0), 420) is null
 stack: $getVersion_0([object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:42867
traverseProperties_14([object Object],[object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:42835
$traverse([object Object],[object Object],[object Object])@http://
redacted/redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:6485
encodeForJsoPayload([object Object],[object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:31332
encode_1([object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:31322
$doFire([object Object],null)@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:6836
$fire([object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:6864
$updateTable([object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:12395
$onEntityUpdated_0([object Object],[object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:13757
execute_8()@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:14509
runScheduledTasks([object Array],[object Array])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33076
$flushPostEventPumpCommands([object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:32998
execute_50()@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33128
execute_49([object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33030
entry0(execute_49,[object XPCCrossOriginWrapper],[object
Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:32920
([object Object])@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:32905
(1)@http://redacted/
redacted2/2411BB0FEDEB3CF297698EEE5A91AE69.cache.html:33094

2011-03-03 11:26:06,170 ERROR [redacted.client2.Redacted] - Uncaught
Exception
java.lang.Throwable: (TypeError): dynamicCast($getWrapped(this
$static.this$0), 420) is null
 stack: $setInvocations([object Object],[object Object])@http://
redacted/redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:42886
$doFire([object Object],null)@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:6836
$fire([object Object])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:6864
$updateTable([object Object])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:12395
$onEntityUpdated_0([object Object],[object Object])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:13757
execute_8()@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:14529
runScheduledTasks([object Array],[object Array])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33088
$flushPostEventPumpCommands([object Object])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33010
execute_50()@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33140
execute_49([object Object])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33042
entry0(execute_49,[object XPCCrossOriginWrapper],[object
Object])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:32932
([object Object])@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:32917
(11)@http://redacted/
redacted2/60ADBFDB7F1A7A4BFF0BF2BFD8E2F9E4.cache.html:33106

-- 
Yo

CellTable: Prevent styling of selected rows

2011-02-25 Thread Julian
Hi awesome people

I'm trying to control which of the columns in a CellTable will trigger a 
SelectionChangeEvent by implementing CellPreviewEvent.Handler. 

The problem is that even if I cancel the SelectionChangeEvent, the 
CSS-styles for *selected rows* are still applied (
.cellTableKeyboardSelectedRow), which means it looks like the row i being 
selected to the user. Is there any way to change this behavior, or is there 
some other way of controlling which columns trigger selection? I have a 
CellTable with several button columns and several text columns, and I want 
to disable selection on some of them.

The code below creates a CellTable with to columns. When you click on one of 
the columns an alert-box pops up, and when you click other the nothing pops 
up, but the row looks like it's being selected.


CellTable cellTable = new CellTable(50);

final NoSelectionModel selectionModel = new 
NoSelectionModel();

selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() 
{
public void onSelectionChange(SelectionChangeEvent event) {
Object selected = selectionModel.getLastSelectedObject();
if (selected != null) {
Window.alert("Selected something");
}
}
});

CellPreviewEvent.Handler selectionEventManager = new 
CellPreviewEvent.Handler() {
@Override
public void onCellPreview(CellPreviewEvent event) {
if (event.getColumn() == 0) {
event.setCanceled(true);
}
else {
// Handle default selection.
NativeEvent nativeEvent = event.getNativeEvent();
String type = nativeEvent.getType();
if ("click".equals(type)) {
if (nativeEvent.getCtrlKey() || nativeEvent.getMetaKey()) {
// Toggle selection on ctrl+click.
selectionModel.setSelected(event.getValue(), 
!selectionModel.isSelected(event.getValue()));
}
else {
// Select on click.
selectionModel.setSelected(event.getValue(), true);
}
}
else if ("keyup".equals(type)) {
// Toggle selection on space.
int keyCode = nativeEvent.getKeyCode();
if (keyCode == 32) {
selectionModel.setSelected(event.getValue(), 
!selectionModel.isSelected(event.getValue()));
}
}
}
}
};

cellTable.addColumn(new TextColumn() {
@Override
public String getValue(MyProxy object) {
return object.getTitle();
}
});

cellTable.addColumn(new TextColumn() {
@Override
public String getValue(MyProxy object) {
return object.getId();
}
});


-- 
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: CellTable: Unable to combine CSS-selectors

2011-02-25 Thread Julian
Thank you John, Brian and zakness. All of you were spot on! 

I was confusing descendant selectors and multiple selectors. I guess the 
reason I was having such a hard time figuring out this one was because the 
parent TR had many of the same styles applied. This gave the illusion that 
the way I was trying to use the selectors was working in some cases but not 
in others.

Removing the space and thus turning it into a multi class selector solved 
the problem:

.cellTableFirstColumn.cellTableKeyboardSelectedRowCell {
  background-color: fuchsia !important;
}

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



CellTable: Unable to combine CSS-selectors

2011-02-24 Thread Julian
Hi there

I'm trying to combine the cellTableFirstColumn and 
cellTableKeyboardSelectedRowCell 
selectors to set background-color of the first cell in the selected row to a 
lovely pink.

I have the following in my *CellTablePatch.css*

.cellTableFirstColumn .cellTableKeyboardSelectedRowCell {
  background-color: fuchsia !important;
}

But for some this style isn't applied. Firebug tells me both of the styles 
are applied to the first cell in the selected row, but no pink shows up.


Combining two other selectors in the same way, e.g. cellTableEvenRow and 
cellTableFirstColumn works just fine.

Any clues to what I'm doing wrong here?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Get JSON content from GWT

2010-04-20 Thread Julian David Roldan
2010/4/20 Thomas Broyer 

>
>
> On Apr 20, 1:26 am, Chris Conroy  wrote:
> > On Mon, Apr 19, 2010 at 4:01 PM, Julian!  wrote:
> > >http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?
> > > appid=YahooDemo&query=potato&results=2&output=json
> >
> > Julian,
> >
> > The problem you are hitting is the Same Origin
> > Policy<
> http://code.google.com/webtoolkit/doc/latest/FAQ_Server.html#What_is_...>
> > .
> >
> > See also: the cross-site request
> > tutorial<
> http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html>
>
> ...which really needs to be updated to use a JsonpRequestBuilder!
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/jsonp/client/JsonpRequestBuilder.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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.
>
>
Thanks for those links Thomas and  Chris I solved !! Thank u so much!

-- 
Julián David Roldan B.

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



Get JSON content from GWT

2010-04-19 Thread Julian!
Hi all !!

im trying to get the content from a json service like yahoo, but I
never get the result correctly:

this is my code:

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
"http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?
appid=YahooDemo&query=potato&results=2&output=json");

  Request request = builder.sendRequest(null, new
RequestCallback() {

public void onError(Request request, Throwable exception) {
  GWT.log("Couldn't retrieve JSON");
}

public void onResponseReceived(Request request, Response
response) {

GWT.log("Response text: "+response.getText());
  if (200 == response.getStatusCode()) {

JSONValue value = JSONParser.parse(response.getText());
JSONObject obj = value.isObject();
JSONArray jarray =
obj.get("jsonResponse").isObject().get("results").isArray();
for(int i=0; i<=jarray.size()-1; i++){
JSONObject arrayObjs = jarray.get(i).isObject();

String name =
arrayObjs.get("location").isObject().get("name").isString().stringValue();
GWT.log(name);
//Implement the rest of your logic.
   }
  } else {
  GWT.log("Couldn't retrieve JSON CODE 200(" +
response.getStatusText() +response.getHeadersAsString()
+ ")");
  }
}
  });

Every time the response.getText() is empty... How can i get the
content from this json service??
im trying with the google example with json tree, but when i change
the js for the real url in yahoo (not in local result .js file) the
result is empty all time!!

Thanks for ur help !!!

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



Deploy GWT 2.0 in a jetty

2010-04-13 Thread Julian!
Hi
im trying to deploy my GWT app in a jetty servlet container, im
developing with eclipse with the google plugin. and when i run with
the plugin http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997,
works fine. but when I copy the war directory and configure to jetty
server the application doesnt work.

Is a javascript error:
Error: $doc.getElementById(Hsc) is null
Archivo de origen: 
http://127.0.0.1:/planviajegwt/4A217B0203D1C3793F30E5DE0A69D1CC.cache.html
Línea: 3601

function XY(){var a;!!$stats&&$stats({moduleName:$moduleName,sessionId:
$sessionId,subSystem:Dsc,evtGroup:Esc,millis:(new
Date).getTime(),type:Fsc,className:Gsc});parseInt($doc.getElementById(Hsc)
[zrc])||0;a=UTb(new STb);yyb(PNb(Isc),a)}

Some idea?


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: RC2 and Eclipse Plugin

2009-12-15 Thread julian
I also have no urls in the developer mode view.
Running Eclipse 3.5, OS X Snow Leopard, gwt 2.0 using gwt-maven-plugin
1.2-SNAPSHOT
But I can access the developer server by entering the url in the
browser manually: 
http://localhost:/my.web.App/index.html?gwt.codesvr=localhost:9997
Interesting that I get a dialog saying that my module "may need to
recompiled" when I use the url: http://localhost:/my.web.App/index.html
Changing the working directory to point to the war folder didn't help.

Also.. when using developer mode it runs extremely slowly in both
safari and firefox.  cpu at about 70% and network over local loop at
2.3MB / sec

--

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: Error when running ant hosted on OS X 10.6

2009-11-14 Thread julian
Can be that (10.6.1, safari 4) uses 64bit architecture instead 32?
Have a look to: http://kb2.adobe.com/cps/509/cpsid_50983.html


On Nov 13, 4:41 pm, Kyle Hayes  wrote:
> I installed your new jar and I'm still getting the following error:
> ==
> hosted:
>      [java] On Mac OS X, ensure that you have Safari 3 installed.
>      [java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
> Unable to load required native library 'gwt-ll'.  Detailed error:
>      [java] Can't load library: /usr/local/gwt-mac-1.7.1/libgwt-
> ll.dylib)
>      [java]
>      [java] Your GWT installation may be corrupt
>      [java]     at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:
> 106)
>      [java]     at com.google.gwt.dev.shell.mac.LowLevelSaf.init
> (LowLevelSaf.java:135)
>      [java]     at com.google.gwt.dev.BootStrapPlatform.initHostedMode
> (BootStrapPlatform.java:68)
>      [java]     at com.google.gwt.dev.HostedModeBase.
> (HostedModeBase.java:362)
>      [java]     at com.google.gwt.dev.SwtHostedModeBase.
> (SwtHostedModeBase.java:127)
>      [java]     at com.google.gwt.dev.HostedMode.(HostedMode.java:
> 271)
>      [java]     at com.google.gwt.dev.HostedMode.main(HostedMode.java:
> 230)
> ==
>
> Here is my install location contents:
> ==
> $ ls /usr/local/gwt-mac-1.7.1/
> COPYING                                 gwt-dev-mac.jar                       
>   libgwt-ll.jnilib
> COPYING.html                            gwt-dev-mac.jar.bak                   
>   libswt-agl-carbon-3235.jnilib
> about.html                              gwt-module.dtd                        
>   libswt-carbon-3235.jnilib
> about.txt                               gwt-servlet.jar                       
>   libswt-pi-carbon-3235.jnilib
> benchmarkViewer                         gwt-user.jar                          
>   libswt-webkit-carbon-3235.jnilib
> doc                                     i18nCreator                           
>   release_notes.html
> gwt-api-checker.jar                     index.html                            
>   samples
> gwt-benchmark-viewer.war                junitCreator                          
>   webAppCreator
> ==
>
> The gwt-dev-mac.jar.bak is the old jar and the non.bak is the
> *patched* one. Yet the error is still complaining about not finding
> libgwt-ll.dylib.
>
> On Nov 13, 2:25 am, bmalkow  wrote:> On 12 Lis, 
> 18:25, Kyle Hayes  wrote:
>
> > > Heh, you're right this is really ugly. However, it may be worth a try,
> > > but not on my work code ;-)
>
> > I use it only on development enviroment.
> > To production I use original GWT.
>
> > Someone else thinks similar to 
> > mehttp://gwtgeek.blogspot.com/2009/11/hosted-mode-crashes-after-os-upda...
> > ;)

--

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




Re: Deferred binding for mobile browser support

2009-08-21 Thread Julian Harris

Thanks Sumit as always -- can I check why the fall-through class
exists at all? It seems a little redundant for something to replace
itself! :) I know that's what the docs say ... but why I wonder?

On Aug 10, 11:53 pm, Sumit Chandel  wrote:
> Hi Michael,
> If you could elaborate a little more on which part of deferred binding
> you're not sure about, that would help pinpoint the problem you're having
> and setup deferred binding code for your mobile browser target.
>
> In general, however, the way deferred binding works is by defining the rules
> for the deferred binding using replacement (see doc link below), creating
> the default and the mobile classes that should be used for the desktop
> browser and mobile browser versions of your widget, respectively, and then
> creating your widget via the GWT.create(MyWidget.class) call to have the
> compiler create bindings for the mobile target.
>
> Deferred Binding using 
> Replacement:http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
>
> For an example, check out the inner workings of the PopupPanel widget.
> You'll notice that the PopupImpl instance belonging to the PopupPanel class
> is created using the GWT.create(PopupImpl.class) call. Looking at the
> deferred binding rules for the PopupPanel in the Popup.gwt.xml file
> (contained in the gwt-user.jar), you'll see that the following rules are
> defined:
>
>   
>   
>     
>   
>
>   
>   
>     
>     
>       
>       
>     
>   
>
> You could essentially follow the same pattern for the mobile version of
> MyWidget.class, perhaps creating a MyWidget.gwt.xml file to contain the
> deferred binding rules.
>
> Hope that helps,
> -Sumit Chandel
>
> On Tue, Aug 4, 2009 at 3:38 AM, grue wrote:
>
>
>
>
>
> > Hi,
>
> > I have to add a mobile-optimized version to an existing gwt
> > application. After digging through the docs I found out that deferred
> > binding is the technology of chioce. I believe I understand how it
> > basically works but how do I use it in that specific use case?
> > The mobile UI of our application differs a lot from the standard
> > version so I need seperate stylesheets, and seperate GWT controls (we
> > use composites a lot). Since the basic layout of our application is
> > done in the .html file I would also need a separate html file.
> > Now the question is: how do I do that? Are there any best practices?
>
> > I'd really appreciate any hint.
>
> > Best regards,
> > Michael
--~--~-~--~~~---~--~~
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: GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7 -- how to add this or any other GWT library to projects?

2009-08-18 Thread Julian Harris
Thanks Philip!

I'll give this a try -- it worked fine in hosted mode I assume.

On Tue, Aug 18, 2009 at 3:31 AM, philipmac wrote:

>
>
> Hey, so I've been mucking about with this for say... a couple of
> hours.  And, ehh, I never actually used Eclipse until tonight, and I'm
> a Perl coder.  So, ahem, take what I say with this in mind...
> but, I just right click on my project, go to Properties,
> into the Java Build Path, Add External Jars, and stick in the external
> jar file into the project.
>
>
> Although, for some magical reason of which I am unaware of, you have
> to use the noredist gears jar.
>
> Give it a try.
>
> On Aug 17, 7:03 pm, Julian  wrote:
> > Hi all, firstly the GWT / AppEngine plugin for Eclipse is sensational.
> > To be able to deploy to production so easily is amazing.
> >
> > However a basic question -- how do you add other GWT libraries?
> >
> > I wanted to extend the template given by making a geolocation API call
> > in gwt-gears I'm struggling to figure out where to add gwt-gears.jar.
> >
> > 1. I added it to my project's lib folder along with the other jars
> > that were included in the default project but they are not presented
> > through the GUI as available to add.
> > 2. Adding them as 'external jars' solves the IDE syntax checking
> > issues but then unsurprisingly crashes in hosted mode.
> >
> > I'm missing something basic I'm sure about how to add GWT libraries --
> > anyone have any suggestions?
> >
> > thanks!
> > (This is for GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7)
> >
>

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



GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7 -- how to add this or any other GWT library to projects?

2009-08-17 Thread Julian

Hi all, firstly the GWT / AppEngine plugin for Eclipse is sensational.
To be able to deploy to production so easily is amazing.

However a basic question -- how do you add other GWT libraries?

I wanted to extend the template given by making a geolocation API call
in gwt-gears I'm struggling to figure out where to add gwt-gears.jar.

1. I added it to my project's lib folder along with the other jars
that were included in the default project but they are not presented
through the GUI as available to add.
2. Adding them as 'external jars' solves the IDE syntax checking
issues but then unsurprisingly crashes in hosted mode.

I'm missing something basic I'm sure about how to add GWT libraries --
anyone have any suggestions?

thanks!
(This is for GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7)

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



Getting User Credential from IE

2008-10-22 Thread Julian

I realized that when we use our corporate Seibel page using IE, it
knows the Logon User Name.  I like IE to pass GWT the User Name that
is already authenticated into Windows.

I'm new to front end programming, can someone give me some concept
that I need to go and figure this out.

TIA
-Julian

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---