Re: [bean-edit-form] make a sub-set of parameters visible but not editable

2010-03-29 Thread Ulrich Stärk
Unless someone modifies the DOM and sets it to true. So in your page class you also want to make sure that the value is not updated when readonly is set to true. Uli On 29.03.2010 23:13, aash wrote: i spent hours and hours trying to figure out why TextField didn't simply have a 'readonly' par

PageBeginRenderListener, PageEndRenderListener

2010-03-29 Thread asianCoolz
my page implements both listener but only pageBeginRender(..) is called, pageEndRender(..) is not called - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apach

Re: Import and Export to .xls in Tapestry 5

2010-03-29 Thread Daniel Jue
Sorry, for importing I would suggest using POI. On Mon, Mar 29, 2010 at 8:40 PM, Daniel Jue wrote: > IMHO, you should really have an intermediate model (with column > definitions, and a list of rows containing a list of cells) > From there you can pretty much load it into anything (including your

Re: Import and Export to .xls in Tapestry 5

2010-03-29 Thread Daniel Jue
IMHO, you should really have an intermediate model (with column definitions, and a list of rows containing a list of cells) >From there you can pretty much load it into anything (including your Tapestry Grid). You're going to want this when you eventually need cell styles/formatting/borders/etc th

Re: Import and Export to .xls in Tapestry 5

2010-03-29 Thread Thiago H. de Paula Figueiredo
Hi! On Mon, 29 Mar 2010 16:55:18 -0300, faye alaska wrote: Does anyone here have experience of import and exporting to an .xls form the grid component in Tapestry5 or point me to a good example? The import part would need some library to do the file parsing. Apache has one: http://poi.

Re: @Activation

2010-03-29 Thread Juan E. Maya
There is already a @pageActivationContext that does this. It only works for simple properties though http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html On Mon, Mar 29, 2010 at 10:50 PM, Michael Prescott < michael.r.presc...@gmail.com> wrote: > Hey, it would be really nice if I

Re: [bean-edit-form] make a sub-set of parameters visible but not editable

2010-03-29 Thread aash
i spent hours and hours trying to figure out why TextField didn't simply have a 'readonly' parameter, which would fix this issue. the answer was pretty simple, and caused me to utter a heartfelt "UGH!" you CAN use readonly. it just gets passed from the TextField thing to the tag.

@Activation

2010-03-29 Thread Michael Prescott
Hey, it would be really nice if I could skip all the writing of onActivate() and onPassivate() methods, just using an annotation like this: @Persist("activationContext") public String someUsefulIdentifier; Or, perhaps (and more useful for my case, when I want a domain entity handy): @ActivationC

Import and Export to .xls in Tapestry 5

2010-03-29 Thread faye alaska
Does anyone here have experience of import and exporting to an .xls form the grid component in Tapestry5 or point me to a good example? The example Tapestry5HowToCreateADynamicPDF is awesome. so I am wondering if there is one somewhere for .xls. Thanks you in advance for your help. Faye -- View

Re: [ANNOUNCEMENT] Tapestry-resteasy 0.0.1 released!

2010-03-29 Thread P . Stavrinides
A very interesting little project... nice :) - Original Message - From: "Robin Komiwes" To: "Tapestry users" Sent: Monday, 29 March, 2010 09:17:41 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: [ANNOUNCEMENT] Tapestry-resteasy 0.0.1 released! Nice! Already tried your c

Re: Persist value of checkbox ?

2010-03-29 Thread Howard Lewis Ship
On Mon, Mar 29, 2010 at 9:14 AM, Thiago H. de Paula Figueiredo wrote: > On Mon, 29 Mar 2010 13:10:15 -0300, jaques robert > wrote: > >> Hello, > > Hi! > >> I've tried this code which present 10 checkbox which I submit. Then I go >> back to this page so I'd like those checkbox to be ticked if they

Re: Persist value of checkbox ?

2010-03-29 Thread Thiago H. de Paula Figueiredo
On Mon, 29 Mar 2010 13:15:17 -0300, Michael Prescott wrote: You're missing the 'value' attribute from your checkbox definition. The id attribute just gives the checkbox a name, it doesn't automatically bind it to the _pute property. It does bind, as the value parameter has autoconnect =

Re: Persist value of checkbox ?

2010-03-29 Thread Michael Prescott
You're missing the 'value' attribute from your checkbox definition. The id attribute just gives the checkbox a name, it doesn't automatically bind it to the _pute property. Michael On Mon, Mar 29, 2010 at 12:10 PM, jaques robert wrote: > Hello, > > I've tried this code which present 10 checkbox

Re: Persist value of checkbox ?

2010-03-29 Thread Thiago H. de Paula Figueiredo
On Mon, 29 Mar 2010 13:10:15 -0300, jaques robert wrote: Hello, Hi! I've tried this code which present 10 checkbox which I submit. Then I go back to this page so I'd like those checkbox to be ticked if they were ticked before. So in my class I've coded

Persist value of checkbox ?

2010-03-29 Thread jaques robert
Hello, I've tried this code which present 10 checkbox which I submit. Then I go back to this page so I'd like those checkbox to be ticked if they were ticked before.                          So in my class I've coded :     @Persist     @Property     private boolean _pute; private Object

Re: Problem with HTML entities and OutputRaw

2010-03-29 Thread Thiago H. de Paula Figueiredo
On Mon, 29 Mar 2010 12:26:46 -0300, Andreas Andreou wrote: @Thiago of course it's possible to work this way. But i've found than when switching OS, IDEs / editors and VCS all the time, it's just simpler + safer to keep such strings out of java source I agree with you. :) I was just sayin

Re: Problem with HTML entities and OutputRaw

2010-03-29 Thread Mark Allan
On 29 Mar 2010, at 4:26 pm, Andreas Andreou wrote: Are you using the the encoding flag of javac ? I'll have a look. Right now, I'm just using mvn compile so will try and find out what flags it passes to javac. -- The University of Edinburgh is a charitable body, registered in Scotland,

Re: Problem with HTML entities and OutputRaw

2010-03-29 Thread Andreas Andreou
Are you using the the encoding flag of javac ? @Thiago of course it's possible to work this way. But i've found than when switching OS, IDEs / editors and VCS all the time, it's just simpler + safer to keep such strings out of java source On Mon, Mar 29, 2010 at 16:28, Mark Allan wrote: > > On

Re: Problem with HTML entities and OutputRaw

2010-03-29 Thread Mark Allan
On 29 Mar 2010, at 2:21 pm, Thiago H. de Paula Figueiredo wrote: On Mon, 29 Mar 2010 09:32:05 -0300, Andreas Andreou wrote: I've been bitten a few times in the past by having such strings in the java files My first language is Portuguese, which has a lot of accented characters, and I

Re: Problem with HTML entities and OutputRaw

2010-03-29 Thread Thiago H. de Paula Figueiredo
On Mon, 29 Mar 2010 09:32:05 -0300, Andreas Andreou wrote: I've been bitten a few times in the past by having such strings in the java files My first language is Portuguese, which has a lot of accented characters, and I don't have this problem. But there's one catch: you have to instruct

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
Hi, I think I solved this one. The findings show that FCK editor java integration library could do little bit more descriptive errors... The SimleFckEditorConnector you supplied is a bit invalid. The method public List> getFiles(ResourceType rt, String currentFolder) throws InvalidCurrentFolde

Re: Decorate parameter

2010-03-29 Thread Christophe Cordenier
Actually your remarks makes me wondering if it's really a good solution to 'encode' all the activation parameters, i should focus on a list of type. Have to think on how to achieve this... Thanks for discussion. Christophe Cordenier. 2010/3/26 Josh Canfield > :) Thanks. I understood that it cou

Re: Problem with HTML entities and OutputRaw

2010-03-29 Thread Andreas Andreou
I've been bitten a few times in the past by having such strings in the java files and i've since considered it a good practice to always move them to resourcebundles - perhaps it's worth a try... On Mon, Mar 29, 2010 at 14:11, Mark Allan wrote: > On 23 Mar 2010, at 12:30 pm, Mark Allan wrote: > >

Re: Tapestry and SeeSaw talk

2010-03-29 Thread Ivano Luberti
I get: This is a private video. Do you have permission to watch this video? If you do please first log in to Vimeo to watch this video. Il 26/03/2010 17.03, Ben Gidley ha scritto: > Hi, > > Skillsmatter have changed the permissions - so it may work better now or try > http://vimeo.com/10399058 >

Re: easyfckeditor and file upload

2010-03-29 Thread Tomek
easyfck ver. 1.0.4 tapestry ver. 5.1.0.5 I also noticed that only when I add configuration to my textarea that uses easyfckeditor, searvices like FckEditorUserRightService FckEditorPathService are initialized. This is my config for fckeditor FCKConfig.ContextMenu = []; FCKConfig.ToolbarSets["Defa

Re: custom Expires: header?

2010-03-29 Thread Ilya Obshadko
The website seems to be down, but I've managed to find source code at Formos. I don't need so much of functionality, though. Could you elaborate - which type of contribution should I provide to just set Expires to "now + 2h" for every page request? Thanks in advance. On Mon, Mar 29, 2010 at 3:06

Re: Problem with HTML entities and OutputRaw

2010-03-29 Thread Mark Allan
On 23 Mar 2010, at 12:30 pm, Mark Allan wrote: On 23 Mar 2010, at 12:14 pm, Thiago H. de Paula Figueiredo wrote: On Tue, 23 Mar 2010 09:07:49 -0300, Mark Allan wrote: I know I can use the OutputRaw element, and most of the time it works fine, but I can't use that inside an alt tag for my

Re: custom Expires: header?

2010-03-29 Thread Ben Gidley
If you look at tapestry.ioko.com there is an open source library there that does this - it is called Cache Control. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Mon, Mar 29, 2010 at 10:45 AM, Ilya Obshadko wrote: > How do I add custom logic for the Expires: header in my module? > > - cont

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
Hi, and sorry for spamming this many messages :) What is the tapestry 5 version? Only 5.1.0.5 is supported. Later I plan to continue to support 5.1 and 5.2 branches if there are some changes that require heavy changes, otherwise both are supported out of the box. So, I have not tested with the 5

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
Hi, also forgot to mention that 1.0.5 version contains fix for that warning during startup, however it shouldn't affect anything. I'll try to release 1.0.5 as soon as We've solved this problem. - Ville Tomek-28 wrote: > > Hi, > > I use jetty 6.1.9 as a maven plugin. Problem occurs in Wind

Re: easyfckeditor and file upload

2010-03-29 Thread Ville Virtanen
Hi, this seems to be hard to reproduce, as I've run now tests for over an hour. The version of easyfck is 1.0.4, right? If you can share the project with me for testing purposes I would be more than happy to download it and debug it. I understand if you don't wish to share it though. Any pointer

custom Expires: header?

2010-03-29 Thread Ilya Obshadko
How do I add custom logic for the Expires: header in my module? - contributeRequestHandler doesn't seem to work - decorateResponse doesn't seem to work I'm just curious - at which point Expires: 0 header is set and how could I override this default behavior? -- Ilya Obshadko

Re: easyfckeditor and file upload

2010-03-29 Thread Tomek
Hi, I use jetty 6.1.9 as a maven plugin. Problem occurs in Windows and Linux this is my implementation of FckEditorUserRightService public class SimpleFckEditorUserRightServiceImpl implements FckEditorUserRightService { private final Logger logger; public SimpleFckEditorUserRightServic