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

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 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

Question about validators

2006-12-11 Thread Andrea Chiumenti
Is there any reason, other then historical, why some validators are into org.apache.tapestry.validhttp://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/valid/package-frame.htmland others into

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 select jwcid=chapterChooser

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

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,

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

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: 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

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

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

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

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 span jwcid=@Shell stylesheet=ognl:assets.defaultStyle title=my big page ... on rendering the open title tag (title)

Re: Title Tag not closed...

2006-12-11 Thread andyhot
This shouldn't be happening... I can see a /title 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...

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

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 any

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 =

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

Re: Problem generating content based on a conditional statement!

2006-12-11 Thread Nick Westgate
Hey, You're confused because this component: 255component id=pendingSiteContactId type=Hidden 256binding name=value value=businessCardListEntry.pendingSiteContactDTO.siteContact.siteContactId / 257/component is being rendered when it can't possibly be, right? So

[announce] BeanForm 0.7

2006-12-11 Thread DJ 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,

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

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

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