jQWidgets Forums

jQuery UI Widgets Forums General Discussions first try in Eclipse

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • first try in Eclipse #9944

    hamid
    Member

    Hello,
    I’m trying to start working with the widgets. for the beginning, I downloaded the package and added the “widgets” folder and the “scripts” folder to my project. then I added the most simple jsp file to the project. It’s the suggested code from “getting started” guide:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Getting Started</title>
    <!-- add one of the jQWidgets styles -->
    <link rel="stylesheet"
    href="jqwidgets/styles/jqx.base.css" type="text/css" />
    <link rel="stylesheet"
    href="jqwidgets/styles/jqx.darkblue.css" type="text/css" />
    <!-- add the jQuery script -->
    <script type="text/javascript" src="scripts/jquery-1.6.2.min.js"></script>
    <!-- add the jQWidgets framework -->
    <script type="text/javascript" src="jqwidgets/jqxcore.js"></script>
    <!-- add one or more widgets -->
    <script type="text/javascript" src="jqwidgets/jqxbuttons.js"></script>
    </head>
    <body>
    <script type="text/javascript">
    $(document).ready(function () {
    $("#myButton").jqxButton(
    { width: '120px', height: '35px', theme: 'darkblue' }
    );
    });
    </script>
    <input type="button" value="Click Me" id='myButton' />
    </body>
    </html>

    There are two strange errors:

    1- when I added the scripts folder to the project, I got error message for two of the script files: knockout-2.1.0.js and knockout-mapping-2.0.0.js. the error message is too long and is is in the beginning of the file says :”Internal validation error java.lang.ArrayIndexOutOfBoundsException: 11 at …”

    2- when I run the project and open my jsp file from a browser, the button looks to be a normal button (acording to the css files, it should be dark-blue).

    I tried different changes but there was no improvement. I’m really stucked here. I want to do some real work with the widgets. I hope to find some help here.

    Any comment will be appreciated.

    Hamid

    first try in Eclipse #9950

    Peter Stoev
    Keymaster

    Hi hamid,

    I tried to reproduce that, but unfortunately without success.

    Here’s a very simple test that I did:

    1. I installed Eclipse from http://www.eclipse.org/downloads/.
    2. Installed XAMPP, too from http://download.cnet.com/XAMPP/3000-10248_4-10703782.html
    3. Created a new project.
    4. Placed the jqwidgets and scripts folder in the WebContent.
    5. Placed the jqxButton’s defaultfunctionality.htm sample into the same folder.
    6. Updated the path to the JavaScript and CSS files in the defaultfunctionality.htm.
    7. The result below shows my test:

    As far as I see from your post, you have some error messages in the KnockoutJS, but in the sample you posted you don’t use Knockout. Could you send us a sample which demonstrates that to support@jqwidgets.com.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.