Re: [T5] Layout component: resolving unclarities

2009-01-20 Thread SergeEby
Hi, is the actual content of your page, and the layout component is just a wrapper. This link would probably help you better understand: http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent /Serge aldana wrote: > > Hi, > > I had a look how to template things (header, footer, navigati

Re: BeanEditForm Screencast

2008-12-24 Thread SergeEby
Hi, You are mixing Tapestry 5 and Tapestry 4. From the snippet below, here are a few problems: - The templates in T5 have a .tml as extension - There is no spec file. - Your packages are incorrect (should be .pages) - Pages are not abstract - The BasePage you are extending doesn't exist in

Re: Tapestry 5 with Spring Security - problem with unit tests.

2008-12-22 Thread SergeEby
Hi, This seems to be related to this thread: http://www.nabble.com/PageLinkTarget%2C-where-did-it-go--to21022001.html#a21022001 /Serge Michał Jedynak wrote: > > Hi there, > > I've integrated spring security to my sample tapestry5 application > (I'm using version 5.0.18) based on tapestry-spr

Re: T5: how to make a module that is available to two t5 apps?

2008-12-22 Thread SergeEby
Hi, This can help: http://tapestry.apache.org/tapestry5/cookbook/lib.html /Serge Angelo Chen wrote: > > Hi, > > I have a project similar to this: > > 1) T5 web app > 2) T5 IOC only app > > This has been working quite nicely, now I need to have some > classes/services which should be used

Re: integrating T5 a login form with Spring Security?

2008-12-15 Thread SergeEby
Hi, Take a look at the Login page in tapestry5-appfuse project here: http://code.google.com/p/tapestry5-appfuse There is an example of direct integration between T5 and Spring Security 2. /Serge Jean Luc wrote: > > Update: I can get the response with: > >@Inject > private RequestGl

Re: BeanEditForm Component in Tapestry 5

2008-12-13 Thread SergeEby
The issue here is described in this bug: https://issues.apache.org/jira/browse/TAP5-414 /Serge nille hammer wrote: > > Sorry I messed up the code example corrected version: > public class Persion { > ... > @Id > @GeneratedValue(strategy = GenerationType.AUTO) > @NonVisual //<-- that exc

Re: [T5] Application Message Catalog not read

2008-12-10 Thread SergeEby
Hi, I have a sample application supporting multiple languages which doesn't exhibit this behavior: http://code.google.com/p/tapestry5-appfuse/ You may have something else going on. /Serge bbcooper wrote: > > I found a bug. First entry in properties file is never used. I tried > reordering en

[ANN] tapestry5-appfuse

2008-12-09 Thread SergeEby
Hi, Version 1.0.1 of the tapestry5-appfuse project has been released. It's built with Tapestry 5.0.18 and has several improvements and bug fixes. See details here: http://code.google.com/p/tapestry5-appfuse/ Feedback would be appreciated. /Serge -- View this message in context: http://www.

Re: [T5] Grid cell labels can't be overridden

2008-12-01 Thread SergeEby
Hi, As a workaround, maybe this example could help: http://code.google.com/p/tapestry5-appfuse/source/browse/trunk/src/main/java/org/appfuse/webapp/pages/admin/UserList.java /Serge Andy Pahne-6 wrote: > > > > https://issues.apache.org/jira/browse/TAP5-395 > > > > Howard Lewis Ship schr

Re: [T5] class reloading for pages, templates, components possible only?

2008-11-16 Thread SergeEby
Hi, This is documented here: http://tapestry.apache.org/tapestry5/guide/reload.html /Serge aldana wrote: > > hi, > > class reloading works fine for pages, template and components. But it does > not work for related class dependencies. For instance when I change the > implementation of a Dao

Re: T5+Hibernate: Entity class id variables cannot have leading underscores

2008-11-16 Thread SergeEby
Hi, This has nothing to do with Tapestry. You have 2 options: 1) Use the @Column annotation on the _id field @Id @GeneratedValue @Column(name="id") private Long _id; 2) Annotate the accessor methods /Serge Bill Holloway wrote: > > To use the simplified page activation context for a hiber

Re: [T5] Combine a form and response in same template/Java class

2008-11-02 Thread SergeEby
Hi, You can use a block. Search for examples in the mailing list. /Serge thermus wrote: > > I currently have a very simple webapp. I have a form and return a > pageable grid component based on the form parameters. Right now, I have > the form and response as separate tml/Java classes. Ever

Re: T5 (5.0.15): Layout issue - unable to resolve layout

2008-10-12 Thread SergeEby
Hi, Layouts are regular components that need to be created by you and are not handled differently. Make sure your Layout Java class is under src/main/java//components and the associated tml is in src/main/resources//components /Serge Joel Halbert-2 wrote: > > Hi, > > I'm having issues us

Re: Ideas on transitioning from earlier version to Tapestry 5

2008-09-17 Thread SergeEby
Hi, I started documenting this for the migration from T4 to T5. Please refer to the following project: http://code.google.com/p/tapestry5-appfuse/ The code is updated. However, I haven't had a chance to update the steps recently, but this is on my todo list. /Serge Matt Doran-3 wrote: > > Hi

Re: [T5] - How to use a custom resource source, e.g. reading resources from a database instead of .property files

2008-09-17 Thread SergeEby
Hi, Please search the list. This has already been answered. Cheers, Serge Ovidiu Hurducas-2 wrote: > > Greetings! > > I'm migrating a I18N enabled Tap3 application to Tap5. The current > application is using a custom implementation of BaseEngine class > (overriding > createComponentStringsS

RE: T5: testing using PageTester and EasyMock

2008-09-16 Thread SergeEby
Hi, I had a similar question a few weeks ago and didn't get any response. Can someone else chime in? It would be nice to have "real world" example in the documentation to showcase TDD features of T5. /Serge Russell Brown-6 wrote: > > One more related question would be this: in the docs at > h

Re: T5 BeanModelSource create Parameters

2008-09-05 Thread SergeEby
Hi, Yes, a few changes were introduced in 5.0.14 and are documented here: http://tapestry.apache.org/tapestry5/upgrade.html Use resources.getMessages() instead instead of resource. /Serge moritzgilsdorf-2 wrote: > > > Hi, > > I'm trying to add an additional column to a grid following thi

[ANN] tapestry5-appfuse

2008-08-30 Thread SergeEby
Hi, I've just released an early version of the tapestry5-appfuse project. It is still alpha and the documentation will be finalized in the next few days. It is available via SVN on Google Code at: http://code.google.com/p/tapestry5-appfuse/ Check it out! Feedback would be really appreciated.

Re: T5 : Let's write a book !

2008-08-26 Thread SergeEby
I'll be happy to participate! /Serge Thiago H. de Paula Figueiredo wrote: > > Em Mon, 25 Aug 2008 18:56:52 -0300, Hugo Palma <[EMAIL PROTECTED]> > escreveu: > >> 2. I definitely think that this would have to be something new. Like you >> say, they have different purposes and it should be ke

Re: UTF-8 in tapestry 5.0.13

2008-08-19 Thread SergeEby
Hi, This is non longer needed in 5.0.14. Try upgrading if you can. /Serge Ulrich Stärk wrote: > > I believe http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding is still > needed to convert form submissions from/to UTF-8. > > Uli > > Argo Vilberg schrieb: >> Hello! >> >> >> I have pos

Re: Unit testing T5 pages/components

2008-08-01 Thread SergeEby
Hey, I am running into the same problem. Since PageTester now accepts extra module classes, I tried using SpringModuleDef.class but no dice. Creating a separate module as shown in previous posts didn't work either :-( Does anybody have a working example with T 5.0.13+? Cheers, /Serge Toby H

Re: [T5] Rendering a button for a t:eventlink

2008-07-03 Thread SergeEby
Hi, Try this: in your template: . ... and your Java class: public class MyPage { @Component(parameters = {"event=clickButton1"}) private EventLink button1; // Your event handler // You can also use annotations void onClickButton1() {

T5: Passing values to JavaScript function

2008-06-23 Thread SergeEby
Hi, Passing a dynamic values from the Java page to a JavaScript function embedded in the .tml file works fine. However, I need to pass that values to an external (basic) JavaScript function. The external javacript files is attached to the page using the IncludeJavaScriptLibrary annotation: @In

Re: [T5] Using a Mixin on a Label component

2008-06-17 Thread SergeEby
lass; this eliminates the ambiguity." > > So you can use > > > I haven't tried this tho :) > > On 17/06/2008, SergeEby <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I am trying to use a mixin to decorate the label component based

[T5] Using a Mixin on a Label component

2008-06-17 Thread SergeEby
Hi, I am trying to use a mixin to decorate the label component based on the embedded Field component. Since that field is not accessible, I thought I could use a parameter (like in the Label component) after reading the following: "If the component and a mixin both define a parameter with the sa

Re: Messages in modules (where to put the *.properties files)

2008-06-06 Thread SergeEby
Hi, If you are using Maven, you should put your properties files under src/main/resources/my/package/components See details here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/project-layout.html /Serge Russell Brown-6 wrote: > > Hi, > > I have created a couple of components and

Re: Tapestry Spring Documentation Incomplete

2008-05-23 Thread SergeEby
Hi, It seems obvious to me that you need to add any self-contained module such as tapestry-spring, tapestry-hibernate or tapestry-upload to your application only if you use it. /Serge TapestryBeast wrote: > > Hi, > > Just to say that I think the documentation here: > > http://tapestry.apach

Re: Question about select component

2008-05-17 Thread SergeEby
Hey, Assuming you are using version 5.0.11, you can add: blankoption="never" to the component definition. See details here: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Select.html /Serge amebaliu wrote: > > Hi all, I have a question about se

Re: [ANN] JumpStart 3.6: Wizards, Conversations, and more

2008-05-12 Thread SergeEby
Hi, Read the tips on Geoff website: http://files.doublenegative.com.au/jumpstart /Serge CG-6 wrote: > > Not sure whether this is the correct place to ask abt jumpstart or > not, however, I really need some hints. > > Jumpstart is using the hsql embeded in JBoss, I would like to use > m

Re: Page activation context question

2008-03-22 Thread SergeEby
Hi, You can pass more than one parameter. /Serge Yura Tkachenko wrote: > > Hi All, > > I've been reading chapter about "Page Activation Context" here: > http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html. And > I > have a question: can I pass using activation context more

Re: how to use maven?

2008-03-22 Thread SergeEby
Hi, As the name indicates, this URL is for snapshots only. The official releases are located on standard maven repositories. So commenting out this repo should get you what you need. /Serge luna_guo wrote: > > i use maven plugin ,and add the following code to pom.xml > > > ta

Re: T5: your opinion on grid's sorting

2008-03-18 Thread SergeEby
You are not alone :) /Serge Adam Zimowski wrote: > > I'd like to propose enhancement which makes it easier to define which > columns are sorted. > > The grid component, as of 5.0.11, by default applies and enables > sorting to all columns. If one wants to change it, one must give grid > the m

Re: T5: How to create an external URL to a Tapestry page?

2008-02-12 Thread SergeEby
Hey, Just return a URL object http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html /Serge Travis McLeskey wrote: > > For example, if one wanted to generate a complete URL (including > protocol, server name, and port) and send it in an email. > > I tried ComponentResources

Re: How to access the servlet context in AppModule?

2008-01-26 Thread SergeEby
Not sure what you are doing but the following works fine for me in my AppModule: public class AppModule { ... public static void contributeAliasOverrides ( Configuration aConfiguration, @Inject @Service("LabelService") LabelService aService) { ..

Re: How to access the servlet context in AppModule?

2008-01-26 Thread SergeEby
Hey, You can pass Spring Services as argument by using the @Inject @Service annotations. /Serge MrclSchprs wrote: > > How to access the servlet context in AppModule? Tapestry's Spring > integration does not work for the 'services' package. A Spring service is > needed for a custom BindingFact

Re: T5: PersistentLocale is lowercasing locales

2007-12-22 Thread SergeEby
Hi Geoff, I've seen this in past releases and I had to use the following as a workaround in my AppModule to get my application to work: ... configuration.add("tapestry.supported-locales", "en_us,fr_ca,zh_cn"); ... This didn't work: configuration.add("tapestry.supported-locales", "en_US,fr_CA,

Re: T5: Escaping espansions

2007-10-14 Thread SergeEby
Hi, Did you try the "literal:" binding prefix? --- /Serge Hans Jörg Hessmann wrote: > > Hi, > > I'd like to show a static text containing ${something} on a page. Is > there a way to escape the "${"? > > Thanks, > Hans Joerg Hessmann > > -

Re: T5 bad URL generation

2007-10-14 Thread SergeEby
Hi, This issue has been discussed in the past. Please search the list. -- /Serge Foror wrote: > > Some package "pages.articles" and page "Articles.java" in this package. > URL > "http://localhost/articles/";. When need context page="articles/" context="literal:param1">test then URL > "http:/

Re: t5 : how to set page paramaters in pagelink ?

2007-10-14 Thread SergeEby
Hi, You can use the context parameter: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentspagelink -- /Serge dalahoo wrote: > > dear friends, > > i want to set some value for may page properties, with pagelink compoent, > is > it p

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-26 Thread SergeEby
; help. >> > > > >> > > > Kalle >> > > > >> > > > On 9/25/07, Howard Lewis Ship < [EMAIL PROTECTED]> wrote: >> > > > > >> > > > > I'm not sure how upto date the snapshots are. >> >

T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-25 Thread SergeEby
Hi, I tried to update my application from 5.0.5 to 5.0.6-SNAPSHOT. The main change was the use of slf4j. However, I am getting the following error when starting the application via maven: java.lang.AbstractMethodError at org.apache.tapestry.ioc.internal.RegistryImpl.(RegistryImpl.java:1

Re: [T5] tutorial question

2007-09-20 Thread SergeEby
Looks like you missed an important section of the tutorial: excerpt --- We do need a basic GameOver page. src/main/webapp/WEB-INF/GameOver.html: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Game Over! Game Over You guessed the secret number!

Re: [T5] component packs? libraries?

2007-09-16 Thread SergeEby
Hi, T5 components are listed here: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html /Serge Fernando Padilla wrote: > > So I think I've read most if not all of the T5 documentation, and I > don't see any mention of the old Component Libraries.. Could someone > giv

Re: T5: PageLink keeping activantion context when t:context is not set.

2007-09-01 Thread SergeEby
Have you thought about using a null context? /Serge Thiago H de Paula Figueiredo-2 wrote: > > Em Fri, 31 Aug 2007 21:20:00 -0300, Fidel Chavarria > <[EMAIL PROTECTED]> escreveu: > >> If you need a link that points to the same page, create a Pagelink >> pointing the same page. > > I need

Re: T5: Tutorial question.

2007-07-29 Thread SergeEby
Do a search in the mailing list. This question was answered a while ago. /Serge Alex Shneyderman wrote: > > Hi, all! > > I am trying out tapestry and was going through the tutorial and > noticed that in the section about Guess.java the following: > > Object onActionFromLink(int guess) >

Re: [T5] Any way to replace service from InternalModule?

2007-07-19 Thread SergeEby
Hi, You must contribute to AliasOverrides service: Details are here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html /Serge Ivan Luzyanin wrote: > > I need to change a behavior of a service provided by Tapestry's > InternalModule. Is is possible? If so, how? > -- View

Re: [T5] redundant declaration of meta tag

2007-07-19 Thread SergeEby
Hi. I believe this patch is included in 5.0.5, therefore no longer needed. For the redundant meta tags, you should remove them from the pages, not the layout template. /Serge Nick Westgate wrote: > > Your templates must be UTF-8 encoded too. > > Cheers, > Nick. > > > Marcelo lotif wrote: >

Re: Trouble deploying T5 with maven

2007-07-09 Thread SergeEby
Hi, The HTML templates should go either under the resources directory or WEB-INF Read this: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html /Serge Moritz Gmelin wrote: > > Hi, > > > I have created a T5 Application based on the "myapp" template with > its pom.xml.

Re: [T5] tapestry-spring and WebApplicationContext

2007-06-29 Thread SergeEby
Hi, Just import and inject the WAC in your page: import org.springframework.web.context.WebApplicationContext; class Foo { ... @Inject private WebApplicationContext wac; ... } /Serge cyrille37 wrote: > > Fidel Chavarria a écrit : >> Hi >> I think this willhelp you, >> http://tapest

Re: T5 Component library trouble

2007-06-19 Thread SergeEby
Hi, Try and read the Component Elements section in this document: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html /Serge texomaleo wrote: > > In a jar in a separate Eclipse probject I have > > package us.antera.t5.lib; > import org.apache.tapestry.ioc.Configuration;

Re: Is ActionLink deprecated ?

2007-06-16 Thread SergeEby
Hi, The URL you mentioned is related to Tapestry 4, not T5. Are you sure you strictly followed all steps mentioned in the tutorial? There are several examples (Integration Tests) in the source code that might be helpful. /Serge Leo Stefanesco wrote: > > Hello everybody, > I'm reading the Tape

Re: T5: Using my own localization backend

2007-05-31 Thread SergeEby
Hi, You can provide your own implementation by contributing to aliasOverrides: http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html /Serge Martin Dietze wrote: > > Hi, > > I need to use a particular localization backend for my > project. As I understand, T5 provides its own

Re: Empty SelectionList option not rendered properly according to xhtml

2007-05-24 Thread SergeEby
Hi, This seems valid to me according to this: http://www.w3.org/TR/xhtml1/#h-4.6 /Serge Jan Vissers wrote: > > Tapestry renders: > > > > And it 'should' render: > > > > Is this something we can workaround? > I would have preferred Tapestry rendering the option correctly whenever >

Re: T5 application wide message catalog

2007-05-22 Thread SergeEby
Hi, I believe this is now available in 5.0.5-SNAPSHOT. /Serge Jason Lea wrote: > > I'm using Tapestry 5.0.4 and have some localized fields getting messages > from message catalog for the page working correctly, but I cannot get an > application wide message catalog to work > > In the page T

Re: any idea to inject a ejb to tapestry?

2007-05-18 Thread SergeEby
Hi, This post might be helpful: http://www.nabble.com/Inject-EJB-3-into-Tapestry-4-page-tf2841494.html#a8468544 /Serge Heping Zhang wrote: > > hi, I use tapestry as web tier and want get a slsb in this tier. this is > my > code: > public abstract class Home extends BasePage { > > // @EJB >

Re: T5: Spring Integration Issue

2007-04-24 Thread SergeEby
Hi, There is a new syntax with 5.0.4-SNAPSHOT and the URL http://tapestry.apache.org/tapestry5/tapestry-spring/ was updated a while ago. There is no more @Inject("spring:yourBean"). It works fine for me. Here is an excerpt: public class UserView { @Inject @SpringBean("userManager") pr

Re: T5 dependencies incomplete

2007-03-28 Thread SergeEby
This page is probably generated by Maven. To find the actual dependencies, click each module on the left hand side menu and select Project Information -> Dependencies. /Serge Jan Vissers wrote: > > I think this informational page: > http://tapestry.apache.org/tapestry5/dependencies.html > is

Re: [WARNING] T5: recordError on BeanEditForm

2007-03-04 Thread SergeEby
Hi, You can access the form from the BeanEditForm component: http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/components/BeanEditForm.html /Serge Massimo Lusetti wrote: > > On 3/4/07, Olivier Jacquet <[EMAIL PROTECTED]> wrote: > >> How can I record addit

T5 Message Catalog Override

2007-03-03 Thread SergeEby
Hi I tried to override the default ComponentMessagesSource by creating a contribution in my module (tapestry.ComponentMessagesSource) and a new builder method, but it doesn't seem to work. Am I missing something? /Serge -- View this message in context: http://www.nabble.com/T5-Message-Catalog

T5 & Spring

2007-02-27 Thread SergeEby
Hi, I posted the following page on wiki, not sure if that's the right place but I thought it would be useful to others: http://wiki.apache.org/tapestry/SpringIntegration /Serge -- View this message in context: http://www.nabble.com/T5---Spring-tf3306589.html#a9197537 Sent from the Tapestry -

T5: Spring Integration

2007-02-19 Thread SergeEby
Hi, I know Spring integration will be included later in T5, but was wondering if someone has already figured out how to do that. I am playing around converting an existing application to T5. Thanks, /Serge -- View this message in context: http://www.nabble.com/T5%3A-Spring-Integration-tf32530

BeanForm message catalog

2007-01-21 Thread SergeEby
Hi, I am trying to convert my application to use the BeanForm library but I am running into a problem: My message catalog mapping keys are stored in a database and don't match to beans' property names. Is there a way to specify the keys (like in contrib:table)? Thanks, -- Serge -- View this m