Re: Tapestry 4.1 app

2008-08-07 Thread Paul Stanton
Sortable: i'd use the contrib.table component group, but that's not a priority. Security: an in house approach handled at two levels - firstly page level, so each request is subjected to a credentials check - and secondly at controller level so each controller method double checks that the pr

Re: Tapestry 4.1 app

2008-08-07 Thread Loïc Talbot
I just meant when the transaction is being edited, the page where you can change the fields of a transaction you had previously recorded, at this moment the button should display "save" instead of "edit transaction" because it's currently edited... Loïc 2008/8/7 Paul Stanton <[EMAIL PROTECTED]> >

Re: T5: Dynamic asset path

2008-08-07 Thread Davor Hrg
it depends on what you need, but you could combine the asset service to generate base path and add the rest programatically this way you don't need a method a component would be even better to avoid copy/paste Davor Hrg On Wed, Aug 6, 2008 at 4:14 PM, Inge Solvoll <[EMAIL PROTECTED]>wrote: >

T5: get value of textfield

2008-08-07 Thread aicfr
Hi ! Here is my problem : i have a little form Login : Login : Password : and i'd like to know if it's possible to get the value of t:value parameter in a custom validator. Here, i'd like to get user.login. Thanks ! -- View this message in context: http://n2.nabble.com/T5%3A-get-value

Re: T5: get value of textfield

2008-08-07 Thread aicfr
In my custom validator : public void validate(Field field, String constraintValue, MessageFormatter formatter, String value) throws ValidationException { String controlName = field.getControlName(); } But, it's not possible to get the bind of field ? I'd

Re: T5: get value of textfield

2008-08-07 Thread Ulrich Stärk
You've got the value parameter which gets populated with the user's input, what's wrong with that? Uli Am Do, 7.08.2008, 11:51, schrieb aicfr: > > In my custom validator : > > public void validate(Field field, String constraintValue, MessageFormatter > formatter, > String va

Re: T5: Multiple File Upload

2008-08-07 Thread S Simm
I'd love to see some code snippets too. I need the same functionality. Thanks, -Stephen -- View this message in context: http://www.nabble.com/T5%3A-Multiple-File-Upload-tp15598726p18867712.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

RE: [ANN] T5: JumpStart now runs online

2008-08-07 Thread Blower, Andy
That's a fantastic idea Geoff. Unfortunately it appears to be down at the moment. Hosting troubles? > -Original Message- > From: Geoff Callender [mailto:[EMAIL PROTECTED] > Sent: 05 August 2008 14:33 > To: Tapestry users > Subject: [ANN] T5: JumpStart now runs online > > Hi all, > > For t

Re: [ANN] T5: JumpStart now runs online

2008-08-07 Thread Geoff Callender
Yeah, sorry about that. Don't know the cause yet, but I'm told it should be up again in an hour or two. On 07/08/2008, at 8:55 PM, Blower, Andy wrote: That's a fantastic idea Geoff. Unfortunately it appears to be down at the moment. Hosting troubles? -Original Message- From: Geof

Re: T5: get value of textfield

2008-08-07 Thread aicfr
Here is a small correction of my file tml : Login : Login : In my custom validator, i use "String controlName = field.getControlName();" but here, i get "login" or "login2". I need this variable for validate my form with an Entity Bean, but "login2" don't exist in my Entity. That is why i ne

Re: [T5]

2008-08-07 Thread Toby Hobson
Hi I use eclipse together with maven's jetty plugin - I dont have to compile the files I just change the TML then refresh the page in my browser - easy! Togy 2008/8/6 kace <[EMAIL PROTECTED]> > > Hi fellas, > > Do you have to compile .tml files if you want the changes to be picked up > by > jet

Re: [T5]

2008-08-07 Thread kace
That's what I;m looking for but haven't been able to so far... I am using intelliJ but I run mvn jetty:run from the command line - how can I make sure the changes to .tml files are picked up. I use maven, anyone have this setup right that can offer a snippet to get me going? Thanks Howard L

Re: [T5]

2008-08-07 Thread kace
If I run process-resources everytime I make a change then the changes gets picked up but I am looking for it to be picked up automatically so I make the change and hit refresh browser. Looking to see if anyone else using IntelliJ and running jetty:run from maven command line has this working?

Setting the GridPager range

2008-08-07 Thread immutability
Hi everyone! I'm still a little new to Tapestry5, and before starting a large project we've decided to develop a small internal application using Tapestry5. I was working on this for some 3 weeks now, and so far I'm impressed! I was able to resolve most of my issue using Google, Tapestry reference

T5 How to tell T5 to send 301 (moved permanently)

2008-08-07 Thread Martin Grotzke
Hi, when I return a link in some method T5 send a 302. I want to send a 301 to the client. Is this possible with tapestry, without using the servlet stuff? Thanx && cheers, Martn signature.asc Description: This is a digitally signed message part

T5: Zone - disabling yellow background animation on reload

2008-08-07 Thread immutability
Here I go again! :) Another problem I'm facing is with the Zone component. I like that the AJAX works nicely out-of-the-box with T5 components, such as ActionLink and Zone, without writing a single line of client-side script. The problem that I'm facing is the yellow-to-white (or whatever backgro

Re: T5: Zone - disabling yellow background animation on reload

2008-08-07 Thread Ciaran Wood
This one's easy - you provide an effect name as a parameter to the zone: ... Have a look here for reference: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/ta pestry5/corelib/components/Zone.html Ciaran On 07/08/2008 2:40pm, "immutability" <[EMAIL PROTECTED]> wrote:

Re: T5: Zone - disabling yellow background animation on reload

2008-08-07 Thread immutability
Thanks a bunch! That was it. Even though I couldn't find any documentation on ElementEffect, it was easy to locate in the tapestry.js file to see possible values. So using the following attributes for the Zone disabled the default "highlight" animation: Thanks again, Rado ciaranw wrote: > >

Re: [T5]

2008-08-07 Thread Onno Scheffers
Hi Kace, I use IntelliJ and Jetty (not Maven though, since I really don't like it). Make sure you go to the compiler settings and change the resource pattern to !?*.java. This will deploy all resources except for .java files to your build-folder. Optionally you can also go to Project Settings ->

Display String Array

2008-08-07 Thread Mohammad Irfan
Hi, I have an array of String[]. I'd like to display it on a table. How am I do it? Thanks. -- Wassalamu'alaikum wr. wb. Mohammad Irfan --- www.doktermaya.com www.L-Ads.com (classifieds ads, iklan baris) www.komplain.org (complain about product) www.akarprima.com ---

Failing to run my first Tapestry page

2008-08-07 Thread Greg
Hi all, As I have some spare time I'm looking at Tapestry and so I tried two tutorials, including the official (I guess?) one here http://tapestry.apache.org/tapestry5/tutorial1/first.html. However I cannot have it run as the following errors appear when I enter "mvn jetty:run" (I'll only post the

Re: [T5]

2008-08-07 Thread kace
Thanks, I run process-resources for .tml files and process-classes for java classes - I find it's quicker than autobuilding the project because it tends to build the war files for every web moduile you have in your project. It's sweet that in eclipse you just need to make the change and hit ref

T5 pagelink and http - >https redirect

2008-08-07 Thread Argo Vilberg
hi, I have one page with http protocol and pagelink in it. Pagelink points https @secure page. But problem is that pagelink generate https://localhost/digi/newpage link, and not with alias localhost:8443. http page is in port 8080, but pagelink do not understand that https port is 8443. I also

Re: [T5]

2008-08-07 Thread Howard Lewis Ship
I'm not familiar with using jetty:run; I don't know if it copies the files to a new location or not. Eclipse has the RunJetty plugin which is a better option for running directly against your workspace. On Thu, Aug 7, 2008 at 5:27 AM, kace <[EMAIL PROTECTED]> wrote: > > That's what I;m looking fo

T5 http - https redirect hang on IE6

2008-08-07 Thread Argo Vilberg
hi, I have situation. User authentication is over https and client authentication(estonian ID-Card www.id.ee). So authentication is occord after i use https protocol. 1 page Start page is http 2 page Login page is https(here are ID authentication) After succesfull autentication i tried in onA

Re: [T5]

2008-08-07 Thread Toby Hobson
Hi Howard, jetty:run seems to work pretty well for me. It can be configured for manual or automatic reloading of the files. I run it from eclipse as an external application and use remote debugging. The advantage I have found to this approach is that I can configure maven lifecycle goals so for ex

[T5] Spring Security 2 Integration

2008-08-07 Thread kace
Hi fellas, has anyone gotten Spring Security 2 to integrate with Tapestry 5? I have Spring running but it seems to be ignoring the security.xml rules I have this in my web.xml securityFilter org.springframework.web.filter.DelegatingFilterProxy targetBeanN

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread Martijn Brinkers (List)
This is my web.xml and it's working with Spring security 2 I think the filter name springSecurityFilterChain is some kind of special name that spring recoginizes Martijn http://java.sun.com/dtd/web-app_2_3.dtd";> Mimesecure Web tapestry.app-package mitm.mi

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread kace
I changed my web.xml to match yours for the security values but I get the same issue - it just ignores it. What does your Did you introduce any other changes to get this to work? Thanks, ..kace -- View this message in context: http://www.nabble.com/-T5--Spring-Security-2-Integration-tp1

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread Thiago H. de Paula Figueiredo
Em Thu, 07 Aug 2008 16:07:02 -0300, kace <[EMAIL PROTECTED]> escreveu: has anyone gotten Spring Security 2 to integrate with Tapestry 5? I have Spring running but it seems to be ignoring the security.xml rules Hi! Spring Security 2 = Acegi 2 rebranded. If you don't have a strict Spring Se

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread Martijn Brinkers (List)
This is my spring config. It contains my own userDetailsService because I have my own backend (over soap) I need to authenticate so you must change those parts to match your situation Martijn http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan

Re: [T5]

2008-08-07 Thread Onno Scheffers
> It's sweet that in eclipse you just need to make the change and hit refresh > browser. In saying that, the Index.tml file I have under /webapp/ does just > that but not for the .tml files in the source folders. I have that exact behavior in IntelliJ. Eclipse probably doesn't build complete war-

T5: Trigger zone reload with just javascript?

2008-08-07 Thread Mike Leonardo
Hey All, I have a form where I want to be able to change one value and have the other values in the form update. I have a zone around the whole form, and I'd like to use the onchange event to reload the Zone, but what javascript I use to trigger the reloading? Thanks for any help! - Mike ---

Re: [T5]

2008-08-07 Thread Toby Hobson
Yes, I tried the jetty plugin for eclipse but it didn't work too well so I played around with the maven plugin and managed to get it working nicely with eclipse. The other nice thing is that because most of the config is in pom.xml its easy for new team members to get started ... i.e. check out the

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread kace
The following code isn't working for me - it takes me to login regardless I have something similar in my JSF app and it works but cant replicate here. The following won't take me to the login page but this does: The only thing I can get this to recognise is the pattern="/**" What sh

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread Martijn Brinkers (List)
Have you tried /Index* instead of /Index** Martijn On Thu, 2008-08-07 at 14:22 -0700, kace wrote: > The following code isn't working for me - it takes me to login regardless > > > > > I have something similar in my JSF app and it works but cant replicate here. > > The following won't take

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread kace
Yeah, I tried that, never worked. ..kace -- View this message in context: http://www.nabble.com/-T5--Spring-Security-2-Integration-tp18877587p18880394.html Sent from the Tapestry - User mailing list archive at Nabble.com. - T

Re: T5: Trigger zone reload with just javascript?

2008-08-07 Thread Toby Hobson
Hi Mike, Have you tried using the t:zone parameter in your form? then you can perform a submit in your onchange handler e.g. Toby 2008/8/7 Mike Leonardo <[EMAIL PROTECTED]> > Hey All, > > I have a form where I want to be able to change one value and hav

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread kace
I tried that on the default welcome page which only shows / and it didnt work there but if I clicked on a link from that page and I employed an intercept-url on that ie /page2 the following worked however, having this resulted in the login page being shown too. But having this did work.

Re: [T5] Spring Security 2 Integration

2008-08-07 Thread Martijn Brinkers (List)
Are you sure the ROLE_ANONYMOUS is automatically given to the user? Perhaps this gives you some clue? http://static.springframework.org/spring-security/site/reference/html/anonymous.html Martijn On Thu, 2008-08-07 at 15:43 -0700, kace wrote: > I tried that on the default welcome page which onl

Re: T5 pagelink and http - >https redirect

2008-08-07 Thread tapestry5
It should not be String protocol = secure ? "https" : "http"; int port = secure ? 8080 : 8443; but String protocol = secure ? "https" : "http"; int port = secure ? 8443 : 8080; Argo Vilberg wrote: > > hi, > > > I have one page with http protocol and pagelink in it. > Pagelink points ht

read app.application parameter from IengineService

2008-08-07 Thread learner
I have tapestery 4 servlet that implemented IEngineService. can i use @InjectMeta("parameterTest") public abstract String getParameterTest(); or similar way to retrieve parameter property from app.application file? I tried this but doesn't work. what is the correct way to do it?

T5: Hibernate OneToMany: Works in 5.0.11, Fails in 12, 13, 14-SNAPSHOT

2008-08-07 Thread bernatowicz
Hello. I have 2 entities with a parent-child relationship. Client is the parent, and Project is the child. In 5.0.11 each Project entity is written to the (mysql) DB correctly with its client's ID, but in 5.0.12+ each Project's client_id is zero. I applied the following source code changes to

Re: T5: Hibernate OneToMany: Works in 5.0.11, Fails in 12, 13, 14-SNAPSHOT

2008-08-07 Thread Angelo Chen
you have to add a @CommitAfter in the method where update takes place, or do a commit, there is a change in default action from commit to abort, it's in the doc. bernatowicz wrote: > > Hello. I have 2 entities with a parent-child relationship. Client is the > parent, and Project is the child.