ORBEON Forms - how to use the Profiler - orbeon

Can anybody share some detailed steps on how to configure the profiler, and how to see the results. It seems that using /profiler/xpl/ or /tools-profiler/xpl/ gives the same error:
Cannot load "/apps/profiler/page-flow.xml" with webapp loader

The XPL profiler has been removed since Orbeon Forms 3.9. You can still find its source code in the "attic", in case you're interested in reviving it, but it isn't currently part of Orbeon Forms and there are no plans to take it out of the attic.

Related

How to integrate Pentaho reporting in struts application

I have a requirement to generate report in Pentaho, and display in jsp pages (in struts application). If any one know about implementation of Pentaho please Replay...
There are multiple ways of doing it. I have done it using Xactions (in Pentaho version 4.x.x). Call the reports in Xactions and then use xaction url from JSP page to embedded it.
Also you can also look at the Pentaho wiki for embedding and extending reports.
There are also similar links :
http://forums.pentaho.com/showthread.php?54076-Calling-Pentaho-Reports-From-JSP
Embedding a Pentaho report inside a panel on another web page
.prpt reports running from java
The basic idea (probably) is to publish the report and call the report using the report URL from the JSP/Java page.
Hope this helps :).

Orbeon 4.7 $.browser is undefined

I have upgraded my application from orbeon 4.4 to orbeon 4.7. On loading forms, in the browser console I'm getting $.browser is undefined.
On debugging I found that orbeon 4.7 is using jQuery v1.11.0 and $.browser is removed from jQuery v1.9.
Any idea why it is still using removed/deprecated $.browser??
How to solve this??
Per the jQuery documentation, "This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.". So you could:
Add the JavaScript for jquery-migrate to your project.
Change your code to check whether the feature you want to use is available, rather than rely on knowing in which browser it is available. (Most front-end developers would recommend you try to use this first.)

Publishing of orbeon forms

Is it possible to do a re-publish of orbeon forms automatically? (ie Forms that have been created with Form Builder and which have been saved and deployed/published before).
Actually we are upgrading from Orbeon 3.9 to Orbeon 4.6, and currently we have lots of orbeon forms in our 3.9 environment. since its very difficult to publish the forms one by one after upgrade to 4.6, it will be good if i can find an easy way to republish all the existing forms.
I found something here at https://github.com/orbeon/orbeon-forms/wiki/Form-Runner-~-Home-Page
When I tried this, I didn't get any error but the forms were not actually published. and I got error when I opened a new instance of any existing forms.
Appreciate if any one can help me on this.
Thanks
Did you check the orbeon log for errors? If orbeon is running in production mode there may be an error that is not displayed to the user.
I haven't gone through an upgrade myself, but it's possible that you need to upgrade your form definitions. Orbeon 4.6 includes a feature to do this in bulk on the Form Runner Home Page. See the 4.6 blog post.

Does Grails have any plugins similar to the django-debug-toolbar (djdt)?

Does Grails have any plugins with functionality similar to the django-debug-toolbar (djdt)?
See this screencast for an introduction to djdt.
Why yes it does grails debug-toolbar:
Grails Debug Toolbar is a plugin
inspired from Django Debug Toolbar
While it doesn't have all the features of djdt it is planned to expand the feature set in the future, here is relevant section from their webpage:
Future work
Currently the views of debugtoolbar
need to go in the grails-app/views of
the application. When you install the
plugin they are automatically copied
to your application grails-app/views.
Need to avoid this.
JavaScript and
static resources for the toolbar
reside in web-app/debugtoolbar. It is
also copied to your application
web-app/debugtoolbar. Need to avoid
this.
A way of ordering the panels in
the toolbar. Currently it is random
depending on how beans are found
during execution of tag.
More useful panels such as Timing the requests, SQL queries, logging etc
It not quite a toolbar (and not a plugin) but Spring Insight gives you detailled request timing right down to the JDBC level. It integrates pretty nicely with Spring Tool Suite from what I've seen.
Check out Peter's screencast: http://www.grails.org/blog/view/pledbrook/New+screencast%3A+Profiling+with+STS+%26+Spring+Insight
You need to deploy your app to Spring's tcServer rather than a plain tomcat which might be fine for development tuning.
cheers
Lee

How do i compute the Time For execution of Each Jquery Statement

Right now I am using jQuery completely for my project (ajax, validations). But I guess due to my statements I assume that it is taking more time and how can I optimize the time for execution of each statement? Say for example I have seen some posts in Stackoverflow saying this statement:
$("div#mydialog").bind('Dialogclose',function(){});
is much slower than this:
$("#mydialog").bind('Dialogclose',function(){});
How can I attain this conclusion? Do I have S Tools for this? How can I optimise the statements in jQuery? What are the best practices to be used in jQuery?
Why not use the PROFILE jquery plug-in from plugins.jquery.com, which was made for just this purpose: PROFILE jquery plug-in
Try running your pages with the FireQuery FireFox extension.
http://firequery.binaryage.com/
FireQuery allows you to inject jQuery Lint (https://github.com/jamespadolsey/jQuery-Lint) into a page, giving you information on jQuery errors and incorrect usage.
You can also use a JavaScript profiler, such as FireBug in FireFox, the IE Developer Console in IE8 or higher, Developer Tools in Chrome, etc. This will give you execution times in each browser which can then be optimized.

Resources