Re: Navigation control in Layout component not rendering properly 5.4beta3 quickstart app

2014-03-16 Thread Bob Harner
I noticed this myself last week. An issue in JIRA would be helpful, yes. On Mar 16, 2014 3:50 PM, "Jon Williams" wrote: > this is a fix > > @Import(stylesheet = {library = > {"context:mybootstrap/dist/js/bootstrap.js"}) > public class Layout... > > > On Sun, Mar 16, 2014 at 10:04 AM, Jon William

Re: Navigation control in Layout component not rendering properly 5.4beta3 quickstart app

2014-03-16 Thread Jon Williams
this is a fix @Import(stylesheet = {library = {"context:mybootstrap/dist/js/bootstrap.js"}) public class Layout... On Sun, Mar 16, 2014 at 10:04 AM, Jon Williams wrote: > Hi, > > I am running the 5.4 beta 3 tapestry quickstart app. > The navigation on the UI is not rendering properly. > I am ne

Navigation control in Layout component not rendering properly 5.4beta3 quickstart app

2014-03-16 Thread Jon Williams
Hi, I am running the 5.4 beta 3 tapestry quickstart app. The navigation on the UI is not rendering properly. I am new to bootstrap, so I was hoping the quickstart bootstrap would be all working. from Layout.tml...

Re: layout component selection based on domain name

2013-01-15 Thread Lance Java
re-reading your question, I notice that you also want to use a different .tml file. You might find help in Igor's post http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/layout-component-selection-bas

Re: layout component selection based on domain name

2013-01-15 Thread Lance Java
access (by Environment.peek() or via the @Environmental annotation). Then your layout component (and other components) can make decisions based on the value of the Environmental object. http://tapestry.apache.org/environmental-services.html http://tapestry.apache.org/request-processing.html

Re: Layout component

2012-12-20 Thread Thiago H de Paula Figueiredo
On Thu, 20 Dec 2012 13:56:28 -0200, ZKN __ wrote: Hi Thiago, Hi! I've tried moving the base page to the "pages" package but that didn't work again. Please define 'didn't work'. I'm not sure what you mean with block parameters but if it means using some kind of IF statements in the bas

Re: Layout component

2012-12-20 Thread ZKN __
rst because for each new Subclass I will have to make changes to the base template and second because it will make the base template harder to read. Thanks, Ozkan Оригинално писмо От: "Thiago H de Paula Figueiredo" thiag...@gmail.com Относно: Re: Layout co

Re: Layout component

2012-12-20 Thread Thiago H de Paula Figueiredo
On Thu, 20 Dec 2012 12:32:51 -0200, ZKN __ wrote: Hi, Hi! I have a question regarding Layout component: http://tapestry.apache.org/layout-component.html Since pages and components "are more equal than they are different" I was wondering if base pages (located in the base packa

Layout component

2012-12-20 Thread ZKN __
Hi, I have a question regarding Layout component: http://tapestry.apache.org/layout-component.html Since pages and components "are more equal than they are different" I was wondering if base pages (located in the base package) can be used as layout components? We already hav

Re: Layout component question

2011-10-07 Thread Dimitris Zenios
Thanks a lot.Fixed On Fri, Oct 7, 2011 at 9:30 AM, Howard Lewis Ship wrote: > The source component will be the Layout component, not the TextField > inside the layout component. This is part of event bubbling; when an > event bubbles, the source of the event bubbles up as well. > >

Re: Layout component question

2011-10-06 Thread Howard Lewis Ship
The source component will be the Layout component, not the TextField inside the layout component. This is part of event bubbling; when an event bubbles, the source of the event bubbles up as well. On Thu, Oct 6, 2011 at 9:10 AM, Dimitris Zenios wrote: > Hi guys. > > I have a layout

Layout component question

2011-10-06 Thread Dimitris Zenios
Hi guys. I have a layout component which has a textfield inside it with autocomplete mixin and an id of "layoutSearch".Some pages now that use the layout would like to provide completion for that text field.The problem is that i cannot reference that component from the page like this.

Re: Stylesheet in layout component causes my tests to fail...

2011-07-20 Thread Julien Martin
ntext:style/style.css" >> >> Regards nillehammer >> >> - >> http://www.winfonet.eu >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/Stylesheet-in-layout-component-causes-my-tests-to-fail-tp4616463p4616558.html

Re: Stylesheet in layout component causes my tests to fail...

2011-07-20 Thread Howard Lewis Ship
;) >> That's a typo leave out the leading slash after the colon, i.e. >> "context:style/style.css" >> >> Regards nillehammer >> >> - >> http://www.winfonet.eu >> -- >> View this message in context: >> http://tapestry.1045711.n5.na

Re: Stylesheet in layout component causes my tests to fail...

2011-07-20 Thread Julien Martin
ot;context:/style/style.css") > That's a typo leave out the leading slash after the colon, i.e. > "context:style/style.css" > > Regards nillehammer > > - > http://www.winfonet.eu > -- > View this message in context: > http://tapestry.1045711.n5.nabble

Re: Stylesheet in layout component causes my tests to fail...

2011-07-20 Thread nillehammer
Hi Julien, > @Import(stylesheet = "context:/style/style.css") That's a typo leave out the leading slash after the colon, i.e. "context:style/style.css" Regards nillehammer - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nab

Stylesheet in layout component causes my tests to fail...

2011-07-20 Thread Julien Martin
Hello, I am trying to get to grips with tests and Tapestry. The following layout class... *@Import(stylesheet = "context:/style/style.css") public class Layout { }* ...causes my tests to fail with the following exception: *8392 [main] ERROR org.apache.tapestry5.ioc.Registry - Unable to locate as

Re: Customizing the Layout Component

2011-03-23 Thread stephanos2k
Thanks a lot for the info, Barry! Will definitely check it out. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Customizing-the-Layout-Component-tp4234938p4258643.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Customizing the Layout Component

2011-03-21 Thread Barry Books
If you have a Blue/Red that inherit from BasePage I'd use a Layout Environmental. Since you have a BasePage you can create the Environmental in your BasePage class. The Red/Blue pages should be able to set the color property and then the layout component can retrieve it. That way only th

Re: Customizing the Layout Component

2011-03-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Mar 2011 15:22:30 -0300, stephanos2k wrote: Thanks for the quick response! Hm, I didn't know that this would break the class hierarchy. It doesn't. I understand the issue like this (hope it works in HTML/Mail): Layout.tml > Page.tml --> Result <-- Page.java < BasePageRed.java <

Re: Customizing the Layout Component

2011-03-21 Thread stephanos2k
rameter coming from the class side. Alternatively, setting the parameter in every Page.tml (few dozen) just didn't seem so 'DRY'. But your solution sounds very reasonable - I was just wondering :-) Cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Cust

Re: Customizing the Layout Component

2011-03-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Mar 2011 14:27:35 -0300, stephanos2k wrote: In my Layout I'd like to distinguish between 2 states (let's just say red or blue). Those are known/set by each page individually - it inherits from BasePageRed or BasePageBlue (which go back to BasePage where the parameter Col is d

Customizing the Layout Component

2011-03-21 Thread stephanos2k
ue from the BasePage (class) to the Layout (tml)? PS: I am aware that I can set the parameter in Page.tml - but I don't want to repeat myself in each file. Cheers, Stephanos -- View this message in context: http://tapestry.1045711.n5.nabble.com/Customizing-the-Layout-Component-tp4234938p4

Re: Layout Component

2010-06-30 Thread Magnus Kvalheim
Ok, guess this would work in Gerry's case - although it feels like a bit of a hack. In my case this wont work as I have a single application and would like to do the layout/branding in runtime - switching based on domain names. 2010/6/28 Pierce Wetter > > On Jun 25, 2010, at 1:31 PM, Magnus Kv

Re: Layout Component

2010-06-28 Thread Pierce Wetter
On Jun 25, 2010, at 1:31 PM, Magnus Kvalheim wrote: > Hi, > I have a similar requirement for our project where we plan to 'white label' > an application and brand it in different ways. > Have been thinking about a way of reusing pages by changing the layout > dynamically - for example triggered b

Re: Layout Component

2010-06-25 Thread Magnus Kvalheim
put to your problem... magnus 2010/6/24 tux4ever > > Dear listeners! > > I have a module with pages and components which is used by some other > applications. Every application has its own style, defined in a layout > component. Is there a possibility that this module can use the

Layout Component

2010-06-24 Thread tux4ever
Dear listeners! I have a module with pages and components which is used by some other applications. Every application has its own style, defined in a layout component. Is there a possibility that this module can use the layout component of every other application at runtime? For better

Re: About event handling in Layout component

2010-04-23 Thread Josh Canfield
t; >>> Is it possible to handle events inside components that have been >>> triggered by other events? >> >> Events are triggered by components, not by events themselves. >> >>> If a page does not handle an event wouldn't that event be bubbled up >

Res: About event handling in Layout component

2010-04-23 Thread Everton Agner
It's not the exact subject, but this reminded me of a problem I had a while ago related to Layout and Page's Forms submission events. If the Layout component has a Form component (for whatever reason), every Page injected into it needs to handle their Form submission lifecycle by the

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 15:45:53 -0300, Raul Raja Martinez wrote: Yes if the body of a Layout component is considered a child component of the Layoutand all events triggered from components that are children would pass through Layout as well when bubbling up. Right. If that was the case

Re: About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
 - Button > > Wouldn't it be > > PageA >  - Layout >  - - Button Yes if the body of a Layout component is considered a child component of the Layout and all events triggered from components that are children would pass through Layout as well when bubbling up. If that was the case

Re: About event handling in Layout component

2010-04-22 Thread Norman Franke
ves. If a page does not handle an event wouldn't that event be bubbled up to the Layout component since it wraps it? It depends on who triggers the event. If it is the page itself, no, as the layout wraps the content of the page, but the layout is inside the page. If it's a compo

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 15:20:13 -0300, Raul Raja Martinez wrote: Thanks Thiago, Makes sense, What would be the right pattern If I have something like... PageA - Layout - Button Wouldn't it be PageA - Layout - - Button ? Image both Button and OtherButton are components and that Layout

Re: About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
ts inside components that have been >> triggered by other events? > > Events are triggered by components, not by events themselves. > >> If a page does not handle an event wouldn't that event be bubbled up >> to the Layout component since it wraps it? > > It dep

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
nt be bubbled up to the Layout component since it wraps it? It depends on who triggers the event. If it is the page itself, no, as the layout wraps the content of the page, but the layout is inside the page. If it's a component declared inside the layout, then yes. We are trying to figure

About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
Hi, We have several pages that contain a Layout component wrapping the context of a page. Also those pages have components that trigger events. We would like to handle some of the events in the Layout component. The docs state that for Event Bubbling "The event will bubble up the hierarchy,

Re: Modifying the title in a layout component

2010-03-19 Thread Josh Canfield
You could do something like this: Layout.tml http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> yadayada public class Layout { @Property private Block _head; @Property private Block _body; @Inject private ComponentResources _resources;

Modifying the title in a layout component

2010-03-17 Thread Robert Hailey
I'm using 5.1.0.5 and thought I could do something like this... [Page.tml] http://tapestry.apache.org/schema/tapestry_5_1_0.xsd "> My Page Title My Page Content The 'passthru' component was easy to make, but apparently the t:extension-point works much mo

t5: catching exception in layout component

2009-10-02 Thread AngeloChen960
Hi, I have a page that is based on layout component, when I do a: http://localhost.com:8080/myhome.layout.test [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: Component Myhome does not contain an embedded component with id 'test'. Available

Re: How to inject component of the layout component into the page

2009-08-27 Thread Thiago H. de Paula Figueiredo
Em Thu, 27 Aug 2009 05:39:51 -0300, Sebastian HennebrŸüder escreveu: Hello, Hi! my page uses a layout component. The layout has my self made t:messages component to display messages. I need this component injected into the page as I want to return it as zone update. Tapestry keeps

Re: How to inject component of the layout component into the page

2009-08-27 Thread Kristian Marinkovic
have you tried returning the zone from a getter method within the layout component. this way any page that uses this layout should be able to return the desired zone. i think this could work with a block as well. g, kris Sebastian HennebrŸüder 27.08.2009 10:39 Bitte antworten an

How to inject component of the layout component into the page

2009-08-27 Thread Sebastian HennebrŸüder
Hello, my page uses a layout component. The layout has my self made t:messages component to display messages. I need this component injected into the page as I want to return it as zone update. Tapestry keeps telling me, that the messages component is not included in the page template

Re: T5 How to onLoad focus() to textfield in Layout component

2009-04-15 Thread wesleywj2
sage in context: http://www.nabble.com/T5-How-to-onLoad-focus%28%29-to-textfield-in-Layout-component-tp23055988p23059682.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-u

Re: T5 How to onLoad focus() to textfield in Layout component

2009-04-15 Thread Thiago H. de Paula Figueiredo
Prototype comes to the rescue: http://www.prototypejs.org/api/event/observe. Event.observe(window, 'load', function() { $('text1').focus(); } -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For add

Re: T5 How to onLoad focus() to textfield in Layout component

2009-04-15 Thread Ville Virtanen
o i thought in my textfield > > onchange="this.form.submit()"/> > > upon resubmit this page, the onLoad attribute in can call the > javascript > document.getElementById('text1').focus(); > > but the environment of my page is using Layout component,

T5 How to onLoad focus() to textfield in Layout component

2009-04-15 Thread wesleywj2
there's no such method. any alternatives is welcome. please advise. thanks & regards, wesley -- View this message in context: http://www.nabble.com/T5-How-to-onLoad-focus%28%29-to-textfield-in-Layout-component-tp23055988p23055988.html Sent from the Tapestry - User mailing li

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-13 Thread Jonathan O'Connor
Zenberg, I added Tap5 pages to an existing struts 1 application. The trick is to reimplement a login page (I presume you have a login page) as a T5 page, and then you can initialize the JSP session variables you need for working together. You will also have to be careful generating links from

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Zenberg Ding
Thanks for your advise. I'll try that. On Thu, Mar 12, 2009 at 8:53 PM, Zenberg Ding wrote: Is it possible to nested normal jsp/html content into one layout component region? No. Not possible. Completely incompatible approaches to ... everthing. You might be able to c

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Zenberg Ding
But that's only put them together without runtime error. each of them is working standalone, so it's not really working together... As far as I know, you can have Tapestry pages and JSP pages and Struts actions in the same application working together, but you cannot have JSP and Tapest

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 13 Mar 2009 01:06:08 -0300, Zenberg Ding escreveu: really sorry about that. It's ok. :) I know tapestry's template engine, that's why we try to using it. but there are a big amount of leaving code useing struts 1.xx. so if there is a way can mixing those code into t5 framework. I

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Howard Lewis Ship
On Thu, Mar 12, 2009 at 8:53 PM, Zenberg Ding wrote: > > Is it possible to nested normal jsp/html content into one layout component > region? No. Not possible. Completely incompatible approaches to ... everthing. You might be able to cobble something together using Ajax and/or an t

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Zenberg Ding
really sorry about that. I know tapestry's template engine, that's why we try to using it. but there are a big amount of leaving code useing struts 1.xx. so if there is a way can mixing those code into t5 framework. I can wrote a dispatcher to recognize '*.do' url and give it to one ActionR

[t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Zenberg Ding
Is it possible to nested normal jsp/html content into one layout component region? for example, replace "content" region with jsp content when one jsp request

Re: [t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Thiago H. de Paula Figueiredo
Em Fri, 13 Mar 2009 00:43:45 -0300, 丁振波 escreveu: If it possible, how to do it? any idea or suggestion is appreciate. Please start new topics in new threads, not replying to old ones. Tapestry has its own template engine, so you cannot embedded JSP there. Layout is just an ordinary compone

[t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread Zenberg Ding
If it possible, how to do it? any idea or suggestion is appreciate. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

[t5.0.18] Is it possible to nested normal jsp/html content into one layout component region?

2009-03-12 Thread 丁振波
If it possible, how to do it? any idea or suggestion is appreciate. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [T5] Layout component: resolving unclarities

2009-01-21 Thread Thiago H. de Paula Figueiredo
Em Wed, 21 Jan 2009 22:07:20 -0300, manuel aldana escreveu: yes, it is a bit confusing that you could do your layout-concept directly as a page (see starter mail of thread). But I see now it is not a good idea, so will go for layout as a component :) Technically speaking, I think it would

Re: [T5] Layout component: resolving unclarities

2009-01-21 Thread manuel aldana
Thiago H. de Paula Figueiredo schrieb: When people here talk about a Layout component, we are talking about something described by the Tapestry documentation as "A Layout component exists to provide common content across all pages in your application.". A Layout is a component, not

Re: [T5] Layout component: resolving unclarities

2009-01-21 Thread Thiago H. de Paula Figueiredo
Em Wed, 21 Jan 2009 21:46:20 -0300, manuel aldana escreveu: OK, but why does the layout component need to know what the main content is? If it is a layout, yes. Otherwise, it would be an ordinary page. As in other mail mentioned the only (but major) cons I can see is that making the

Re: [T5] Layout component: resolving unclarities

2009-01-21 Thread manuel aldana
s you named in your template below. OK, but why does the layout component need to know what the main content is? As in other mail mentioned the only (but major) cons I can see is that making the Layout as the main-entry page is not very flexible and breaks somehow the tapestry page concept. -- m

Re: [T5] Layout component: resolving unclarities

2009-01-21 Thread Thiago H. de Paula Figueiredo
below. Site.tml (style stuff omitted): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> If means "the real content of each page of your application", it should be . A Layout component (or any other component) has no other way to

Re: [T5] Layout component: resolving unclarities

2009-01-21 Thread manuel aldana
g the injection). what are the pros/cons for that? Site.tml (style stuff omitted): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> SergeEby schrieb: Hi, is the actual content of your page, and the layout component is just a wrapper

Re: [T5] Layout component: resolving unclarities

2009-01-21 Thread manuel aldana
stuff omitted): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> SergeEby schrieb: Hi, is the actual content of your page, and the layout component is just a wrapper. This link would probably help you better understand: http://wi

Re: [T5] Layout component: resolving unclarities

2009-01-20 Thread SergeEby
Hi, is the actual content of your page, and the layout component is just a wrapper. This link would probably help you better understand: http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent /Serge aldana wrote: > > Hi, > > I had a look how to template things (he

Re: [T5] Layout component: resolving unclarities

2009-01-20 Thread manuel aldana
sorry... there was a discussion about this already (http://www.mail-archive.com/users@tapestry.apache.org/msg17682.html), but found it later as posting... Just tell if information of above thread is out of date and tapestry templates approach changed in latest tapestry. manuel aldana schrieb

[T5] Layout component: resolving unclarities

2009-01-20 Thread manuel aldana
Hi, I had a look how to template things (header, footer, navigation) at http://tapestry.apache.org/tapestry5/guide/layout.html. -What is the magic about the inclusion? This tag is a bit unclear to me. How does Layout.tml connect to the Start.tml as the tag in the example? -How would I incl

Re: [T5] getting current page in layout component

2008-07-27 Thread Markus Joschko
I found the answer in the archives. It's the componentResources which a method to return the pagename. Thanks anyway, Markus On Sat, Jul 26, 2008 at 9:08 PM, Shing Hing Man <[EMAIL PROTECTED]> wrote: > Have you tried the adding the following to your layout compon

Re: [T5] getting current page in layout component

2008-07-26 Thread Shing Hing Man
Have you tried the adding the following to your layout component java class ? @InjectContainer private BasePage conatinerPage; (assuming all your pages java class are a subclass of BasePage.) Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 27/7/08, Markus Joschko <[EM

[T5] getting current page in layout component

2008-07-26 Thread Markus Joschko
Hi all, is there a way to get the page that is rendered by the layout component from within the layout component? I have a menu in my layout component where I want to highlight the item that corresponds to the current page. I know that I can pass a parameter to the layout component but I&#

Re: [T5] Layout Component test prblem

2008-06-24 Thread Tan [EMAIL PROTECTED]
ok. now all the function are successful go though. [component:setupRender] [component:beginRender] [component:beforeRenderTemplate] [component:beforeRenderBody] [component:afterRenderBody] [component:afterRenderTemplate] [component:afterRender] [component:cleanupRender] but, still didn't show ...

Re: [T5] Layout Component test prblem

2008-06-24 Thread Tan [EMAIL PROTECTED]
sorry. should be after SetupRender. then it ended by right if there is an error. it should go to cleanuprender. but, it didn't go though that function. On Tue, Jun 24, 2008 at 10:01 PM, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I did have put some message in setuprender and onac

Re: [T5] Layout Component test prblem

2008-06-24 Thread Tan [EMAIL PROTECTED]
Hi, I did have put some message in setuprender and onactivate. i did show me the System.out.println("test1"); but, how come it didn't render the ? Thankk you. On Tue, Jun 24, 2008 at 9:39 PM, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi marcelo, > > thanks for your reply. yes. i did p

Re: [T5] Layout Component test prblem

2008-06-24 Thread Tan [EMAIL PROTECTED]
hi marcelo, thanks for your reply. yes. i did put src/main/resources//components src/main/resources//pages is there any possibility? Thank you. Regards, Cyber On Tue, Jun 24, 2008 at 8:40 PM, Marcelo Lotif <[EMAIL PROTECTED]> wrote: > Hi, > Did you put the Layout.tml on the right package?

Re: [T5] Layout Component test prblem

2008-06-24 Thread Marcelo Lotif
Hi, Did you put the Layout.tml on the right package? It should be under src/main/resources//components. I recommend you to create a directory called src/main/resources//pages and put your pages inside it too. 2008/6/24 Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > hi all, > > i 'm testing tutorial

[T5] Layout Component test prblem

2008-06-24 Thread Tan [EMAIL PROTECTED]
hi all, i 'm testing tutorial in http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html in start.tml _ http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Welcome to the Nifty Web Application!

Re: show page title in layout component

2008-05-21 Thread Josh Canfield
n Derks <[EMAIL PROTECTED]> wrote: > Hello > > I use a layout component for all my pages, like below. > But for some reason, the page title is not passed to the layout component. > What am I doing wrong? > Leon > > Page.tml > http://tapestry.apache.org/schema/tapestr

Re: show page title in layout component

2008-05-21 Thread Filip S. Adamsen
You're missing the t: namespace prefix on the title attribute. Since you're putting it on a regular XHTML element, Tapestry won't process the attribute without it. -Filip Leon Derks skrev: Hello I use a layout component for all my pages, like below. But for some reason, th

show page title in layout component

2008-05-21 Thread Leon Derks
Hello I use a layout component for all my pages, like below. But for some reason, the page title is not passed to the layout component. What am I doing wrong? Leon Page.tml http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; t:type="layout" title="

What happened to Tapestry 5 Layout component blog article

2008-05-13 Thread Blower, Andy
This blog seems to have vanished: http://courcy-en.blogspot.com/2008/01/tapestry-5-create-layout-component.html As linked to from the wiki. Anyone know what's happened or have an archive of this? I found it very useful. - To un

Re: Layout component usage - renders multiple elements

2008-04-14 Thread Peter Beshai
rk for the Component templates. It does work for > the Layout component, though. My question is what to add to other > Components, in order to maintain previewability, but without extraneous > element at runtime. > > -J. > > On Mon, 2008-04-14 at 11:09 -0700, Howa

Re: Layout component usage - renders multiple elements

2008-04-14 Thread Jan Vissers
Thanks Howard, However this doesn't work for the Component templates. It does work for the Layout component, though. My question is what to add to other Components, in order to maintain previewability, but without extraneous element at runtime. -J. On Mon, 2008-04-14 at 11:09 -0700, H

Re: Layout component usage - renders multiple elements

2008-04-14 Thread Howard Lewis Ship
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> On Mon, Apr 14, 2008 at 11:02 AM, Jan Vissers <[EMAIL PROTECTED]> wrote: > Hi, > > Using > http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html I > have a setup where the layout com

Layout component usage - renders multiple elements

2008-04-14 Thread Jan Vissers
Hi, Using http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html I have a setup where the layout component uses a couple of other components. All of which have: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> at the top - to keep a certain degree of previewability.

Re: T5 getElementById from Layout component

2008-02-08 Thread Baofeng Yu
Thanks for all your replies ... Finally fixed the problem by looking at the generated html source file. The problem was actually not with calling the div from the head of layout.tml. Because after the page is rendered, all the elements are available, so there is really no problem there. But fo

Re: T5 getElementById from Layout component

2008-02-08 Thread Chris Lewis
If all of this is within your start page, then it's quite easy. T5 is built around the Prototype JS lib, which you can get a feel for here: http://www.prototypejs.org/ (api here: http://www.prototypejs.org/api). It is a staggeringly simply library to use. Now you'll have to test this, but I'm

Re: T5 getElementById from Layout component

2008-02-08 Thread Andreas Andreou
to do? What you're explaining doesn't really > > make sense - that is, hard-coding a DOM id in a component that doesn't > > contain such an id. What is your ultimate goal? > > > > chris > > > > Baofeng Yu wrote: > >> Hi all, > >> &

Re: T5 getElementById from Layout component

2008-02-08 Thread Baofeng Yu
ur ultimate goal? chris Baofeng Yu wrote: Hi all, I have a layout component that wraps around a page, say Start.tml. Suppose there is a element on Start.tml. In the Layout.tml header section, I want to have some JavaScript code to change that element. What is the correct way to get that eleme

Re: T5 getElementById from Layout component

2008-02-08 Thread Chris Lewis
What exactly do you want to do? What you're explaining doesn't really make sense - that is, hard-coding a DOM id in a component that doesn't contain such an id. What is your ultimate goal? chris Baofeng Yu wrote: Hi all, I have a layout component that wraps around a page

T5 getElementById from Layout component

2008-02-07 Thread Baofeng Yu
Hi all, I have a layout component that wraps around a page, say Start.tml. Suppose there is a element on Start.tml. In the Layout.tml header section, I want to have some JavaScript code to change that element. What is the correct way to get that element? It seems document.getElementById(&#

Re: Antwort: Layout component

2008-01-22 Thread Michael Courcy
:left") private Object left; Object getLeftContent() { return left; } if no left parameter is passed to the layout component it will use the default block. g, kris Michael Courcy <[EMAIL PROTECTED]> 22.01.2008 00:12 Bitte antworten an "Tapestry users" An Tapestry

Antwort: Layout component

2008-01-22 Thread Kristian Marinkovic
rameter is passed to the layout component it will use the default block. g, kris Michael Courcy <[EMAIL PROTECTED]> 22.01.2008 00:12 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema Layout component Hi, I propose a small tutorial to build a Layou

Layout component

2008-01-21 Thread Michael Courcy
Hi, I propose a small tutorial to build a Layout component. http://courcy-en.blogspot.com/2008/01/tapestry-5-create-layout-component.html This one is a bit more sophisticated than the exemple given in the documentation, because you are able to override static content on case by case. Your

Re: T5 How to write a layout component ?

2007-12-08 Thread Michael Courcy
I had a similar problem I just add a beforeRender(MarkupWriter writer){ return true; } method that just return true and it solves the problem. Dapeng a écrit : Hi First time try T5 i followed the link http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html http://tapes

Re: T5 How to write a layout component ?

2007-12-07 Thread Marcus
Hi Dapeng, Try this: src/main/resources/com/my/components/Layout.tml src/main/java/com/my/components/Layout.java src/main/webapp/Start.tml or src/main/resources/com/my/pages/Start.tml src/main/java/com/my/pages/Layout.java Marcus

Re: T5 How to write a layout component ?

2007-12-07 Thread Dapeng
Start.tml is in src/main/webapp/Start.tml Davor Hrg wrote: where's your start.tml located ? Davor Hrg On Dec 7, 2007 5:07 AM, Dapeng <[EMAIL PROTECTED]> wrote: Hi First time try T5 i followed the link http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html http:

Re: T5 How to write a layout component ?

2007-12-07 Thread Davor Hrg
where's your start.tml located ? Davor Hrg On Dec 7, 2007 5:07 AM, Dapeng <[EMAIL PROTECTED]> wrote: > Hi > > First time try T5 > > i followed the link > http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html > > > > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >

T5 How to write a layout component ?

2007-12-06 Thread Dapeng
Hi First time try T5 i followed the link http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> My Tapestry Application copy the codes into respective src/java/com/my/components/Lay

Re: T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
t; >> you can pass the user name from the UserProfile page to the layout >> component, something like this: >> >> public class Layout { >> @parameter >> private String userName; >> // getter/setter here >> } >> >> in UserProfile.tml

Re: T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
Thx Angelo. This seems to make sense, but I cannot make it to work.. will try more. Ronald Angelo Chen wrote: > > hi ronaldlee, > > you can pass the user name from the UserProfile page to the layout > component, something like this: > > public class Layout { >

Re: T5: passing values between layout component and page

2007-11-02 Thread Marcus
Hi Ronald, You can declare same ASO(ApplicationStateObject) in both java classes, passing any values between any components. Basic.java and UserProfile.java ... @ApplicationState private Visit _visit; ... getters and setters Basic.tml ... ${visit.username} Marcus -

  1   2   >