Re: [T5] xml namespace support (facebook, fbml)

2007-10-02 Thread Fernando Padilla
Well. I haven't kept up the patches because I haven't gathered the courage to change all my templates from .html to .tml. :) :) But I should get to that soon. But just as an update, yes we created a facebook app using facebook's fbml markup using T5 (with namespace patches), and a few other f

Re: [T5] xml namespace support (facebook, fbml)

2007-10-02 Thread Jon McCarty
I voted for this issue! Also, it wasn't appearing on the JIRA "popular issues" list, so I changed the component to "tapestry-core". Facebook, and other markup-based integration portals, is a fast growing sector of web development. I hope to use T5 for these web application portals. This fix wi

Re: [T5] Access table values from html

2007-10-02 Thread lasitha
Hi, i'm joining this thread rather late, so i apologize for any repetition - if you've already come up with a clean (!= 15 getters!) solution, feel free to ignore this. I'm trying to understand what makes your problem more complicated than a typical loop... It sounds to me like each table represe

Re: T5: using servlet

2007-10-02 Thread Angelo Chen
Hi Howard, Thanks, it works, here is my code, one problem is, generates following code without the closing tag, any way to fix this? < img src="/av?fid=123456.jpg"> public class MyImg { @Inject @Service("RequestGlobals") private RequestGlobals requestGlobals; @Parameter(r

Re: basic ASO question

2007-10-02 Thread Howard Lewis Ship
A collection class would not be ideal, using individual ASOs, each with a specific unique type is the way to go. On 10/2/07, Robert A. Decker <[EMAIL PROTECTED]> wrote: > > In the docs they use the example: > public class MyPage > { >@ApplicationState >private MyState _myState; > >. .

Re: T5: Newbie question - Context sensitive properties

2007-10-02 Thread Howard Lewis Ship
>From Tapestry's point of view, it's just one big web application, divided into folders. So anything global can go in app.properties, and be overriden in any page's (or component's) message catalog. So, page "modulea/apage" will be class foo.bar.pages.modulea.APage and there will be an APage.prop

basic ASO question

2007-10-02 Thread Robert A . Decker
In the docs they use the example: public class MyPage { @ApplicationState private MyState _myState; . . . } and: "Any other component or page that declares a field of the same type, regardless of name, and marks it with the ApplicationState annotation will share the same value. It's tha

T5: Newbie question - Context sensitive properties

2007-10-02 Thread jblier
Our web application consist in a main framework responsible for session management and other shared functions and a number or modules loading inside the main framework. My question is what would be the best approach to structure the files and screen in order to load both the main properties and t

Getting rid of the space="preserve" attributes?

2007-10-02 Thread jblier
Can I do something to get rid of all the space="preserve" attributes added throughout the code by Tapestry 5? Or is it better to wait for this to be solved: http://www.nabble.com/T5-XHTML-strict-conformance-tf4013071s302.html#a11396390 Thanks. :-) -- View this message in context: http://www.na

Re: T5: using servlet

2007-10-02 Thread Howard Lewis Ship
Since it starts with a leading slash, it will always be http://localhost:8080/av. That assumes your app is deployed as the root web application. The only time it would break is if your app was not deployed as the root web application, as might happen if your servlet container is deploying multipl

Re: T3: Upload

2007-10-02 Thread Nazmul Bhuiyan
The example code working now after removing the following line of code: public static final Format SIZE_FORMAT = NumberFormat.getNumberInstance(); I'm not exactly sure what's wrong with this line of code. Thanks a lot. Naz Nazmul Bhuiyan wrote: > > I've removed that deprecated method from my

Re: T5: How do i reference components and pages from libraries in templates ?

2007-10-02 Thread Howard Lewis Ship
I think there are examples in the test suite. Basically, libraries are mapped to a virtual folder. Thus or . On 10/2/07, Hugo Palma <[EMAIL PROTECTED]> wrote: > > I can't find any docs on this and i can't get it to work. > > Thanks... > -- Howard M. Lewis Ship Partner and Senior Architect a

RE: Using jsp:include in T3

2007-10-02 Thread Hector Cinco Chavarria
; > Hector Cinco Ch. > > > > -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2566 (20071002) Information __ This message wa

Re: Using jsp:include in T3

2007-10-02 Thread Chris Chiappone
Not sure if this can be ported back to Tap 3 but it works for tap 4. http://wiki.apache.org/tapestry/TapestryFasttrackForStrutsProgrammers ~chris On 10/2/07, Hector Cinco Chavarria <[EMAIL PROTECTED]> wrote: > Is there a way to use some kind of jsp:include in T3?? > > > > > > Thanks! > > > > Hec

Re: Using jsp:include in T3

2007-10-02 Thread Miguel Angel Hernández
Hi Hector, Is there a way to use some kind of jsp:include in T3?? AFAIK there isn't, you can link Tapestry pages from JSP and back but you can combine them in the same page. Look at the Tap3 Faq: http://tapestry.apache.org/tapestry3/faq.html Cheers, Miguel

Re: Javascript in T5.0.3

2007-10-02 Thread jblier
OK issue fixed. My JS files are in src/main/webapp/js/ however the message "Unable to resolve page 'js/effects' to a known page name." simply means "file not found". Meaning that some JS files were looking to other JS files that I forgot to add. Thanks for the help. Josh Canfield-2 wrote: > >

Using jsp:include in T3

2007-10-02 Thread Hector Cinco Chavarria
Is there a way to use some kind of jsp:include in T3?? Thanks! Hector Cinco Ch.

T5: using servlet

2007-10-02 Thread Angelo Chen
Hi, I have a servlet used with my T5 app, its job is to return an image from file system, the url-pattern is: /av in the template I have to refer it as: < img src="http://localhost:8080/av?fid=mypic.jpg"; / > this works, but if I deploy it, i have to update the server name, if I just use "/av?fid

T5: Accessing RequestGlobals in appmodule and others

2007-10-02 Thread Angelo Chen
Hi, I'd like to access the RequestGlobals in AppModule: @Inject @Service("RequestGlobals") private RequestGlobals requestGlobals; possible? another question: if I define a symbole in contributeApplicationDefaults, can it be made available to templates without making a getter for every p

Localization issues in Tap4.1.3

2007-10-02 Thread Patrick Klein
Hi! After switching to [4.1.3] I got many unteranslated fields in our application again for which there are definitively translations in our ressource bundle. The localization problems in our table columns seem to be caused by the fix of jira TAPESTRY-234. Our columns contains "_" as word sepe

Re: [T5] Access table values from html

2007-10-02 Thread Hibowl
Yes , I will use a loop to generate my tables... But I have 2 or more objects to display in each table... Anyway, I think I'm going to find a solution ! Chris Lewis-5 wrote: > > Using loop you can create a new table for each object, so if you want to > display them all, this is what you want

Re: [T5] Access table values from html

2007-10-02 Thread Chris Lewis
Using loop you can create a new table for each object, so if you want to display them all, this is what you want. If you want only one, then you should know which before hand and make it available to the template via a getter. Hibowl wrote: Yes, it's quite ridiculous :) But I needed to test..

Re: [T5] Access table values from html

2007-10-02 Thread Hibowl
Hi :) It seems I'm not very clear, sorry for my english... As I answered to Chris, I'd like to display all the elements on the same page, but in different tables, that's why I can't tell my page before which element to render... Anyway, your explanation is very clear :) Thank you kristian.m

Re: [T5] Access table values from html

2007-10-02 Thread Hibowl
Yes, it's quite ridiculous :) But I needed to test... My page should display all the objects (in fact the IDs) on the same page, but on different tables :) !! I think the loop with if components could be a good idea !! But I thought there was a way to display only one element of the list...(wit

Re: [T5] Access table values from html

2007-10-02 Thread Chris Lewis
No, 15 getters would most likely be ridiculous. What I still don't know is will this page be displaying all 15 at once (in different tables), or will it display only 1 based on a choice made by the user? If one, the separate your logic for extracting the selected one from the list, possibly in

Re: RequestGlobals in tapestry-ACEGI UserDetailsService

2007-10-02 Thread Robin Helgelin
On 10/2/07, T. Papke <[EMAIL PROTECTED]> wrote: > Hi, Hi! > i have tried the tapestry 5 acegi example providing security controll > for tapestry pages. > > I need the hostname of the requested url for getting the user by > username. So i want to have the username per page. > > I have tried it wit

Re: [T5] Access table values from html

2007-10-02 Thread Kristian Marinkovic
i still do not understand what you want to do but i'll try to provide some usful explanations :) if you have a list of elements you can render them using a Loop component. The Loop component (see Component Reference) provides the source parameter to pass in the list (or another collection). The

Re: [T5] Access table values from html

2007-10-02 Thread Hibowl
Ok, in fact I want all the objects from the list, but not in the same table, that's why I dont think a Loop is usuable, because I won't display them one after the other. But even if I provide a getter for my object, I don't think I can tell my page which object for the List to render (because it

Re: [T5] Access table values from html

2007-10-02 Thread Chris Lewis
Ok, but _how_ do you want to get this object? It seems like you only want one of them from the List, so you won't need to Loop. If that's right then you need only to provide a getter for your object (this assumes your page knows which specific object is desired). Hibowl wrote: I'm maybe not v

Re: [T5] Access table values from html

2007-10-02 Thread Hibowl
I'm maybe not very clear, I will try to describe better. I have an ArrayList from Fichier, and I'd like to display their IDs. Start.java : private ArrayList _listeFichiers; private Fichier _fichier; //+getters/setters Fichier.java : private fichierId; ... //+getters/setters Start.html : I

Re: [T5] Access table values from html

2007-10-02 Thread Chris Lewis
I'm sorry I'm afraid I don't understand your situation. If you could explain what exactly you are trying to do, maybe I can help. chris Hibowl wrote: Hi, thanks for your answer. I tried with the loop, but I need to display only one value. I think I could use the index parameter for Loop, but

Re: [T5] Access table values from html

2007-10-02 Thread Hibowl
Hi, thanks for your answer. I tried with the loop, but I need to display only one value. I think I could use the index parameter for Loop, but I don't see how to link it with my List. http://www.nabble.com/T5%3A-How-to-acces-to-an-array-from-loop--tf3599642.html#a10054876 Here is an example, but

RequestGlobals in tapestry-ACEGI UserDetailsService

2007-10-02 Thread T. Papke
Hi, i have tried the tapestry 5 acegi example providing security controll for tapestry pages. I need the hostname of the requested url for getting the user by username. So i want to have the username per page. I have tried it with RequestGlobals, but it did not work to inject it into this

T5: How do i reference components and pages from libraries in templates ?

2007-10-02 Thread Hugo Palma
I can't find any docs on this and i can't get it to work. Thanks...

Re: [T5] Access table values from html

2007-10-02 Thread Chris Lewis
This is a pretty basic operation that you can learn by doing the T5 tutorial. It sounds like you want to enumerate a list and display something for each iteration - a String property from each Fichier instance. To do this you need the T5 Loop

[T5] Access table values from html

2007-10-02 Thread Hibowl
Hi, I'd like to access the values of a List from my html page, but I don't know how to do that... Start.java : private ArrayList listeFichiers; (getter/setter). Start.html : I want to display a field from Fichier (type String). But how can I access to it ? Is there a way to use such a ${list

Re: T5: the scanner and JBoss

2007-10-02 Thread Geoff Callender
Yep, that worked! Many thanks. For a few moments I thought it was absolutely awesome, but now I can't decide if it's awesome or a pain. It's awesome because it means you can keep the templates and java together in the same source directories. It's a pain because your web designers might

Re: [T5] Linkable rows with Grid component

2007-10-02 Thread Nick Westgate
I think there's a good argument for making the components as malleable as possible - much more so than the other framework APIs. The exposure to upgrade breakages is probably a necessary trade-off. E.g. for the full utility of mixins to be realized: https://issues.apache.org/jira/browse/TAPESTRY-1