Re: T4: From the client side, how do you programmatically update a component?

2007-12-03 Thread Igor Drobiazko
Hi, you you can do following: -your component should implement the interface IDirect -create a link: public ILink getLink(){ return getDirectService().getLink(false, new DirectServiceParameter(this)); } - and pass the url of the link as a parameter to your Script

T5: outputRaw and bbcode

2007-12-03 Thread Angelo Chen
Hi, I'd like to know know if there is a component that can display BBCode text in the correct html format? i tried outputRaw and seems I'm wrong, any ideas? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-outputRaw-and-bbcode-tf4935074.html#a14125808 Sent from the

Re: Tapestry 5 book

2007-12-03 Thread Francois Armand
Emmanuel Sowah wrote: I read somewhere on the net that there is a Tap 5 book in the works. Where can I get drafts of this work in progress and when would it be released? The book is available in pre-order here : http://www.packtpub.com/tapestry-5/book -- Francois Armand Etudes

Re: [T5] Got the ioc working in a test with tapestry-hibernate

2007-12-03 Thread 西村 俊夫
Hi, Dan. I want to same thing which you did. Could you let me know the details? So I have some test cases in which I actually need a working hibernate session so I'm having my tests start up an ioc registry. This took a bit of digging to figure out but I got it working. Here's a minimal

Re: [T5] Got the ioc working in a test with tapestry-hibernate

2007-12-03 Thread Davor Hrg
you shold also call registry.performRegistryStartup(); after Registry registry = builder.build(); in the end just call : registry.shutdown(); Davor Hrg On Jun 14, 2007 4:01 PM, Dan Adams [EMAIL PROTECTED] wrote: So I have some test cases in which I actually need a working hibernate

T5: Problem with url-pattern in web.xml

2007-12-03 Thread Ritesh.S
Hello everybody, I am new to tapestry and I am using Tapestry core 5.0.5. I integrated Tapestry 5 with spring and hibernate. I configured my application's web.xml as below - -spring-app configuration is here- !-- Tapestry 5 context and filters -- context-param

T3: session length

2007-12-03 Thread James Sherwood
Hello, Is there a way in T3 to make your session last until the browser is closed? Thanks, --James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T3: session length

2007-12-03 Thread Emmanuel Sowah
No, I don't think so. E. On Dec 3, 2007 3:00 PM, James Sherwood [EMAIL PROTECTED] wrote: Hello, Is there a way in T3 to make your session last until the browser is closed? Thanks, --James - To unsubscribe, e-mail:

Re: OGNL race condition(s) (?)

2007-12-03 Thread Matt Brock
I've also noticed more OGNL getProperty(null, property) exceptions while upgrading from 4 to 4.1. For instance, previously this would work: lt;tr jwcid=@For source=ognl:myObj.myCollection value=ognl:tempObj id=ognl:'uniquerow' + tempObj.idgt; nbsp;nbsp;... lt;/trgt; But now it appears the

RE: PropertySelection binding bug T-4.1.3 ?

2007-12-03 Thread Ken in nashua
Well today I am going to scope out the usage of a supplemental getValue() abstract method and see what that does to the mix. I had hopes that it is not needed but thats my only route. I remain confused about the status of inherited bindings, how to use if any and whether they remain

Re: T5: Select's model

2007-12-03 Thread Kevin Menard
I put mine into a selection package, like com.servprise.manager.selection. These classes are not auto-enhanced, so I provide necessary ASOs and services through the constructor as demonstrated in my example. On 12/2/07 9:18 PM, in article [EMAIL PROTECTED], Angelo Chen [EMAIL PROTECTED] wrote:

T5 - Stream source output to text file

2007-12-03 Thread patrick whalen
Could anyone give me any pointers or directions on how to stream the html output that Tapestry generates out to a text file, which would be stored in a specific directory outside the Tapestry project? I would also like to be able to do the same with assets such as css and javascript files,

Help wanted. Running T5 on Tomcat

2007-12-03 Thread Thomas Zenglein
Hi, I m currently evaluating T5 as a framework. I am new in tapestry. Fot that purpose I wrote a small test application that runs fine in jetty application server. Wedo however use tomcat 5.5 as the standard application server in our project and we must stick to this decision due to external

Re: T5 - Stream source output to text file

2007-12-03 Thread Daniel Jue
I don't know if this can be done, although it would be great! It would open the doors for sending Tapestry generated html emails, which others have asked about. Also it would be easier to do rigorous html code testing/profiling, since it's outside the browser. On Dec 3, 2007 11:41 AM, patrick

How to access component properties inside of a page

2007-12-03 Thread superoverdrive
Hi there! I want to access the property selectedBlockID of a component called GraphicalTabPanel inside of a page that includes this component. The method getComponent() returns an IComponent. GraphicalTabPanel panel = this.getComponent(GraphicalTabPanel ); and I can not cast it to

Re: T4: From the client side, how do you programmatically update a component?

2007-12-03 Thread Kalle Korhonen
Yeap, thanks Igor. I like the idea of calling the script with a parameter, but overall a bit much compared to the one-liner on the client side, as ugly as it may be. Adding such a component to the contrib lib or tacos might make sense though. I'd think others might have similar needs. Kalle On

Re: Help wanted. Running T5 on Tomcat

2007-12-03 Thread Daniel Jue
Several people including myself are using Tomcat 5.5.x as our deployment app server. I also use it in development on my local workstation. I recommend searching the list for Tomcat (we're almost always talking about Tomcat 5.0+) I use Eclipse WTP with a Tomcat. With Tapestry 5+, It is suggested

Re: How to access component properties inside of a page

2007-12-03 Thread superoverdrive
..sorry, just ignore this message GraphicalTabPanel panel = (GraphicalTabPanel)this.getComponent(tabPanel); lol - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T3: session length

2007-12-03 Thread Filip S. Adamsen
I suppose you could set session-timeout to 0 in your web.xml, but that's not recommended. -Filip James Sherwood skrev: Hello, Is there a way in T3 to make your session last until the browser is closed? Thanks, --James - To

T5: Grid queries partial data

2007-12-03 Thread ronaldlee
Hi, Does anyone know how to implement a Grid data source, or thru other ways, such that it will only query partial data from the database, depending on the page link user click on the Grid, and the rowsPerPage value set for the Grid? I just don't want to retrieve the whole list if I only need to

Re: T5 - Stream source output to text file

2007-12-03 Thread Josh Canfield
I've done something like what you are asking in order to generate email messages. It's not pretty, and not well supported but it can be done... Here is the guts of the process: protected String getHtml(String page, String[] context, EmailContext emailContext) { Request request =

Re: T5: Grid queries partial data

2007-12-03 Thread Sven Homburg
have a look for a simple hibernated grid datasource http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource best regards S.Homburg ronaldlee schrieb: Hi, Does anyone know how to implement a Grid data source, or thru other ways, such that it will only query partial data from the

Add a button to BeanEditForm

2007-12-03 Thread Christoph Jaeger
Hi, is there an easy way of adding a button to a BeanEditForm? Just an additional Delete or Copy button? Maybe like you can influence how a specific property is displayed with a t:Parameter name=firstName.../t:Parameter inside the BeanEditForm. Thanks, Christoph Jäger

T5 - custom component validation

2007-12-03 Thread Will Norris
As usual, I'm sure I'm just missing something here... I can't quite figure how to do validation of a custom component. I basically want to do what is described here[0] about using onSuccess(), but in a component rather than a page. I basically have a PasswordForm component which itself

Re: T5: Grid queries partial data

2007-12-03 Thread Michael Courcy
Very interesting thank you Sven Homburg a écrit : have a look for a simple hibernated grid datasource http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource best regards S.Homburg ronaldlee schrieb: Hi, Does anyone know how to implement a Grid data source, or thru other ways,

Re: Add a button to BeanEditForm

2007-12-03 Thread Howard Lewis Ship
Currently, you would need to build your own Form, including an Errors component, a BeanEditor component, and you own Submit components. On Dec 3, 2007 12:18 PM, Christoph Jaeger [EMAIL PROTECTED] wrote: Hi, is there an easy way of adding a button to a BeanEditForm? Just an additional Delete

T4: replacing script asset in AbstractSubmit

2007-12-03 Thread Steve Shucker
Is it possible to globally replace the SubmitBindings.script file used by all the AbstractSubmit subclasses to wire up ajax events with my own version? I've got a script that imposes an overlay on top of the components being updated and prevents double-clicks. Right now, I can wire it up to

Re: Add a button to BeanEditForm

2007-12-03 Thread Robert Zeigler
You can also do hackish things like: create your model via BeanModelSource, add a property for your button (something like: model.add(button,null)), then add the appropriate template markup to override the rendering of the button property (if you don't, tapestry will complain). Throw in a

Re: T5 - custom component validation

2007-12-03 Thread Will Norris
worked perfectly, thanks. see, I knew I was missing *something* :) -will On Dec 3, 2007, at 1:41 PM, Filip S. Adamsen wrote: Try moving your validation logic to onValidate. If any errors are added to the form in this method Tapestry won't call onSuccess but display the page again with

Re: T5 - custom component validation

2007-12-03 Thread Filip S. Adamsen
Try moving your validation logic to onValidate. If any errors are added to the form in this method Tapestry won't call onSuccess but display the page again with your errors shown in the Errors component. -Filip Will Norris skrev: As usual, I'm sure I'm just missing something here... I can't

Re: T5: outputRaw and bbcode

2007-12-03 Thread jeffrey ai
Maybe I got your question wrong, could you just create a component to escape special chars in your BBCode text. One choice is to use StringEscapeUtils in Jakarta Commons-Lang. Cheers, Jeffrey Ai Angelo Chen wrote: Hi, I'd like to know know if there is a component that can display BBCode

Re: T5: Personalizing page and component template

2007-12-03 Thread jeffrey ai
Anybody, any advice? jeffrey ai wrote: Hi Folks, We have a need to provide personalized page for different user groups, so I tweaked some T5 services to make it possible to use personalized template based on a request parameter. I would like put the general idea here in case you

Re: T5: outputRaw and bbcode

2007-12-03 Thread Angelo Chen
hi jeffrey, thanks for the response, what I want to do is, the text has some bbcode , I'd like to convert that to html tags, then use outputRaw to display it, any existing components that can do that? jeffrey ai wrote: Maybe I got your question wrong, could you just create a component to

Re: T5: Grid queries partial data

2007-12-03 Thread ronaldlee
Thanks! I can get it to work, kind of. I am encountering a situation where in the prepare function, the startIndex is greater than the endIndex... the way I get that is first get to the second page of the data (by clicking page 2), then do a new search to query new data, and for some reason

[T4] Help converting InjectComponent annotation to page specification

2007-12-03 Thread cpnguyen
Hi all, I'm a newbie at Tapestry and I'm reading Kent's book trying to get Tapestry to work with AJAX. In one of his examples, he has a customerCRUD.java class with the following annotation: @InjectComponent(customersLoop) public abstract ForBean getRow(); public String

Re: T5 - Stream source output to text file

2007-12-03 Thread Andy Huhn
It's not elegant, but you could use a command-line tool like wget. Andy On Mon, 2007-12-03 at 08:41 -0800, patrick whalen wrote: Could anyone give me any pointers or directions on how to stream the html output that Tapestry generates out to a text file, which would be stored in a specific

Re: T5: Grid queries partial data

2007-12-03 Thread Andy Huhn
Ronald, This is a bug in the Grid implementation. See http://issues.apache.org/jira/browse/TAPESTRY-1901 Thanks, Andy On Mon, 2007-12-03 at 15:09 -0800, ronaldlee wrote: Thanks! I can get it to work, kind of. I am encountering a situation where in the prepare function, the startIndex

Re: T5 - Stream source output to text file

2007-12-03 Thread Daniel Jue
I guess the next step is to simulate the HTTP request and then grab the output from it. For generating html emails you wouldn't want to do any interaction through the web browser to initiate the page creation. Maybe the wget approach is a good angle of attack, but needs to be closer to the App

Re: T5 - Stream source output to text file

2007-12-03 Thread Christopher Ottley
You could keep it all Java (closer to the App Server is a good idea) and use the Apache HTTPClient to make the HTTP request. http://jakarta.apache.org/httpcomponents/httpcomponents-client/index.html Christopher. On Dec 3, 2007 11:35 PM, Daniel Jue [EMAIL PROTECTED] wrote: I guess the next step