Skip to main content

jMaki Ajax Performance Enhancer

8 replies [Last post]
yummychen
Offline
Joined: 2008-04-07
Points: 0

Hi Greg :

I want to use the new function of "jMaki Ajax Performance Enhancer".
I refere to this article https://ajax.dev.java.net/performance.html.
But i got a error "Error loading widget resource for 'dojo.tabbedview'" , unable to combine resources for widget 'dojo.tabbedview'. Resouce need to be a child of a page tag / compnent.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi YummyChen,

I'm going to need more of a stack trace and a war file if possible to debug this a little more.

Which version / provider of JSF are you using?

-Greg

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi YummyChen,

I'll need to update the document to cover this: You also need a


<head>
<title>Combined Test Without Resources Tag</title>

</head>
<body>
<h2>Combined Test Without Resources Tag</h2>
<a href="index.jsp">Back to Tests</a>
<hr>



</body>

As for the performance enhancer it really is meant for pages that have 2 ore more widgets in them. I am not sure you will see as much of a gain with a single widget.

-G

yummychen
Offline
Joined: 2008-04-07
Points: 0

Hi Greg :

Yes, I have many widgets in a page.
So if i have many widgets in a page , i can use this enhancer to get a better performance?

I got another error after i added the tag of ""

嚴重的: Servlet.service() for servlet Faces Servlet threw exception
java.io.IOException: Illegal to flush within a custom tag
at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:80)
at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:185)
at org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:166)
at org.apache.jsp.index_jsp._jspx_meth_a_005fpage_005f0(index_jsp.java:124)

gmurray71
Offline
Joined: 2003-07-31
Points: 0

I take it you are using Tomcat?

What does your JSP page look like?

-G

yummychen
Offline
Joined: 2008-04-07
Points: 0

Yes, I use the tomcat of version 6.0.18

I use JSF and i have a index.jsp that have a tabbedview widget and five tab page include another five jsf page.

yummychen
Offline
Joined: 2008-04-07
Points: 0

Hi greg :

Any update about this issue?
I found another thing that the dojo.tabbedview can't work normally in Firefox 3.0. It just can load one of the tab page and the other pages were always on the loading status.
Do you know how to fix it.
Thanks.

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Are you sure the URLs are right on the included pages. You can verify this by turning on jmaki.debug=true and you will see an error message.

If the pages are right you may want to consider using iframes on the tabs in question using the iframe : true property and also using the lazyload : true property

-Greg

yummychen
Offline
Joined: 2008-04-07
Points: 0

The following was the server side message :

2008/11/11 上午 10:02:24 jmaki.runtime.AjaxContext buildResourceReference
警告: unable to locate resource in webapp or classpath, using the unverified and unaltered Uri: '/resources/dojo/dijit/resources/libs/dojo/v1.2.0/dojo/dojo.js'
2008/11/11 上午 10:02:24 jmaki.runtime.AjaxContext buildResourceReference
警告: unable to locate resource in webapp or classpath, using the unverified and unaltered Uri: '/resources/dojo/dijit/resources/libs/dojo/v1.2.0/dijit/themes/tundra/tundra.css'
2008/11/11 上午 10:02:24 jmaki.runtime.jsp.WidgetTag doEndTag
嚴重的: unable to combine resources for widget 'dojo.dijit.tabbedview'. Resources need to be a child of a page tag / component.