T5 Community -- Apache Tapestry Query

2011-03-07 Thread ael
Hi I visit the http://tapestry.apache.org/community.html tapestry community site then if possible additional IDE Integration for Tapestry 5 which is my favorite Netbeans. Thanks :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Community-Apache-Tapestry-Query-tp3413

Re: Exception starting filter test

2011-03-07 Thread raj1jaiswal
Hi, Thanks for reply.I have done same think whatever you suggested me but i still getting same exception.Please anybody provide me solution. Thanks Raj Jaiswal MCA SCJP1.6. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-starting-filter-test-tp3407524p3413520

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Paul Stanton
Ok, maybe what i'm describing *can* be achieved via RenderSupport/JavaScriptSupport and maybe that is suitable for 99% of scenarios. In my case, a user may trigger the action while the page is loading which would cause an error. I don't want to use 'waitForPage' since it would show a dialog

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Howard Lewis Ship
Paul, What you are describing is exactly what RenderSupport (5.1) and JavaScriptSupport (5.2) are for ... they allow you, during the render, to identify any JavaScript that should execute once the DOM is fully loaded. In other words, avoid inline

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Paul Stanton
Yes I get your point, I feel that what I'm suggesting is an improvement on something that exists in the project or at least an enhanced version of something that already exists: "waitForPage". I thought that if tapestry were enough of a "general purpose javascript library" to implement "wait

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Paul Stanton
I understand what you are suggesting Thiago, but I have function which could be called from any point in the page's lifecycle and i need to make sure it is never run prior to page load (because if it is something will break) but that if it is requested prior to page load, that it does eventual

Re: Could not synchronize database state with session

2011-03-07 Thread Thiago H. de Paula Figueiredo
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update I don't think your error is intrinsically related to Tapestry. You're having some SQL error. My non-existent psychic powers (ha!) tell me this is a primary key violation and you're using HSQLDB 1.8, which had a

Could not synchronize database state with session

2011-03-07 Thread Mark
I'm trying to experiment with Translators and I'm running into something I don't understand. I'm not sure if it is just a hibernate issue or something in the way that hibernate and Tapestry are interacting. I have two classes: @Entity public class Quote { @ManyToOne(cascade = CascadeType.ALL

Re: Translator to and From a List

2011-03-07 Thread Mark
> Why don't you implement Translator directly, without subclassing > AbstractTranslator? It's a very, very short class with no logic at all. Ah ok. That makes sense. I was following the example and didn't think about just skiping the AbstractTranslator. Thanks! Mark --

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Lenny Primak
Thanks, that was very helpful On Mar 7, 2011, at 5:59 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 07 Mar 2011 19:28:32 -0300, Lenny Primak > wrote: > >> Thanks guys for your insight. So is there any reason not to pick tapestry >> IOC in favor of other frameworks? Are you saying that t

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 19:28:32 -0300, Lenny Primak wrote: Thanks guys for your insight. So is there any reason not to pick tapestry IOC in favor of other frameworks? Are you saying that tap IOC is the best? IMHO, I'd say that Tapestry-IoC is the best IoC framework I've ever seen from a

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Howard Lewis Ship
On Mon, Mar 7, 2011 at 2:28 PM, Lenny Primak wrote: > Thanks guys for your insight. So is there any reason not to pick tapestry IOC > in favor of other frameworks?  Are you saying that tap IOC is the best? It's the best suited for Tapestry, I'll say that much. I think Tapestry IoC has a lot of

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Lenny Primak
Thanks guys for your insight. So is there any reason not to pick tapestry IOC in favor of other frameworks? Are you saying that tap IOC is the best? On Mar 7, 2011, at 2:15 PM, Howard Lewis Ship wrote: > What Thiago and Juan are getting at is that Tapestry's IoC was > specifically designed

Re: Extended textarea component

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 17:41:17 -0300, Dan Griffin wrote: Hi all, Hi! I`m looking for the component that helps creating forms that handle things such as message board posts, blog comments and such alike. So basically, a textarea with buttons that insert different tags: bold, italic, im

Extended textarea component

2011-03-07 Thread Dan Griffin
Hi all, I`m looking for the component that helps creating forms that handle things such as message board posts, blog comments and such alike. So basically, a textarea with buttons that insert different tags: bold, italic, image links etc. Is there anything similar out there? Thanks ---

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Werner Keil
please also try not to call it J2EE 6 that unlucky term (J2EE) was supposed to disappear even before Oracle took over Sun [?] On Tue, Mar 8, 2011 at 12:10 AM, Lenny Primak wrote: > Is there an executive summary of the differences or something like that? > I am trying to decide whether to use Tape

ReflectionSaltSource in tapestry-spring-security

2011-03-07 Thread Chuck Kring
Does anybody have experience configuring tapestry-spring-security to use a ReflectionSaltSource? I've tried a few things and haven't been able to get it to work. I was able to get the tapestry side wired up as an alias contribution but spring-security was not configured. Thanks in advance

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Howard Lewis Ship
What Thiago and Juan are getting at is that Tapestry's IoC was specifically designed to be a framework IoC container, where multiple modules would be "glued" together at runtime in configurations that would not be known at the time any individual module was built. In other words, you stack these t

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Juan E. Maya
Another great feature from Tapestry IOC is how easy is to write well designed applications using Design Patterns like Chains of responsibilities, Strategies or Pipelines. U will be able to write truly modular applications using them together with the Distributed Configuration mentioned by Thiago.

Re: Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 15:40:15 -0300, Lenny Primak wrote: Is there an executive summary of the differences or something like that? I am trying to decide whether to use Tapestry's IoC or J2EE CDI in my application. The only CDI I've used in the past is Google Guice. See http://blog.tapestr

Re: Handling form events inside components

2011-03-07 Thread Josh Canfield
I'd recommend doing some investigation into the form submission life cycle, especially in the context of a loop. Try putting some trace statements in your code so you can see when your various methods are getting called. If you are using the default formState of the loop then the values are actual

Differences between Tapestry IoC and J2EE 6 CDI

2011-03-07 Thread Lenny Primak
Is there an executive summary of the differences or something like that? I am trying to decide whether to use Tapestry's IoC or J2EE CDI in my application. The only CDI I've used in the past is Google Guice. Thanks - To unsubscri

Re: waitForPage / onDOMLoaded hybrid

2011-03-07 Thread Josh Canfield
Hi Paul. > I'm not sure what you mean by that statement Josh, I'm proposing a useful > utility method inseparable from the tapestry js api so that other users > don't have to write and embed the method themselves also. What I'm saying is that Tapestry isn't a general purpose javascript library. A

Re: Saving from an editable grid

2011-03-07 Thread robnangle
My two classes now look like: public class PlayerEncoder implements ValueEncoder, ValueEncoderFactory { private Connection conn; private PreparedStatement prep; @Property private Player temp1; private List players; public void createDb() th

Re: Passing value of Hidden Field Property to Javascript Function in .tml

2011-03-07 Thread surajknair
javascript: This is inside a .js file. function PreviewOverlay( linkClicked ) { if (linkClicked == 'print') { $('someformid').linkDestination.value = 'PrintingOverlay'; //Setting the hidden field value within the form. alert($('someformid').linkDestination.value);

Re: Property Expression: Unable to add method xy navigate

2011-03-07 Thread Howard Lewis Ship
What version of Tapestry are you using? This sounds familiar ... I suspect its a fixed bug. On Mon, Mar 7, 2011 at 2:21 AM, Jens Reufsteck wrote: > Hi, > > I'm using a property expression optionMaps.get(key).selected, which works > fine as component parameter, but doesn't work in a loop. > > I'm

Re: Translator to and From a List

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 13:52:51 -0300, Mark wrote: public class TopicsTranslator extends AbstractTranslator>{ Session session; public TopicsTranslator(Session session) { super("topics", List.class, "topics-format-exception"); this.session = session; } Why don't you i

Re: Passing value of Hidden Field Property to Javascript Function in .tml

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 13:53:01 -0300, surajknair wrote: Hi Guys, Hi! Please post your JavaScript code and template snippet. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação

Passing value of Hidden Field Property to Javascript Function in .tml

2011-03-07 Thread surajknair
Hi Guys, I have just started working on Tapestry 5.2.0 and there's something I need information on, probably I am stuck with it. I am using a hidden field in my .tml which is feeded value from a .js. So far everything is fine. Now I need to use the value from the hidden field into an onlick javas

Translator to and From a List

2011-03-07 Thread Mark
I am trying to create a translator that will let me create and edit a list of topics in a space separated text field. I want a string of space separated words to be translated to and from a list of List. So a text field that might look something like: Topics: apples oranges bananas Each topic i

Re: Quickstart for a IOC type project?

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 12:34:05 -0300, Angelo C. wrote: Hi, Hi! using mvn -DarchetypeArtifactId=quickstart -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.tapestry will create a complete Tapestry5 project. what I need is a Tapestry5 IOC project, no web tier, something similar to tapestr

Quickstart for a IOC type project?

2011-03-07 Thread Angelo C.
Hi, using mvn -DarchetypeArtifactId=quickstart -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.tapestry will create a complete Tapestry5 project. what I need is a Tapestry5 IOC project, no web tier, something similar to tapestry-upload, what is the command to create a project similar to that?

Re: Saving from an editable grid

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 12:10:55 -0300, robnangle wrote: So what your saying is to use the id to select the correct person from the database? Yes. Ant then in the other class, how do I use the encoder? @Property private PlayerEncoder encoder; void onPrepare() {

Re: Saving from an editable grid

2011-03-07 Thread robnangle
So what your saying is to use the id to select the correct person from the database? Ant then in the other class, how do I use the encoder? @Property private PlayerEncoder encoder; void onPrepare() { encoder = new PlayerEncoder(); } Anything else

Re: Saving from an editable grid

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 11:29:16 -0300, robnangle wrote: Is there any simple examples of value encoders out there? I seem to be only finding quite complex ones. In your case, it would be something like this: public class PersonValueEncoder implements ValueEncoder { public String toClien

Re: Saving from an editable grid

2011-03-07 Thread robnangle
Is there any simple examples of value encoders out there? I seem to be only finding quite complex ones. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Saving-from-an-editable-grid-tp3412259p3412513.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Handling form events inside components

2011-03-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Mar 2011 09:35:15 -0300, Stephan Windmüller wrote: What exactly is the difference between @Property and self-made getters and setters? If any, the code you put inside your own getters and setters. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate

Re: Saving from an editable grid

2011-03-07 Thread Thiago H. de Paula Figueiredo
Have you tried adding a Hidden component with the player id? Or, better yet, registering a ValueEncoder for your Player class? On Mon, 07 Mar 2011 08:27:50 -0300, robnangle wrote: Hi all jus seen topics on problems with editable graids and im having a problem, the problem is not in getting t

Re: Handling form events inside components

2011-03-07 Thread Stephan Windmüller
On 04.03.2011 19:47, Josh Canfield wrote: >> But when I change the data in the submit event like >> "onSelectedFromMoveUpButton". the sorting is overwritten by the form >> submission values. > How is it getting overwritten? How are you doing the ordering? What > you've described could work, here i

Re: Saving from an editable grid

2011-03-07 Thread robnangle
tml source: t:grid source="results1"/> t:grid t:source="players1" t:row="player" t:include="player_id,name,county,points"> p:pointsCell> Player points: ${player

Saving from an editable grid

2011-03-07 Thread robnangle
Hi all jus seen topics on problems with editable graids and im having a problem, the problem is not in getting the editable grid but in saving the data entered into the field. My Code: tml:

Property Expression: Unable to add method xy navigate

2011-03-07 Thread Jens Reufsteck
Hi, I'm using a property expression optionMaps.get(key).selected, which works fine as component parameter, but doesn't work in a loop. I'm getting the following exception message: Exception assembling root component of page CareerClub: Could not convert 'optionMaps.get(key).selected' int

Re: Exception starting filter test

2011-03-07 Thread Michal Gruca
yes you may give it any name, but contract in web.xml is: in provided package root (in your case tapDemo) it will search for package services and in it there should be a class App1.java so please check if you have following class tapDemo.services.App1.java -- View this message in context: http:/

Re: Tapestry 5 in Action book

2011-03-07 Thread Josh Kamau
Thans Igor, I will be waiting and watching, Josh. On Mon, Mar 7, 2011 at 12:31 PM, Igor Drobiazko wrote: > Hi Josh, > > the book is not ready to be printed yet but I have a good news. The MEAP > (Manning Early Access Program) is about to start. I just fixed the last > minor issues and will info

Re: Tapestry 5 in Action book

2011-03-07 Thread Igor Drobiazko
Hi Josh, the book is not ready to be printed yet but I have a good news. The MEAP (Manning Early Access Program) is about to start. I just fixed the last minor issues and will inform Manning that we are ready to start. I guess the publisher needs a week or two to start the MEAP. I'll post an annou

Re: Integrating tynamo tapestry-security (apache shiro)

2011-03-07 Thread Magnus Kvalheim
Hi Kalle - thanks for reply, I've created an issue for #1 http://jira.codehaus.org/browse/TYNAMO-87 --magnus On Fri, Mar 4, 2011 at 6:23 PM, Kalle Korhonen wrote: > On Fri, Mar 4, 2011 at 1:49 AM, Magnus Kvalheim > wrote: > > This post is mostly rela