Re: Announcement: Beta release of tapestry-cometd

2012-06-21 Thread Kalle Korhonen
It might just be worth it to consider supporting websockets in the core instead. Wicket just added experimental support for websocket (https://cwiki.apache.org/confluence/display/WICKET/Wicket+Native+WebSockets), we might be able to reuse parts of it. Once IE 10 ga release is out, browser penetrati

Encoder with

2012-06-21 Thread Athneria, Mahendra
Hi, I have one Page which is displaying details of some Client. I am using t:loop to display some data. In t: loop I am just passing source and value. So far so good, my page is working fine. But when I try to submit the Page it suddenly give me the Exception. "Could not find a coercion from t

RE: discard persistent field

2012-06-21 Thread Athneria, Mahendra
Yes I thought about the same, just wanted to confirm if I assign the object to null does it discarded from the Persist state? Regards, Mahendra Athneria Ext-+91 22 6733 3729 Mob-+91 9833 121 309 mahendra.athne...@atos.net -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Yes - sorry I wasn't clear. Thanks for your help. On 21 June 2012 18:30, Thiago H de Paula Figueiredo wrote: > On Thu, 21 Jun 2012 16:36:38 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > That's crazy talk. >> > > Did it work? > > >> Thanks. :-) >> >> On 21 June 2012 15:09,

Re: discard persistent field

2012-06-21 Thread Muhammad Gelbana
http://tapestry.apache.org/persistent-page-data.html The method discardPersistentFieldChanges() of ComponentResources will > discard all persistent fields for the page, regardless of which strategy is > used to store the property. This will not affect the page in memory, but > takes effect for sub

Re: @Symbol and web context-params

2012-06-21 Thread Thiago H de Paula Figueiredo
On Thu, 21 Jun 2012 16:36:38 -0300, Michael Prescott wrote: That's crazy talk. Did it work? Thanks. :-) On 21 June 2012 15:09, Thiago H de Paula Figueiredo wrote: On Thu, 21 Jun 2012 15:11:04 -0300, Michael Prescott < michael.r.presc...@gmail.com> wrote: MyModule { // Doesn't w

Re: Announcement: Beta release of tapestry-cometd

2012-06-21 Thread Lance Java
> Why do we need tapestry5-jquery as a dependency? Unfortunately, CometD does not have a core implementation. It has core javascript with abstract functions and it has dojo and jquery implementations but no core implementation as such. I would have loved to have not needed tapestry-jquery. -- Vi

Re: Announcement: Beta release of tapestry-cometd

2012-06-21 Thread Lance Java
> The question is: how much of this can I look at before I build something right into 5.4? Licensing, copyright, liability, etc. I'm happy to release it under any license you'd like (Apache / MIT). I'd be honoured if you'd consider it as a tapestry submodule -- View this message in context: http

Re: Announcement: Beta release of tapestry-cometd

2012-06-21 Thread Dragan Sahpaski
Why do we need tapestry5-jquery as a dependency? I can see you don't use it in the main project. Cheers, Dragan Sahpaski On Thu, Jun 21, 2012 at 11:28 PM, Howard Lewis Ship wrote: > The question is: how much of this can I look at before I build something > right into 5.4?  Licensing, copyright,

Re: Announcement: Beta release of tapestry-cometd

2012-06-21 Thread Howard Lewis Ship
The question is: how much of this can I look at before I build something right into 5.4? Licensing, copyright, liability, etc. On Thu, Jun 21, 2012 at 2:16 PM, Lance Java wrote: > I'm proud to announce the beta release of tapestry-cometd: A push > implementation for Tapestry based on CometD > >

Announcement: Beta release of tapestry-cometd

2012-06-21 Thread Lance Java
I'm proud to announce the beta release of tapestry-cometd: A push implementation for Tapestry based on CometD Features: * Zero Javascript required * Fully configurable * Use Tapestry templates to format incoming messages * POJO messages (use strings or custom objects) * Built on top of the rock so

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
That's crazy talk. Thanks. :-) On 21 June 2012 15:09, Thiago H de Paula Figueiredo wrote: > On Thu, 21 Jun 2012 15:11:04 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > >> MyModule { >> >> // Doesn't work >> @Symbol("paramname") >> private String param; >> } >> >> It works

Re: @Symbol and web context-params

2012-06-21 Thread Thiago H de Paula Figueiredo
On Thu, 21 Jun 2012 15:11:04 -0300, Michael Prescott wrote: MyModule { // Doesn't work @Symbol("paramname") private String param; } It works as an annotation on a method parameter, though! Have you tried to add @Inject to the field? -- Thiago H. de Paula Figueiredo -

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Steve, I need two web-apps running side by side, not two tapestry apps within the same webapp. :-) No problems there. In any case, I figured out why what I was doing wasn't working, I was trying to do MyModule { // Doesn't work @Symbol("paramname") private String param; } It works as an

Re: @Symbol and web context-params

2012-06-21 Thread Steve Eynon
> because i need multiple apps running side by side. Err... http://tapestry.apache.org/configuration.html#Configuration-SegregatingApplicationsIntoFolders says, "At this time, it is still not possible to run multiple Tapestry 5 applications within the same web application." Other than that there

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Nevermind. :-) Turns out that my problem was just that I was trying to use @Symbol on a module field, instead of on a method parameter. Michael On 21 June 2012 13:43, Michael Prescott wrote: > I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, > and I'm having trouble in

Re: @Symbol and web context-params

2012-06-21 Thread Thiago H de Paula Figueiredo
On Thu, 21 Jun 2012 14:43:53 -0300, Michael Prescott wrote: I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, and I'm having trouble injecting the data source from the servlet container into each of these. With tapestry-spring, I was able to have spring read we

@Symbol and web context-params

2012-06-21 Thread Michael Prescott
I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, and I'm having trouble injecting the data source from the servlet container into each of these. With tapestry-spring, I was able to have spring read web context params, and go from there. But in my tapestry module, @Symbol

Re: discard persistent field

2012-06-21 Thread Howard Lewis Ship
Have you tried assigning them the value null? On Thu, Jun 21, 2012 at 5:59 AM, Athneria, Mahendra < mahendra.athne...@atos.net> wrote: > Hi, > > ** ** > > Is there any way through which I can discard the Object from > PersistantConstant? > > ** ** > > I got > ComponentResources.*discar

discard persistent field

2012-06-21 Thread Athneria, Mahendra
Hi, Is there any way through which I can discard the Object from PersistantConstant? I got ComponentResources.discardPersistentFieldChanges() method which discard all per

Re: Non Maven project Tapestry 5.3

2012-06-21 Thread Thiago H de Paula Figueiredo
On Thu, 21 Jun 2012 09:42:12 -0300, Kristian Marinkovic wrote: not allowed to use ant? many of us are still forced to use ant :) Regardless of what tools you use and not use, Tapestry applications are ordinary Java Servlet API web applications. All you need to do is to put the dependenc

Re: Non Maven project Tapestry 5.3

2012-06-21 Thread Kristian Marinkovic
not allowed to use ant? many of us are still forced to use ant :) On Thu, Jun 21, 2012 at 12:51 PM, Muhammad Gelbana wrote: > In case these policies prohibits ant as well. I guess all you need is to > create tapestry's layout manually, include tapestry's libraries in your > classpath and you are

Re: Non Maven project Tapestry 5.3

2012-06-21 Thread Muhammad Gelbana
In case these policies prohibits ant as well. I guess all you need is to create tapestry's layout manually, include tapestry's libraries in your classpath and you are good to go. To be clear I haven't tried that before although I was thinking about it. This should be helpful http://tapestry.apache

Re: Non Maven project Tapestry 5.3

2012-06-21 Thread Chris Mylonas
jumpstart.doublenegative.com.au all of it downloadable and instructions on how to set it up in eclipse. it is ant scripts, not maven. On 21/06/2012, at 7:45 PM, captain_rhino wrote: > For complicated company polictical reasons I need to demonstrate a non maven > eclipse project. > > Does any h

Non Maven project Tapestry 5.3

2012-06-21 Thread captain_rhino
For complicated company polictical reasons I need to demonstrate a non maven eclipse project. Does any have a good example of this they could share? An axample project or typical non-maven project structure. I am basically just looking to produce a tapestry war using eclispe export functionalit

Re: MultiMapConfiguration

2012-06-21 Thread Lance Java
I have found a (slightly hacky) solution be using an OrderedConfiruration and adding a getTopic() to my Authorizer interface. public interface Authorizer { public String getTopic(); public boolean authorize(Context context); } public void contributeAuthorizers(OrderedConfiguration config) {

MultiMapConfiguration

2012-06-21 Thread Lance Java
Hi, I'm aware that there is an OrderedConfiguration and a MappedConfiguration but I would like a MultiMapConfiguration where I can contribute to a Multimap (guava's implementation here http://guava-libraries.googlecode.com/svn/tags/release03/javadoc/com/google/common/collect/Multimap.html) Has any

Re: AppModule: using injected service in ContributeWebSecurityManager

2012-06-21 Thread Guillaume Bodet
Hi, I created a JNDI object provider to directly inject JNDI resources into managed services : public class JNDIObjectProvider implements ObjectProvider { @Override public T provide(Class objectType, AnnotationProvider annotationProvider, ObjectLocator locator) { JNDIResource an