Still struggling with submit context, but found out that if something is
wrong with template, then T5 doesn't show the exception page anymore under
certain circumstances: Browser only shows various error messages: Chrome
says: Error 2 (net::ERR_FAILED): Unknown error, FireFox shows
and IE says
Hi,
In your case, why not have a try on AjaxFormLoop component, but I haven't tried
this component yet and don't have much experience.
Loop component in form is a bit tricky. Set volatile='true' means you need have
your source object unchanged. But you have deleted one row during process, so
Looks like this is a bug in 5.0.18 that has been fixed in 5.1.0.0. See
http://issues.apache.org/jira/browse/TAP5-413 for details.
-Dave
On Mon, Mar 9, 2009 at 6:11 PM, Dave Dombrosky wrote:
> Sorry I may have jumped the gun. I thought I had this fixed, but I
> must have been testing on Jetty a
Try providing a custom validation tracker to form.
Form creates one that is stored in the session by default.
I suspect this is where your session creation is coming from.
Note that for validation to work properly, you'll have to persist the
tracker in some form.
Robert
On Mar 9, 2009, at 3/
Dear DH,
Thanks for you quick response. I added the param but now get a new
Exception (see below). The exception still only happens when elements
are removed from the Loop through AJAX, adding all works fine. This
whole volatile concept is a bit fuzzy to me and scanning the source of
the Loop comp
in sessionCreated create and dump an exception and check the stacktrace
to find who's responsible
On Tue, Mar 10, 2009 at 2:07 AM, Borut Bolčina wrote:
> Hi,
>
> I am trying to prevent session creation when using forms and in general. I
> searched the mailing list but can not explain why the sess
Technically, you should be able to use the normal encoding of the form
tag.
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4
What I don't know is whether T5 will consume it.
Christian
On Mar 9, 2009, at 8:45 PM, Angelo Chen wrote:
question is, can we tell t:form to use GET inste
question is, can we tell t:form to use GET instead of POST?
starbuxman wrote:
>
> if it were possible -cant speak with authority as i am not using
> tap 5 - it would take the form of support for changing the method attr
> to 'get' on the form component.
>
> On 3/9/09, Angelo Chen wrote:
>
Hi,
I need to put two nested AjaxFormLoops one in the antoher. You know its
a 1->m->n database relationships.
How can I pass the ID (for ex) of the higher Loop to the onAdd event of
the Lower.
Otherwise I can not find out which of the rows of the higher loop was
edited.
--
if it were possible -cant speak with authority as i am not using
tap 5 - it would take the form of support for changing the method attr
to 'get' on the form component.
On 3/9/09, Angelo Chen wrote:
>
> Hi,
>
> I have a page which has a form like this:
>
>
>t:value="category" />
>
I am doing something similar using CXF to expose web service. What i am
doing is to start up a web service once the registry starts up. To do this u
just need to contribute the registry startup:
http://tapestry.apache.org/tapestry5/tapestry-ioc/startup.html.
With the new version of tapestry-spring
Hi Alex!
Thanks for your answer. We run the app on different JVM's (all 1.6,
Linux-64Bit, WindowsXP 32Bit, Mac-OS X 64Bit). I do not think this problem is
related to a particular JVM version or an thread local problem at all. Maybe
deadlock is the wrong word. Because of the fact that the threa
Hi There,
I have a web application written using the Tapestry 5 framework. This
allows users to view data stored in an SQL database.
I want to write a client Java application that a user will be able to run on
their local machine. I want this client side application to be able to
communicate a
Sorry I may have jumped the gun. I thought I had this fixed, but I
must have been testing on Jetty and not Tomcat. Still broken in
Tomcat.
-Dave
On Mon, Mar 9, 2009 at 5:49 PM, Dave Dombrosky wrote:
> Peter, returning true "works", but it does not redirect the user to a
> different page than
Peter, returning true "works", but it does not redirect the user to a
different page than they were on. Normally you want the user to be
sent to a different page if they are in a secure area of the site when
logging off.
I was just able to fix my problem with a similar situation. I was
trying to
Sorry, the direct link missed out the references on which I built, since
they were only in the the teaser on the mainpage. I added them now to the
top of the main article, too. Without this blogentry:
http://www.rimple.com/tech/2009/02/25/building-standalone-gorm-applications-in-maven/
it would h
URL = a url you would build on the serverside using something like:
resources.createEventLink( "" );
Let me review the background below.. I hope I don't confuse you too much..
Normally:
activateZone
Generates:Html:
activateZone
Generates:Javascript:
1) setup a ZoneManager agains
Yes, inherit: is still supposed to work as before and is still useful
in many cases, though the new publishParameters attribute is more
widely used.
On Mon, Mar 9, 2009 at 9:41 AM, Robert Zeigler wrote:
> Looks like this is related to:
> https://issues.apache.org/jira/browse/TAP5-487
>
> See the
The thing to remember is that Grid and BeanEditForm are intended as
scaffolding to get you up and running quick. As your application gets
refined, you may start to pull apart the scaffolding components to
build something more precisely tuned to your specific requirements. It
is not my intention th
Looks very cool; seems like a tapestry-gorm archetype would be a great
thing as well.
On Mon, Mar 9, 2009 at 11:15 AM, Otho wrote:
> Hi all!
>
> With Grails 1.1 (RC2) The use of Gorm outside of Grails got greatly
> simplified. I managed to get it working with T5 and Maven at least in a
> simple t
Thanks Elmer. And ugh ... sorry for the previous typo "@Elmo",
(Cool Beans was @Jonathan for his Bean example - but got out of order in
this thread).
-Luther
On Mon, Mar 9, 2009 at 1:02 PM, Luther Baker wrote:
> Cool beans. Literally :)
>
>
>
> On Mon, Mar 9, 2009 at 12:49 PM, Jonathan Barke
Cool beans. Literally :)
On Mon, Mar 9, 2009 at 12:49 PM, Jonathan Barker <
jonathan.theit...@gmail.com> wrote:
> My experience was with 4.0.
>
> You want to look at the ValidationDelegate.
>
> @Bean
> public abstract ValidationDelegate getDelegate();
>
> // set up as listener for form
> public
All very good comments Luther (np about the name :)) and everyone else.
Here is 4.0 code that does the same thing:
public void onFormSubmit(IRequestCycle requestCycle) {
IValidationDelegate delegate = getDelegate();
// this checks if the automatic validations you have on your
// fiel
compare this thread...
http://tapestry.markmail.org/search/?q=list%3Aorg.apache.tapestry.users+url+#query:list%3Aorg.apache.tapestry.users%20url%20+page:1+mid:kbv6yrkcjmkaaoys+state:results
Borut Bolčina schrieb:
Hi,
I wanted to send users an email with a confirmation link which
includes ba
Oops sorry @Elmer, I mistyped your name in the previous post and meant
@Ivano.
Also, @Elmo, I think you're suggestion was perfect! but it looked like T5
code.
Shows how little I know about T4 though. Sorry - I think your post was right
on if all those annotations and events were in T4.
-Luther
My experience was with 4.0.
You want to look at the ValidationDelegate.
@Bean
public abstract ValidationDelegate getDelegate();
// set up as listener for form
public void onSubmit(IRequestCycle cycle){
ValidationDelegate = getDelegate();
(if (delegate.getHasErrors())
return;
if (
That's a fine point to clarify.
My underlying suggestion wasn't meant to imply which was the correct,
well-defined event to handle. This is the second post ... no luck/help so
far? ... So my suggestion is that, if all else fails, you can do MANUAL
validation in, if nothing else, the MAIN event han
Oh sorry, didn't mean to confuse things. I got the impression he was
asking about field validation, not authentication.
-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Sent: Monday, March 09, 2009 1:15 PM
To: Tapestry users
Subject: Re: cross field vali
Em Mon, 09 Mar 2009 14:08:43 -0300, Luther Baker
escreveu:
Oddly enough, it is NOT the validation handler I want to bring to your
attention to (here on this validation.html page :) and again, obviously,
this is Tapestry 5 - but notice how authentication is done in the SUCCESS
handler.
Authe
I'm not familiar worth T4.1 but it seems to me that you could put something
in the submit or success handler that validates.
Take a look here -
http://tapestry.apache.org/tapestry5/guide/validation.html and find the
following snippet:
public class Login
{
*String onSuccess()
{
Hi,
I wanted to send users an email with a confirmation link which
includes base64 encoded and additionally url encoded activation
context
Example:
http://my.company.com/account/confirmed/amFuZXpuOu47TZYaxgNZ297XcGQFHLQ%3D
As base64 includes characters + / and = I tried to encode it further
with
Looks like this is related to:
https://issues.apache.org/jira/browse/TAP5-487
See the bottom of this page:
http://tapestry.formos.com/nightly/tapestry5/guide/parameters.html
for more details.
However, if, in fact, inherit is no longer functional, that would
still represent a regression, and y
Hi all,
Prior to 5.1 in places I used the prefix "inherit:" in my templates which
seemed to work quite well. Although it is not listed as a standard binding
prefix, it is used as a special case... a mention of it is made here:
http://tapestry.formos.com/nightly/tapestry5/guide/parameters.html
I love it !
Thank you, you made my day !
Davor Hrg wrote:
I have a solution :)
I needed it to make my own autocomplete
/**
*
*/
package tapestryutil.mixins;
/** Workarround to add raw content to JSON, like function references and
such.
* Number instances are not quoted and are trusted, so
Ivano,
I'm pretty sure what you want to do is provide an onValidate method in
your page class. That method gets called expressly for doing more
complicated validation. If you have more than one form, you'll have to
further specify it e.g. onValidateFromMyFormName (or use @OnEvent
annotation). H
thx Alex.
I'm mading less round wheel.
Nile Black
-
每天一个小时debian.
2009/3/7 Alex Kotchnev
> Nile,
> do re-read the T5 docs (e.g.
>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html
> ,
> ), I think what you're tryi
I have a solution :)
I needed it to make my own autocomplete
/**
*
*/
package tapestryutil.mixins;
/** Workarround to add raw content to JSON, like function references and
such.
* Number instances are not quoted and are trusted, so we use it.*/
final class JSONRaw extends Number {
privat
For json responses, i think it's good that the json is strict (i.e. no
objects or
callbacks allowed as values)
For constructing js objects to be included in the html (to configure
other js components)
it's clear that JSONObject isn't the correct answer (json != js object)
Probably the autocmplete
np, found solution using AssetSource service
On Mon, Mar 9, 2009 at 2:44 PM, Andrea Chiumenti wrote:
> ok got this, but then how the following methos should be modified?
>
> public String getDojoSource(Page page) {
> if (this.dojoInitialization == null) {
> return null;
>
On Mon, Mar 9, 2009 at 11:19 AM, leechj wrote:
>
> Thanks Luther,
> But I'm still a bit new to this and can't quite figure out what to do based
> on the example provided in the link you gave.
>
> I've implemented DataTypeAnalyzer but I don't know what to do in the
> identifyDataType method.
> It s
One possible approach would be to create a mixin that modifies the DOM
generated by BeanEditor/BeanEditForm to add tabindex and accesskey
automatically. On the other hand, if you can't think of any algorithm
that provides tabindex and accesskey automatically (i.e. you need to
manually define each o
Yes, there is a way. Search the list, it has been discussed just a few
days ago. The thread was "about T5 javascript".
Andy
Michael Williamson schrieb:
Is there a way of triggering a zone update from Javascript? I need to run
server side data validation if the data matches specify condit
ningdh wrote:
Not aware of that, sorry.
No problem, I didn't want to be harsh :)
In my window component, I hack to replace double quote of all function to empty.
JSONObject options= new JSONObject();
options.put("showEffect", "TO_BE_REPLACE" + this.showEffect+"TO_BE_REPLACE");
[...]
It
Thanks Luther,
But I'm still a bit new to this and can't quite figure out what to do based
on the example provided in the link you gave.
I've implemented DataTypeAnalyzer but I don't know what to do in the
identifyDataType method.
It seems like all this does is give back a type. How do I create m
Not aware of that, sorry.
In my window component, I hack to replace double quote of all function to empty.
JSONObject options= new JSONObject();
options.put("showEffect", "TO_BE_REPLACE" + this.showEffect+"TO_BE_REPLACE");
getPageRenderSupport().addScript("%s = new Window(%s);", getUniqueId(),
f
ningdh wrote:
toString method of JsonObject would double quote our value.
One way is to create some data type extends jsonobject to encapsule your data
and override the toString method. I haven't tried it yet.
But JSONObject and JSONArray are final, that's not possible - it was my
first pl
ok got this, but then how the following methos should be modified?
public String getDojoSource(Page page) {
if (this.dojoInitialization == null) {
return null;
} else {
Binding b = bindingSource.newBinding("dojo binding
source", page.getRootComponent().getCo
On Mon, Mar 9, 2009 at 10:32 AM, Andrea Chiumenti wrote:
> no, or I haven't understood:
I messed up. You shouldn't use asset: in an Asset annotation, obviously.
> Shoud I really use (and only this) instead?
> "classpath:net/sourceforge/tapestryjfly/dojotapestry5/dojo-1.2.3/dojo/dojo.js"
I guess
Whether or not you can do this, I would be very very careful about
where you do this. Passing form data on the url is one of the easier
entry-points to a cross-site request forgery (CSRF) attack. While for
something like a search (or any read-only operation) this isn't an
issue, but if yo
toString method of JsonObject would double quote our value.
One way is to create some data type extends jsonobject to encapsule your data
and override the toString method. I haven't tried it yet.
public String toString() {
return "Element.show";
}
Thanks,
DH
- Original Message -
From
no, or I haven't understood:
"asset:classpath/net/sourceforge/tapestryjfly/dojotapestry5/dojo-${dojo-release-version}/dojo/dojo.js"
gives
Could not convert
'asset:classpath/net/sourceforge/tapestryjfly/dojotapestry5/dojo-1.2.3/dojo/dojo.js'
into a component parameter binding: Unable to locate ass
On Mon, Mar 9, 2009 at 10:20 AM, Andrea Chiumenti wrote:
> String dojoSource() default
> "asset:../assets/dojot5/dojotoolkit/dojo-${dojo-release-version}/dojo/dojo.js";
> String djConfig() default "parseOnLoad: true";
> }
Try "asset:classpath/net/sourceforge
--
Thiago
---
Is there a way of triggering a zone update from Javascript? I need to run
server side data validation if the data matches specify conditions.
--
View this message in context:
http://www.nabble.com/Update-a-T5-zone-componet-from-javascript.-tp22412979p22412979.html
Sent from the Tapestry - User
Hello I'm having the follogin problem.
I've created this Annotation for my library
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface DojoInitialization {
String dojoSource() default
"asset:../assets/dojot5/dojotoolkit/dojo-${dojo-release-version}/dojo/dojo.js";
Set volatile="true" at the loop component to let the form not to restore the
state.
Thanks,
DH
- Original Message -
From: "Joost Schouten (mailing lists)"
To: "Tapestry users"
Sent: Monday, March 09, 2009 6:14 PM
Subject: [T5.1.0.0] Loop in Form problem introduced in T5.1.0.0
Hi,
I
On Mon, Mar 9, 2009 at 9:22 AM, Angelo Chen wrote:
> Instead of InjectPage, is there a way to push the form to ShowResults in the
> URL, something like what Google is doing:
> http://www.google.com/search?hl=en&q=Tapestry&btnG=Google+Search&meta=
Not automatically. Tapestry always uses POST to su
Sorry to ask for this again, but I have seen no answer.
I will get no answer again I will stop asking for this, of course.
TIA
Hello, we are using T4.1
We have to validate a form and we don't want to do it client side.
Let say we have three text fields.
The validation should impl
Hi,
I have a page which has a form like this:
in the onSuccess event I'm doing:
@InjectPage
private ShowResults showResults;
Object onSuccessFromSearch() {
showResults.setlst(lst);
return searchResults;
}
Instead of InjectPage, i
On Mon, Mar 9, 2009 at 7:04 AM, Jonathan O'Connor wrote:
> Although you can't use generics directly, I presume you can define a
> subclass that inherits from a given generic superclass.
The approach you're describing works very well. Tapestry CRUD
(http://www.arsmachina.com.br/project/tapestrycru
Francois Armand wrote:
Rico Landefeld wrote:
Hello,
I had the same annoying problem, but the patch works for me. But my
question
is: when will be a tapestry maintenance release which contains
already this
patch? btw, the same problem was solved in tapestry 4.1 long ago.
I would like - muc
On Sat, Mar 7, 2009 at 8:30 AM, Howard Lewis Ship wrote:
> My experience hasn't used mod_jk, just running a Tomcat instance and
> using Apache proxying:
BTW mod_jk has been deprecated for a long time
--
Massimo
http://meridio.blogspot.com
-
It is easy to get this to work in Tomcat, Jetty should be similar...
In Tomcat all you nee is two things:
1. A JDBC realm defined in server.xml
2. A role in web.xml
BASIC
My App
Users
Hi,
I have a loop in a form displaying non form information. An ajax call
can update the source of the Loop. When the loop has less, or
different items in it during submit then when the form was initiated,
the following exception is thrown.
Loop.RestoreStateFromStoredClientValue() seems to be caus
Although you can't use generics directly, I presume you can define a
subclass that inherits from a given generic superclass.
For instance,
class CrudPage {
// Stuff with T
}
class CustomerCrud extends CrudPage {
}
Would this work? I suppose if you used a generic service, then you would
hav
Sorry here is the rest of it:
public Object onActionFromLinkLogoff() {
User user = userDao.load(getVisit().getUserId());
auditDao.audit(AuditType.LOGOFF, user);
String startPage = getVisit().getStartPage();
componentResources.discardPe
Also Tomcat throws an IllegalStateException when Jetty doesn't because there is
an inconsistency between 2.3 compliant and 2.4 containers:
Try:
--
If you are not an intended recipient of this e-mail, please notify the sender,
delete it and do not read, act upon, print, disclose, copy, reta
>I have a filer to trim off the long jsession IDs from url
You can do so, but IMHO that should never be necessary, the session id is
encoded into the URL only once, and then removed by the container (that is if
you have cookies enabled in the browser). It provides a backwards compatibility
mecha
As the name says, the sample application does declare the
UserDetailsService. Look at
nu.localhost.tapestry5.springsecuritytest.services.TestsecurityModule
there you'll find the build method
public static UserDetailsService buildUserDetailsService( @Inject
PasswordEncoder encoder, @Inject
Ok, the transaction is being rollback, but then there is something i
don't get about @CommitAfter.
What happens if a @CommitAfter method calls a different @CommitAfter
method? Are the transactions nested? would the whole transaction will
only be committed after the first method returns? or would t
Hello, i've using tapestry-hibernate with the latest snapshot but i am
having issues with transaction rollbacks.
I am using Derby and Hibernate configured with autocommit=false, but
if i throw a RuntimeException the transaction is never rolled back. In
the stack trace i can see that the Hibernate
>Beyond that, the behavior can be changed by
>monkey-patching the JavaScript and the CSS.
The trouble with that is when you change Tapestry's JavaScript you also need to
be mindful of these patches and maintain them between releases. Why not use a
property on the link to switch it off?, IMHO it j
Enjoy :)
As you can see, this is accomplished with only a few lines of actual code.
Of course, it is easy to extend with parameters to open up event type,
window attributes and so on... So far, I don't need anything like that.
PopupPageLink.java:
@IncludeJavaScriptLibrary("PopupPageLink.js")
pub
72 matches
Mail list logo