Saturday, March 29, 2014

using gwt with hibernate example

HI,
I have found a nice article "using gwt with hibernate example". However, I have trouble to import this code into Eclipse. I always get the following warnings, but the app does not start:
[WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar' to the web app classpath for this session
   For additional info see: file:/home/mic/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
[WARN] No startup URLs supplied and no plausible ones found -- use -startupUrl

How is it possible to import the code into Eclipse and would ActiveJDBC solves Hibernates problems?

Thank you in advance.

Mic




--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

How to make a very long non-stop string (without any space in it) break into many new lines when showing in HTMLPanel?

I have an HTMLPanel inside a FlowPanel which is inside a ScrollPanel like this.

<g:ScrollPanel>       <g:FlowPanel>          <g:HTMLPanel ui:field="showMessageHTMLPanel" width="600px"/>      </g:FlowPanel>  </g:ScrollPanel>  

The showMessageHTMLPanel is used to hold the text that user enter a TextArea.

I want that the showMessageHTMLPanel should show exactly like how it was displayed in TextArea.

Ex,if user types in many sentences in new lines in TextArea, then the showMessageHTMLPanel should show similar like this:

This is text1    This is text2.  

So here is what I did. I uses new SafeHtmlBuilder().appendEscapedLines(message).toSafeHtml().

HTML showMessageHTML = new HTML(new SafeHtmlBuilder().appendEscapedLines(message).toSafeHtml());  getView().getShowMessageHTMLPanel().add(showMessageHTML);  

The result is that It breaks the lines quite OK, no problem.

However, When I type a non-stop very long string ( a String that doesn't have any space on it) into a TextArea. Ex, see this non-stop string:

"Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa."

As you saw, even this non-stop string has no space, but when typing in TextArea then the string will automatically fall into new lines.

Ok, now when I show that non-stop string in getView().getShowMessageHTMLPanel(), it showed the text as one straight line without any line break:

Aaaaaaaaaaaaaaaaaaaa......aaaaa.  

The user has to scroll the scrollbar to see the complete text. This is unacceptable since it is too hard to see the whole line. Also many urls are non-stop string without spaces. So the user may not be able to copy the url.

How to make a very long non-stop string (without any space in it) break into many new lines when showing in HTMLPanel?

Or

Do you know any other widget that can handle this?

(http://stackoverflow.com/questions/22731546/how-to-make-a-very-long-non-stop-string-without-any-space-in-it-break-into-man)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Error on the output directory for the project should be set to

What's your POM looking like? How are you importing the project in Eclipse? (I'm assuming this message comes from the Google Plugin for Eclipse)
BTW, isn't there a quick fix in Eclipse for this?

On Saturday, March 29, 2014 6:19:46 AM UTC+1, Dilan A wrote:
Hi

I'm try to setup gwt with maven,
I'm getting following error message ;
The output directory for the project should be set to /myNewGWT/war/WEB-INF/classes


Is there is a fix for this?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Friday, March 28, 2014

Error on the output directory for the project should be set to

Hi

I'm try to setup gwt with maven,
I'm getting following error message ;
The output directory for the project should be set to /myNewGWT/war/WEB-INF/classes


Is there is a fix for this?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Only subset of HTML supported by HTML class?

Could you use span to make <ol> add numbers again?
 
No. 

It is totally fine to use <ol>, <b>, <strong>, <i>, <em>, etc.. as they add semantic information to your HTML document. That's why they exist.

-- 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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Only subset of HTML supported by HTML class?

Could you use span to make <ol> add numbers again?


On Fri, Mar 28, 2014 at 10:23 AM, jaga <j.annesley@gmail.com> wrote:
Hi, it is better to use CSS to format the text in HTML. I expect it would work if you did that. Try using <span> and CSS styles for text you want to format. E.g., <span style="font-weight: bold;">hi</span>

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: remote source file in ui:style



On Friday, March 28, 2014 6:29:55 PM UTC+1, Leon wrote:
Can I use <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css" /> in a uibinder file?  I don't want ugastyle-7.css to be compiled by GWT and transformed into an obfuscated, minimized and optimized version

Just use an @import CSS rule within your <ui:style>:

@import url('http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css');

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.