Java wrapper for Sencha Touch [closed] - java

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would like to work with Sencha Touch, but there is a small problem: I don't know JavaScript or how I would begin using Sencha Touch in JavaScript.
I already have a commercial license for Sencha Ext GWT and develop applications with it in Java.
What I need is Sencha Touch wrapped as a Java component or some guides on how to make my own Java wrapper for Sencha Touch.
I have looked at GWT4Touch, but it does not meet my requirements.
Can someone help me?

What requirements are those? We would be very interested in your input; perhaps there is something we can help you with. Just ask in the Emitrom forums :-)
For those that may not know off hand what GWT4Touch is, it is precisely what the question calls for: a Java API for Sencha Touch. We are re-branding it as Touch4j, so you may start seeing that name thrown around.
Check the demo at gwt4touch2-demo.appspot.com, or download the API from emitrom.com/gwt4touch and give it a try.

I also had the same issue a few weeks back. I didn't knew Javascript but I wanted to use Sencha Touch for prototyping(work related). I came across this book "Sencha Touch Mobile JavaScript Framework":
Actually if you read this book developing apps with Sencha touch is not that hard. I was able to develop a prototype in a week where I built UI pages using Panels, toolbars , MVC, remote proxies. I even integrated all this with Java Spring and Freemarker templates.
Here is the Store code to call the remote ajax proxy:
proxy: {
id: 'proxyID',
type: 'ajax',
url: '../api/sampleRestJsonAPI',
reader: {
type: 'json',
root: 'data'
}
You have to setup Java Spring (With MVC) so that when your code makes a call to the remote proxy it gives you something like:
{"data": {"field1":"value1", "field2":"value2"}}
Basically it should be a valid Json with the root you have specified in your store. The url config option might change based on how you structure your folders in your web app.
So with this I do all the heavy duty data processing in the Java Layer and keep the js layer very light.
Here is a good article on REST IN SPRING 3

What are your requirements that make GWT4Touch unsuitable? GWT4Touch seems to do a pretty good job if you want to write Java to create Sencha Touch applications.

Related

create a REST service using jersey? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I followed this (paragraph 7) tutorial to create a Rest service using jersey. However in the end i was kinda disappointed as it wasn't exactly what i was looking for.
What i had in mind was to create a java server with jersey that a client could make post requests to it , and the server could save the data in a MySQL database.
In the tutorial i was shown maybe how to make a post request? And even for that i used some html and 4 different java classes without any explanation on what anything does. In php the same thing was less than 40 lines of code and everything actually made sense.
I am not sure where to go from here , as everyone suggested to me to read this tutorial for what i needed. But i can't see why as i don't understand its purpose.
Do you know any tutorial i could have a look at , or point me to the right direction here? I ve never developed in java before neither have i used tomcat , so everything seems pretty new to me. I was used to php and apache.
The tutorial you have mentioned focus on creating RESTful Webservices with Java. It aims at distributed systems, where a client can make requests to a server. I think the tutorial is very helpful for that matter.
On the other hand, you seem to be searching for a tutorial that helps you creating a web application that can save/retrieve data to/from a database. You can find one, for example, in http://zetcode.com/tutorials/jeetutorials/mysqldatabase/
Then, for web clients, you have different alternatives, such as GWT or JSF. Also, for the persistence layer you might want to check Hibernate or JPA.
Relatively to Tomcat, it implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pure Java" HTTP web server environment for Java code to run. In short, Tomcat is the place where you deploy and run your Java web application; like you deploy a PHP application in Apache (with PHP installed).

Any recommendations for Scalable front end design methodologies (Spring Framework) [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I have some questions from UI folks #java technology
I have recently switched from php to java domain. Though I have good experience in front end theming work with CMS application driven by php.
Since, know i am very new to spring framework, and have developed an understanding with jsp files for the UI aspect.
If you may recommend, assist me or give suggestions... what best design ui practices can be followed to make the design live as consistent looking organism in the enterprise level application.
right now, bootstrap is css framework of choice...and is well adopted into application.
Sharing some details, though I find it very challenging to teach the java developers, the aspect of ui design... apart from their primary task of coding, building the logic from product owner requirements and UI inputs from wireframe screen...
as they are not visually inclined to 'pixel' based aesthetics... i have found interface does not come out well at places...and do not look very polished
and since there is resource crunch of good UI/UX foks who can solve their problems and apart from coding the best interaction in the application, new features ...blah etc.
Though, have started to train them slowly, repeatedly and steadily...on teaching them on how to reuse your css code, write efficient styles and to attain the level of well aligned and well thought placed pixels on screen/viewport.
What best or any training module i can bring on, so that they become self sufficient... for e.g. have been done also
http://slid.es/gauravmishr/introduction-to-css-for-jsp-developers
Will like to know your recommendation and thoughts, so that design scalability can be achieved.
Over to java ui/ux gurus :- )
maybe you should give Asual's Summer a try. It is a presentation layer library for Spring MVC. It allows you to reference resources from jars and thus makes modularization really easy. Most importantly for me, you write simple html5 with some custom tags and el expressions instead of JSPs. It also has support for resource caching and compression. Finally, you can prepare html templates to include in your views, thus increasing core reusability. I have used it extensively with twitter bootstrap and it works great.

Sencha,Touc4J,Codenameone and Phonegap? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I come from lots of Java programming and weak at JavaScript.I always used component based web-frameworks for web-application development(ZK,GWT,Wicket.etc)
Now we are planing a web+mobile application.I figured out that its better to separate bushiness-logic from UI using Spring MVC/REST/Jason combination.
Next question is mobile framework.I took a look at following frameworks
1.Sencha - Have to program in JS and it will generate HTML5 based applications.
2.Touch4J - Java Wrapper around Sencha?But whats the connections with GWT?
3.Phonegap - Have to write in JS and it will generate "hybrid" applications which runs in a web-view ? Can I host these applications in a web-server?
4.codenameone - Write in Java and it will generate native applications.(are these not hybrid applications as in PhoneGap?)
Any suggestions on this or are there any other frameworks targeting both browser and mobile application development ?
Codename One creates "true native applications" not phonegap web applications, Codename One renders the entire screen and allows you to embed native components in place thus giving you deeper control than you normally get with web applications.
Basically the choice boils down to whether you are a Java developer or a web developer.
FYI I am one of the authors of Codename One.
The Touch4j framework is a Java binding to the Sencha and PhoneGap APIs. The framework relies on the GWT compiler to take your Java code and translate/compile it to Javascript, just like any normal GWT application would.
Touch4j currently comes in 1 Jar file that you include in your classpath, and you basically use it like any other Java 3rd-party API. Since you are in the world of GWT, you get all the perks associated with that: GWT-RPC, debugging, Java's type-safety, etc.
Once you have written your app you can either run it as a web app (albeit without device
support), or you can deploy it to the device. If there is anything specific that you need to do with the device, you can use the Cordova binding included in Touch4j. There are two tutorials that we have in place to do just that:
http://emitrom.com/touch4j/tutorials/hello-android
http://emitrom.com/touch4j/tutorials/hello-ios
If you want to talk to a backend Java service running in OpenShift, for example, there is a tutorial for that, too:
http://emitrom.com/touch4j/tutorials/meet-openshift
If you are a Java developer, you will feel right at home with Touch4j. Version 2.1 was released yesterday, and it includes support for ST 2.0.1 and Cordova 1.7.
Also in the interest of full disclosure, I am one of the guys behind Touch4j # Emitrom.
#Ashika with Sencha framework can you build MVC application and a native look and feel for iOS, Android or BlackBerry or WEB-application. Phonegap IDE can you build native application with JS or Sencha or JQuery mobile fusion all. I hope theses helps. :)

what is a good java framework for building server applications? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to code a server daemon application that provides some backend functionality. I'd like to stick to Java since I'm pretty familiar with this language and I figure it'd be much easier to just dig into a new framework and not a new language in parallel.
So far I found many promising frameworks, but all of them resemble somehow a webserver. Thing is, I don't want to code a web-application in terms of web-sites so I doubt that I'll need all the webserver-functionality such as templates and this stuff.
What would be a good suggestion for this purpose or would using a regular web-framework such as "play" without the template-stuff be the best choice?
JAX-WS is a standard for creating SOAP web services. Wikipedia link to see what it is about.
For RESTful you would need to make http requests, usually get and post and this type of service works best if you develop a website. From what I understand you don't want this, but still if ever just check the spring framework.
Raw TCP/IP is so much harder and unless you know exactly what you want (performance and optimization wise) you`re better off using a framework.
A webserver is used to implement webservices. A webserver may serve more than html to clients.
I have a personal "stack" using for a long time that is Jetty + RESTEasy and it serves no html at all (only XML and Json).
Javascript + Rest (Glassfish + Jersey for rest). Glassfish – Java EE Full profile certified reference application server (server will used for REST host).

Help me decide what to use with Google App Engine for this practical work [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm working on a practical work for college, and I have to develop a web-app that could be used by all the teachers from my province.
The application should let the users (teachers) manage some information related to their daily duties. One of the requirements is that I must use
Google App Engine platform for developing and hosting the web application.
I have 2 months to finish the work.
I have some intermediate knowledge of C++, so what language (Python or Java ) and web framework do you think would the best to
develop the application in less time?
I know this is not a strictly programming questions, but please don't delete this post at least until I get a
few answer in order to have an idea of how to proceed.
Many thanks in advance!
I would recommend using Python + Django framework. I love Java, but for the Google App Engine there is much more documentation online for Python.
I would recommend taking a look at Java + slim3. I have my own MVC framework for AppEngine (PhD thesis work), and I really wish I had started after slim3 came out. I'd be using it myself. I can't really speak vs using Python on AppEngine, but I don't think I'd recommend any other Java framework vs slim3. I've tried a few. As an example, I use Struts2 at work. I would not recommend Struts2 given your timeframe -- the learning curve would make your deadline ambitious. Part of this is just due to the fact that Struts2 isn't quite a full stack (saving data in AppEngine is a big deal when you are first learning), which makes only some documentation useful for your particular project. Slim3 sidesteps this by being explicitly targeted to AppEngine.
Go with python and default webapp framework . As you are new to both java and python. Appengine on python has been there for sometime, you will find lots of solution on python as it was introduced earlier. Learning curve is very small in python when compared to java according to me. Also go for eclipse with pydev plugin as your IDE. This will make your deployment and development much easier . Google 's own documentation is the best place to start.
All you need to do is spend some time reading the whole documentation patiently . Even i started with appengine very recently.

Categories

Resources