Re: T5: Any component

2009-06-05 Thread Thiago H. de Paula Figueiredo
Em Fri, 05 Jun 2009 22:39:35 -0300, Craig St. Jean escreveu: Although I can't really say, there is a WIKI page about it: http://wiki.apache.org/tapestry/Tapestry5AnyComponent That wiki page was about creating an Any component when Tapestry didn't provide one, so you shouldn't use the wiki

Re: T5: Any component

2009-06-05 Thread Craig St. Jean
Although I can't really say, there is a WIKI page about it: http://wiki.apache.org/tapestry/Tapestry5AnyComponent On Fri, Jun 5, 2009 at 9:33 PM, Angelo Chen wrote: > > Hi, > notice there is this component called 'Any'? what's the use of this > component? > -- > View this message in context: > ht

T5: Any component

2009-06-05 Thread Angelo Chen
Hi, notice there is this component called 'Any'? what's the use of this component? -- View this message in context: http://www.nabble.com/T5%3A-Any-component-tp23897821p23897821.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: How to remove Blackbird.css

2009-06-05 Thread Craig St. Jean
Thank you for that clarification! I haven't gotten far enough into Tapestry 5.1 to realize that... On Fri, Jun 5, 2009 at 7:55 PM, Robert Zeigler wrote: > At the moment, no. > Blackbird is used not only for debugging, but also for ajax-related > client-side notifications. Ie, if an ajax request

Re: How to remove Blackbird.css

2009-06-05 Thread Robert Zeigler
At the moment, no. Blackbird is used not only for debugging, but also for ajax-related client-side notifications. Ie, if an ajax request fails for some reason, the client will be notified via a blackbird console. You /do/ want your users to know that an issue occurred during an ajax request,

Re: Obtain the data inside RequestGlobals question

2009-06-05 Thread Thiago H. de Paula Figueiredo
Em Fri, 05 Jun 2009 17:36:39 -0300, Neo Anderson escreveu: I following the mailing list at http://markmail.org/message/t5sopnse2wgqms7u#query:accessing%20requestglobals%20inside%20dispatcher%20and%20other%20data%20support%20classes+page:1+mid:ks77ayww62mra7in+state:results, trying to obtain

How to remove Blackbird.css

2009-06-05 Thread Craig St. Jean
Hello,Blackbird is nice, but I don't want any reference to it in production. For example, the blackbird.css is included, even if I set production mode to true. Is there any way to remove this? Thank you!

Re: Decoration passed by parameter. Possible?

2009-06-05 Thread Lukasz Jazgar
2009/6/5 Lukasz Jazgar : > Suppose, I have a component: > > ComplexComponent.tml > >   ... >   a lot of tags and components >   ... >           >               .. complex content .. >           >   ... >   a lot of other tags and components >   ... > > > ComplexComponent is very usefull. I use

Re: Decoration passed by parameter. Possible?

2009-06-05 Thread Lukasz Jazgar
2009/6/5 Inge Solvoll : > From your explanation, I think you're looking for something like this? This > should be pretty close to working code. > > yourPage.tml: > >   >   Lots of HTML here >   > > > public class YourComponent { > @Parameter > private Block param1; > } > > yourComponent.tml: > >

Re: Obtain the data inside RequestGlobals question

2009-06-05 Thread Neo Anderson
Sorry, a minor correction. User (... requestGlobals.getRequest().getAttribute(USER); ... in AccessController.java) is a key (String) which is the same as "user" in Login.java Also, I can see the User object set in RequestGlobals in Login.java, but I can NOT see the User object when obtaining

Stuck on implementing recursion (or something like it) cleanly

2009-06-05 Thread ownedthx
Yesterday I opened a feature request for recursive components, https://issues.apache.org/jira/browse/TAP5-739, and had it closed for the reasons described there (basically, 'not possible'). First of all, thanks Thiago for taking the time to describe the issue and the pointer to a technique as a w

Obtain the data inside RequestGlobals question

2009-06-05 Thread Neo Anderson
I following the mailing list at http://markmail.org/message/t5sopnse2wgqms7u#query:accessing%20requestglobals%20inside%20dispatcher%20and%20other%20data%20support%20classes+page:1+mid:ks77ayww62mra7in+state:results, trying to obtain data from RequestGlobals. So in my e.g. Login.java contains

Re: ioc issues overriding MarkupWriterFactory service in 5.1

2009-06-05 Thread Martin Papy
In fact, in the AppModule it should be something like this : public static void contributeAliasOverrides( Configuration> configuration, @InjectService("PageContentTypeAnalyzer") PageContentTypeAnalyzer analyzer, @InjectService("RequestPageCache") RequestPag

Re: Decoration passed by parameter. Possible?

2009-06-05 Thread Inge Solvoll
>From your explanation, I think you're looking for something like this? This should be pretty close to working code. yourPage.tml: Lots of HTML here public class YourComponent { @Parameter private Block param1; } yourComponent.tml: On Fri, Jun 5, 2009 at 6:01 PM, Thiago H. de Paul

Re: Decoration passed by parameter. Possible?

2009-06-05 Thread Thiago H. de Paula Figueiredo
Em Fri, 05 Jun 2009 13:33:31 -0300, Lukasz Jazgar escreveu: Are render phase methods normal events? Are they bubbled to container component? No. No. But components can trigger their own events. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://

Re: Decoration passed by parameter. Possible?

2009-06-05 Thread Lukasz Jazgar
2009/6/5 Thiago H. de Paula Figueiredo : > On Fri, Jun 5, 2009 at 12:53 PM, Lukasz Jazgar wrote: > >> Is it possible in Tapestry to pass by parameter to component piece of >> html, by which component will surround some part of it? > > Take a look at the component render lifecycle, the MarkupWriter

Re: T5 with swfuploader stream failure

2009-06-05 Thread Angelo Chen
any sample code/tml for using swfuploader with t5? thanks. Ronny L wrote: > > Hi Martin > > Just figure out how to grab the file. > > basically just inject the service > > @Inject > private MultipartDecoder decoder; > > and > > private UploadedFile file; > file = decoder.getFileUpload("Fi

Re: Decoration passed by parameter. Possible?

2009-06-05 Thread Thiago H. de Paula Figueiredo
On Fri, Jun 5, 2009 at 12:53 PM, Lukasz Jazgar wrote: > Hi, Hi! > Is it possible in Tapestry to pass by parameter to component piece of > html, by which component will surround some part of it? Take a look at the component render lifecycle, the MarkupWriter interface and mixins. Maybe you'll fin

Decoration passed by parameter. Possible?

2009-06-05 Thread Lukasz Jazgar
Hi, Is it possible in Tapestry to pass by parameter to component piece of html, by which component will surround some part of it? Regards Lukasz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comm

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Onno Scheffers
Are you using the jQuery no-conflict mode? jQuery.noConflict(); Otherwise Prototype and jQuery will conflict. regards, Onno Scheffers On Fri, Jun 5, 2009 at 11:43 AM, Angelo Chen wrote: > > Hi, > > following error always show up in the error console of Firefox: > > Error: element.attachEve

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Angelo Chen
Hi Thiago, That works with my simple test page, Thanks. now will proceed to the complicated pages. Angelo Thiago H. de Paula Figueiredo wrote: > > On Fri, Jun 5, 2009 at 10:01 AM, Angelo Chen > wrote: > >> Hi, > > Hi! > >> Andy's solution works, however if modifying jquery works, it will b

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Thiago H. de Paula Figueiredo
On Fri, Jun 5, 2009 at 10:01 AM, Angelo Chen wrote: > Hi, Hi! > Andy's solution works, however if modifying jquery works, it will be > transparent, now at where should I insert the jQuery.noConflict()? jQuery's > code really too difficult for me to understand. the last two lines from > uncompres

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Angelo Chen
Hi, Andy's solution works, however if modifying jquery works, it will be transparent, now at where should I insert the jQuery.noConflict()? jQuery's code really too difficult for me to understand. the last two lines from uncompressed file are: }); })(); Thiago H. de Paula Figueiredo wrote: >

ioc issues overriding MarkupWriterFactory service in 5.1

2009-06-05 Thread Ben Gidley
I am trying to override the MarkupWriterFactory in tapestry 5.1 I tried using the the new service override contribution public static void contributeServiceOverride(MappedConfiguration configuration, @Local XhtmlMarkupWriterFactory xhtmlMarkupWriterFactory) { configuration.add(MarkupWriterFacto

Re: Serving assets from another domain

2009-06-05 Thread Thiago H. de Paula Figueiredo
On Fri, Jun 5, 2009 at 5:54 AM, Kai Weber wrote: > Hello List: Hi! > How can I achive this? Where should I start looking to implement this > feature? In the mailing list archives. :-) There's a thread discussing and giving solutions here: http://www.nabble.com/%40IncludeStylesheet-and-non-local-

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Thiago H. de Paula Figueiredo
On Fri, Jun 5, 2009 at 7:52 AM, Andy Pahne wrote: > I had the same problem. > Unfortunatly calling >  jQuery.noConflict() did not help, either. > Don't know what the exact problem was. I guess that's because jQuery.noConflict() was invoked after it should. My solution was to edit the jQuery file

T5: Huge t-formdata

2009-06-05 Thread Inge Solvoll
Hi! I'm using T5.0.18. I have a form containing a loop with possibly hundreds or even thousands of items. My problem is that when the numbers grow, the t-formdata string grows to be about 500.000 characters. The loop consists of objects that extend from a type I've contributed a type coercer to

Expansions and translators

2009-06-05 Thread Lukasz Jazgar
Hi, When I have a page with property: @Property Double result; and in template I use expansion: Result is: ${result} i get something like that: "123.456". I'd rather expect "123,456" because of polish locale of my browser. Same property shown in TextField has ',' so it is correctly loca

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Andy Pahne
I had the same problem. Unfortunatly calling jQuery.noConflict() did not help, either. Don't know what the exact problem was. My workaround: I did not include jQuery via @IncludeJavaScriptLibrary, but instead I loaded it with a plain script tag in my layout component and then called jQuery.

5.1.0.0 xsd

2009-06-05 Thread Ben Gidley
Hi, Is the tapestry 5.1.0.0.xsd published online? The samples reference http://tapestry.apache.org/schema/tapestry_5_1_0.xsd but the URL doesn't work (I know it does have to but it would be handy if it did as a lot of tools try and download the schema from the namespace url). Ben Gidley www.gidle

T5: using jQuery in 5.0.18

2009-06-05 Thread Angelo Chen
Hi, following error always show up in the error console of Firefox: Error: element.attachEvent is not a function Source File: http://127.0.0.1:8080/assets/5.0.18/scriptaculous/prototype.js Line: 4016 line: 4071 if I uncomment the following line, error goes away, any idea why? java code: //@In

Serving assets from another domain

2009-06-05 Thread Kai Weber
Hello List: I want to serve my assets (images, stylesheets, and JavaScript libraries) from another domain name to enhance the performance of my site. This is one of the recommended practices for enhanced speed from YSlow and Google's new Page Speed. For example the configuration @Inject @Pa

Re: t5 and fckeditor component

2009-06-05 Thread Otho
This is outdated I would assume. Try the chenillekit editor, which is also based on fckeditor. 2009/6/5 spaway > Dear all, > > I am trying to test out the use of FCKEditor with tapestry 5 ( > http://code.google.com/p/tapestry5-fckeditor/) - the best guide I've seen > is > do download tapestry5-

t5 and fckeditor component

2009-06-05 Thread spaway
Dear all, I am trying to test out the use of FCKEditor with tapestry 5 ( http://code.google.com/p/tapestry5-fckeditor/) - the best guide I've seen is do download tapestry5-fckeditor-1.0.2.jar into the lib folder and then use the fckeditor component in template pages like below. I have done this