Skip to main content

NB 6.1 - Portlet Sample/JMaki Tabbed View

4 replies [Last post]
mcs130
Offline
Joined: 2006-01-26
Points: 0

The following is a post that I have had out on the Netbeans forum for some time that has gone unanswered for the most part. I then recently posted it to nbajax@netbeans.org where it was suggested that I try this forum. Below is the text of the post from the Netbeans forum. If anyone has any insight, I'd be grateful. NOTE: the problem does appear to only occur when using IE 7 - I just confirmed this. I opened the URL: http://localhost:18080/portletdriver/dt in Firefox 3.0.1 and sure enough the portlet renders w/o the error.

-----------------------------------------------------------------------------------------------
I am following (exactly to the letter) the tutorial at:
http://java.sun.com/developer/technicalArticles/tools/nb_portlets/

I drag the JMaki Yahoo Tabbed View from the JMaki palette onto the simple view JSP for the portlet, and then run the Clean and Build and then Run by righ-clicking on the Project. This project is also a Portlet 2.0 project (as described in the article referenced above). Making no code changes to the JSP other than dragging the JMaki Yahoo Tabbed View control onto the page.

When the page loads, I get the following error:

Error loading jmaki.widgets.yahoo.tabbedview.Widget : id=yahoo_tabbedview1<br />
Script: <a href="http://localhost:28080/portletdriver/dt" title="http://localhost:28080/portletdriver/dt">http://localhost:28080/portletdriver/dt</a> (line: 268).<br />
Message: Invalid argument.

I have no clue as to why this occurs - I have never used Jmaki before and am following the tutorial exactly at every step.

Any ideas would be appreciated. Thanks in advance.

Message was edited by: mcs130

Message was edited by: mcs130

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,

Any chance you could let us know what version of jMaki you are using?

You can find this by looking at the jmaki.js 'version' property or look at the number on the WEB-INF/lib/ajax-wrapper-comp-1.X.x where X.x is the version

Also do you know the version of the yahoo Tabbed View widget?

The widget versions may be found in the widget.json for the widgets so for yahoo.dataTable the file would be:

/resources/yahoo/dataTable/widget.json

I have recently done an update to the Yahoo Widgets to implement their latest API so I will also verify on IE 7 but I'd like to see if we can get you running with what you have.

Regards,

-Greg

mcs130
Offline
Joined: 2006-01-26
Points: 0

From Tools->Plugins on Netbeans 6.1

Version: 1.7.3 Source: NetBeans
Plugin Description
jMaki is an Ajax framework that provides a lightweight model for creating JavaScript centric Ajax-enabled web applications using Java, Ruby, PHP, and Phobos.

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

Any chance I could convince you to install the latest Yahoo 1.8.1 widgets?

You don't need to change your Netbeans Plugin Just get the zip file from:

http://jmaki.com/downloads/widgets/

The install it using the instructions in Ludo's Blog:

http://weblogs.java.net/blog/ludo/archive/2007/01/extending_the_j.html

My hope is that the cleanup widgets may already solve your problem.

After you install the latest widgets you will then need to delete

the /resources/yahoo/tabbedView directory (or rename it) and then drag another tabbedview into yoru page. The drag action will copy in the new resources. You can still keep your existing tag declaration there.

-Greg

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

Hi,

Any chance you could let us know what version of jMaki you are using?

You can find this by looking at the jmaki.js 'version' property or look at the number on the WEB-INF/lib/ajax-wrapper-comp-1.X.x where X.x is the version

Also do you know the version of the yahoo Tabbed View widget?

The widget versions may be found in the widget.json for the widgets so for yahoo.dataTable the file would be:

/resources/yahoo/dataTable/widget.json

I have recently done an update to the Yahoo Widgets to implement their latest API so I will also verify on IE 7 but I'd like to see if we can get you running.

Regards,

-Greg