This is because the default binding prefix for the disabled parameter
is "prop" (i.e., a property expression).
Using disabled="${disabled}" is the hard way to do things.
On Tue, Jul 29, 2008 at 5:45 AM, Lance Java <[EMAIL PROTECTED]> wrote:
> java:
> class MyPage {
> @Property
> private Str
hi,
as the documentation mentioned. " If true, then the field will render
out with a disabled attribute (to turn off client-side behavior).
Further, a disabled field ignores any value in the request when the
form is submitted." this is not i want. i need to dynamically set the
field read-on
I think I changed the 5.0.14 Maven archetype to enable debug logging
of the application, something you definitely want to roll back once
you get started.
On Tue, Jul 29, 2008 at 2:47 PM, Sven Homburg <[EMAIL PROTECTED]> wrote:
> this is the important part of the stacktrace:
>
>... 64 more
I would subclass TapestryFilter; override init() to get the service
and store it somewhere (i.e., a static variable somewhere). Override
destroy() to clear out the static variable (to avoid memory leaks).
On Tue, Jul 29, 2008 at 2:39 PM, Franz Amador <[EMAIL PROTECTED]> wrote:
>
> Thanks again.
+1 me too
On Tue, Jul 29, 2008 at 1:04 PM, Ulrich Stärk <[EMAIL PROTECTED]> wrote:
> From me too.
>
> Uli
>
> Filip S. Adamsen schrieb:
>
> +1 on this one.
>>
>> -Filip
>>
>> On 2008-07-29 16:39, Howard Lewis Ship wrote:
>>
>>> Well, it's not like we're pushing a bytestream from the web browser
this is the important part of the stacktrace:
... 64 more
Caused by: org.apache.tapestry5.internal.services.TransformationException:
Class ee.softpro.components.Border contains field(s) (get
User) that are not private. You should change these fields to private, and
add accessor methods if
Thanks again. Putting the registry in the ServletContext looks right, but
I'm not sure it's enough for my use case. I need access to the Hibernate
session from deep in the bowels of my legacy ORM framework, and the
ServletContext is not easily accessible from there. I may just be stuck
with a s
I add this
public static void contributeApplicationDefaults(
MappedConfiguration configuration)
{
configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
}
to AppModule.java
but still no more stac trace:
An unexpected application exception has occurred.
ja
You need to enable production mode.
See the tapestry.production-mode symbol:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html
-Filip
On 2008-07-29 22:59, Argo Vilberg wrote:
And this is only stack trace in browser:
An unexpected application exception has occurred.
java
And this is only stack trace in browser:
An unexpected application exception has occurred.
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for ee.softpro.components.Border
2008/7/29 Carl Crowder <[EMAIL PROTECTED]>
> Can you post the rest of the stack
sorry
www.softpro.ee/tapestry5/arendus5.zip
Stack trace?
Where do i get this.
There are no message in console or tomcat log files.
Argo
2008/7/29 Carl Crowder <[EMAIL PROTECTED]>
> Can you post the rest of the stacktrace?
>
> Also I got a 404 for the zip file you linked to
>
> Argo Vilberg w
From me too.
Uli
Filip S. Adamsen schrieb:
+1 on this one.
-Filip
On 2008-07-29 16:39, Howard Lewis Ship wrote:
Well, it's not like we're pushing a bytestream from the web browser to
the database, or vice-versa. Everything is being read into memory as
UTF, whether it starts as UTF-8 in the
Can you post the rest of the stacktrace?
Also I got a 404 for the zip file you linked to
Argo Vilberg wrote:
> hi,
>
>
> What i do wrong?
>
>
> I want create tapestry border component.
>
>
> In webapp:
>
> tapestry.app-package
> ee.softpro
>
>
> Then i create
> ee
hi,
What i do wrong?
I want create tapestry border component.
In webapp:
tapestry.app-package
ee.softpro
Then i create
ee.softpro.components.Border.java file
and also Border.tml file. in ee/softpro/components/ directory.
And use them in Start.tml file
http://tapest
Hi,
You have to alias the Cookies service.
public static void bind(ServiceBinder binder) {
binder.bind(SecureCookies.class,
SecureCookiesImpl.class).withId("SecureCookies");
}
public static void
contributeAliasOverrides(Configuration configuration,
@InjectService("SecureCookies")
I'm already coding it up, but I created a pre-change tag just in case
it turns out to be a problem. I think this is the right approach.
On Tue, Jul 29, 2008 at 11:54 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:
> +1 on this one.
>
> -Filip
>
> On 2008-07-29 16:39, Howard Lewis Ship wrote:
>>
>
+1 on this one.
-Filip
On 2008-07-29 16:39, Howard Lewis Ship wrote:
Well, it's not like we're pushing a bytestream from the web browser to
the database, or vice-versa. Everything is being read into memory as
UTF, whether it starts as UTF-8 in the browser, or ISO-8859-1 in the
database. As it
Em Tue, 29 Jul 2008 14:44:03 -0300, Blower, Andy
<[EMAIL PROTECTED]> escreveu:
Thiago,
Hi!
Sorry I don't understand your objection. Could you expand on it please?
Especially where you say "have a memory and bandwidth penalty using 2
bytes to encode many characters that would be encoded
UTF-8 as default
+1
Thiago,
Sorry I don't understand your objection. Could you expand on it please?
Especially where you say "have a memory and bandwidth penalty using 2 bytes to
encode many characters that would be encoded as 1 in UTF-8".
In my experience char encoding can be an absolute nightmare and having as m
>
>
>
Disabled is a parameter to the textfield component. It's default binding is
prop so you don't want the ${} around disabled.
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/TextField.html
Josh
On Tue, Jul 29, 2008 at 5:45 AM, Lance Java <[EM
Strings are stored in UTF-16 by default anyway in Java (a Char type is
16bits), so unless you're constructing the strings in very creative
ways, you're already paying the memory cost. The question of what you
output to the browser or the database is a matter for adaptation and
transmission
hi,
thank you for your reply. i will try on it. :)
On Tue, Jul 29, 2008 at 8:45 PM, Lance Java <[EMAIL PROTECTED]> wrote:
> java:
> class MyPage {
> @Property
> private String value;
>
> @Property
> private boolean disabled;
> }
>
> tml:
>
>
> On 29/07/2008, Tan [EMAIL PROTECTED] <[EMAI
I agree with using UTF-8 as default... We're using the UTF-8 Filter
for a while with some different db's (PostgreSql and SqlServer,
encoded with ISO-8859-1) and we never had any problem with it.
+1
--
Atenciosamente,
Marcelo Lotif
Programador Java e Tapestry
FIEC - Federação das Indústrias do E
Hi Steve
We're actually trailing red5 at the moment. So far we've had mixed results but
these have been issues related to the server itself, nothing relating to T5
integration. OpenLaszlo is a pretty compelling alternative to Flex because it's
relatively mature and there is a large amount of do
Hi There,
can't we just go with the UTF-8 by default (pages, forms etc.) and
specify only changes to this default mapping (global or local or
even on activate or using the actual writer.
Often you end up using UTF-8 by default and you are messing with
filter and forms and stuff. This is indeed
Hey everyone,
I have a t5 project that is need of full-time contractor over the next 3
months. Working remote is fine. Please feel free to contact me at the number
below any time or email me if interested.
Dan Adams
Senior Software Engineer
Interactive Factory
p: 617.235.5857
Wait, never mind. I have had my head in XML mode, I forgot about
StreamResponses and this page:
http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile
Sorry!
Carl Crowder wrote:
> Hi again,
>
> My app needs to serve JNLP files, and these files are dynamically
> generated. I'm d
Hi again,
My app needs to serve JNLP files, and these files are dynamically
generated. I'm doing this by simply having the tapestry page render a
template as normal, but using the JNLP element as the page root. I then
set the content type on the page to be the JNLP MIME-type.
This all works fine
Cheers for all the replies - I've taken Moritz's approach in the end :)
I've updated the wiki page to reflect this.
Carl
Moritz Gmelin wrote:
> Hi,
>
> I think there is a bug in the Wiki. Try this instead
>
> Component page = componentSource.getPage(pageName);
> Private prvAnno
The book from Alexander Kolesnikov uses the 5.0.6 version, which is a
little different from the latest one (5.0.13)...
According with the component reference
(http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Submit.html),
you have to change your code t
Em Tue, 29 Jul 2008 11:39:21 -0300, Howard Lewis Ship <[EMAIL PROTECTED]>
escreveu:
My observation is that the current design; allowing every page to have
its own charset, is beginning to feel like overkill, especially given
that the solution has a number of frayed edges.
What about setting
Well, it's not like we're pushing a bytestream from the web browser to
the database, or vice-versa. Everything is being read into memory as
UTF, whether it starts as UTF-8 in the browser, or ISO-8859-1 in the
database. As its read from one source or written to another, the
character set is going
We had a requirement to put an image after each label for form fields that
were required.
I am new to tapestry but after some investigation and by following Howard's
pattern I was able to do this.
Firstly I decorated the DefaultValidationDecorator class and added the image
inside the label. I
massimo,
i ask me sometimes, now i ask you ;-)
why do you use the the Restriced annotation not directly
your code RestrictedWorker class seach for Restriced class an injected
some metas into the page/component
after that the AccessValidatorImpl ask for the private meta ???
why not directly work th
I've been trying to use the same code.
The problem lies apparently in the fact that the class returned by
getAnnotation is not Private but a proxy...
...
page anno class=$Proxy40
...
Quoting Moritz Gmelin <[EMAIL PROTECTED]>:
Hi,
I think there is a bug in the Wiki. Try this instead
On Tue, Jul 29, 2008 at 1:41 PM, Carl Crowder <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to create an access control system using a dispatcher as
> described on the wiki page.
>
> I'm following this:
> http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess
> So that I can use an annotati
java:
class MyPage {
@Property
private String value;
@Property
private boolean disabled;
}
tml:
On 29/07/2008, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> hi all,
>
> i'm newbie in tapestry. May i know is there any dynamically way to
> code it in java to control over tml
Hi Thanks for the response.
What do I alias though? The PersistentLocaleImpl? I've tried creating an
alias for Cookies and SecureCookies. The problem is when TapestryModule
tries to build PersistentLocaleImpl it finds two Cookies interfaces
(SecureCookies that extends Cookies and Cookies itself (a
Again, I'm trying to follow what is in the Kolesnikov book and I can't
get it to work:
template:
value="Submit"/>
Try http://files.doublenegative.com.au/jumpstart .
On 28/07/2008, at 11:41 PM, draxtor wrote:
Hi,
Does anyone know some good beginners walkthrough or tutorial about
creating
enterprise applications with tapestry.
Or if anyone has some good advice.
I tried by my self with Tapestry 4.15, EJB
Hi,
I think there is a bug in the Wiki. Try this instead
Component page = componentSource.getPage(pageName);
Private prvAnnot = page.getClass().getAnnotation(
Private.class);
when your Annotation is called Private of course.
You'll get th
hi all,
i'm newbie in tapestry. May i know is there any dynamically way to
code it in java to control over tml
Hi Russell,
Take a look at aliases - should do the trick:
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/alias.html
-Filip
On 2008-07-29 13:38, Russell Brown wrote:
Hi Chris,
Do I? I'm not sure. Will that help the fact that PersistentLocalImpl has
a problem disambiguating bet
Hi,
Both you and Thiago are of course right. I just remember Howard saying
something about this being very difficult to do. Probably has something
to do with Javassist.
-Filip
On 2008-07-29 05:30, Ivan Dubrov wrote:
Filip S. Adamsen wrote:
Hi,
As far as I know it's very difficult - if not
Hi,
I'm trying to create an access control system using a dispatcher as
described on the wiki page.
I'm following this:
http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess
So that I can use an annotation to declare which pages need a logged-in
user.
It checks the meta-data in the compone
Hi Chris,
Do I? I'm not sure. Will that help the fact that PersistentLocalImpl has
a problem disambiguating between SecureCookies interface impl and
Cookies interface impl? I can add a marker to MY class that uses
SecureCookies but I can't add a marker to the TapestryModule auto binder
built Persis
Sounds like you want @Marker:
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ioc/annotations/Marker.html
chris
Russell Brown wrote:
> Hi,
>
> I need to write secure session cookies and Tapestry Cookies interface
> and CookiesImpl don't do that. So I extend the Cookies interfac
that is the right (coded) behavior
but i dont agree with that too
https://issues.apache.org/jira/browse/TAPESTRY-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588658#action_12588658
2008/7/29 <[EMAIL PROTECTED]>
> Sorry for another newbie question
Hi,
I need to write secure session cookies and Tapestry Cookies interface
and CookiesImpl don't do that. So I extend the Cookies interface like
this
Public interface SecureCookies extends Cookies {
void writeSecureCookie(yada,yada);
}
And create an imple that injects the
I want to use the tapestry-test module, but can't find much information
about how to get started.
Is there some kind of screencast or tutorial planned for how to use the
tapestry-test module with all kind of examples?
-
To
Sorry for another newbie question :-) but why does:
the name of the user
print "the name of the user" rather than "User Name" like it does in
the Kolesnikov book?
thanks,
p.
On Tue, Jul 29, 2008 at 2:17 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> Here's a question. I'm still struggling with getting Tapestry to do
> the right encoding when producing output, and to set the response
> encoding to the correct value before reading query parameters.
>
> There's lots
Very cool.
Thanks.
Jonathan Barker wrote:
Personally, I like a combination of the InMemoryDaoimpl to provide the
UserDetailsService (great for development and admin accounts) and then LDAP.
Here's a modified extract from an AppModule file - I've clumped together
things that could be separated
Cheers Toby. That is what I was after.
Good to hear from you again, too (we worked together on 4oD).
Cheers
Russell
-Original Message-
From: Toby Hobson [mailto:[EMAIL PROTECTED]
Sent: 28 July 2008 17:54
To: Tapestry users
Subject: Re: T5: HttpSession id. How to get it?
Hi Russel,
Ha
55 matches
Mail list logo