Re: How to search maillist archives?

2005-08-23 Thread Vjeran Marcinko
http://www.mail-archive.com/index.php?hunt=tapestry - Original Message - From: "Jun Tsai" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, August 24, 2005 9:00 AM Subject: How to search maillist archives? I want to search tapestry mailist archives. How to do ? thanks. Jun T

How to search maillist archives?

2005-08-23 Thread Jun Tsai
I want to search tapestry mailist archives. How to do ? thanks. Jun Tsai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to inject spring beans into classes

2005-08-23 Thread Adam Czysciak
Derek Brown wrote: I would now like to be able to inject a spring bean to any class and access it by an abstract accessor or something similar. How do I do this? use jdk 5 annotations: @InjectObject("spring:quizFacade") public abstract QuizFacade getQuizFacade(); -- Greets! Adam Czysciak

Deprecated warnings when 1.5 compiled?!

2005-08-23 Thread Vjeran Marcinko
Hi. Just trying Tapestry 4 with JDK1.5 thesedays, and I get strange deprecation warnings when compiling my application. It reports that getVisit(), getGlobal() and some other methods are deprecated. I know that! That's why I don't use them in my code anymore, but it still gives me such warning

Re: Ajax autocomplete

2005-08-23 Thread zhang George
Didier,can your autocomplete Ajax components use with other charset?can you tell me where can download,or send me a copy,i wish to try it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

How to locate a file in a self-defined service ?

2005-08-23 Thread Andy Chu
Dear All, In my self-defined service, an IEngineSerivce, I need to access files under ${CONTEXT}/myfiles. Would you please tell me how to access them with a FileInputStream ? Thank you very much. Best regard, Andy -- 我是天空裡的一片雲 偶爾投影在妳的波心 偶然.徐志摩

Re: Tap 4.0 Tables

2005-08-23 Thread Scott F. Walter
seloha . wrote: I am using the new contrib:Table since I believe contrib:FormTable is to de deprecated. I think I have a very stupid mistake somewhere. I am trying to update some fields, when I get the list of table data objects they still have the old information prior to submission. If I p

Re: Eclipse BIRT Project

2005-08-23 Thread Konstantin Ignatyev
Do not know about BIRT, but I was able to integrate JasperReport into Tapestry application very easy, and iReport report designer works fine IMO http://kgionline.com/presentations/ireport/ireportDemo.jsp --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > I thought it was awesome, don't know how y

Re: Eclipse BIRT Project

2005-08-23 Thread Jesse Kuhnert
I thought it was awesome, don't know how you'd integrate it into tapestry. It's in jsp so if you felt compelled to do it it probably wouldn't be hard (in the technical sense), but the report runner that it comes with is so nice I'd probably just pop open another window for running reports. On 8/23/

Re: Validatable fields: should bound property be updated if in error?

2005-08-23 Thread Paul Ferraro
I see your point. I'm entering a jira issue for this now and will check in the appropriate changes sometime tonight. Paul Howard Lewis Ship wrote: Wow! Didn't realize this big change. I think updates should not happen unless validations pass. You run the risk of triggering unwanted validat

Re: Validatable fields: should bound property be updated if in error?

2005-08-23 Thread Howard Lewis Ship
Wow! Didn't realize this big change. I think updates should not happen unless validations pass. You run the risk of triggering unwanted validation exceptions *inside* your domain objects that will prevent normal form processing from operating. On 8/23/05, Paul Ferraro <[EMAIL PROTECTED]> wrote:

How to inject spring beans into classes

2005-08-23 Thread Derek Brown
Hello, I have been using my spring beans injected in to pages and components by using . I would now like to be able to inject a spring bean to any class and access it by an abstract accessor or something similar. How do I do this? Thanks ___

Eclipse BIRT Project

2005-08-23 Thread Patrick Casey
http://eclipse.org/birt/ Has anyone worked with this library before? Equally importantly, have you tried hooking it into a tapestry app? From what little I've seen so far it looks like a very hot reporting package (the wysywig editor looks a lot like crystal, which is still my mental model f

Re: Howto set a dynamically generated file as an asset?

2005-08-23 Thread Tomáš Drenčák
Try IRequestCycle.getAbsoluteURL("/") 2005/8/23, Dan <[EMAIL PROTECTED]>: > Thanks for the reply Adam. > > I am generating PDFs and Excel files from the page. (The page calls the > class that generates the file in different formats) > Currently just to test the file generations i am storing these

Re: Tacos character encoding problem

2005-08-23 Thread Tomáš Drenčák
Thanks a lot, I've tried it in Opera and it works perfectly. 2005/8/23, Jesse Kuhnert <[EMAIL PROTECTED]>: > This question would probably be best answered over in the tacos-devel > mailing list. > > This may be a known bug with IE and tacos4-alpha-1. I added an > hourglass cursor on partial ref

Re: Validatable fields: should bound property be updated if in error?

2005-08-23 Thread Paul Ferraro
Ben is right. Currently, values are bound only if translation succeeds (this is essential), but before validation happens. This was done purposefully to support "Save" style logic, since validation errors can optionally be ignored in the triggered form listener by ignoring the value of IValidat

Re: Tacos character encoding problem

2005-08-23 Thread Jesse Kuhnert
This question would probably be best answered over in the tacos-devel mailing list. This may be a known bug with IE and tacos4-alpha-1. I added an hourglass cursor on partial refreshes, which is somewhat broken in ieyou can manually edit the javascript to not do that and re-build the jar from

Re: Validatable fields: should bound property be updated if in error?

2005-08-23 Thread Howard Lewis Ship
Validation does not work that way, not to my knowledge. Even with the new validation, the translator and validators all have veto power, by throwing ValidationException, before an update occurs to the bound property. TAPESTRY-369 was a suggestion that was since judged invalid. It is not how Tapes

Re: Injecting a state object into another service?

2005-08-23 Thread Howard Lewis Ship
The injection Tapsestry performs on components is based on bytecode; what's actually injected is the ApplicationStateManager service, and Java code is created to access the state object on demand. HiveMind and Spring don't, to my knowledge, have a comparable idea. The best you could do would be to

Tacos character encoding problem

2005-08-23 Thread Tomáš Drenčák
Hello, I'm using tacos Part and PartialLink component and think it's great. But I have problem when special characters like ý, á, č or ť appears within of Part component. When refreshing Part through PartialLink javascript error appears - Object required. I have tried it without this characters wi

RE: Help beginner with db results to table

2005-08-23 Thread Frank
Hi Dan, I cannot find the example, where should I look? Thanks Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Help beginner with db results to table

2005-08-23 Thread Dan �
Look at the example for contrib:table (tap 3). Get ur resultset into a Collection and pass this as a source to the table. The contrib:table is a nice component to display ur data. cheers! From: Frank <[EMAIL PROTECTED]> Reply-To: "Tapestry users" To: "Tapestry users" Subject: Help beginner

Help beginner with db results to table

2005-08-23 Thread Frank
Hello, I am currently learning Tapestry and have created a Home.java that queries a database. Example: ResultSet rs = stmt.executeQuery(SQL); 1. How do I return the rs results to my html page? 2. What do I code in my html page to show the rows? Can you show me a short example? I am learnin

Re: Howto set a dynamically generated file as an asset?

2005-08-23 Thread Dan �
Thanks for the reply Adam. I am generating PDFs and Excel files from the page. (The page calls the class that generates the file in different formats) Currently just to test the file generations i am storing these in the user.home property. (/home/user ). I think your 1st soln is much easier to

Injecting a state object into another service?

2005-08-23 Thread Cherry Development
I'm having trouble figuring out how to get hivemind to jump through the hoops that I need for this: I have a service object that I'm creating in Spring, that I need to inject with a hivemind state object before returning it to tapestry. So, here are the parts that I can get to work: 1) I can

Re: Howto set a dynamically generated file as an asset?

2005-08-23 Thread Adam Greene
Questions: 1. What are you generating? JPGs, PDFs, CSS, etc. 1. How do you generate the files, via a Tapestry service? or internal to a page? 2. Once the files are generated, where do they end up? In the web context, WEB-INF, class path, etc. Possible Solutions: 1. If it lands in the c

Re: Initialization when called from PageService?

2005-08-23 Thread Paul Cantrell
Thanks for the suggestion, Adam. Yes, I have looked into this, and it often helps -- but really what I'm trying to do is avoid all the lazy initialization trickery of "has this field been initialized yet?" That sort of thing gets messy, and in my experience doesn't even always work right if

Howto set a dynamically generated file as an asset?

2005-08-23 Thread Dan �
Hello all, In my app, I generate some files on the fly. How do I set them as assets, like when they are created? thank you _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.

Re: creating a link around a part of a sentance

2005-08-23 Thread Ron Piterman
solution: resource format : Have you forgotten your [EMAIL PROTECTED]:passwordForgotten}password{/@} or your [EMAIL PROTECTED]:nickForgotten}nick{/@}? === package net.tutim.tapestry.components.nestedlink; import org.apache.tap

Validatable fields: should bound property be updated if in error?

2005-08-23 Thread Ben Pryor
Hi, I'm upgrading a large Tapestry 3 application to Tapestry 4. One unexpected behavior is that the new validation system appears to always update a form component's bound property before doing validation and recording any errors. There is a JIRA issue from July that mentions this behavior (http

Tap 4.0 Tables

2005-08-23 Thread seloha .
I am using the new contrib:Table since I believe contrib:FormTable is to de deprecated. I think I have a very stupid mistake somewhere. I am trying to update some fields, when I get the list of table data objects they still have the old information prior to submission. If I put an invalid entr

Re: creating a link around a part of a sentance

2005-08-23 Thread Ron Piterman
I am already there. It will look like: "I have read the [EMAIL PROTECTED]:conditions} conditions {/@} and the [EMAIL PROTECTED]:privacy} privacy statement {/@} and agree with it." and generate page links on the right places... ציטוט Adam Greene: The only other solution I can think of is to in

Are Hivemind services autowired into components?

2005-08-23 Thread Ron Piterman
Hi, I Just took a look at the Link Components in Tapestry and could not really determine where they get the Rednerer from - is it autowired from hivemind? Does this mean that I don't have to inject services to my pages/components which hivemind autowires? Cheers, Ron ---

Re: Problem with Tapestry Form in portlet

2005-08-23 Thread Howard Lewis Ship
I believe you have cut-n-pasted the friendly URL configuration into your hivemodule.xml. Friendly URLs don't make sense in the portlet world (portlet URLs are always very ugly) and the friendly URL logic relies on the Servlet API. Remove that from your hivemodule.xml and you should be good. On 8

Re: creating a link around a part of a sentance

2005-08-23 Thread Adam Greene
The only other solution I can think of is to indicate that a certain character marks the beginning and end of the part to be wrapped with a link. example: Click *Here* Then write a component that takes three parameters, the first being the message, the second being the page to go to, and the

Problem with Tapestry Form in portlet

2005-08-23 Thread Andriy
Hi! I'm developing portlet application with T4. There is a strange exception when I'm trying to add Form element on html template: "Parameter servletPath must not be null." I'm using uPortal as a portlet container. Mayby there are special components for portlets? View.java --

Re: Javascript confirm alert.

2005-08-23 Thread Filip S. Adamsen
Well, the Tapestry way is to keep it simple. : ) Ted Steen wrote: Hi, I'm converting a medium "toy" project to tapestry mostly for learning. I tend to do as much the "tapestry way" so that I know how to do it. smime.p7s Description: S/MIME Cryptographic Signature

Re: creating a link around a part of a sentance

2005-08-23 Thread Ron Piterman
Yes, thats a possibility, but I find splitting the resource not so nice: in some languages this will need 3 resources. Translation is also not straight forward then. I guess I will need to hack something.. :( ציטוט Geoff Longman: If you're willing to give up the and split the resource entry

Re: Page activation in AbstractService problem

2005-08-23 Thread Oleksandr Yuzikov
Thank you Adam a lot. Works great. Adam Greene wrote: Ok, then the missing line of code is: engine.renderResponse(cycle, output); this is what actually renders the response and usually is the last line in your service. - Original Message - From: "Oleksandr Yuzikov" <[EMAIL

NPE reported when there is a hivemodule parse error instead of th e real exception

2005-08-23 Thread OGurkan
FYI, Whenever there is a hivemodule (hivemodule.xml being loaded for a jar file) parsing error, the tapestry servlet engine blows up with a NullPointerException. I discovered this problem after putting a breakpoint in the "monitor.serviceException(ex);" (line 264 in beta-3) of AbstractEngine class

Re: creating a link around a part of a sentance

2005-08-23 Thread Geoff Longman
If you're willing to give up the and split the resource entry you could do this. Where DID_YOU_FORGET=Did you {0}? FORGET_PASSWORD=forget your password NestedMessage would be a custom component that renders it's body into newly created (and not nested I think) writer, then it calls forma

Re: Javascript confirm alert.

2005-08-23 Thread Ted Steen
Hi, I'm converting a medium "toy" project to tapestry mostly for learning. I tend to do as much the "tapestry way" so that I know how to do it. On 8/23/05, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hello, > > I find it even simpler to just include the "onclick" attribute as an > informal par

Re: Initialization when called from PageService?

2005-08-23 Thread Adam Greene
Have you thought implementing PageRenderListener (PageBegnRenderListener in tapestry 4.0) in your class? That way you can do the initialization just before the page renders (which it will only do after the listener has been called and done it's thing, so you can check to see if variables have

Re: Javascript confirm alert.

2005-08-23 Thread Filip S. Adamsen
Hello, I find it even simpler to just include the "onclick" attribute as an informal parameter. Is anything obstructing you from taking this approach? -Filip [EMAIL PROTECTED] wrote: Hi, I tend to write a Renderer to do so.. All it needs to do is to add a "onclick" attribute like onclick="r

Re: Page activation in AbstractService problem

2005-08-23 Thread Adam Greene
Ok, then the missing line of code is: engine.renderResponse(cycle, output); this is what actually renders the response and usually is the last line in your service. - Original Message - From: "Oleksandr Yuzikov" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Tuesday, August

Re: Basic Page Question for T4

2005-08-23 Thread Howard Lewis Ship
This is a known bug, fixed in beta-4 I believe. On 8/22/05, cracru <[EMAIL PROTECTED]> wrote: > If a build a page that only has properties defined as abstract > accessors and mutators, will T4 take care of cleaning up the page > before returning it to the pool? > > Cuz I aint seeing this behavior

Re: Javascript confirm alert.

2005-08-23 Thread lars . borup
Hi, I tend to write a Renderer to do so.. All it needs to do is to add a "onclick" attribute like onclick="return confirm('Really?')" If false is returned the href is not executes (followed) Darn simple! :-) regards, Lars Borup Jensen On Tue, 23 Aug 2005 11:27:24 +0200, Ted Steen wrote > Hi

Javascript confirm alert.

2005-08-23 Thread Ted Steen
Hi! I want to make the user confirm that he/she really wants to go on with some action. So if a @DirectLink is pressed I want a javascript confirm box to popup. How is this done in the "tapestry way"? Do I have to make my own IScript etc. or is it already done? -- /ted --

creating a link around a part of a sentance

2005-08-23 Thread Ron Piterman
Hi, Maybe someone has a cool component or a solution to the following problem: Say there is a resource: "Did you forget your password?" And I wish to add a link only on the words "forgot your password" Or: "I read and agree with the *Conditions*" , where "conditions" is a link. Doing this on si

Re: Ajax autocomplete

2005-08-23 Thread Didier LAFFORGUE
I developped the liveTextField component you found in Tassel. Recently, another guy (Julien Ruaux) did a complete refactoring of the javascript part and add feature, so now the component is really nice and works perfectly (I have not find a bug yet :-)). We plan to integrate it in the Tacos CVS