Request parameters

2005-08-15 Thread lars . borup
Hi, I was wondering if it is somehow possible to add request parameters to a PageLink? I've written a PopupLinkRenderer to be used with a PageLink but since the PageLink component cannot take any parameters (unlike DirectLink), I've had to programmatically add some request parameters to the genera

Showing a field's error messages: any new improved way in Tap 4?

2005-08-15 Thread Paul Cantrell
I'm trying to figure out how to show the text of a validation error immediately next to (sometimes before, sometimes after) the field it refers to. It looks like, in Tapestry 3, I would write a custom subclass of ValidationDelegate to do this, and override the methods that render the pref

Re: Parameterized Link Submit Component???

2005-08-15 Thread Glen Stampoultzis
Mark Stang wrote: Hi, I have been using links (DirectLink) for to "execute" some action. Typically, I use it for deletes and edits. I can specify which item to delete or edit via a parameter. I started using trying to use them for navigational purposes, only to realize that they don't "subm

Re: Confused about asset prefix

2005-08-15 Thread Vjeran Marcinko
- Original Message - From: "Vjeran Marcinko" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Tuesday, August 16, 2005 6:39 AM Subject: Re: Confused about asset prefix > NOW, please don't tell me that I have to explicitly configure Tapestry with some global path setting JUST for this th

Re: ANN: e-book for Tapestry 4 available

2005-08-15 Thread 邓君涛
But ,doesn't this book incluse the jsr168 section?It's a good book,but I'am working on portal development.,I need the description about that. 2005/8/14, Kent Tong <[EMAIL PROTECTED]>: > > Hi, > > I've updated my e-book for Tapestry 4. It's available at > http://www.agileskills2.org/EWDT > >

Re: Confused about asset prefix

2005-08-15 Thread Vjeran Marcinko
- Original Message - From: "Alan Chandler" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 16, 2005 12:47 AM Subject: Re: Confused about asset prefix All paths are relative to the context path I have a library specification at WEB-INF/classes/uk/org/chandlerfamily/tapestry/components/

Re: ANN: e-book for Tapestry 4 available

2005-08-15 Thread Kent Tong
Mark Stang pingidentity.com> writes: > Does it still cover 3.0 or is it now only 4.0? This edition (second edition) is for 4.0 only. For 3.0, please get the first edition. -- Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT) ---

Re: WebResponse cannot set HTTP header (inside custom IEngineService)?

2005-08-15 Thread Kent Tong
Vjeran Marcinko email.t-com.hr> writes: > But, does it mean that it is only usable for servlet, and not for portlet > Tapestry ? AFAIK, WebResponse is supose to be wrapper that should make this > distinction irrelevant ... Right. AFAIK a portlet is not supposed to stream a file to the browser.

ForEach inside ListEdit - can these components communicate?

2005-08-15 Thread Joseph Polanik
I've inherited some modules of an order processing application and would like to know how to proceed. I have a page where users can select parts and add them to their order. Each time a selection is made the page recycles and lists all items in the order as well as information about the part (

problem with Spindle 3.2.0

2005-08-15 Thread David . Sanford
Hi, I just added a new Tapestry page to my project (in Eclipse 3.1). The page consists of an HTML file, a PAGE file, and a JAVA file. After adding the page and modifying some of the contents in all 3 files, I noticed a red X from Spindle on the web.xml file. The Eclipse "Problems" panel show

RE: value bining for "Foreach" component

2005-08-15 Thread Mark Stang
I don't know if you can use a map . How would the second text field "know" where to put the value? HTH, Mark -Original Message- From: haipeng du [mailto:[EMAIL PROTECTED] Sent: Mon 8/15/2005 5:08 PM To: tapestry-user@jakarta.apache.org Subject: value bining for "Foreach" component I

value bining for "Foreach" component

2005-08-15 Thread haipeng du
I have the following html configuration:

Re: Confused about asset prefix

2005-08-15 Thread Alan Chandler
On Monday 15 Aug 2005 21:37, Vjeran Marcinko wrote: > - Original Message - > From: "Kent Tong" <[EMAIL PROTECTED]> > To: > Sent: Monday, August 15, 2005 7:05 PM > Subject: Re: Confused about asset prefix > > > class MyComponent { > > @Asset("classpath:images/001.gif") > > public abstract

Re: Confused about asset prefix

2005-08-15 Thread Alan Chandler
On Monday 15 Aug 2005 22:16, Adam Greene wrote: > No, both org.apache.tapestry.asset.dir and org.apache.tapestry.asset.URL > are still used, as of Beta 3 anyways. Well my beta 4 version of the User Guide in the "Configuring Tapestry" section where it lists the configuration parameters has a littl

Re: Confused about asset prefix

2005-08-15 Thread Adam Greene
No, both org.apache.tapestry.asset.dir and org.apache.tapestry.asset.URL are still used, as of Beta 3 anyways. - Original Message - From: "Alan Chandler" <[EMAIL PROTECTED]> To: Sent: Monday, August 15, 2005 3:54 PM Subject: Re: Confused about asset prefix On Monday 15 Aug 2005 18:

Re: Is injection overkill for pages/components?

2005-08-15 Thread Adam Greene
As to messages, if you are using the messages as parameters, just use the message: prefix. - Original Message - From: "Kent Tong" <[EMAIL PROTECTED]> To: Sent: Monday, August 15, 2005 1:57 PM Subject: Re: Is injection overkill for pages/components? Vjeran Marcinko email.t-com.hr>

Re: More Partial Form Stuff

2005-08-15 Thread Adam Greene
Any time you change the number of components in the form without rerendering the page, you will invalidate the form. There is a field within the page that stores the number of components that will need to be changed (and as of Tapestry 4.0, I think that field may now be DataSqueezed, someone el

RE: Choosing components at runtime

2005-08-15 Thread Mark Stang
Hi, It is possible to "resolve" components at runtime. Which means that you don't have to specify them in "Block" or "If" statments. public ComponentViewer extends AbstractComponent { protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { String pageForCompo

RE: [BUG] Tapestry 4.0 works only with /app URL mapping??!!

2005-08-15 Thread Hensley, Richard
It might be this entry from in the .application file Tapestry can no longer detect the correct servlet path in all cases, so you have to set it. Richard -Original Message- From: Vjeran Marcinko [mailto:[EMAIL PROTECTED] Sent: Monday, August 15, 2005 1:46 PM To: Tapestry users Sub

[BUG] Tapestry 4.0 works only with /app URL mapping??!!

2005-08-15 Thread Vjeran Marcinko
Hi. This is mighty strange ...Normally, I can pick whatever mapping I want for any servlet specified in web.xml, and Tapestry servlet is typicaly mapped under /app : tapestryservlet /app For some reason, I wanted it to be under /web, so I just changed app->web tapestryservlet

Re: Choosing Tapestry

2005-08-15 Thread Ryan Wynn
> But how well does it work with Facelets? The tool integration is all > about the JSP view. Use a non-JSP view and most of the utility of the > tools dissappears. You're right I was only referring to JSF support in jsps. Also, the plugin for JSF in WSAD does something that is often counter-pr

Re: Confused about asset prefix

2005-08-15 Thread Vjeran Marcinko
- Original Message - From: "Kent Tong" <[EMAIL PROTECTED]> To: Sent: Monday, August 15, 2005 7:05 PM Subject: Re: Confused about asset prefix class MyComponent { @Asset("classpath:images/001.gif") public abstract IAsset getMyAsset(); } There is such an example in chapter 6 of my bo

RE: ANN: e-book for Tapestry 4 available

2005-08-15 Thread Mark Stang
Does it still cover 3.0 or is it now only 4.0? -Original Message- From: news on behalf of Kent Tong Sent: Sun 8/14/2005 4:59 AM To: tapestry-user@jakarta.apache.org Subject: ANN: e-book for Tapestry 4 available Hi, I've updated my e-book for Tapestry 4. It's available at http://www.ag

Parameterized Link Submit Component???

2005-08-15 Thread Mark Stang
Hi, I have been using links (DirectLink) for to "execute" some action. Typically, I use it for deletes and edits. I can specify which item to delete or edit via a parameter. I started using trying to use them for navigational purposes, only to realize that they don't "submit" the form. There

Re: WebResponse cannot set HTTP header (inside custom IEngineService)?

2005-08-15 Thread Vjeran Marcinko
- Original Message - From: "Kent Tong" <[EMAIL PROTECTED]> To: Sent: Monday, August 15, 2005 7:13 PM Subject: Re: WebResponse cannot set HTTP header (inside custom IEngineService)? Vjeran Marcinko email.t-com.hr> writes: I'm developing PDF generator engine service, and looking at

RE: Validating a DatePicker

2005-08-15 Thread Patrick Casey
Do you know if this is different from the one on Tassel? I can't find a licensing statement on this one, but I'd hate to drop some GPL'd code in by mistake. -- Pat > -Original Message- > From: Pablo Ruggia [mailto:[EMAIL PROTECTED] > Sent: Monday, August 15, 2005 1:13 PM

RE: Validating a DatePicker

2005-08-15 Thread Patrick Casey
I'd love to use it, but the ValidDatePicker on tassel appears to be GPL'd, not LGPL'd so I can't use the thing unfortunately (some degree of source confidentiality is part and parcel for what I do). LGPL I'm peachy with, but I can't expose the whole app's source. Thanks anyway,

Re: Validating a DatePicker

2005-08-15 Thread Pablo Ruggia
I've found it: http://www.clever.co.nz/resources.html On 8/15/05, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > > There is already one ValidDatePicker (don't remember where). It's already > a mix between validfield and datepicker. But it's behaviour is the same, if > user enters a bad formatted d

Re: Validating a DatePicker

2005-08-15 Thread Pablo Ruggia
There is already one ValidDatePicker (don't remember where). It's already a mix between validfield and datepicker. But it's behaviour is the same, if user enters a bad formatted date, it will transform it to null. I think you can download ValidDatePicker and then edit this to generate a validat

Re: Control over exception handling

2005-08-15 Thread Paul Cantrell
Thanks, Howard, this is what I was looking for! Is this a reasonable place to do rollback on error? Is there a single hook I can add to catch *any* error (e.g. "on any type of failure do X, then continue rendering the normal error page")? Or do I have a add a contribution for each of those d

Validating a DatePicker

2005-08-15 Thread Patrick Casey
When the datepicker widget draws, you get an edit box, and a button to click that pops up a calendar widget. You can either set the date via the widget, or you can just write in any old date you want to via the text box. The question becomes though, what happens if the user types in

Re: OT: JIRA funny display

2005-08-15 Thread Howard Lewis Ship
I don't think so; its just that the text in that one issue had "words" of thousands of characters, due to some serialized-to-mime objects. On 8/15/05, Hensley, Richard <[EMAIL PROTECTED]> wrote: > Yep, that's the one I'm talking about. Do we care? > > -Original Message- > From: Howard Lew

Re: Choosing Tapestry

2005-08-15 Thread Norbert Sándor
This is a clever argument : Let's say everything you say might happen does come about. Well, then your Tapestry skills will translate directly into JSF/Facelet skills, and porting your application will be easy. Alternately, getting people with JSF/Facelet skills will be easy, and they'll qui

RE: Choosing Tapestry

2005-08-15 Thread Patrick Casey
> (2) Is it something you actually *want* to do? UIs gets designed > *very* differently for web vs. mobile vs. rich client GUI. The > layout, workflow, and behavior that makes sense for a web app won't > necessarily work nicely on a cell phone -- and a JSF app designed for > the web and rendered a

Re: Confused about asset prefix

2005-08-15 Thread Alan Chandler
On Monday 15 Aug 2005 18:05, Kent Tong wrote: l... > Try: > > class MyComponent { > @Asset("classpath:images/001.gif") > public abstract IAsset getMyAsset(); Thanks, I usderstand the syntax now - although it appears (from what is currently happening in my test app) that classpath is the defa

RE: OT: JIRA funny display

2005-08-15 Thread Hensley, Richard
Yep, that's the one I'm talking about. Do we care? -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 7:03 AM To: Tapestry users Subject: Re: OT: JIRA funny display Works fine for me ... except for that one issue with the really, really

Re: Control over exception handling

2005-08-15 Thread Howard Lewis Ship
In Tapestry 4.0 theres a service you can override that controls exception reporting. http://jakarta.apache.org/tapestry/tapestry/hivedocs/service/tapestry.error.ExceptionPresenter.html You can see how this is integrated into the rest of the framework: http://jakarta.apache.org/tapestry/tapestry/

Re: Choosing Tapestry

2005-08-15 Thread Howard Lewis Ship
On 8/15/05, Ryan Wynn <[EMAIL PROTECTED]> wrote: > I have been using Tapestry 4.0 for 2 weeks now for portlet development and > I can say my experience has been very positive. I have found that my > tapestry portlets have come out much much cleaner than their JSF > counterparts. Thanks! And tha

Re: Choosing Tapestry

2005-08-15 Thread Paul Cantrell
I have found that my tapestry portlets have come out much much cleaner than their JSF counterparts. That has been exactly my experience as well, after a similar (if rather casual) comparison. JSF is promising, though. From what I have read about Facelets I can leverage JSF outside of a w

Re: More Partial Form Stuff

2005-08-15 Thread Norbert Sándor
I've been playing with this quite much because one of my applications has similar requirements (very big and complex form but parts of the form should be partially refreshable). It is more complex than I thought: the biggest problem is what Viktor wrote, hidden fields generated by the components

Control over exception handling

2005-08-15 Thread Paul Cantrell
I'd like to place a hook in Tapestry to know when a request fails, so that I can: (1) roll back my transaction, (2) send an email to the administrator, and (3) show a user-friendly error page. I'd normally do this through my web.xml (servlet filter + error page descriptor), but T

Re: WebResponse cannot set HTTP header (inside custom IEngineService)?

2005-08-15 Thread Kent Tong
Vjeran Marcinko email.t-com.hr> writes: > I'm developing PDF generator engine service, and looking at Workbench > example, I can see that is uses injected WebResponse instance, but > unfortunately it doesn't have setHeader(...) method as HttpServletResponse > has... > And I need that obviousl

Re: Beta-4 NullPointerException

2005-08-15 Thread Kent Tong
seloha . hotmail.com> writes: > > I have a List which is displayed using jwcid=" For" I am using > volatile="true". > > I also have the List 'displayed' as a jwcid=" Hidden". > > When the form is submitted I reset the list to null. This causes the > jwcid=" Hidden" to throw a NullPointerE

Re: Confused about asset prefix

2005-08-15 Thread Kent Tong
Alan Chandler chandlerfamily.org.uk> writes: > Essentially what I am trying to do is build a component, which has image and > style sheet assets embedded within it (in subdirectores styles and images > relative to the component java class file). I am seeing how far I can get > without a compo

Re: More Partial Form Stuff

2005-08-15 Thread Viktor Szathmary
hello, On 8/15/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > I have two forms, one big one, one little one. > I use the small partial form to update a div within the big form. > I then (later) submit the big form. > I get a stale link because the big form has a

Re: Is injection overkill for pages/components?

2005-08-15 Thread Kent Tong
Vjeran Marcinko email.t-com.hr> writes: > I started experimentally porting my small Tapestry3.0 apps to 4.0), and > cannot get away from feel that dependency injection is a bit overkill for > web pages/components. (BTW, boot time in 4.0 is much, much larger. I assume > it is due to HiveMind by

RE: More Partial Form Stuff

2005-08-15 Thread Patrick Casey
Thanks Viktor, that helped reduce the amount of rendering I'm doing. Unfortunately, I ran into a different problem that I'm not sure is solvable. I have two forms, one big one, one little one. I use the small partial form to update a div within the big form. I then

Re: Choosing components at runtime

2005-08-15 Thread Fernando Padilla
This sounds like an if statement. The issue with tapestry is not the act of choosing what component to render, that's pretty easy, but it's the defining/constructing/initializing/binding part. I don't know how to do all of that at runtime, and you probably shouldn't because of page construc

Re: set http headers (cache-control, etc) in tapestry

2005-08-15 Thread Kevin Menard
On Aug 15, 2005, at 11:12 AM, Patrick Casey wrote: So it sure looks like it's working unless my limited html skills have escaped me and your browser ignores the second set of meta tags? On FireFox (1.0.6), it's definitely parsing the NO-CACHE meta tags because they show up in the pagein

Choosing Tapestry

2005-08-15 Thread Ryan Wynn
I have been using Tapestry 4.0 for 2 weeks now for portlet development and I can say my experience has been very positive. I have found that my tapestry portlets have come out much much cleaner than their JSF counterparts. I think the ability to inject pages and hivemend services really makes

Re: More Partial Form Stuff

2005-08-15 Thread Adam Greene
Basically, your theory stands. I'm not sure about step 4. But you save on the fact that the code plucking occurs on the server side, it simply sends back an XML document that contains elements with the same names as the replaced DIVs, not the entire page. - Original Message - From:

Re: More Partial Form Stuff

2005-08-15 Thread Viktor Szathmary
hello, On 8/15/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > mistaken (which wouldn't be the first time), this particular AJAX > implementation isn't going to save me anything on page render time because > even if I'm only updating a small div in the middle of the form, Tapestry > still has

WebResponse cannot set HTTP header (inside custom IEngineService)?

2005-08-15 Thread Vjeran Marcinko
Hi. I'm developing PDF generator engine service, and looking at Workbench example, I can see that is uses injected WebResponse instance, but unfortunately it doesn't have setHeader(...) method as HttpServletResponse has... :-( And I need that obviously. -Vjeran

More Partial Form Stuff

2005-08-15 Thread Patrick Casey
Is anyone here pretty familiar with the way the Tacos library implemented Partial Forms? If so, could you reality check me on how I *think* the implementation was managed? I've done a fair amount of AJAX stuff, but that was all with my own servlets and my own javascript, so I'm famil

RE: set http headers (cache-control, etc) in tapestry

2005-08-15 Thread Patrick Casey
Well, the code snippet I linked to below is from my actual border component, and here's what the output looks like: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";> Demo Application So it sur

Re: set http headers (cache-control, etc) in tapestry

2005-08-15 Thread Chris Chiappone
You could also create a delegate that implements IRender. Then create the followin method: public void render(IMarkupWriter writer, IRequestCycle cycle){ List attList = new ArrayList(); Attribute att = new Attribute("http-equiv", "Pragma"); attList.add(att); att = new Attribute("Conten

Re: set http headers (cache-control, etc) in tapestry

2005-08-15 Thread Kevin Menard
Hi Patrick, On Aug 15, 2005, at 10:54 AM, Patrick Casey wrote: I think you can just put them in your .html files and/or your border component (if you have one, can't you) e.g. You mentioned this once before, but I'm pretty sure this is going to render invalid

RE: set http headers (cache-control, etc) in tapestry

2005-08-15 Thread Patrick Casey
I think you can just put them in your .html files and/or your border component (if you have one, can't you) e.g. > -Original Message- > From: Jacob von Eyben [mailto:[EMAIL PROTECTED] > Sent: Monday, August 15, 2005 7:46 AM > To: tapestry-user@jakarta.apach

set http headers (cache-control, etc) in tapestry

2005-08-15 Thread Jacob von Eyben
Hi, I can not find the answer through google, but I hope you can help me. Is it possible to set http headers like: pragma: no-cache cache-control: no-cach through some tapestry configuration? If not, I will map a HttpFilter on .../app that will do the work for me, but of course it is possible in

Re: Potential Bug in Tapestry 3? - OGNL static field expressions sporadically returning null

2005-08-15 Thread Howard Lewis Ship
Looks pretty well researched. I hate to pass the buck, but this looks like it falls into OGNL's space. Back in Tapestry 1 days, there were similar problems (about not finding accessor methods for properties) that were caused by multi-threaded access to OGNL and, within OGNL, to java.beans.Introsp

Beta-4 NullPointerException

2005-08-15 Thread seloha .
I have a List which is displayed using jwcid="@For" I am using volatile="true". I also have the List 'displayed' as a jwcid="@Hidden". When the form is submitted I reset the list to null. This causes the jwcid="@Hidden" to throw a NullPointerException. This did not happen with Tapestry 4.0 be

Re: Choosing components at runtime

2005-08-15 Thread Norbert Sándor
I don't know about such dynamically rendered component in Tapestry. (I don't say it is not possible: I'm almost sure that it can be done by clever usage of classloaders.) Although this feature is requested already several times on the list I think there is always a workaround :) Maybe you should

Re: Some more T4 questions/problems

2005-08-15 Thread Howard Lewis Ship
And thats one of many valid arguments for why a framework that requires you to extend a base class is flawed. Anyone got a time machine? On 8/15/05, Onno Scheffers <[EMAIL PROTECTED]> wrote: > Howard Lewis Ship wrote: > > >This is the essense of backwards compatibility. > > > > > Thanks for the

Page Recorder TreeState Tacos tree component

2005-08-15 Thread Ido-Eduard de Baat
Hello list, Being pretty new to Tapestry, I ran into a problem using the Tacos tree component. Undoubtedly the solution is very simple, but I just can't figure it out. The exception I get is: org.apache.tapestry.BindingException: Unable to update expression 'treeState' for [EMAIL PROTECTED] t

Re: Choosing components at runtime

2005-08-15 Thread lars . borup
Hi But what if we wanted to resolve the component at runtime without having to specify each component in a Block statement? I was thinking about using e.g. an Any component alike component. Which was able to delegate to a wrapped component or such. Is this doable or has anybody ever done somethin

RE: File.getName returns filename with question marks

2005-08-15 Thread John.Prince
Hi, Looks like an encoding problem. What language os are you on? Best wishes John -Original Message- From: Adam Henderson Azudio [mailto:[EMAIL PROTECTED] Sent: Monday, August 15, 2005 11:12 AM To: Tapestry users Subject: OT: File.getName returns filename with question marks Hi, sorr

OT: File.getName returns filename with question marks

2005-08-15 Thread Adam Henderson Azudio
Hi, sorry to post this here but for some weird reason I'm getting question marks appearing in the string returned from file.getName() eg: File f = new File("/Users/me/desktop/cars.jpg"); System.out.println("Filename: " + f.getName()); // Returns something like "???cars.jpg" Goolge drew a

Re: Choosing components at runtime

2005-08-15 Thread Norbert Sándor
Check out Block and RenderBlock. You can choose at runtime which Block you would like to render. BR, Norbi - Original Message - From: "Kim Thrysøe" <[EMAIL PROTECTED]> To: Sent: Monday, August 15, 2005 10:26 AM Subject: Choosing components at runtime Hi all, Is it possible, _at ru

Choosing components at runtime

2005-08-15 Thread Kim Thrysøe
Hi all, Is it possible, _at runtime_, to choose which component to use? Example: A request parameter contains a users choice of renderer which, along with the users role (taken from a user object on pagevisit), is used to determine which component to include: Request parameter: renderer=verbose

More Partial Form Questions

2005-08-15 Thread Patrick Casey
Just when I thought I had this stuff figured out, I ran into a problem where I seem to be missing a javascript file of some sort. I'm getting "Error PartPost is not defined" in my javascript console. I have a form defined thus:

Why does @PageLink cause session not to be created?

2005-08-15 Thread Øyvind Harboe
I'm getting "Stale Session error" if I add a @PageLink to the top of the page. The problem appears to be that @PageLink stops a session from being created when a session does not exist. If a session already exists when I activate the page, @PageLink is rendered correctly with a jsession in t