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
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
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.
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
'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
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
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
.
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
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
-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
?
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
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
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
appreciated.
Richard Hoberman
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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]
16 matches
Mail list logo