Autocomplete Using Selection as Criteria

2008-03-03 Thread samlai
I have an autocomplete textfield. I'd like the retrieved autocomplete list to be based from a selection field in addition to the autocomplete textfield. I'm not sure how I can feed the current server region selection to onProvideCompletionsFromServerNameField, serverRegionField is null before su

Re: T4 - Forwarding to wrong page

2008-03-03 Thread Paul Stanton
Never mind, I figured it out. When using an explicit listener with @Submit, the forms listener is still called, after the submit's listener. The form's listener was overriding the desired result, so now my processing is done in the form's listener instead.

T4 - Forwarding to wrong page

2008-03-03 Thread Paul Stanton
I've got a strange problem: One of my pages (FinaliseReport) has a button which has it's own listener: value="Generate Report"/> When clicked, the listener does some processing then returns its self either via "this" or via "requestCycle.getPage(name)" - i've tried both. Now, some times the re

Re: T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Mark W. Shead
I would suggest that you start with something that is known to work instead of trying to build your own application. That way you could verify that it works with OC4J with something that is known to work. http://tapestry.apache.org/tapestry5/quickstart/ would be a good choice, but to make

Re: T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Jan Vissers
> Hold on... > Some interesting developments. > > I see: > > Package stuff in WEB-INF/lib > -> /hellotap/start/ returns > 'red color coded' message: > >An unexpected application exception has occurred. > >Page Start did not generate any markup when rendered. >

Re: T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Jan Vissers
Hold on... Some interesting developments. I see: Package stuff in WEB-INF/lib -> /hellotap/start/ returns 'red color coded' message: An unexpected application exception has occurred. Page Start did not generate any markup when rendered. This could be beca

Re: T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Howard Lewis Ship
The first step is to add an issue to JIRA. You did PACKAGE up the classes files as a new JAR, right? Just moving won't accomplish anything. On Mon, Mar 3, 2008 at 6:00 PM, Jan Vissers <[EMAIL PROTECTED]> wrote: > Did the test by moving all WEB-INF/classes stuff to WEB-INF/lib, and > although I

Re: T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Jan Vissers
Did the test by moving all WEB-INF/classes stuff to WEB-INF/lib, and although I see some log4j stuff going on; more specifically: 08/03/04 02:53:12 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized 08/03/04 02:53:28 log4j:WARN No appenders could be found for logger (org.apache.tapestry.serv

Re: T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Howard Lewis Ship
I'm sorry that I don't have direct experience with OC4J. My first step would be to use Jetty Launcher (or equivalent) to verify that the application is built correctly before trying to track down what horrid things Oracle has been doing. The theory is that Tapestry is servlet-container agnostic a

Re: T5: Grid's rowClass

2008-03-03 Thread Angelo Chen
hi, might be nice to include that in the tapestry-core as this has a very common use. Howard Lewis Ship wrote: > > Cool idea. I'm trying to come up with a name for this approach, so > > -- View this message in context: http://www.nabble.com/T5%3A-Grid%27s-rowClass-tp13810748p15818201.htm

T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Jan Vissers
Hi, Comparing wicket and T5 for our next stack selection; giving T5 a final go on OC4J 10.1.3+ (also 11g) - without maven. Simplest of projects: WEB-INF/web.xml contains: tapestry.app-package com.cumquatit.tapestry.tutorial app org.apache.tapestry.TapestryFil

Re: Question about Grid styles and paging for a simple HTML table

2008-03-03 Thread Ben Tomasini
The lean parameter only affects the rendering of styles for the cells, which is a start. The containing elements still contain styles. Ben On Mon, Mar 3, 2008 at 2:38 PM, Jonathan Barker <[EMAIL PROTECTED]> wrote: > > Take a look at the "lean" parameter in the grid docs: > > http://tapestry.fo

RE: Question about Grid styles and paging for a simple HTML table

2008-03-03 Thread Jonathan Barker
Take a look at the "lean" parameter in the grid docs: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/ta pestry/corelib/components/Grid.html Does that help? > -Original Message- > From: Ben Tomasini [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2008 3:55

Re: T5: Grid's rowClass

2008-03-03 Thread Howard Lewis Ship
Cool idea. I'm trying to come up with a name for this approach, so far the best I have is "multi-dimensional reuse". The idea that you can customize not in terms of just what a component does with data, but even where a flow of data comes from, is "subtle and powerful". On Mon, Mar 3, 2008 at 1:

Re: Question about Grid styles and paging for a simple HTML table

2008-03-03 Thread Howard Lewis Ship
On Mon, Mar 3, 2008 at 12:54 PM, Ben Tomasini <[EMAIL PROTECTED]> wrote: > Ooops, Hit enter too soon. Here is a resend > > > I am trying to use the Grid component to render an HTML table with > very specific CSS to make the table look like a table which is > currently being rendered with the di

Re: T5: Grid's rowClass

2008-03-03 Thread Davor Hrg
I have something to avoid creating getter for zebra effect the usage is simple or or more than two or any loop just created a wiki page so anyone can try it http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle Davor Hrg On Mon, Mar 3, 2008 at 9:07 PM, Marcus <[E

Re: Question about Grid styles and paging for a simple HTML table

2008-03-03 Thread Ben Tomasini
Ooops, Hit enter too soon. Here is a resend I am trying to use the Grid component to render an HTML table with very specific CSS to make the table look like a table which is currently being rendered with the displaytag library in a Struts2 application. Our current style sheet uses CSS selectors

Question about Grid styles and paging for a simple HTML table

2008-03-03 Thread Ben Tomasini
I am trying to use the Grid component to render an HTML table with very specific CSS to make the table look like a table which is currently being rendered with the displaytag library in a Struts2 application. Our current style sheet uses CSS selectors based on the simple element name without any c

Re: T5: Grid's rowClass

2008-03-03 Thread Marcus
Hi Angelo, If we use boolean type for "cssClass", maybe we don't need a set method. private boolean cssClass = false; public String getRowClass() { cssClass = !cssClass; return (cssClass ? "" : "zebra"); } Marcus Angelo Chen wrote: In your tml you define a css class:

RE: T5: Tapestry and Tomcat

2008-03-03 Thread Jonathan Barker
Moritz, Given that Ubuntu is based on Debian, you are probably running into Tomcat security configuration issues. I run Debian. I hit this myself and kept battering my head against the wall trying to grant all of the necessary permissions. Take a look in /etc/tomcat5.5/policy.d/ and see if you

Re: T5: Grid's rowClass

2008-03-03 Thread Sven Homburg
impossible since weekend tapestry trunk. tapestry throws an exception like this: class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final method . 2008/3/3, Christian Koeberl <[EMAIL PROTECTED]>: > > You can override and extend Grid like this: > > package com.poi.egh.turntable.ui.co

Re: T5: Grid's rowClass

2008-03-03 Thread Christian Koeberl
You can override and extend Grid like this: package com.poi.egh.turntable.ui.components; /** * Grid component to be used in ProjectX. * * Provides the following extensions to the Tapestry TurntableGrid: * * class="odd" for all odd rows * * * @author Christian Köberl */ public class P

Re: [T5] Index pages bug ?

2008-03-03 Thread Kheldar666
Done https://issues.apache.org/jira/browse/TAPESTRY-2226 -- View this message in context: http://www.nabble.com/-T5--Index-pages-bug---tp15806148p15810780.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: T5: Grid's rowClass

2008-03-03 Thread Ben Tomasini
Does Tapestry itself provide a simpler way to do this? Alternating row styles is very common and it would be nice to have this be more automatic. Ben On Wed, Nov 28, 2007 at 5:54 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > In your tml you define a css class: > > > .ze

Re: [T5] AppModule upgrade to 5.0.10

2008-03-03 Thread Howard Lewis Ship
PageRenderInitializer was refactored in 5.0.9, I believe. There is now a service, MarkupRenderer, with a filter you can contribute into: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/services/MarkupRenderer.html On Mon, Mar 3, 2008 at 12:46 AM, Janko Muzykant <[EMAIL PROTECTED

Re: [T5] Index pages bug ?

2008-03-03 Thread Howard Lewis Ship
Please add this as an issue in JIRA. On Mon, Mar 3, 2008 at 7:20 AM, Kheldar666 <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > I have a problem with the new index pages. The system that shortens the url, > shorten too much I think... > > Exemple in the Index.tml page a the Root of my Tape

Re: Bean Edit Form Change from 5.0.10 to 5.0.11-SNAPSHOT

2008-03-03 Thread Howard Lewis Ship
Looks like a bug to me, please add to JIRA. On Mon, Mar 3, 2008 at 8:37 AM, Mark W. Shead <[EMAIL PROTECTED]> wrote: > I have a domain object that looks something like this: > > private int points; > private int possiblePoints; > > float getScore() { > return point/possiblePoints * 100;

Re: How to add table id into the Grid

2008-03-03 Thread DavidWei
Thanks Davor. It works for now. Davor Hrg wrote: > > for quick fix, you can > add an element around the table and give id to it, > > then you get the element by calling > (this code works if table is direct child... not that is hard to look > recursively for it) > > var div = $(id); > var elem

Bean Edit Form Change from 5.0.10 to 5.0.11-SNAPSHOT

2008-03-03 Thread Mark W. Shead
I have a domain object that looks something like this: private int points; private int possiblePoints; float getScore() { return point/possiblePoints * 100; } [other getters and setters] In 5.0.10 the get score didn't show up in the BeanEditForm because it wasn't something that you

Tapestry 5 and PVM jBPM integration for flow management

2008-03-03 Thread Francois Armand
Hello everybody, Before anything else, I'm aware that there were some messages on the list about T5 / Spring Webflow integration, and that it seems that it will be the preferred flow engine integration. Nonetheless, I would like to know if anybody has looked or is interested in PVM integrati

Tristate property (true/false/null)

2008-03-03 Thread Steph
I try to handle a tristate property (true/false/null) with a radiogroup : true false not defined but the selection of "not defined" set my property to true. Is there a specific way to handle null values ? Stephane

[T5] Index pages bug ?

2008-03-03 Thread Kheldar666
Hello everybody, I have a problem with the new index pages. The system that shortens the url, shorten too much I think... Exemple in the Index.tml page a the Root of my Tapestry package : http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; > test The generated URL will be http://ho

Re: T5: How to handle lookup?

2008-03-03 Thread Angelo Chen
hi Davor, In the case of zone, another area in the same page will be opened for the user to do some query/selection and return the result back to main form when done? I tried jQuery with Thickbox, it pops up another window and we can do some selection, although it appears like another window, bu

Re: T5: How to handle lookup?

2008-03-03 Thread Davor Hrg
an aoutocompleter for entities would be relatively simple to implement Davor Hrg On 3/3/08, Davor Hrg <[EMAIL PROTECTED]> wrote: > to use popup window you need a separate page, > and pair of javascript functions to connect the page in > popup with parent page's input > > I personaly don't li

Re: T5: How to handle lookup?

2008-03-03 Thread Davor Hrg
to use popup window you need a separate page, and pair of javascript functions to connect the page in popup with parent page's input I personaly don't like popup windows because they're slow to open, a zone would make a better choice here.. .. I haven't played arround with it, just some though

Re: AW: T5: How to handle lookup?

2008-03-03 Thread Angelo Chen
Hi Martin, Thanks for the fast answer, i tried the javascript approach and it works, that does give me some idea, in an intranet app, there are so entities that are used often in the lookup, maybe components like DateField can be built for them and use in the UI, this will make the app like a des

Re: T5: How to handle lookup?

2008-03-03 Thread Angelo Chen
Hi Davor, This sounds interesting, question, how block be used in a popup window? Davor Hrg wrote: > > uh, > I assumed you were talking about popup window, > I'm doing such thing in my form and I just made a component > that triggers event when something is selected > ComponentResources.trigerE

Re: T5: Tapestry and Tomcat

2008-03-03 Thread Davor Hrg
just a guess .. something might be messing up javassist, some system permissions to byte code modification, javassist in shared lib o sth .. Davor Hrg On 3/3/08, MoritzGilsdorf <[EMAIL PROTECTED]> wrote: > > Hi, > > I know there are a lot of Topics available about this issue but I couldn't > fin

Re: T5: beaneditform and entities with lookup

2008-03-03 Thread Marcelo Lotif
This is a very useful feature, I think many developers miss it It would be nice if Grid support it too 2008/3/2, Howard Lewis Ship <[EMAIL PROTECTED]>: > > This is not (yet) supported by BeanEditForm. I hope to add this in > the future, but that will be 5.1 not 5.0. > > > On Sat, Mar 1, 2008 at 1

T5: Tapestry and Tomcat

2008-03-03 Thread MoritzGilsdorf
Hi, I know there are a lot of Topics available about this issue but I couldn't find a helpful Solution. I'm trying to deploy my webapp on a ubuntu 7.10 linux server using tomcat5.5. Using jetty my webapp works fine. I also followed the Instructions about http://tapestry.apache.org/tapestry5/tom

Re: Announce new WIKI page

2008-03-03 Thread Sven Homburg
i dated it up for IDEA, thanx davor http://wiki.apache.org/tapestry/Tapestry5HowToIdeaLifeTemplates 2008/3/3, Davor Hrg <[EMAIL PROTECTED]>: > > The form is frequently used so I've added form event methods too.. > checkout > > http://wiki.apache.org/tapestry/Tapestry5HowToEclipseCodeTemplates > >

Re: What happened to property accessor methods generation in T5 ?

2008-03-03 Thread Davor Hrg
@GenerateAccessors has been aded yesterday to current dev version : T5.0.11 Davor Hrg On 3/3/08, Martin Kersten <[EMAIL PROTECTED]> wrote: > One thing I can wish for is accessing properties by field when > using the expression language within a template. > > For testing Howard is right but knowi

Re: Announce new WIKI page

2008-03-03 Thread Davor Hrg
some cache problems... I've renamed it to fix it for sure :) Davor Hrg On 3/3/08, Sven Homburg <[EMAIL PROTECTED]> wrote: > the t5_eclipse_code_templates.xml looks like the old one > > 2008/3/3, Davor Hrg <[EMAIL PROTECTED]>: > > > > The form is frequently used so I've added form event methods to

Contribute localized messages

2008-03-03 Thread Gabriel Landais
Hi, we already use a i18n parser in our libraries (released as GPL aka lutinutil). Is there a way to contribute messages properties? Haven't fund how to yet :( Thanks Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

AW: What happened to property accessor methods generation in T5 ?

2008-03-03 Thread Martin Kersten
One thing I can wish for is accessing properties by field when using the expression language within a template. For testing Howard is right but knowing myself I mearly test few event methods separatly. So for replacing getters when I only want to access template related properties I would like

Re: What happened to property accessor methods generation in T5 ?

2008-03-03 Thread Hugo Palma
Thanks for the pointer. I didn't find that issue when looking for something similar. Davor Hrg wrote: > I've created a minimaly invasive patch for this some time ago, > https://issues.apache.org/jira/browse/TAPESTRY-2116 > > it only requires notion of transformable methods for ClassTransformation

Re: What happened to property accessor methods generation in T5 ?

2008-03-03 Thread Hugo Palma
True, but even if one was only able to remove 10% of the getters and setters, wouldn't it be worth it ? I think the Tapestry 5 way of doing thing is great, practically everything is JAVA code. But, this also obviously means, more JAVA code. So, Tapestry should also help the developer keep that cod

Re: Announce new WIKI page

2008-03-03 Thread Sven Homburg
the t5_eclipse_code_templates.xml looks like the old one 2008/3/3, Davor Hrg <[EMAIL PROTECTED]>: > > The form is frequently used so I've added form event methods too.. > checkout > > http://wiki.apache.org/tapestry/Tapestry5HowToEclipseCodeTemplates > > > I you already imported the templates, rem

Localization Problems in 4.1.5

2008-03-03 Thread Patrick Klein
Hello, I just tested if i can switch to 4.1.5 just to realize that the localization issue is only partially fixed. Szenario: Application with "fallback" localization, german and english properties application.properties, application_en.properties, application_en_GB.properties, application_

Re: Only one user request at the same time

2008-03-03 Thread Christian Haselbach
Hi Quoting spot_ <[EMAIL PROTECTED]>: how can I make shure, that only one request of a user is processed at the same time. In other words: I want to dismiss a request of a user, if a request of the same user is already running at the moment. There is no clear answer to this question. And you

Re: Announce new WIKI page

2008-03-03 Thread Davor Hrg
The form is frequently used so I've added form event methods too.. checkout http://wiki.apache.org/tapestry/Tapestry5HowToEclipseCodeTemplates I you already imported the templates, remove old ones firts before importing new, or you'll have duplicates. Ive put selected event there also since it is

T5 acquire block from separate page [was: Re: Antwort: [T5] Dynamic Layouts]]

2008-03-03 Thread Michael Gerzabek
Hi Robert, You clearly outlined the simple case. I'm interested in the 2nd case: The name of my block/ component is read from the database and I have to acquire the block/ component from another page (where the name could also be in the database). I found Howards repy to an earlier thread [1]. T

Re: T5: How to handle lookup?

2008-03-03 Thread Davor Hrg
uh, I assumed you were talking about popup window, I'm doing such thing in my form and I just made a component that triggers event when something is selected ComponentResources.trigerEvent("nameSelected", new Object{selectedName}) ComponentResources.trigerEvent("cancel") then onNameSelected(Strin

AW: T5: How to handle lookup?

2008-03-03 Thread Martin Kersten
Hi Angelo, what kind of workflow you are referring to? 1. Order Page -> Click 2. Supplier page shows up (same browser tab) 3. User selects supplier -> Click 4. Order page shows up again + supplier is changed. 5. Order page is submitted or would you like this one: 1. Order Page -> Click 2.

[T5] AppModule upgrade to 5.0.10

2008-03-03 Thread Janko Muzykant
hi, i have a number of compilation errors after my upgrade from T5.0.5 to T5.0.10. some of them were trivial to resolve, but i have no idea how to fix all of these from AppModule.java: 1. in following i have now no reference to 'response' object. previously it was given as argument in renderRespo

Re: T5: How to handle lookup?

2008-03-03 Thread Davor Hrg
Are you aware of the client side this involves ? This is not server side problem... you have a popup window, which is basicaly another browser with same session. you have to use javascript... the popup can reference the parent window by: "window.opener" ... Davor Hrg On Mon, Mar 3, 2008 at 9:3

T5: How to handle lookup?

2008-03-03 Thread Angelo Chen
Hi, I have this problem, say I have a OrderRec: public class OrderRec { private Long qty; private Long supplierID; private Long itemNo; // getters/setters omitted } now I have a Order page: public class Order { private OrderRec rec; // getter/setter...