Re: [T5] How to overwrite the Locale (domain specific)

2008-10-27 Thread Christian Gorbach
implement a filter like: public class HostBasedLocaleFilter implements RequestFilter { private Map serverNameMapping; private Locale defaultLocale; private ThreadLocale threadLocale; public HostBasedLocaleFilter(final ThreadLocale threadLocale, final Locale defaultLocale,

Re: I'd like to generate valid XHTML

2008-09-01 Thread Christian Gorbach
yep - the description was written for 5.0.13. for 5.0.14 the approach is the same, but needs some adaption i'll also update the page when i get the time. c)hristian Hi, That page is not quite going to get you there. I'm actually working on converting my site to XHTML, and so far I've had to mo

Re: [T5] Manipulating response after page is rendered

2008-08-21 Thread Christian Gorbach
instead of using a servlet filter you could try to contribute a own MarkupRendererFilter to do the filtering. advantage: full dom power I use this nice approach to add meta tag stuff and analytics javascript snippets. . hope it helps c)hristian Anyone? 9902468 wrote: Hi again list,

Re: Tapestry5 and css in IE6 and IE7

2008-08-05 Thread Christian Gorbach
hi, search for 'conditional comment' in the list archives.. the solution is to write a tiny custom component. c)hristian hi, In my web application are different css for IE6 and IE7. But IF IE7 and If IE6 are ordinary html comments, thats only browser understands. But Tapestry does no

T5: Services Status Page

2008-06-26 Thread Christian Gorbach
hi, it seems that the T5 services status page isn't disabled in production mode. can anyone confirm this? ${yourapp}/ServiceStatus thx c)hristian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

T5: current markup writer or document

2008-06-19 Thread Christian Gorbach
hi group, haven't found this in the sources: is there any possibility to obtain the thread's current markupwriter or document in a service class? thanks in advance c)hristian - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Redirects

2008-05-30 Thread Christian Gorbach
or more elegant:: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html just return an java.net.URL object c)hristian Hi Russell, I do this in the SetupRender phase. @Inject private org.apache.tapestry.services.Response _response; void setupRender () throws Exception {

Re: T5: change default location of application wide message catalog

2008-05-20 Thread Christian Gorbach
same needs here. there should be a module level message catalog, too. my webapps are almost empty and only used to bootstrap multiple t5 modules.. c)hristian Is there a way to change where Tapestry looks for app.properties ? By default it looks for it in WEB-INF, but I need it to be at the ro

Re: Tapestry 5 - doesn't generate valid XHTML

2008-04-15 Thread Christian Gorbach
Francois Armand schrieb: Christian Gorbach wrote: there's an annotation which can be applied to page classes. @ContentType("application/xhtml+xml") unfortunately: IE does not render pages using this content type... @see https://issues.apache.org/jira/browse/TAPESTRY-2166 Th

Re: Tapestry 5 - doesn't generate valid XHTML

2008-04-15 Thread Christian Gorbach
there's an annotation which can be applied to page classes. @ContentType("application/xhtml+xml") unfortunately: IE does not render pages using this content type... @see https://issues.apache.org/jira/browse/TAPESTRY-2166 c)hristian I'm aware this issue has been bouncing around the forums f

T5: Pushing Multiple Components into Render Queue

2008-04-15 Thread Christian Gorbach
hi all, Quote from: http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html " ..Instead of returning true or false, a render phase method may return a component. . " This works very well. But now I face the situation that a component should push more than one (embedded)

Re: T5: Zone on/off, delegate Id

2008-04-09 Thread Christian Gorbach
ately, it does not. Maybe this will work: aZoneDelegate.tml: ... ... aZoneDelegate.java: @Component private Zone _zone; public String getZoneClientId() { return _zone.getClientId(); } Then when you want to use it Peter Beshai On Wed, Apr 9, 2008 at 9:48 AM, Christian Gorbach &l

T5: Zone on/off, delegate Id

2008-04-09 Thread Christian Gorbach
hi group, hi howard, tricky problem here - I need some kind of conditinal zone rendering...(=T5 ajaxification on/off) My current solution: custom component, which - depending on a condition - does delegate to a zone component (or not). body here - should always be rendered. Depending on t

Re: How to override a service create with @Marker

2008-03-21 Thread Christian Gorbach
hmm. I'm also interested in a solution for this issue.. anyone? c)hristian Robin Helgelin wrote: > > Any help on this? Howard? > > On Sun, Mar 16, 2008 at 12:16 PM, Robin Helgelin <[EMAIL PROTECTED]> wrote: >> Hi, >> >> This is my SaltSource service from tapestry5-acegi package. >> >>

Re: T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Christian Gorbach
Francois Armand schrieb: Kristian Marinkovic a écrit : havent tried myself, but it should work this way... you could create a Dispatcher and inject the Request service. by analyzing the http headers you can determine the client and set the content-type of the response accordingly I think th

T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Christian Gorbach
hi group, I'm trying to achive to let T5 server xhtml valid pages. This seems to be easy, because T5 uses a DOM (this is really great) and different markup writers can render out different markup styles (e.g. html vs xhtml). The html markup writer is the default markup writer, to use a xml writ

Re: [T5] valid XHTML

2008-02-25 Thread Christian Gorbach
there is already an open issue http://issues.apache.org/jira/browse/TAPESTRY-2166 c)hristian Hi list, I've taken a look at T5 and followed the tutorial http://tapestry.apache.org/tapestry5/tutorial1/ I then added a doctype, following the instructions on http://tapestry.apache.org/tapes

Re: T5: Stream Text File with StreamResponse

2008-02-21 Thread Christian Gorbach
} public InputStream getStream() throws IOException { return is; } public void prepareResponse(Response arg0) { arg0.setHeader("Content-Disposition", "attachment; filename=" + filename + ".txt"); } } Thanks a lot for hel

Re: T5: Stream Text File with StreamResponse

2008-02-21 Thread Christian Gorbach
sure. if you post your streaming snippet we can take a look... Hello, I'm trying to stream a text file I created with Velocity very similar to the way it is done http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF here but it doesn't work. The text is stored in a OutputStreamWriter

T5: stack overflow caused by custom beaneditor (after submit)

2008-02-19 Thread Christian Gorbach
hi all, I have a strange stack overflow which seem to be caused by a custom beaneditor: * java.lang.Character.toLowerCase(Unknown Source) * org.apache.tapestry.ioc.util.CaseInsensitiveMap.caseInsenitiveHashCode(CaseInsensitiveMap.java:487) * org.apache.tapestry.ioc.util.CaseInsensit

Re: T5: display jpeg from a page class

2008-02-18 Thread Christian Gorbach
hi try content type: image/jpeg i guess you app-server doesnt know how to handle 'img/jpeg'. regards, c)hristian Hi, I'd like to have a URL like this: http://localhost:8080/myapp/ImageView/pict01.jpg so I make a page class as below, but when I use the above URL, Firefox will prompt user eithe

Re: [ANN] tapestry5-acegi 1.0.3 released.

2008-02-15 Thread Christian Gorbach
hi robin, thanks a lot! In my app the alias saltsource contributions don't work anymore (related to @Marker?). You can reproduce the same behavior in the example app by changing the salt (deadbeef) of the custom salt implementation. After that, logon isnt possible anymore. regards c)hristian

Re: T5: Inserting a component into a message format

2008-02-01 Thread Christian Gorbach
another solution: http://wiki.apache.org/tapestry/Tapestry5HowToAddMessageFormatBindingPrefix might help ... c)hri rbolkey wrote: > > Hi, > > Ok. This one has me stumped as far as a good way to implement. I want to > place a form field inline into a localized sentence. e.g. "I like [text >

Re: How to use LinkImpl in T5.0.9 ?

2008-01-30 Thread Christian Gorbach
hi http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html you can simply return an URL object c)hristian Kheldar666 wrote: > > Hello everybody ! > > Can anybody post an exemple of how to use the 'new' LinkImpl in T5.0.9 ? > Do we still have to use the Internal component ? Is t

Re: How to integrate Tapestry 5.0.9 with Spring

2008-01-26 Thread Christian Gorbach
hi, replace your/jetty log4j.jar with a newer one (which does support TRACE log level) http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-td12878469.html cheers c)hristian spamglik wrote: > > I check in the sources the line that crash. > > logger = _loggerSource.getLogger(def.getLoggerNam

Re: How to use jquery instead of prototype? Any idea?

2008-01-20 Thread Christian Gorbach
@T5: you can use both, prototype and jquery together: http://docs.jquery.com/Using_jQuery_with_Other_Libraries If you want to completly replace prototype you will have to re-implement the core tapestry components to use jquery. which should not be that hard... And...yes, jquery is the more elega

Re: [T5] Choosing components at runtime

2008-01-19 Thread Christian Gorbach
hi, Maybay this will help. I solved that this way: - I implemented a special delegate component which has all possible components injected via @Component - beginRender returns one of the injected components depending on business logic/database - Check the .tml-template for the delegate component

Re: [T5] Dispatcher Page possible?

2007-10-25 Thread Christian Gorbach
it's indeed a redirect. so it seems no real serverside page delegation is possible without custom contributions. Stephan Schwab wrote: > > > Christian Gorbach wrote: >> >> is it possible to implement a dispatcher/delegate page which is able to >> forwar

[T5] Dispatcher Page possible?

2007-10-24 Thread Christian Gorbach
hi all, is it possible to implement a dispatcher/delegate page which is able to forward to another known page class if business logic decides to do so. It should be a pure server-side RequestDispatcher.forward and no redirect. thanks in advance c)hristian -- View this message in context: http:

T5: tapestry-spring v tapestry-acegi

2007-10-15 Thread Christian Gorbach
hi all, has somebody managed to set up a project with tapestry-spring and tapestry-acegi together? As soon as i add the tapestryspring filter to web.xml, tapestry-acegi doesn't work anymore (based on the acegi demo app from robin) Exception constructing service 'RememberMeServices': Error invok

Re: Comparison

2007-09-27 Thread Christian Gorbach
Here's a recent comparison of Wicket and Tap from Ken Tong: http://agileskills2.org/blog/2007/09/my_thoughts_on_the_differences.html cheers c)hristian Borut Bolčina-2 wrote: > > Hello, > > has anyone done a fair comparison of T5, JSF (any incarnation), Wicket > or/and any other Java web framew

Re: url-rewriting in Tapestry 5

2007-09-21 Thread Christian Gorbach
I'm also interested in pluggable rewrite strategies. I did some tests with http://tuckey.org/urlrewrite/ some weeks ago. One of the problems was that tap5 if not a servlet, but a catch-all filter. The filter chaining didn't work for me. Anybody ? c)hristian Britske wrote: > > Thanks these al

T5 Momentum

2007-09-17 Thread Christian Gorbach
Hi all, First, T5 ist imho the most elegant (java) web framework out there. kudos to howard et al. a great piece of software. I would love to choose T5 for my next big project. but - should I really? * T5 ist still alpha * T5 has a rather small community and only a few committers (..and I read t