Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-13 Thread karthi
I've seen your answer, Thank you very much for continuously helping me... Was looking for some tapestry code or a trick... Atlast one of my friends suggest me to add a property called position in pojo class & set the value of the index to that when setting values for other items & in tml page insi

Re: Tapx website is down ?

2012-03-13 Thread Yohan Yudanara
ok.. thanks a lot.. btw, link to tapx on tapestry homepage http://tapestry.apache.org/ still points to tapestry formos website. On Wed, Mar 14, 2012 at 10:18 AM, Thiago H. de Paula Figueiredo wrote: > On Wed, 14 Mar 2012 00:04:44 -0300, Yohan Yudanara > wrote: > >> Hi, > > > Hi! > > >> I've tri

Re: Tapx website is down ?

2012-03-13 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Mar 2012 00:04:44 -0300, Yohan Yudanara wrote: Hi, Hi! I've tried to access Tapestry Tapx website on http://tapestry.formos.com/projects/tapx/ since yesterday, but it's down. Is it moved to another site? http://tapestry.1045711.n5.nabble.com/Tapx-repository-td3347129.html --

Tapx website is down ?

2012-03-13 Thread Yohan Yudanara
Hi, I've tried to access Tapestry Tapx website on http://tapestry.formos.com/projects/tapx/ since yesterday, but it's down. Is it moved to another site? Thanks in advance.. - To unsubscribe, e-mail: users-unsubscr...@tapestry.a

Re: [ANN] A Tapestry5 Based Security Module

2012-03-13 Thread Taha Hafeez Siddiqi
Hi Kalle I really enjoy it. It's 'plug-n-play' tapestry integration makes it suitable for small projects and Shiro's concept of permissions & roles for both object level and class level can handle complicated requirements as well. So, for me, no matter what the project requirements are, tapestr

Re: How to represent this?

2012-03-13 Thread TechniciuM
This solution is not bad at all, however is there any other possibility avoiding Blocks? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-represent-this-tp5558903p5563051.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to represent this?

2012-03-13 Thread TechniciuM
Well I have Fruit.tml and Fruit.java page and MenuFruit.java and MenuFruit.tml component. Now I want to based on what page is clicked, using Menu.java strictly denote particular menu for the specific page, ie MenuFruit.java is called via Menu.java for MenuFruit.tml. That MenuFruit.tml is a componen

Re: How to represent this?

2012-03-13 Thread Josh Canfield
Ah. That seems poorly decomposed. Why are you creating a MenuFruits.java component? Is the behavior of the Fruits so drastically different than the Meats and Vegetables? On Tue, Mar 13, 2012 at 3:16 PM, TechniciuM wrote: > That's not exactly what I was looking for, but thanks for the effort. Her

Re: How to represent this?

2012-03-13 Thread Robert Zeigler
Still not seeing why the basic general approach I outlined wouldn't work, only now you have a formal parameter. menu.java: @Parameter @Property private Block menutype; menu.tml: Alternatively, have menu render the body, which simplifies things further: menu.tml:

Re: How to represent this?

2012-03-13 Thread Josh Canfield
I can't really follow what you are saying here. You asked about categorized pages, I assumed they were parameterized and not actually new .tml files for each category. Is that what you are saying here? Are you building Fruit.tml, Vegetable.tml? and you want to put a component on them that figures

Re: How to represent this?

2012-03-13 Thread TechniciuM
That's not exactly what I was looking for, but thanks for the effort. Here is the image of what I am at least trying to achieve. Hope you will understand it now. http://imageshack.us/photo/my-images/839/tapestry.png/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-r

Re: How to represent this?

2012-03-13 Thread Robert Zeigler
Hm. Why not pass your "menu" component a list of menu items? Then each page can define the menu items it wants? You could do something like: additional markup additional markup And now, inside of menu.tml, you can do something like: menu.java: @

Re: How to represent this?

2012-03-13 Thread TechniciuM
The thing is that I want to make components( each component has it's own menu ) and each component( menu ) corresponds to some particular page, so for instance if I had a meat menu component and fruit menu component, once clicked on fruit page it gives me just fruit menu. So I will somehow need to

Re: Disable validation on submit button

2012-03-13 Thread George Christman
by the way I'm using the submit button mode cancel, however it doesn't prevent sever side validation. Is there a way for me to pass a value back to the backend from the button preventing server side validation? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-validat

Re: Disable validation on submit button

2012-03-13 Thread George Christman
Hi Thiago, thanks for the response, however it doesn't completely answer my question. I'll try to explain this a little better. I have two submit buttons, one called Save Changes, the other called Submit Changes. Although a particular field may have two types of validation at render, they both ma

Re: Disable validation on submit button

2012-03-13 Thread Thiago H. de Paula Figueiredo
On Tue, 13 Mar 2012 16:27:47 -0300, George Christman wrote: Hello, I have a form that contains multiple submit buttons. One button saves data, the other submits to the next state. I'm looking to disable the validation required fields on save while still being able to validate data integr

Disable validation on submit button

2012-03-13 Thread George Christman
Hello, I have a form that contains multiple submit buttons. One button saves data, the other submits to the next state. I'm looking to disable the validation required fields on save while still being able to validate data integrity like email, digits etc. However on submit, all validation would be

Re: How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread wesleywj2
hi, thanks for all of your pointer, i got it work. thank you wesley -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-update-the-third-party-library-as-maven-dependency-into-T5-3-project-tp5561813p5561986.html Sent from the Tapestry - User mailing list archive at Nab

Re: How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread Thiago H. de Paula Figueiredo
On Tue, 13 Mar 2012 14:33:59 -0300, wesleywj2 wrote: hi, Hi! Adding dependencies to a Maven project isn't related to Tapestry at all, so this question shouldn't have been posted to a Tapestry mailing list. ;) But I'm in a good mood, so please take a look here: http://maven.apache.org

Re: How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread Dmitry Gusev
Try this: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html On Tue, Mar 13, 2012 at 21:33, wesleywj2 wrote: > hi, > > i'm new to maven project build, i successfully build a maven project of > T5.3 > and load to my eclipse IDE as workspace. everything work as expected with > je

Re: How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread Kalle Korhonen
http://lmgtfy.com/?q=ojdbc6.jar+maven first result: http://cdivilly.wordpress.com/2009/07/16/add-oracle-jdbc-jar-to-maven-repository/ Kalle On Tue, Mar 13, 2012 at 10:33 AM, wesleywj2 wrote: > hi, > > i'm new to maven project build, i successfully build a maven project of T5.3 > and load to my

How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread wesleywj2
hi, i'm new to maven project build, i successfully build a maven project of T5.3 and load to my eclipse IDE as workspace. everything work as expected with jetty run and view on the sample app. but i wanted to include the oracle jdbc driver ojdbc6.jar as my project dependency. how do i do that? i h

Re: [ANN] A Tapestry5 Based Security Module

2012-03-13 Thread Kalle Korhonen
On Tue, Mar 13, 2012 at 5:54 AM, Taha Hafeez Siddiqi wrote: > I have myself using tapestry-security for most of my projects and that is > what I will recommend to you too. It is powered by Apache Shiro and is hosted > at tynamo.org. > http://tynamo.org/tapestry-security%20guide Thanks for the e

T5.3.2 @ReorderProperties and app.properties

2012-03-13 Thread stipenovi
Hi all. I have 2 questions: First, I have 3 module application: model, persistence and web. In my model I have my business classes with hibernate, hibernate-search and tapestry5 annotations. In persist i put my service implementations and spring configuation, connection to db etc... In web module

Re: How to represent this?

2012-03-13 Thread Josh Canfield
I assume that's a response to me, bu there's no context... That really depends on how you are going to render your menu items. For a menu I'd probably handle it by generating the list of items in java and using the tml to render it. ${menuItem.label} Off the top of my head... On Mon, Mar 12

Re: problem logging into webapp using acegi

2012-03-13 Thread Jonathan Barker
Java string comparisons are case sensitive. Beyond that, you would have to ask an Acegi / Spring Security dev. On Tue, Mar 13, 2012 at 1:39 AM, harishpatarla wrote: > johnathan could you please tell me the reason y roles should be in uppercase > > -- > View this message in context: > http://tap

Re: [ANN] A Tapestry5 Based Security Module

2012-03-13 Thread Taha Hafeez Siddiqi
Hi Gaurav I have myself using tapestry-security for most of my projects and that is what I will recommend to you too. It is powered by Apache Shiro and is hosted at tynamo.org. http://tynamo.org/tapestry-security%20guide regards Taha On Mar 13, 2012, at 1:36 PM, gaurav wrote: > Hi Taha, > W

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-13 Thread Thiago H. de Paula Figueiredo
On Tue, 13 Mar 2012 08:28:18 -0300, karthi wrote: Anyone help me? Can't able to do that Have you seen my answer? Basically, if you want to read something after the HTML is rendered, you need to store this something in HTML or JavaScript in some way. I've already suggested one easy way o

Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-13 Thread karthi
Anyone help me? Can't able to do that -- View this message in context: http://tapestry.1045711.n5.nabble.com/Is-there-any-way-to-get-the-selected-item-s-index-in-loop-after-layout-has-been-done-tp5557270p5560679.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Simple CMS / content editor component

2012-03-13 Thread Dragan Sahpaski
On Tue, Mar 13, 2012 at 11:24 AM, Lance Java wrote: > Ok, just be very careful. For instance if you force a top level directory > > File file = new File(TOP_LEVEL, request.getParamter("file"); > > A hacker can still try > http://site/read-file?file=../../../admin/passwords.xml Yes nice example.

Re: Simple CMS / content editor component

2012-03-13 Thread Lance Java
Ok, just be very careful. For instance if you force a top level directory File file = new File(TOP_LEVEL, request.getParamter("file"); A hacker can still try http://site/read-file?file=../../../admin/passwords.xml If I were you, I would abstract reading from / writing to files by a Resource inte

Re: Simple CMS / content editor component

2012-03-13 Thread Dragan Sahpaski
Hey Lance, Thanks for taking time to look at this. The code you suggested is a servlet implementation of the javascript editor component. We won't use this approach. The javascript component will be integrated with tapestry and the request/response cycles will be passing parameters in urls/getting

Re: Simple CMS / content editor component

2012-03-13 Thread Lance Java
I'm always very wary of servlets that allow access to a filename passed in as a request parameter... you are potentially opening up complete access to your server if you are not careful. Before introducing something like this into your application you must do a security audit on it https://github.

Re: Simple CMS / content editor component

2012-03-13 Thread Dragan Sahpaski
Hi Ville, We decided to go with http://elfinder.org/. The discussion is on the tynamo dev list. It's BSD licensed, the code is pretty clean, it's actively developed. and it looks pretty stable. I'll integrate it very shortly (this week) and give you a link to a demo, or just follow the list. If it

Re: Simple CMS / content editor component

2012-03-13 Thread Ville
Hi, CKFinder is commercial product with no freeware licensing model afaik. However their prices are so low that I'd be happy to pay if the product is good. Then the ckeditor component should only provide a bridge to their java implementation and let the developer using the component to provide the

Re: Serving Tapestry5 Assets As Static Resources

2012-03-13 Thread Paul Stanton
yes i meant the minimizer, but howard has also hinted tapestry may do more modification in future: Re: Versioned assets (22/02/2012 6:05 AM) "The perfect solution would involve the following: - The version number if replaced with the SHA1 hash of the resource's (uncompressed) content - All CS

Re: Simple CMS / content editor component

2012-03-13 Thread Lance Java
If you are editing raw html or javascript then you should also consider the Ace code editor http://ace.ajax.org/ Mozilla tri-license (MPL/GPL/LGPL) Demo here http://ace.ajax.org/build/kitchen-sink.html Cheers, Lance. On Sunday, 11 March 2012, Dragan Sahpaski wrote: > Hi, > On Sun, Mar 11, 2012

Re: [ANN] A Tapestry5 Based Security Module

2012-03-13 Thread gaurav
Hi Taha, When i click the link I got error 403. The link is http://code.google.com/p/tapestryauth Is there any other way to get access this code. Actually I need role based security in my app. And one more thing I want to say I like your blog but some of