Ajax loader vs ProgressiveDisplay ...

2011-08-17 Thread Gunnar Eketrapp
Hi! I need to add some ajax loader to my zone updates. Is it right that ProgressiveDisplay is not for this!? If right what is the "recommended" way of how to add an ajax loader to my T5 zone updates? Thanks in advance!

Re: Jumping to a new page

2011-08-17 Thread ixcoatl
That's a good suggestion indeed, but right now I'm having trouble with the most elementary stuff. I have get myself familiar with Tapestry and then start doing real fun stuff with it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Jumping-to-a-new-page-tp4706239p4710938.h

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread TG
Could you clarify with a sample codes of what you mean by "add a String getStoryExcerpt() methord that returns the excerpt."? Also, do I implement it in the Page? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t-type-grid-Excerpt-column-tp4708859p4710871.html S

Re: Passing parameters from one page to another

2011-08-17 Thread ixcoatl
Ok, now it's working as supposed to, I rewrote the grid like this: Borrar I put a Usuario property to map the rows at the page with the grid: @Property private Usuario usuario; ...to map the user, then at the page B

Re: Passing parameters from one page to another

2011-08-17 Thread ixcoatl
I guess it has a value since its shown in the browser. I'm gonna try with Borrar And see what happens. Cheers! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Passing-parameters-from-one-page-to-another-tp4710394p4710794.html

Re: Passing parameters from one page to another

2011-08-17 Thread Taha Tapestry
Check if nombre has any value for each row. Regards Taha On Aug 18, 2011, at 8:24 AM, ixcoatl wrote: > The url is this: > > http://localhost:8080/Volumetria/seguridad/borrarusuario > > So, no parameters shown, right? > > Cheers! > > -- > View this message in context: > http://tapestry.10

Re: Passing parameters from one page to another

2011-08-17 Thread ixcoatl
The url is this: http://localhost:8080/Volumetria/seguridad/borrarusuario So, no parameters shown, right? Cheers! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Passing-parameters-from-one-page-to-another-tp4710394p4710745.html Sent from the Tapestry - User mailing list

Re: Passing parameters from one page to another

2011-08-17 Thread Taha Hafeez
What is the url created in the markup for these links ? On Thu, Aug 18, 2011 at 5:26 AM, ixcoatl wrote: > Hi again, > > According to this page http://tapestry.apache.org/page-navigation.html , you > should be able to catch the parameters sent form one page to another with an > onActivate() method

Re: get component attribute

2011-08-17 Thread Howard Lewis Ship
Well, your component will have a field with a parameter: public class SomeComponent { @Parameter private int rowsPerPage; } If you modify the class to expose that value by adding: public int getRowsPerPage() { return rowsPerPage; } Or by adding @Property annotation to the rowsPerPage fi

Passing parameters from one page to another

2011-08-17 Thread ixcoatl
Hi again, According to this page http://tapestry.apache.org/page-navigation.html , you should be able to catch the parameters sent form one page to another with an onActivate() method. In my case I have something like this in one page: Borrar

Re: get component attribute

2011-08-17 Thread locoder
The reason is that the component which is used on the page is from a Library which all new projects are based on. So I dont want to change the component to take "prop:rowsPerPage" instead of just rowsPerPage for deployment reasons also. So I want the ajax functionality to integrate seemles into m

Re: Chaining of Select components

2011-08-17 Thread Chris-1977
I should add that if I remove the @Persist annotation from availableModels, the onValueChanged method does exist, as shown by the log: [DEBUG] pages.Contact [ENTER] onValueChanged(AUDI) [DEBUG] pages.Contact [ EXIT] onValueChanged [Block[Body of Contact:modelzone, at classpath:com/example/tutorial

Re: get component attribute

2011-08-17 Thread Howard Lewis Ship
I'm actually not following you. Could you provide a working example with the new property, and identify exactty what you don't like about it? On Wed, Aug 17, 2011 at 2:55 PM, locoder wrote: > Thanks, > this was helpful. > > I need a custom attribute of a an arbitrary custom component used on a p

Re: get component attribute

2011-08-17 Thread locoder
Thanks, this was helpful. I need a custom attribute of a an arbitrary custom component used on a page Template in my Page Class. In my case the attribute is rowsPerPage. I need this for constructing an ajax call to know how many items to reload and to be able to count them. But i dont want to

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Lenny Primak
That's why I switched to Glassfish from JBoss for this project. Don't regret it one bit! On Aug 17, 2011, at 5:50 PM, Chris Mylonas wrote: > This is true. > > On 18/08/2011, at 6:26 AM, Lenny Primak wrote: > >> The biggest advantage of using glassfish is that everything is >> pre-configured fo

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Chris Mylonas
This is true. On 18/08/2011, at 6:26 AM, Lenny Primak wrote: > The biggest advantage of using glassfish is that everything is pre-configured > for you, > you don't need to deal with any dependencies, no putting stuff together > yourself, > it 'just works' and y you get everything - Tapestry, RE

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Aug 2011 17:20:27 -0300, Magnus Kvalheim wrote: Aren't those interchangeable so that it will work same as tapestry's @inject? Yes. wouldn't that conflict with tapestry 5.3? I don't think so, but I haven't tried it yet. What about you trying it and posting the results, as yo

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Lenny Primak
The biggest advantage of using glassfish is that everything is pre-configured for you, you don't need to deal with any dependencies, no putting stuff together yourself, it 'just works' and y you get everything - Tapestry, REST, WebServices, EJB, the whole stack with zero effort. On Aug 17, 2011

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Magnus Kvalheim
On Wed, Aug 17, 2011 at 6:12 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 17 Aug 2011 12:08:12 -0300, Magnus Kvalheim > wrote: > > I'm are still very interested in moving from tomcat to a EE6 server like >> glassfish in order to adopt standards and benefit from the new

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Magnus Kvalheim
Hi Lenny, On Wed, Aug 17, 2011 at 5:41 PM, Lenny Primak wrote: > Can you create a github project for cdimodule? I would love to be a part > of that. > I have not yet tried git - so this could be a good excuse for that :) I'll look into that soon - would be cool to have other try and possibly c

Re: get component attribute

2011-08-17 Thread Howard Lewis Ship
Property expressions are rooted on the instance corresponding to the template. So you could define a getRowsPerPage() property in Index.java and reference it in your template: Then you could pass the same property to some other component and they would stay syncrhonized: So the page "drives

get component attribute

2011-08-17 Thread locoder
Hi guys, im new to tapestry 5 and have a question which maybe is easy for you. I have a component on a *index * page like this. rowsPerPage="4"* source="xz/> My Question: Is it possible to get the attribute rowsPerPage in my index.java, althouth its a different component? I already did this in

Re: Services and ApplicationStateManager

2011-08-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Aug 2011 14:11:23 -0300, Cq Cq wrote: Hi Thiago, Hi! Thanks for taking the time and catching the ifExists error. I put the synchronized there just because of what I read in http://tapestry.1045711.n5.nabble.com/Threading-and-SSOs-again-td3276880.html The OP said he had app stat

Re: [tapx-yui] RichTextEditor: Unable to locate asset when in production mode

2011-08-17 Thread Howard Lewis Ship
On Wed, Aug 17, 2011 at 9:48 AM, Lackers wrote: > 1000 apologies Mr Lewis for my lazy post. > However, you are brilliant and have fixed my problem. > Stupidly as you suspected my .js file was not under > src/main/resources >  but under > src/main/java > > I love tapestry and will endeavour to lear

Re: [tapx-yui] RichTextEditor: Unable to locate asset when in production mode

2011-08-17 Thread Lackers
1000 apologies Mr Lewis for my lazy post. However, you are brilliant and have fixed my problem. Stupidly as you suspected my .js file was not under src/main/resources but under src/main/java I love tapestry and will endeavour to learn more about it before posting any more foolish questions. Than

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Aug 2011 13:27:23 -0300, Robert Zeigler wrote: Pretty sure that should be: ${storyExceprt} Ooops, thanks Robert! :D -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Inform

Re: [tapx-yui] RichTextEditor: Unable to locate asset when in production mode

2011-08-17 Thread Howard Lewis Ship
This is unrelated. Either comsys/newsint/co/uk/mixins/ajax_periodic_updater.js is not under src/main/resources (or equivalent), or your IDE/build script is not packaging it into your WAR. The first thing you do is rule out your environment as the problem, and since you didn't bother to explain wh

Services and ApplicationStateManager

2011-08-17 Thread cqasker
Hey everyone, I am pretty new to Tapestry5 -- have been a user of Tapestry 4 for over 5 years though. Finally got the balls to upgrade to 5. My question is in regards to how to integrate application state managers into my app in tapestry. I read http://tapestry.1045711.n5.nabble.com/Threading-an

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Robert Zeigler
Pretty sure that should be: ${storyExceprt} Cheers, Robert On Aug 17, 2011, at 8/1711:24 AM , Thiago H. de Paula Figueiredo wrote: > On Wed, 17 Aug 2011 13:06:22 -0300, TG wrote: > >> I am trying to display a table using grid and one of the column are the >> details of a story, but in the st

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Taha Tapestry
Use JavaScript. Regards Taha On Aug 17, 2011, at 9:36 PM, TG wrote: > I am trying to display a table using grid and one of the column are the > details of a story, but in the start page, I would like an excerpt of that > column. Meaning the text should be truncated to say first 100 characters

Re: t:type="grid" "Excerpt" column

2011-08-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Aug 2011 13:06:22 -0300, TG wrote: I am trying to display a table using grid and one of the column are the details of a story, but in the start page, I would like an excerpt of that column. Meaning the text should be truncated to say first 100 characters. Hi! Just use ${storyE

Re: [tapx-yui] RichTextEditor: Unable to locate asset when in production mode

2011-08-17 Thread Lackers
Hi, I'm getting a similar error whilst trying to import some javascript: org.apache.tapestry5.ioc.internal.OperationException Unable to locate asset 'classpath:comsys/newsint/co/uk/mixins/ajax_periodic_updater.js' (the file does not exist). Stack trace org.apache.tapestry5.internal.services.Asse

t:type="grid" "Excerpt" column

2011-08-17 Thread TG
I am trying to display a table using grid and one of the column are the details of a story, but in the start page, I would like an excerpt of that column. Meaning the text should be truncated to say first 100 characters. What is the best way to do this? With minimal codes in Tapestry 5? Thanks.

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Lenny Primak
Can you create a github project for cdimodule? I would love to be a part of that. Regarding live class reloading, my solution to that was to use 'skinny' war files and put tapestry jars into domain/lib directory in glassfish. This makes redeploys Lightning fast and glassfish saves session sta

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Lenny Primak
On Aug 17, 2011, at 11:08 AM, Magnus Kvalheim wrote: > I'm are still very interested in moving from tomcat to a EE6 server like > glassfish in order to adopt standards and benefit from the new stuff. > > Have not found time to actually replace spring with cdi in our apps. > There were also s

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Magnus Kvalheim
I'm are still very interested in moving from tomcat to a EE6 server like glassfish in order to adopt standards and benefit from the new stuff. Have not found time to actually replace spring with cdi in our apps. There were also stuff we need to find a different solution for when moving away from s

Re: Jumping to a new page

2011-08-17 Thread Ray Nicholus
Instead of a page for the confirm dialog, why not use an eventlink w/ a "confirm" mixin? On Wed, Aug 17, 2011 at 12:05 AM, ixcoatl wrote: > Everything worked as you said, t:pagelink instead of t:actionlink, and > @InjectPage instead of @Inject. > > The silly part is that I had used both techniqu

Confused by mixins render order. Bug?

2011-08-17 Thread Barry Books
I created a test page with some test mixins. The page contains stuff The M1,M2 mixins do something like this void beginRender() { logger.info("begin m1"); } void afterRender() { logger.info("after m1"); } I

Possible BUG in 5.3-alpha-13 : Parameter in Child default value in Parent throws Exception

2011-08-17 Thread dragan.sahpas...@gmail.com
Hi, I would like to know if the following is a bug or a feature of tapestry 5.3 because it works in 5.2.5. I get the following exception: Unable to locate Method public java.lang.String getDefaultParam1(): com.test.components.Child.getDefaultParam1() Child.tml http://tapestry.apache.org/schema/ta

Using OWASP - ESAPI

2011-08-17 Thread antalk
Hi all, Just yesterday i joined a course on java and security and i was pointed to a free open source security library from the OWASP group: https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API OWASP ESAPI It might be an idea to use this library for user input validation and f