Indian Rupee format

2013-05-20 Thread sreejyothi8


Hai,

   I tried using 'il8n numberformat' to get value in Indian rupee 
format by  setting Locale as "en_IN" .But instead of returning 

   Rs 10,00,00,000.00 my code return Rs. 10,000,000.00 in this format 
   can anyone help me to get the exact result.I tried this in gwt2.5.


Regards
Jyothi



-- 
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: Verification Email Process

2013-05-20 Thread karthic chakravarthy
Hi Henry , what have you done for email verification at last ? 

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




problem with javax.servlet.ServletContext in gwt-user.jar

2013-05-20 Thread gabriele.prandini
I'm using GWT (2.5.0) with grails (www.grails.org)
I just upgraded from grails 1.3.7 to grails 2.2.2
Tryng to compile my project i got this error

Caused by: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig;

you can find some information here:
http://www.javamonamour.org/2012/07/tomcat-error-on-startup.html

there seems to be a problem with the wrong version of 
javax.servlet.ServletContext in gwt-user.jar

I have, in my project some versione of the servletcontext, for example in 
grails library, that have the method public SessionCookieConfig 
getSessionCookieConfig()

but in the servletcontext in the gwt-user.jar the servletcontext doesn't 
have such method

what i can do?

-- 
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: MVP For Popups

2013-05-20 Thread Tim Hill
Thanks Oliver, that has got me on the right track :)

Next question... When I click on the save address button (for example), the 
callback registers that the save button for address has been clicked and 
runs the required method in the callback. This then calls an async method 
in another class to save the address to a local SQLite instance. What would 
be the best way to pass back the success/failure of the database operation? 
Would it be on the eventbus, or is there a more preferred way?

Sorry for the noddy questions, but still learning!

Cheers

Tim

On Saturday, 11 May 2013 21:14:50 UTC+1, Oliver Krylow wrote:
>
> Hi!
>
> Implement your popups in the views and have callbacks as arguments for 
> your presenters to provide logic when necessary .
>
> Example :
>
> view.showNewEventDialog(data,new NewEventCallback(){
>
> @Override
> public void onSave(String data){
> 
>
> }
>
> @Override
> public void onExtends (){
> ...
> }
>
> });
> On May 11, 2013 12:59 AM, "Tim Hill" > 
> wrote:
>
>> Hi,
>>
>> I would appreciate some advice, if anyone has any time to spare... I am 
>> slowly, but surely, getting to grips with GWT (I think) and I have hit my 
>> next stumbling block. The scenario is as follows:
>> > The app loads to the calendar view
>> > User clicks on a date and the 'add new event' dialog/popup is shown
>> > User enters event info, along with address of the event. If the address 
>> does not already exist within the app, the user can click a button to 
>> extend the popup to enter a new address
>> > User clicks save.
>> > Events fired to save new data.
>>
>> My quandary is thus... I am attempting to implement my app using MVP 
>> (activities/presenters/places/views etc), but I am not sure how best to 
>> implement popups like I described above as there is more logic in there 
>> than a simple 'busy' popup, for example. My aim is to have as much of the 
>> app logic as possible separate from the UI implementation so I can easily 
>> port the app to a mobile interface. 
>>
>> Thanks in advance!
>>
>> Tim
>>
>> -- 
>> 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-we...@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.
>>  
>>  
>>
>

-- 
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: MVP For Popups

2013-05-20 Thread Tim Hill
Thanks Oliver, that has got me on the right track :)

Next question... When I click on the save address button (for example), the 
callback registers that the save button for address has been clicked and 
runs the required method in the callback. This then calls an async method 
in another class to save the address to a local SQLite instance. What would 
be the best way to pass back the success/failure of the database operation? 
Would it be on the eventbus, or is there a more preferred way?

Sorry for the noddy questions, but still learning!

Cheers

Tim

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




DataGrid Debug (missing data)

2013-05-20 Thread Timothy Spear
I am sure I am missing something very basic. :D
Anyway, here is the setup:

After login I clear all contents and create the following basic structure:

StackLayoutPanel 
LayoutPanel
TabLayoutPanel
 FlowPanel* (Place holder for future)*
 FlowPanel* (Place holder for future)*
   LayoutPanel
TabLayoutPanel
 CustomList (Widget: UiBinder Composite)
  DockLayoutPanel
  center:DataGrid
  south: HorizontalPanel
   SimplePager
   PageSizePager
 FlowPanel* (Place holder for future)*
 FlowPanel* (Place holder for future)*

Symptoms:
-- Table Header is Displayed
-- Pager stuff displayed
-- No entries in table displayed
-- Via Firefox checked DOM and no TR for any data present
-- In hosted mode, checked the return call from the server and verified the 
following:
** raw data present
** ListDataProvider has data
** calls to ListDataProvider.addDataDisplay has no errors
** Tried ListDataProvider refresh and redraw

Any other ideas or places to check?

Tim

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




Testing GWT without GwtTestCase

2013-05-20 Thread Thad
Can anyone clarify for me this Google testing blog entry? 
http://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gwttest.html

Model, view, presenter I think I'm clear on (ha! yeah, sure), but I'm 
trying to understand the Server.class. It's described as "a completely 
standard backend with *no dependency on GWT*." (Their emphasis.) So what is 
that? Does that mean *not* a service interface and *not* a service Impl 
class? If so, where is the RPC coming in?

What I'm trying to do--what I think many would like to do--is test RPC 
methods without the RPC delay. Right now I do that by calling my 
ServiceImpl methods in my JUnit test. This often forces me to mock an 
HttpSession object and add an extra method so I can pass that in 
(since getThreadLocalRequest() is protected). Testing through my client 
would be preferable but the delay is a pain.

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




Which approach is better for CellTable - TextColumn with dynamic style OR Column with ImageResource?

2013-05-20 Thread andy_p1
Hi,
 I am creating a moderate sized CellTable - 100 rows and 5 columns. In some 
of the columns I need to show small images (no text) depending on the value 
returned by the accessor method of the backing object for the row. The 
number of images are fixed i.e. the logic is basically to display one of 5 
images in a cell.

I had trouble working with a ClientBundle for my Images so as a work 
around, I did it with the following approach:

TextColumn markedColumn = new TextColumn() {
public String getValue(RowData object) {
  return "";
}
public String getCellStyleNames(Context context, RowData  object) {
if(object.getMarkedStatus()){
return "MARKED";
}
else{
return "";
}
}
  };


Now, my ClientBundle stuff is working and the following code works as well:

Column markedColumn1 = new Column(new ImageResourceCell()) {
  public ImageResource getValue(RowData object) {
if(object.getMarkedStatus()){
return ImageResourceBundle.INSTANCE.rtick(); 
}else{
return null; <-- I am not sure how to create an Empty cell. I 
guess I can return an empty/blank image here.
}
  }
};


Now, I am not sure which approach is better. I am thinking that since 
stylesheets are in generate better in performance, the first approach is 
better. Is that correct? The app will be used on mobile devices.

thank you!

-- 
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: I/O 2013 - GWT Sessions?

2013-05-20 Thread dhoffer
Since some want the GWT conference on the west coast and some on the east, 
I say let's split the difference and meet in the middle.  I vote for Denver.

-Dave

On Wednesday, March 6, 2013 3:56:52 PM UTC-7, James wrote:
>
> I know it's earlybut is anyone familiar with the planned Google Web 
> Toolkit sessions for Google I/O 2013?  It was a bit disappointing last year 
> when there was only one real GWT session...after there had been many in all 
> the previous years.  GWT Team...any comments?

-- 
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: TabLayoutPanel not displaying properly after button push

2013-05-20 Thread Michael Galuza

>
> I solved this by using a TabPanel instead of a TabLayoutPanel.  
>

-- 
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: I/O 2013 - GWT Sessions?

2013-05-20 Thread Jim Douglas
https://www.youtube.com/watch?v=Ul-LbfkJ-tw

On May 19, 11:06 am, Carlos Aguayo  wrote:
> Slides for "GWT Roadmap for the Future" are 
> here:https://docs.google.com/presentation/d/1PfXXegni0gcZQYpX09t0gs2Z9dqST...
>
> I couldn't find the youtube video for it.
>
> The youtube video for the "Demystifying MVP and EventBus in GWT" is 
> here:http://www.youtube.com/watch?v=kilmaSRq49g
>
>
>
>
>
>
>
> On Sunday, May 19, 2013 1:50:38 PM UTC-4, Benjamin Possolo wrote:
>
> > I think a GWT conference would be great as well.
> > It would probably make more sense to occur somewhere on the west coast
> > though since it is much closer to silicon valley.
>
> > The San Diego Convention Center is always a great place for conventions.

-- 
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: I/O 2013 - GWT Sessions?

2013-05-20 Thread Tom Lan
Hi!

The recording of "*Google I/O 2013 - GWT Roadmap for the Future*" has been 
uploaded to youtube.
You can find it here: http://youtu.be/Ul-LbfkJ-tw

Regards
Tom

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




RPC Token Exceptions because Session Cookies can't be set.

2013-05-20 Thread Navin Surtani
Hey all,

I tried making my login form on my web app be protected by the XSRF servlet 
and I am getting RPC Token Exceptions thrown. I followed the implementation 
guidelines as described 
here
 and 
after I had issues I saw that someone else had the same sort of issue 
here.
 
I still have the same exception being thrown as per the second URL and I'm 
quite stuck as to what I'm supposed to do next. 

I think that I'm just not setting the JSESSIONID cookie properly. If anyone 
can help explain how and where I'm supposed to do this that would be of a 
great help. If you look at the final comment on the second link, I think I 
can have a separate servlet that can set the cookie value? However, I don't 
know if that would open the application up for a security breach.

The code that my app is failing at is here:


private void makeSecureLogin(final String krb5Name, final 
String githubName, final String pwd) {
XsrfTokenServiceAsync xsrf = (XsrfTokenServiceAsync) 
GWT.create(XsrfTokenService.class);
((ServiceDefTarget) 
xsrf).setServiceEntryPoint(GWT.getModuleBaseURL() + "xsrf");
xsrf.getNewXsrfToken(new AsyncCallback() {
@Override
public void onFailure(Throwable throwable) {
dialogBox.setText("Remote call failed");

try {
throw throwable;
} catch (RpcTokenException rpcException) {
responseLabel.setHTML("RPC Token could not be 
generated.");
} catch (Throwable other) {
responseLabel.setHTML(other.getMessage());
}
dialogBox.center();
}

@Override
public void onSuccess(XsrfToken xsrfToken) {
((HasRpcToken) loginService).setRpcToken(xsrfToken);
loginService.login(krb5Name, githubName, pwd, 
getLoginCallback());
}
});
}

private AsyncCallback getLoginCallback() {

AsyncCallback toReturn = new AsyncCallback() {
@Override
public void onFailure(Throwable throwable) {
dialogBox.setText("Remote call failed");
try {
throw throwable;
} catch (LoginFailedException lfe) {
responseLabel.setText(lfe.getSymbol());
} catch (Throwable other) {
responseLabel.setText(other.getMessage());
}
dialogBox.center();
}

@Override
public void onSuccess(KerberosUser kerberosUser) {
dialogBox.setText("Remote call successful");
responseLabel.setText("Login for " + 
kerberosUser.getGithubName() + " succeeded.");
dialogBox.center();
}
};
return toReturn;
}

Any help would be very much appreciated. 

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.




NumberFormat

2013-05-20 Thread Muhammed Abdul Salim
Hai,

 I have a doubt regarding currency format in GWT.I am using gwt2.5 and
tried formatting my value to Indian currency format using "il8n
NumberFormat" by setting "Locale = en_IN" in gwt.xml. when i execute my
code result was Rs. 10,000,000.00 instead of  Rs 10,00,00,000.00 .Please
help to clear this issue.

Thank you

-- 
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: StackTraceElement was not included in the set of types which can be serialized by this SerializationPolicy

2013-05-20 Thread Goktug Gokdogan
StacktraceElement is marked as transient to keep it out of serialization.
Because of that, RPC system is not aware of the type. If you really want to
transfer the stack trace with your exception, then put a dummy field in
your exception:

  private StackTraceElement dummyFieldToIncludeType;

This will make StackTraceElement visible for serialization.



On Mon, May 13, 2013 at 2:14 PM,  wrote:

> Hi guys,
>
> I am unable to serialize my own Exception class. I have created an
> exception class as follows:
>
> public class KeyNotFoundException extends java.lang.Exception {
> private String key;
> private String resourceBundleName;
>
> /**
>  * The key was not found in the resource bundle
>  *
>  * @param resourceBundleName The resource bundle name
>  * @param keyThe key
>  */
> public KeyNotFoundException(String resourceBundleName, String key) {
> super("The resource bundle '" + resourceBundleName + "' does not
> have the key '" + key + "'");
> this.resourceBundleName = resourceBundleName;
> this.key = key;
> }
>
> /**
>  * Get the key
>  *
>  * @return The key
>  */
> public String getKey() {
> return key;
> }
>
> /**
>  * Get the resource bundle name
>  *
>  * @return The resource bundle name
>  */
> public String getResourceBundleName() {
> return resourceBundleName;
> }
> }
>
> This obviously needs a CustomFieldSerializer, so I created this one:
>
> public class KeyNotFoundException_CustomFieldSerializer extends
> CustomFieldSerializer {
> /**
>  * Deserialize the KeyNotFoundException from the stream
>  *
>  * @param streamReader The stream that contains the
> KeyNotFoundException
>  * @param instance The instance to stream the details to
>  * @throws SerializationException If unable to deserialize the instance
>  */
> public static void deserialize(SerializationStreamReader streamReader,
> KeyNotFoundException instance) throws SerializationException {
> instance.setStackTrace((StackTraceElement[])
> streamReader.readObject());
> }
>
> /**
>  * Create a new instance of a KeyNotFoundException from the stream
>  *
>  * @param streamReader The stream that contains the
> KeyNotFoundException
>  * @return The KeyNotFoundException
>  * @throws SerializationException If unable to serialize the instance
>  */
> public static KeyNotFoundException
> instantiate(SerializationStreamReader streamReader) throws
> SerializationException {
> String resourceBundleName = streamReader.readString();
> String key = streamReader.readString();
> return new KeyNotFoundException(resourceBundleName, key);
> }
>
> /**
>  * Serialize the KeyNotFoundException to the stream
>  *
>  * @param streamWriter The stream to serialize the
> KeyNotFoundException to
>  * @param instance The KeyNotFoundException to serialize
>  * @throws SerializationException If unable to serialize the instance
>  */
> public static void serialize(SerializationStreamWriter streamWriter,
> KeyNotFoundException instance) throws SerializationException {
> // Serialize the constructor parameters
> streamWriter.writeString(instance.getResourceBundleName());
> streamWriter.writeString(instance.getKey());
>
> // Serialize instance variables
> streamWriter.writeObject(instance.getStackTrace());
> }
>
> @Override
> public void deserializeInstance(SerializationStreamReader
> streamReader, KeyNotFoundException instance) throws SerializationException {
> deserialize(streamReader, instance);
> }
>
> @Override
> public boolean hasCustomInstantiateInstance() {
> return true;
> }
>
> @Override
> public KeyNotFoundException
> instantiateInstance(SerializationStreamReader streamReader) throws
> SerializationException {
> return instantiate(streamReader);
> }
>
> @Override
> public void serializeInstance(SerializationStreamWriter streamWriter,
> KeyNotFoundException instance) throws SerializationException {
> serialize(streamWriter, instance);
> }
> }
>
> This does not work. The StackTraceElement is not whitelisted. What do I
> need to do to get this working correctly! Its very frustrating!
>
>
>  --
> 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.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" gro

Re: Testing GWT without GwtTestCase

2013-05-20 Thread Goktug Gokdogan
On Mon, May 20, 2013 at 6:42 AM, Thad  wrote:

> Can anyone clarify for me this Google testing blog entry?
> http://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gwttest.html
>
> Model, view, presenter I think I'm clear on (ha! yeah, sure), but I'm
> trying to understand the Server.class. It's described as "a completely
> standard backend with *no dependency on GWT*." (Their emphasis.) So what
> is that? Does that mean *not* a service interface and *not* a service
> Impl class? If so, where is the RPC coming in?
>
>
That is the Async interface. Technically, it still depends on GWT for the
AsyncCallback interface.
I think what they actually meant is, it doesn't depend on any native
methods so it is easy to mock.


> What I'm trying to do--what I think many would like to do--is test RPC
> methods without the RPC delay. Right now I do that by calling my
> ServiceImpl methods in my JUnit test. This often forces me to mock an
> HttpSession object and add an extra method so I can pass that in
> (since getThreadLocalRequest() is protected). Testing through my client
> would be preferable but the delay is a pain.
>


Refactor your service out of your servlet. A common useful pattern is:

class ServerServlet extends RemoteServiceServlet implements ServerService {
  ServerServiceImpl service = 

  public void someServerMethod() {
service.someServerMethod();
  }
}
class ServerServiceImpl implements ServerService {
  // implement your logic here
}

Then write the test against for ServerServiceImpl which doesn't depend on
any servlet internals. Note that, this is pattern also useful if you need
to call ServerService at server side in production.

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

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




Offline debugging my gwt app

2013-05-20 Thread yves
Hello All,

I need to debug my gwt app. The problem is that I need to debug it OFFLINE.
After a tour on the net, I didn't found an answer.

Thus here is the scenario.

My GWT version is 2.4.0

Debugging the code is ok.
Running in production offline is ok, using a cache manifest.

But I can't do both : debugging offline.

To avoid any config difference, I use exactly the same tomcat server 
deployment to run in production or in debug mode (thus with the debug 
option -noserver).
The cache manifest is built in runtime by a dedicated service whose 
response depends on the current permutation.

When online, the manifest is always requested in debug and in production 
mode (confirmed by tracing). (a subsidiary question is : why in production 
the manifest is called twice and in debug it is called once ?).

Then I stopped tomcat.
=> In production offline the gwt app is running correctly.
=> In debug offline, nothing is displayed : the browser has loaded the app 
html file from its cache (confirmed by displaying the page source code), 
but the browser remains empty, the gwt app is not running.

It seems that when offline, the google dev plugin doesn't communicate 
correctly with the IDE as it even doesn't realize when the development mode 
is stopped in the IDE (the black overlay with the message "Plugin failed to 
connect to Development Mode server at localhost:9997" is no displayed). May 
be the plugin is not started when offline ?

In order to help me test my app when offline, does anybody knows why the 
app is not running in debug offline mode and how to make it run ?

Thanks a lot !
Yves

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




Web Component support/usage?

2013-05-20 Thread Ed
How will GWT support/use/enable "Web Component" browser development (Shadow 
Dom stuff)  (roadmap) ?
See: 
LINK
- Ed

-- 
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: Web Component support/usage?

2013-05-20 Thread Goktug Gokdogan
We are looking into it. Details will appear as we progress.


On Mon, May 20, 2013 at 11:49 AM, Ed  wrote:

> How will GWT support/use/enable "Web Component" browser development
> (Shadow Dom stuff)  (roadmap) ?
> See: 
> LINK
> - Ed
>
> --
> 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.
>
>
>

-- 
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: Error: com.google.gwt.user.client.rpc.StatusCodeException: 404 on Tomcat server

2013-05-20 Thread Ahmed El-Fayomy
I'm having the exact same problem, any luck?!

On Friday, February 24, 2012 11:30:38 PM UTC+3, Maurice wrote:
>
> Hello All, 
>
> I am having problems getting my RPC code working on a Tomcat server 
> hosted by serversanddomains.com.  The steps I have followed are: 
> 1) Using GWT 2.4, and eclipse I create an new web application project 
> - with a 
>  project = Hello 
>  package = com.gwt.hello 
>  Using Google Web ToolKit 
>  Not using Google App Engine 
>  And Using Generate project sample code 
>
> 2) In the generated file com.gwt.hello.client.Hello.java I change line 
> serverResponseLabel.setHTML(SERVER_ERROR); to 
> serverResponseLabel.setHTML(caught.toString()); 
> To understand the errors better. 
>
> 3) I then test the program in development mode and it works as 
> expected. 
>
> 4) Compile - Build the project with the GWT compiler 
> Compiling module com.gwt.hello.Hello 
>Compiling 6 permutations 
>   Compiling permutation 0... 
>   Compiling permutation 1... 
>   Compiling permutation 2... 
>   Compiling permutation 3... 
>   Compiling permutation 4... 
>   Compiling permutation 5... 
>Compile of permutations succeeded 
> Linking into /Users/xxx/Documents/www/Hello/war/hello 
>Link succeeded 
>Compilation succeeded -- 65.826s 
>
> 5) Upload the files everything in the war directory (Folders hello, 
> WEB-INF and files Hello.html, and Hello.css) into my hosted account in 
> the public_html folder 
>
> 6) Test the production site at http://www.example.com/Hello.html 
> I get the following error 
>
> Sending name to the server: 
> GWT User 
>
> Server replies: 
> com.google.gwt.user.client.rpc.StatusCodeException: 404 
> Not Found 
>
> The requested URL /hello/greet was not found on this server. 
>
> Additionally, a 404 Not Found error was encountered while trying to 
> use an ErrorDocument to handle the request. 
>
> 7) Contacted serversanddomains.com and they respond 
>
> There does not appear to be any error on the server side. The jsp test 
> page seems to be working fine now at http://example.com/jsptest.jsp so 
> tomcat itself appears to be just fine. 
>
> The page in question is simply trying to request a file URL which does 
> not exist. When submitting the form, this shows up in the error log 
> for apache. 
>
> [Thu Feb 23 16:44:31 2012] [error] [client 208.74.121.102] File does 
> not exist: /home/xxx/public_html/hello/greet, referer: 
> http://example.com/Hello.html 
>
> That's because there is no such file called "greet" in the hello 
> folder. This is likely because you have not properly installed the 
> application. 
> =
>  
>
>
> So we have written back to see if we can get exact steps on how you 
> need to upload everything. 
>
> But I can tell you that if you get hosting with Plesk on Linux with 
> us, Plesk allows you to upload your WAR files and it creates the 
> application for you for your site. 
>
>
> 8) Tried to follow the steps outlined in 
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideRPCDeployment
>  
> Simple Example with Apache Tomcat 
>
>
> Thanks for taking the time to read this, and any suggestions are 
> welcome. 
>
> Cheers, 
> Maurice 
>
>
>
>

-- 
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: Web Component support/usage?

2013-05-20 Thread Ed Bras
Thanks for the update.
Are things like these kind of "news" items put some where in the future ?
Maybe "better" use of the gwt blog ?


On Mon, May 20, 2013 at 9:23 PM, Goktug Gokdogan  wrote:

> We are looking into it. Details will appear as we progress.
>
>
> On Mon, May 20, 2013 at 11:49 AM, Ed  wrote:
>
>> How will GWT support/use/enable "Web Component" browser development
>> (Shadow Dom stuff)  (roadmap) ?
>> See: 
>> LINK
>> - Ed
>>
>> --
>> 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.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/7YydF8EycPw/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, 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.
>
>
>

-- 
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: Offline debugging my gwt app

2013-05-20 Thread Joseph Lust
It is not clear what you're attempting here. By "Offline" I believe you 
mean when not using the "DevMode" debugging plugin. You can only debug with 
the debugger when running in debugging mode. You can however use source 
maps and set breakpoints in the browser (i.e. Chrome Dev Tools) if you like 
without using DevMode.

Beyond that, to run your GWT app while not in the DevMode plugin, you'll 
need to compile and deploy it to a server (i.e. Jetty, Tomcat, JBoss) and 
start it. If you try to run it *not* in DevMode, but with the codesvr 
parameter in the URL, it will fail as it thinks you're trying to use 
DevMode.


Hope that helps.

Sincerely,
Joseph

-- 
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: Offline debugging my gwt app

2013-05-20 Thread yves
Thanks for your answer, but my question is about the HTML5 offline feature. 
Sorry if my post was not clear.

The problem is that I can't debug the GWT app while running it without a 
connection to the site server, thus "offline".

Yves

-- 
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: problem with javax.servlet.ServletContext in gwt-user.jar

2013-05-20 Thread Thomas Broyer


On Monday, May 20, 2013 10:27:17 AM UTC+2, gabriele.prandini wrote:
>
> I'm using GWT (2.5.0) with grails (www.grails.org)
> I just upgraded from grails 1.3.7 to grails 2.2.2
> Tryng to compile my project i got this error
>
> Caused by: java.lang.NoSuchMethodError: 
> javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig;
>
> you can find some information here:
> http://www.javamonamour.org/2012/07/tomcat-error-on-startup.html
>
> there seems to be a problem with the wrong version of 
> javax.servlet.ServletContext in gwt-user.jar
>
> I have, in my project some versione of the servletcontext, for example in 
> grails library, that have the method public SessionCookieConfig 
> getSessionCookieConfig()
>
> but in the servletcontext in the gwt-user.jar the servletcontext doesn't 
> have such method
>
> what i can do?
>

How is it that gwt-user is deployed? It's only needed at compile-time and 
must not be deployed (gwt-servlet should, if you use GWT-RPC) 

-- 
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: Offline debugging my gwt app

2013-05-20 Thread Thomas Broyer


On Monday, May 20, 2013 8:46:08 PM UTC+2, yves wrote:
>
> Hello All,
>
> I need to debug my gwt app. The problem is that I need to debug it OFFLINE.
> After a tour on the net, I didn't found an answer.
>
> Thus here is the scenario.
>
> My GWT version is 2.4.0
>
> Debugging the code is ok.
> Running in production offline is ok, using a cache manifest.
>
> But I can't do both : debugging offline.
>
> To avoid any config difference, I use exactly the same tomcat server 
> deployment to run in production or in debug mode (thus with the debug 
> option -noserver).
> The cache manifest is built in runtime by a dedicated service whose 
> response depends on the current permutation.
>
> When online, the manifest is always requested in debug and in production 
> mode (confirmed by tracing). (a subsidiary question is : why in production 
> the manifest is called twice and in debug it is called once ?).
>
> Then I stopped tomcat.
> => In production offline the gwt app is running correctly.
> => In debug offline, nothing is displayed : the browser has loaded the app 
> html file from its cache (confirmed by displaying the page source code), 
> but the browser remains empty, the gwt app is not running.
>
> It seems that when offline, the google dev plugin doesn't communicate 
> correctly with the IDE as it even doesn't realize when the development mode 
> is stopped in the IDE (the black overlay with the message "Plugin failed to 
> connect to Development Mode server at localhost:9997" is no displayed). May 
> be the plugin is not started when offline ?
>
> In order to help me test my app when offline, does anybody knows why the 
> app is not running in debug offline mode and how to make it run ?
>

Is hosted.html / devmode.js (depending on your linker) available offline? 
(i.e. included in the appcache manifest)

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