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...

[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

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 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].

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

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

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,

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, remove old

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

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

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

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 too..

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 knowing

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 I you

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

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:45 AM,

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 find a

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

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

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 like

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

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,

[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 : html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:pageLink t:page=index

Tristate property (true/false/null)

2008-03-03 Thread Steph
I try to handle a tristate property (true/false/null) with a radiogroup : t:radiogroup id=prop1 value=property1 t:radio value=true/true t:radio value=false/false t:radio value=null/not defined /t:radiogroup but the selection of not defined set my

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: style type=text/css

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: * ul * liclass=odd for all odd rows/li * /ul * * @author Christian Kouml;berl */

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: style

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

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

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 t:grid rowClass=cycle:line1,line2 or t:grid rowClass=cycle:normal,zebra or more than two t:grid rowClass=cycle:line1,line2,line3 or any loop t:loop ... div class=${cycle:line1,line2}/div /tloop

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

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:11

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.html

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

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

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 see

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

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: input type=button jwcid=@Submit listener=listener:generateReport value=Generate Report/ When clicked, the listener does some processing then returns its self either via this or via

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.