Q: deprecated for createActionLink method in ComponentResources ?

2009-03-03 Thread dwi ardi irawan
Hi... could anyone help me bout this deprecated method is there any replacement for this method ?? I tried it for my JFreeChart on TapestryIt Works but i feel so uncomfortable using this deprecated method. please help me . @Inject private ComponentResources _resources; @Inje

component parameter binding question

2009-03-03 Thread 丁振波
Hello guys, below is my case code: ${user.name} my question is, how can I pass mutil param value in context , is there any format like "user.id; user.name"? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.or

Q: deprecated for createActionLink method in ComponentResources ?

2009-03-03 Thread dwi ardi irawan
Hi... could anyone help me bout this deprecated method is there any replacement for this method ?? I tried it for my JFreeChart on TapestryIt Works but i feel so uncomfortable using this deprecated method thnx u -- http://dwiardiirawan.com "cos everyone could be extraordinary...lighten up !

Re: Component rendering and parameters binding

2009-03-03 Thread Howard Lewis Ship
Parameters are not JavaBeans properties; they are read/write and "lazy" as you have now realized. They also do some caching. Oh, and by the way, you can simplify your component a lot: ticket?.ticketNumber The ?. operator encapsulates the null check you were doing in Java code. Check out the Tap

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-03 Thread Luther Baker
> Writing blocks for BeanEditForm/BeanEditor is a very confusing place to learn about them. ;) Yes -- necessity *is* the mother of invention :) Thanks for the explanation regarding blocks - I'm off to try some experiments now. Thanks again T. -Luther On Tue, Mar 3, 2009 at 9:15 PM, Thiago H.

Any T5's tree component hint?

2009-03-03 Thread 丁振波
Hello guys, are there any Tree Component with ajax data fetch mode and checkbox support for Tapestry 5 ? I found dhtmlxTree js lib, but have no idea how can get it work with T5, I would like write a new Tree Compontent like T5's Grid compoent when I know things how to work.

Re: Invoking a custom show javascript method for a Zone

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 00:25:35 -0300, Fernando Padilla escreveu: so you maybe you should set both? Maybe we should file a JIRA for another parameter for Zone-supported components? One to specify a callback (or set of callbacks) to AJAX requests? Have you guys tried Ajax.Responders.regis

Re: Invoking a custom show javascript method for a Zone

2009-03-03 Thread Fernando Padilla
You might have already tried this, but, you know that there is a "show" operation and an "update" operation.. so you maybe you should set both? Dave Greggory wrote: Thanks for the suggestion, Igor. Unfortunately, it didn't work. So I tried doing the following in AfterRender. renderSuppo

Re: PAGE Lifecycle vs COMPONENT render cycle

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 00:00:28 -0300, Luther Baker escreveu: I took a look and found this page on COMPONENT rendering: http://tapestry.apache.org/tapestry5/guide/rendering.html and I tried the literal method void setupRender In which class have you declared this method? If it was the

PAGE Lifecycle vs COMPONENT render cycle

2009-03-03 Thread Luther Baker
I created an edit block - and wired up a GenericSelectModel. All is well and fine. I populate that select model with a query from the database - so now, I'd like to move that query from getModel or getEncoder to a lifecycle method. I took a look and found this page on COMPONENT rendering: http://

Re: An edit block issue ...

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 23:28:50 -0300, Luther Baker escreveu: Clarification for me - I know that Tapestry creates "pools" of my pages. Conceptually, I've often wondered how it does that - ie: does it nullify all the fields between requests? It depends on the field. I don't know what happens

Re: An edit block issue ...

2009-03-03 Thread Luther Baker
Ah ... that works (as expected). Clarification for me - I know that Tapestry creates "pools" of my pages. Conceptually, I've often wondered how it does that - ie: does it nullify all the fields between requests? Given this example, is it safe to say that it nullifies or invalidates any field in t

Re: An edit block issue ...

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 23:10:46 -0300, Luther Baker escreveu: Render queue error in BeforeRenderTemplate[initiative/BlockEdit:sid]: Failure reading parameter 'model' of component initiative/BlockEdit:sid: Component class com.fuzzybearings.notebook.web.pages.initiative.InitiativeLabeler may n

An edit block issue ...

2009-03-03 Thread Luther Baker
I've implement GenericSelectBlock and have a corresponding edit block defined. I've implemented a method to get the model for the t:Select component in the *.tml block: public AbstractSelectModel getModel() { List list = this.persistenceService.findAll(InitiativeConstants.DOMAIN_C

Re: Filter results by ajax way from t:textField

2009-03-03 Thread Inge Solvoll
I think this is what you're looking for :) http://www.nabble.com/T5:-Equanda-feature-request-td22035962.html On Tue, Mar 3, 2009 at 11:24 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 03 Mar 2009 19:18:30 -0300, Dragan Sahpaski < > dragan.sahpas...@gmail.com> escreveu:

Re: Filter results by ajax way from t:textField

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 19:18:30 -0300, Dragan Sahpaski escreveu: Please give me a short example. I don't know exactly what you mean. Start by taking a look at http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, d

Re: Filter results by ajax way from t:textField

2009-03-03 Thread Dragan Sahpaski
Thanks for the fast responce but... Thiago H. de Paula Figueiredo wrote: Em Tue, 03 Mar 2009 18:15:08 -0300, Dragan Sahpaski escreveu: Hello htis is my first msg on th list. I am sort of a bigginer in tapestry5. Can anyone tell me how can i make an update to a zone (filter a grid for ex) b

Re: Filter results by ajax way from t:textField

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 18:15:08 -0300, Dragan Sahpaski escreveu: Hello htis is my first msg on th list. I am sort of a bigginer in tapestry5. Can anyone tell me how can i make an update to a zone (filter a grid for ex) by a I want to filter results as I am typing. You would need to use Com

Re: GenericSelectOption

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 18:39:55 -0300, Luther Baker escreveu: That indeed works out just as well for me. Let me know if this is something I should open a JIRA ticket for - I've not done that before and not sure of the process but wouldn't mind at all. Thinking about it again, I don't think

Re: Component rendering and parameters binding

2009-03-03 Thread Simon Raveh
I figure out what was happening. I think tapestry is doing a lasy bind for parameters and only getting them when thay bean access in the component. The null pointer I've got was related to my internal domain object. Sorry for the confusion. Thanks, Simon On 3/2/09 9:45 PM, "Simon Raveh" wrot

Re: GenericSelectOption

2009-03-03 Thread Luther Baker
That indeed works out just as well for me. Let me know if this is something I should open a JIRA ticket for - I've not done that before and not sure of the process but wouldn't mind at all. Thanks, -Luther On Tue, Mar 3, 2009 at 1:43 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wro

Filter results by ajax way from t:textField

2009-03-03 Thread Dragan Sahpaski
Hello htis is my first msg on th list. I am sort of a bigginer in tapestry5. Can anyone tell me how can i make an update to a zone (filter a grid for ex) by a I want to filter results as I am typing. As I can understand you can do the zone update only with an ActionLink. Is that true? Thanks

Re: Invoking a custom show javascript method for a Zone

2009-03-03 Thread Dave Greggory
Thanks for the suggestion, Igor. Unfortunately, it didn't work. So I tried doing the following in AfterRender. renderSupport.addScript("var Pirate = Class.create(Tapestry.ElementEffect, {" + " showeditorzone : function(element) {"

Re: GenericSelectOption

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 14:58:05 -0300, Luther Baker escreveu: I have implemented this and which to display a special character in the drop down. ∋ A better solution would be to give Select an already Unicode-encoded string intead of relying in HTML entities. Intead of something like String

Re: GenericSelectOption

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 16:16:29 -0300, Luther Baker escreveu: I would like to display it as an option LABEL. Select does this encoding by default (security reasons, I guess) and does not offer an option to do otherwise. Feel free to post a JIRA about that. -- Thiago H. de Paula Figueiredo

Re: GenericSelectOption

2009-03-03 Thread Luther Baker
I would like to display it as an option LABEL. To test this, from within my GenericSelectOption class - I've explicitly made the label a list of special characters: public List getOptions() { List optionModelList = new ArrayList(); for (Initiative obj : this.list)

Re: Invoking a custom show javascript method for a Zone

2009-03-03 Thread Igor Drobiazko
The show functon should be a function of the Tapestry JavaScrip object Tapestry.ElementEffect. You should extend this object by your 'showeditorzone' function, then it will work fine. On Tue, Mar 3, 2009 at 7:36 PM, Dave Greggory wrote: > > I'm having trouble invoking my own javascript method aft

Re: GenericSelectOption

2009-03-03 Thread Thiago H. de Paula Figueiredo
Em Tue, 03 Mar 2009 14:58:05 -0300, Luther Baker escreveu: I have implemented this and which to display a special character in the drop down. ∋ Only, whenever I return this via the 'toClient' method of the ValueEncoder for this, the result ends up being ∋ which prints miserably. Is th

Invoking a custom show javascript method for a Zone

2009-03-03 Thread Dave Greggory
I'm having trouble invoking my own javascript method after a Zone is rendered from an event. I have a Zone inside a ChenilleKit Window. And I have an event link that updates the Zone. That works fine, and clicking on a different link to display the Chenille Kit Window (containing the zone) als

Re: Action Link In Parent Component

2009-03-03 Thread Robert Zeigler
Nah, that's not true, sorry. Event bubbling happens regardless of the method visibility. The issue here is understanding how event bubbling works. When the child component contains an action link, it may do one of three things: 1) It may handle the action (onAction) and prevent bubbling 2)

GenericSelectOption

2009-03-03 Thread Luther Baker
I have implemented this and which to display a special character in the drop down. ∋ Only, whenever I return this via the 'toClient' method of the ValueEncoder for this, the result ends up being ∋ which prints miserably. Is there a different way to feed the String value into Tapestry such tha

Re: how to realize subdomain app areas?

2009-03-03 Thread Norman Franke
When I needed something like this, I wrote a servlet filter. I wasn't using Apache, just Tomcat, so no mods. I also wanted everything in the same application, so virtual hosting was out. The servlet filter gets the HttpServletRequest.getHeader("host") and then redirects to a URL in my appli

hardlimit and softlimit for different pages

2009-03-03 Thread testeimer
Hi. In my AppModule class I can set the hard-limit and the soft-limit. But these settings are valid for every page (tml). But some pages aren't visited so often as other ones. How can I say that for example page1 gets hardlimit 100 and soft 50 and page2 20 and 5? -- View this message in context:

Re: no service implements the interface java.util.Date

2009-03-03 Thread Thiago H. de Paula Figueiredo
Use BeanEditForm "prepare" event to instantiate your Celebrity instead of letting BeanEditForm to do that. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tap

Re: Action Link In Parent Component

2009-03-03 Thread Andy Pahne
Or is Eventink what you are searching for? see http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/EventLink.html Inge Solvoll wrote: Make sure that the parent listener has the correct visibility. If the listener is package private and the

Re: Action Link In Parent Component

2009-03-03 Thread Inge Solvoll
Make sure that the parent listener has the correct visibility. If the listener is package private and the child component is in a different package, the listener won't be triggered... On Tue, Mar 3, 2009 at 10:21 AM, dhning wrote: > I think what you need is > Class Parent { > onChildEvent(int i

Re: Action Link In Parent Component

2009-03-03 Thread dhning
I think what you need is Class Parent { onChildEvent(int id){ // Do something } Thanks, DH - Original Message - From: "Davor Miku" To: "Tapestry users" Sent: Tuesday, March 03, 2009 1:05 PM Subject: Action Link In Parent Component > Hi! > > I want to set action link in chil