Re: Handling a bad context and component events

2015-09-14 Thread Thiago H de Paula Figueiredo
On Mon, 14 Sep 2015 07:11:13 -0300, Carlos Montero Canabal wrote: Hi, Hi! I'd say the recommended way of dealing with ma dynamic list of activation context values is to use a single onActivate(EventContenxt context) method and no other onActivate() methods. By the way, if you just wa

Handling a bad context and component events

2015-09-14 Thread Carlos Montero Canabal
Hi, I would like to know if I develop the best option to handle a bad context in my webapp. I have a website (http://www.ryalive.com ) with a form where you have to put various values. When you search, webapp redirect to http://page/arg0/arg1/arg2/arg3

Re: component events bubbling down?

2014-09-10 Thread John
- From: Geoff Callender To: Tapestry users Sent: Wednesday, September 10, 2014 1:02 AM Subject: Re: component events bubbling down? It looks like your server-side has all the info it needs to do a refresh, so you can probably keep it as simple as this: public void doRefresh

Re: component events bubbling down?

2014-09-09 Thread Geoff Callender
log.debug("onRefresh"); >setup(); // prepare for render >return cartZone.getBody(); >} > > > This works like a charm although I feel I'm boilerplating with this code. Any > suggestions for improvement welcome. > > - Ori

Re: component events bubbling down?

2014-09-09 Thread John
lender To: Tapestry users Sent: Sunday, September 07, 2014 1:44 AM Subject: Re: component events bubbling down? Here's a working example that solves it in the same way that you were trying - with bubble up and call down... http://jumpstart.doublenegative.com.au/jumpsta

Re: component events bubbling down?

2014-09-06 Thread Geoff Callender
Here's a working example that solves it in the same way that you were trying - with bubble up and call down... http://jumpstart.doublenegative.com.au/jumpstart7/together/ajaxcomponentscrud/persons ...where Persons, which is the page, calls list.doChangeOfSelectedPerson() in response to

Re: component events bubbling down?

2014-09-06 Thread Chris Poulsen
Hi, I believe that https://issues.apache.org/jira/browse/TAP5-2383 is about this case. There are several possible solutions mentioned in that issue/its comments. -- Chris On Sun, Sep 7, 2014 at 12:16 AM, John wrote: > I have a situation where a child component (C) fires an event that causes

component events bubbling down?

2014-09-06 Thread John
I have a situation where a child component (C) fires an event that causes the containing component(B) to refesh it's content. Another component (A) that contains B also contains compoenent D. D needs also to fire an event that causes B to refesh it's content. The event needs to go down the compo

Re: Boolean Return Values in Custom Component Events

2012-03-21 Thread Steve Eynon
Food for future thought - the way the event return value is used for multiple purposes and may, or may not be passed to your callback seems a little messy. Currently we have - in ComponentPageElementImpl: ComponentEventCallback wrapped = new ComponentEventCallback() { public boolean handleR

Boolean Return Values in Custom Component Events

2012-03-20 Thread Steve Eynon
Hi, I wish to raise an event from a component and abort further processing if true is returned from any event handlers - only I don't know how! ComponentResources.triggerEvent() returns true if *any* event handler was invoked, regardless of what it returns. Passing a ComponentEventCallback doesn

Re: Responding to ui component events via ajax.

2010-11-05 Thread Josh Kamau
Thanks Thiago, Thats what is was looking for. The mailing list is very helpful. Regards. On Fri, Nov 5, 2010 at 10:15 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 05 Nov 2010 11:59:32 -0200, Josh Kamau > wrote: > > I am new to tapestry and i did my first hello wor

Re: Responding to ui component events via ajax.

2010-11-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Nov 2010 11:59:32 -0200, Josh Kamau wrote: I am new to tapestry and i did my first hello world today. Welcome to Tapestry and its the mailing list! :) I have a check box that is labeld 'Advanced User', I want when its is checked, more controls in the same form are shown. When t

Responding to ui component events via ajax.

2010-11-05 Thread Josh Kamau
I am new to tapestry and i did my first hello world today. I have a specific requirement that i would want to implement . Kindly let me know if its supported. I have a check box that is labeld 'Advanced User', I want when its is checked, more controls in the same form are shown. When the check is

Re: creating new component+events

2009-08-21 Thread Alfonso Quiroga
Onno: thank you!! In my case, my custom component will not use forms, just text, images, and event-links. Thanks for your fast feedback :-) I am starting to love components (I come from struts world). thanks On Fri, Aug 21, 2009 at 4:49 AM, Onno Scheffers wrote: >> >> I read http://tapestry.apach

Re: creating new component+events

2009-08-21 Thread Onno Scheffers
> > I read http://tapestry.apache.org/tapestry5/guide/event.html... and I > understood that only pages can handle events... but I need the > component handle the event. Any help? Thanks in advanced, and sorry > for my english! Components can handle events as well. For pagination, you can create

creating new component+events

2009-08-20 Thread Alfonso Quiroga
Hi! I've created simple components, and no problem. Now I want to create a kind of "grid" component, and I want to ask something: If I want this new component to have pagination... I need something like FIRE an event (from the component) , and then RECEIVE (handle) that event in the component and

Re: t5: component events?

2009-05-17 Thread Christian Senk
I think the builtin Autocomplete mixin does something like that. ComponentEventCallback callback = new ComponentEventCallback() { public boolean handleResult(Object result) { List matches = coercer.coerce(result, List.class); matchesHolder.put(matc

t5: component events?

2009-05-17 Thread Angelo Chen
ke care of this, but don't know how to proceed, any ideas? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-component-events--tp23582296p23582296.html Sent from the Tapestry - User mailing list archiv

[T5] Method interceptor around component events

2007-07-17 Thread Ben Tomasini
I mentioned this before in a different context. Hope this is not redundant. I am looking to be able to wrap component events in transactions. I took a look at how the hibernate sessions are managed in tapestry-hibernate. Trouble with that model is that some of the code needs to be outside of a

Re: Component events

2006-07-25 Thread Rodnei Couto
You can use pageBeginRender with components too... work fine.. Thanks, Rodnei Couto Rui Pacheco escreveu: Hi all One quick question, as the API got me a bit confused: which event is equivalent to pageBeginRender for a component that extends BaseComponent? --

Re: Component events

2006-07-25 Thread Rui Pacheco
It works with finishLoad(). I see my err.println on the logs, but the template isn't rendered. On 7/25/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Didn't work. I placed an err.println there and it never showed up on the logs. I need a place to put my database calls, so I can populate the compo

Re: Component events

2006-07-25 Thread Rui Pacheco
Didn't work. I placed an err.println there and it never showed up on the logs. I need a place to put my database calls, so I can populate the components I'm placing on the template. On 7/25/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: prepareForRender ? http://tapestry.apache.org/tapestry4.1/

Re: Component events

2006-07-24 Thread Jesse Kuhnert
prepareForRender ? http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/index.html On 7/24/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Hi all One quick question, as the API got me a bit confused: which event is equivalent to pageBeginRender for a component that extends BaseComponen

Component events

2006-07-24 Thread Rui Pacheco
Hi all One quick question, as the API got me a bit confused: which event is equivalent to pageBeginRender for a component that extends BaseComponent? -- Cumprimentos, Rui Pacheco