Added RestApi and javascript to get rid of scrolling

In SVN is now a new MOLGENIS that generates a REST API so you can create AJAX type interactions'. It also contains new javascript that remembers the scroll position between page views so you don't have to scroll that much. Find the list of these services at http://localhost:8080/yourproject/api/rest/?_wadl

Because most browsers don't render JSON, I recommend to use http://code.google.com/p/rest-client/ to test your services.

Some people already having a molgenis_distro may have some troubles. If you don't want to check out the molgenis_distro from scratch you can check the following:

1. check web.xml

You need to replace your WebContent/WEB-INF/web.xml with an updated one. The changed two parts around the 'RestServlet?' Find it at http://www.molgenis.org/svn/molgenis_distro/3.3/WebContent/WEB-INF/web.xml

2. library export molgenis

Check if the molgenis project exports its libraries properly

  • right-click your molgenis project and choose properties
  • choose Java EE Module Dependencies
  • make sure that all boxes are selected

Note: this imports all libraries from molgenis to molgenis_distro

3. library import molgenis_distro

Check library references: In Eclipse:

  • right-click your molgenis_distro project and choose properties
  • choose Java Build Path.
  • choose Libraries tab

You should only see two libraries:

  • JRE Systems Library
  • Web App Libraries

All library references to molgenis/lib should be removed. Note that you may have library references you added yourself.

4. project references from molgenis_distro

Check project references from build path

  • right-click your molgenis_distro project and choose properties
  • choose Java Build Path.
  • choose Projects tab

Remove the molgenis project if selected

5. Java EE module depencencies molgenis_distro

Check the Java EE Module Dependencies

  • right-click your molgenis_distro project and choose properties
  • choose Java EE Module Dependencies
  • make sure that the 'molgenis' project is ticket

Note: you may see a long list of blue boxes that also link into MOLGENIS. That is a good thing.

Comments

No comments.