Is it possible to include gwt tags into gsp page. I've installed gwt grails plugin but I haven't been able to achieve this yet.
Its possible to include dojo tags into gsp page after u install the dojo grails plugin
I think you're mixing up the context where these tags are supposed to be used.
GSP tags are for creating a server-side template that will be rendered and sent to the browser as completed HTML. GWT's ui:binder tags are for creating a template that's compiled by GWT and used to generate a page on the client-side within the browser. They operate in two different realms.
Related
I am using Eclipse Mars and my application server is Tomcat. I have an .xhtml opened with Web Page Editor
When ever I hover over a tag,e.g. f:selectItem, I just see:
Element : f:selectItem
I'd like to see the documentation about the tag, e.g:
The SelectItem tag adds a child UISelectItem component to the component associated with the enclosing tag. In the HTML renderkit, this creates a single element. It can be used with any of the select tags in the JSF HTML tag library. The body content of this tag must be empty.
JSF SelectItem Docs
Is there any new way I can configure the eclipse to do show the javadocs in tag description?
I have GWT Web application and web template that consists of html+css+javascript files.
UiBinder holds html template in HTMLPanel. Problem is that this template is based on many javascript files and I know that GWT have problems with that. So my page is rendered without some javascript features.
What can I do with this? What is correct solution for GWT and external web templates?
The issue is not GWT-specific: you cannot inject <script>s using innerHTML (which HTMLPanel ultimately uses).
If you need to dynamically inject scripts in your app, then use ScriptInjector.
I have a GWT Application , I need to add Jquery in my GWT
as i wish to have HighCharts in GWT and for that i have to have Jquery coz HighCharts need them for that purpose I need to have Jquery in my Page
How to add Jquery in my GWT Page ?
Thanks
You should probably use gwtQuery instead. It's a port of jQuery written for GWT.
If you really think you need to use jQuery, download the js from their site, add it to your war directory, and reference it in your entry point's HTML file.
you can use jquery in gwt application easily using native method.
you have to add js files in html page and than create class that contain only JSNI methods and jsobject and you can easily use jquery in your gwt application
you can easily learn from http://code.google.com/p/gwtquery-ui/
I wanted to know how Orbeon Forms work in Liferay because the Web Forms portlet is very limited, so I visited Orbeon's website and read its documentation. Then I downloaded it and ran in a Tomcat server, I built a form with the Form Builder and then tried it with the Form Runner.
My question is, how can I export one of the forms I created with the Form Builder to include it in Liferay as a portlet for example? Is that possible? Can I export a form into a WAR for example and then deploy it into Liferay?
I know you can deploy Orbeon Forms into liferay but I only want to include a specific form, not all the application with the Form Builder, the examples etc.
Could anyone help me?
First, a clarification: if what you mean is that you just want "the form", in the sense of just the XHTML, that can't work because any form built with Orbeon Forms needs a runtime to function. If the form is created with Form Builder, that means the Form Runner runtime. Either way you will need an Orbeon Forms portlet or servlet.
The forms you create, when published, are stored into a database. By default this is the built-in eXist XML database, but you can use Oracle, MySQL, or your custom persistence layer.
In order to see forms in Liferay, you have two possibilities:
The Form Runner Liferay proxy portlet
The full Orbeon Forms portlet
I recommend you peruse these two pages for details.
How it works depends on which type of portlet you use.
If using the proxy portlet, then the portlet is very lightweight and just forwards requests to a separate webapp running the Form Runner runtime. You configure the portlet to point to a specific form.
If using the full portlet, then Form Runner runs directly as a portlet. Here the portlet will load a landing page, and you probably will want to modify that landing page to point to the forms you want your users to see.
In both cases, your published form will be found as long as Form Runner points to the right database.
In your case it seems like the proxy portlet might be your best option. Note that lots of bug fixes have taken place with the proxy portlet since 3.9, so I would recommend a nightly build. For reference here is the source of the proxy portlet.
I want to design a website using GWT. This is my understanding of how GWT pages will be delivered to the client browser - When the user puts in the URL into her browser she receives all the static HTML + GWT javascript, and then the javascript queries the server for the dynamic page content and adds it to the DOM. eg - For a blog page the content of the blog is queried by the javascript. is my understanding correct?
If I know that the content will surely be a part of the page(add does not depend on user clicking an expand button etc.), Will it be more efficient if the blog content was a part of the HTML initially served? Something that could be done by using a templating engine like django.
Is there a way to make a templating mechanism in GWT?
Yes, putting your content into the HTML will reduce the number of round trips the client makes to your server. It also means that the blog content won't have to wait for your GWT javascript to load before it can be displayed.
GWT itself isn't useful for a template system, but most servers that run GWT servlets will also support JSP pages. GWT works fine with these pages, you just need to put the GWT script tag in as usual. You will no doubt be able to find a ready-made templating solution but rolling your own is not too hard.