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
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,
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
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
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
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
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
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
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
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
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
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
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
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;
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
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
, 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
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
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
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
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 ?
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
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
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 ");
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
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
---
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
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";
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
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";
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
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
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
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 (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
48 matches
Mail list logo