hi,
it was a mistype.. ognl is case sensitive. hashCode() worked..
also ${ognl:getSessionWrapper().getAttribute('AdminUserName')} also worked.
Thank you,
Hari
--- On Sat, 5/17/08, hari ks <[EMAIL PROTECTED]> wrote:
> From: hari ks <[EMAIL PROTECTED]>
> Subject: Re: how to use ognl in tapestry
Sorry Robert ... Your email went into my spam folder! Yahoo are a bit
over-zealous!
Thanks for your help!
Toby
Sent using BlackBerry® from Orange
-Original Message-
From: Robert Zeigler <[EMAIL PROTECTED]>
Date: Fri, 16 May 2008 14:11:24
To:"Tapestry users"
Subject: Re: Making a pro
Hi,
I get below error when I tried to use a ognl expression:
${ognl:mySessionWrapper.hashcode()}
I included t5 contrib and components and ognl 2.6.9 jars before running
application. ${ognl:mySessionWrapper} works fine though..
-
SEVERE: Processing of request failed with uncaugh
Nope.
Not a bug.
Just a result of the way that class loaders, class comparison, etc.
work in java, and a side-effect of T5's class reloading.
Classes in the .components, .mixins, and .pages are in a separate
class-loader from everything else. Class1==Class1 from different
classloaders i
Fixed it! this looks like a bug in T5 to me ...
I was trying to pass a "PageResponse" object from the enclosing "Pager"
component to the nested "Next" component. All three of these classes were in my
web.components package. When I moved PageResponse to another package (in this
case my *.model p
I was hoping that the "previous" component would be able to see the
pageResponse object which is provided by the containing pager
component. But I get a very strange and unhelpful error:
Render queue error in BeginRender[Admin:previous.if]: Failure
readingparameter 'test' of component A
You can use onValidateFormFromXYZ where XYZ is the Form component.
Your onValidateForm() method may return true to cancel bubbling of the
server-side event.
On Fri, May 16, 2008 at 9:00 AM, kranga <[EMAIL PROTECTED]> wrote:
> Using IE 7: Form gets submitted even if there are client-side validatio
I've noticed something ... If I try to pass a string to the nested component it
works as expected, it seems there is something about the PageResponse class
that it doesn't like. But this is just a normal javabean :
public class PageResponse implements Serializable {
public static final long
Thanks Robert I've had a look at that and managed to replace a page property
with a value supplied by a component at runtime. One problem I've hit though is
when I want to make a property available to a nested component. Probably best
explained with the code! Basically i'm trying to write a simp
Using IE 7: Form gets submitted even if there are client-side validation
errors.
Event bubbling side-effect: If you have a page that contains a form and a
component A, and further if the component itself has a form, then if the
component's form is submitted and you have a simple onValidateForm
Thanks Peter,
Your original question in the post is also what I would like to know.
Do you now know how to override server error pages(404, 505 etc)?
And I don't understand what Flip means with :I've turned the
RequestExceptionHandler service into a pipeline.
Can you show me some code of how
Tapestry 5 does not use ognl by default, there is a long running discussion on
this list about this. T5 uses the "prop:" binding which will look for a
property on your page or component class which must be either a javabean
property or a no-arguments method. So it is not possible to call a metho
Does anyone have tested the palette components to works from inside a
block used to update a zone?
--
Massimo
http://meridio.blogspot.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
You can use the t5components library
http://code.google.com/p/tapestry5-components/
and the demo is here:
http://87.193.218.134:8080/t5c-demo/ognlbindingpage
=)
2008/5/16 hari ks <[EMAIL PROTECTED]>:
> hi,
>
> How to use ognl expression with methods arguments in tapestry 5? ( like
> inside
Check out the environment service.
Robert
On May 16, 2008, at 5/169:23 AM , Toby Hobson wrote:
I've managed to achieve something by making the "container" a
component AND a property on my test page:
@Property
@Component(id="container")
private Container container;
but this seems like a bit
hi,
How to use ognl expression with methods arguments in tapestry 5? ( like
inside component).
In tapestry 4 I had used ognl:myObj.callMyMeth('arg1')..
I got following exception while trying to call method :
Could not convert 'prop:mySessionWrapper.getAttribute('adminUserName')' into a
com
I've managed to achieve something by making the "container" a component AND a
property on my test page:
@Property
@Component(id="container")
private Container container;
but this seems like a bit of a hack, there must be a neater way of doing this!
Toby
- Original Message
From: Toby H
Hi
I am looking to achieve something similar to the way in which JSP custom tags
work - I would like to make a property of a component available to nested
components/markup e.g.
TestPage.tml:
hello ${container.user.name}
Container {
@Property
User user;
@PageAttached()
void atta
I agree. :)
-Original Message-
From: Marcelo Lotif [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 8:54 PM
To: Tapestry users
Subject: Re: T5: Time picker component
Actually, a VERY nice component
tapestry folks should add this component (and some others too) to the
core...
IMPOR
Actually, a VERY nice component
tapestry folks should add this component (and some others too) to the core...
2008/5/7 Sven Homburg <[EMAIL PROTECTED]>:
> just commited into t5components project trunk
> http://code.google.com/p/tapestry5-components/
>
> 2008/5/7 Partogi, Joshua <[EMAIL PROTECTED]
Hi Leon
I posted a number of questions to the list about this topic, but got only a few
perls. One of them was this post, particularly Filip's answer:
http://www.mail-archive.com/users@tapestry.apache.org/msg21914.html
Also see this page, for how to override Tapestry's error page with your own
Dear all,
When I tried to return a Block component an exception occured with this
message:
A component event handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.
Hi. The problem was tomcat's version. On Ubuntu I was using tomcat 5.5
and on Windows Tomcat 6. I just installed Tomcat 5.5 on Windows too and
the problem was fixed. Of course you need to put the URIEncoder on the
connectors of tomcat, add the the parameter -Dfile.encoding=UTF-8 to
JAVA_OPTS,
Hi Tomasz,
if I have understood your problem right, what you are facing is caused, because
you use EventLink. EventLink implements the redirect-Pattern. That means a
request is not responded directly with the result page but with a redirect to
that page. Use PageLink instead. That sends the re
Hi Josh,
How do we enable it to be XHR?
Best regards,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Josh Canfield
Sent: Thursday, May 15, 2008 12:40 AM
To: Tapestry users
Subject: Re: Question of form zone
I would guess that you are not getting the AJAX
If you look at the generated HTML do you see a link to your stylesheet?
Toby
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Friday, 16 May, 2008 10:11:18 AM
Subject: T5: absolute beginner's question with CSS
Hi,
I try to enable my c
Hello
What is the best way to handle exceptions in Tapestry 5?
I want to show some kind of general error page, when an exception occurs.
At the moment I have a onException method in my BasePage class. But for
some reason the Error page is not returned.
What is the way in T5 to handle exceptio
Hi,
I try to enable my css-file via @IncludeStylesheet in my components java class.
The file seems to be found (if I rename it the compiler complains, otherwise
not)
but the css-markup does not show in the tml page.
What am I missing? My css-file is in the root folder of WebContent (Eclipse).
Tha
28 matches
Mail list logo