RE: T5: using jQuery with PageRenderSupport

2008-03-14 Thread Angelo Chen
Hi Kris, Since PageRenderSupport uses DocumentHeadBuilder to write the scripts, I am thinking of extending DocumentHeadBuilder, but it does not register: binder.bind(DocumentHeadBuilder.class, MyDocumentHeadBuilderImpl.class); any idea? kristian.marinkovic wrote: > > replace PageRenderSuppo

Re: T5: Cannot get org.acegisecurity.CredentialsExpiredException to work

2008-03-14 Thread Olle Hallin
Hi! I single-stepped through the problem, and it looks like org.acegisecurity.providers.ProviderManager.publishEvent() is swallowing the exception because the org.acegisecurity.providers.ProviderManager.applicationEventPublisher == null. Acegi Security version = 1.0.6 Regards, Olle 2008/3/14,

Re: T5 PageTester problem (Spring and Hibernate)

2008-03-14 Thread Jesper Zedlitz
Maybe someone is interested in a solution (or better: a dirty hack) for the problem. When the new PageTester is created with new PageTester("org.example.myapp", "Spring"); a new instance of SpringObjectProvider is created via SpringModule. The SpringObjectProvider is responsible for getting Spri

Re: t5: handling of hibernate exceptions

2008-03-14 Thread Josh Canfield
Yeah, that wouldn't fly in any of the apps that I work on. If you have known constraints that the user is going to run into then you deal with them in a friendly and helpful manner. Your end users aren't going to find the generic tapestry error page friendly or helpful. Josh On Fri, Mar 14, 2008

Re: [FAQ] common design

2008-03-14 Thread Jesper Zedlitz
Christian Koeberl wrote: > The replacement of $content$ is the t:container construct (see > https://issues.apache.org/jira/browse/TAPESTRY-1469). > This does not work with pages, does it? I hoped that http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> tapestry5-quickstart Start Page tap

RE: new features in 5.0.11

2008-03-14 Thread Jonathan Barker
The documentation also gives a way to define this by contributions (see the Securing Multiple Pages section) http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/secure.html > -Original Message- > From: kranga [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2008 9:02

HibernateEntityPackageManager contributions not being processed in 5.0.12

2008-03-14 Thread Hugo Palma
This was working fine, but now it seems that my contribution doesn't even getting processed. Maybe something changed in the way one can configure tapestry-hibernate ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

default event handler

2008-03-14 Thread Davor Hrg
I have more than few components that use events to communicate inside a pretty complex form/wizard. I want to default cancel all events and release only few events manualy, but to do it I have to add return true to every event handler, I've tried following /**Stop propagation of all sub-comp

Re: T5: Cannot get org.acegisecurity.CredentialsExpiredException to work

2008-03-14 Thread Robin Helgelin
On Fri, Mar 14, 2008 at 2:55 PM, Olle Hallin <[EMAIL PROTECTED]> wrote: > Hi! Hi. > Now the problem is that despite having the symbol "acegi.accessDenied.url" > defined to "/loginrejected", no forwarding to this page occurs. > > I have verified that the AccessDeniedHandlerImpl has been injecte

OutOfMemoryError when missing ".tml" on page template

2008-03-14 Thread Olle Hallin
Hi! Just an observation, I'm not sure if it's worth to create JIRA issue for it. When I created a new LoginRejected page, I named the template file just "LoginRejected", i.e., without the .tml suffix. This lead to a java.lang.OutOfMemoryError when starting the app. Renaming the template to Logi

Re: Need to prevent entire page from rendering

2008-03-14 Thread Ulrich Stärk
In T4.1 have a look at the async and optionally the updateComponents parameters of the Form component. Uli parker-jones schrieb: I have a page, sort of a control panel, that I am using some ajax scripts, such as a timer that continually updates a div tag, and other similar things going on. I w

Re: T5: Cannot get org.acegisecurity.CredentialsExpiredException to work

2008-03-14 Thread Olle Hallin
Oh, I forgot to mention the versions: Tapestry 5.0.11 tapestry5-acegi 1.0.4 Olle 2008/3/14, Olle Hallin <[EMAIL PROTECTED]>: > > Hi! > > We use tapestry5-acegi for our app, but I'm not sure if this is a Tapestry > or Acegi problem. > > When setting forcePasswordChange=true in the database for a

Re: t5: handling of hibernate exceptions

2008-03-14 Thread nicholas Krul
doesn't T5 autoflush the hibernate session at the end of the page render, though? so either the user will see a valid page (and the transaction committed in the database), or an error page (and no commits). I hope so, as I'm trusting to this. --nK On Fri, Mar 14, 2008 at 5:07 PM, Josh Canfield

Re: t5: handling of hibernate exceptions

2008-03-14 Thread Josh Canfield
When you call session.save() your object is not necessarily getting sent to the database, and thus database constraint violations may not be thrown. If you want to ensure the object is sent to the database at that point call session.flush() which "...is the process of synchronizing the underlying p

T5: contribute DocumentHeadBuilder

2008-03-14 Thread Angelo Chen
Hi, Is there a way to contribute my own DocumentHeadBuilder ? I tried following without any effect: binder.bind(DocumentHeadBuilder.class, MyDocumentHeadBuilderImpl.class); ? Thanks, A.C. -- View this message in context: http://www.nabble.com/T5%3A-contribute-DocumentHeadBuilder-tp16048582p16

RE: T5: using jQuery with PageRenderSupport

2008-03-14 Thread Kristian Marinkovic
replace PageRenderSupport or add another service like PageRenderSupport that renders JQuery specific javascript :) Angelo Chen <[EMAIL PROTECTED]> 14.03.2008 15:56 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema T5: using jQuery with PageRenderSupport

T5: using jQuery with PageRenderSupport

2008-03-14 Thread Angelo Chen
Hi, When you use _pageRenderSupport.addScript(jsFunc) to add some javascripts, it will always be put inside following block: Tapestry.onDOMLoaded(function() { ... js functions added here }); is it possible not to include javascript in the above block? if you use jQuery, putting inside that

Re: [T5] Tap5.0.11: java.lang.NoClassDefFoundError: org/apache/tapestry/internal/services/ClassNameLocator

2008-03-14 Thread Tobias Wehrum
It's tapestry-ioc-5.0.11.jar. Just downloaded via maven: org.apache.tapestry tapestry-ioc 5.0.11 Howard Lewis Ship schrieb: Check your version of tapestry-ioc. ClassNameLocator moved there in 5.0.11. On Fri, Mar 14, 2008 at 5:49 AM, Tobias Wehrum <[EMAIL PROTECTED]> wro

Re: [T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread mailinglist
@Christophe @Stephane Thanks to both of you. That did the trick. I have now two RadioButtons within the RadioGroup. One of them inside the loop and one outside owning different id's but same name. Now it is working as expected. again thanks for the quick response Jens No, Tapestry will giv

Re: [T5] Tap5.0.11: java.lang.NoClassDefFoundError: org/apache/tapestry/internal/services/ClassNameLocator

2008-03-14 Thread Howard Lewis Ship
Check your version of tapestry-ioc. ClassNameLocator moved there in 5.0.11. On Fri, Mar 14, 2008 at 5:49 AM, Tobias Wehrum <[EMAIL PROTECTED]> wrote: > Hi all, > > after updating to Tapestry 5.0.11, I get the following error: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org

T5: Cannot get org.acegisecurity.CredentialsExpiredException to work

2008-03-14 Thread Olle Hallin
Hi! We use tapestry5-acegi for our app, but I'm not sure if this is a Tapestry or Acegi problem. When setting forcePasswordChange=true in the database for a user, Acegi throws org.acegisecurity.CredentialsExpiredException (since our implementation of UserDetails.isCredentialsNonExpired() returns

Images in a Grid column

2008-03-14 Thread SIMM, Stephen (SOGETI HIGH TECH)
Hello, I'm would like to put a thumbnail image in a column of a grid (each row has it's own unique image). The images are not bundled with the application, they're on another file server "behind" the one hosting my application. I think I have a partial solution but it needs filling out. So far

T5 : FormFragment

2008-03-14 Thread Stephane Decleire
I would like to have a FormFragment but based on what the user has filled before instead of a CheckBox in order to implement things like dependant dropdown boxes. Is that possible with the last version of Tapestry or should i wait for a best integration of Ajax in Tapestry Form ? Stephane.

Re: T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Dmitry Shyshkin
I've found the answer. To achieve this you should return 'true' from event handler. Dmitry Shyshkin пишет: Non null value stop processing of all other event and start page rendering. But it actually not what I need. I have a multiple onActivate event handlers with different count of arguments,

Re: can i change locale manually or not ???

2008-03-14 Thread syka
I have same problem and I have AppModule.class under xxx.yyy.services public static void contributeApplicationDefaults( MappedConfiguration configuration) { configuration.add("tapestry.supported-locales", "en,de"); } this is added in my class.When I put breakpoint here

[T5] Tap5.0.11: java.lang.NoClassDefFoundError: org/apache/tapestry/internal/services/ClassNameLocator

2008-03-14 Thread Tobias Wehrum
Hi all, after updating to Tapestry 5.0.11, I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tapestry/internal/services/ClassNameLocator at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unkno

RE: Refer to a page component in a library

2008-03-14 Thread Jason.Yankus
Tony, We use an annotation to perform the page injection, but fundamentally under the hood the annotation simply prepends the namespace onto the pagename. I think, based on http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry.e nhance.InjectWorkers.html that the page type i

[T5] java.io.IOException while using prototype with T5Components and Jetty

2008-03-14 Thread Tobias Wehrum
Hi there, I do not know if thats something directly related to Tapestry, but since Tapestry is using prototype (which seems to be related) I hope someone encountered this problem too and has a solution to it. I use the t5components/OnEvent-mixin. Now when the event ("blur" in my case) is fir

RE: Redirect on login

2008-03-14 Thread Cordenier Christophe
In fact, this is a better solution if you have an activation context. So to achieve this, we still may use the "ComponentResources" class and its "createPageLink" method Christophe. -Message d'origine- De : Stephane Decleire [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 mars 2008 12:05

Re: Redirect on login

2008-03-14 Thread Stephane Decleire
I would recommend to store a Link (which can contain the page name and the context of the request) and return this link in the success method. Stephane Cordenier Christophe a écrit : Why do you not store the page name instead of the request Path and then returning the page name in the success

RE: Redirect on login

2008-03-14 Thread Cordenier Christophe
Why do you not store the page name instead of the request Path and then returning the page name in the success method ? As your success method return an Object you can return a String containing the requested page name... @Inject ComponentResources resources; ... // Store this in application

RE: Redirect on login

2008-03-14 Thread Kristian Marinkovic
have you tried to return the name of the page or the page class Object onSuccess() { return "afterLoginPage"; or return AfterLoginPage.class; } if you want to redirect to a external url return a Link instance g, kris Gabriel Landais <[EMAIL PROTECTED]> 14.03.2008 11:35 Bitte antwor

Redirect on login

2008-03-14 Thread Gabriel Landais
Hi, when a user try to connect to my app, it checks if user is logged. I'm trying to redirect him to page is was trying to access, but I don't know how to do it in Tapestry way. With plain old sendRedirect of servlet response it works, but not as clean as it should. All pages inherits of this p

RE: [T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread Cordenier Christophe
Actually, I think there is only one instance of the radio component created inside the loop. And, it is used multiple times for each iteration to display radios, Tapestry generate clients ids at runtime. Component id must be unique to access it through the @Component annotation without any ambi

Re: T5: Please wait before I show you next page

2008-03-14 Thread Angelo Chen
Hi Harald, Thanks for the example, i tried that out and got the idea, since we need to add onClick to link the component to a certain javascript code, i don't think mixins will work with jQuery as jQuery does not attach to any component in the html code, what do you think? A.C. Harald Geritzer-

Re: T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Dmitry Shyshkin
Non null value stop processing of all other event and start page rendering. But it actually not what I need. I have a multiple onActivate event handlers with different count of arguments, and I want to process only one of them. void onActivate(Long id) { object = loadobject(id); // do som

Re: [T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread Stephane Decleire
No, Tapestry will give different ids to your radio tags inside the loop. In the HTML page, a radio belongs to a radiogroup if it has the same "name" parameter, not the same "id". And Tapestry will give a different id but the same "name" to each radio you put in a radiogroup wether it is in a lo

Re: [T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread mailinglist
Yes, but within the SAME radio group. I mean: I use it multiple times within the loop? Jens You use the id "radio" 2 times in the same tml page. That's not allowed. Stephane [EMAIL PROTECTED] a écrit : > Hi! > > I have a problem to handle a radiogroup having a variable number of radio butto

[T5] form validation / new Validator

2008-03-14 Thread mailinglist
Hi! I am trying to move the validation logic definition from the tml back to the "application source code", because my Hibernate domain model drives the required and length constrains anyway. So I wonder why all checks have to be declared by "t:validation" on the "gui" side redundently. The b

Re: [T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread Stephane Decleire
You use the id "radio" 2 times in the same tml page. That's not allowed. Stephane [EMAIL PROTECTED] a écrit : Hi! I have a problem to handle a radiogroup having a variable number of radio buttons created within a loop. The 'tml' looks basically like the following code snippet:

t5: handling of hibernate exceptions

2008-03-14 Thread Angelo Chen
Hi, Following code is trying to save a new record with an email which already exists, after running, then try to update the same record in another progam, I got: Lock wait timeout exceeded; try restarting transaction un comment out //sessionManager.Abort, above problem fixed. but I still get th

[T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread mailinglist
Hi! I have a problem to handle a radiogroup having a variable number of radio buttons created within a loop. The 'tml' looks basically like the following code snippet: ${loopAddress.userId} ${loopAddress.firstName} ${loopAddress.lastName} this works

Re: T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Stephane Decleire
"The event will bubble up the hierarchy, until it is aborted. The event is aborted when an event handler method returns a non-null value." (http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html) Stephane Dmitry Shyshkin a écrit : Hi, all. Is there a way to stop bubbling of curr

T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Dmitry Shyshkin
Hi, all. Is there a way to stop bubbling of current event? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Localization Problems in 4.1.5

2008-03-14 Thread Patrick Klein
Hello, i took a dive into the sourcecode and added a patch to https://issues.apache.org/jira/browse/TAPESTRY-1765 making the fallback work again :) Regards, Patrick Hello, I just tested if i can switch to 4.1.5 just to realize that the localization issue is only partially fixed. Szena

Re: T5 : RadioGroup Label

2008-03-14 Thread Stephane Decleire
Thanks Josh for the issue. I'm a bit puzzled with the comment "Returns null; the radio group does not render as a tag and so doesn't have an id to share". For me, a radiogroup can be replaced by a select and vice versa so the both should be able to have a label. Wouldn't it be possible for a r

Re: T5 : Editable Select

2008-03-14 Thread Davor Hrg
you can go arround this by creating a component that generates a select and input, thus allowing arbitrary value in the input box. or dig in with javascript and create a more streamline one... Davor Hrg On Fri, Mar 14, 2008 at 3:08 AM, DavidWei <[EMAIL PROTECTED]> wrote: > > I have same need.