RE: Got5-JQuery: Any way to disable serving of minified .js files?

2012-07-23 Thread Demey Emmanuel
There is no way to avoid minification in Tapestry5-JQuery. The only constant we 
use is PRODUCTION_MODE.

-Message d'origine-
De : Lenny Primak [mailto:lpri...@hope.nyc.ny.us]
Envoyé : lundi 23 juillet 2012 06:52
À : Tapestry users
Objet : Re: Got5-JQuery: Any way to disable serving of minified .js files?


Not sure, Chris.  Doesn't pass the 'smell test' either :)


On Jul 23, 2012, at 12:48 AM, Chris Mylonas wrote:

> Right..sorry :)
>
> Does setting the execution mode for jquery to DevelopmentMode sound like it 
> could be useful?
> http://tapestry.apache.org/configuration.html#Configuration-SettingExe
> cutionModes
>
>
> CM
>
> On 23/07/2012, at 2:36 PM, Lenny Primak wrote:
>
>> That's just it.  I don't want to comment it out.  It works perfectly,
>> and compresses all other .js files like its supposed to.
>> It has trouble with JQuery stuff because it is already served
>> minimized in production mode, which is exactly what I am trying to avoid.
>>
>> On Jul 23, 2012, at 12:34 AM, Chris Mylonas wrote:
>>
>>> Hi Lenny,
>>> Try commenting out yuicompressor stuff in your pom HTH Chris On
>>> 23/07/2012, at 1:07 PM, Lenny Primak wrote:
>>>
 I have a working tapestry-yuicompressor environment, which compresses .js 
 files.
 In production mode, Got5-JQuery serves .min.js files, which blow up
 YUIcompressor, and causing 1000s or warnings.

 Is there any way to disable JQuery serving .min.js files?

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

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


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


Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée 
quant au contenu de ce message. Bien que les meilleurs efforts soient faits 
pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne 
aucune garantie à cet égard et sa responsabilité ne saurait être recherchée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted.


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



RE: T5.2.6 jquery2.6.0 jquery dialog close from included component

2012-03-14 Thread Demey Emmanuel
How do you want to close it ? with a link ?

$("'selector"). .dialog( "close" ) in JavaScript

http://jqueryui.com/demos/dialog/

Manu



-Message d'origine-
De : resign [mailto:sergejb...@yahoo.de]
Envoyé : mercredi 14 mars 2012 14:19
À : users@tapestry.apache.org
Objet : T5.2.6 jquery2.6.0 jquery dialog close from included component

Hi,
is it possible to close the jquery dialog from included coponent?

...





...

Thanks,
resign

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-6-jquery2-6-0-jquery-dialog-close-from-included-component-tp5564657p5564657.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




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée 
quant au contenu de ce message. Bien que les meilleurs efforts soient faits 
pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne 
aucune garantie à cet égard et sa responsabilité ne saurait être recherchée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted.


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



RE: Testing Palette component with HTMLUnit

2012-03-07 Thread Demey Emmanuel
I had the same problem with the Selenium test of the Tapestry-jQuery version of 
the Palette component .

Please check my test class : 
https://github.com/got5/tapestry5-jquery/blob/master/src/test/java/org/got5/tapestry5/jquery/PaletteTest.java

Manu

-Message d'origine-
De : Stephan Windmüller [mailto:stephan.windmuel...@tu-dortmund.de]
Envoyé : mercredi 7 mars 2012 10:27
À : users@tapestry.apache.org
Objet : Testing Palette component with HTMLUnit

Hello!

Did anyone try to test a page containing the palette component with 
Selenium/HTMLUnit?

FirefoxDriver works perfectly, but if I select an option in the palette with 
HTMLUnit, the add button is not enabled.

- Stephan



Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée 
quant au contenu de ce message. Bien que les meilleurs efforts soient faits 
pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne 
aucune garantie à cet égard et sa responsabilité ne saurait être recherchée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted.


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



RE: Header text for recordError()

2012-03-02 Thread Demey Emmanuel
Hi

Please check the documentation of the Errors component : 
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Errors.html

There is a banner parameter.

Manu



-Message d'origine-
De : Markus Grell [mailto:tapes...@military.de]
Envoyé : vendredi 2 mars 2012 14:29
À : users@tapestry.apache.org
Objet : Header text for recordError()

Greetings!

After submitting a form I'nm using recordError() to display errors.
recordError() produces a red box with the following header:
"You must correct the following errors before continuing."

Who can I change that text?

Any ideas?

markus



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




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée 
quant au contenu de ce message. Bien que les meilleurs efforts soient faits 
pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne 
aucune garantie à cet égard et sa responsabilité ne saurait être recherchée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted.


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



RE: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

2012-02-14 Thread Demey Emmanuel
You can add a handler to the update event of the Sortable widget : 
http://jqueryui.com/demos/sortable/#default. And in this handler,  send an 
Tapestry Event-type request, that you will be able to catch in your Java Class.

$( "#sortable" ).sortable({
  update: function {
ajaxRequest = {
url: ${url} + "?list="+ 
$("#sortable").sortable("toArray").toString(),
   success: function(data){ }
 };
 $.ajax(ajaxRequest);
  }
});

And in your Java Class, add this method
@Inject
private ComponentResources resources;

public String getUrl(){
  resources.createEventLink("sortable", null);
}

@OnEvent("sortable")
public void onSort(){
  String input = request.getParameter("list");
   System.out.println(input);
}

I did not test it.

Manu
-Message d'origine-
De : sommeralex [mailto:alexander.som...@gmail.com]
Envoyé : mardi 14 février 2012 15:20
À : users@tapestry.apache.org
Objet : Re: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

last question:

how can I get the order-information back to java? After sorting, i need to know 
how it was sorted to save it..

thx
alex

2012/2/14 Alexander Sommer 

> THANK YOU!!
>
> But the best thing would be to provide a sortable-list component :-)
>
> alex
>
> 2012/2/14 Emmanuel DEMEY-2 [via Tapestry] <
> ml-node+s1045711n548254...@n5.nabble.com>
>
>  It comes from Tapestry5-jQuery. By default, TjQ import jquery, and
> some
>> jquery.ui files.
>> But if you need more, you have to use this annotation. You are right,
>> it is not documented in the web site, I add it into my to-do list.
>> Manu
>>
>> -Message d'origine-
>> De : sommeralex [mailto:[hidden
>> email]]
>>
>> Envoyé : mardi 14 février 2012 15:13
>> À : [hidden email]
>> 
>> Objet : Re: How to use the jQuery Ajax examples from
>> http://jqueryui.com/demos/
>>
>> Hi Emmanuel!
>>
>> THIS WAS IT!!! THANK YOU
>>
>> @ImportJQueryUI({"jquery.ui.mouse", "jquery.ui.sortable"}) public
>> class Sort {
>>
>> }
>>
>>
>> but, where is the @ImportJQueryUI annotation coming from? I could not
>> find it in the help files..
>>
>>
>> 2012/2/14 Emmanuel DEMEY-2 [via Tapestry] < [hidden email]
>> >
>>
>> > Are the needed dependencies loaded ? UI Mouse ?  UI Sortable ?? You
>> > should have a JavaScript errors if you use FireBug or Google chrome
>> > web
>> toolkit.
>> > Check the Overview tab of the documentation :
>> > http://jqueryui.com/demos/sortable/. UI Core and UI Widget are
>> > loaded automatically loaded by Tapestry jQuery.
>> > Please add this annotation at the top of your Java Class :
>> > @ImportJQueryUI({"jquery.ui.mouse", "jquery.ui.sortable"})
>> >
>> >
>> > Manu
>> >
>> > -Message d'origine-
>> > De : Thiago H. de Paula Figueiredo [mailto:[hidden
>> > email]]
>> >
>> > Envoyé : mardi 14 février 2012 15:01 À : [hidden email]
>> > ;
>> > sommeralex
>> > Objet : Re: How to use the jQuery Ajax examples from
>> > http://jqueryui.com/demos/
>> >
>> >
>> > Isn't your JavaScript code added before the elements it will use?
>> > Try putting your code in the end of the page. Another reason to put
>> > your code in file and add it to your page through @Import.
>> >
>> > On Tue, 14 Feb 2012 11:55:56 -0200, sommeralex <[hidden
>> > email]>
>> > wrote:
>> >
>> > > Hi Emmanuel,
>> > >
>> > > Thank you for your help.. it is frustrating.. The list is
>> > > visible, but not interactive.
>> > >
>> > > AppModule
>> > >
>> > > configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE,
>> > > "true");
>> > >
>> > > JAVA
>> > >
>> > > package com.scrollstory.pages;
>> > >
>> > > import org.apache.tapestry5.annotations.Import;
>> > >
>> > >
>> > > public class Sort {
>> > >
>> > > }
>> > >
>> > > TML
>> > >
>> > > http://tapestry.apache.org/schema/tapestry_5_3.xsd";
>> > > xmlns:j="tapestry-library:jquery">
>> > >
>> > >
>> > >
>> > > 
>> > > #sortable { list-style-type: none; margin: 0; padding: 0; width:
>> > > 60%; }
>> > > #sortable li { margin: 0 3px 3px 3px; padding: 0.4em;
>> padding-left:
>> > > 1.5em; font-size: 1.4em; height: 18px; }
>> > > #sortable li span { position: absolute; margin-left: -1.3em; }
>> > > 
>> > > 
>> > > $(function() {
>> > > $( "#sortable" ).sortable();
>> > > $( "#sortable" ).disableSelection();
>> > > });
>> > > 
>> > >
>> > >
>> > > 
>> > >
>> > > 
>> > > Item 1
>> > > Item 2
>> > > Item 3
>> > > Item 4
>> > > Item 5
>> > > Item 6
>> > > Item 7 
>> > >
>> > > 
>> > >
>> > >
>> > >
>> > > 
>> > > 
>> > > Enable a group of DOM elements to be sortable. Click on and
>> > > drag
>> an
>> > > element to a new spot within the l

RE: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

2012-02-14 Thread Demey Emmanuel
Or you can also contribute to our Library ? ;)

-Message d'origine-
De : sommeralex [mailto:alexander.som...@gmail.com]
Envoyé : mardi 14 février 2012 15:18
À : users@tapestry.apache.org
Objet : Re: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

THANK YOU!!

But the best thing would be to provide a sortable-list component :-)

alex

2012/2/14 Emmanuel DEMEY-2 [via Tapestry] <
ml-node+s1045711n548254...@n5.nabble.com>

> It comes from Tapestry5-jQuery. By default, TjQ import jquery, and
> some jquery.ui files.
> But if you need more, you have to use this annotation. You are right,
> it is not documented in the web site, I add it into my to-do list.
> Manu
>
> -Message d'origine-
> De : sommeralex [mailto:[hidden
> email]]
>
> Envoyé : mardi 14 février 2012 15:13
> À : [hidden email]
> 
> Objet : Re: How to use the jQuery Ajax examples from
> http://jqueryui.com/demos/
>
> Hi Emmanuel!
>
> THIS WAS IT!!! THANK YOU
>
> @ImportJQueryUI({"jquery.ui.mouse", "jquery.ui.sortable"}) public
> class Sort {
>
> }
>
>
> but, where is the @ImportJQueryUI annotation coming from? I could not
> find it in the help files..
>
>
> 2012/2/14 Emmanuel DEMEY-2 [via Tapestry] < [hidden email]
> >
>
> > Are the needed dependencies loaded ? UI Mouse ?  UI Sortable ?? You
> > should have a JavaScript errors if you use FireBug or Google chrome
> > web
> toolkit.
> > Check the Overview tab of the documentation :
> > http://jqueryui.com/demos/sortable/. UI Core and UI Widget are
> > loaded automatically loaded by Tapestry jQuery.
> > Please add this annotation at the top of your Java Class :
> > @ImportJQueryUI({"jquery.ui.mouse", "jquery.ui.sortable"})
> >
> >
> > Manu
> >
> > -Message d'origine-
> > De : Thiago H. de Paula Figueiredo [mailto:[hidden
> > email]]
> >
> > Envoyé : mardi 14 février 2012 15:01 À : [hidden email]
> > ;
> > sommeralex
> > Objet : Re: How to use the jQuery Ajax examples from
> > http://jqueryui.com/demos/
> >
> >
> > Isn't your JavaScript code added before the elements it will use?
> > Try putting your code in the end of the page. Another reason to put
> > your code in file and add it to your page through @Import.
> >
> > On Tue, 14 Feb 2012 11:55:56 -0200, sommeralex <[hidden
> > email]>
> > wrote:
> >
> > > Hi Emmanuel,
> > >
> > > Thank you for your help.. it is frustrating.. The list is visible,
> > > but not interactive.
> > >
> > > AppModule
> > >
> > > configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE,
> > > "true");
> > >
> > > JAVA
> > >
> > > package com.scrollstory.pages;
> > >
> > > import org.apache.tapestry5.annotations.Import;
> > >
> > >
> > > public class Sort {
> > >
> > > }
> > >
> > > TML
> > >
> > > http://tapestry.apache.org/schema/tapestry_5_3.xsd";
> > > xmlns:j="tapestry-library:jquery">
> > >
> > >
> > >
> > > 
> > > #sortable { list-style-type: none; margin: 0; padding: 0; width:
> > > 60%; }
> > > #sortable li { margin: 0 3px 3px 3px; padding: 0.4em;
> padding-left:
> > > 1.5em; font-size: 1.4em; height: 18px; }
> > > #sortable li span { position: absolute; margin-left: -1.3em; }
> > > 
> > > 
> > > $(function() {
> > > $( "#sortable" ).sortable();
> > > $( "#sortable" ).disableSelection();
> > > });
> > > 
> > >
> > >
> > > 
> > >
> > > 
> > > Item 1
> > > Item 2
> > > Item 3
> > > Item 4
> > > Item 5
> > > Item 6
> > > Item 7 
> > >
> > > 
> > >
> > >
> > >
> > > 
> > > 
> > > Enable a group of DOM elements to be sortable. Click on and
> > > drag
> an
> > > element to a new spot within the list, and the other items
> > > will adjust to
> > > fit. By default, sortable items share draggable
> > > properties.
> > > 
> > > 
> > >
> > > 
> > >
> > > 2012/2/14 Emmanuel DEMEY-2 [via Tapestry] < [hidden email]
> > > >
> > >
> > >> Hi
> > >>
> > >> You are totally right, Tapestry includes Prototype and
> > >> Script.aculo.usJavaScript libraries by default. You can use
> > >> JavaScript
> > :
> > >> - Directly in the template, inside a 

RE: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

2012-02-14 Thread Demey Emmanuel
It comes from Tapestry5-jQuery. By default, TjQ import jquery, and some 
jquery.ui files.
But if you need more, you have to use this annotation. You are right, it is not 
documented in the web site, I add it into my to-do list.
Manu

-Message d'origine-
De : sommeralex [mailto:alexander.som...@gmail.com]
Envoyé : mardi 14 février 2012 15:13
À : users@tapestry.apache.org
Objet : Re: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

Hi Emmanuel!

THIS WAS IT!!! THANK YOU

@ImportJQueryUI({"jquery.ui.mouse", "jquery.ui.sortable"}) public class Sort {

}


but, where is the @ImportJQueryUI annotation coming from? I could not find it 
in the help files..


2012/2/14 Emmanuel DEMEY-2 [via Tapestry] <
ml-node+s1045711n5482529...@n5.nabble.com>

> Are the needed dependencies loaded ? UI Mouse ?  UI Sortable ?? You
> should have a JavaScript errors if you use FireBug or Google chrome web 
> toolkit.
> Check the Overview tab of the documentation :
> http://jqueryui.com/demos/sortable/. UI Core and UI Widget are loaded
> automatically loaded by Tapestry jQuery.
> Please add this annotation at the top of your Java Class :
> @ImportJQueryUI({"jquery.ui.mouse", "jquery.ui.sortable"})
>
>
> Manu
>
> -Message d'origine-
> De : Thiago H. de Paula Figueiredo [mailto:[hidden
> email]]
>
> Envoyé : mardi 14 février 2012 15:01
> À : [hidden email]
> ;
> sommeralex
> Objet : Re: How to use the jQuery Ajax examples from
> http://jqueryui.com/demos/
>
>
> Isn't your JavaScript code added before the elements it will use? Try
> putting your code in the end of the page. Another reason to put your
> code in file and add it to your page through @Import.
>
> On Tue, 14 Feb 2012 11:55:56 -0200, sommeralex <[hidden
> email]>
> wrote:
>
> > Hi Emmanuel,
> >
> > Thank you for your help.. it is frustrating.. The list is visible,
> > but not interactive.
> >
> > AppModule
> >
> > configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "true");
> >
> > JAVA
> >
> > package com.scrollstory.pages;
> >
> > import org.apache.tapestry5.annotations.Import;
> >
> >
> > public class Sort {
> >
> > }
> >
> > TML
> >
> > http://tapestry.apache.org/schema/tapestry_5_3.xsd";
> > xmlns:j="tapestry-library:jquery">
> >
> >
> >
> > 
> > #sortable { list-style-type: none; margin: 0; padding: 0; width:
> > 60%; }
> > #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left:
> > 1.5em; font-size: 1.4em; height: 18px; }
> > #sortable li span { position: absolute; margin-left: -1.3em; }
> > 
> > 
> > $(function() {
> > $( "#sortable" ).sortable();
> > $( "#sortable" ).disableSelection();
> > });
> > 
> >
> >
> > 
> >
> > 
> > Item 1
> > Item 2
> > Item 3
> > Item 4
> > Item 5
> > Item 6
> > Item 7 
> >
> > 
> >
> >
> >
> > 
> > 
> > Enable a group of DOM elements to be sortable. Click on and drag an
> > element to a new spot within the list, and the other items will
> > adjust to
> > fit. By default, sortable items share draggable
> > properties.
> > 
> > 
> >
> > 
> >
> > 2012/2/14 Emmanuel DEMEY-2 [via Tapestry] < [hidden email]
> > >
> >
> >> Hi
> >>
> >> You are totally right, Tapestry includes Prototype and
> >> Script.aculo.usJavaScript libraries by default. You can use
> >> JavaScript
> :
> >> - Directly in the template, inside a 

RE: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

2012-02-14 Thread Demey Emmanuel
Hi

You are totally right, Tapestry includes Prototype and Script.aculo.us 
JavaScript libraries by default. You can use JavaScript :
- Directly in the template, inside a 

RE: How to use the jQuery Ajax examples from http://jqueryui.com/demos/

2012-02-14 Thread Demey Emmanuel
Hi Alexander

It is not mandatory to add the JQueryModule into the @SubModule annotation. It 
will be loaded automatically.

Your template

About suppressing Prototype, where do you change the value of this constant?

Manu



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-use-the-jQuery-Ajax-examples-from-http-jqueryui-com-demos-tp5482269p5482269.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




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée 
quant au contenu de ce message. Bien que les meilleurs efforts soient faits 
pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne 
aucune garantie à cet égard et sa responsabilité ne saurait être recherchée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted.


RE: implementing a sortable list with jQuery

2012-02-13 Thread Demey Emmanuel
Hi Alexander

question 1:
Tapestry5-jQuery insert a default CSS stylesheet. If you want to override it, 
you need to use the JQuerySymbolConstants.JQUERY_UI_DEFAULT_THEME constant


question 2:
Where this code come from ? JavaScript ?  Template ? do you have a getPageName 
method in your Java class ? or an @property annotated variable, called pageName 
?


-Message d'origine-
De : sommeralex [mailto:alexander.som...@gmail.com]
Envoyé : lundi 13 février 2012 16:07
À : users@tapestry.apache.org
Objet : implementing a sortable list with jQuery

Hi!

I need to have sortable list by dragging the list elements and would like to 
store the order at the end.

The http://tapestry5-jquery.com/core/docsgrid does not provide a component, so 
i thought i could take this one:
http://blogs.fau.de/pp/2010/09/01/sortierbare-elemente-in-tapestry-per-jquery-ui/

What i did, so far, is this:

http://tapestry.apache.org/schema/tapestry_5_3.xsd";
  xmlns:p="tapestry:parameter"
xmlns:j="tapestry-library:jquery">






${fileElement.id} ${fileElement.name}  # 
${message:save} 



And my class file:

@Property
private List fileElements;

@Property
private FileElement fileElement;

void pageAttached(){
System.out.println("page attached");
uploadedFiles = new ArrayList();
fileElements = new ArrayList();

fileElements.add(new FileElement(1, "test"));
fileElements.add(new FileElement(2, "test2"));
}

the class FileElement is just a class with id as int and name as String with 
getters / setters.

so, now, two questions:

question 1:
http://blogs.fau.de/pp/2010/09/01/sortierbare-elemente-in-tapestry-per-jquery-ui/
says we have to implement








but, is this not implicit in xmlns:j="tapestry-library:jquery ? if i have to 
add this that way, how can i reference my jquery asset which is stored in my 
mvn. folder?

question 2:

if i am adding the second part of code

function storeOrder() {
var result = $('#sortable').sortable('toArray');
var context = "";
for (var id in result) {
if (context == "") {
context = result[id];
} else {
context = context + "_" + result[id];
}
}
window.location = "/${pageName}" + ".save/" + context; }

i get the exception

Exception assembling root component of page Gallery: Could not convert 
'pageName' into a component parameter binding: Exception generating conduit for 
expression 'pageName': Class com.scrollstory.pages.Gallery does not contain a 
property (or public field) named 'pageName'.

.. so, sorting my list does not work.. :-(



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/implementing-a-sortable-list-with-jQuery-tp5479509p5479509.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




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée 
quant au contenu de ce message. Bien que les meilleurs efforts soient faits 
pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne 
aucune garantie à cet égard et sa responsabilité ne saurait être recherchée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted.


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