confused with Page ContextType and onActivate with StreamResponse

2012-08-28 Thread jqzone
Some code like this

Page class

public class SearchUser{


@ActivationRequestParameter(value="filer")
private String filter;
 @Inject
private IStaffService staffService;

private String staffId;
 protected void onActivate(String staffId){
this.staffId = staffId;
}
 StreamResponse onActivate(){
  JSONObject json= new JSONObject();

  return new TextStreamResponse("application/json",
json.toString());

   }

}


Re: Request Filter not called if declared with addInstance (vs add)

2012-08-28 Thread DenisGL
Sorry, I was mistaken: lit does note work when I use:
   filters.addInstance("myRequestFilter", MyRequestFilter.class,
"after:CheckForUpdates")



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Request-Filter-not-called-if-declared-with-addInstance-vs-add-tp5715859p5715863.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

grid in zone gets pre-selected value from select component

2012-08-28 Thread jupraman
Hello,

Fairly new to Tapestry. Using version 5.3.4. I'm having a strange (to me
anyway) behavior using a select component to update a grid via ajax. The
grid is updated just fine except that my index.java class reads the previous
value from the select component, not the one I just selected.

In my tml I have:




View








Filters


Type:






my java:

@Persist
private BRBilletType brBilletTypeFilter;

public Object onValueChangedFromBrBilletTypeFilter(){
if(brBilletTypeFilter == null){
billetList = session.createCriteria(BRBillet.class).list();
}
else {
brBilletTypeFilter = (BRBilletType)session.load(BRBilletType.class,
brBilletTypeFilter.getId());
billetList.clear();
billetList.addAll(brBilletTypeFilter.getBillets());
}
return billetZone.getBody();
}
 
Haven't found a post with a similar problem, only stuff that deals with
setting the value of the select.
Firebug shows my last selection as "selected" but my grid will always be
loaded using the value that is
currently selected, not the value I just selected. I have select and option
models, and an encoder for the 'brBilletTypeFilter'. 

Thanks for any insight into this problem.
--Mark 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/grid-in-zone-gets-pre-selected-value-from-select-component-tp5715860.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



Request Filter not called if declared with addInstance (vs add)

2012-08-28 Thread DenisGL
I've tried to add a Request Filter (T 5.3.4)

In my module, I've added this :



and my filter is:




But my filter is not called (I see not log).

However, if I declare my filter with :

filters.add("myRequestFilter", new MyRequestFilter(log),
"after:CheckForUpdates");

it works !


So, what are the difference between add and addInstance, and why it does not
work with addInstance ?





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Request-Filter-not-called-if-declared-with-addInstance-vs-add-tp5715859.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Global Configuration/Logging/Properties files locations

2012-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2012 17:26:36 -0300, George Christman  
 wrote:


Sorry Thiago, one last thing. Is there away to use the Messages service  
with the contributeApplicationDefaults in AppModule.class?


I don't think so. Messages isn't a service.

--
Thiago H. de Paula Figueiredo

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



Re: Global Configuration/Logging/Properties files locations

2012-08-28 Thread George Christman
Sorry Thiago, one last thing. Is there away to use the Messages service with
the contributeApplicationDefaults in AppModule.class?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Global-Configuration-Logging-Properties-files-locations-tp3394564p5715857.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: Flash file upload

2012-08-28 Thread Ray Nicholus
+1 ;-)
On Tue, Aug 28, 2012 at 9:23 AM, Lance Java wrote:

> Taha has blogged about integrating valums/file-uploader with tapestry
>
> http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/
> https://github.com/valums/file-uploader
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Flash-file-upload-tp5715839p5715845.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: Tapestry 5.3.4-rc-7

2012-08-28 Thread Howard Lewis Ship
On Tue, Aug 28, 2012 at 9:23 AM, Blower, Andy
 wrote:
> I've just tried the YUIcompressor 2.4.7 module from the T5.3.5 candidate and 
> I am having issues with it too. It seems to be inserting the string "get" 
> after closing curly braces which causes syntax errors when the browser parses 
> the JS. Is this the issue you were seeing?

I've seen this as well, but have yet to be able to isolate what is
causing it. It's almost certainly a conflict between the Rhino patches
inside yuicompressor.jar and the version of Rhino available in the
JVM.


>
> -Original Message-
> From: Howard Lewis Ship [mailto:hls...@gmail.com]
> Sent: 28 June 2012 19:28
> To: Tapestry users
> Subject: Re: Tapestry 5.3.4-rc-7
>
> I've been having problems with even with YUICompressor 2.4.7 in a production 
> app.
>
> On Thu, Jun 28, 2012 at 10:05 AM, Jochen Frey  wrote:
>
>> +1 for the YUI compressor.  It really looks broken in production
>> environments, and it's an easy fix.
>>
>> On Jun 28, 2012, at 7:51 AM, Christian Riedel wrote:
>>
>> > Ok, one thing could also be quickly done: upgrading the
>> > yuicompressor
>> lib to 2.4.7 like suggested in TAP5-1729.
>> > Minification/Resource combination with tapestry-yuicompressor is
>> > really
>> broken without that and it's quite easy to fix.
>> >
>> > https://issues.apache.org/jira/browse/TAP5-1729
>> >
>> >
>> > Am 28.06.2012 um 16:17 schrieb Luca Menegus:
>> >
>> >> Hi,
>> >> can someone fix TAP5-1926 and have a look at the problem I reported
>> >> on
>> BeanEditor and BeanValidation [1]?
>> >> And yes, Everything's stable with rc-7!
>> >>
>> >>
>> >>
>> >> [1]
>> http://tapestry.1045711.n5.nabble.com/BeanEditor-should-always-provide
>> -a-new-BeanValidationContext-JSR-303-tp5713975.html
>> >>
>> >>
>> >> - Original Message -
>> >>> From: "Howard Lewis Ship" 
>> >>> To: "Tapestry users" 
>> >>> Sent: Monday, 25 June, 2012 7:44:33 PM
>> >>> Subject: Tapestry 5.3.4-rc-7
>> >>>
>> >>> I've just uploaded Tapestry 5.3.4-rc-7.  Key improvements:
>> >>>
>> >>> * More (minor) speed improvements
>> >>> * TAP5-1873: JavaScript execution exception is not logged
>> >>> * Fixes the Hibernate dependency to match 5.3.3
>> >>> * TAP5-1880: Disable GZip compression for HTTP/1.0
>> >>> * TAP5-1938: JpaValueEncoder encodes transient value as null
>> >>> instead of throwing an exception
>> >>> * Upgrade to Gradle 1.0 (including the Maven archetype)
>> >>>
>> >>> I expect to run a vote to release this as 5.3.4 in the near
>> >>> future, so feedback is greatly appreciated!
>> >>>
>> >>> --
>> >>> Howard M. Lewis Ship
>> >>>
>> >>> Creator of Apache Tapestry
>> >>>
>> >>> The source for Tapestry training, mentoring and support. Contact
>> >>> me to learn how I can get you up and productive in Tapestry fast!
>> >>>
>> >>> (971) 678-5210
>> >>> http://howardlewisship.com
>> >>>
>> >>
>> >> ---
>> >> -- 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
>> >
>>
>> ---
>>  joc...@jochenfrey.com
>>  +1.415.366.0450
>>   @jochen_frey
>>
>>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to learn 
> how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



RE: Tapestry 5.3.4-rc-7

2012-08-28 Thread Blower, Andy
I've just tried the YUIcompressor 2.4.7 module from the T5.3.5 candidate and I 
am having issues with it too. It seems to be inserting the string "get" after 
closing curly braces which causes syntax errors when the browser parses the JS. 
Is this the issue you were seeing?

-Original Message-
From: Howard Lewis Ship [mailto:hls...@gmail.com] 
Sent: 28 June 2012 19:28
To: Tapestry users
Subject: Re: Tapestry 5.3.4-rc-7

I've been having problems with even with YUICompressor 2.4.7 in a production 
app.

On Thu, Jun 28, 2012 at 10:05 AM, Jochen Frey  wrote:

> +1 for the YUI compressor.  It really looks broken in production
> environments, and it's an easy fix.
>
> On Jun 28, 2012, at 7:51 AM, Christian Riedel wrote:
>
> > Ok, one thing could also be quickly done: upgrading the 
> > yuicompressor
> lib to 2.4.7 like suggested in TAP5-1729.
> > Minification/Resource combination with tapestry-yuicompressor is 
> > really
> broken without that and it's quite easy to fix.
> >
> > https://issues.apache.org/jira/browse/TAP5-1729
> >
> >
> > Am 28.06.2012 um 16:17 schrieb Luca Menegus:
> >
> >> Hi,
> >> can someone fix TAP5-1926 and have a look at the problem I reported 
> >> on
> BeanEditor and BeanValidation [1]?
> >> And yes, Everything's stable with rc-7!
> >>
> >>
> >>
> >> [1]
> http://tapestry.1045711.n5.nabble.com/BeanEditor-should-always-provide
> -a-new-BeanValidationContext-JSR-303-tp5713975.html
> >>
> >>
> >> - Original Message -
> >>> From: "Howard Lewis Ship" 
> >>> To: "Tapestry users" 
> >>> Sent: Monday, 25 June, 2012 7:44:33 PM
> >>> Subject: Tapestry 5.3.4-rc-7
> >>>
> >>> I've just uploaded Tapestry 5.3.4-rc-7.  Key improvements:
> >>>
> >>> * More (minor) speed improvements
> >>> * TAP5-1873: JavaScript execution exception is not logged
> >>> * Fixes the Hibernate dependency to match 5.3.3
> >>> * TAP5-1880: Disable GZip compression for HTTP/1.0
> >>> * TAP5-1938: JpaValueEncoder encodes transient value as null 
> >>> instead of throwing an exception
> >>> * Upgrade to Gradle 1.0 (including the Maven archetype)
> >>>
> >>> I expect to run a vote to release this as 5.3.4 in the near 
> >>> future, so feedback is greatly appreciated!
> >>>
> >>> --
> >>> Howard M. Lewis Ship
> >>>
> >>> Creator of Apache Tapestry
> >>>
> >>> The source for Tapestry training, mentoring and support. Contact 
> >>> me to learn how I can get you up and productive in Tapestry fast!
> >>>
> >>> (971) 678-5210
> >>> http://howardlewisship.com
> >>>
> >>
> >> ---
> >> -- 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
> >
>
> ---
>  joc...@jochenfrey.com
>  +1.415.366.0450
>   @jochen_frey
>
>


--
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to learn 
how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


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



Re: Global Configuration/Logging/Properties files locations

2012-08-28 Thread George Christman
Thanks Thiago, worked perfectly. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Global-Configuration-Logging-Properties-files-locations-tp3394564p5715853.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: Global Configuration/Logging/Properties files locations

2012-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2012 11:58:08 -0300, George Christman  
 wrote:



Thanks Thiago, how do you make the app.properties available to your java
classes?


In page classes, components and mixins, just @Inject Messages and use its  
get() method.
Another option is to use he same way you can read files from any Servlet  
API-based framework: get the ServletContext,

String path = getServletContext().getRealPath("/WEB-INF/" + fileName);
Use the Properties class to read the file at that path.

--
Thiago H. de Paula Figueiredo

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



Re: Global Configuration/Logging/Properties files locations

2012-08-28 Thread George Christman
Thanks Thiago, how do you make the app.properties available to your java
classes?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Global-Configuration-Logging-Properties-files-locations-tp3394564p5715851.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: Global Configuration/Logging/Properties files locations

2012-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2012 11:29:57 -0300, George Christman  
 wrote:


I have a question in regards to this topic. I have global settings, ie  
email settings such as from address etc. My boss, "non tapestry user"  
wanted me to put them in the web-inf/app.properties folder. I'm not sure  
this is the

correct spot for them since I thought it was used for tapestry messaging.
Where would the correct spot be and how would I access them in my java
classes? Thanks.


I see no harm in using app.properties for that.

--
Thiago H. de Paula Figueiredo

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



Re: [ANN] JumpStart gets jQuery DataTables example

2012-08-28 Thread George Christman
Hi Emmanuel, I guess I'm a bit confused on how to implement the backend.
Example, ajax to fetch page 1 results, then ajax to fetch page 2 results, or
any searches. I'm assuming my understanding is correct? Thanks Emmanuel.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-JumpStart-gets-jQuery-DataTables-example-tp5715816p5715849.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: [ANN] JumpStart gets jQuery DataTables example

2012-08-28 Thread Emmanuel DEMEY
Normally, you just need to set the mode parameter to true.
But I will very happy to send a sample to Geoff.

2012/8/28 George Christman 

> Very cool Geoff! Any chance at some point in time you could possibly create
> an example of this table using ajax? Thanks a lot for your hard work.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-JumpStart-gets-jQuery-DataTables-example-tp5715816p5715846.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
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey


Re: Global Configuration/Logging/Properties files locations

2012-08-28 Thread George Christman
I have a question in regards to this topic. I have global settings, ie email
settings such as from address etc. My boss, "non tapestry user" wanted me to
put them in the web-inf/app.properties folder. I'm not sure this is the
correct spot for them since I thought it was used for tapestry messaging.
Where would the correct spot be and how would I access them in my java
classes? Thanks.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Global-Configuration-Logging-Properties-files-locations-tp3394564p5715847.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: [ANN] JumpStart gets jQuery DataTables example

2012-08-28 Thread George Christman
Very cool Geoff! Any chance at some point in time you could possibly create
an example of this table using ajax? Thanks a lot for your hard work. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-JumpStart-gets-jQuery-DataTables-example-tp5715816p5715846.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: Flash file upload

2012-08-28 Thread Lance Java
Taha has blogged about integrating valums/file-uploader with tapestry

http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/
https://github.com/valums/file-uploader



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Flash-file-upload-tp5715839p5715845.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: When to use SetupRender and PageAttached methods

2012-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2012 09:13:24 -0300, Athneria, Mahendra  
 wrote:



Hi Thiago H. de Paula Figueiredo,


Hi!

I got it that PageAttached is something that made sense when Tapestry  
pooled page instance. But my doubt is why it is getting called when I  
write @PageAttahced in components?


Probably because it wasn't removed from Tapestry yet. Anyway, don't use it.

--
Thiago H. de Paula Figueiredo

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



RE: When to use SetupRender and PageAttached methods

2012-08-28 Thread Athneria, Mahendra
Hi Thiago H. de Paula Figueiredo,

I got it that PageAttached is something that made sense when Tapestry pooled 
page instance. But my doubt is why it is getting called when I write 
@PageAttahced in components?

Regards,
Mahendra

-Original Message-
From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: Tuesday, August 28, 2012 5:36 PM
To: Tapestry users
Subject: Re: When to use SetupRender and PageAttached methods

On Tue, 28 Aug 2012 06:48:18 -0300, Athneria, Mahendra  
 wrote:

> Hi,

Hi!

> I am confused about when to use SetupRender and PageAttached methods. I  
> know that PageAttached methods comes in Page Lifecycle and SetupRender  
> methods comes in Component rendering phase cycle.

PageAttached is something that made sense when Tapestry pooled page  
instances, so you shouldn't use it anymore. Use SetupRender instead.

-- 
Thiago H. de Paula Figueiredo

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




Re: When to use SetupRender and PageAttached methods

2012-08-28 Thread Thiago H de Paula Figueiredo
On Tue, 28 Aug 2012 06:48:18 -0300, Athneria, Mahendra  
 wrote:



Hi,


Hi!

I am confused about when to use SetupRender and PageAttached methods. I  
know that PageAttached methods comes in Page Lifecycle and SetupRender  
methods comes in Component rendering phase cycle.


PageAttached is something that made sense when Tapestry pooled page  
instances, so you shouldn't use it anymore. Use SetupRender instead.


--
Thiago H. de Paula Figueiredo

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



Re: [ANN] JumpStart gets jQuery DataTables example

2012-08-28 Thread Chris Mylonas
It is a bloody good software project!!
Kudos to all involved

On 28/08/2012, at 7:55 PM, Emmanuel DEMEY wrote:

> Hi,
> 
> Thanks a lot Geoff !!
> 
> It seems Tapestry5-jQuery is becoming more popular !
> 
> Manu
> 
> 2012/8/28 Geoff Callender 
> 
>> Thanks Bob.
>> 
>> On 27/08/2012, at 8:52 PM, Bob Harner wrote:
>> 
>>> Nice add!
>>> On Aug 27, 2012 6:29 AM, "Geoff Callender" <
>>> geoff.callender.jumpst...@gmail.com> wrote:
>>> 
 Hi all,
 
 JumpStart's newest example is a fully javascripted grid, without you
 having to write any any javascript!
 
 It's called 'jQuery DataTables" and it demonstrates Tapestry5-jQuery's
 DataTable component. You'll find it on show here:
 
   http://jumpstart.doublenegative.com.au/jumpstart/
 
 Cheers,
 
 Geoff
 
 
 -
 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
>> 
>> 
> 
> 
> -- 
> Emmanuel DEMEY
> Ingénieur Etude et Développement
> ATOS Worldline
> +33 (0)6 47 47 42 02
> demey.emman...@gmail.com
> http://emmanueldemey.fr/
> 
> Twitter : @EmmanuelDemey


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



Flash file upload

2012-08-28 Thread Amr Mohamed Mahmoud Hassanien
Hello Guys,

Have anyone tried Flash upload with Tapestry 5.1?

Thanks,
Amr




Re: When to use SetupRender and PageAttached methods

2012-08-28 Thread Lance Java
A page is a (specialized) component so it has all of the component rendering
events. I've never used @PageAttached in a component but I'm assuming that
tapestry is giving you access to the containing Page's lifecycle events.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/When-to-use-SetupRender-and-PageAttached-methods-tp5715836p5715838.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: [ANN] JumpStart gets jQuery DataTables example

2012-08-28 Thread Emmanuel DEMEY
Hi,

Thanks a lot Geoff !!

It seems Tapestry5-jQuery is becoming more popular !

Manu

2012/8/28 Geoff Callender 

> Thanks Bob.
>
> On 27/08/2012, at 8:52 PM, Bob Harner wrote:
>
> > Nice add!
> > On Aug 27, 2012 6:29 AM, "Geoff Callender" <
> > geoff.callender.jumpst...@gmail.com> wrote:
> >
> >> Hi all,
> >>
> >> JumpStart's newest example is a fully javascripted grid, without you
> >> having to write any any javascript!
> >>
> >> It's called 'jQuery DataTables" and it demonstrates Tapestry5-jQuery's
> >> DataTable component. You'll find it on show here:
> >>
> >>http://jumpstart.doublenegative.com.au/jumpstart/
> >>
> >> Cheers,
> >>
> >> Geoff
> >>
> >>
> >> -
> >> 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
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey


When to use SetupRender and PageAttached methods

2012-08-28 Thread Athneria, Mahendra
Hi,

I am confused about when to use SetupRender and PageAttached methods. I know 
that PageAttached methods comes in Page Lifecycle and SetupRender methods comes 
in Component rendering phase cycle.

It means PageAttached should belong to the Page and SetupRender belong to the 
Components. To verify the same I have created one Component and one Page

package net.xyz.components;

public class FooterComponent {

@PageAttached
Public void compAttached(){
System.out.println("in Component compAttached: ")
}

@SetupRender
Public void compRender(){
System.out.println("in Component compRender: ")
}

}

package net.xyz.pages;

public class LoginPage {

@PageAttached
Public void pageAttached(){
System.out.println("in Page pageAttached: ")
}

@SetupRender
Public void pageRender(){
System.out.println("in Page pageRender: ")
}

}

My LoginPage contain FooterComponent.

When I run my page in console I'll get sysout for PageAttached in Page as well 
as in component. Same for the setuprender method.

Can someone please explain me why it is happening?

Regards,
Mahendra



Re: T.5.2.6 Grid with paginator and Checkbox

2012-08-28 Thread Lance Java
As far as I can see, you have 3 options:
1. Fire an AJAX event when a checkbox is ticked and store the checkbox
values serverside (in the session?)
2. Use some javascript to save the checkbox values clientside (in a cookie?)
3. Include the checkbox values (as request parameters?) on the paging
(forward, back etc) URLS.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T-5-2-6-Grid-with-paginator-and-Checkbox-tp5715834p5715835.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