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

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

2011-08-07 Thread dragan.sahpas...@gmail.com
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 &g

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, wrote: > Is there a way to just disable the selenium tests? > I, personally wou

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
ns 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

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 wrote: > Hi, > > I am attempting to build the SVN trunk. > When gradle build gets to t

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 wrote: > 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 > */before noon/ zone #1* an

Re: ActionLink not Search Engine safe?

2011-07-31 Thread dragan.sahpas...@gmail.com
On Sun, Jul 31, 2011 at 12:32 PM, PXZ 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 for publicly

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 comma

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 > > m

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. :) > > >

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 tha

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 here . When having two submit buttons you can identify which one is clicked by using the onSelected event.

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

Re: Delete confirmation with beaneditform

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

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 c

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 wrote: > > I use beaneditform to generate my CRUD UI and web tiers automagically. I >> would like to have Delete action prompt me to confirm or cancel the >>

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 wrote: > If you look in my fork of tapestry5-jquery on github > > https://github.com/trsvax/tapestry5-jquery > > there is a m

Re: Ajax Navigation

2011-07-24 Thread dragan.sahpas...@gmail.com
HI, On Sun, Jul 24, 2011 at 7:14 PM, stephanos2k wrote: > 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 (like history.js) should r

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 history.js

Re: Loop Map

2011-07-14 Thread dragan.sahpas...@gmail.com
Here is a short example: TML (not tested) key: ${key} - value: ${value} JAVA (not tested) private Map map; public Collection getKeys(){ return map.keyset(); } @Property private String key; public String getValue(){ return map.get(key); } Cheers, Dragan Sahpaski On Fri, Jul 15,

Re: Palette inside a beaneditor

2011-07-01 Thread dragan.sahpas...@gmail.com
Hi, On Fri, Jul 1, 2011 at 9:14 PM, Mark 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 beaneditor and ju

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 wrote: > Thank God I have only 1 :) > > > On Tue, Jun 28, 2011 at 12:47 PM, Chris Collins wrote: > > > Do you know what your uniques are, were those browser or rss reader > >

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 wrote: > I'm trying to create a simple form that will work for both Add a

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 wrote: > Hey all, > > the web application I'm developing depends on some resources which may > change on a regula

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
value="selectedLightboxName" label="literal:Add To Lightbox"/> > > > > On the Java side: > > public Object onSubmitFromAddToLightboxForm() > { > if (selectedLightboxName.equals(AddToLightboxModel.NEW_LIGHTBOX_NAME)) > { > return onAddToNewLightbox

Re: updating a zone on form submit

2011-06-01 Thread dragan.sahpas...@gmail.com
gt; 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

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 wrote: > Thanks for the info. Where exactly do I put the javascript dragon listed? > > On Wed, Jun 1, 2011

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 wrote: > Any idea how I can do this? When I return a

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

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,

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 b

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 wrote: > Can anyone advise on whether there is a global format setting that can be > applie

Re: GSOC 2011 ideas for custom components

2011-03-25 Thread dragan.sahpas...@gmail.com
On Fri, Mar 25, 2011 at 10:18 AM, Vangel V. Ajanovski wrote: > 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

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 st