[T5] Iterate Through Page Messages (Localization File)

2010-01-01 Thread Marcel Sammut
Greetings, Is it possible to iterate through the collection of keys in a pages property file? For example: import tapestryMessages; public class MyPage {   @Inject   private Messages pageMessages   private void onActivate() { for (int i=0;i

T5 PageRedirectExeption

2009-12-17 Thread Marcel Sammut
What is the equivalent to throwing a PageRedirectException in T3, T4 in T5? I have a page that has some context activation handler that does validation of the page context parameters, and if not valid, redirects to a different page. I did this in previous versions of Tapestry using the PageRedir

T5 Page Engine

2009-12-16 Thread Marcel Sammut
Greetings, I'm trying to create an "engine" in tapestry which is capable of determining which page to display and can also provide parameters. I currently have a tapestry 3 application which does this via the old tapestry.engine.AbstractService. What I've come across so far is using a Dispatche

[T5] MVC Issues

2008-11-26 Thread Marcel Sammut
I'm having some issues porting some old T3 applications and am stumped with the Ajax implementation. For the most part I've got the basics working, but I'm having problem with some MVC dynamics. Is it possible to create a link at runtime via ComponentResources and specify a zone for the action so

[t5] actionlink callback

2008-11-22 Thread Marcel Sammut
Greetings, Is it possible to provide an ActionLink component with a callback which is invoked after the "action" event is completed? I have an ActionLink which is used to initiate an AJAX call using a Zone. I'd like to be able to call a JavaScript function on click as well as once the "action" e

Re: [T5] Persistent fields may not be updated until after the page has finished loading

2008-11-20 Thread Marcel Sammut
I had the same problem when moving to 5.0.16. It was pretty simple for me, since what I was doing was initializing my persistant variables in the declaration. What I did was move the initialization to the SetupRender phase of the cycle. Hope that works for you too. Cheers, Marcel Eric Ma wrot

Re: [T5] actionlink context

2008-11-20 Thread Marcel Sammut
Thiago H. de Paula Figueiredo wrote: > > Em Thu, 20 Nov 2008 05:53:34 -0300, Marcel Sammut <[EMAIL PROTECTED]> > escreveu: > >> .tml >> >> >> >> .java >> @OnEvent(value="searchExecute") >> void searchExecute() { >> //

[T5] actionlink context

2008-11-20 Thread Marcel Sammut
Stirng value = getValue("critieria") ... } Is there anyway to access the value for the "criteria" input field in the searchExecute method? I tried looking at the Request.getParameter("criteria"), but that returned null. Thanks, Marcel Sammut -- View this m

[T5] Delegate Rendering

2008-11-12 Thread Marcel Sammut
Greetings, Is it possible to use the Delegate component such that the delegation of the rendering be given to a method in the page, or to a rendering class instead of a Block or Component? In the example below, can the onDelegatemethod be used to render the contents (ie. return a stream or use th

Re: [T5] Ajax And Zones

2008-11-07 Thread Marcel Sammut
So am I dead in the water here? Sounds like this functionality isn't supported in T5? Seems strange that Tapestry 5 requires an INPUT field to be contained within a Form, and AJAX uses Zones, and you can not combine the two. So basically, AJAX functionality in T5 should only be used with straig

[T5] Ajax And Zones

2008-11-06 Thread Marcel Sammut
Greetings, I have a component which displays a header and body contents, where the contents are collapsed via AJAX support. The component is a DIV which wraps a table that contains the header, AJAX block and Zone. There is an ActionLink which is used to invoke the AJAX method that returns the AJ

Re: [T5] Creating Links At Runtime

2008-11-03 Thread Marcel Sammut
the page >>> name provided in name. >>> return componentSource.getPage(name); >>> } >>> >>> >>> And that's it. Now when you click "MyLink", the "onMyevent" method will >>> be called, passing in "value1&qu

Re: [T5] Creating Links At Runtime

2008-11-03 Thread Marcel Sammut
ny idea why the activate event is not being called and how I can hook the > event to the action? > > Thanks Once Again. > Marcel > > > Howard Lewis Ship wrote: >> >> ${createURL} click me >> >> You just have to provide getCreateURL() as a wrapper

Re: [T5] Creating Links At Runtime

2008-11-01 Thread Marcel Sammut
onentResources. > > On Fri, Oct 31, 2008 at 5:24 PM, Marcel Sammut <[EMAIL PROTECTED]> wrote: >> >> Thanks for the quick response. My delima is that I need to have a >> reference >> to the link in the .tml template. I was hoping to just use a pure Java >>

Re: [T5] Creating Links At Runtime

2008-10-31 Thread Marcel Sammut
gt; > @Inject > private ComponentResources resources; > > public String getSomeLink() { >return > resources.createPageLink("mypage",true,contextValue1,contextValue2,...); > } > > > Robert > > On Oct 31, 2008, at 10/315:04 PM , Marcel Sammut wrote: > &

[T5] Creating Links At Runtime

2008-10-31 Thread Marcel Sammut
Greetings, I'm looking at porting my 3.0 tapestry web application to v5 and I'm trying to build a menu component which accepts a parameter of type ArrayList that contains a list of AbstractLink objects. These items get rendered in a menu layout etc. The page that this menu component exists on wi

[T5] Customizing BeanEditForm Layout

2008-10-29 Thread Marcel Sammut
I've been able to extend and customize the layout and order of a BeF using the element. However, when I try and customize the Submit button, the element doesn't seem to work. I've read/seen that you can specify the label of the button via the submitlabel parameter of the BeF, but I need to do