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 t:container

Re: SVN trunk, gradle build hangs @ Building :tapestry-beanvalidator:test

2011-08-07 Thread dragan.sahpas...@gmail.com
Hi, Which version of firefox do you have? the current selenium version in t5 is compatible with 3.6 but not with firefox 4 and firefox 5. Cheers, Dragan Sahpaski On Sun, Aug 7, 2011 at 10:39 PM, Jon Williams williams.jonat...@gmail.comwrote: Hi, I am attempting to build the SVN trunk.

Re: SVN trunk, gradle build hangs @ Building :tapestry-beanvalidator:test

2011-08-07 Thread dragan.sahpas...@gmail.com
multiple versions of Firefox on OSX. The trick will be getting the 3.6 version to be default. thanks On Sun, Aug 7, 2011 at 1:44 PM, dragan.sahpas...@gmail.com dragan.sahpas...@gmail.com wrote: Hi, Which version of firefox do you have? the current selenium version in t5 is compatible

Re: SVN trunk, gradle build hangs @ Building :tapestry-beanvalidator:test

2011-08-07 Thread dragan.sahpas...@gmail.com
If you use eclipse just run eclipse:eclipse (generates classpath entries for eclipse) and import the project as an existing project in eclipse and it will build it for you. Otherwise, just run gradle tasks and you will see all available tasks. Here are some of the tasks. assemble - Assembles all

Re: SVN trunk, gradle build hangs @ Building :tapestry-beanvalidator:test

2011-08-07 Thread dragan.sahpas...@gmail.com
Oh, and if you explicitly want to disable tests just change the enabled attribute from true to false for individual tests in src-test-conf-testng.xml Cheers, Dragan Sahpaski On Sun, Aug 7, 2011 at 11:25 PM, lpri...@hope.nyc.ny.us wrote: Is there a way to just disable the selenium tests? I,

Re: SVN trunk, gradle build hangs @ Building :tapestry-beanvalidator:test

2011-08-07 Thread dragan.sahpas...@gmail.com
into this whether I can disable selenium tests only, not all unit tests. dragan.sahpas...@gmail.com ** wrote:** Oh, and if you explicitly want to disable tests just change the enabled attribute from true to false for individual tests in src-test-conf-testng.xml Cheers, Dragan Sahpaski

Re: How to use a different zone to update after the AJAX submit?

2011-08-05 Thread dragan.sahpas...@gmail.com
On Fri, Aug 5, 2011 at 5:23 PM, stephanos2k stephan.beh...@googlemail.comwrote: Let's assume I have *2 zones* and *1 event link*. I set up the event link to update zone #1 with the current time on click (zone=zone1). What if, on the server-side after the submit is issued, I decide that

Re: ActionLink not Search Engine safe?

2011-07-31 Thread dragan.sahpas...@gmail.com
On Sun, Jul 31, 2011 at 12:32 PM, PXZ pragprog...@gmail.com wrote: Taha Hafeez wrote: A link can be used for updates. As a developer it is our responsibility to ensure that such a link is only available to properly authenticated users. And what if the link action should be available

Re: Checkout of tapestry-project not working

2011-07-30 Thread dragan.sahpas...@gmail.com
On Sat, Jul 30, 2011 at 8:44 PM, nillehammer tapestry.nilleham...@winfonet.eu wrote: I have been trying to checkout the Tapestry sources for some days now. Haven't succeeded. I have followed the instructions given here: http://tapestry.apache.org/community.html Namely using this command:

Re: Form using both a zone and no zone.

2011-07-27 Thread dragan.sahpas...@gmail.com
On Tue, Jul 26, 2011 at 11:48 PM, nillehammer tapestry.nilleham...@winfonet.eu wrote: Dragan Sahpaski wrote: Interesting, As I never had used annotations for event handlers in any project so far. I choose the name of the event to imply what is needed to be done in the method, which

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
Hi, On Tue, Jul 26, 2011 at 5:15 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 25 Jul 2011 23:29:20 -0300, TG tapestry...@hotmail.com wrote: I use beaneditform to generate my CRUD UI and web tiers automagically. I would like to have Delete action prompt me to confirm

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
Hi, On Tue, Jul 26, 2011 at 2:13 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 26 Jul 2011 04:38:39 -0300, dragan.sahpas...@gmail.com dragan.sahpas...@gmail.com wrote: Just customize the bean edit form by adding a delete button, by copying the entire tml and java

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
similar to it with this delete functionality. Cheers, Dragan Sahpaski regards Taha On Tue, Jul 26, 2011 at 6:47 PM, dragan.sahpas...@gmail.com dragan.sahpas...@gmail.com wrote: Hi, On Tue, Jul 26, 2011 at 2:13 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 26 Jul

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
On Tue, Jul 26, 2011 at 3:49 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 26 Jul 2011 10:31:28 -0300, dragan.sahpas...@gmail.com dragan.sahpas...@gmail.com wrote: Yes sure I agree, but I guess It cannot be done inside the BeanEditForm unless you introduce a new

Re: Form using both a zone and no zone.

2011-07-26 Thread dragan.sahpas...@gmail.com
Hi, When you submit a form using ajax you can return a Link that will send a redirect read more in the doc herehttp://tapestry.apache.org/ajax-and-zones.html#AjaxandZones-EventHandlerReturnTypes . When having two submit buttons you can identify which one is clicked by using the onSelected event.

Re: Form using both a zone and no zone.

2011-07-26 Thread dragan.sahpas...@gmail.com
I wasn't aware you had nested zones. Please paste the code here. It probably is the case that when the outer zone gets updated, tapestry changes the id of the inner zone, so if you wire the inner zone to the form using the zone paramter with a literal value of the id, than the form cannot find

Re: Form using both a zone and no zone.

2011-07-26 Thread dragan.sahpas...@gmail.com
On Tue, Jul 26, 2011 at 9:48 PM, nillehammer tapestry.nilleham...@winfonet.eu wrote: Thiago H. de Paula Figueiredo wrote: By the way, any event in Tapestry can be handled by using an annotation in the method instead of relying on naming conventions. It's your choice. :) That cannot

Re: Ajax Navigation

2011-07-25 Thread dragan.sahpas...@gmail.com
Nice, Do you have some tests for it to see it in action? I couldn't find any using the bind mixin. Cheers, Dragan Sahpaski On Mon, Jul 25, 2011 at 2:12 AM, Barry Books trs...@gmail.com wrote: If you look in my fork of tapestry5-jquery on github https://github.com/trsvax/tapestry5-jquery

Re: Ajax Navigation

2011-07-24 Thread dragan.sahpas...@gmail.com
Hi, The approach in general is either use HTML5 history (works for html5 compatible browsers only), or use the hash change mechanism. As far as I know there is no out of the box integration with tapestry5, but there are various js scripts like the

Re: Ajax Navigation

2011-07-24 Thread dragan.sahpas...@gmail.com
HI, On Sun, Jul 24, 2011 at 7:14 PM, stephanos2k stephan.beh...@googlemail.comwrote: Thanks a lot for your post! :-) I looked at what you suggested, are there any hints/tips on how to integrate such functionality with Tapestry? Well it's obviously not trivial. I suppose a JS script

Re: Loop Map

2011-07-15 Thread dragan.sahpas...@gmail.com
Here is a short example: TML (not tested) t:loop source=keys value=key key: ${key} - value: ${value} /t:loop JAVA (not tested) private MapString, String map; public CollectionString getKeys(){ return map.keyset(); } @Property private String key; public String getValue(){ return

Re: Palette inside a beaneditor

2011-07-01 Thread dragan.sahpas...@gmail.com
Hi, On Fri, Jul 1, 2011 at 9:14 PM, Mark mark-li...@xeric.net wrote: I have a beaneditor inside an Ajax loop that is inside a form. One of the attributes needs to be a palette. When I try to simply add it as a parameter, it doesn't show up. It looks like it would work if I skip using the

Re: Java Magic has 10000+ hits

2011-06-28 Thread dragan.sahpas...@gmail.com
I have you on my rss reader. I'm I the only one? Cheers, Dragan Sahpaski On Tue, Jun 28, 2011 at 9:20 AM, Taha Hafeez tawus.tapes...@gmail.comwrote: Thank God I have only 1 :) On Tue, Jun 28, 2011 at 12:47 PM, Chris Collins chris...@me.com wrote: Do you know what your uniques are, were

Re: onPrepare(Integer id)

2011-06-13 Thread dragan.sahpas...@gmail.com
Hi, You are not missing anything. Insert an onPrepare() with no arguments. tapestry will not call onPrepare(Integer officeId) with null for officeId. Cheers, Dragan Sahpaski On Mon, Jun 13, 2011 at 5:54 PM, Tony Nelson tnel...@starpoint.com wrote: I'm trying to create a simple form that

Re: Easiest way to communicate with the WebApp

2011-06-12 Thread dragan.sahpas...@gmail.com
Hi, You can start a thread in your AppModule with a @Startup method and poll for changes on a regular interval. Cheers, Dragan Sahpaski On Sun, Jun 12, 2011 at 1:22 PM, Erik Fäßler erik.faess...@uni-jena.dewrote: Hey all, the web application I'm developing depends on some resources which

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
Probably the request is not ajax. You can do it like this, but don't forget to bind the zone parameter in the form $('formId').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT); Cheers, Dragan Sahpaski On Wed, Jun 1, 2011 at 3:39 PM, Ray Nicholus rnicho...@widen.com wrote: Any idea how I can do

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
For example use it in a submit element like this: onchange=$('formId').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT); Cheers, Dragan Sahpaski On Wed, Jun 1, 2011 at 4:04 PM, Ray Nicholus rnicho...@widen.com wrote: Thanks for the info. Where exactly do I put the javascript dragon listed? On

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
it will and will not be called. On Wed, Jun 1, 2011 at 9:08 AM, dragan.sahpas...@gmail.com dragan.sahpas...@gmail.com wrote: For example use it in a submit element like this: onchange=$('formId').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT); Cheers, Dragan Sahpaski On Wed, Jun 1

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
(AddToLightboxModel.NEW_LIGHTBOX_NAME)) { return onAddToNewLightbox(); } onAddToLightbox(); return this; } On Wed, Jun 1, 2011 at 9:29 AM, dragan.sahpas...@gmail.com dragan.sahpas...@gmail.com wrote: It works good for me. Paste the entire code here. Cheers, Dragan Sahpaski On Wed, Jun 1

tapestry-hibernate TypeCoercers

2011-05-31 Thread dragan.sahpas...@gmail.com
Hi, Is there a reason why tapestry-hibernate does not provide a TypeCoercer between String-EntityType or ID-EntityType. it provides ValueEncoders and the implementation would be pretty much the same. I have a problem when I re-throw an event from an triggered from an eventLink. If I catch the

Render a block and a div in render phase methods

2011-05-30 Thread dragan.sahpas...@gmail.com
Hi, I just can't wrap my head around on how to do the following. @Parameter private Block block; void afterRender(MarkupWriter writer) { writer.element(div); // here I want to render the block writer.end(); } I cannot use tml template and also I cannot implement this is different passes of

Re: Render a block and a div in render phase methods

2011-05-30 Thread dragan.sahpas...@gmail.com
OK got it sorry. The solution was to use the RenderCommand pushing multiple RenderCommands in the RenderQueue. I was just doing it in the wrong order. Cheers, Dragan Sahpaski On Mon, May 30, 2011 at 10:26 AM, dragan.sahpas...@gmail.com dragan.sahpas...@gmail.com wrote: Hi, I just can't

Re: GSOC 2011 ideas for custom components

2011-03-25 Thread dragan.sahpas...@gmail.com
Sahpaski On Fri, Mar 25, 2011 at 10:18 AM, Vangel V. Ajanovski a...@ii.edu.mkwrote: On 03/24/2011 09:10 PM, dragan.sahpas...@gmail.com wrote: 2. Grid enhacements: 1. better pager, 2. sorting params go in URL, 3. Better HibernateDataSource (more generic). 4.Changing column order and visibility

Re: Dateformat

2011-03-25 Thread dragan.sahpas...@gmail.com
IDK of there is an easier way, but you can make new DisplayBlockContribution only for Date.class and format the date as you like. Cheers, Dragan Sahpaski On Fri, Mar 25, 2011 at 1:39 PM, Jim O'Callaghan j...@peritussolutions.comwrote: Can anyone advise on whether there is a global format

GSOC 2011 ideas for custom components

2011-03-24 Thread dragan.sahpas...@gmail.com
Dear users, I'm applying for GSOC 2011 to work on tapestry and I really hope you can give ideas on what you like too see as a part of tapestry. Maybe focus on some new custom components that you think will popularize the framework more and be useful for the majority of users. Please fill free to