Yea I meant I would set it onActivate of every page (which was a mess).
Thanks again for your help.
Zack
joshcanfield wrote:
>
>
> Yeah, onActivate doesn't get called for your components, it's a
> page-level event.
>
>
--
View this message in context:
http://www.nabble.com/Layout-Attri
> but I just stuck initialization in the onActivate method instead of handling
> it per method like your example (instantiating the list in onActivate doesnt
> work).
Yeah, onActivate doesn't get called for your components, it's a
page-level event.
> This issue
> might be something worth mentioni
Hi All,
Quick Question.
I noticed that the normal page navigation (returning a page from a method)
generated a 302 redirect. Is there a way to specify to use a 301?
Danny
Josh you rock man. We talked about the initialization problem on #tapestry
but I just stuck initialization in the onActivate method instead of handling
it per method like your example (instantiating the list in onActivate doesnt
work). I would have never suspected that to be the problem. This is
I posed the previous message before you posted yours. I'll give this another
try before moving to an ASO! Thank you Josh.
joshcanfield wrote:
>
>> Hey guys thanks a lot for you help so far. Josh, I have tried adding
>> @Persist("flash") to many different parts with no apparent luck.
>
> Your
Josh, Filip, Thiago thanks again for your help. An ASO is probably the best
option, good suggestion Thiago. Josh I think at one point I had tried
removing the initialization of the list which seemed to have the same effect
but I think I'm putting more work into this than I need to. I am coming f
> Hey guys thanks a lot for you help so far. Josh, I have tried adding
> @Persist("flash") to many different parts with no apparent luck.
Your original problem was that you are initializing the list when you
declare it. Did you fix that? I provided a link to updated code before
which had a compil
I think I just misunderstood your question.
By now I really think you should consider doing as Thiago suggested and
move the whole thing into an Application State Object. It'll take a bit
of work - you'll have to keep track of which messages to display on
which pages etc. - but it will probabl
Isnt that basically the same as having the attribute as part of the Layout
class? It just seems unnecessary to have to pass my message list to the
layout when it belongs in the layout component anyways. Is this a
workaround to some issue?
Thanks,
Zack
Filip S. Adamsen-2 wrote:
>
> Hi again,
>
Hi all,
I try to integrate hibernate into T5 and get this:
Render queue error in SetupRender[HbAction:loop]: Failure reading parameter
source of component HbAction:loop: Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
PerthreadMana
Yes you fears are justified.
The right approach would be to store the component's ids (the
getCompleteId() method of ComponentResources).
You can use the ComponentSource service to convert a component id back
into a component. It will take care of obtaining the right page, etc.
On Fri, May 23,
I have a radiogroup with two radios. Both have a linked formfragment
which are mutually exclusive. The problem is that the invisible
formfragment will be submitted after switching the radio button.
Example:
Radio A is selected when the form is beeing rendered. Formfragment A is visible.
User selec
Hi,
I just want to say that the official 1.1.0 release is available. It
features initial support for secure methods, add supports for
overriding the AuthenticationProcessingFilter and fixes a few bugs. It
also added a few new features to the IfRole component.
--
regards,
Robin
---
I'm creating a set of tabs (using t5components' TabSet) with dynamic
content. Each tab contains just a t:delegate whose "to" parameter is
bound to a property. I have a drop-down menu of event links that set
those properties so that they reference the components that provide
the tabs' content. Th
> That's an interesting idea; the current value could, in fact, be
> stored into form data (that's "relatively" secure).
I could be wrong, but isn't the"form data" you are talking about
stored in a hidden field on the page? That kind of talk could get
Tapestry5 banned from my day job! It's hard en
inject and use WebRequest
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/web/WebRequest.html
On Fri, May 23, 2008 at 8:19 AM, t <[EMAIL PROTECTED]> wrote:
> in my service
> i use cycle.getParameter("name") to get the paramter value. is there any
> method that print the url
I wrote a webmail app once, where cross site scripting was a concern for html
email messages.
I parsed the html message to a dom with htmlcleaner, then removed all
Yes I can take your point. What caught me out was following the link
from the wiki HowTo - I didn't even realise I was in part of the
documentation for the spring module - anyway, its nice to see that the
mailing list is so active, I'm looking forward to upgrading to Tapestry5.
Howard Lewis
how to get user requested url through cycle object?
let say user enter http://www.abc.com/app?service=abcService¶mer1=test
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
It's a question of what's is assumed vs. what is understood. We can't
be in the business of recapitulating all the Maven theory every time
we talk about a dependency. Anyone whose used Maven will understand
that each module, and from the project layout tapestry-spring is
clearly its own module, is
Hi again,
You just need to pass it from your page to your layout.
Page class:
@Property
private MessageHolder messages;
Page template:
...
Layout class:
@Property
@Parameter
private MessageHolder messages;
Layout template:
...
Etc. etc.
-Filip
On 2008-05-23 17:20, zack1403 wr
Hi,
Unfortunately, the documentation doesn't state that it **is** a separate
module - which is precisely my point. Spring is so ubiquitous now that
it would not be a wild assumption that Tapestry would come with Spring
support out of the box. I think its reasonable enough to have Spring as
That's an interesting idea; the current value could, in fact, be
stored into form data (that's "relatively" secure). Alternately, the
password field could be changed to only update its value parameter if
the submitted value is non-blank (that's probably more useful).
On Fri, May 23, 2008 at 8:09
Thanks Howard, we will give it a try... this is more appropriate for our
requirements!
cheers,
Peter
- Original Message -
From: "Howard Lewis Ship" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Friday, 23 May, 2008 6:20:21 PM GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re:
On Fri, May 23, 2008 at 5:20 PM, Joachim Van der Auwera
<[EMAIL PROTECTED]> wrote:
> In my beans, on the password field I just do something like
>
> public void setPassword( String value )
> {
> if ( null != value && !"".equals( value ) ) password = value;
> }
I've used this same technique in t
We use it in places already, but really we want to make sure the unwanted data
never gets posted, a custom validator is probably our best.
cheers
Peter
- Original Message -
From: "Thiago HP" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Friday, 23 May, 2008 6:12:02 PM GMT +02:00 Athens
In my beans, on the password field I just do something like
public void setPassword( String value )
{
if ( null != value && !"".equals( value ) ) password = value;
}
Kind regards,
Joachim
Dan Adams wrote:
Yeah, that was my question. Do you have to create a separate field outside your
bean
Using the "parseClient" event, you could intercept the string
submitted by the user and do the filtering before the value is
assigned to a page property.
You could also design a translator for this purpose.
On Fri, May 23, 2008 at 3:41 AM, Peter Stavrinides
<[EMAIL PROTECTED]> wrote:
> Hi All
>
>
Hey guys thanks a lot for you help so far. Josh, I have tried adding
@Persist("flash") to many different parts with no apparent luck. Filip, is
there a way I can utilize my list of messages from my template component
when the list is an attribute of the page? I obviously get the Could not
conve
On 5/22/08, zack1403 <[EMAIL PROTECTED]> wrote:
> Yea I've tried multiple different combinations of @Persist to get something
> to work on my pages and component with no luck. Thanks anyways for your
> help Filip.
Why not @ApplicationState, as the information does not belong to a
single page
On 5/23/08, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
> The data in our database is shared by other apps, so its integrity is most
> important and requires extensive validation... therefore I would have to take
> a more
> defensive approach and filter out unwanted markup upfront.
What about us
Yeah, that was my question. Do you have to create a separate field outside your
bean and then update manually if it hasn't changed? Or is there a way that the
field could be smart enough to store the value in the session or something and
then update the bean value only when the user enters one.
The data in our database is shared by other apps, so its integrity is most
important and requires extensive validation... therefore I would have to take a
more defensive approach and filter out unwanted markup upfront.
- Original Message -
From: "9902468" <[EMAIL PROTECTED]>
To: users@ta
What application server are you using?
Toby
- Original Message
From: zaxeer <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Friday, 23 May, 2008 1:40:54 PM
Subject: Tapestry Page Pool handling.
Hi All,
I am facing a problem in tapestry related to pages cache, when some html
pag
I'm new to tapestry, so pardon my novice question
For date fields, I'd like to use the minDate validator to check against a
date which is obtained from the user. Currently the minimum date I'd like
to use is defined in my java file to be DOB, so what I've been attempting
is
.. validat
Dan,
This component does not display the previous value if there is one and
hides the input. This is important as view source would otherwise reveal
the passwords.
The only thing you need to be careful about is that it will update your
password field in the bean to null when no new value was
Hi All,
I am facing a problem in tapestry related to pages cache, when some html
page is changed its changes are not reflected until we restart server or set
the parameter
-Dorg.apache.tapestry.disable-caching=true.
both cases are not good for me.
I want to ask that can i access tapestry page p
Hi,
It seems obvious to me that you need to add any self-contained module such
as tapestry-spring, tapestry-hibernate or tapestry-upload to your
application only if you use it.
/Serge
TapestryBeast wrote:
>
> Hi,
>
> Just to say that I think the documentation here:
>
> http://tapestry.apach
Hi,
we have always done it so that user can input anything they like, but when
the page renders some marks like < and > are encoded to html entities. This
way the data is in the database exactly like the user intended, and browser
etc. is safe because dangerous characters are encoded.
If you en
To ask a dumb question: what's the use of the passwordfield component since it
doesn't output a value? I have a 'edit user' page where you have password and
'confirm password' fields. When you submit the form it resets the value to
empty if you don't enter anything.
Dan Adams
Senior Software En
Here is my complete stack trace :
12:57:12.140 INFO [main]
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
>09> Root WebApplicationContext: initialization completed in 4058 ms
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apach
Didn't know that the maven package had its artifactid changed ...
Perhaps that should be added to the 5.0.12 release notes.
In any case, my error is still there ...
Stephane
Filip S. Adamsen a écrit :
That's weird. Have you changed the
org.apache.tapestry:tapestry-annotations dependency to
o
Hi All
Can anyone offer suggestions on best practice for handling validation
specifically for preventing cross site scripting and code injection etc in
Tapestry applications. Is there anything built into the framework I could
use... if not what is the best way to plug something of my own in. Wh
That's weird. Have you changed the
org.apache.tapestry:tapestry-annotations dependency to
org.apache.tapestry:tapestry5-annotations?
-Filip
Stephane Decleire skrev:
I use Maven and i have forced a refresh of my repository but i get the
same error ...
Stephane
Filip S. Adamsen a écrit :
Hi
Have changed it in your web.xml?
app
org.apache.tapestry5.TapestryFilter
- Original Message -
From: "Stephane Decleire" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Friday, 23 May, 2008 1:03:28 PM GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: T5.0.12 : MappedConfigura
I use Maven and i have forced a refresh of my repository but i get the
same error ...
Stephane
Filip S. Adamsen a écrit :
Hi,
This is most likely due to classpath conflicts. Make absolutely sure
that you don't have any old Tapestry jars around from before the
package rename.
-Filip
On 20
Same error as mine but on another class ...
Tobias Wehrum a écrit :
Hi,
when I switch to the current T5.0.12-SNAPSHOT, I get the following
exception while starting:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tapestry/contrib/services/ImageService
at java.lang.
Hi,
when I switch to the current T5.0.12-SNAPSHOT, I get the following
exception while starting:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tapestry/contrib/services/ImageService
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.private
Hi,
Just to say that I think the documentation here:
http://tapestry.apache.org/tapestry5/tapestry-spring/
needs updating.
Nowhere does it state that a dependency on tapestry-spring is needed in
pom.xml as such:
org.apache.tapestry
tapestry-spring
$
No luck? That sucks. =/
I thought occured to me just before I fell asleep last night, though.
Perhaps you should store the messages directly in your pages instead and
pass them on to your layout? That's how I would do it, anyhow.
You could wrap the add functions in a MessageHolder class that
50 matches
Mail list logo