RE: Very odd problem

2005-12-09 Thread Patrick Casey
The home page doesn't have the login logic on it, does it? Are you persisting something into the session on login that writes the value out? Likewise remember that the default value only gets set once, so if you change it, it doesn't change back every time the component go

Re: adding a custom Type converter

2005-12-09 Thread andyhot
>From Glen <[EMAIL PROTECTED]>: > > This worked wonderfully thanks... > > One curiousity... The "public static final char PREFIX = '*';" Does > this have to be globally unique among all the SqueezeAdaptor's? I am > assuming this must be unique to the squeeze adapter and that tapestry > will

Re: 4.0 Question ... Servlets and Cache

2005-12-09 Thread andyhot
You remember correctly :) But i think it was in one of the mailing lists. Someone had asked if in 4.0 the meta property that copies assets to a folder in the current context still works, and he got the response that you're describing. >From Patrick Casey <[EMAIL PROTECTED]>: > > >

Very odd problem

2005-12-09 Thread Drew McAuliffe
I have a very odd problem appearing on a production system that I was hoping someone might help me with, or at least give me ideas as to what might be going on. Here's the situation: for an application's home page, there is a component that shows a list of news items. The component spec looks like

4.0 Question ... Servlets and Cache

2005-12-09 Thread Patrick Casey
I seem to recall reading something about this in one of Howard's blog entries, but when I looked back I couldn't find anything so I thought I'd ask about it here. Lets say we have a component that serves up some static content (like, say 4 .gif files that go on button

Re: Components charset encoding

2005-12-09 Thread Marcin Mrówczyński
Hi there! I am not really sure if this solution will do, but try setting in web.xml: ... org.apache.tapestry.template-encoding UTF-8 ... Greets, Marcel. On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > My i18n components badly appears on my pages. The pages themse

RE: Wiring Hivemind to

2005-12-09 Thread Steve
Thanks John, I based my work on that article, the hibernate one and a few others around the place. While working through it and with my fledgling HiveMind knowledge I thought a 100% HiveMind solution might be the go, I just can't wire it up yet. I think something based on your idea is probably i

RE: Dynamic Select inside an @For

2005-12-09 Thread Frank Russo
> Because the For is operating inside a loop, it is not Actually, the For is not inside a loop. The dynamic multi-selects is inside the loop created by the For component. These map to an array of Role objects in my user object on the server. I'm starting to think the problem is not that the valu

Re: Dynamic Select inside an @For

2005-12-09 Thread Howard Lewis Ship
Because the For is operating inside a loop, it is not reaching its source on the refresh. Try setting the volatile parameter to true; this will more closely mimic a Foreach from Tapestry 3.0 and will likely fix your issue. On 12/9/05, Frank Russo <[EMAIL PROTECTED]> wrote: > I'm having a very big

Re: adding a custom Type converter

2005-12-09 Thread Glen
This worked wonderfully thanks... One curiousity... The "public static final char PREFIX = '*';" Does this have to be globally unique among all the SqueezeAdaptor's? I am assuming this must be unique to the squeeze adapter and that tapestry will use this to differentiate what adaptor created t

Dynamic Select inside an @For

2005-12-09 Thread Frank Russo
I'm having a very big problem. We're upgrading from T3 to T4. The functionality is assigning roles and subroles to a new user. In the html page, we had a @Foreach looping on the roles in the system. For each role, there is the following dropdown: Basically, what this does, for each ro

Re: FileUpload component: TAPESTRY-635

2005-12-09 Thread Jason Suplizio
Yes we did. The problem still persists. The listeners are not being called. On 12/8/05, Leonardo Quijano Vincenzi < [EMAIL PROTECTED]> wrote: > > Jason Suplizio wrote: > > Our experience with our Tapestry servlet-based webapp is that this > component > > is not working. Has this bug been fixed in

Please help: inline page links

2005-12-09 Thread Jason Suplizio
If anyone has a successful solution to get the inline anchor links working, I would really appreciate your assistance. I've tried everything I could think of and still have been unsuccessful. Joe's help got me moving in a good direction but I'm still uncertain as to what I should write in my new b

Re: Template parse error

2005-12-09 Thread amirsguard-tapestry
Yes, I am using the the html script tag and not using .script file. I have other scripts that are placed .script files, but since this was not generic I decided to put it directly in to the html file. I will move it to the .script file. Thanks for the reply! -Amir Geoff Longman <[EMAIL PR

Re: adding a custom Type converter

2005-12-09 Thread Paul Cantrell
I've done this, and it works quite well. You need to implement the interface org.apache.tapestry.util.io.SqueezeAdaptor, something like this: public class DomainObjectSqueezeAdaptor implements SqueezeAdaptor { public static final char PREFIX = '*'; private static final Pattern

adding a custom Type converter

2005-12-09 Thread Glen
I am converting a pre-existing webapp to use Tapestry 4.0. It uses hibernate for the business objects and long's for the uid's on those objects. I would like to use tapestry to coerce from the uid as a string into the actual business object Ultimately what I want to be able to do is to write a d

Re: Template parse error

2005-12-09 Thread Geoff Longman
I think Amir is adding an html tag to the template and not using a tapestry .script file. The template parser doesn't handle inline javascript very well and I don't think it ever will. The solution would be to create .script file and place it in the classpath (at least in Tap 3 it has to be in t

Re: Tapestry runs differently on one computer than another

2005-12-09 Thread Mark Borins
Patrick Casey adelphia.net> writes: > > > You don't have the cache disabled on the dev machine do you? If so > I'd definitely look into your page initialization logic. > > --- Pat > I have set the tapestry cache to be disabled on both the server and dev machine. By adding -Dorg.a

Re: Reject call of a page

2005-12-09 Thread Geoff Longman
The correct way to change the page is to throw the exception. cycle.activate() is wrong. Perhaps the docs need updating? The method used is to throw an exception as it is an "exceptional case' to interrupt the request cycle. Geoff On 12/9/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > >

RE: Tapestry + lucene + hibernate

2005-12-09 Thread Patrick Casey
I've never tried it with hivemind, but the usual approach is to implement hibernate's listener API and then create Lucene records in the OnPostInsert, OnPostUpdate, and OnPostDelete events. It really only amount to a hundred lines of code or so total. --- Pat > -Original Mess

RE: Reject call of a page

2005-12-09 Thread Patrick Casey
One word of advice about the PageValidate code. At least in 3.0.3, you couldn't actually veto the render in the validate routine (unless I was using it wrong). Instead you had to throw a redirectexception to abort the render and send the page elsewhere. If you just did a cycle.act

RE: Tapestry runs differently on one computer than another

2005-12-09 Thread Patrick Casey
You don't have the cache disabled on the dev machine do you? If so I'd definitely look into your page initialization logic. --- Pat > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Borins > Sent: Friday, December 09, 2005 7:50 AM > To: tapestr

Re: Reject call of a page

2005-12-09 Thread Richard Kirby
Hi Alex, You need to use the PageValidateListener interface, and implement the pageValidate method, which gets called before the page starts to render. By the time the page has started to render, it is too late to change the page. Richard. Alex wrote: Hi! How can I reject the call of

Re: Template parse error

2005-12-09 Thread Richard Kirby
Hi, The script file is an XML file. Therefore you need to escape any special XML characters (ie & and <) with their entities, or better still, mark the whole section as cdata. If you look carefully, you have a < in the middle of your javascript, which any XML parser will assume marks the star

Re: Javascript file handling in Tapestry 3.0.3

2005-12-09 Thread Ivano Pagano
I think you can handle this using the import feature in the .script tapestry file. This way you can point at the same .js file for preview and runtime. Leon Pu wrote: Hi all, could anybody give me a hint about the Javascript file handling in Tapestry? Thanks a lot. Best regards, Leon ---

Re: RadioGroup and Radio's

2005-12-09 Thread Geoff Longman
Tapestry 3 or 4? The location (template) of the submit component in the that invokes onDelete definitely matters in Tap 3 and may matter in T4. Ie. does the listener get invoked *before* the RadioGroup rewinds? Geoff On 12/8/05, gcormier <[EMAIL PROTECTED]> wrote: > I'm trying to have a page wit

Tapestry runs differently on one computer than another

2005-12-09 Thread Mark Borins
I have two computers. Lets call one the server and one the dev machine. I have a Tapestry application that runs in a JBoss 4.0.2 installation using the 3.0.3 version of the Tapestry JARs. The server and the dev machine use the JDK verison 1.4.2. The application starts by having the user login t

RE: Re: TableComponent and Friendly URLs

2005-12-09 Thread Earnshaw, Wayne
Thanks Kent, That's what I ended up figuring out, and it's also important to add this to web.xml if your tapestry servlet is mapped to *.html like ours... tapestry-servlet-name *.direct tapestry-servlet-name *.sdirect regards, wayne p.s. thanks for the great tu

returning XML Feed

2005-12-09 Thread Andre Austin
I am having trouble getting my Tap 4 app to return an RSS feed as a result of a request like http://test.com/rssFeed.xml. I have not had much success in creating my custom service engine. I am sure somebody already does this, any examples/code? FWIW: I can easily create and render the xml in a

Reject call of a page

2005-12-09 Thread Alex2222
Hi! How can I reject the call of a page? Just tried to implement the PageBeginRenderListener and executed event.getRequestCycle().activate("Login"); but the client although gets the requested page. Background: I want to write a application which requires log-in. Regards, Alex. ---

RE: WebLogic 8.1: Cannot change charset from 'UTF8' to 'UTF-8

2005-12-09 Thread crafty78
Is there any idea if this will be addressed, its a bit of a showstopper as i can't use tapestry on weblogic! m2f Sent from www.TapestryForums.com Read this topic online here: <> http://www.tapestryforums.com/viewtopic.php?p=11714#11714 --

Optimize google adds

2005-12-09 Thread Lennart Benoot
Hi all, I was trying to find a way to better tailor my google ads on the contents of my application. It is a tapestry application with login. Because all pages are dynamic and secured the google bots are unable to come in and index properly. I found tough that adding some relevant words to the

RE: Problems with contrib:Table ... help

2005-12-09 Thread craig
Hi I had the same problem. It was because i wasnt persisting the object list. So when it tried to retrieve the list to sort it was null. In my page I have... @Persist("session") public abstract Collection getItems(); Hope that helps Craig m2f Sent

Tapestry + lucene + hibernate

2005-12-09 Thread Raul Raja Martinez
I'm currently implementing lucene + hibernate search capabilities in my tapestry app and I was wondering what would be the best approach from hivemind/ hivemind_utilities way of doing this? Thanks. Raul. - To unsubscribe, e-

Re: Wiring Hivemind to

2005-12-09 Thread John Coleman
I found these notes http://wiki.apache.org/jakarta-tapestry/CayenneTapestrySqueezer, but seems not so helpful for your case. I have a different solution which may help you. What I did to use Cayenne in HiveMind is this: configure this listener in web.xml: org.objectstyle.cayenne.conf.WebApplicat

Re: Tapestry, swing, and ajax

2005-12-09 Thread adasal
But the issue of YAWF. If you have a problem, a budget and a team, there are so many ways in, so many levels from which you might start the journey. I think it is inevitable because we all have the down to the metal languages, or else we wouldn't be able to do anything, and building a framework, al

RE: Upload component problem

2005-12-09 Thread steths
Well the problem is that... 1. in an upload the contentType of the Request is set to 'multipart/form-data'; 2. when Sitemesh creates the Request for the Decorator to include in the Response, it sets the contentType of the Request to the same one of the original Request, so that Tapestry cannot h

Is it possible to persistent list after submit?

2005-12-09 Thread Vincent
Hi all, I use Foreach to display the content of the table. I met a problem after each submit the list will be lost , I don't know why this happenes even when in the properties I set persistent like the following Is it possible to persistent list after submit? regards, Vincent --