As per instructions on the tapestry-jquery plugin I have tried to add

configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");

after this application would throw an error sayting that I need to setup
jquery alias (the instruction say it will be use some default value). So I
added

configuration.add(JQuerySymbolConstants.JQUERY_ALIAS, "$j");

The application now starts up and when I go to the first page I get the
javascript error 

var jQuery = jQuery; Tapestry.DEBUG_ENABLED = true; var selector = new
Array(); Tapestry.JQUERY=false;
Tapestry.onDOMLoaded(function() {
Tapestry.init({
  "linkSubmit" : [
    {
      "form" : "formUserLogin",
      "clientId" : "linksubmit",
      "mode" : "normal"
    },
    {
      "form" : "formForgottenPassword",
      "clientId" : "linksubmit_0",
      "mode" : "normal"
    },
    {
      "form" : "formRequestUserAccess",
      "clientId" : "linksubmit_0_0",
      "mode" : "normal"
    }
  ],
  "formEventManager" : [
    {
      "formId" : "formUserLogin",
      "validate" : {
        "submit" : true,
        "blur" : true
      }
    },
    {
      "formId" : "formForgottenPassword",
      "validate" : {
        "submit" : true,
        "blur" : true
      }
    },
    {
      "formId" : "formRequestUserAccess",
      "validate" : {
        "submit" : true,
        "blur" : true
      }
    }
  ]
});
$('#slider').bind('slide', function(event, ui)
{$('#sliderValue').text(ui.value);}); // on this line 
$('#slider').bind('slide', function(event, ui)
{$('#sliderValue').text(ui.value);}); 

The error due to the fact that this is now threated as prototype instead of
jquery. 

So my question is do I need to configure something else? How can I force
alias to work?

Also when I use the alias does that mean that all of the scripts that come
from tapestry-jquery world will now use the alias? I would expect that to be
the case.

Cheers all



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-use-both-Jquery-and-Prototype-tp5720478.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to