Re: Tapestry 4 CVS build problems

2005-06-16 Thread Chris Conrad
Commenting out those lines did fix one of the problems I was having. There was one other, however. On line 237 of org.apache.tapestry.junit.script.TestScript the string passed to execute() read "invalid-key-Set.script". I needed to change that to "invalid-key-set.script" and everything b

Integrate Acegi and Tapestry

2005-06-16 Thread sky yjck
hi,all I found something wrong when Integrate Tapestry and Acegi Security for Spring . Acegi uses Filter to deal things of security. After filters,Acegi may create a Session for store Authentication information. But after doFilter(),that's to say,after executes a tapestry's page,I found t

One Question about PopupLinkRenderer

2005-06-16 Thread Andy Chu
1. How to let the browser create only one Popup Window instance. For example , there are two links, LinkA and LinkB. If you click the LinkA, "Hello, World" will be displayed inside a Popup window. and If you then click the LinkB, "Hello, Tapestry" will be displayed in the SAME popup window. No o

How to reload a page without submit it ?

2005-06-16 Thread Andy Chu
I am now implementing a ClosePopup page to close the current popup window and reload its opener by the following the javascript statements: window.opener.location.reload(true); window.close(); Please consider this case: 1. A user submit something in the main page; 2. The user activates the popu

ComponentSpecificationResolver needs enhancement?

2005-06-16 Thread phillip rhodes
Short background: Using "DynamicBlock" component that will call the component spec resolver to get a component. If the component is in a library, the component spec cannot find it. I initially thought the problem was with this little component, but this component merely calls the component reso

Re: Nested component question

2005-06-16 Thread Vinicius Carvalho
update from the dumb front... Well The last one was my fault, sorry, I left a foreach loop test before the component was rendered. Anyway, why does it happens? After a foreach isn't the pointer returned to the first position of the list? I wonder... Ok, So I finally got What I want, almost to be h

Re: Nested component question

2005-06-16 Thread Vinicius Carvalho
update from the dumb front... Well The last one was my fault, sorry, I left a foreach loop test before the component was rendered. Anyway, why does it happens? After a foreach isn't the pointer returned to the first position of the list? I wonder... Ok, So I finally got What I want, almost to be h

Re: Nested component question

2005-06-16 Thread Vinicius Carvalho
Well folks I'm really having a hard time on this. Let me try to point the situation: On my visit class I store the user object as soon as the user logs in. The user object has a Set of groups, and those a Set of categories (lazy loaded from hibernate). What I'd like to do is dawn simple. Initiali

Re: tapestry and valid html

2005-06-16 Thread Kent Tong
Koen Segers scarlet.be> writes: > > Is it possible to tell tapestry to generate valid html? > > When I try to validate my webpage, I always get error messages in form > fields. > Stupid error messages like /> where the / isn't allowed... Are you sure about that? The validator is happy with

Re: Nested component question

2005-06-16 Thread Vinicius Carvalho
News... So I moved the default group to the visit object... now I have: public void pageBeginRender(PageEvent event) { Visit visit = (Visit)getVisit(); setCategories(getUserService().getCategories(visit.getDefaultGroup())); } What I get for doing thi

Re: Nested component question

2005-06-16 Thread Vinicius Carvalho
Just to add a little bit. My dilema is, if I implement: PageRenderListener and try to set the categories on the pageBeginRender method, well I can't access the group there, once the component wasnt completely rendered. :( I'm thinking in moving everthing to the visit class, which I was avoiding...

Re: Page caching

2005-06-16 Thread Norbert Sándor
Check out the - org.apache.tapestry.disable-caching - org.apache.tapestry.enable-reset-service configuration attributes at http://jakarta.apache.org/tapestry/current/UsersGuide/configuration.html. (They are available in Tapestry 3 as well.) Br, Norbi - Original Message - From: "Vini

Page caching

2005-06-16 Thread Vinicius Carvalho
Hello everyone. I know it's possible to disable page caching, so when I change an HTML or a page I don't need to re-start the application but how can I accomplish this? Regards Vinicius. - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: cancel form rewinding

2005-06-16 Thread Pablo Ruggia
It's a dangerous thing. Think this possibility: You have a form with name, surname and login. You fill name and surname. Then you click accept. Your validation says, "you have to fill login". In that moment, you have your page rewinded. All your properties have been updated, except login. You p

Re: AW: Hivemind-1.0/Tapestry-3.0.3 and log4J

2005-06-16 Thread Jan Vissers
Excellent Denis, this did it for me! Denis Golubev wrote: Can someone please give me some tips as to how to use my own log4j.properties file to perform logging. I can't seem to get this working, and I need it desperately. I placed log4j.properties in /WEB-INF/classes (and tried some other s

cancel form rewinding

2005-06-16 Thread amanivachagam
Hi, I would like to know how can I cancel rewind upon form submission? I have two submit buttons for edit and cancel operations. On click of "cancel" button , I would like to avoid form rewind and restore the changes back. Thanks, Arun ---

reading html from inside java class

2005-06-16 Thread ty renner
Hi, I am using tapestry ajax component xtile. this thread returns me results for a search without a page refresh. I am populating the result returned by xtile into a simple html listbox. now onsubmit of the page I want to read the selected items from this listbox inside the tapestry class. How can

problem with reading plain html in tapestry class

2005-06-16 Thread ty renner
Hi, I am using Tapestry with Ajax via the xtile component. Here the ajax thread returns me results for a search which I can show in the page using html, as xtile returns only . Name Go -- Select --

Re: how many people use the InspectorButton?

2005-06-16 Thread Howard Lewis Ship
I'm trying to find time to fix the IB, but I don't know if that will make it into beta-1. On 6/16/05, Warner Onstine <[EMAIL PROTECTED]> wrote: > I have a small section on the InspectorButton (for 4.0) in my new book > (it's about 2 1/2 pages) and I was curious to see if anyone actually > uses the

Re: How to use validation in components

2005-06-16 Thread Ron Piterman
Its open source - look at the code of ValidField, this should do... ציטוט Lukasz Kucharski: Hi. How to implement validation in a form component that implements IFormComponent so that it uses delegate and other validation objects from the page it is contained with. I have validation well imple

Re: How to use validation in components

2005-06-16 Thread Lukasz Kucharski
> > How to implement validation in a form component that implements > IFormComponent so that it uses delegate and other validation objects > from the page it is contained with. > > I have validation well implemented in one of the basePages of mine and > I would like to make new form component use

Re: Method in component class being called without manual invokation

2005-06-16 Thread Ron Piterman
call it from inside a listener method. then set the listener attribute of your submit button/link to call this listener method. ציטוט Muhariz Jabeer: hi guys, I have a custom component which iterates over a collection class to dynamically generate fields in a table using ListEditMap and ListEd

Re: Tapestry 4 CVS build problems

2005-06-16 Thread Howard Lewis Ship
It appears to be an issue related to line endings; if you are on Windows it works, on Unix it fails. Sorry. On 6/16/05, Mark Dillon <[EMAIL PROTECTED]> wrote: > I got around the build problems by editing > "framework/src/scripts/TestUpload.xml" and commenting out 3 blocks > that look like this: >

Re: Read data from a file

2005-06-16 Thread Ron Piterman
I would think it should be something like --- code private static FileData _myFileData; public FileData getFileData() { if (_myFileData == null) _myFileData = readFile(getRequestCycle()); return _myFileData; } private FileData readFileData(IRequestCycle cycle) { ServletContext sc = cycle

Re: Tapestry Development

2005-06-16 Thread Norbert Sándor
Check out the - org.apache.tapestry.disable-caching - org.apache.tapestry.enable-reset-service configuration attributes at http://jakarta.apache.org/tapestry/current/UsersGuide/configuration.html. (They are available in Tapestry 3 as well.) Br, Norbi - Original Message - From: "Rife

Re: Hivemind-1.0/Tapestry-3.0.3 and log4J

2005-06-16 Thread Jan Vissers
Nope, the only logging I'm getting is from the "hivemind.LoggingInterceptor" (don't think this is log4j though). Any other ideas? -J. Nick Stuart wrote: That should be all you have to do (place log4j.properties in the class folder). Is it displaying any kind of logging? You may want to set

Re: DynamicBlock limitation

2005-06-16 Thread Michael Henderson
Hi, If you are using the Tapestry Palette plugin for Eclipse (http://tapestrypalette.sf.net) you can access a jar containing a version of DynamicBlock which should work with components from other namespaces. In Eclipse use Window > Preferences > Tapestry Palette > Remote Libraries add the URL

Re: Catching Tapestry Exceptions?

2005-06-16 Thread Douglas Hubler
Olve Hansen intermedia.uib.no> writes: > I have made a class that rethrows exceptions on a list, so that I can > pass some exceptions on to some servlet filters. > > I overrode the activateErrorPage in BaseEngine: > protected void activateExceptionPage(IRequestCycle iRequestCycle, > Respo

Method in component class being called without manual invokation

2005-06-16 Thread Muhariz Jabeer
hi guys, I have a custom component which iterates over a collection class to dynamically generate fields in a table using ListEditMap and ListEdit. I have a method called "adMore" which is to be triggered by a click to a Submit button in the component. Its purpose is to post to the server, a r

Re: AW: Hivemind-1.0/Tapestry-3.0.3 and log4J

2005-06-16 Thread Denis Golubev
Can someone please give me some tips as to how to use my own log4j.properties file to perform logging. I can't seem to get this working, and I need it desperately. I placed log4j.properties in /WEB-INF/classes (and tried some other stuff) but that didn't work. Put also commons-logging.proper

Re: how many people use the InspectorButton?

2005-06-16 Thread John Hendrikx
Warner Onstine wrote: I have a small section on the InspectorButton (for 4.0) in my new book (it's about 2 1/2 pages) and I was curious to see if anyone actually uses the Inspector beyond the initial learning of how Tapestry works. Right now I'm considering axing the section. I've figured ou

RE: [Tapestry 4.0] ServiceEncoder Question

2005-06-16 Thread Hensley, Richard
Doh! URLEncoder.encode(value,enc) URLDecoder.decode(value, enc) -Original Message- From: Hensley, Richard [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 11:17 AM To: Tapestry users Subject: [Tapestry 4.0] ServiceEncoder Question I have a ServiceEncoder that encodes file name

Re: Tapestry Development

2005-06-16 Thread John Hendrikx
Rife, Brandon wrote: During development when I modify templates and classes and hot-deploy those files to my app server I find that I have to restart the app server anyway because of, I assume, Tapestry's caching. That's great behavior for a production environment but kind of a pain for develop

[Tapestry 4.0] ServiceEncoder Question

2005-06-16 Thread Hensley, Richard
I have a ServiceEncoder that encodes file names into a url. In one particular case, there is a pound sign in the file name. Pound sign is not being encoded in anyway, so the browser thinks it is an anchored link. This is my encoder method. /** * @see org.apache.tapestry.engine.ServiceEnc

Re: Tapestry 4 CVS build problems

2005-06-16 Thread Mark Dillon
I got around the build problems by editing "framework/src/scripts/TestUpload.xml" and commenting out 3 blocks that look like this: Contents match. If you're failing in the same place as I was, this should take care of it for you temporarily. HTH, Mark On 6/15/05, Chris Conrad <[EMAIL PRO

AW: Hivemind-1.0/Tapestry-3.0.3 and log4J

2005-06-16 Thread Saqib Rasul
So whats going on with you logging? Are you not getting any logging at all or are you getting everything? Is the log4j.jar in your classpath? Regards, Saqib SAGA D.C. GmbH Phone : +49 (0) 6731-9428-0 B

Re: DynamicBlock limitation

2005-06-16 Thread Hugo Palma
I came across the same problem so i changed the component implementation. Here's the changed component. Hope this helps. Cheers Hugo phillip rhodes wrote: I am using a cool little component someone wrote called DynamicBlock. Unfortunately, I just figured out that DynamicBlock appears to

Re: how many people use the InspectorButton?

2005-06-16 Thread Andreas Andreou
Now that you mention it, I have to say that, even though during development I always enable the Inspector, I find that i never actually use it. When my pages have errors, I just go back to the code and fix them (and anyway, the Inspector isn't available when on error - perhaps it should) And wh

Re: Tapestry Development

2005-06-16 Thread phillip rhodes
Check out this great article on why this is occurring. It has nothing to do with tapestry. http://www.patrickpeak.com/page/patrick/20050614#your_web_app_is_leaking --- "Rife, Brandon" <[EMAIL PROTECTED]> wrote: > Hi, > > During development when I modify templates and > classes and hot-deploy >

RE: Hivemind-1.0/Tapestry-3.0.3 and log4J

2005-06-16 Thread Hensley, Richard
Jan, The log4j page has some links about why Jakarta Commons-Logging is a problem for web containers when the logging tool of choice is Log4J. It also has some work arounds and an article. -Original Message- From: Jan Vissers [mailto:[EMAIL PROTECTED] Sent: Thursday, June 16, 2005 8:59

Tapestry Development

2005-06-16 Thread Rife, Brandon
Hi, During development when I modify templates and classes and hot-deploy those files to my app server I find that I have to restart the app server anyway because of, I assume, Tapestry's caching. That's great behavior for a production environment but kind of a pain for development. Is there a T

DynamicBlock limitation

2005-06-16 Thread phillip rhodes
I am using a cool little component someone wrote called DynamicBlock. Unfortunately, I just figured out that DynamicBlock appears to be limited to finding and rendering components within the same library that it is declared in. It subclasses the BaseComponent and uses the getComponents() meth

how many people use the InspectorButton?

2005-06-16 Thread Warner Onstine
I have a small section on the InspectorButton (for 4.0) in my new book (it's about 2 1/2 pages) and I was curious to see if anyone actually uses the Inspector beyond the initial learning of how Tapestry works. Right now I'm considering axing the section. -warner -

Re: Hivemind-1.0/Tapestry-3.0.3 and log4J

2005-06-16 Thread Nick Stuart
That should be all you have to do (place log4j.properties in the class folder). Is it displaying any kind of logging? You may want to set the org.apache class to at least INFO level as there is a lot of stuff spit out from that. -Nick On 6/16/05, Jan Vissers <[EMAIL PROTECTED]> wrote: > Hi, > >

Hivemind-1.0/Tapestry-3.0.3 and log4J

2005-06-16 Thread Jan Vissers
Hi, Can someone please give me some tips as to how to use my own log4j.properties file to perform logging. I can't seem to get this working, and I need it desperately. I placed log4j.properties in /WEB-INF/classes (and tried some other stuff) but that didn't work. Thx. -J. -- Cumquat Inform

Re: Programmatically adding a component to a page at runtim

2005-06-16 Thread Nick Stuart
Why not have your action views be pages (guessing they are components now), as they are the main content holders right? And then have the surrounding menu/tabs being components in a Border type element? I don't think you would really loose anything here, and you don't have to include everything on

RE: Programmatically adding a component to a page at runtim

2005-06-16 Thread OGurkan
It looks like Tapestry really doesn’t like not having components declared at deployment-time. So, we have had to declare all views in one template file and based on a whether a view has been selected that component skips its pageBeginRender method. Otherwise, all components go through a pageBeginRe

How to use validation in components

2005-06-16 Thread Lukasz Kucharski
Hi. How to implement validation in a form component that implements IFormComponent so that it uses delegate and other validation objects from the page it is contained with. I have validation well implemented in one of the basePages of mine and I would like to make new form component use it. Anybo

Date Input Component

2005-06-16 Thread Adam Greene
Good day Tapestry Fans!! I am looking for a validating date entry component of the type that has 3 boxes to enter month, day, year in. I think the dateSelector is great, but just doesn't fit the needs of the project I'm working on. So if any one has a component like that out there and are w

Re: [tap 4] Parameter inside render

2005-06-16 Thread Nick Stuart
Well I am trying to use the property. Here's the type of code I'm using: public abstract MyObject getMyObject(); public void pageBeginRender(PageEvent event){ if(getMyObject() == null){ addError("MyObject is null"); //ALWAYS goes here return; } } This works! The reason I'm

Re: Read data from a file

2005-06-16 Thread Joerg Bergner
Thank you for your reply! Could you give me an example? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Read data from a file

2005-06-16 Thread Ron Piterman
You should do it on one of the cycle methods, so you have access to the servelt, and use the servlet context api to access the file. ציטוט Joerg Bergner: Hello to everybody! Please don't laugh about my question. But I didn't find any answers to it. I want to read in data from a xml-file, whi

Read data from a file

2005-06-16 Thread Joerg Bergner
Hello to everybody! Please don't laugh about my question. But I didn't find any answers to it. I want to read in data from a xml-file, which is stored in 'webapps/myWebApp/ data' folder. I want to do that in the constructor of the java class of a page. Is that possible? If yes, how can I do that

Re: Catching Tapestry Exceptions?

2005-06-16 Thread Olve Hansen
tor, 16,.06.2005 kl. 09.48 +0100, skrev Daniel M Garland: > Hi all, > > I'm a beginner with the Tapestry framework, but I've read a lot of > tutorials and Mr. Lewis Ship's book. One thing that I didn't > read/understand much about was an effective way of dealing with Tapestry > exceptions. >

Capture Page state to create bookmarkable url.

2005-06-16 Thread Peter Veentjer - Anchor Men
Is there a simple way to make an external link to the complete state of a page? If I have a few tables and other components, is there a way to make an url of that page I can give to someone else (or bookmark it) so the page is restored? I know of the existance of the ExternalLink, but I don`t und

Re: Custom components/services, urls, and session ids

2005-06-16 Thread Olve Hansen
An update: I see now from the Tapestry source that the EngineServiceLink (made from constructLink in AbstractService) only encodes the url if the service calls constructLink with the stateful flag set. I misinterpreted this as the Service/Page being stateful, and that something would be put in th

Newbie External Page question

2005-06-16 Thread Tim Sawyer
Hi, I have a page that implements IExternalPage, and I'm passing a single parameter in through the activeExternalPage() method. This parameter is then decoded and used to set the value of 30-odd other attributes on the page. These attributes are then passed through to a component. This seems

Tapestry & WebSphere logging

2005-06-16 Thread Denis Golubev
Hello all! Could I separate Tapestry logging from WebSphere console logging without setting up classloading policy PARENT_LAST ? In case of PARENT_LAST i coudn't use WAS authentification mechanizms :( And default way (placing commons-logging.props in WEB-INF/classes) without PARENT_LAST doesn

Re: null litereral as parameter in DirectLink.

2005-06-16 Thread Mark Dillon
Do you want a null as one of the parameters in the parameter array? If so, you would want "parameters={null}". Cheers, Mark On 6/15/05, The Chris Method <[EMAIL PROTECTED]> wrote: > Why would you want to do that? > > "null" is valid ognl, though. That should work, I've done something like > tha

Re: Nested component question

2005-06-16 Thread Daniel M Garland
Ron, So if I have a method that retrieves the values for a page property, is it best to put this method in every get/set that requires the property to be set, or to have it placed just once in prepareForRender? Cheers Dan Ron Piterman wrote: You don't have to override renderPage for that. I

Catching Tapestry Exceptions?

2005-06-16 Thread Daniel M Garland
Hi all, I'm a beginner with the Tapestry framework, but I've read a lot of tutorials and Mr. Lewis Ship's book. One thing that I didn't read/understand much about was an effective way of dealing with Tapestry exceptions. For instance I am creating a Tapestry page that creates a property fro

Custom components/services, urls, and session ids

2005-06-16 Thread Olve Hansen
I am currently making a component for handling images streamed from a database using a custom service and a custom component. The version of Tapestry is 3.0.3 This component tries to make a context-asset from the link given from the service, but fails: ILink resourceLink = resourceService.getLi

Re: custom NumberValidator

2005-06-16 Thread Paul Ferraro
Look at org.apache.tapestry.form.translator.NumberTranslator in the 4.0 branch. It should be easy enough to adapt this to the 3.0 IValidator interface. Paul Eric Schneider wrote: Hi, Has anyone created a subclass of NumberValidator that includes a format attribute similar to the DateValida

Tapestry 4 CVS build problems

2005-06-16 Thread Chris Conrad
I wanted to try out the new annotations support in Tapestry 4 but could not get a cvs checkout from tonight to build because of JUnit test failures. Is cvs going to be in a buildable state soon? Or am I better off waiting until alpha-4 is released? --Chris -

RE: Tapestry/HiveMindFilter and hivemodule.xml

2005-06-16 Thread Schulte Marcus
> doesn't get picked up. It only works if I place the hivemodule.xml in > WEB-INF/classes/META-INF. Is this correct? > It should work with WEB-INF, but it's a 1.1 feature, I believe. So, if you're using 1.0, it won't work. - T

Re: Tapestry/HiveMindFilter and hivemodule.xml

2005-06-16 Thread Norbert Sándor
Or: a.. /WEB-INF/applicationId/hivemodule.xml a.. /WEB-INF/hivemodule.xml Check out http://jakarta.apache.org/tapestry/current/UsersGuide/hivemind.html Br, Norbi - Original Message - From: "Jan Vissers" <[EMAIL PROTECTED]> To: Sent: Thursday, June 16, 2005 7:41 AM Subject: Tapestr

Tapestry/HiveMindFilter and hivemodule.xml

2005-06-16 Thread Jan Vissers
Hi, Investigating how to use HiveMind combined with Tapestry, I came to the conclusion that my hivemodule.xml when placed in the WEB-INF directory doesn't get picked up. It only works if I place the hivemodule.xml in WEB-INF/classes/META-INF. Is this correct? Thx. -- Cumquat Information Tec