T5 customization with web.xml

2008-02-27 Thread Moritz Gmelin
Hi, I'd like to customize my AppModule.binding() method based on parameters I write in the web.xml file. Therefore I'd need to access the ServletContext or tapestrys SymbolProvider in the bind() method of my AppModule service. This is because I'd like to distribute different applications

Re: T5: Hibernate warning

2008-02-27 Thread Jesper Zedlitz
Angelo Chen wrote: I use Tapestry-Hibernate and it works very well, just I always see this warning in the log: [WARN] AnnotationBinder Package not found or wo package-info.java: : org.ust.test.t5.entities You can create a file called package-info.java (see [1] for details) in your package

Re: How to change the CSS styles in BeanDisplay

2008-02-27 Thread LakshithaS
Yeah,,,thanks, it works but not entirely some border part at the top is still displaying Davor Hrg wrote: maybe this : DIV.t-beandisplay-row { text-align: center; color: black; font-family: arial } On Feb 18, 2008 1:10 PM, LakshithaS [EMAIL PROTECTED] wrote: Dear All,

Re: How to change the CSS styles in BeanDisplay

2008-02-27 Thread Davor Hrg
Try firefox+firebug to find out what causes it Davor Hrg On Wed, Feb 27, 2008 at 10:54 AM, LakshithaS [EMAIL PROTECTED] wrote: Yeah,,,thanks, it works but not entirely some border part at the top is still displaying Davor Hrg wrote: maybe this : DIV.t-beandisplay-row {

Why call the getXXX method 3 times

2008-02-27 Thread txhdeve
I have a simple project.The home.html has a component name and get the value from getName,but i found when the page is displayed,the getName is called 3 times,why ? -- View this message in context: http://www.nabble.com/Why-call-the-getXXX-method--3-times-tp15709284p15709284.html Sent from the

Re: T5 customization with web.xml

2008-02-27 Thread Davor Hrg
you could extend TapestryFilter, and copy properties from web.xml into system properties, and use system properties in your module On Wed, Feb 27, 2008 at 9:41 AM, Moritz Gmelin [EMAIL PROTECTED] wrote: Hi, I'd like to customize my AppModule.binding() method based on parameters I write in

[4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Andy Pahne
I am trying to show some parts of a page that were initially hidden, depending on some event that is asynchronously submitted through the @EventListener feature. Unfortunatly the hidden form field never shows up. I am not sure if there's a problem with my code or if my approach is correct

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Ulrich Stärk
Your placeHolder hast to be a Tapestry component not just a div container. Just replace id=placeHolder with jwcid=[EMAIL PROTECTED] and it should work. Uli Andy Pahne schrieb: I am trying to show some parts of a page that were initially hidden, depending on some event that is

JumpStart 3.3.3 now available - fixes 3.3.1 bugs

2008-02-27 Thread Geoff Callender
Hi all, JumpStart 3.3.3 is now available for T5.0.10. It fixes these bugs that were in 3.3.1 which was released a few days ago: * Editing a Person always displayed a Double Wow!!! error (My thanks to Julian Wood for reporting this). * Exploder directory is not set to derived in Eclipse,

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Andy Pahne
Sorry, but I cannot confirm that. I tried it and the debugging output changed to: DEBUG: 1:05:54 PM: tapestry.load() Response received. WARNING: 1:05:54 PM: No ajax-response elements received. But the hidden part does not render. I also tried

Re: T5: 5.0.10 new features

2008-02-27 Thread Angelo Chen
Hi Howard, This is a very nice feature, in my app, I have many small tables, say 30, so to edit those 30 objects I have to create 30 page classes without template, that's a big saving. I'd like to save further, is there a way that we can create a generic page class that can be called from other

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Andy Pahne
Correction. It works when I update the whole form component, but not if I try to update only the [EMAIL PROTECTED] component. Thanks Ulrich, you pointed into the right direction. By the way: in the last few weeks you were very responsive and helpful to all my questions. I appreciate

Re: T5: 5.0.10 new features

2008-02-27 Thread Davor Hrg
I think not just yet, my next proposal would be to enable GenericComponents... @Component GenericGridAccount accountGrid; One notation would be for component to have a constructor: public GenericGrid(Class[] genericClasses){ } and instead of calling default constructor framework would call

Re: T5: 5.0.10 new features

2008-02-27 Thread Angelo Chen
hi Davor, That's cool, will make T5 RoR of Java! Davor Hrg wrote: I think not just yet, my next proposal would be to enable GenericComponents... @Component GenericGridAccount accountGrid; One notation would be for component to have a constructor: public GenericGrid(Class[]

Re: [4.1.5] @EventListener and dynamic responses

2008-02-27 Thread Ulrich Stärk
Oh sorry, sure it can only work if the whole form reloads because the form has to know of the now present input field. Uli Andy Pahne schrieb: Correction. It works when I update the whole form component, but not if I try to update only the [EMAIL PROTECTED] component. Thanks Ulrich, you

[T5] JSONObject response

2008-02-27 Thread Adriaan Joubert
Hi, I'm having a problem with returning a JSON object from an actionlink in (5.0.11-SNAPSHOT). I have some javascript that submits a request, which works great, and the actionhandler returns a JSONObject as follows Object onUpdate() { JSONObject json = new JSONObject();

Re: T5 customization with web.xml

2008-02-27 Thread Moritz Gmelin
Thanks for that hint, since the init method of the Filter (or its subclasses) is only called after the binding of the AppModule is done, I can still not get to those properties. But I could write a delegate filter that internally initializes a TapestryFilter after reading the parameters

t5 beaneditor vm lock

2008-02-27 Thread riccaruf
Hi everybody, I'm trying to submit a t5 form that contain a component build on a t5 grid modification div class=t-data-grid xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:if t:test=filtred negate=false table

Re: T5 customization with web.xml

2008-02-27 Thread Davor Hrg
you can override protected ModuleDef[] provideExtraModuleDefs(ServletContext context) { return new ModuleDef[0]; } it will definitely get called before registry is constructed Davor hrg On Wed, Feb 27, 2008 at 5:56 PM, Moritz Gmelin [EMAIL PROTECTED] wrote: Thanks for that

Re: t5 beaneditor vm lock

2008-02-27 Thread Howard Lewis Ship
You don't have a stack trace? On Wed, Feb 27, 2008 at 9:28 AM, riccaruf [EMAIL PROTECTED] wrote: Hi everybody, I'm trying to submit a t5 form that contain a component build on a t5 grid modification div class=t-data-grid xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;

Re: T5: Client-side Execution before form submission

2008-02-27 Thread Howard Lewis Ship
In 5.0.11-SNAPSHOT you can observe the form:prepareforsubmit event on the Form object. By observe, I mean all the Protoype stuff: $(form).observe(form:prepareforsubmit, function() { ... }); On Tue, Feb 26, 2008 at 10:45 AM, Michael Lake [EMAIL PROTECTED] wrote: I've got some javascript that

Writing an FAQ for Tapestry 5

2008-02-27 Thread Howard Lewis Ship
I've started work on an FAQ for Tapestry 5. I'd like some help. Please send your Question and Answer to this list. Use [FAQ] on the subject line. I'll clean them up and add them to the FAQ. A good FAQ must be command (aka, Frequent), must be easily expressable (if you need to past code into

Re: Why call the getXXX method 3 times

2008-02-27 Thread Howard Lewis Ship
http://www.catb.org/~esr/faqs/smart-questions.html On Wed, Feb 27, 2008 at 1:21 AM, txhdeve [EMAIL PROTECTED] wrote: I have a simple project.The home.html has a component name and get the value from getName,but i found when the page is displayed,the getName is called 3 times,why ? --

Re: Inject into Test Class

2008-02-27 Thread Mark W. Shead
On Feb 26, 2008, at 11:13 PM, Angelo Chen wrote: @Inject is only for pages and components. That makes sense. But I'm still looking for a way to get something from the ioc container into a test class. Any suggestions? Mark

Re: Inject into Test Class

2008-02-27 Thread Davor Hrg
use: org.apache.tapestry.test.use PageTester pass your module PageTester(String appPackage, String appName, String contextPath, Class... moduleClasses) same as you setup the app in web.xml create a test page and use @Inject inside it to access any service you wish... OR. if you want to

Re: Why call the getXXX method 3 times

2008-02-27 Thread Andreas Andreou
That's a known ognl related issue - it happens the first time that a page instance is created filed as https://issues.apache.org/jira/browse/TAPESTRY-2140 On Wed, Feb 27, 2008 at 8:05 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: http://www.catb.org/~esr/faqs/smart-questions.html On Wed,

Re: Inject into Test Class

2008-02-27 Thread Mark W. Shead
On Feb 27, 2008, at 1:18 PM, Davor Hrg wrote: pass your module PageTester(String appPackage, String appName, String contextPath, Class... moduleClasses) create a test page and use @Inject inside it to access any service you wish... OR. example how to start ioc manualy is here:

Re: Inject into Test Class

2008-02-27 Thread Davor Hrg
just create a page that does the testing and outputs result, then check the result from that test page ... you said: 1. Grab the mock datasource from ioc and count how many items are there. 2. Using PageTester navigate through some pages and add another item. 3. check the datasource to verify

Re: updateComponent from JavaScript

2008-02-27 Thread Paul Stanton
gah .. have to go back to plain old JS. Paul Stanton wrote: Thanks Andreas, that works great on Firefox, not sure why but not working with ie. The listener method is being called, but the component (contrib:TableView) is not its self does not change as it should. Your ClientLink is working

Re: updateComponent from JavaScript

2008-02-27 Thread Andreas Andreou
yea, I know noticed you're trying to update parts of a table... IE6 (not sure about IE7) has trouble updating parts of tables... There's a js trick to make this possible but it must be the first time i see someone needing this in Tapestry... perhaps most people either update the whole table, or

Re: Inject into Test Class

2008-02-27 Thread Mark W. Shead
On Feb 27, 2008, at 2:27 PM, Davor Hrg wrote: feel free to add a jira requesting addition of method getSerivice(ClassT) to page tester and describe your use case :) Thanks. I just wanted to make sure there wasn't an easy way to do it that I was overlooking. I took a look at JIRA and it

Re: updateComponent from JavaScript

2008-02-27 Thread Paul Stanton
Oh, ok, i'll try and update a div surrounding the table, otherwise back to JS i guess. Thanks. Andreas Andreou wrote: yea, I know noticed you're trying to update parts of a table... IE6 (not sure about IE7) has trouble updating parts of tables... There's a js trick to make this possible but

Re: T4 AutoCompleter onkeypress event never triggered

2008-02-27 Thread Paul Stanton
looking a bit deeper, the script for registering the onValueChanged event looks like this: tapestry.cleanConnectWidget(addrSearch, onValueChanged, formEvent1152711902); tapestry.formEvent1152711902=function(e){ // do some stuff }; tapestry.connectWidget(addrSearch, onValueChanged,

t5: BeanEditform and Timestamp

2008-02-27 Thread Angelo Chen
Hi, I use BeanEditForm with an entity that has Timestamp field, it has DateField dialog in the page, how to encode the time? and when click 'update', I got this error: Failure writing parameter value of component core/PropertyEditBlocks:datefield: Could not find a coercion from type