I solved it another way:
Page X persists the session object. Page X also defines a method which
invokes componentResources.discardPersistentFieldChanges.
I navigate to page Y. On page Y I @InjectPage X and, at the appropriate time
I invoke the method on
page X that discards all persistent data
One solution will be to remember the previous page and if the new page
is not the same as the old page, remove the page-specific attributes.
You can check https://github.com/argoyle/tapestry-breadcrumbs for the
first part and AbstractSessionPersistentFieldStrategy for the second
part.
But I do fe
Yep, it does not solve my problem. Being on another page than the one setting
the object in session, discarding will not remove my object of interest.
Still digging for a solution. I wonder if I could just cast the session back
to a Servlet HttpSession and just invoke removeAttribute from there. Th
@DiscardOnPageReset discards on the next page visit which may not give
you much, depending on your situation. Tapestry-conversations still
going strong, allows you to expire pages and so on, see
http://tynamo.org/tapestry-conversations+guide.
Kalle
On Fri, Jul 15, 2011 at 6:53 PM, bogdan_cm wro
I'll have a look. Thanks very much for the reply.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/removing-attributes-from-session-from-pages-other-than-the-one-setting-it-tp4592795p4592862.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Is that to keep sessions synced across multiple load balanced instances? It
wouldn't be useful on a free single instance anyway.
Mark
On Jul 15, 2011 5:30 PM, "Paul Stanton" wrote:
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ComponentResources.html#discardPersistentFieldChanges()
You'd need to call it on the page you want the persisted fields
discarded. Knowing when to call the method can be touchy, I believe
this article might be useful.
http://tawus.
Hi again everyone,
I have hit another snag.
Page X contains a session persistent field:
@Persist
private ArrayList paginatedResults;
I am navigating away from page X to page Y. On page Y I want to remove the
persisted object "paginatedResults" from the session.
I am looking
org.apache.tapestry5.ioc.Registry
regards
Taha
On Sat, Jul 16, 2011 at 3:09 AM, hese <1024h...@gmail.com> wrote:
>
> Which class do I cast it to?
>
> = (??) servletContext.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME);
>
> Looks like tapestry IOC is a bunch of classes? Not sure which one to
what's the story with cloudbees and "session store" ?
It says they don't offer it under the free account:
http://cloudbees.com/run-pricing.cb
but i can't find any definition of what they're talking about...
On 14/07/2011 12:34 PM, Taha Hafeez wrote:
Hi Mark, David
On Thu, Jul 14, 2011 at 7:3
Which class do I cast it to?
= (??) servletContext.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME);
Looks like tapestry IOC is a bunch of classes? Not sure which one to use.
Thanks!!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-access-SessionSt
Another way, my preferred, is to use Hibernate's SchemaExport class and
generate the DDL to a file. As far as I can imagine, the Maven plugin and
the Ant task are just ways of using that class.
On Fri, 15 Jul 2011 17:23:49 -0300, Mark wrote:
I'm not sure if this helps, but you should be ab
On Fri, 15 Jul 2011 16:25:22 -0300, hese <1024h...@gmail.com> wrote:
Hi All,
Hi!
I have a listener registered with my servlet container which adds users
to the servlet context as they login (so i have a list of currently
loged in
active users). Depending on the user's settings I want to
I'm not sure if this helps, but you should be able to generate the ddl
without using the maven plugin. So if tapestry-hibernate can talk to
the db, it should be able to create the schema.
You'll need something like:
create
or
update
in hibernate.cfg.xml
Mark
On Fri, Jul 15, 2011 at 11:31 AM,
Hi All,
I have a listener registered with my servlet container which adds users to
the servlet context as they login (so i have a list of currently loged in
active users). Depending on the user's settings I want to be able to set
some values in @SessionState so that I can later use it across all
Thanks for getting back so quick. Yes I am using T5.2.5. I will give T5.3 a
try during the weekend and have you posted.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Another-case-of-Block-parameters-are-only-allowed-directly-within-component-elements-tp4585262p4591835.ht
On Fri, 15 Jul 2011 14:35:40 -0300, gs_tapestry
wrote:
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast
to java.lang.reflect.ParameterizedType
at
org.apache.tapestry5.ioc.internal.util.GenericsUtils.extractActualType(GenericsUtils.java:141)
Yep, it looks like a Ta
Here are the stack. Thanks.
EMM 54968 [http-9080-4] ERROR org.apache.tapestry5.ioc.Registry - [ 5]
Assembling component
search/Advanced:advancedsearchcomponent.advancedsearchform.dynamicadvancedsearchform
(com.gallery.components.search.DynamicAdvancedSearchForm)
EMM 54968 [http-9080-4] ERROR
org.
Hello, I'm not really sure if this belongs in this mailing list, but
hopefully someone will be able to help. I'm sitting behind a firewall and
trying to generate a ddl using hibernate3-maven-plugin. For some reason it
tries to connect to hibernate without using proxy settings and fails. Does
anybod
On Fri, 15 Jul 2011 12:03:03 -0300, Luana
wrote:
Hi again!
Hi!
We need some mechanism to know the previous page from any page.
Therefore, we want to hide that the implementation is made with a
sessionState object. So our idea was to save the sessionState object
inside an spring bean.
Hi again!
We are using tapestry 5.1.0.5, and by the moment, we can't change it.
We need some mechanism to know the previous page from any page. Therefore,
we want to hide that the implementation is made with a sessionState object.
So our idea was to save the sessionState object inside an spring b
On Fri, 15 Jul 2011 10:11:16 -0300, gs_tapestry
wrote:
I am using T5.2.5 too. I can't reproduce it with your code either.
Might be something else in the application as it is T5.0 based.
Please post the full stack trace so we know where exactly the exception is
thrown.
--
Thiago H. de
I am using T5.2.5 too. I can't reproduce it with your code either. Might be
something else in the application as it is T5.0 based. Any major change in
T5.2 has particular demand in component parameter?
Thanks,
Simon
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Another-
On Fri, 15 Jul 2011 09:54:42 -0300, Nicolas Gillet - MARKET-IP
wrote:
The type is actually the problem.
It is actually a java.lang.String but the getter and setter on it are
defined by a generic interface :
// INTERFACE (Identifiable.java) :
public interface Identifiable {
public
Hi,
Thanks a lot Thiago and Derkoe for quick reply and a perfect solution.
It worked fine.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Zone-update-causes-to-loose-js-css-bound-to-div-inside-zone-tp4579141p4589663.html
Sent from the Tapestry - User mailing list archiv
The type is actually the problem.
It is actually a java.lang.String but the getter and setter on it are defined
by a generic interface :
// INTERFACE (Identifiable.java) :
public interface Identifiable {
public void setId(T id);
public T getId();
}
// POJO TO DISPLAY IN FORM (My
Hm, I tried to debug and went to the root of the exception:
java.beans.PropertyDescriptor.findPropertyType
It seems that the read method for the 'id' field is
/public java.lang.Object com.mycompany.sql.model.DataEntity.id()/
while the write method is
/public void com.mycompany.sql.model.
Thanks for your reply. I tried adding @BeanProperty to the case class and it
still fails - BUT the stacktrace is different:
/Caused by: java.beans.IntrospectionException: type mismatch between read
and write methods
at
java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:
On Fri, 15 Jul 2011 06:55:30 -0300, Nicolas Gillet - MARKET-IP
wrote:
Hello,
Hi!
org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter
'translate' of component test/Generic:pojoid is bound to null. This
parameter is not allowed to be null. [at
classpath:com/marketip/geoplann
Hi!
On Fri, 15 Jul 2011 08:16:58 -0300, stephanos2k
wrote:
I just tried to reference a variable from a Scala case class in a
template file when I received this:
/java.beans.IntrospectionException: type mismatch between read and
write methods/
Do you know how the bytecode of a case
I just tried to reference a variable from a Scala case class in a template
file when I received this:
/java.beans.IntrospectionException: type mismatch between read and
write methods/
I used something like ${currentEntity.id} when the exception occured, just
${currentEntity} works.
I'm not 1
Hello,
Well actually I pasted the error I get on my real application and a
simplfied example to illustrate it.
If I really execute this example, the error is
org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter
'translate' of component test/Generic:pojoid is bound to null. This
par
Hello,
I use Intellij as my IDE and only some of the available attributes for some
components are available. For instance I have a beaneditform in one of my
templates and I can't use auto-completion for some of the attribute i.e. the
*clientValidation* attribute.
Can anyone please give me some gu
Hi
http://www.nofluffjuststuff.com/blog/howard_lewis_ship/2010/04/meta_programming_java_with_tapestry
http://tapestry.1045711.n5.nabble.com/What-s-heartbeat-td2414062.html
regards
Taha
On Fri, Jul 15, 2011 at 1:20 PM, dick_hu wrote:
> A question is always with me ,
> what is the "Hearbeat" in
A question is always with me ,
what is the "Hearbeat" in tapestry?
What can it do in our code.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/what-is-Heartbeat-tp4589766p4589766.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Thank you,they are helpful to me.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Loop-Map-tp4589569p4589722.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
Hello,
Tapestry version 5.2.5
Tomacat version 6.0.32
Nicolas.
-Original Message-
From: Josh Canfield [mailto:joshcanfi...@gmail.com]
Sent: Thursday, July 14, 2011 3:30 PM
To: Tapestry users
Subject: Re: Generic interface, issue in TML
What version of tapestry?
On Jul 14, 2011 6:03 AM,
37 matches
Mail list logo