Re: [T5] Injecting page into nested layouts

2008-08-19 Thread Richard Hoberman
You're right - casting componentResources#getPage works fine. @InjectContainer does indeed inject the parent of the component. For InnerLayout this is the page alright, but for Layout it's actually the InnerLayout because Layout is contained in InnerLayout. Could you clarify the meaning of

[T5] Injecting page into nested layouts

2008-08-18 Thread Richard Hoberman
to be a conflict). Should this work? Richard Hoberman Page template: - html t:type=InnerLayout ... //page contents /html Inner layout template: -- html t:type=Layout ... //inner layout markup including t:body / /html Layout template

Re: [T5] Injecting page into nested layouts

2008-08-18 Thread Richard Hoberman
Hi Filip That's a typo. The Layout class name should read 'Layout' and not 'InnerLayout' but the relevant code is the same. A potential solution would be to use ComponentResources#getPage to get your page in a getter and just use that in your layout. Unfortunately, that won't work.

[T5] Loops - implicit value?

2008-08-16 Thread Richard Hoberman
example provides a loop field _pageName, which is not marked as a property. Would this field need to be cleared via pageDetach to avoid state hanging around in the pool? Richard Hoberman -- View this message in context: http://www.nabble.com/-T5--Loops---implicit-value--tp19011764p19011764.html

[T5] Expansions - calling page methods via componentResources

2008-08-15 Thread Richard Hoberman
'getTitle()'). Where the page class has a simple (non-property) method: public class MyPage { ... public String getTitle() { return title; } ... } It works fine from within the page and the expansion ${componentResources.page} shows the expected page class. Thanks Richard

Re: [T4.1.5] with Dojo 1.1.1 Using Beyond Dojo

2008-07-22 Thread Richard Hoberman
been using 1.0 in some projects, 0.4.3 has generally worked for me extremely well. Kalle On Mon, Jul 21, 2008 at 2:50 AM, Richard Hoberman [EMAIL PROTECTED] wrote: I'm considering upgrading to the latest Dojo library using the mechanism described at: http://tapestry.apache.org

[T4.1.5] with Dojo 1.1.1 Using Beyond Dojo

2008-07-21 Thread Richard Hoberman
interest is there in co-operating on creating one? Thanks Richard Hoberman FYI, this was discussed at: [1] http://www.nabble.com/T4.1.3---Upgrade-Dojo-td13621341.html#a14341740 [2] http://www.nabble.com/-T4.1--Alternate-JS-library-and-tapestry.event.buildEventProperties-td15470996.html#a15470996

Autocompleter: value ignored when dismissing dropdown

2008-07-02 Thread Richard Hoberman
. I'm going to file a bug report, but I'd like to know whether anyone else has encountered this problem and whether there are any workarounds. Thanks Richard Hoberman -- View this message in context: http://www.nabble.com/Autocompleter%3A-value-ignored-when-dismissing-dropdown-tp18232151p18232151

Re: Calling javascript after asynchronous update

2008-02-26 Thread Richard Hoberman
should work. A workaround is to have the script you want to execute already in the template and conditionally render it On Feb 5, 2008 1:20 PM, Richard Hoberman [EMAIL PROTECTED] wrote: Hi I'm using Tapestry 4.1.3. I'm trying unsuccessfully to invoke some javascript after an asyncrhonous update

Re: Hidden input controls losing their position

2008-02-06 Thread Richard Hoberman
-ordering. Best regards Richard On Feb 6, 2008 12:47 AM, Richard Hoberman [EMAIL PROTECTED] wrote: Hi All I want to track the order of list items that are re-ordered via javascript. My proposed solution is to do something like this: html jwcid=@Shell title=literal:Reordering Test Page

[T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Richard Hoberman
? Am I missing something? Richard Hoberman form jwcid=[EMAIL PROTECTED] listener=listener:onSubmitCities updateComponents=jwcidcityList span jwcid=[EMAIL PROTECTED] encode=false value=ognl:ordering/ ul id=cityList jwcid=[EMAIL PROTECTED] li

Re: [T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Richard Hoberman
this if input name edns with [] Davor Hrg On Feb 6, 2008 12:27 PM, Richard Hoberman [EMAIL PROTECTED] wrote: Thanks (again), Andreas. You are right and I have found a way that doesn't require using these pairs. I assumed that the POST protocol mandated unique names, but I haven't been

[T4] @For produces strange id values

2008-02-06 Thread Richard Hoberman
Hi All I'm trying to use the index and id attributes of the For component to create predictable (parseable) ids. I'm getting the following sequence: item_0, item_0_0, item_1. I was expecting item_0, item_1, item_2, etc. Relevant code below. Am I doing something silly? Richard Hoberman

Calling javascript after asynchronous update

2008-02-05 Thread Richard Hoberman
appreciated. Richard Hoberman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Calling javascript after asynchronous update

2008-02-05 Thread Richard Hoberman
mentioned that something like this now should work. A workaround is to have the script you want to execute already in the template and conditionally render it On Feb 5, 2008 1:20 PM, Richard Hoberman [EMAIL PROTECTED] wrote: Hi I'm using Tapestry 4.1.3. I'm trying unsuccessfully to invoke some

Hidden input controls losing their position

2008-02-05 Thread Richard Hoberman
of type hidden within any inline or block content. Thanks Richard Hoberman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]