;.../app.js/1.1" or ".../app.js/20080821" or anything else that
changes between application deployments. This should not be added to the
manually versioned resources, so there should be some configurability, I
think.
What do you think? Do I have other options to resolve this
I tried to implement a ApplicationStatePersistenceStrategy using Memcached.
but in my page Start.java:
@ApplicationState
private AppState appState;
@ApplicationState
private SessionAppState session;
@Inject
private Logger log;
void onActivate() {
log.info("cache
Hi,
here is my test result. please comment. is it a bug?
public void pageEndRender(PageEvent event) {
String abc="志志志";
System.out.println("inside page end render"+abc); //i get ??? on print out
}
public void pageValidate(PageEvent event) {
String yoyo2="志";
No, I understood what you are saying, when you put something on the
environment in the page and then try to access it in a component, you
are using the environment (via the Environmental annotation). What you
are missing is that the forms event phases do not have access to the
environment that is
Why don't you store the user ID as an application state object (aso)?
Martijn
On Thu, 2008-08-21 at 22:07 -0400, Kevin Crenshaw wrote:
> Adam,
>
> Thanks for responding (again :-) ) . However, as you can see in my
> question, I'm not trying to use the environment during an event phase -
> sorr
Adam,
Thanks for responding (again :-) ) . However, as you can see in my
question, I'm not trying to use the environment during an event phase -
sorry if I misspoke before. The user object is placed on the environment
in the SetupRender phase. The problem is that after I submit the form I
get
sorry!!!
here is the link:
http://groups.google.com/group/tapestry5chinaforum
welcome to join!
--
View this message in context:
http://www.nabble.com/Tapestry5Chinaforum%EF%BC%88%E4%B8%AD%E6%96%87%E8%AE%BA%E5%9D%9B%E6%AC%A2%E8%BF%8E%E5%A4%A7%E5%AE%B6%E5%8A%A0%E5%85%A5%EF%BC%89and-some-words-to-H
The best way to achieve this is to put the userId on the context of the
form using the "context" parameter. You will then have access to the
userId in the OnEvent of the form to do a lookup of the User.
If you insist on using the environment during the form submission event
phase to get the User,
Thanks to Martijn, the issue is resolved now.
His fix is available in version 1.0.4 which is now available through the
usual update-site
http://digitalsoul.org/loom/update-site
If you have problems updating to this version (like me here at work),
uninstall the plugin and afterwards delete loom fro
I have a page that contains a component that contains a form component.
The page places a user object on the environment in its SetupRender
phase that is used by the page's components. The User object is obtained
using the userId that is passed in the page context. When I submit the
form I ge
On Thu, Aug 21, 2008 at 1:50 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Tapestry 5.0.14 changes the way .properties files are read so they are read
> in a way that works with UTF-8 encoded files, at least on Java 6.
JDK 1.5 and 1.6.
>
> Now, my guess is that they were being read co
Strict US-ASCII character set is afaik made up of characters <= 127.
Your special characters were therefore not pure ASCII. I think that in
your case the machine your are coding on defaulted to a charset that
could handle your special characters as you intended them to be. If you
would have loaded
Is there a way to test a page without having to go through the xml that the
page generates through PageTester (
http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html) ?
Here's the situation : I want to write a couple of tests that test the
proper validation in the submission of a form
This is what I'm already doing :)
I just thought strange because nobody noticed yet. I had to go through
all my .properties files changing the encoding. But fortunately, as I
see, it's just me.
Thanks.
On Thu, Aug 21, 2008 at 5:32 PM, Martijn Brinkers (List)
<[EMAIL PROTECTED]> wrote:
> So what y
Hi,
Tapestry 5.0.14 changes the way .properties files are read so they are
read in a way that works with UTF-8 encoded files, at least on Java 6.
Now, my guess is that they were being read correctly before because Java
read the .properties files using the default encoding, which would
probab
So what you are saying is that when you save your property file as UTF-8
the 'special' characters are shown correctly but not when you save your
propery file as a ANSI file?
If so why don't you save it as UTF-8 and leave it this way? Or am I
missing something?
Martijn
On Thu, 2008-08-21 at 17:0
No one is having this kind of problem? I tested in other situations
and this is still happening... I'll try to change my eclipse's default
configuration, maybe will help for now...
On Wed, Aug 20, 2008 at 9:42 AM, Marcelo Lotif <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm experiencing a little pro
I have a two components: TabSet and Tab. TabSet retrieves the user who is
currently logged in (if the user has logged in) from acegi, does some
processing and makes it available to nested components via the environmental
service:
void beginRender() {
if (loggedUser == null)
return;
// process u
Thanks. Now I got the zone handling straight. That means at least I
see something in the response. However it is not rendered.
And despite mentioned in the response, the init method of the tapestry
script is never called (I set a firebug breakpoint there).
Is that a bug? See the response body below
Thanks, greatly appreciated.
Eric
On Thu, Aug 21, 2008 at 12:27 PM, Martijn Brinkers (List) <
[EMAIL PROTECTED]> wrote:
> It's not typical to html escape input. HTML is about presentation and
> most input is just input. In other words, you want to HTML escape just
> before presenting the input t
It's not typical to html escape input. HTML is about presentation and
most input is just input. In other words, you want to HTML escape just
before presenting the input to the user but not store the input escaped
(at least I think that's what most applications use).
Tapestry does already HTML esca
i post my configuration
web.xml
---
redirect
org.apache.tapestry.RedirectFilter
redirect
/
TestPortal
org.apache.tapestry.ApplicationServlet
1
TestPortal
/app
TestPortal
Hello Howard,
Does Tapestry provide any way to do this on input, even if it is just for
all form data that is submitted? Perhaps being able to wire an interceptor
of some form in?
Thanks,
Eric
On Thu, Aug 21, 2008 at 11:57 AM, Eric Rogers <[EMAIL PROTECTED]> wrote:
> Hello Howard,
>
> Thanks
Hello Howard,
Thanks for the information.
Thanks,
Eric
On Tue, Aug 19, 2008 at 1:18 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> Tapestry mostly captures this on the output side; that is, when you
> output a string (using, say ${property} expansion), the output is
> filtered; the key HT
I have the same problem with the new Beta. I can switch from .tml
to .java but not from .java to .tml. I have tried all kinds of "Template
fragment root" variants but it does not work.
Martijn
On Thu, 2008-08-21 at 14:31 +0200, Tobias Wehrum wrote:
> Hi Christian,
>
> after installing, I cannot
Tapestry is not the problem here. If you write a filter (either j2ee
filter or tapestry filter), it is your job to capture and buffer the
output if you don't want it to go out to the client before you're ready.
I'm sorry but that is just the way things are ( I can get into
technical reasons w
Chris,
Thanks for the interesting feedback. I agree that with whatever
authentication system, you will need to have some sort of way to tell which
pages need to be secured etc. However, what I was trying to say is using
the dispatcher approach, I will have to do a lot more work to get there.
Let
Hi Christian,
after installing, I cannot switch from .java to .tml using Ctrl+Alt+X,
other way works.
- Tobias
Christian Scheid schrieb:
hey list,
just thought i let you guys know that i released a new (beta) version of the
loom plugin.
See http://loom-t5.googlecode.com for release notes.
Two suggestions:
1) Remove the RequestFilter from the AppModule. It could lead people to
believe that it is obligatory. Besides that, it's written as an anonymous
class, something that makes undertanding the code harder.
2) Change the component example. Instead of using the
syntax, use t
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,
hey list,
just thought i let you guys know that i released a new (beta) version of the
loom plugin.
See http://loom-t5.googlecode.com for release notes.
cheers,
christian
On Tue, Jun 17, 2008 at 5:10 PM, Christian Scheid <[EMAIL PROTECTED]>wrote:
> hey dave,
>
> not a problem at all. I only
Sven Homburg wrote:
>
> look for that, that should helps you
> http://pastebin.com/f2a26b195
>
> -
> best regards
> Sven
>
Thanks a lot again, Sven. Your help is very much aprecciated ;D. The Proxy
in my lan is deniying me of accessing to that link, so i will check it when
i arrive at h
look for that, that should helps you
http://pastebin.com/f2a26b195
2008/8/21 Daniel Alonso Sanchez <[EMAIL PROTECTED]>
>
>
>
> Andy Pahne-3 wrote:
> >
> >
> >> Thanks a lot for your response, but the problem still remains :-((. I
> >> have
> >> insert this code
> >> -
> >> @Inject
> >>
Andy Pahne-3 wrote:
>
>
>> Thanks a lot for your response, but the problem still remains :-((. I
>> have
>> insert this code
>> -
>> @Inject
>> private ComponentResources resources;
>>
>>
>>
>> and
>>
>> -
>> resources.getMessages().get("hibernateexcept
>Basicly in all your applications classes that get "enhanced" by Tapestry
IOC.
thats not right
the @Inject annotation only works in components, pages and mixins
2008/8/21 Andy Pahne <[EMAIL PROTECTED]>
>
> Thanks a lot for your response, but the problem still remains :-((. I have
>> insert this
Thanks a lot for your response, but the problem still remains :-((. I have
insert this code
-
@Inject
private ComponentResources resources;
and
-
resources.getMessages().get("hibernateexception");
but i get a null value for "resources" obje
nice post,
i don't see mention of automatic template and class reloading..
:)
Davor Hrg
On Thu, Aug 21, 2008 at 7:13 AM, Partogi, Joshua <[EMAIL PROTECTED]>wrote:
> Dear all,
>
> I written a small blog post to evangelize people about T5 here:
>
> http://joshuajava.wordpress.com/2008/08/21/why-
the MessagesBean class dont looks like a tapestry component,
if so, you cant inject via the @Inject annotation
2008/8/21 Daniel Alonso Sanchez <[EMAIL PROTECTED]>
>
> Hi again to everybody, sorry for dsiturbing again, but i have spent at
> least
> two hours reading the docs, wiki, Tapestry in Act
Andy Pahne-3 wrote:
>
>
> First of all you inject ComponentResources:
>
> @Inject
> private ComponentResources resources;
>
>
> Then, you can do this:
>
> String message = resources.getMessages().get("some-message");
>
>
> I am not aware if you can inject Messages directly,
First of all you inject ComponentResources:
@Inject
private ComponentResources resources;
Then, you can do this:
String message = resources.getMessages().get("some-message");
I am not aware if you can inject Messages directly, but I would not be
surprised if you could somehow.
Hi again to everybody, sorry for dsiturbing again, but i have spent at least
two hours reading the docs, wiki, Tapestry in Action book, but... i can't
solve my actual problem.
The thing is that i'm trying to create a MessagesComponent: a component that
let's to add aliases, and before insert them
i tried keyed in big-5 mandarin in textfield and submit the form, after form
submiited i do print out, i get ???.. do i need to do any configuration ? in
order to make textfield support mandarin?
-
To unsubscribe, e-mail: [EMA
42 matches
Mail list logo