Re: [T5] CSV in Tapestry 5

2007-11-28 Thread Francois Armand
Alejandro Tapia Lazcano wrote: Hello! Hello, I have a grid made with tapestry5 and I need to pass this data to a CSV (comma separated values). After searching I found this component but for T4. http://www.tapestrycomponents.org/Tassel/app?service=direct/1/Search/viewComponent&sp=SmschnyderCS

Re: Blank value for PropertySelection

2007-11-28 Thread Andreas Andreou
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/form/IPropertySelectionModel.html On Nov 28, 2007 9:56 AM, Joshua Jackson <[EMAIL PROTECTED]> wrote: > Dear all, > > I have a combo box defined as follow: > value="ognl:sex" /> > > Now I wanted to add a default message for

T4.1.3 Problem loading page

2007-11-28 Thread nkonstantinou
I'm facing s strange behaviour with T4.1.3. The problem goes like this: I have a form that has two select components AUSTRIA USA and

Re: T4.1.3 Problem loading page

2007-11-28 Thread Alejandro Scandroli
Hi Can you use AJAX? Maybe some AJAX will help. Just remove the "onchange" values out from your templates and try this on your page: @EventListener(targets = "selectCountry", events = "onchange", submitForm = "quoteForm") public void changeRegions(IRequestCycle cycle) {

Re: T4.1.3 Problem loading page

2007-11-28 Thread Andreas Andreou
Also, since you already have selectedCountryId in your @PropertySelection, why use @Hidden ? For the javascript docs that relate to form handling, see http://tapestry.apache.org/tapestry4.1/javascript/form.html On Nov 28, 2007 11:53 AM, nkonstantinou <[EMAIL PROTECTED]> wrote: > I'm facing s stra

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-28 Thread lasitha
On Nov 20, 2007 12:11 AM, Ezra Epstein <[EMAIL PROTECTED]> wrote: > I imagine that if you use Spring's declarative transactions on the service > layer so that the read()/get() method does not start a read/write transaction > but the save() method does then changing the object without calling "sav

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread Marcus
Hi Angelo, try @Persist("flash") Marcus

Ajax Response adding extra space

2007-11-28 Thread RachelS
I have this page that has (amongst other things) a DirectLink and a div on it. Now, if the page is a normal non-ajax page, the div loads up fine with the right layout and that's great. Then I changed the page to use ajax to speed up the initial load of the page. So now, the div is not rendered a

T5: cleaning up persisted objects during user logout

2007-11-28 Thread Angelo Chen
Hi, I have a few pages that has some @Persist objects, I'd like to release all those objects when user log out the application so that the next login user will not see those persisted objects that are supposed to be visible to only the previous user, any way to handle this? Thanks, A.C. -- View

Re: Dynamic pages (or: arguments to pages) [T4]

2007-11-28 Thread Kaspar Fischer
Ulrich, Andy, Jesse, Jonathan, and Andy, thanks a lot for the many responses and tips! I am using T4 and have implemented it by injecting the web request into my page and using a URL encoder for friendly URLs. Regards, Kaspar On 27.11.2007, at 01:54, Andy Huhn wrote: Kaspar, If you're using

Re: Ajax Response adding extra space

2007-11-28 Thread Andreas Andreou
@If, @Else and @for have a renderTag parameter - it's true by default Either rethink your template, or set it to false http://tapestry.apache.org/tapestry4.1/components/general/if.html On Nov 28, 2007 1:03 PM, RachelS <[EMAIL PROTECTED]> wrote: > > I have this page that has (amongst other thin

Re: Ajax Response adding extra space

2007-11-28 Thread RachelS
Thank you! I am really relieved that it is so straight forward with setting it to false. On the plus side though, the template did get a work over in the process... Thanks again, Rachel @If, @Else and @for have a renderTag parameter - it's true by default Either rethink your template, or set

Caching: dependency on session data [OT?]

2007-11-28 Thread Kaspar Fischer
Dear All, I've tried to search for information on Tapestry's caching mechansism but could not find anything regarding depency on session data (like logged in users). Reading from http://www.nabble.com/RE%3A-Page-caching-nightmare-p3574110.html I understand that tapestry has its page pool but

T5: Is Persist("conversation") planned? Please?

2007-11-28 Thread Geoff Callender
Hi, T5 has done some great work in handling common web problems with its fresh approach to navigation, but I'm very concerned that T5 will be swept aside by developers demanding frameworks that, at last, completely deal with the Back button, double-submit, etc, etc. It's ridiculous that

Re: [T4.1] How to get list of registered components?

2007-11-28 Thread ccmail
Alejandro Scandroli wrote: Hi These old threads might help: http://www.nabble.com/dynamic-component-injection-tf3845654.html#a11223321 http://www.nabble.com/Question-regarding-Block-RenderBlock-tf2586721.html#a7212396 Thanks, currently I've chosen Block/RenderBlock-based solution. But is

RE: T5: Is Persist("conversation") planned? Please?

2007-11-28 Thread Kristian Marinkovic
hi geoff, i was thinking of implementing such a "conversation" or "flow" library in T5 myself and did some experiments I think a possible way of implementing such a feature is to define a "conversation" persistence strategy. Furthermore you need to enode the "conversation" id into the url

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread Angelo Chen
Hi Marcus, It does not work in my situation: in a file upload page, I keep a list of files uploaded by the user, the list is persisted session wide, if the user quits and another user logs in, the latter will see the entire list, if I use 'flash', it will not persisted between the file uploads. a

Re: T5: Is Persist("conversation") planned? Please?

2007-11-28 Thread Francois Armand
Geoff Callender wrote: Hi, Hello Geoff, [... common problem of web...] So, could T5 introduce Persist("conversation") or something similar, and take a whole class of problems away for good? Please, please? I completely agree with your remarks, and it's a kind of pity that T5 is such in adva

Re: T5: CRUD basic practice?

2007-11-28 Thread Geoff Callender
Hi Angelo, A few concerns - none of them to do with Tapestry. - The page is combining business logic with presentation logic rather than calling a service or a DAO. - It allows creation of a cat in an incomplete state ie. no gender or name. - It uses neither optimistic nor pessimistic locki

Re: Caching: dependency on session data [OT?]

2007-11-28 Thread Francois Armand
Kaspar Fischer wrote: Dear All, Helllo, If so, my next question is slightly off-topic: How can I implement caching? Lots of data I display on my Tapestry pages is pulled from a DB and this might be expensive. I see two approaches: * Caching "in front of T": use some page cache that caches th

Re: For, Hidden fields, squeezers, etc! How do I use them?

2007-11-28 Thread neo anderson
I plug a @Hidden component in the html page and it exactly produce the html tag. Now how can I get hidden value in Java code. The way how I do it is html: java: public abstract String getReportPage(); This doesn't work. I use System.out.println() the value of getReportPage to the console. It

T5: Controlling the content type in a page render request

2007-11-28 Thread Lars Kühne
Hi, I'm trying to use a tml template to serve an XML file that has dynamic content (in fact, a Java Web Start JNLP file): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; spec="1.5+" ... The content itself is rendered correctly, but I'm having problems setting the correct content type

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread anujith amaratunga
Hi, On Nov 28, 2007 4:20 PM, Marcus <[EMAIL PROTECTED]>; wrote: > > On Nov 28, 2007 4:15 PM, Angelo Chen <[EMAIL PROTECTED]>; wrote: > > > > I have a few pages that has some @Persist objects, I'd like to release > all > > those objects when user log out the application so that the next login >

Re: Change value property in @Option

2007-11-28 Thread Steve Shucker
You should look at the @PropertySelection component to render a select dropdown complete with options. It takes a "model" attribute (interface IPropertySelectionModel) which essentially wraps a collection/array of options. For your case, you probably want the BeanPropertySelectionModel or Str

Re: T5: CRUD basic practice?

2007-11-28 Thread Angelo Chen
Hi Geoff, Thanks for your reply to a very basic approach, I use it now in the absence of a better solution. some replies below: Geoff Callender-2 wrote: > > Hi Angelo, > > A few concerns - none of them to do with Tapestry. > > - The page is combining business logic with presentation logic ra

RE: T5: Controlling the content type in a page render request

2007-11-28 Thread Kristian Marinkovic
hi lars, return an instance of StreamResponse: StreamResponse onActivate(String context) { return new StreamResponse() { // implement interface public String getContentType() { return"application/x-java-jnlp-file"; }

Check radio button when the page is first rendered

2007-11-28 Thread Mateus Lucio dos Santos
Hi everyone, I'm having problems trying to check a radio button when the page is rendered for the first time. Is there some kind of tricky point in it? the component is mapped this way:

Re: Blank value for PropertySelection

2007-11-28 Thread Steve Shucker
Look at the LabeledPropertySelectionModel. From the javadoc: Decorates an underlying [EMAIL PROTECTED] IPropertySelectionModel}adding an initial property. The label, option, and value of the initial property are configurable. Joshua Jackson wrote: Dear all, I have a combo box defined as fo

Re: Check radio button when the page is first rendered

2007-11-28 Thread Mateus Lucio dos Santos
PS: I'm using tapestry 4! thanks again Mateus Lucio dos Santos wrote: Hi everyone, I'm having problems trying to check a radio button when the page is rendered for the first time. Is there some kind of tricky point in it? the component is mapped this way:

Re: AssetProtectionDispatcher update

2007-11-28 Thread Marcelo Lotif
Hi Robert, I try this component here, but many things are still available. What specifically this dispatcher blocks by default? 2007/11/27, Robert Zeigler <[EMAIL PROTECTED]>: > > Hi All, > > I've updated AssetProtectionDispatcher both in Tassel ( > http://www.tapestrycomponents.org > ) and in the

Re: For, Hidden fields, squeezers, etc! How do I use them?

2007-11-28 Thread Richard Kirby
Hi Neo, What you want is: Cheers Richard neo anderson wrote: I plug a @Hidden component in the html page and it exactly produce the html tag. Now how can I get hidden value in Java code. The way how I do it is html: java: public abstract String getReportPage(); This doesn't work. I us

[T5] PageTester & tapestry-spring

2007-11-28 Thread Mark Horn
I am using tapestry-spring to inject spring beans into my tapestry page classes, and would like to use PageTester to unit test the pages. I have reviewed the Unit Test documentation but don't see a way to get access to these beans. Can anyone offer a suggestion? [note: I have also reviewed the p

Re: AssetProtectionDispatcher update

2007-11-28 Thread Robert Zeigler
The dispatcher, itself, blocks nothing. It delegates to the authorizers. The last authorizer in the chain is a whitelist, which whitelists each of the (known) tapestry assets. I would be curious to know what resources you were able to access. Robert On Nov 28, 2007, at 11/289:31 AM , Marce

T5: problems when extending DateField. More flexibility needed?

2007-11-28 Thread Britske
Hi, I extended datafield to call a defined callback function in javascript. like so: public class MyDateField extends DateField { protected void configure(JSONObject setup) { setup.put("onUpdate", "callOnUpdate"); super.configure(setup);

Re: AssetProtectionDispatcher update

2007-11-28 Thread Marcelo Lotif
ok, looks like i made it wrong In a previous thread, you said that this component requires "zero configuration", so i just put a dependency on my pom.xml, but it's still just like before (i.e i still can access, let's say, a 'file.xyz' inside my app). am i missing something? 2007/11/28, Robert Ze

Re: AssetProtectionDispatcher update

2007-11-28 Thread Robert Zeigler
Something seems to be missing. :) Maybe the module isn't being properly auto-loaded? Ah... another possibility is tapestry version... what version of tapestry are you using? At the moment, I'm still on 5.0.5 (hope to switch to 5.0.6 sometime in the near future). Robert On Nov 28, 2007, at 1

Re: [T4.1] How to get list of registered components?

2007-11-28 Thread Kalle Korhonen
On 11/28/07, ccmail <[EMAIL PROTECTED]> wrote: > > Thanks, currently I've chosen Block/RenderBlock-based solution. But is > there NO easy way to inject component in purely programmatical way? > Without defining it in neither parent's template nor specifiaction XML ? > > No. "Static structure, dyna

Re: T5: problems when extending DateField. More flexibility needed?

2007-11-28 Thread Andreas Andreou
That's the same as https://issues.apache.org/jira/browse/TAPESTRY-1795 only for Tapestry-5... add an issue for it On Nov 28, 2007 6:39 PM, Britske <[EMAIL PROTECTED]> wrote: > > Hi, > > I extended datafield to call a defined callback function in javascript. > like so: > > public class MyDateField

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-28 Thread jeffrey ai
That solves the problem, thanks, folks. I put my contribute code in AppModule here for later reference. === public static void contributeBindingSource( MappedConfiguration configuration, @InjectService("RequestGlobals") RequestGlobals request

RE: [T5] PageTester & tapestry-spring

2007-11-28 Thread Joel Wiegman
Mark, Take a gander at this thread and see if it answers any of your questions: http://www.nabble.com/Using-PageTester-with-tapestry-spring-tf4508561.ht ml Let me know if you have any questions... Joel -Original Message- From: Mark Horn [mailto:[EMAIL PROTECTED] Sent: Wednesday, Nove

Re: [T5] Cannot persist field exception

2007-11-28 Thread Josh Canfield
Is that the entire page class? On Nov 27, 2007 4:00 PM, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > I made this change but it did not help. As a test, I have removed all > @Persist annotations in the page and now I am just getting a > java.lang.NullPointerException with no other informat

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-28 Thread Ken in nashua
Tapestry bug team, Is it possible to get to this bug? http://issues.apache.org/jira/browse/TAPESTRY-1820 Nothing works. Bindings are fruitless for PropertySelection. Is anything being done to staff the team to resolve these? The framework has been around for so many years. I have sif

Re: T5: Grid's rowClass

2007-11-28 Thread Ektschn
Sorry, I don't get that, how did you do it? Thanks. found the solution, have to write a getter to set the rowclass in the page class. -- View this message in context: http://www.nabble.com/T5%3A-Grid%27s-rowClass-tf4827079.html#a14007782 Sent from the Tapestry - User mailing list archive at N

Re: T5: Controlling the content type in a page render request

2007-11-28 Thread Josh Canfield
You can use: @Meta("tapestry.response-content-type=text/xml") on your page class. Although XML is not fully supported by tapestry at the moment. You may run into problems with invalid xml being generated if one of your elements matches an HTML element such as link or img which will render the openi

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread Josh Canfield
Doh! didn't read your answer before posting... also didn't bother to look and see that the tapestry Session exposes invalidate. On Nov 28, 2007 6:16 AM, anujith amaratunga < [EMAIL PROTECTED]> wrote: > > Hi, > > On Nov 28, 2007 4:20 PM, Marcus <[EMAIL PROTECTED]>; wrote: > > > > On Nov 28, 2007 4

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread Josh Canfield
You can grab a the actual HttpSession object and invalidate it. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.html#invalidate () Josh On Nov 28, 2007 2:45 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > I have a few pages that has some @Persist objects, I'd lik

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-28 Thread Howard Lewis Ship
The thing is, you can inject the Request object itself. The proxy encapsulates the service scope ... so any thread can invoke methods on the proxy, but will end up accessing the per-thread Request implementation. Actually, no different than injecting RequestGlobals, the proxy handles delegation t

RE: [T5] Cannot persist field exception

2007-11-28 Thread Jean-Philippe Steinmetz
No there's definitely a lot more to it. I was just cutting it down to the interesting parts that appeared to be the problem. In reality it looks more like: public class Create extends BasePage { @ApplicationState private User user; private boolean userExists;

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-28 Thread Andreas Andreou
Man, you must try and ask clear and accurate questions - with all those emails you keep sending you've managed to make everyone stop paying attention... So, for instance, in this email, you start with PropertySelection then move to Script then you mention TAPESTRY-1820 which describes a mix of the

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-28 Thread Jesse Kuhnert
You have your tableSize parameter setup as a String type and are giving it a default value with something like: Without anything else to go on tapestry will treat this as a literal String type - which if you read the javadocs for you will find that it is indeed static / immutable. Something lik

T5: The Mysteries of the ValidationTracker and the fields it decides to keep values for

2007-11-28 Thread Joel Wiegman
Hello all, The Tapestry 5 doc on Input Validation ( http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html ) states: "Likewise, the individual fields updated by the components should also be persistent." I'm not using the @Persist annotation on any fields (but let's get past t

Re: T5: The Mysteries of the ValidationTracker and the fields it decides to keep values for

2007-11-28 Thread Howard Lewis Ship
Please do (log a JIRA issue). On Nov 28, 2007 12:08 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > Hello all, > > The Tapestry 5 doc on Input Validation ( > http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html > ) states: > > "Likewise, the individual fields updated by the compo

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-28 Thread Ken in nashua
The questions is why does the code believe it has no bindings? I have thrown property bindings, page bindings and parameter bindings at this. Nothing sticks? _ You keep typing, we keep giving. Download Messenger and join the i’m Init

Re: T5: CRUD basic practice?

2007-11-28 Thread Geoff Callender
Hi Angelo, A couple of comments below. Cheers, Geoff On 29/11/2007, at 1:48 AM, Angelo Chen wrote: - whenever there's an error, cat is being loaded twice, because onActivate() is called before and after onValidate(). yes, that will be loaded twice, but the second time is not being used, it's

Re: T5: Edit page best practice? Really struggling...

2007-11-28 Thread Geoff Callender
Hi Howard, Since one size does not fit all, I think we desperately need a guideline on how to deal with each situation. You know, a kind of "cookbook", with a decision tree or a table that maps requirements to standardised solutions. I am trying to put together just such a decision tree

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-28 Thread Ken in nashua
Jesse, I regard the repsonse. But I need to update the binding on subsequent. I cannot update a static binding. I specified a valif component property as such and @Persist("session") @InitialValue("literal:2") public abstract String getTableSize(); public abstract void setTableSize(S

Re: PropertySelection binding bug T-4.1.3 ?

2007-11-28 Thread Jesse Kuhnert
If you follow my advice from the last email your example will probably work. Try that first and then we'll see On Nov 28, 2007 5:46 PM, Ken in nashua <[EMAIL PROTECTED]> wrote: > > > Jesse, I regard the repsonse. But I need to update the binding on subsequent. > I cannot update a static bind

Re: T5: Edit page best practice? Really struggling...

2007-11-28 Thread Howard Lewis Ship
Geoff, I'm working as fast as I can ... I really need to get the Ajax stuff worked out. I suspect there's a mix of guidelines and some additional technology that will help. What's complicated is that you don't want to store state on the client because of ugly URLs and you don't want to store it

Re: Dynamic pages (or: arguments to pages) [T4]

2007-11-28 Thread Kaspar Fischer
Unfortunately, my solution does not really work yet. My page uses @InjectObject("infrastructure:request") public abstract WebRequest getRequest(); public void pageBeginRender(PageEvent event) { super.pageBeginRender(event); WebRequest request = getRequest(); id = request.get

Re: T5: Is Persist("conversation") planned? Please?

2007-11-28 Thread Thiago HP
On 11/28/07, Francois Armand <[EMAIL PROTECTED]> wrote: > > I completely agree with your remarks, and it's a kind of pity that T5 is > such in advance in so many areas, and in the same time have to deals by > hand with that. Let's not forget that Tapestry 5 is still alpha and there are other are

Re: T5: Edit page best practice? Really struggling...

2007-11-28 Thread Christian Edward Gruber
Webobjects had a nice little context variable which was built into the URL's and it would increment with every request within the session. You could tie "undo" or other functionality to it. It was fairly unobtrusive. The same mechanism could be used for conversation, though. Instead of

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread Angelo Chen
hi, this works, thanks. i use: global.getHTTPServletRequest().getSession().Invalidate(); I think T5 has a service of Session, how to obtain it? anujith amaratunga wrote: > > Hi, > > On Nov 28, 2007 4:20 PM, Marcus <[EMAIL PROTECTED]>; wrote: >> >> On Nov 28, 2007 4:15 PM, Angelo Chen <[EM

Re: [T5] CSV in Tapestry 5

2007-11-28 Thread Alejandro Tapia Lazcano
Works perfect! Thanks for the help! Francois Armand escribió: Alejandro Tapia Lazcano wrote: Hello! Hello, I have a grid made with tapestry5 and I need to pass this data to a CSV (comma separated values). After searching I found this component but for T4. http://www.tapestrycomponents.or

Re: T5: Grid's rowClass

2007-11-28 Thread Angelo Chen
Hi, In your tml you define a css class: .zebra { background-color: silver; } then in your page class, you put something like this: private int row = 0; public String getRowClass() { if (row % 2 != 0) { return ""; } els

Re: T5: Is Persist("conversation") planned? Please?

2007-11-28 Thread Kalle Korhonen
I completely agree with Geoff that a good-enough generic support for conversations could make developing web applications much easier and it's one of the remaining big issues that web frameworks typically don't offer a solution for out-of-the-box. Seam's got a solution that works well for typical e

Re: T5: Controlling the content type in a page render request

2007-11-28 Thread Lars Kühne
On Nov 28, 2007 7:46 PM, Josh Canfield wrote: > You can use: @Meta("tapestry.response-content-type=text/xml") on your page > class. Thanks, that seems to work for me. > Although XML is not fully supported by tapestry at the moment. You may run > into problems with invalid xml being generated if o

Re: T5: Controlling the content type in a page render request

2007-11-28 Thread Lars Kühne
On Nov 28, 2007 3:50 PM, Kristian Marinkovic wrote: > hi lars, > > return an instance of StreamResponse: > > StreamResponse onActivate(String context) { > return new StreamResponse() { > // implement interface > public String getContentType() { >

T5: radio button

2007-11-28 Thread Angelo Chen
Hi, How to use radio/radiogroup? I have following: option1 option2 my need is, I have a optn property that I like the radiogroup to set based on usr's clicking, any idea? Thanks, A.C. -- View this message in context: http://www.nabble.com/T5%

Re: T5: cleaning up persisted objects during user logout

2007-11-28 Thread Filip S. Adamsen
Inject o.a.t.services.Session. -Filip Angelo Chen skrev: hi, this works, thanks. i use: global.getHTTPServletRequest().getSession().Invalidate(); I think T5 has a service of Session, how to obtain it? anujith amaratunga wrote: Hi, On Nov 28, 2007 4:20 PM, Marcus <[EMAIL PROTECTED]>; wro

retrieve outer component reference from inner component

2007-11-28 Thread Henri Dupre
In my page I have a @Border component and inside a @ImageSubmit that should update (with ajax) a component outside @Border. I did some searches here, the only method that was suggested is to pass component references though parameters but this would be quite ugly because there is quite a bit of com

enctype="multipart/form-data" cause encoding problem in Chinese!

2007-11-28 Thread yuan gogo
Hi, folks. I'm a Chinese user and using tapestry 5.0.6 + jdk5 I found setting the form attribute enctype="multipart/form-data"(when upload a file) will cause text encoding problem in Chinese. Any Idea? TIA & best regards! gogo.yuan