page activation + components

2008-04-28 Thread János Jarecsni
Hi there, I have an activatable page, in its onActivate(String param) method I save the param to a normal instance variable of the page class (no persistence!). How can any component embedded within this page access this variable? the page class: //... private String param; public void onActiva

Re: actionlink and pagelink id's no longer (automatically) rendered in 5.0.12-snapshot

2008-04-28 Thread Steven Woolley
Something's fishy then... I just double checked, very latest snapshot from maven: http://tapestry.formos.com/maven-snapshot-repository//org/apache/ tapestry/tapestry-core/5.0.12-SNAPSHOT/tapestry- core-5.0.12-20080428.110035-48.jar Test.java: package org.example.myapp.pages; public class Te

Re: formatting ssn

2008-04-28 Thread Andreas Andreou
I think it'll be quite trivial to do a straight port of this from the old code I'll report back if/when this happens inside http://tacos.sourceforge.net/tacos4.1/ On Mon, Apr 28, 2008 at 3:55 PM, kk4Nabble <[EMAIL PROTECTED]> wrote: > > Hi all, > I was using tacos formatter for ssn field in the

ValidationTracker and @Persist("flash")

2008-04-28 Thread dpr
Hi, I have a problem with tapestry 5.0.12-SNAPSHOT where the session is filled with attributes having names like flash:Login:form:defaultTracker that reference ValidationTracker objects. These objects are stored using the flash persistence strategy [1], but I see the effects similar to [2]. I t

Re: T5: Getting Request Info

2008-04-28 Thread Marcus
Hi, Can I invalidate session using this code? ... import javax.servlet.http.HttpServletRequest; ... @Inject private HttpServletRequest _httpServletRequest; ... public String onActionFromLogout() { _visit = null; _httpServletRequest.getSession().invalidate(); re

Re: T5 Running Jetty, log4j jar, FAQ

2008-04-28 Thread Kevin C. Dorff
Solved! I searched my whole system for log4j*.jar and noted that the Idea 7.0.3/lib dir had a log4j.jar. I replaced this with Log4j 1.2.14 and bam it works. Yay. Kevin Kevin C. Dorff wrote: > > I've been using Netbeans but I'm now trying to run T5 out of IntelliJ IDEA > 7.0.3. I decided to try

Re: Tapestry 5

2008-04-28 Thread Marcelo Lotif
I don't think so... but there are lots of good and useful components here http://code.google.com/p/tapestry5-components/ 2008/4/28 Alp Timurhan Çevik <[EMAIL PROTECTED]>: > Hello, > > I am currently using Tapestry 4 on a project and am considering changing to > tapestry 5. There are a lot of co

Re: multiple context values

2008-04-28 Thread Marcelo Lotif
I was just caught by this problem some time ago, and in the tapestry site they recommend this: public Object[] getAccountContext() { return new Object[] { account.companyId, account.id }; } Object onActionFromDelete(long companyId, long accountId){ //... } [delete see: http://tapestry.a

Re: multiple context values

2008-04-28 Thread Manuel Corrales
I think you can separate the values with commas like this: t:context="p.productId, p.categoryId" Good luck! On Mon, Apr 28, 2008 at 12:53 PM, Leon Derks <[EMAIL PROTECTED]> wrote: > How can I add multiple context values to an actionlink? > > For example a productId and a categoryId? > > > > > >

Re: A Tapestry job

2008-04-28 Thread chatauskunft
Thanks! This is what I wanted to know ;-) You are just collecting email addresses to spam people about another webframework LOL Original-Nachricht > Datum: Mon, 28 Apr 2008 16:44:11 +0200 > Von: "Rob Smeets" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: A Tapestry

Re: T5: How send "/" as symbol in t:ac parameter?

2008-04-28 Thread Foror
F> t:ac=catalog%2Fsomefile Fix it :) t:ac=catalog%252Fsomefile - worked - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

multiple context values

2008-04-28 Thread Leon Derks
How can I add multiple context values to an actionlink? For example a productId and a categoryId? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5: How send "/" as symbol in t:ac parameter?

2008-04-28 Thread Foror
Encoding to %2F does not help. (tapestry 5.0.8) example: t:ac=catalog%2Fsomefile OnEvent("activate") RECEIVED: String[0] == "catalog"; String[1] == "somefile"; NEEDED: String[0] == "catalog/somefile" - To unsubscribe, e-mail

Re: CSS styles override

2008-04-28 Thread Manuel Corrales
I am attaching the style i am using a sample page and a screenshot of the problem (of the page i attach). This is just a prototype, but illustrates the problem. As you can see, the labels of the form are placed below, just when the left menu ends. How can i fix this? Best regards and thanks in adv

CSS styles override

2008-04-28 Thread Manuel Corrales
Hi, i am starting a fresh project and after reading the tutorial and a trying Tapestry 5 i am loving it. It is a fantastic framework, and works like a charm!!! I am having only one issue, i would like to fix. I am having some weird behavior, trying to adapt my page style along with the default tape

Re: A Tapestry job

2008-04-28 Thread Rob Smeets
Thanks, Toby for your interest. Many other Tapestry users have also responded via direct mail and things are looking good. But we need more responses. For those reading who haven't yet responded, do so because this is a great opportunity to work with a very innovative and forward looking Webframewo

T5: Client-Side field validation onExit of field & Email type validation.

2008-04-28 Thread lebenski
Hi everyone, I'm currently working on a Tapestry 5 project that has several BeanEditForms. I am performing client-side validation on these forms using the @Validate (org.apache.tapestry.beaneditor.Validate) annotation on my form bean class. I'd like to know if it's possible to somehow configure

Re: XHTML DTD/Schemas in T5

2008-04-28 Thread Toby Hobson
Thanks Kris - Original Message From: Kristian Marinkovic <[EMAIL PROTECTED]> To: Tapestry users Sent: Monday, 28 April, 2008 2:06:08 PM Subject: re: XHTML DTD/Schemas in T5 this is what i do: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns

Re: A Tapestry job

2008-04-28 Thread chatauskunft
Hi there! How long does the project last and how much do you pay? I would be available in June. Thanks! Toby Betreff: A Tapestry job > Hi, > > At the company where I'm working for, I've been recently assigned the task > to lead a team in re-writing an > existing Tapestry 4 application. We a

A Tapestry job

2008-04-28 Thread Rob Smeets
Hi, At the company where I'm working for, I've been recently assigned the task to lead a team in re-writing an existing Tapestry 4 application. We are to do this with another webframework and to be politically correct I'm not going to mention which webframework. We're loking for 2 Tapestry develop

re: XHTML DTD/Schemas in T5

2008-04-28 Thread Kristian Marinkovic
this is what i do: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> and i have my *.tml files associated with the HTML content-type to use the HTML editor g kris Toby Hobson <[EMAIL PROT

Re: T5: JPA EntityManager + Tapestry Injection

2008-04-28 Thread Chris Lewis
Hi Leon, Injection via @Inject only works in pages, components, and mixins. If you need to inject into a service, you can use either constructor or setter injection. If you use constructor injection then you can use auto binding to bind your dao implementation, and it will jsut work. Otherwise you

Re: help with t5component library

2008-04-28 Thread Geoff Callender
Thank you once again, Sven. On 28/04/2008, at 4:16 AM, Sven Homburg wrote: and this http://87.193.218.134:8080/t5components/apidocs/src-html/org/apache/tapestry/commons/TapestryCommonsModule.html#line.60 2008/4/27 Sven Homburg <[EMAIL PROTECTED]>: http://tapestry.apache.org/tapestry5/tapest

RE: T5: JPA EntityManager + Tapestry Injection

2008-04-28 Thread Kristian Marinkovic
@Inject only works in page, component and mixin classes (as stated on the mailinglist some hours ago :)) Services can be injected into other services by declaring them in the constructor of the service: your dao constructor: ... public DAO (EntityManager em){...} your module: public static voi

formatting ssn

2008-04-28 Thread kk4Nabble
Hi all, I was using tacos formatter for ssn field in the following manner. Now we have migrated from tapestry 4.0.2 to 4.1.5 we were using tacos 4.0 with the previous version and now in tapestry 4.1we have deleted tacos and formatter is not working. Is there any other way to do the same? Pl

T5: JPA EntityManager + Tapestry Injection

2008-04-28 Thread Leon Derks
I have added an JPA entity manager to my AppModule, in the same way this is done for an HibernateSessionManager/Session in the tapestry-hibernate project. See the code below for some details. I inject this entity manager with the @Inject into my DAO object. @Inject private EntityManager entityM

XHTML DTD/Schemas in T5

2008-04-28 Thread Toby Hobson
Hi I hope someone can point me in the right direction here. I've hit a minor problem re: T5 templates: I am using eclipse to develop my templates and I have set the .tml extension to open in the xml editor which is great BUT I've now got myself in a bit of a mess because I'm trying to use the t

Re: [T5.0.10] Form submission character encoding issues when using ISO-8859-1

2008-04-28 Thread Michael Gerzabek
Hi Thiago, I use 'accept-charset="ISO-8859-1"' as well as 'enctype="application/x-www-form-urlencoded"' on each t:form and t:beaneditform. This does the job for me. Michael Thiago HP schrieb: Hi! I'm working on a project that uses an already existent MySQL database. It's using ISO-8859-1

[T5.0.10] Form submission character encoding issues when using ISO-8859-1

2008-04-28 Thread Thiago HP
Hi! I'm working on a project that uses an already existent MySQL database. It's using ISO-8859-1 as its character encoding and, then, I want the full application to run in ISO-8859-1. Changing the templates and response encoding to ISO-8859-1 was easy (as everything related to T5 :). Everything wo

Re: Antwort: Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Chris Lewis
Good eyes! I assume it would have worked if the url had been absolute, in which case tapestry would not have interpreted it as a page render ... or maybe not. Christian Koeberl wrote: >> Jan Vissers <[EMAIL PROTECTED]> wrote: >> Our layout component has: >> >> > > If you have this in your co

Re: Antwort: Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Jan Vissers
Wow! Yes - this was it indeed. Thx, -J. On Mon, 2008-04-28 at 11:20 +0200, Christian Koeberl wrote: > > Jan Vissers <[EMAIL PROTECTED]> wrote: > > Our layout component has: > > > > If you have this in your code the browser will request > "/yourpage/favicon.ico" or "mypackage/mypage/favicon.ico

Antwort: Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Christian Koeberl
> Jan Vissers <[EMAIL PROTECTED]> wrote: > Our layout component has: > If you have this in your code the browser will request "/yourpage/favicon.ico" or "mypackage/mypage/favicon.ico". Tapestry treats "favicon.ico" as an activation context. I think you have a onActivate(Long) in your page. So,

Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Jan Vissers
On Mon, 2008-04-28 at 10:57 +0200, Chris Lewis wrote: > Can you share the full code? What are your activate/passivate methods > doing? For instance this: public void onActivate(Long familyId) { this.familyIdContext = familyId; family = familyDAO.findFamilyWithProducts(familyId);

Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Chris Lewis
Can you share the full code? What are your activate/passivate methods doing? Does that get thrown when the layout is used with a page that has no activation context? If so, and that really is all to the template code, I would say it's a bug. Share more code if you can. chris Jan Vissers wrote: >

Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Jan Vissers
Our layout component has: If we remove this element - the error disappears. Now this must be a bug, right? -J. On Mon, 2008-04-28 at 10:40 +0200, Jan Vissers wrote: > Hi, > > In our project we get the following message passivating/activating > pages: > > java.lang.NumberFormatException: For

Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Chris Lewis
Can you share some template code? Perhaps of the layout if you can. Jan Vissers wrote: > Hi, > > In our project we get the following message passivating/activating > pages: > > java.lang.NumberFormatException: For input string: "favicon.ico" > > The more details stack trace shows: > > Caused by:

T5 Activation/Passivation - strangeness

2008-04-28 Thread Jan Vissers
Hi, In our project we get the following message passivating/activating pages: java.lang.NumberFormatException: For input string: "favicon.ico" The more details stack trace shows: Caused by: java.lang.RuntimeException: Coercion of favicon.ico to type java.lang.Long (via String --> Long) failed:

Re: actionlink and pagelink id's no longer (automatically) rendered in 5.0.12-snapshot

2008-04-28 Thread Chris Lewis
Hi Steve, I'm not seeing that behavior in 5.0.12-SNAPSHOT, at least with pagelinks. When I don't provide a t:id, an id attribute is generated based on the component name and subsequent instances use a rolling scheme (pagelink, pagelink_1, etc). When I provide a component id (slightly different fro

Re: AJAX and the bleeding edge... minor pains...

2008-04-28 Thread Chris Lewis
Nice. I think if you were actually getting beachballed and can provide an estimate markup size (or at least an example block to demo), including that in a bug report would be legitimate - especially if you've seen the raw-markup approach remedy things. I would be interested in seeing your patch as

Re: help with t5component library

2008-04-28 Thread mnguyen21
This is off topic but does anybody know if there is a maven repository for the t5component library on a public server not on port 8080 but on 80? My company firewall prevents me from accessing it. I have to install it locally to get access to it. I just want to be able to get my colleagues here

Re: help with t5component library

2008-04-28 Thread mnguyen21
Thanks that is exactly what I was looking for! Sven Homburg wrote: > > and this > http://87.193.218.134:8080/t5components/apidocs/src-html/org/apache/tapestry/commons/TapestryCommonsModule.html#line.60 > > 2008/4/27 Sven Homburg <[EMAIL PROTECTED]>: > >> >> http://tapestry.apache.org/tapestr

Tapestry 5

2008-04-28 Thread Alp Timurhan Çevik
Hello, I am currently using Tapestry 4 on a project and am considering changing to tapestry 5. There are a lot of components for tapestry 4, the most important ones being ajax components, especially being able to use dojo etc. Is it possible to use dojo with tapestry 5 ? Also is it possible to us