");
}
@After
public void after() {
if (tester != null) {
tester.shutdown();
}
tester = null;
}
protected int getSmtpPort() {
return smtpPort;
}
}
Is there a better way to do this if I want to upgrade to Tapestry Spring
5.
ringObjectProvider ... but
> that will itself require injection that falls into the
> MasterObjectProvider. Either instantiate SOP yourself, or use the
> proxy() method, which builds a proxy that can defer instantiation of
> SOP until it is actually needed.
>
>
> On Tue, Nov 10, 2009 at 1:
Hello all,
I'm in the process of writing tests for AppFuse's Tapestry 5 integration and
I've run into an interesting issue. When I use Hibernate or JPA as backends,
my tests pass just fine. However, when I use iBATIS, they take forever and I
get an OOM error and the following shows up in my logs:
I'd like to know how to do this too. Basically, I'm looking to invoke a page
and pass it a request parameter. Is this possible?
Thanks,
Matt
Mats Henricson-2 wrote:
>
> Hi!
>
> Since Testify isn't working for me, I thought I'd look at
> this page:
>
> http://tapestry.apache.org/tapestry5.1/
hould be updated to the new
> way. For example you don't use ComponentResources anymore to create
> pagelinks, but PageRenderLinkSource . Otherwise the transition is very
> smooth and the additional features in Tapestry 5.1 are well worth the
> small
> effort.
>
>
to and it works.
>
> 2) Something in your setup, I suspect the aspectj compile stage,
> successfully defeats tapestry live class reloading via mvn compile. This
> is
> a nuisance you should look into when you got the time.
>
> Regards,
> Otho
>
>
>
>
>
>
> Cheers,
>
> Robert
>
> On May 4, 2009, at 5/410:26 AM , mraible wrote:
>
>>
>> Thanks for the pointer. I guess for something like AppFuse, using the
>> BeanEditForm (esp. with code generation) is probably not a good
>> idea. I'll
&g
sitories:
>central (http://repo1.maven.org/maven2),
>appfuse (http://oss.sonatype.org/content/groups/appfuse)
>
>
> Robert
>
> On May 2, 2009, at 5/211:25 PM , mraible wrote:
>
>>
>> I'm using Tapestry 5.0.14. You can download the project from
>&
> value. See
> http://tapestry.apache.org/tapestry5.1/guide/validation.html
>
> Uli
>
> mraible schrieb:
>> Is it possible to do validation declaratively, or rather - only at the
>> web
>> tier? AFAIK, I can only do validation with 1) annotations on the
Is it possible to do validation declaratively, or rather - only at the web
tier? AFAIK, I can only do validation with 1) annotations on the model
object or 2) manually with if (blank) logic in my Page.
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/Tapestry-5-Validation-t
}
Full source for Login.java is at:
http://source.appfuse.org/browse/appfuse/trunk/web/tapestry/src/main/java/org/appfuse/webapp/pages/Login.java?r=trunk
Matt
mraible wrote:
>
> Are there instructions for upgrading to 5.0.18. I tried and I see the
> following error when I try to run integra
ueImpl.java:72)
[INFO] [talledLocalContainer] at
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121)
[INFO] [talledLocalContainer] at
$PageRenderQueue_121073ab475.render($PageRenderQueue_121073ab475.java)
Matt
Thiago H. de Paula Figueiredo wrote:
>
> E
he environment. Since this
> presumably happens while rendering the bean editor, it's weird,
> because property edit context /should/ be available!
>
> The mailing list strips attachments; can you post the project elsewhere?
> Also, what version of t5?
>
> Robert
>
isRequired()) {
labelElement.raw(" *");
}*/
}
Is there a way to use similar logic and prevent the exception from
happening?
Thanks,
Matt
mraible wrote:
>
> I tried using your hint by changing my template to the following:
>
>heading=&qu
{
return personList;
}
}
I've attached my project which you should be able to run with "mvn jetty:run
-Ph2". To reproduce, go to http://localhost:8080/personform and login with
admin/admin.
Thanks,
Matt
Thiago H. de Paula Figueiredo wrote:
>
> Em Sat, 02 May 2009 15
I have the a Person.java object that I'm trying to use the BeanEditForm
component with. It has no Tapestry annotations in it. Is it possible to use
the BeanEditForm component with it? Here's the error I'm getting:
Render queue error in AfterRender[PersonForm:beaneditform.editor.loop]:
Failure rea
e let me know if you think these can be improved.
Thanks,
Matt
mraible wrote:
>
> Thanks, that works when I create a MockUserManagerImpl.
>
> import org.apache.tapestry5.ioc.ServiceBinder;
> import org.appfuse.service.UserManager;
>
> public class MockTestModule {
>
) {
> _pageTester = new
> PageTester(appPackage,appName,"src/main/webapp",TestHarnessModule.class);
> }
>
> works well for us. It does mean that we have created some 'dummy'
> classes w/ test data in them.
>
> Hope that helps.
>
> -Mark
>
&g
Thiago H. de Paula Figueiredo wrote:
>
> Em Wed, 17 Dec 2008 14:20:26 -0300, mraible
> escreveu:
>
>> Is the following still the best way to inject Spring beans into a page
>> when testing?
>>
>> http://wiki.apache.org/tapestry/Tapestry5SpringInteg
t) in a test
from the SpringObjectProvider?
Also, I'd be interested in seeing an example where EasyMock or jMock is used
to create the objects and set expectations.
Thanks,
Matt
Olle Hallin wrote:
>
> Is there a problem using tapestry-spring.jar?
>
> Olle
>
> 2008/12/
Is the following still the best way to inject Spring beans into a page when
testing?
http://wiki.apache.org/tapestry/Tapestry5SpringIntegrationAlternative1
With Tapestry 4, I could populate a Map with with the bean name and a real
(or mock) implementation and instantiate the page, then call meth
17/12/2008, at 6:48 PM, mraible wrote:
>
>>
>>
>>
>> luther.baker wrote:
>>>
>>> You can also add parameters to the t:beaneditform.
>>>
>>> something like ...
>>>
>>>
>>>
>>>
>>&g
uttons as you want.
>> I heard somewhere in this list that the beaneditform component is nothing
>> more than this.
>>
>> On Mon, Dec 15, 2008 at 2:19 PM, mraible wrote:
>>
>>>
>>> Is it possible to add Delete and Cancel buttons to the
>&
I want to load pages from multiple root packages. Is it possible to have more
than one root package specified for tapestry.app-package? I tried a comma
separated value, but it doesn't seem to work.
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/-T5--Can-I-specify-more-than
Is it possible to add Delete and Cancel buttons to the
component? If so, how?
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/-T5--Is-is-possible-to-add-Delete-and-Cancel-buttons-to-BeanEditForm-Component--tp21017894p21017894.html
Sent from the Tapestry - User mailing list
I'm working on a simple CRUD example for Tapestry 5 (version 5.0.18) today in
order to create the necessary FreeMarker templates for AppFuse's Maven
Plugin. Here's my form class:
package org.appfuse.webapp.pages;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annota
r 12, 2008 at 7:04 PM, mraible <[EMAIL PROTECTED]> wrote:
>>
>> I tried to upgrade Tapestry 4.1.3 to 4.1.5 (and Tacos 4.1.1) today.
>> Unfortunately, I get the following error. Any ideas?
>>
>> An Error Occurred
>> Missing classpath resource '/dojo-0.
I tried to upgrade Tapestry 4.1.3 to 4.1.5 (and Tacos 4.1.1) today.
Unfortunately, I get the following error. Any ideas?
An Error Occurred
Missing classpath resource '/dojo-0.4.3/dojo2.js'.
An Error has occurred in this application. You may attempt to restart the
application.
[ +/- ] Exception:
It happens for me on OS X and the original problem was reported by someone on
Windows XP.
Matt
Marcus Schulte wrote:
>
> might be somehow related to
> https://issues.apache.org/jira/browse/TAPESTRY-1721 ... I'm looking into
> it.
> Which OS/jvm are you running?
>
>
Any idea why Tapestry 4.1.3 works with jetty:run-war and tomcat:run (two
Maven plugins), but not jetty:run? We're having this problem in AppFuse 2.0.
http://www.nabble.com/Problem-with-jetty%3Arun-in-Tapestry-basic-archetype-tf4485474s2369.html#a12791114
Thanks,
Matt
--
View this message in co
ther way. (though I think anyone trying to do
> gzip / other kinds of things to web apps these days will probably
> start to think about the possibility that it's already been done for
> them more and more as this "out of the box" feature becomes more
> popular)
>
>
;fielderror");
> }
> }
>
> I styled my fieldlabels by styling the enclosing tags:
>
>
>
>
> Account
>
>
>
>
>
> On 9/13/07, mraible <[EMAIL PROTECTED]> wro
Has anyone written their own ValidationDelegate implementation that
manipulates the CSS class of the component's FieldLabel?
Thanks,
Matt
mraible wrote:
>
> I have a @FieldLabel that's written as follows:
>
> field="component:usernameField">Username
&
I was able to fix the OOM issue in Tapestry by bumping up the memory for
Maven by just a bit. For example, it'll fail no matter what I set JAVA_OPTS
to, but if I change MAVEN_OPTS from "" to "
--
View this message in context:
http://www.nabble.com/Memory-issues-with-Tapestry-4.1.x-tf4387514.html
I was able to fix the "can't Ctrl+C mvn jetty:run" issue in AppFuse Light by
upgrading to Tapestry 4.1.2. The other issue still remains. I guess I'll
pull out my profiler.
Thanks,
Matt
mraible wrote:
>
> If you have MySQL installed, there's a couple de
couple of reports on the list that seem to point in this
> direction. Especially the HivemindClassPool seems to be a candidate for
> further observation. Since there are productive apps on 4.1.2 with no
> issues, an issue with a sample app / setup to reproduce an OOM would be
> very
> hel
I've been experiencing some OOM issues in a couple applications ever since I
upgraded from 4.0.x to 4.1.x. I didn't change any code for the most part,
just some descriptors and such. Has anyone else noticed memory-hogging
issues with 4.1.x?
Even stranger, if I start up my app using "mvn jetty:run
've
> reported
> this issue as http://jira.opensymphony.com/browse/OGNL-115. Vote for the
> issue and downgrade your OGNL to 2.6.7. I wouldn't get my hopes up that
> anybody would fix it before Jesse comes back from his vacation...
>
> Kalle
>
>
> On 8/29/07, mraible <
eported
> this issue as http://jira.opensymphony.com/browse/OGNL-115. Vote for the
> issue and downgrade your OGNL to 2.6.7. I wouldn't get my hopes up that
> anybody would fix it before Jesse comes back from his vacation...
>
> Kalle
>
>
> On 8/29/07, mraible <[EMAIL PROTECTED]&g
I discovered (by pure luck) that the following "validators" binding was
causing the problem:
When I removed the "validators" binding, everything works. Is Dojo's
client-side validation incapable of handling elements?
Than
I have the following contrib:Table that reds a Set of users from the
servletContext (they're added to it as they login to maintain a list of
active users).
Even thought "userNames" is a list of User objects in the ServletContext,
javassist doesn't seem to recognize that. It seems to cast it to
>
> If you want text to appear somewhere next to fields it might be
> easiest to override:
>
> tapestry.form.validation.handleMissingField(field, profile)
> tapestry.form.validation.handleInvalidField(field, profile)
>
> The most up to date API kind of javascript docs can be found here:
>
>
I have a @FieldLabel that's written as follows:
Username
When the "usernameField" has an error, I want to change the class to "desc
error" or just "error". I've created my own ValidationDelegate and tried to
overwrite writeLabelAttributes(), but it doesn't seem to work.
Is there something I'm d
serList and associates it with BasePage.
> Could it be, that you have a page class named UserList in both the pages
> package and the admin sub-package? Maybe a dirty build after moving
> thins around?
>
>> -Original Message-
>> From: mraible [mailto:[EMAIL PROT
onents.html
>
> at the section "Referencing Library Components"
>
>
> On 8/28/07, mraible <[EMAIL PROTECTED]> wrote:
>>
>> I have a UserForm class in a "pages" package and a UserList class in an
>> "admin" sub-package. In U
I have a UserForm class in a "pages" package and a UserList class in an
"admin" sub-package. In UserForm, how do I get UserList? The following
doesn't seem to work:
UserList nextPage = (UserList) cycle.getPage("UserList");
Results in: java.lang.ClassCastException: $UserList_4
If I change it to
9/philly-is-burning/
>>
>> If you want text to appear somewhere next to fields it might be
>> easiest to override:
>>
>> tapestry.form.validation.handleMissingField(field, profile)
>> tapestry.form.validation.handleInvalidField(field, profile)
>>
>> T
After upgrading from 4.0.2 to 4.1.3-SNAPSHOT, I'm getting some strange issues
in regards to validation. When the client-side validation pops up, all I see
is an "OK" button and nothing else. Are there some CSS styles I need to add
in order to see the messages?
Also, is it possible to have the er
tocol: javascript
(http://localhost:9876/appfuse-tapestry-2.0-rc1-SNAPSHOT/assets/static/dojo-0.4.3/dojo.js#4305)
mraible wrote:
>
> I tried it with 4.1.3-SNAPSHOT and Canoo WebTest R_1600 (which uses
> HTMLUnit 1.13). Unfortunately it doesn't seem to get past the first page:
>
> Refe
>
> Kalle
>
>
> On 8/23/07, mraible <[EMAIL PROTECTED]> wrote:
>>
>>
>> Has anyone tried HtmlUnit 1.13 with Tapestry 4.1? They claim much better
>> JavaScript support in 1.13:
>>
>> http://tinyurl.com/2lo6p8
>>
>> Matt
>>
&g
Has anyone tried HtmlUnit 1.13 with Tapestry 4.1? They claim much better
JavaScript support in 1.13:
http://tinyurl.com/2lo6p8
Matt
nirvdrum wrote:
>
> Has anyone here tried to test their Web app with HTMLUnit using Tapestry
> 4.1? I'm getting a lot of errors related to embedded dojo stuff
filter enabled.
Thanks,
Matt
mraible wrote:
>
> I tried backing down to 4.1.2 and my application at least comes up. I
> noticed it's now including a dojo javascript file. However, if I navigate
> to its path:
>
> http://localhost:9000/assets/static/dojo-0.4.3/dojo3.js
>
n? A new
> sample stack trace would be able to shed more light on it from here.
>
> On 8/22/07, mraible <[EMAIL PROTECTED]> wrote:
>>
>> This problem still seems to exist in 4.1.3-SNAPSHOT. I'm assuming you
>> haven't
>> had time to look at it yet?
This problem still seems to exist in 4.1.3-SNAPSHOT. I'm assuming you haven't
had time to look at it yet?
Matt
Jessek wrote:
>
> Hmmmsounds like the latter. Will check it out tonight.
>
> On 8/15/07, mraible <[EMAIL PROTECTED]> wrote:
>>
>> I&
r Occurred
You may attempt to # try again .
Please check your log files for further information.
My custom error page is turned on in hivemodule.xml:
Thanks,
Matt
mraible wrote:
&g
I tried backing down to 4.1.2 and my application at least comes up. I noticed
it's now including a dojo javascript file. However, if I navigate to its
path:
http://localhost:9000/assets/static/dojo-0.4.3/dojo3.js
It's all jumbled text with funky characters instead of JavaScript. Is this
as desig
I'm getting this same error when upgrading from Tapestry 4.0.2 to
4.1.3-SNAPSHOT. It sounds like there may need to be a new release of
Tapestry Spring that's compiled against 4.1.3? Or maybe 4.1.3 needs to
change something so its backwards compatible?
Matt
Ovidiu Hurducas-2 wrote:
>
> Hi!
> I'
d
> spring. They haven't changed in a long while. However, I think they
> should
> still default to Tapestry 4.0.1, since 4.1 is not stable yet (and I
> haven't
> tested them against 4.1, I've been busy coding 5.0).
>
> On 12/28/06, mraible <[EMAIL PROTECTED]
Is it possible to use Tapestry's parser in tests to verify that template
syntax is correct?
I'd like to run tests (like you do when doing a JSP pre-compile) to verify
syntax w/o having to start the app and find out at runtime.
Thanks,
Matt
--
View this message in context:
http://www.nabble.c
Is it possible to adjust Tapestry's template caching strategy? In other
words, is it possible to make it like JSP where there's a timestamp check to
see if a page has been updated? I realize I can turn off page caching, but
does that make Tapestry slower than a JSP-based solution? Can I provide my
, since 4.1 is not stable yet (and I
> haven't
> tested them against 4.1, I've been busy coding 5.0).
>
> On 12/28/06, mraible <[EMAIL PROTECTED]> wrote:
>>
>>
>> Is it possible to get updated POMs for tapestry-spring and tapestry-flash
>> that refer to
e .page files anymore. So non-CamelCase page
>> names would simply not be an option for me - even if I found them
>> aesthetically more pleasing (which I'm not)
>>
>> Marcus
>>
>>> -Original Message-
>>> From: mraible [mailto:[EMAIL PROT
on't have .page files anymore. So non-CamelCase page
> names would simply not be an option for me - even if I found them
> aesthetically more pleasing (which I'm not)
>
> Marcus
>
>> -Original Message-
>> From: mraible [mailto:[EMAIL PROTECTED]
>&
Are CamelCase page names and URLs the standard with Tapestry applications?
I'm used to doing more lowercase things, for example:
http://server/app/userList.html
I'm even starting to warm up to doing things all lowercase:
http://server/app/userlist.html
However, according to HLS, CamelCase is
Still attempting an upgrade from 4.0.2 to 4.1.1...
When I try to run my JavaScript-enabled Canoo WebTests, I get the following
error after upgrading:
(/Users/mraible/Work/appfuse-2.0/web/tapestry/src/test/resources/web-tests.xml:158:
) null failed with message "Step[invoke "click s
Is it possible to get updated POMs for tapestry-spring and tapestry-flash
that refer to tapestry 4.1.1 as a dependency? Because these libraries
depend on tapestry/tapestry rather than
org.apache.tapestry/tapestry-framework, you have to manually exclude so you
don't get duplicate JARs. Here's wha
ry single line of code involved from
> browser->server->back except for sitemesh so there isn't likely to be
> any guessing/pondering what the issue is.
>
> On 12/28/06, mraible <[EMAIL PROTECTED]> wrote:
>>
>> It could be a friendly URL servlet-mapping situ
hing other than tapestry must be handling the
> request in this instance. If it were tapestry and that asset service
> couldn't find it a 404 response could would be returned in the very
> worst case.
>
> Could it be a web.xml servlet mapping / friendly url configuration issue ?
gt; "hanging". The "var calendar_start " variable isn't resolvable later
> on and subsequently breaks most of the javascript.
>
> It looks like a Tapestry bug (I think), won't know more until I run
> some separate tests of my own. (you aren't using a cu
.476] Compiling _jsp/_404__jsp.java
Matt
Jessek wrote:
>
> A demo may help. Sounds like some sort of resource can't be resolved.
> (I'm guessing it is probably including dojo at all )
>
> On 12/28/06, mraible <[EMAIL PROTECTED]> wrote:
>>
>> Thanks -
.apache.org/tapestry4.1/components/general/scriptincludes.html
>
> This is partially covered in the very incomplete 4.0 > 4.1 upgrade
> guide as well:
>
> http://tapestry.apache.org/tapestry4.1/usersguide/upgrade4.0.html
>
> On 12/28/06, mraible <[EMAIL PROTECTED]>
According to: http://tapestry.apache.org/tapestry4.1/javascript/index.html
> By default, the Shell component will include the core dojo javascript
> object dojo.js, as well as the new core Tapestry javascript object -
> core.js. This means that you don't have to worry about how to include dojo
g if you think it'll help by trying the same on
> my
> own comp.
>
> On 10/17/06, mraible <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> Jessek wrote:
>> >
>> > Ah. I guess I was expecting you to use the 4.1.1 version, it is
>> a
Jessek wrote:
>
> Ah. I guess I was expecting you to use the 4.1.1 version, it is available
> in
> the apache snapshot repos only (the main repos are reserved for official
> releases) :
>
> http://people.apache.org/repo/m2-snapshot-repository/
>
> The 4.1 version is hopelessly behind what is
I just tried upgrading Equinox (http://equinox.dev.java.net) from Tapestry
4.0.2 to 4.1 (b/c 4.1.1 isn't in the Maven repo) and I'm experiencing the
same issue. I tried changing from:
To:
But this results in an input field not even showing up. In my Jetty 6 log
it shows:
2
I ended up overriding the default FieldLabel:
http://fisheye5.cenqua.com/qsearch/appfuse/?q=FieldLabel
--
View this message in context:
http://www.nabble.com/Issues-with-Label-Components-with-Tapestry-4.0-tf1686779.html#a5434006
Sent from the Tapestry - User forum at Nabble.com.
-
My issue isn't with label, it's with the inputs. I have the following in my
custom ValidationDelegate:
public void writeAttributes(IMarkupWriter writer, IRequestCycle cycle,
IFormComponent component, IValidator
validator) {
if (isInError()) {
77 matches
Mail list logo