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
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
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
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
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
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
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() {
>> //
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
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
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
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
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
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
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
>>
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:
>
&
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
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
17 matches
Mail list logo