another annotation for you to consider....

2006-12-11 Thread Patrick Moore
Hi there - playing around with the AnnotationWorker stuff... So I came up with @InjectParameterFlag. This injects whether or not a parameter bound into a component's property. Considering that isParameterBound(String) is called by a number of tapestry components other people might find this usefu

Re: InjectPageLink and InjectExternalLink

2006-12-11 Thread andyhot
Looks interesting. Please add a JIRA and attach the files there. jimlaren wrote: > As a return type of listener method,ILink can be used to perform a > redirect-after-post.So it will be a great convenience to inject ILink > using annotations. > @InjectPageLink("Home") > public abstract ILink getHo

InjectPageLink and InjectExternalLink

2006-12-11 Thread jimlaren
As a return type of listener method,ILink can be used to perform a redirect-after-post.So it will be a great convenience to inject ILink using annotations. @InjectPageLink("Home") public abstract ILink getHomeLink(); @InjectExternalLink("ShowCategory") public abstract ILink getCategoryLink(Long

[announce] BeanForm 0.7

2006-12-11 Thread D&J Gredler
Hi all, The latest release of BeanForm, the single-line POJO editor component, is now available for download. Below is a list of changes since the last version. Special thanks to Remo von Ballmoos, Marco von Ballmoos and Barry Books for translations, bug fixes and suggestions. Take care, Daniel

Re: Problem generating content based on a conditional statement!

2006-12-11 Thread Nick Westgate
Hey, You're confused because this component: > 255 > 256 value="businessCardListEntry.pendingSiteContactDTO.siteContact.siteContactId" > /> > 257 is being rendered when it "can't possibly be", right? So back up and re-evaluate your assumptions. It can't possibly be rend

Re: Re: Html Email Messages

2006-12-11 Thread Sam Gendler
I just stuck a page referencing the methods in your emails and others on the wiki here: http://wiki.apache.org/tapestry/SendingHtmlEmailWithTap Thanks. --sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Html Email Messages

2006-12-11 Thread Dave Kallstrom
So I'll answer my own question in case anyone else is trying to render html emal with Tap 4.1 The underlying problem was not swapping out the DefaultResponseBuilder from RequestGlobals and also having to implement ResponseBuilder. Here is a snippet of code. ResponseBuilder defaultBuilder = getR

Re: Question about validators

2006-12-11 Thread Andrea Chiumenti
Thank you! On 12/11/06, Sam Gendler <[EMAIL PROTECTED]> wrote: form.valid are the new validators that you want to use. The others are from the now deprecated api that was in use in version prior to tap 4, I believe. --sam On 12/11/06, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: > Is there a

Problem generating content based on a conditional statement!

2006-12-11 Thread jake123
Hi, I have a problem in one of my pages where I want to loop over a List of CompApprovalSiteContactDTO object that contains two private members (currentSiteContactDTO and pendingSiteContactDTO). In this class I also have two extra boolean methods that returns true or false if I have the current or

Re: Title Tag not closed...

2006-12-11 Thread andyhot
This shouldn't be happening... I can see a in all of my tap4.0.2 pages... Here's the source http://svn.apache.org/viewvc/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/html/Shell.java?view=log Skorpien126 wrote: > Hmm not really a problem but maybe a mini bug... i´m usin

Title Tag not closed...

2006-12-11 Thread Skorpien126
Hmm not really a problem but maybe a mini bug... i´m using tapestry 4.0.2 .. and i make use of the Border-Component . In the Border Component I include this code snippet ... on rendering the open title tag () is rendered.. I get this.. http://www.w3.org/1999/xhtml"; xml:lang="en">

RE: Tapestry 4.1.1 dojo issue

2006-12-11 Thread Ben Dotte
Thanks Jesse! A coworker pulled down the new snapshot and palette is working properly again. I'll take a look at AjaxShellDelegate and see if we can get that path at the top fixed. -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 3:25 PM To:

Re: RE: IBasicTableModel - calling getRowCount() before getCurrentPageRows()

2006-12-11 Thread Sam Gendler
There are lots of ways to solve the problem via caching of results (either entire entities, ids, proxy objects that allow you to load by id, etc), depending upon your tolerance for potential inaccuracy in the page count. The reality for most tables, where the query isn't that complex, is that iss

RE: IBasicTableModel - calling getRowCount() before getCurrentPageRows()

2006-12-11 Thread Carlos.Fernandez
I am not sure if this is considered kosher . . . The ITablePagingState and ITableSortingState will be up to date prior to rendering - they encapsulate all of the data passed into the getCurrentPageRows() method. I could provide these object directly to my custom IBasicTableModel - it will invoke

Re: getting .page and .html from a database

2006-12-11 Thread Steve Shucker
There's some info about that at http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html. It's a config property called org.apache.tapestry.enable-reset-service. It'll enable a special URL to flush your cache. However, it only flushes the whole thing at once, so it's not somethin

IBasicTableModel - calling getRowCount() before getCurrentPageRows()

2006-12-11 Thread Carlos.Fernandez
I am using a variant of the contrib:table (it has pagination links above and below the table) to render DB search results. The search service is a proxy to a remote web service and uses Hibernate to prepare, execute and process the SQL query. In its current form the service supports pagination

Re: EventListener in combination with Dialog component

2006-12-11 Thread Jesse Kuhnert
If you have FireBug installed you might try either upgrading to the latest version or disabling it to see if the problem persists. p.s. Please direct emails like this to the list only please. I'm making it a point to completely ignore all emails sent to me directly unless I have engaged or know w

Re: Unable to find an example of implementation of ITemplateSourceDelegate interface

2006-12-11 Thread Tapestry User List
Here the correct code: public class TemplateSourceDelegate implements ITemplateSourceDelegate { /** * Method called by Tapestry when it is unable to find the template of a component or a page */ public ComponentTemplate findTemplate(IRequestCycle cycle, IComponent component, Local

Re: Re: getting .page and .html from a database

2006-12-11 Thread Benjamin S
I love you Steve. This is a much more solid approach to what I have been doing (templates stored in a filesystem, then the path saved in the db, didn't know you could get a hivemind resource from a string.) Sorry, I am about to thread jack this, but how do you handle page cache clearing? Is th

Re: Question about validators

2006-12-11 Thread Sam Gendler
form.valid are the new validators that you want to use. The others are from the now deprecated api that was in use in version prior to tap 4, I believe. --sam On 12/11/06, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: Is there any reason, other then historical, why some validators are into org.

Re: Node not found... any1 :( ? helpp

2006-12-11 Thread kit
help ? kit wrote: > > FATAL exception raised: createWidget() Node not found with specified id of > 'dob'. > > I encounter this problem when I try to use a selectionproperty with > Eventlistener annotation to populate the 2nd propertyselection > > > >

Question about validators

2006-12-11 Thread Andrea Chiumenti
Is there any reason, other then historical, why some validators are into org.apache.tapestry.validand others into org.apache.tapestry.valid

RE: Getting rid of .getVisit()

2006-12-11 Thread Greg.L.Cormier
Nice, I will give this a shot! Thanks, Greg -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Dennis Sinelnikov Sent: Friday, December 08, 2006 9:45 PM To: users@tapestry.apache.org Subject: Re: Getting rid of .getVisit() [EMAIL PROTECTED] wrote: > Unfortunately I'm stuc

Unable to find an example of implementation of ITemplateSourceDelegate interface

2006-12-11 Thread Tapestry User List
Hello, It seems nobody has ever been able to implement the ITemplateSourceDelegate interface. Does it mean that it is simply not possible ? I tried to implement this interface but as others people, I got a NullPointerException in the method TemplateParser.addTextToken(). Here my code: public

Re: getting .page and .html from a database

2006-12-11 Thread Tapestry User List
Thank you Steve. That is exactly what I were looking for. D. 2006/12/2, Steve Shucker <[EMAIL PROTECTED]>: I've got this working for pages and components, but it's probably a bit different than what you want. I have a template table in my database and I'm looking up content by a numeric PK ra

Re: EventListener in combination with Dialog component

2006-12-11 Thread Tine
Hello Jessek, I've tried to implement a simple example where I can demonstrate my problem: test.html: Hello, I'm a dialog! test.page: component id="selectionOne" type="PropertySelection"> There i