Re: Student Proposal for GSOC 2010 (nifty components)

2010-04-08 Thread Ulrich Stärk
Hello Pablo, that all sounds very nice but is more or less just a summary of what we've written in JIRA. Your proposal should include an abstract, shortly describing what you are planning to do, followed by a detailed description of both the problem and your proposed solution to it. Some

HTTPS to HTTP loses SessionState in JBoss?

2010-04-08 Thread Geoff Callender
My Login page is annotated @Secure and it puts user info into an object marked @SessionState before going to a Welcome page in the usual way. However, problems occur if the Welcome page is not annotated @Secure and I'm running in JBoss. You have to log in twice! The first time, it seems the

Re: HTTPS to HTTP loses SessionState in JBoss?

2010-04-08 Thread Christophe Cordenier
Hi, I guess this is due to secured jsessionid cookies. Because you have a public and a private area in your site, two sessions are created. Best Regards, Christophe Cordenier. 2010/4/8 Geoff Callender geoff.callender.jumpst...@gmail.com My Login page is annotated @Secure and it puts user info

Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
*Proposal Title*: Google Map Module and JavaScript-only PDF viewer component * * *Student Name:* Charitha Madusanka Elvitigala * * *Student E-mail:* charithc...@gmail.com * * *Organization* Apache Tapestry * * *Project Assigned Mentor*: Thiago H. de Paula Figueiredo Ulrich Stärk * *

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Ulrich Stärk
Hello Charith, that sounds much more like a real proposal ;). I wonder though, why you would need SOAP for the JavaScript only PDF viewer? I think the easiest way would be to bind the PDF contents to be viewed to some parameter of the PDF viewer component, or load the contents asynchronously

Tapestry/Tomcat problem (bug) getting lastmodified + solution

2010-04-08 Thread Geoff Meakin
Hi, I'm more of a sysadmin than a developer, but we experienced a problem whereby static assets wrapped up in jars within wars, requested by Tapestry and deployed on tomcat (or jboss) would return 0 for their lastmodified time (interpreted as the year 1970)- which would cause us

Re: Tapestry/Tomcat problem (bug) getting lastmodified + solution

2010-04-08 Thread Christophe Cordenier
Hi, I don't think this is bug, in production mode caching is needed Please refer to http://tapestry.apache.org/tapestry5.1/guide/conf.html tapestry.application-version The version of the application, which is incorporated into URLs for context and classpath assets. Assets may be compressed

Res: [T5.1-Hib] Tapestry and Envers - Retrieve user information for auditing

2010-04-08 Thread Everton Agner
Hi, I've noticed in my project's infra-structure and there is something related on storing request data on a static Map, which identifies the elements by the current Thread. Since Envers listener is a Synchronized process (and not another thread), I could work by that way. I only need to make

Re: Persist value of checkbox ?

2010-04-08 Thread jaques robert
I've finally found it using     @Inject     private RequestGlobals requestGlobals; Now I'd like to pass a context to my page, fetch the name of checkbox I'd like to tick. So I've tried this kind of code in the onActivate : void onActivate(String exportNameForModification) {        

Re: Tapestry/Tomcat problem (bug) getting lastmodified + solution

2010-04-08 Thread Christophe Cordenier
Sorry, I have mis-read your email, what is your JVM version ? 2010/4/8 Geoff Meakin geo...@gamesys.co.uk Hi, I'm more of a sysadmin than a developer, but we experienced a problem whereby static assets wrapped up in jars within wars, requested by Tapestry and deployed on tomcat (or jboss)

Re: Tapestry/Tomcat problem (bug) getting lastmodified + solution

2010-04-08 Thread Geoff Meakin
Hi, The following demonstrates the bug without the fix. Demonstrable configuration is Linux Centos5, Jboss-4.2.2.ga, running Tapestry 5.1.0.5 but am told by others on the list it affects later and most recent versions too. It seems to only affect the case where requested assets are located

Re: Persist value of checkbox ?

2010-04-08 Thread Dmitry Gusev
Nice trick, Howard I also noticed that using Servlet API could be is easier. For instance, in some cases I prefer to pass page parameters as simple HTTP params in URL, without using page context, and use Request instance to get them in onActivate. On Mon, Mar 29, 2010 at 20:45, Howard Lewis

Re: Tapestry/Tomcat problem (bug) getting lastmodified + solution

2010-04-08 Thread Geoff Meakin
Hi, Thanks its /usr/java/latest/bin/java -version java version 1.6.0_07 Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode) On 8 Apr 2010, at 15:09, Christophe Cordenier wrote: Sorry, I have mis-read your email, what is

Re: palette select by key not label

2010-04-08 Thread Andreas Andreou
what do you mean get by key rather than label ? On Thu, Apr 8, 2010 at 07:40, asianCoolz second_co...@yahoo.com wrote: i'm refering to this component http://tapestry.apache.org/tapestry4/tapestry-contrib/ComponentReference/Palette.html can advise how to modify it so that i can get by key

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
Hi Uli , First of all I'm thank you for your comment :-) I wonder though, why you would need SOAP for the JavaScript only PDF viewer? Because I think Applications written in Java can easily integrate JavaScript only PDF viewer component with Web services using SOAP. Now i'm think load the

Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
Hi Uli , First of all I'm thank you for your comment :-) I wonder though, why you would need SOAP for the JavaScript only PDF viewer? Because I think Applications written in Java can easily integrate JavaScript only PDF viewer component with Web services using SOAP. Now i'm think load the

user defined field

2010-04-08 Thread faye alaska
I have a requirement to be able to allow user/admin to define a field to be numeric, alpha-numeric, or a select type. I have been using the beaneditform, but I defined the fields -- is there an example to show how this can be done in the beaneditform? or just any field in general? Thanks a

Re: user defined field

2010-04-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Apr 2010 13:09:19 -0300, faye alaska haifeizh...@gmail.com wrote: I have a requirement to be able to allow user/admin to define a field to be numeric, alpha-numeric, or a select type. I have been using the beaneditform, but I defined the fields -- is there an example to show

Exception with T5 checkbox

2010-04-08 Thread jaques robert
Hi, I'm using the following html code inside my tml file : input type=checkbox name=selectedDocumentFields value=${documentField.documentFieldDN} ${documentField.checked}/ And got the following exception : Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character $ (code

Re: Exception with T5 checkbox

2010-04-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Apr 2010 13:42:28 -0300, jaques robert mondes_englou...@yahoo.fr wrote: Hi, Hi! I'm using the following html code inside my tml file : input type=checkbox name=selectedDocumentFields value=${documentField.documentFieldDN} ${documentField.checked}/ Why aren't you using the

Re: Exception with T5 checkbox

2010-04-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Apr 2010 13:42:28 -0300, jaques robert mondes_englou...@yahoo.fr wrote: input type=checkbox name=selectedDocumentFields value=${documentField.documentFieldDN} ${documentField.checked}/ The ${documentField.checked} part is valid HTML but not valid XML, and Tapestry templates

Message Override App - Page - Component

2010-04-08 Thread Liliana Liu
I wanted to validate how the message override hierarchy is supposed to work. Normally the label specified in a page's message properties file overrides the ones specified in app.properties. However, that behavior does not seem to carry over when a component is involved. There is a

Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-08 Thread Charith Madusanka
*Proposal Title:* Google Map Module and JavaScript-only PDF viewer component *Student Name:* Charitha Madusanka Elvitigala * * *Student E-mail:* charithc...@gmail.com * * *Organization* Apache Tapestry * * *Project Assigned Mentor*: Thiago H. de Paula Figueiredo Ulrich Stärk * *

Re: Message Override App - Page - Component

2010-04-08 Thread Robert Zeigler
In this case, it's best to just think of a page as another component, and the chain is currently: component's own .properties file, app.properties file. That is, a page only override's the messages contained in its own catalogue. There /is/ a way to do what you want, though. You can inject

Re: Message Override App - Page - Component

2010-04-08 Thread Liliana Liu
Thanks for the getContainerMessages() tip. That looks like a good solution for getting the message propagated. I will also look into altering the component but I may not need flexibility to that extent. Thanks for your help. Liliana On Apr 8, 2010, at 1:17 PM, Robert Zeigler wrote: In

Tweaking an AjaxFormLoop

2010-04-08 Thread Juan Isern
Hi people, I hope you're doing okay. I'd like to compliment the people that designed Tapestry, it's just great. It turns out that when I'm thinking of a possible solution to a complex problem, it's already implemented as a component or part of the framework. So, kudos to them. (as a suggestion:

Coercion from String to ArrayList in Loop

2010-04-08 Thread Mite
Hi I have this method and need to display the strings in the .tml. When the page is opened the first time it works fine. But when I submit from the page it throws: Could not find a coercion from type java.lang.String to type java.util.ArrayList. In the documentation is written that this might

Re: Tweaking an AjaxFormLoop

2010-04-08 Thread Robert Zeigler
On Apr 8, 2010, at 4/81:48 PM , Juan Isern wrote: What I would like to do is to trigger an addRow event by executing some javascript (that will be invoked when an upload finishes). I thought of simulating a click event on an invisible add row link but I'm sure there's a prettier solution

Re: Coercion from String to ArrayList in Loop

2010-04-08 Thread Juan E. Maya
Hi, if you're not editing the objects just set the formState=none in the Loop components. On Thu, Apr 8, 2010 at 10:11 PM, Mite mitemeis...@gmail.com wrote: Hi I have this method and need to display the strings in the .tml. When the page is opened the first time it works fine. But when I

RE: Zone updating / caching

2010-04-08 Thread Jim O'Callaghan
Bump Surely somebody must have come up with something tidy for this scenario :-) ? Regards, Jim. -Original Message- From: Jim O'Callaghan [mailto:j...@peritussolutions.com] Sent: 06 April 2010 18:37 To: 'Tapestry users' Subject: Zone updating / caching Is there a convenient way of

Re: Zone updating / caching

2010-04-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Apr 2010 21:19:45 -0300, Jim O'Callaghan jc1000...@yahoo.co.uk wrote: Surely somebody must have come up with something tidy for this scenario :-) Have you seen the ProgressiveDisplay component? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate

Re: Tweaking an AjaxFormLoop

2010-04-08 Thread Juan Isern
Robert, I've got to say that you gave me the answer that I feared most. Hehe, REALLY thanks for your tips, I knew already that sooner or later I had to hack into tapestry.js Cheers! Robert Zeigler wrote: On Apr 8, 2010, at 4/81:48 PM , Juan Isern wrote: What I would like to do is to

RE: Tweaking an AjaxFormLoop

2010-04-08 Thread Brian Heston
I've done something similar without much hacking. In my case I have an autocomplete field in each row, and when a selection is made I needed to add a new row automatically so the user can enter the next item. I found that the row injector always has the same name, so I just call the trigger

Re: Tweaking an AjaxFormLoop

2010-04-08 Thread Robert Zeigler
That just sounds like you're asking for trouble down the road, though. ;) You're effectively relying on implementation details of the component. It'll break if: * AjaxFormLoop changes the id of the contained RowInjector component * You want more than one AjaxFormLoop on the page I'll

Re: Tweaking an AjaxFormLoop

2010-04-08 Thread Juan Isern
Robert, following your recomendation finally implemented a component that does basically nothing but register itself as a trigger and has an id assigned by tap as well. On the client side, I have a global maptriggerId, rowInjector and a function triggerRowInjector(triggerId) so that I can inject

New T5 GAE app

2010-04-08 Thread Alex Kotchnev
I just added this to the wiki, but I thought I'd drop a note here as well. We just launched a new T5.2 based site (www.zadachite.com) deployed to GAE. The public content on the site is mostly static (using T5 for the templating and a few components), but there is more to come. This app has been