Re: About Tapestry 5.4

2013-09-27 Thread Bob Harner
I have no such powers On Fri, Sep 27, 2013 at 7:46 PM, Kalle Korhonen wrote: > On Fri, Sep 27, 2013 at 4:35 PM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Fri, 27 Sep 2013 18:46:45 -0300, Muhammad Gelbana < > m.gelb...@gmail.com> > > wrote:Bob, if I can help with the do

Re: About Tapestry 5.4

2013-09-27 Thread Kalle Korhonen
On Fri, Sep 27, 2013 at 4:35 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 27 Sep 2013 18:46:45 -0300, Muhammad Gelbana > wrote:Bob, if I can help with the documentation, please let me know. I'd > love to give something back to Tapestry. I have dived deep in Tapestry's >

Re: About Tapestry 5.4

2013-09-27 Thread Thiago H de Paula Figueiredo
On Fri, 27 Sep 2013 18:46:45 -0300, Muhammad Gelbana wrote: Thanks you Thiago for your clarification. My pleasure. :) Bob, if I can help with the documentation, please let me know. I'd love to give something back to Tapestry. I have dived deep in Tapestry's code, but I guess some docum

Re: many checklist's with one selected list

2013-09-27 Thread Thiago H de Paula Figueiredo
On Fri, 27 Sep 2013 18:39:46 -0300, Eugen wrote: The mean of the grouping is only for display: each group becomes a caption and is placed in a separate column, but the selected list to persist should be unique All would be nice if the checklist would append to the list and not empty it... T

Re: About Tapestry 5.4

2013-09-27 Thread Muhammad Gelbana
Thanks you Thiago for your clarification. Bob, if I can help with the documentation, please let me know. I'd love to give something back to Tapestry. I have dived deep in Tapestry's code, but I guess some documentation work is a no brainer task and anyone can contribute :) *-*

Re: many checklist's with one selected list

2013-09-27 Thread Eugen
The mean of the grouping is only for display: each group becomes a caption and is placed in a separate column, but the selected list to persist should be unique All would be nice if the checklist would append to the list and not empty it... One option would be to to have separate lists for each gr

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Martin Kersten
The answer is quite easy if you are up for a bit hacking. Just define a block around the part you want to write raw. Then provide a special render method for the block you want to write differently. And when tapestry wants to render the block, just open the template file yourself and read everythin

Re: T5 IOC Integration Questions

2013-09-27 Thread Martin Kersten
Norman, I implemented something I called Invoker lately. It was quite easy to do field injection and calling methods where you inject all parameters. The mixed part was quite difficult though (provide some parameters and inject the others). Also be aware of that the ordering of methods is not guara

Re: many checklist's with one selected list

2013-09-27 Thread Thiago H de Paula Figueiredo
On Fri, 27 Sep 2013 17:24:36 -0300, Eugen wrote: Hi, Hi! it is possible to bind the same list of enums to many checklist components inside one form? Why do you want to do that? I'm not sure how editing three times the same list in the same form makes sense. Why don't you have three diff

many checklist's with one selected list

2013-09-27 Thread Eugen
Hi, it is possible to bind the same list of enums to many checklist components inside one form? My scenario is follow: 1 given are an enum: enum A{ BA, BB, CA, CB, DA, DB} 2. the second enum split the enum A in more groups private List enums; enum Group(A[]) {

Re: T5 IOC Integration Questions

2013-09-27 Thread Norman Franke
On Sep 27, 2013, at 1:31 PM, Thiago H de Paula Figueiredo wrote: > On Fri, 27 Sep 2013 13:11:33 -0300, Norman Franke wrote: > >> I'm trying to better integrate Atmosphere and Tapestry 5. It would make life >> easier if there was a way for T5's IOC layer to inject into an existing >> object,

Re: Live Sites Running 5.4 Anyone?

2013-09-27 Thread Barry Books
Just put up www.judypaul.com The previous version was build with the tapestry-jquery and tapestry-bootstrap modules but it's now 5.4 with Bootstrap 3. I developed 4 modules to support this site and I'll try and clean them up and make them available soon. They are: 1. tapestry-bootstrap which cont

Re: T5 IOC Integration Questions

2013-09-27 Thread Thiago H de Paula Figueiredo
On Fri, 27 Sep 2013 13:11:33 -0300, Norman Franke wrote: I'm trying to better integrate Atmosphere and Tapestry 5. It would make life easier if there was a way for T5's IOC layer to inject into an existing object, instead of having it need to create objects itself. I can't find one, if it

Re: Quick question about where best to store user files

2013-09-27 Thread Boris Horvat
I use Amazon S3 and it works perfectly - strongly recommended Cheer On Fri, Sep 27, 2013 at 5:32 PM, Barry Books wrote: > The upload component will give you the mime-type. Store that and return it > in the stream response. > > > On Fri, Sep 27, 2013 at 10:26 AM, Steve wrote: > > > Hi, > > > >

Re: Tapestry + Hibernate + Testing

2013-09-27 Thread Martin Kersten
I always start simple first and most simply is without tapestry. When you deal with 3 or 4 services at once you feel the need to go for IOC. Then you want to test a single page and thats when you use tapestry-test and then you go for full scale testing and you find yourself using htmlunit or seleni

Re: Multi Upload for Tap5.4?

2013-09-27 Thread Michał Gruca
@George : Tawus component has been working with alpha ~11 so it should be still working. Please let me know if you'll be able to run blueimp upload component. Many thanks, Michal On Fri, Sep 27, 2013 at 5:53 PM, George Christman wrote: > Thanks Lance, I actually seen his post about Valums last

T5 IOC Integration Questions

2013-09-27 Thread Norman Franke
I'm trying to better integrate Atmosphere and Tapestry 5. It would make life easier if there was a way for T5's IOC layer to inject into an existing object, instead of having it need to create objects itself. I can't find one, if it exists. I have made a few modifications to Atmosphere that let

Re: StreamResponse an EventLink

2013-09-27 Thread Jaroslav Ciml
Hi, I have two projects now. One with working StreamResponse returned from event handler and another project which throws that weird exception. There is Tapestry version 5.3.6 in both projects. It does not seem to be an issue of a particular servlet container. It's Jetty 6.1.26 in both cases. M

Re: Multi Upload for Tap5.4?

2013-09-27 Thread George Christman
Thanks Lance, I actually seen his post about Valums last night which I believe is the same library tapestry-jquery is using. I moved away from the component after seeing the licensing agreement. Anyhow, I stumbled upon this component which looks pretty promising. https://github.com/blueimp/jQuery

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Barry Books
OutputRaw does not do the same thing because it does not support parameter expansion, but you are correct there are potential issues with this approach. I can't use the outputRaw component here because the data is the template. It does let you do things like this Which allows th

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Thiago H de Paula Figueiredo
On Fri, 27 Sep 2013 12:31:01 -0300, Barry Books wrote: The long story is I have a CKEditor component that allows site admins to select content on a page and edit it. I do this with the Dynamic component. I'm not sure Dynamic, which is basically Tapestry templates loaded from any place, is

Re: Quick question about where best to store user files

2013-09-27 Thread Barry Books
The upload component will give you the mime-type. Store that and return it in the stream response. On Fri, Sep 27, 2013 at 10:26 AM, Steve wrote: > Hi, > > Sorry for another message, just another (very quick, and related) question. > These files which are uploaded can be of any type. In order t

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Barry Books
The long story is I have a CKEditor component that allows site admins to select content on a page and edit it. I do this with the Dynamic component. Occasionally I need to put a style tag in the template to override the default styling for the page. In this case I have a template like: *html

Re: Quick question about where best to store user files

2013-09-27 Thread Steve
Hi, Sorry for another message, just another (very quick, and related) question. These files which are uploaded can be of any type. In order to display them on the page (rather than download them), I use a component I made named "MediaViewer". The "MediaViewer" takes in a file as a param and uses b

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Dmitry Gusev
I know this isn't solution, just a thought. But if that is inline styles, probably you can use external *.css files and embed them using

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Barry Books
Unfortunately this is plain text coming from a database that's used as the template for the Dynamic component. It's in a style tag so it really needs to be > and since it is user input I can't just move it into another file. On Fri, Sep 27, 2013 at 9:38 AM, Dmitry Gusev wrote: > I'm always havi

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Dmitry Gusev
Michael, that won't work, because in this case CDATA is just a handy tool to allow XML parser to encode special characters as entities himself without you to manually converting > to > You can test it yourself: //= 1'); }

Re: Quick question about where best to store user files

2013-09-27 Thread Steve
Hi, Ok, I understand exactly what I need to do now. It's going to take me a bit of time to change what I have done so far but this is exactly the information I needed. It will probably be a few days (especially with it being the weekend) for me to make the changes in what I have so i'll get back

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Michael
// // But you won't be able to use ${vars} in this sections. 27.09.2013 18:38, Dmitry Gusev пишет: I'm always having issues with these characters when I try to put JavaScript logic, like for (var i = 0; i<

Re: Dynamic templates vs > (and other special characters)

2013-09-27 Thread Dmitry Gusev
I'm always having issues with these characters when I try to put JavaScript logic, like for (var i = 0; i < 10; i++) or if (a>b) {}. I haven't found better approach than moving this code out of template to external *.js files. On Fri, Sep 27, 2013 at 6:08 PM, Barry Books wrote: > Is there any w

Re: Quick question about where best to store user files

2013-09-27 Thread Thiago H de Paula Figueiredo
On Fri, 27 Sep 2013 11:04:41 -0300, Barry Books wrote: Depending on your needs I would either put them in a database or on Amazon S3. Then write a page that retrieves them and returns them with a stream response. This solution is the best one because it adds a point in which you can put

Re: Quick question about where best to store user files

2013-09-27 Thread Dmitry Gusev
I wouldn't store any user files in context. If you have to store the files on the filesystem you better create some working dir and pass the path to that dir to your application as parameter. The reason why you shouldn't store anything in context is that you usually deploy *.war file to applicatio

Dynamic templates vs > (and other special characters)

2013-09-27 Thread Barry Books
Is there any way to but a > sign in a dynamic template and have it rendered as '>'. I end up with '>' which is not what I want. I know the suggestion for tml files is to use outputRaw but that does not work in a dynamic template. Thanks Barry

Re: Quick question about where best to store user files

2013-09-27 Thread Barry Books
Depending on your needs I would either put them in a database or on Amazon S3. Then write a page that retrieves them and returns them with a stream response. With S3 you could also securely serve them direclty from S3. On Fri, Sep 27, 2013 at 8:50 AM, Steve wrote: > Hi, > > I have an applicatio

Re: Broken links and my own confusion - T5.4 upgrade

2013-09-27 Thread Steve
Hi Serge, Sorry for my late reply. Thanks for the pointers, that's perfect. I really appreciate your help, Steve On 14 September 2013 22:30, Serge Eby wrote: > Hi, > > Since 5.4 is still under development, your best bet to keep up is to follow > the announcements on the mailing list. > Here

Quick question about where best to store user files

2013-09-27 Thread Steve
Hi, I have an application which requires a user to upload some files. They are then saved somewhere. Currently that place is in the context, so for example: ${context:/userfiles/}${user.name}/{$id}/${filename} I do not think this is the best way to do it, as that means anyone who knows that URL c

Re: About Tapestry 5.4

2013-09-27 Thread Thiago H de Paula Figueiredo
On Thu, 26 Sep 2013 19:20:06 -0300, Muhammad Gelbana wrote: 1. In Howard's blog post, he dai "Very little on the server side changed with the upgrade to 5.4; but revisiting and rewriting all that JavaScript was more th

Re: dynamically revealing a block

2013-09-27 Thread John
I don't want to pass all the content in the initial render, rather when the block is to be revealed it obtains the content to render by ajax to the associated component. So I think I must use a zone somehow. John - Original Message - From: Lance Java To: Tapestry users Sent: F

Re: About Tapestry 5.4

2013-09-27 Thread Bob Harner
As for the documentation, very little changes with 5.4, except notably the JavaScript, Ajax/Zones, and CSS pages, which will need major work. I'm planning on introducing a tab mechanism that let's us keep alternate versions of code examples & text at the same spot on the page, and hopefully it wil

[5.4.22] Possible issue with Element#attribute for css class. -> Class is replaced and not added

2013-09-27 Thread Bård Magnus Kvalheim
Hi guys. So I've might have come across a bug in 5.4.22 when trying to add a css class to an element. The Element#addClassName is deprecated and delegate to Element#attribute where attributes named "class" now gets special treatment. The problem I'm seeing is that Element#attribute overrides the

Re: dynamically revealing a block

2013-09-27 Thread Lance Java
This is a pure javascript question, not really related to tapestry. jQuery toggle() and show() will do it (and also support animations). http://api.jquery.com/toggle/ http://api.jquery.com/show/

Re: dynamically revealing a block

2013-09-27 Thread Eugen
Hi, see bootstrap collapse module http://getbootstrap.com/javascript/#collapse 2013/9/27 John : > Hi, > > I'd like to display a division and then when the user clicks in it have am > inner part of it appear/expand. > > It's for use in a mail reader style page where the user sees the last message

dynamically revealing a block

2013-09-27 Thread John
Hi, I'd like to display a division and then when the user clicks in it have am inner part of it appear/expand. It's for use in a mail reader style page where the user sees the last message from someone but can click to see the whole conversation. Any ideas how to Tapestry this? regards, John

Re: Multi Upload for Tap5.4?

2013-09-27 Thread Lance Java
Taha blogged about integrating Valums file-uploader with tapestry (pre 5.4) here http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ I see that file-uploader has changed to fine-uploader and now has a commercial license so perhaps it's not suitable but the blog post still might be help

Re: [5.4.22] Application 'randomly' starts choking out 404s for t5/core/dom and underscore

2013-09-27 Thread Peter Hvass
Yes have managed to get 404s by interrupting a page load.. guess it makes sense. But it doesn't reoccur for subsequent attempts whereas in the issue we're experiencing it does. Plus the 404s generated by interrupting page load are occurring regardless of GZIP being on or off (which again stands

Re: [5.4.22] Application 'randomly' starts choking out 404s for t5/core/dom and underscore

2013-09-27 Thread Peter Hvass
Thanks for the reply Howard; we'll run with GZIP disabled for a while and see if it reoccurs. So reloading page while modules are still loading up might reproduce perhaps? Will give it a go! We're noticing that when this starts happening it starts happening for every single session. :P