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,
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
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,
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
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: [
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
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
{
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
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
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
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)
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
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
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.
>>
>>
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
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
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
}
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
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
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
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
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
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
>
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
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
@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
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
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
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:
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
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
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
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
33 matches
Mail list logo