working on my first wicket web 2.0 scriptaculos component

2008-02-13 Thread Fernando Wermus
Hi all,
 I am working on rtying to reproduce this behavior
http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo.
Two sortable list which you can reorder de item in it a between them.
This is the html generated by my component, but it seems
not to work. It doesn't call the component back. I was reading on the
net about some constrains in the ids and I think I apply to it.
However, I am still in troubles. The dinamic part works, not the call back.

div id=holder6 wicket:id=holder
div class=node 
ul id=firstlist7 wicket:id=firstlist
li id=firstlistFirstlist_0 
wicket:id=firstlistFirstlist
span wicket:id=nombreLabela/span
/lili id=firstlistFirstlist_1 
wicket:id=firstlistFirstlist
span wicket:id=nombreLabela/span

/li
/ul
/div
div class=node 
ul id=secondlist8 wicket:id=secondlist
li id=secondlistSecondlist_0 
wicket:id=secondlistSecondlist
span wicket:id=nombreLabel2a/span
/lili id=secondlistSecondlist_1 
wicket:id=secondlistSecondlist

span wicket:id=nombreLabel2a/span
/li
/ul
/div
/div
script type=text/javascript
Sortable.create('firstlist7',
{dropOnEmpty:true,containment:['firstlist7','secondlist8'],constraint:false},
{
  onUpdate: function(element) {
wicketAjaxGet('?x=6*%3A1%3Atabs%3Apanel%3Amensajes%3Apanel%3Aholder%3A1%3AIActivePageBehaviorListener%3A0%3A%26amp%3Bwicket%3AignoreIfNotActive%3Dtrue'
+ Sortable.serialize(element)); }
}
);
Sortable.create('secondlist8',
{dropOnEmpty:true,containment:['firstlist7','secondlist8'],constraint:false},
{
  onUpdate: function(element) {
wicketAjaxGet('?x=6*%3A1%3Atabs%3Apanel%3Amensajes%3Apanel%3Aholder%3A1%3AIActivePageBehaviorListener%3A0%3A%26amp%3Bwicket%3AignoreIfNotActive%3Dtrue'
+ Sortable.serialize(element)); }
}
);
/script



-- 
Fernando Wermus.


Re: working on my first wicket web 2.0 scriptaculos component

2008-02-13 Thread Igor Vaynberg
here is the list of things to try:

are there any javascript errors during callback?
try without encrypted coding strategy
set a break point in wicketfilter and see why it doesnt hit the behavior

-igor


On Feb 13, 2008 6:15 AM, Fernando Wermus [EMAIL PROTECTED] wrote:
 Hi all,
  I am working on rtying to reproduce this behavior
 http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo.
 Two sortable list which you can reorder de item in it a between them.
 This is the html generated by my component, but it seems
 not to work. It doesn't call the component back. I was reading on the
 net about some constrains in the ids and I think I apply to it.
 However, I am still in troubles. The dinamic part works, not the call back.

 div id=holder6 wicket:id=holder
 div class=node 
 ul id=firstlist7 wicket:id=firstlist
 li id=firstlistFirstlist_0 
 wicket:id=firstlistFirstlist
 span wicket:id=nombreLabela/span
 /lili id=firstlistFirstlist_1 
 wicket:id=firstlistFirstlist
 span wicket:id=nombreLabela/span

 /li
 /ul
 /div
 div class=node 
 ul id=secondlist8 wicket:id=secondlist
 li id=secondlistSecondlist_0 
 wicket:id=secondlistSecondlist
 span 
 wicket:id=nombreLabel2a/span
 /lili id=secondlistSecondlist_1 
 wicket:id=secondlistSecondlist

 span 
 wicket:id=nombreLabel2a/span
 /li
 /ul
 /div
 /div
 script type=text/javascript
 Sortable.create('firstlist7',
 {dropOnEmpty:true,containment:['firstlist7','secondlist8'],constraint:false},
 {
   onUpdate: function(element) {
 wicketAjaxGet('?x=6*%3A1%3Atabs%3Apanel%3Amensajes%3Apanel%3Aholder%3A1%3AIActivePageBehaviorListener%3A0%3A%26amp%3Bwicket%3AignoreIfNotActive%3Dtrue'
 + Sortable.serialize(element)); }
 }
 );
 Sortable.create('secondlist8',
 {dropOnEmpty:true,containment:['firstlist7','secondlist8'],constraint:false},
 {
   onUpdate: function(element) {
 wicketAjaxGet('?x=6*%3A1%3Atabs%3Apanel%3Amensajes%3Apanel%3Aholder%3A1%3AIActivePageBehaviorListener%3A0%3A%26amp%3Bwicket%3AignoreIfNotActive%3Dtrue'
 + Sortable.serialize(element)); }
 }
 );
 /script



 --
 Fernando Wermus.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]