Re: [ANN] Tapestry5-jQuery 2.6.0

2011-08-25 Thread Clément Uster
But I guess some work has to be done to fit the new tapestry 5.3 javascript
spirit.



2011/8/25 Clément Uster 

>
> Thanks,
> There is a specific branch on github for tapestry 5.3 ;)
> https://github.com/got5/tapestry5-jquery/tree/Tapestry-jquery_T53
>
>
> On 25 August 2011 11:42, Igor Drobiazko  wrote:
>
>> Great job, guys. Do you have any plans to migrate the lib to Tapestry 5.3?
>>
>> On Thu, Aug 25, 2011 at 11:36 AM, Emmanuel DEMEY > >wrote:
>>
>> > I am pleased to announce the new release of the Tapestry-jQuery Project
>> :
>> > Tapestry5-jQuery 2.6.0 (based on Tapestry 5.2.6)
>> >
>> >
>> >
>> > A lot of new features :
>> >
>> >  -   New Components : Carousel, CheckBox, RangeSlide, Slider,
>> SuperfishMenu
>> >
>> >
>> >  -   New Mixins :
>> >
>> >  -CutomDatepicker : This mixin allows us to change the
>> JSONObject
>> > parameter of the jQuery Datefield.
>> >
>> >  -CustomZone : very useful for customizing the effect used by
>> the
>> > Zone component.
>> >
>> >  -Mask : used to specify a specific format for your inputs.
>> >
>> >  -Reveal : for displaying a modal window.
>> >
>> >  -Tooltip : it allows you to display a tooltip for all your
>> inputs.
>> >
>> >  -Bind : used to connect java/javascript objects to jQuery
>> events.
>> >
>> > -A Widget class, which is useful for creating a new jQuery widget
>> very
>> > easily.  We will just have to create a new mixin, extending this class
>> (for
>> > importing the assets for example), and the jQuery widget constructor
>> will
>> > be
>> > called automatically.
>> >
>> > -A New selector prefix binding and mixin. It is automatically
>> injected
>> > into components that support getClientId. The new prefix binding will be
>> > used to get the clientId of a Tapestry Component. We just have to
>> specify
>> > the t:id of the desired component.
>> >
>> > -A documentation site with a lot of samples
>> >
>> >
>> >
>> > If you want to test it, please add this dependency into your pom.xml
>> file :
>> >
>> > 
>> >
>> >   org.got5
>> >
>> >   tapestry5-jquery
>> >
>> >   2.6.0
>> >
>> >
>> >
>> >
>> >
>> > 
>> >
>> >   devlab722-repo
>> >
>> >   
>> > http://nexus.devlab722.net/nexus/content/repositories/releases
>> >
>> >   
>> >
>> >   
>> >
>> >   false
>> >
>> >   
>> >
>> >
>> >
>> >
>> >
>> >        
>> >
>> >   devlab722-snapshot-repo
>> >
>> >   
>> > http://nexus.devlab722.net/nexus/content/repositories/snapshots
>> >
>> >   
>> >
>> >   
>> >
>> >   false
>> >
>> >   
>> >
>> >
>> >
>> >
>> >
>> > All source code is available on Github
>> > http://github.com/got5/tapestry5-jquery
>> >
>> >
>> >
>> > Any feedback is welcome. Please join us in our Google Group :
>> > https://groups.google.com/forum/?hl=fr#!forum/tapestry5-jquery
>> >
>> >
>> >
>> > We really want to thank everyone who contributes to this project, and
>> > especially the newest contributors : Amaury Willemant, Clément Uster and
>> > Barry Books, which has been very  active in the last few weeks..
>> >
>> >
>> >
>> > Finally, a really really thanks to Clément for the deployment of the
>> > website
>> > :  http://tapestry5-jquery.com
>> >
>> >
>> >
>> > If your forgot, we also have 2 others projects based on jQuery and
>> Tapestry
>> > :
>> >
>> > http://github.com/got5/tapestry5-jquery-mobile
>> > https://github.com/got5/tapestry5-jquery-jqgrid
>> >
>> >
>> >
>> > Emmanuel
>> >
>>
>>
>>
>> --
>> Best regards,
>>
>> Igor Drobiazko
>> http://tapestry5.de
>>
>
>


Re: [ANN] Tapestry5-jQuery 2.6.0

2011-08-25 Thread Clément Uster
Thanks,
There is a specific branch on github for tapestry 5.3 ;)
https://github.com/got5/tapestry5-jquery/tree/Tapestry-jquery_T53


On 25 August 2011 11:42, Igor Drobiazko  wrote:

> Great job, guys. Do you have any plans to migrate the lib to Tapestry 5.3?
>
> On Thu, Aug 25, 2011 at 11:36 AM, Emmanuel DEMEY  >wrote:
>
> > I am pleased to announce the new release of the Tapestry-jQuery Project :
> > Tapestry5-jQuery 2.6.0 (based on Tapestry 5.2.6)
> >
> >
> >
> > A lot of new features :
> >
> >  -   New Components : Carousel, CheckBox, RangeSlide, Slider,
> SuperfishMenu
> >
> >
> >  -   New Mixins :
> >
> >  -CutomDatepicker : This mixin allows us to change the JSONObject
> > parameter of the jQuery Datefield.
> >
> >  -CustomZone : very useful for customizing the effect used by the
> > Zone component.
> >
> >  -Mask : used to specify a specific format for your inputs.
> >
> >  -Reveal : for displaying a modal window.
> >
> >  -Tooltip : it allows you to display a tooltip for all your
> inputs.
> >
> >  -Bind : used to connect java/javascript objects to jQuery
> events.
> >
> > -A Widget class, which is useful for creating a new jQuery widget
> very
> > easily.  We will just have to create a new mixin, extending this class
> (for
> > importing the assets for example), and the jQuery widget constructor will
> > be
> > called automatically.
> >
> > -A New selector prefix binding and mixin. It is automatically
> injected
> > into components that support getClientId. The new prefix binding will be
> > used to get the clientId of a Tapestry Component. We just have to specify
> > the t:id of the desired component.
> >
> > -A documentation site with a lot of samples
> >
> >
> >
> > If you want to test it, please add this dependency into your pom.xml file
> :
> >
> > 
> >
> >   org.got5
> >
> >   tapestry5-jquery
> >
> >   2.6.0
> >
> >
> >
> >
> >
> > 
> >
> >   devlab722-repo
> >
> >   
> > http://nexus.devlab722.net/nexus/content/repositories/releases
> >
> >   
> >
> >   
> >
> >   false
> >
> >   
> >
> >
> >
> >
> >
> >
> >
> >   devlab722-snapshot-repo
> >
> >   
> > http://nexus.devlab722.net/nexus/content/repositories/snapshots
> >
> >   
> >
> >       
> >
> >   false
> >
> >   
> >
> >
> >
> >
> >
> > All source code is available on Github
> > http://github.com/got5/tapestry5-jquery
> >
> >
> >
> > Any feedback is welcome. Please join us in our Google Group :
> > https://groups.google.com/forum/?hl=fr#!forum/tapestry5-jquery
> >
> >
> >
> > We really want to thank everyone who contributes to this project, and
> > especially the newest contributors : Amaury Willemant, Clément Uster and
> > Barry Books, which has been very  active in the last few weeks..
> >
> >
> >
> > Finally, a really really thanks to Clément for the deployment of the
> > website
> > :  http://tapestry5-jquery.com
> >
> >
> >
> > If your forgot, we also have 2 others projects based on jQuery and
> Tapestry
> > :
> >
> > http://github.com/got5/tapestry5-jquery-mobile
> > https://github.com/got5/tapestry5-jquery-jqgrid
> >
> >
> >
> > Emmanuel
> >
>
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de
>


Re: Tapestry5 jQuery integration and tap 5.3

2011-07-28 Thread Clément Uster
Hey Zubair,

I've done it on a particular branch on github -> Tapestry-jquery_T53
This is version 3.0.0-SNAPSHOT.
Everything seems ok, but please let me know if something is wrong with it.
If you have more specific questions regarding this project, I suggest you to
send them to the dedicated mailing list :
*tapestry5-jqu...@googlegroups.com*

Regards,
Clément


On 27 July 2011 22:29, Zubair Nuamaan  wrote:

> Thanks, I'll use tapestry 5.2.5 in the meantime.
>
> Zubair
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry5-jQuery-integration-and-tap-5-3-tp4640114p4640202.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
>
>


Re: Client id of a zone inside another zone

2011-07-04 Thread Clément Uster
Simple... efficient... I like it !
Thanks !

On 1 July 2011 19:26, Taha Hafeez  wrote:

> Hi
>
> Just set javascript id on the inner zone.
>
> link1
> 
>id='zoneTwo'*t:zone="zone2">link2
>   
>  ${count}
>  
> 
>
> This keeps the javascript id for the zone constant across zone updates
>
> regards
> Taha
>
> 2011/7/1 Clément Uster 
>
> > Hi all,
> >
> > I'm encountering a problem with zones, I have a specific case where a
> zone
> > is embedded in another zone.
> > I have two actionlinks, the first updates the first zone and the second
> one
> > updates the second zone.
> > I think the best is to read the code :)
> >
> > tml
> > link1
> > 
> >   link2
> >   
> >  ${count}
> >   
> > 
> >
> > java
> > @Persist
> > @Property
> > private int count;
> >
> > @Component
> > private Zone zone1;
> > @OnEvent(value=EventConstants.ACTION, component="zoneOne")
> > public Object test(){
> >count++;
> > return zone1.getBody();
> > }
> >
> > @Component
> > private Zone zone2;
> > @OnEvent(value=EventConstants.ACTION, component="zoneTwo")
> > public Object test2(){
> >count++;
> > return zone2.getBody();
> > }
> >
> >
> >
> > Everything works the first time.
> > It stops working when I update the zone1.
> >
> > Because tapestry creates a new zone2 that has a new client id, let's say
> > "zone2_1234556".
> > And when the actionlink for zone2 is created on the client side, the
> > parameter passed to the Tapestry.Initializer.linkZone method to
> initialize
> > the actionlink is "zone2", instead of "zone2_1234556".
> >
> > So I guess the solution may be to map the t:zone parameter of the
> > actionlink
> > to a java property, named zoneId.
> > 
> > and using this same property to set the t:id parameter in the zone :
> > 
> >
> > But I don't know how I should set the zoneId value to get everything
> > working.
> >
> > Thanks in advance.
> > Clément
> >
>


Client id of a zone inside another zone

2011-07-01 Thread Clément Uster
Hi all,

I'm encountering a problem with zones, I have a specific case where a zone
is embedded in another zone.
I have two actionlinks, the first updates the first zone and the second one
updates the second zone.
I think the best is to read the code :)

tml
link1

   link2
   
  ${count}
   


java
@Persist
@Property
private int count;

@Component
private Zone zone1;
@OnEvent(value=EventConstants.ACTION, component="zoneOne")
public Object test(){
count++;
return zone1.getBody();
}

@Component
private Zone zone2;
@OnEvent(value=EventConstants.ACTION, component="zoneTwo")
public Object test2(){
count++;
return zone2.getBody();
}



Everything works the first time.
It stops working when I update the zone1.

Because tapestry creates a new zone2 that has a new client id, let's say
"zone2_1234556".
And when the actionlink for zone2 is created on the client side, the
parameter passed to the Tapestry.Initializer.linkZone method to initialize
the actionlink is "zone2", instead of "zone2_1234556".

So I guess the solution may be to map the t:zone parameter of the actionlink
to a java property, named zoneId.

and using this same property to set the t:id parameter in the zone :


But I don't know how I should set the zoneId value to get everything
working.

Thanks in advance.
Clément


Re: Tapestry5-JQuery Integration and tapestry-beanvalidator

2011-06-23 Thread Clément Uster
My bad... I think it should be ok now.


On 22 June 2011 18:38, Matias Blasi  wrote:

> Hi Clément,
>
> I updated tapestry-jquery and I got the following new error:
>
> missing ; before statement
> tapestry-beanvalidator.js()tapestry-beanvalidator.js (line 15)
> var Tapestry.Validator={};
>
> Regards,
> Matias.
>
> >> You're welcome.
>
> >>
>
> >> I've just pushed some code on github for bean validator support. >> Feel
> free to test it, don't forget to update dependencies (the new jar is >>
> ready). :) >>
>
> >> Regards, >> Clément
>
> On Wed, Jun 22, 2011 at 1:17 PM, Matias Blasi  >wrote:
>
> > Thank you very much again Clément!
> >
> > I'm going to start migrating all my scripts.
> >
> > Regards,
> > Matías.
> >
> >
> > >> The Class you use is Prototype specific. >> As long as
> tapestry5-jquery
> > removes Prototype, you can't use it anymore. >> jQuery prefers to use
> > plugins -> http://docs.jquery.com/Plugins/Authoring >> or widgets (which
> > is a pattern used by jquery ui, also included in >> tapestry5-jquery) ->
> > http://jqueryui.com/docs/Developer_Guide
> >
> > On Wed, Jun 22, 2011 at 1:04 PM, Matias Blasi  >wrote:
> >
> >> Hi, Its me again...
> >>
> >> After skiping this issue, I am getting the following javascript error:
> >>
> >> Class is not defined
> >> MyType = Class.create({...
> >>
> >> It fails since I added tapestry5-jquery module, too.
> >> I do that every time I want to define a new Javascript type... Is there
> >> another compatible way to do that?
> >>
> >> Regards,
> >> Matias.
> >>
> >>
> >>
> >> On Wed, Jun 22, 2011 at 12:54 PM, Matias Blasi  >wrote:
> >>
> >>> It is not resolved by disabling the clientValidation of the form
> >>> components, it is resolved by removing the tapestry-beanvalidator
> module
> >>> dependency.
> >>> This module has the tapestry-beanvalidator.js which produces the
> >>> javascript error.
> >>>
> >>>
> >>> Regards,
> >>> Matias.
> >>>
> >>>
> >>>
> >>> On Wed, Jun 22, 2011 at 12:35 PM, Matias Blasi  >wrote:
> >>>
>  Thanks Clément,
> 
>  If I have a lot of forms in my application, is there any way to
> disable
>  it globally?
> 
>  Best regards!
>  Matías.
> 
> 
>  The form component has a clientValidation parameter.
> 
>  On 22 June 2011 17:18, Matias Blasi  wrote:
> 
>  Thank Clément,
> 
>  I will be waiting for this improvement anxiously!
> 
>  Just a question: Is there a quick way for disabling the client-side
>  validation on tapestry framework?
> 
>  Regards,
> 
>  Matías.
> 
>  Hi Matias,
> 
>  Thanks for your feedback.
> 
>  Unfortunately bean validation doesn't work for the moment with got5
>  tapestry5-jquery.
> 
>  I've just opened an issue.
>  https://github.com/got5/tapestry5-jquery/issues/42
> 
>  Maybe you should try to disable client validation for the moment,
> until
>  I
>  (or someone) solve it.
> 
>  Regards, Clément
> 
>  On 21 June 2011 00:20, Matias Blasi  wrote:
> 
>  Hi all
> 
>  I recently integrated my tapestry5 (5.2.5) application with the latest
>  got5-jquery library (2.1.1)
> 
>  And I have the following error just entering to an empty page:
> 
>  Tapestry.Validator is undefined ---> Tapestry.Validator.notnull =
>  function(field, message, spec) (tapestry-validator.js line 15) from
>  tapestry-beanvalidator-5.2.5.jar
> 
> >>>
> >>>
> >>
> >
>


Re: Tapestry5-JQuery Integration and tapestry-beanvalidator

2011-06-22 Thread Clément Uster
You're welcome.

I've just pushed some code on github for bean validator support.
Feel free to test it, don't forget to update dependencies (the new jar is
ready). :)

Regards,
Clément


On 22 June 2011 18:17, Matias Blasi  wrote:

> Thank you very much again Clément!
>
> I'm going to start migrating all my scripts.
>
> Regards,
> Matías.
>
>
> >> The Class you use is Prototype specific. >> As long as tapestry5-jquery
> removes Prototype, you can't use it anymore. >> jQuery prefers to use
> plugins -> http://docs.jquery.com/Plugins/Authoring >> or widgets (which
> is
> a pattern used by jquery ui, also included in >> tapestry5-jquery) ->
> http://jqueryui.com/docs/Developer_Guide
>
> On Wed, Jun 22, 2011 at 1:04 PM, Matias Blasi  >wrote:
>
> > Hi, Its me again...
> >
> > After skiping this issue, I am getting the following javascript error:
> >
> > Class is not defined
> > MyType = Class.create({...
> >
> > It fails since I added tapestry5-jquery module, too.
> > I do that every time I want to define a new Javascript type... Is there
> > another compatible way to do that?
> >
> > Regards,
> > Matias.
> >
> >
> >
> > On Wed, Jun 22, 2011 at 12:54 PM, Matias Blasi  >wrote:
> >
> >> It is not resolved by disabling the clientValidation of the form
> >> components, it is resolved by removing the tapestry-beanvalidator module
> >> dependency.
> >> This module has the tapestry-beanvalidator.js which produces the
> >> javascript error.
> >>
> >>
> >> Regards,
> >> Matias.
> >>
> >>
> >>
> >> On Wed, Jun 22, 2011 at 12:35 PM, Matias Blasi  >wrote:
> >>
> >>> Thanks Clément,
> >>>
> >>> If I have a lot of forms in my application, is there any way to disable
> >>> it globally?
> >>>
> >>> Best regards!
> >>> Matías.
> >>>
> >>>
> >>> The form component has a clientValidation parameter.
> >>>
> >>> On 22 June 2011 17:18, Matias Blasi  wrote:
> >>>
> >>> Thank Clément,
> >>>
> >>> I will be waiting for this improvement anxiously!
> >>>
> >>> Just a question: Is there a quick way for disabling the client-side
> >>> validation on tapestry framework?
> >>>
> >>> Regards,
> >>>
> >>> Matías.
> >>>
> >>> Hi Matias,
> >>>
> >>> Thanks for your feedback.
> >>>
> >>> Unfortunately bean validation doesn't work for the moment with got5
> >>> tapestry5-jquery.
> >>>
> >>> I've just opened an issue.
> >>> https://github.com/got5/tapestry5-jquery/issues/42
> >>>
> >>> Maybe you should try to disable client validation for the moment, until
> I
> >>> (or someone) solve it.
> >>>
> >>> Regards, Clément
> >>>
> >>> On 21 June 2011 00:20, Matias Blasi  wrote:
> >>>
> >>> Hi all
> >>>
> >>> I recently integrated my tapestry5 (5.2.5) application with the latest
> >>> got5-jquery library (2.1.1)
> >>>
> >>> And I have the following error just entering to an empty page:
> >>>
> >>> Tapestry.Validator is undefined ---> Tapestry.Validator.notnull =
> >>> function(field, message, spec) (tapestry-validator.js line 15) from
> >>> tapestry-beanvalidator-5.2.5.jar
> >>>
> >>
> >>
> >
>


Re: Tapestry5-JQuery Integration and tapestry-beanvalidator

2011-06-22 Thread Clément Uster
The Class you use is Prototype specific.
As long as tapestry5-jquery removes Prototype, you can't use it anymore.
jQuery prefers to use plugins -> http://docs.jquery.com/Plugins/Authoring
or widgets (which is a pattern used by jquery ui, also included in
tapestry5-jquery) -> http://jqueryui.com/docs/Developer_Guide


On 22 June 2011 18:04, Matias Blasi  wrote:

> Hi, Its me again...
>
> After skiping this issue, I am getting the following javascript error:
>
> Class is not defined
> MyType = Class.create({...
>
> It fails since I added tapestry5-jquery module, too.
> I do that every time I want to define a new Javascript type... Is there
> another compatible way to do that?
>
> Regards,
> Matias.
>
>
> On Wed, Jun 22, 2011 at 12:54 PM, Matias Blasi  >wrote:
>
> > It is not resolved by disabling the clientValidation of the form
> > components, it is resolved by removing the tapestry-beanvalidator module
> > dependency.
> > This module has the tapestry-beanvalidator.js which produces the
> javascript
> > error.
> >
> >
> > Regards,
> > Matias.
> >
> >
> >
> > On Wed, Jun 22, 2011 at 12:35 PM, Matias Blasi  >wrote:
> >
> >> Thanks Clément,
> >>
> >> If I have a lot of forms in my application, is there any way to disable
> it
> >> globally?
> >>
> >> Best regards!
> >> Matías.
> >>
> >>
> >> The form component has a clientValidation parameter.
> >>
> >> On 22 June 2011 17:18, Matias Blasi  wrote:
> >>
> >> Thank Clément,
> >>
> >> I will be waiting for this improvement anxiously!
> >>
> >> Just a question: Is there a quick way for disabling the client-side
> >> validation on tapestry framework?
> >>
> >> Regards,
> >>
> >> Matías.
> >>
> >> Hi Matias,
> >>
> >> Thanks for your feedback.
> >>
> >> Unfortunately bean validation doesn't work for the moment with got5
> >> tapestry5-jquery.
> >>
> >> I've just opened an issue.
> >> https://github.com/got5/tapestry5-jquery/issues/42
> >>
> >> Maybe you should try to disable client validation for the moment, until
> I
> >> (or someone) solve it.
> >>
> >> Regards, Clément
> >>
> >> On 21 June 2011 00:20, Matias Blasi  wrote:
> >>
> >> Hi all
> >>
> >> I recently integrated my tapestry5 (5.2.5) application with the latest
> >> got5-jquery library (2.1.1)
> >>
> >> And I have the following error just entering to an empty page:
> >>
> >> Tapestry.Validator is undefined ---> Tapestry.Validator.notnull =
> >> function(field, message, spec) (tapestry-validator.js line 15) from
> >> tapestry-beanvalidator-5.2.5.jar
> >>
> >
> >
>


Re: Tapestry5-JQuery Integration and tapestry-beanvalidator

2011-06-22 Thread Clément Uster
(configuration.add(SymbolConstants.FORM_CLIENT_LOGIC_ENABLED, "false");
within the contributeApplicationDefaults method)

2011/6/22 Clément Uster 

> You can try to set the symbol SymbolConstants.FORM_CLIENT_LOGIC_ENABLED to
> false in your AppModule.
> I don't know how tapestry-beanvalidator works but it shouldn't send this
> file to the client if client validation is disabled...
>
>
>
> On 22 June 2011 17:54, Matias Blasi  wrote:
>
>> It is not resolved by disabling the clientValidation of the form
>> components,
>> it is resolved by removing the tapestry-beanvalidator module dependency.
>> This module has the tapestry-beanvalidator.js which produces the
>> javascript
>> error.
>>
>>
>> Regards,
>> Matias.
>>
>>
>> On Wed, Jun 22, 2011 at 12:35 PM, Matias Blasi > >wrote:
>>
>> > Thanks Clément,
>> >
>> > If I have a lot of forms in my application, is there any way to disable
>> it
>> > globally?
>> >
>> > Best regards!
>> > Matías.
>> >
>> >
>> > The form component has a clientValidation parameter.
>> >
>> > On 22 June 2011 17:18, Matias Blasi  wrote:
>> >
>> > Thank Clément,
>> >
>> > I will be waiting for this improvement anxiously!
>> >
>> > Just a question: Is there a quick way for disabling the client-side
>> > validation on tapestry framework?
>> >
>> > Regards,
>> >
>> > Matías.
>> >
>> > Hi Matias,
>> >
>> > Thanks for your feedback.
>> >
>> > Unfortunately bean validation doesn't work for the moment with got5
>> > tapestry5-jquery.
>> >
>> > I've just opened an issue.
>> > https://github.com/got5/tapestry5-jquery/issues/42
>> >
>> > Maybe you should try to disable client validation for the moment, until
>> I
>> > (or someone) solve it.
>> >
>> > Regards, Clément
>> >
>> > On 21 June 2011 00:20, Matias Blasi  wrote:
>> >
>> > Hi all
>> >
>> > I recently integrated my tapestry5 (5.2.5) application with the latest
>> > got5-jquery library (2.1.1)
>> >
>> > And I have the following error just entering to an empty page:
>> >
>> > Tapestry.Validator is undefined ---> Tapestry.Validator.notnull =
>> > function(field, message, spec) (tapestry-validator.js line 15) from
>> > tapestry-beanvalidator-5.2.5.jar
>> >
>>
>
>


Re: Tapestry5-JQuery Integration and tapestry-beanvalidator

2011-06-22 Thread Clément Uster
You can try to set the symbol SymbolConstants.FORM_CLIENT_LOGIC_ENABLED to
false in your AppModule.
I don't know how tapestry-beanvalidator works but it shouldn't send this
file to the client if client validation is disabled...


On 22 June 2011 17:54, Matias Blasi  wrote:

> It is not resolved by disabling the clientValidation of the form
> components,
> it is resolved by removing the tapestry-beanvalidator module dependency.
> This module has the tapestry-beanvalidator.js which produces the javascript
> error.
>
>
> Regards,
> Matias.
>
>
> On Wed, Jun 22, 2011 at 12:35 PM, Matias Blasi  >wrote:
>
> > Thanks Clément,
> >
> > If I have a lot of forms in my application, is there any way to disable
> it
> > globally?
> >
> > Best regards!
> > Matías.
> >
> >
> > The form component has a clientValidation parameter.
> >
> > On 22 June 2011 17:18, Matias Blasi  wrote:
> >
> > Thank Clément,
> >
> > I will be waiting for this improvement anxiously!
> >
> > Just a question: Is there a quick way for disabling the client-side
> > validation on tapestry framework?
> >
> > Regards,
> >
> > Matías.
> >
> > Hi Matias,
> >
> > Thanks for your feedback.
> >
> > Unfortunately bean validation doesn't work for the moment with got5
> > tapestry5-jquery.
> >
> > I've just opened an issue.
> > https://github.com/got5/tapestry5-jquery/issues/42
> >
> > Maybe you should try to disable client validation for the moment, until I
> > (or someone) solve it.
> >
> > Regards, Clément
> >
> > On 21 June 2011 00:20, Matias Blasi  wrote:
> >
> > Hi all
> >
> > I recently integrated my tapestry5 (5.2.5) application with the latest
> > got5-jquery library (2.1.1)
> >
> > And I have the following error just entering to an empty page:
> >
> > Tapestry.Validator is undefined ---> Tapestry.Validator.notnull =
> > function(field, message, spec) (tapestry-validator.js line 15) from
> > tapestry-beanvalidator-5.2.5.jar
> >
>


Re: Tapestry5-JQuery Integration and tapestry-beanvalidator

2011-06-22 Thread Clément Uster
The form component has a clientValidation parameter.

On 22 June 2011 17:18, Matias Blasi  wrote:

> Thank Clément,
>
>
> I will be waiting for this improvement anxiously!
>
>
> Just a question: Is there a quick way for disabling the client-side
> validation on tapestry framework?
>
>
> Regards,
>
> Matías.
>
>
>
> Hi Matias,
>
> Thanks for your feedback.
>
> Unfortunately bean validation doesn't work for the moment with got5
> tapestry5-jquery.
>
> I've just opened an issue.
> https://github.com/got5/tapestry5-jquery/issues/42
>
> Maybe you should try to disable client validation for the moment, until I
> (or someone) solve it.
>
> Regards, Clément
>
> On 21 June 2011 00:20, Matias Blasi  wrote:
>
> Hi all
>
> I recently integrated my tapestry5 (5.2.5) application with the latest
> got5-jquery library (2.1.1)
>
> And I have the following error just entering to an empty page:
>
> Tapestry.Validator is undefined ---> Tapestry.Validator.notnull =
> function(field, message, spec) (tapestry-validator.js line 15) from
> tapestry-beanvalidator-5.2.5.jar
>
> Is there any incompatibility between tapestry-beanvalidator and
> tapestry-jquery? Or am I loosing something?
>
> Regards, Matias.
>


Re: Tapestry5-JQuery Integration and tapestry-beanvalidator

2011-06-21 Thread Clément Uster
Hi Matias,

Thanks for your feedback.

Unfortunately bean validation doesn't work for the moment with got5
tapestry5-jquery.

I've just opened an issue.
https://github.com/got5/tapestry5-jquery/issues/42

Maybe you should try to disable client validation for the moment, until I
(or someone) solve it.

Regards,
Clément


On 21 June 2011 00:20, Matias Blasi  wrote:

> Hi all
>
> I recently integrated my tapestry5 (5.2.5) application with the latest
> got5-jquery library (2.1.1)
>
> And I have the following error just entering to an empty page:
>
> Tapestry.Validator is undefined
> ---> Tapestry.Validator.notnull = function(field, message, spec)
> (tapestry-validator.js line 15) from tapestry-beanvalidator-5.2.5.jar
>
> Is there any incompatibility between tapestry-beanvalidator and
> tapestry-jquery? Or am I loosing something?
>
> Regards,
> Matias.
>


Re: Problem deploying tapestry webapp

2011-06-15 Thread Clément Uster
When your tomcat is shared with several contexts. You may not want to change
the SAXParser for all of the web apps.
So, adding the following dependency to your project also works :

 
xerces
xerces
2.4.0
 



On 24 February 2011 19:34, Howard Lewis Ship  wrote:

> I wonder how we can turn this into a FAQ?  The cause and symptoms are
> pretty obscure!
>
> On Wed, Feb 23, 2011 at 11:08 PM, Marek Matus 
> wrote:
> > I had similar problem - the problem was that the class loader cannot load
> > sax parser. I had to explicit define which sax parser should be loaded by
> > setting:
> >
> > -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
> >
> > Marek
> >
> > 2011/2/23 Ulrich Stärk 
> >
> >> Can you give us some more information? What request was sent to the
> server,
> >> can you post some code
> >> (page/component class and template)?
> >>
> >> Uli
> >>
> >> On 23.02.2011 22:35, Andreas Deininger wrote:
> >> > Hi all,
> >> >
> >> > I just created a first tapestry webapp. I can run mvn tomcat:run
> >> > locally, and everything is fine. However, after running mvn package
> >> > and deploying the app to my server (apache tomat 6.0.10) I'm getting
> >> > the error listed below. Any idea what's wrong here?
> >> >
> >> > Thanks
> >> > Andreas
> >> >
> >> > Stacktrace:
> >> >
> >> > org.apache.tapestry5.ioc.internal.OperationException: -1
> >> >
> >>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:102)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:69)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063)
> >> >
> >>
> org.apache.tapestry5.internal.services.TemplateParserImpl.parseTemplate(TemplateParserImpl.java:57)
> >> >
> >>
> $TemplateParser_12e54598525.parseTemplate($TemplateParser_12e54598525.java)
> >> >
> >>
> org.apache.tapestry5.internal.services.ComponentTemplateSourceImpl.parseTemplate(ComponentTemplateSourceImpl.java:153)
> >> >
> >>
> org.apache.tapestry5.internal.services.ComponentTemplateSourceImpl.getTemplate(ComponentTemplateSourceImpl.java:136)
> >> >
> >>
> $ComponentTemplateSource_12e54598524.getTemplate($ComponentTemplateSource_12e54598524.java)
> >> >
> >>
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$4.invoke(PageLoaderImpl.java:226)
> >> >
> >>
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$4.invoke(PageLoaderImpl.java:219)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063)
> >> >
> >>
> org.apache.tapestry5.internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:218)
> >> >
> >>
> org.apache.tapestry5.internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:208)
> >> >
> >>
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:180)
> >> >
> >>
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:174)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
> >> >
> >>
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063)
> >> >
> >>
> org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:173)
> >> >   $PageLoader_12e5459851b.loadPage($PageLoader_12e5459851b.java)
> >> >
> >>
> org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:81)
> >> >   $PageSource_12e5459851a.getPage($PageSource_12e5459851a.java)
> >> >
> >>
> org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:74)
> >> >
> >> $RequestPageCache_12e54598519.get($RequestPageCache_12e54598519.java)
> >> >
> >> $RequestPageCache_12e54598513.get($RequestPageCache_12e54598513.java)
> >> >
> >>
> org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:77)
> >> >
> >>
> $RequestExceptionHandler_12e545984f1.handleRequestException($RequestExceptionHandler_12e545984f1.java)
> >> >
> >>
> org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42)
> >> >
> >> $RequestHandler_12e545984f4.service($RequestHandler_12e545984f4.java)
> >> >
> >>
> org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:984)
> >> >
> >> $RequestHandler_12e545984f4.service($RequestHandler_12e545984f4.java)
> >> >
> >>
> org.apache.tapestry5.services.TapestryModule$3.service(Tape

Re: Render a specific component in an AJAX request

2011-06-07 Thread Clément Uster
Hello,

Thank you for your answer.

Unfortunately I can't put the components in my template.
So I guess I had not the right approach.

I solved the problem by using pages instead of components.
As I wanted to take advantage of Tapestry zones behaviour on the client, I
had to encapsulate the generated markup into a JSON object (by advising the
PageRenderResponse service), and send that object as a response to the
browser.

Clément

2011/6/3 Thiago H. de Paula Figueiredo 

> On Fri, 03 Jun 2011 15:33:19 -0300, Clément Uster 
> wrote:
>
>  Hi all,
>>
>
> Hi!
>
>
>  I could wrap all my component into Tapestry Blocks (in my page), and then
>> return the block at the end of the @OnEvent method.
>> But I can't do this, because in some cases, the page may not know all the
>> component names. Do you know how I could do this ?
>>
>
> Notice you cannot instantiate components by yourself, so you need to
> include them in a template.
>
> Try this:
>
> @Inject
> private ComponentResources resources;
>
> @OnEvent(EventConstants.ACTION)
> public Object renderComponent(String componentId){
>return resources.getEmbeddedComponent(componentid);
> }
>
> Note that that code needs you to have these components somewhere in your
> template. In addition, it's based in component ids, not in component names,
> but, without a t:id attribute, the component id is the component name
> (except when there's more than one id-less instance of the same component).
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>


Render a specific component in an AJAX request

2011-06-03 Thread Clément Uster
Hi all,

Let's say my page has an AJAX actionlink. This link has a context that
specifies the component name to render in a zone.
The @OnEvent method called in my page should return to the browser the body
of the component (which name has been specified as a context parameter).

It looks like this in the tml:

component1
component2


and in the java class:
@OnEvent(EventConstants.ACTION)
public Object renderComponent(String componentName){
...
//return the body of "componentName"
}


I could wrap all my component into Tapestry Blocks (in my page), and then
return the block at the end of the @OnEvent method.
But I can't do this, because in some cases, the page may not know all the
component names.
Do you know how I could do this ?
TextStreamResponse maybe...

Thanks in advance.

Clément


Re: @Property limitations with java extensions

2011-05-13 Thread Clément Uster
>
>
>
>  This may cause a lot of pain !
>>
>
> I'm not following you . . .
>
>
I just meant this won't be easy to manipulate generated DOM with java, but
if it's the only way, I can deal with that.


>
>  So, can I conclude that the use of @Property wouldn't be recommended
>> within components ? Because (even with mixins) you may want to have access
>> to some properties of the component...
>>
>
> I'd say that you shouldn't use @Property when you think it's interesting to
> provide access to other classes.
>

Got it.

Once more, thanks for your help.

>
>


Re: @Property limitations with java extensions

2011-05-13 Thread Clément Uster
>
>
>  This is an old "corporate" lib, that isn't supposed to evolve anymore.
>>
>
> This scenario isn't very good . . .


Indeed...
The component was frozen with tapestry 5.1.0.5 and the need was too urgent
to wait for a release.
But, ok ! No worries. :)


>
>  It has a simple loop, and I want to change what is displayed for a
>> particular index (by adding an "if" component, testing the value of
>> "index").
>>
>
> I'd use a mixin which has a afterRender(MarkupWriter writer) and then
> change the Tapestry DOM. It's not easy nor particularly elegant, but this is
> a workaround for using a component that can't be changed without rewriting
> it. This technique has saved my day many times.
>
>
>
Ok, I understand.
Interesting approach, thanks.
This may cause a lot of pain !

So, can I conclude that the use of @Property wouldn't be recommended within
components ?
Because (even with mixins) you may want to have access to some properties of
the component...
Or do you have a better practice ?


Re: @Property limitations with java extensions

2011-05-13 Thread Clément Uster
Thanks Taha and Thiago.

This is an old "corporate" lib, that isn't supposed to evolve anymore.

It has a simple loop, and I want to change what is displayed for a
particular index
(by adding an "if" component, testing the value of "index").


2011/5/13 Thiago H. de Paula Figueiredo 

> On Fri, 13 May 2011 10:37:18 -0300, Clément Uster 
> wrote:
>
>  Thanks for your very quick answer. :)
>>
>
> :)
>
>  What do you suggest if extending component isn't recommended ?
>> Rewritting it ?
>>
>
> In many scenarios you can solve problems by creating a mixin. Could you
> describe in more detail what you're trying to do.
>
>
>  I can't create getters and setters since the component belongs to another
>> library. I guess this shouldn't happen if the component had more entry
>> points.
>>
>
> Which library? Just curious. :)
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>


Re: @Property limitations with java extensions

2011-05-13 Thread Clément Uster
Thanks for your very quick answer. :)

What do you suggest if extending component isn't recommended ?
Rewritting it ?

I can't create getters and setters since the component belongs to another
library.
I guess this shouldn't happen if the component had more entry points.



2011/5/13 Thiago H. de Paula Figueiredo 

> On Fri, 13 May 2011 10:11:19 -0300, Clément Uster 
> wrote:
>
>  Hi everyone,
>>
>
> Hi!
>
>
>  Let's imagine I have a component (coming from a component library) that
>> has an "index" property. So index has the @Property annotation.
>>
>> I want to create a component that extends the previous component.
>>
>
> Extending components is allowed but not recommended.
>
>
>  And I want to test "index"'s value to change component's behaviour... how
>> can I do this ? As long as "index" is private from the first component and
>> there is no
>> "getIndex()" method (thanks to @Property).
>>
>
> Use getter and setter in the base component instead of @Property.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>


@Property limitations with java extensions

2011-05-13 Thread Clément Uster
Hi everyone, 

I have a tricky question for you. :)

Let's imagine I have a component (coming from a component library) that has
an "index" property.
So index has the @Property annotation.

I want to create a component that extends the previous component.
And I want to test "index"'s value to change component's behaviour... how
can I do this ?
As long as "index" is private from the first component and there is no
"getIndex()" method (thanks to @Property).

Thanks !

Clément

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Property-limitations-with-java-extensions-tp4393088p4393088.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



Re: automatically add a js library to every page in the app

2011-05-04 Thread Clément Uster
I guess you can override the js stack core from your AppModule.
public static void
contributeJavaScriptStackSource(MappedConfiguration configuration)
{
configuration.overrideInstance(InternalConstants.CORE_STACK_NAME,
YourJavaScriptStack.class);
}

and implement your own js stack, being inspired by the previous one
(CoreJavaScriptStack)

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/automatically-add-a-js-library-to-every-page-in-the-app-tp4369847p4370388.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