Re: T4.1 - Exceptions handling

2007-05-15 Thread Wojtek Ciesielski
Andreas Andreou wrote: like http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html ? Btw - no, not like this. The page you've provided show how to change handling page for a given set of predefined exceptions (if I understand it well). I need to handle my own application

Re: T4.1 - Exceptions handling

2007-05-15 Thread Wojtek Ciesielski
Andreas Andreou wrote: like http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html ? Mea culpa. I thought that "development" part is for people who want to contribute to Tapestry Thanks anyway, Wojtek ---

T4.1 - Exceptions handling

2007-05-15 Thread Wojtek Ciesielski
Hi there, Is there any document describing how to customize handling of application exceptions (using hivemind I suppose) with Tapestry 4.1? Thanks in advance, Wojtek

Re: [T4.1] FOR-based components rendered nested WITHIN themselves

2007-05-05 Thread Wojtek Ciesielski
I've solved it... The problem was, that within my @SummaryBar component there was a DIV like this: And @Any component attached to the DIV tag with empty contents was breaking enclosing @For iterators... Hi all, I have a following problem with rendering components in T4.1... On a page

[T4.1] FOR-based components rendered nested WITHIN themselves

2007-05-05 Thread Wojtek Ciesielski
Hi all, I have a following problem with rendering components in T4.1... On a page I have following code: allCount="literal:5" newCount="literal:0" linkCssClass="" label="ognl:currentItemType" linkId="ognl:id">Here comes bar with type and idicators

Keeping JavaScripts in a .js file instead of .script

2007-04-06 Thread Wojtek Ciesielski
Hi there, Is there ANY sensible way to keep component's javascript in a .js file instead of that .script XML one? Because of an XML format I can't use any syntax-colouring editor with it, also all < > or & chars need to be encoded as an HTML entities... What on earth caused anybody to use XML

Re: So a simple question in place of earlier one...

2007-04-04 Thread Wojtek Ciesielski
Sam Gendler wrote: Generally, you would make sure the page implements the IExternalPage interface. That allows you to specify parameters in a link and ... --sam Thanks a lot Wojtek -- Wideofelietony Tadeusza Mosza. O biz

So a simple question in place of earlier one...

2007-04-04 Thread Wojtek Ciesielski
Hi can I obtain full textual (ie. as a String) URL to a page with some parameters? Let's say that I have a page PageBeingCalled with a string property: public class PageBeingCalled extends BasePage { public abstract void setMyProperty(String prop); public abstract String getMyProperty();

Re: Creating ajax-based expandable tree-like structures

2007-04-04 Thread Wojtek Ciesielski
andyhot wrote: Also, 2 very useful implementations of a KeyProvider and a TreeContentProvider where added in tacos-4.1 http://fisheye3.cenqua.com/browse/tacos/tacos-4.1/trunk/tacos-core/src/java/net/sf/tacos/model/impl/BeanPropertyKeyProvider.java?r=469 http://fisheye3.cenqua.com/browse/tacos

Creating ajax-based expandable tree-like structures

2007-04-03 Thread Wojtek Ciesielski
Hi all, I am trying to figure out some elegant way to use Tapestry to build dynamic ajax-based tree-like UI widget. In general it's about showing some hierarchical data: * Some data item * some sub property * some sub property * last level of props * some sub property Each leve

T4.1.1: injecting service into page/component

2007-04-03 Thread Wojtek Ciesielski
Hi there - I need to obtain PageService within a method of my page/component (to get textual link to the injected page). How can I do this? @InjectObject("service:tapestry.services.Page") public abstract PageService getPageService(); is not working... Thanks in advance, Wojtek

It's working now - but HOW does it work? ;-)

2007-04-03 Thread Wojtek Ciesielski
Jesse Kuhnert wrote: I don't think "onClick" will be a valid js event name to listen to. In this instance it has to be "onclick" . Thanks, it could be a reason (I was changing several things at once trying to fix it so I'm only 90% sure that that's it ;-)). And I've noticed that even when @E

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
I've made it ultra-simple...: SimplePage.java: === public abstract class SimplePage extends BasePage { private static final Logger log = Logger.getLogger(SimplePage.class); @EventListener(elements = "someId", events="onClick", async=true) public void testEvent() { log.info("Cau

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
Jesse Kuhnert wrote: Offhand I'd say the PageEvent object looks suspicious. It supports a BrowserEvent object but might just pass your method by if it sees a parameter it doesn't know about. What effects in the rendered page source should such annotation cause? Currently I'm not seeing anythi

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
= "someId", events="onClick", async=true) public void testEvent() { log.info("Caught click!"); System.out.println("Brute force msg..."); } :( On 4/3/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: Hi all, >> I cant get dojo Eve

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
Hi all, I cant get dojo EventListener to work. The same happens with me :( Are there any preparatory steps to perform to use EventListener? I have a template : MyTemplate: click here... ... Within MyTemplate.java: public abstract class MyTemplate extends BaseComponent {

Processing component before render

2007-03-29 Thread Wojtek Ciesielski
Hi there, I can't find a place to plug-in some custom preprocessing functionality into my component... The component is receiving some data via a parameter: called like here it comes But I need to perform some preprocessing on dataItem before MyComponent is rendered. Where can I plug such

Tutorials on Tapestry 4.1.1 and AJAX/javascript

2007-03-21 Thread Wojtek Ciesielski
Hi all, Are there ANY written tutorials on how to use Javascript (AJAX) integration built in Tapestry 4.1.1? Or are API docs like http://tapestry.apache.org/tapestry4.1/javascript/form.html and source codes the only documentation for this functionality? Thanks in advance for any answers, Woj

[Tap4.0.x to 4.1.1] ClassNotFound Exception

2007-03-16 Thread Wojtek Ciesielski
Hi all, I was trying to move our web app from Tapestry 4.0 to version 4.1.1. I've replaced framework, annotations and contrib jars with new onces - system compiled. But when tried to launch it an exception was thrown, which boiled down to: java.lang.NoClassDefFoundError: edu/emory/mathcs/ba