I need a documentation module in my OpenXava application. Basically it's to allow the user consult the manual in case of doubt.
I think in HTML format.
I saw in the OpenXava documentation the possibility of creating a documentation module:
https://openxava.org/OpenXavaDoc/docs/application_en.html#Application-Documentation%20module
But it only works with Liferay or WebSphere Portal.
Is there a way to do it wihout Liferay or WebSphere Portal?
It is true that the documentation modules are only available within a portal, however the help system works without portal and I think it's just what you're looking for. It can be activated configuring some properties in xava.properties.
Note the Help part in the following doc:
https://openxava.org/OpenXavaDoc/docs/customizing_en.html#Customizing-Xava%20Properties%20Settings
Something like this in xava.properties could work for you:
helpAvailable=true
helpPrefix=help/
If the help is a folder called 'help' inside your application.
Also you can put the help in another server:
helpPrefix=https://www.example.com/help
If it ends with underscore it can have multilanguage support, thus:
helpPrefix=https://www.example.com/myapplication/help_
Where it looks for help_en.html, help_es.html or help_fr.html, depending on the browser language.
Related
I am using OpenTokSamples project for OpenTok API and in that I want to create session id and token id through java code and I implemented the code by calling createSession() method but its throwing error----> Could not find class 'com.fasterxml.jackson.databind.ObjectMapper', referenced from method com.opentok.OpenTok.. I searched a lot and found need to add Jackson-databind jar & Jackson-annotations jar but still the issue is not getting resolved. Please help me on this.
There is another Jackson jar which implements the json<->object mappers.
This jar is jackson-mapper-XXX.jar [1]
If you check the repo [2], it comes with gradle support pointing to the dependencies it needs to build.
[1] http://repository.codehaus.org/org/codehaus/jackson/jackson-mapper-asl/
[2] https://github.com/opentok/Opentok-Java-SDK
You are meant to create sessions and tokens using the OpenTok Server SDKs, not on clients (such as Android).
It sounds like you are most familiar with Java as a language, so I suggest using the OpenTok Java SDK and running it on a server. There is a very easy to understand HelloWorld tutorial in the samples directory, with instructions on how to use it in the README.md file. It will guide you to get the server running locally on your development machine.
An even more useful example might the Learning OpenTok tutorial for Android. It shows how to send a request to a server that returns the session ID and token. The server used in this tutorial is written in PHP, but for your convenience there is a one-click button for starting your own server on Heroku (instead of locally on your development machine).
I hope this provides you all the information you need to start generating sessions and tokens dynamically! Let me know how that turns out, and feel free to give feedback on the tutorials as GitHub Issues in those repositories.
How can I cancel following warning?
Allow access to the following application from this web site?:
Screenshot: http://i.imgur.com/sXN5mLZ.jpg
I also spent few days finding a solution for this problem as well.
And finally today hoping that this resolves our problem as we are still waiting for our applets to be signed by our client.
For our case the solution that works based on our internal testing is to remove the Trusted-Library attribute from MANIFEST.
You may follow this link
JAR File Manifest Attributes for Security
The issue that you are facing is described here. The solution, assuming that you are serving the applet from a known location, is to specify the Caller-Allowable-Codebase attribute in your manifest.
According to the documentation, if you are not doing live connect from a known location, then you should be able to specify Caller-Allowable-Codebase: *.
As a developer you can not let this warning to not appear because of security reasons.
j7u51 prediction
I am working to create a UI using Vaadin, now I want to add this to an existing java web app.
Do I simply need to add the Vaadin jar file, and the java files of vaadin to that web app?
Or is there some procedure to follow, when doing this?
You also need to ensure that the Vaadin ApplicationServlet is being called, and is being sent the right requests. The VAADIN directory has theme information; you need to ensure it is being served as well, or is being served from the code base directly.
See the Book of Vaadin for details on how to configure your web.xml to ensure the right things happen.
Just add the vaadin.jar file to your WEB-INF/lib directory and you're good to go.
edit: see Ross Judson's answer.
I am starting using Liferay Portal and I have two basic needs which I would like to achieve with Liferay.
Is there a posibility to add content to CMS through API level? I would like to insert some data "from code".
More important. How to achieve such situation that for every created user there will be its own homepage generated with some predefined template elements on it?
I have tried to Google something so far, but I did not find it helpful. Maybe some keywords?
After some analysis of documentation devoted to services and ServiceBuilder I realized that it is not what I want.
Let me show an example based on Websphere.
In Websphere we have bunch of EJB components available to perform some actions, exchange information with portal, easy to use. Isn't there any similar mechanism in Liferay not involving web services?
My recommendation for this kind of question is to take a look at the sevencogs-hook sourcecode. The structure of this hook is basically just a long script that runs once, setting up a complete demo site with users, sites, pages, content etc. The code runs once (after the first deployment) and then never again. There are no (obvious) conditionals, no context to understand etc.
You can basically just step through everything and - in that process - understand how content (and pages, images, blog posts, etc.) are created and positioned on pages in Liferay.
This hook accesses the Java API, a very similar API is available through Webservices. Basically all of Liferay's portlets also use the same API to do their business.
Edit: Additional information to keep this answer valuable/current: Sevencogs is discontinued, but still available in old releases (source & binary). The API has slightly changed, so compiling/running it will need a bit of work. James Falkner has blogged about the leftovers and lessons learnt - those snippets are extracted from sevencogs and contain the relevant code pieces to work with the API.
Looking at this page from the documentation: It smells like a SOAP interface (they mention some sort of document uploader service and I've read axis).
You'll find some url examples that should give a list of available webservices.
For number 1, you can use the one of the:
JournalArticleLocalServiceUtil.addArticle()
methods to programmatically add Liferay Web Content from a portlet. If you download the Liferay Portal Source you can see the structure of these methods.
For number 2, can create page templates with preconfigured portlets on them (through the Plugins-SDK), and then use the API to programmatically create the pages using one of the:
LayoutLocalServiceUtil.addLayout()
methods.
If you have any more speific questions about these comment back, and I hope this helps!
I need to create a ticket in BMC Remedy using a Java Code. Can anyone share the java api(get the api's jar file) and some samples to create a ticket using that api in java.
I am unable to understand the answers in the
Create ticket in BMC Remedy via Java
I would suggest looking at the example posted on this page somewhere near the bottom is a working example to create an Incident Ticket using Remedy 7.5. Unfortunately, you must get the api from your Remedy installation, they cannot be given out.
https://communities.bmc.com/communities/message/108563
I have found freely available java doc available on these sites:
7.5: http://www.javasystemsolutions.com/documentation/thirdparty/arapiv75/
7.0: http://www.javasystemsolutions.com/documentation/thirdparty/arapi/
Links to BMC Remedy Java API documentation may be found on this page.
You can apparently access other technical documentation via this page ... but you need to register an account. (Thanks, but no thanks BMC!)