Re: Objects session persistance and validation

2010-10-23 Thread Mark W. Shead
I don't think you want to use flash persistence for this. Try just using @Persist. It looks like you are creating a new user every time the page renders. Mark On Sat, Oct 23, 2010 at 3:08 PM, Jim O'Callaghan wrote: > I'm not sure if this is relevant to your current problem, but to tell > Tapest

Re: [Announce] Tapestry 5.2 Demo application

2010-10-21 Thread Mark W. Shead
I like the look of the application. I wonder if it would help with Tapestry branding to use the same template and style for 5.2.2 archetype theme instead of the Concrete theme that is currently being used. Mark - To unsubscribe,

Re: [T5.2] What security framework do you recommend ?

2010-10-18 Thread Mark W. Shead
I've been very pleased with tynamo's tapestry-security module (which uses Shiro). One nice benefit is that it provides components you can use in your tapestry templates to do stuf like: You have user1role Other reasons I like tapestry-security: - Good documentation and example

Update Zone Outside of AjaxFormLoop

2010-08-29 Thread Mark W. Shead
I have a situation similar to the phone book entry shown here: http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/AjaxFormLoop.html However, I need to be able to display a count of items in the AjaxFormLoop and have it update when items are added o

Re: add context to redirected page

2010-07-21 Thread Mark W. Shead
Can you put a public method on the page to set the node id and then do something like: red.setNodeId(node); On Wed, Jul 21, 2010 at 9:26 PM, Chuck Kring wrote: > I have a page that takes a nodeId as a parameter, then redirects into the > page to a different page depending upon the type of obj

Re: Session State Object Creating Itself

2009-09-16 Thread Mark W. Shead
Never mind. One onActivate was canceling out the other. I should probably stop coding and go to bed. :) Mark On Sep 16, 2009, at 10:25 PM, Mark W. Shead wrote: I have an abstract class that is extended by pages that require a login. This seems to work except for on the page where I

Session State Object Creating Itself

2009-09-16 Thread Mark W. Shead
I have an abstract class that is extended by pages that require a login. This seems to work except for on the page where I actually manage the users. It appears that the session state object is creating itself. There is a user session state object. If someone tries to go to an authentic

Re: Testify and Injecting Services from IOC Registry

2009-08-28 Thread Mark W. Shead
Paul, Hm it appears to give me a copy of the registry, but not the same instance that was used for testing the pages. For example, my tests open a file based database and use it for the web app. At the end of the test I want to close it. Using the code you sent, it appears that the oth

Re: Testify and Injecting Services from IOC Registry

2009-08-28 Thread Mark W. Shead
The code you sent does indeed appear to work. Thank you very much for your help. Mark - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: T5Eclipse patch

2009-08-28 Thread Mark W. Shead
Everything on that page seems to just link back to itself. There there information about the plugin somewhere else? Mark On Aug 28, 2009, at 4:32 AM, Juan Miguel Salamanca wrote: I think the project home is here: http://tapestry.formos.com/wiki/display/t5eclipse/Home

Re: Testify and Injecting Services from IOC Registry

2009-08-26 Thread Mark W. Shead
Paul, I am using the Selenium testing so I'm subclassing from AbstractIntegrationTestSuite in tapestry-test. Is there a way to get the IOC Registry from there? Mark On Aug 26, 2009, at 4:47 AM, Paul Field wrote: Hi Mark, If you are subclassing from one of the TapestryTest classes in T

Testify and Injecting Services from IOC Registry

2009-08-25 Thread Mark W. Shead
The Testify documentation seems to imply that if its jar is present on your class path, you can use @Inject within your tests just like you would in a page class and get services from your IOC registry. (http://tapestry.formos.com/nightly/tapestry-testify/#Inject_services_into_tests ). Howev

Switch AppModule to TestModule for testing

2009-08-24 Thread Mark W. Shead
I am doing testing using Selenium using classes that extend AbstractIntegrationTestSuite. When I bring up the testing environment I would like do different bindings in AppModule than when the app is normally running. I have created an alternative to AppModule called TestModule. Is there

Re: Does the onActivate method can't return a Page?

2008-12-26 Thread Mark W. Shead
I use this all the time and it works. For example: @InjectPage private Login loginPage; Object onActivate() { if(!userExists) { loginPage.setNext(this.getClass()); return loginPage;

Re: T5: Sharing Tapestry and Php apps

2008-12-01 Thread Mark W. Shead
You should be able to run Apache with PHP on port 80 and use the proxy module to map in the Tapestry application (running on another port). Something along the lines of: ProxyPass /myapp http://localhost:8081/myapp ProxyPassReverse /myapp http://localhost:8081/myapp This document wil

Re: Render Template as XML instead of HTML

2008-11-19 Thread Mark W. Shead
your document. It should only try to do that if the root tag is the tag. The discussion concerned how to override Tapestry to add the JS-related markup to a different tag. On Wed, Nov 19, 2008 at 8:37 AM, Mark W. Shead <[EMAIL PROTECTED]> wrote: The page that I want to render as XML doe

Re: Render Template as XML instead of HTML

2008-11-19 Thread Mark W. Shead
, Nov 18, 2008 at 2:40 PM, Mark W. Shead <[EMAIL PROTECTED]> wrote: I tried that as well and got: The root element of the rendered document was , not . A root element of is needed when linking JavaScript and stylesheet resources. I'm not trying to render any javascript or styleshe

Re: Render Template as XML instead of HTML

2008-11-18 Thread Mark W. Shead
ponents that need to render more than one "root" element. Try: - http://www.netledger.com/xml/dtd/ smb_4_11.dtd"> http://tapestry.apache.org/schema/ tapestry_5_0_0.xsd"> ...snip... On Tue, Nov 18, 2008 at 7:59 AM, Mark W. Shead <[EMAIL PROTECTED]> wrote

Render Template as XML instead of HTML

2008-11-18 Thread Mark W. Shead
I have a page that needs to render as xml. I see that there was a patch applied to do this, but I can't seem to bring in the tapestry name space in order to get loop components, etc. to work. Does anyone have an example showing how this should work? https://issues.apache.org/jira/browse/TAPESTRY

Re: onActivate

2008-05-10 Thread Mark W. Shead
Nicholas, Would you mind sharing code snippets of what you are doing? Mark On May 9, 2008, at 11:20 AM, nicholas Krul wrote: Thanks, works just fine... so now everything is bundled into a String[] anyway... - To unsubscr

Re: IDE Integration for Tap 5

2008-05-07 Thread Mark W. Shead
Component autocomplete in the .tml files. Visually linking Java code to .tml files would be nice (like the WebObject Builder use to do.) On May 7, 2008, at 4:46 PM, Sven Homburg wrote: what do you expect from such tool ?

Re: IDE Integration for Tap 5

2008-05-07 Thread Mark W. Shead
I saw that but it looks like it is just some screenshots. I can't find anything downloadable, so I'm assuming this isn't what others are using. Mark On May 7, 2008, at 3:37 PM, Sven Homburg wrote: i dont know who needs it, but have a look for that http://blogs.logical-software.com/roller

IDE Integration for Tap 5

2008-05-07 Thread Mark W. Shead
I am looking for IDE integration for Tapestry 5. I was getting ready to try out IDEA because it appears to be the only IDE with a plugin for Tapestry 5. However when I click on the link on the front page of the Tapestry site, it doesn't seem to take me to the TapIDEA plugin. Is anyone els

Re: Tapestry-Test and WYSIWYG

2008-03-21 Thread Mark W. Shead
I finally got this to work with TinyMCE. Here is what I did in case it is useful to someone else: The form has a field called answer that uses TinyMCE. selectFrame("//[EMAIL PROTECTED]"answer_ifr\"]"); type("//body", "this is my answer ");

Re: Tapestry-Test and WYSIWYG

2008-03-20 Thread Mark W. Shead
hu, Mar 20, 2008 at 2:10 PM, Mark W. Shead <[EMAIL PROTECTED]> wrote: The Tapestry testing capabilities are really great. I'm having good luck with everything except for dealing with WYSIWYG text areas. I can't seem to get Selenium to fill these in. I've tried both Tin

Tapestry-Test and WYSIWYG

2008-03-20 Thread Mark W. Shead
The Tapestry testing capabilities are really great. I'm having good luck with everything except for dealing with WYSIWYG text areas. I can't seem to get Selenium to fill these in. I've tried both TinyMCE and FCKeditor. Has anyone found a way to do this? Mark ---

Re: T5 ajax zones example

2008-03-11 Thread Mark W. Shead
On Mar 11, 2008, at 8:00 PM, Weisu wrote: Hi Ted, I had tried your example, but I can not make the form part to work, it only displays "Content before update". I am using T5.0.10. I am using 5.0.11, but I had to change: @OnEvent(component="theForm", value="success") to @OnEvent(comp

Re: T5: Examples for Cayenne integration?

2008-03-07 Thread Mark W. Shead
On Mar 7, 2008, at 6:11 AM, Angelo Chen wrote: I read the online doc of Tapestry5 and I found those documents are complete and informative, far better than most of open source projects, maybe what needed are some "getting started" ones or some "best practice" things for certain tasks. I

Re: Problem with Page pooling

2008-03-04 Thread Mark W. Shead
Yeeswar, The normal model I've seen for logon is something like this: //Once created, this is shared within the session on any page where it is declared. The name //of the variable doesn't matter. You can have one page where it is called user1 and another //where it is called user2. The c

Re: T5.0.10 / OC4J10.1.3+ without maven

2008-03-03 Thread Mark W. Shead
I would suggest that you start with something that is known to work instead of trying to build your own application. That way you could verify that it works with OC4J with something that is known to work. http://tapestry.apache.org/tapestry5/quickstart/ would be a good choice, but to make

Bean Edit Form Change from 5.0.10 to 5.0.11-SNAPSHOT

2008-03-03 Thread Mark W. Shead
I have a domain object that looks something like this: private int points; private int possiblePoints; float getScore() { return point/possiblePoints * 100; } [other getters and setters] In 5.0.10 the get score didn't show up in the BeanEditForm because it wasn't something that you

Re: IDE Support for Tapestry 5

2008-02-29 Thread Mark W. Shead
If you use Eclipse you should check out the html template functions. As a team you could define how you were going to use various components and then set them up so it autocompletes. Once you have one machine setup correctly, you can export it out to the other developers. I did this a fe

Re: t5 Inject service to HttpSessionListener

2008-02-28 Thread Mark W. Shead
On Feb 28, 2008, at 7:32 AM, anujith amaratunga wrote: Registry from the HttpSessionListener itself, so I can pull out my service. Is there a way to access the Registry from a non page, non service class? You can create a registry by doing something like: RegistryBuilder builder = new Regis

Re: [t5] pretty HTML output

2008-02-28 Thread Mark W. Shead
If you are running Jetty from mvn (mvn jetty:run) you can use this setting in your pom.xml to enable white spaces and enable stacktraces in the browser: org.mortbay.jetty maven-jetty-plugin

Re: Inject into Test Class

2008-02-27 Thread Mark W. Shead
On Feb 27, 2008, at 2:27 PM, Davor Hrg wrote: feel free to add a jira requesting addition of method getSerivice(Class) to page tester and describe your use case :) Thanks. I just wanted to make sure there wasn't an easy way to do it that I was overlooking. I took a look at JIRA and it seem

Re: Inject into Test Class

2008-02-27 Thread Mark W. Shead
On Feb 27, 2008, at 1:18 PM, Davor Hrg wrote: pass your module PageTester(String appPackage, String appName, String contextPath, Class... moduleClasses) create a test page and use @Inject inside it to access any service you wish... OR. example how to start ioc manualy is here: http://wiki

Re: Inject into Test Class

2008-02-27 Thread Mark W. Shead
On Feb 26, 2008, at 11:13 PM, Angelo Chen wrote: @Inject is only for pages and components. That makes sense. But I'm still looking for a way to get something from the ioc container into a test class. Any suggestions? Mark -

Inject into Test Class

2008-02-26 Thread Mark W. Shead
I have a test class using TestNG. I would like to get access to some of my services. For example, I have a datasource that I'd like to use to verify tests and I'd like to be able to use the logging service. I can't seem to find a way to inject services into the Test class. I have tried d

Re: PageTester Can't Find .class Files

2008-02-25 Thread Mark W. Shead
It turned out that changing: String appName = "MyApp"; to String appName = "App"; got rid of this error. I think that Tapestry is appending Module (so it becomes AppModule) to figure out what class to launch the ioc from. Since my application (created from the mvn quickstart) uses AppMo

Re: T5: PageTester and TextStreamResponse

2008-02-23 Thread Mark W. Shead
I'm not entirely sure. I haven't used TextStreamResponse before and I'm still having a lot of issues with PageTester and the way things are being injected. My guess is that PageTester can handle normal pages, but the TextStreamResponse will require a different type of mechanism behind the

Re: T5: PageTester and TextStreamResponse

2008-02-23 Thread Mark W. Shead
Obviously make sure the page comes up in your web browser correctly first. Then I'd try to test and make sure it is able to load the page correctly. Something like: String appPackage = "or.test.test.myapp"; String appName = "App";

Re: PageTester Can't Find .class Files

2008-02-19 Thread Mark W. Shead
ns or pointers in the right direction would be very appreciated. Mark On Feb 19, 2008, at 1:54 PM, Mark W. Shead wrote: I am trying to use the PageTester functionality as described in: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/unit-testing-pages.html My test looks

PageTester Can't Find .class Files

2008-02-19 Thread Mark W. Shead
I am trying to use the PageTester functionality as described in: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/unit-testing-pages.html My test looks like: @Test public void testFrontPage() { String appPackage = "net.mydomain.package";

T5: Best way to break for paragraphs

2008-02-04 Thread Mark W. Shead
I have a textarea field that users may enter multiple paragraphs. Paragraphs are separated by two carriage returns. Obviously when I show the contents in HTML the paragraphs don't show up. I'm sure can also do some type of regex to add at the end of each line and package it into my own

Maven Support

2008-01-31 Thread Mark W. Shead
http://tapestryjava.blogspot.com/2007/11/maven-wont-get-fooled-again.html After reading Howard's thoughts on using Maven for a large project, I'm concerned that Tapestry might drop Maven support entirely and I wanted to offer an end user perspective. As far as what is used to build T5 for

Re: Tapestry 5 book

2008-01-29 Thread Mark W. Shead
I will second this opinion. The book is great! I'm working through all the examples and it is by far the fastest way (I've found) to get up to speed on T5. Alexander did an excellent job of keeping things simple enough to work through, while hi-lighting the different ways of accomplishin

T5: Submit Event Handlers

2008-01-28 Thread Mark W. Shead
I am having problems getting an event handler to fire for a submit button. Here is the relevant part from the .tml t:id="submitButton"/> and here is the handler from the .java file: @OnEvent(component="submitButton") void onSubmitButton() { System.out.println("Submit

Honeycomb (Tapestry + Hivemind + Hibernate) Demo Video

2006-05-26 Thread Mark W. Shead
Honeycomb (http://honeycomb.javaforge.com) is a tool to quickly setup a new web application using Tapestry, Hivemind, and Hibernate. It works off the idea that you are better off starting with a simple runnable application and refactoring it to meet your needs. After playing around with it