I wondered that also, and I'm waiting on an answer.
Does disabling JavaScript make the Ajax stuff invisible to Tapestry? If
so, it'd be great to have a better error message.
AJAX is all about using Javascript to update a part of a page without
refreshing it. ;) Thus, no Javascript, no
Okay, I've heard, indirectly, from the customer. The laptop does have
JavaScript enabled. However, it does not have networking fully configured
and is never used on the Internet. They say This laptop has no IP
address. (They are very security-conscious; perhaps this is to to make
unauthorized
I wondered that also, and I'm waiting on an answer.
Does disabling JavaScript make the Ajax stuff invisible to Tapestry? If so,
it'd be great to have a better error message.
From: Howard Lewis Ship (via Nabble) ml-user+45099-44142...@n2.nabble.com
To: Franz
Our Tapestry5/Dojo web app works just fine everywhere except on one
customer's laptop. There he gets this error:
Return type org.apache.tapestry5.json.JSONObject can not be handled.
Configured return types are java.lang.Class, java.lang.String, java.net.URL,
org.apache.tapestry5.Link,
: Peter Stavrinides (via Nabble) [EMAIL PROTECTED]
To: Franz Amador [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2008 12:57:15 AM
Subject: Re: How can my RequestExceptionHandler distinguish event requests from
page requests?
You can use: request.isXHR() which checks against a header X-Requested
My app responds to Ajax event requests with JSON. If the event handler
throws an exception, I'd like to return a special JSON response with the
error text. Can I decorate RequestExceptionHandler for this? To do so, I'd
need to be able to tell that the request is an Ajax event request; if it
I'm getting the same error, but it's not JavaScript.
DocumentLinkerImpl.updateDocument(Document) is trying to add tapestry's
default.css. I'm returning a div block in response to an Ajax page
request that's being sent by Dojo's ContentPane widget. I may be able to
get away with wrapping it in
I'm starting to use Grid to display the paged, sortable results of a
Hibernate query, so I'm implementing GridDataSource. I was dismayed to see
that getAvailableRows gets called before prepare. This means that I have to
run my query twice: once to count the total rows (when getAvailableRows
I'm looking for ways to create tiled, multi-panel page layouts. An example
is the new Yahoo Mail. It has several panels, some with scroll bars,
separated by draggable dividers. Together, they fill the browser window,
growing and shrinking if I resize it. I poked around the various T5
It looks to me like HibernateSessionManagerImpl has an important bug: it
should not be retaining the transaction after commit() or rollback(). Once
you do a commit, Hibernate loses track of the transaction (see
JDBCContext.afterTransactionCompletion), which causes Hibernate not to
auto-flush
Oops, obviously I meant to say
transaction.commit();
not
transaction.rollback();
--
View this message in context:
http://www.nabble.com/T5%3A-HibernateSessionManagerImpl-retains-stale-transaction-tp18761651p18761698.html
Sent from the Tapestry - User mailing list archive at
the Registry, you have the keys to the castle!
On Fri, Jul 25, 2008 at 10:21 AM, Franz Amador [EMAIL PROTECTED] wrote:
Thanks, Howard. Splitting my per-thread service into interface and
implementation did the trick.
My intent, by the way, is to have all threads share the singleton
eager-load
, it automatically uses singleton scope. Only proxiable
services can have non-singleton scope, and that means an interface and
an implementation. Tapestry should detect this and throw an
exception.
On Thu, Jul 24, 2008 at 11:01 AM, Franz Amador [EMAIL PROTECTED] wrote:
I have an EagerLoad service
I have an EagerLoad service that uses a PerThread service. I expected the
EagerLoad service to hold a reference to a proxy to the PerThread service so
that the actual instance of the PerThread service that is used depends upon
the thread calling the EagerLoad service. Instead, the EagerLoad
I just updated to the latest shapshot jars (and updated my import statements
to the new org.apache.tapestry5 package names), and now I can't find the
TapestryConstants class. My pom.xml looks like this
properties
Thanks, that's what I needed. How did you know this?
Robert Zeigler wrote:
As mentioned earlier, TapestryConstants has been refactored.
From trunk/tapestry-project:
find ./ -name '*Constants.java'
.//tapestry-core/src/main/java/org/apache/tapestry5/
BindingConstants.java
Unsurprisingly, due to the package-name changes, t5-acegi and t5-components
no longer work with the snapshot version of t5. Are there snapshot versions
of them that use the new package names? I didn't see one for t5-acegi in
the localhost.nu repository. Otherwise, will the new, matching
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.
Thank you VERY much. That works like a champ... except I keep getting
an exception in the log, though it doesn't affect the UI. Here's the
way I ran with your suggestions. First, the tml:
t:beaneditform t:id=beanEditForm object=propertiesBean
submitlabel=message:save-label
On Thu, May 1, 2008 at 4:25 AM, Chris Lewis [EMAIL PROTECTED] wrote:
Why would you need to submit the form when a value is selected from the
list? If you know the available DBs before hand, then you know the
default ports. Store those as a client-side JSON object and use the
select's
Hi, all. I asked about this a while ago, and there was no good answer
then, but I'm hoping that there are new options now. I have a bean
that holds information about a database connection. I'm editing it
with BeanEditForm. One of the fields is the database type, an enum
that renders as a
I'm using tapestry5-acegi for authentication. I'd like to use
@ApplicationState to make the logged-in user object accessible in my
pages, e.g.
@ApplicationState
private User user;
Somewhere, however, I must initialize my ASO variable when the user
logs in. Where can I do this?
The only place
I'm getting an error after switching to 5.0.11. I'm using
BeanEditForm for a bean that has a field of type java.io.File, which I
want to render as a text box (that holds the file path). I do this in
AppModule:
public static void
contributeDefaultDataTypeAnalyzer(MappedConfigurationClass?,
(t5components version 0.5.6)
I was browing the demo app and found two problems:
- RatingField generates a Tapestry exception page.
- TabSet shows the sample code for Element, not TabSet. Since TabSet is the
component I'm most interested in, I'm really hoping someone can fix this.
Franz
Two minor nits:
- On the index page, listing every component class as its fully qualified name
makes it hard to read. I agree with the suggestion that the package name be
shown only once and the class names be listed without their package-name
prefixes.
- The doc for Form says, Examples of
: Robin Helgelin [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Saturday, February 2, 2008 2:21:05 AM
Subject: Re: T5 tapestry5-acegi salt source not overridable
On
Jan
21,
2008
7:59
PM,
Franz
Amador
[EMAIL PROTECTED]
wrote:
It
looks
to
me
like
the
tapestry5
Is there a doc on Layout? It looks like a component, but since it isn't in the
component catalog, apparently it's built into tapestry. I've found only
bare-bones tutorial-style mention of layouts here and there, but no
comprehensive reference. For example, can I have multiple layouts, and if
Okay, I tried removing that first line, but it didn't help. I'm running the
basic Eclipse 3.3.1.1 for Java developers with only a few extra plugins
(subclipse, maven2, jetty). Sounds like something I need to ask the Eclipse
folks about. Thanks anyway.
- Original Message
From:
can't keep up with all the delivery modes.
There are also release bundles called Callisto/Europa.
Try this:
http://www.eclipse.org/projects/listofprojects.php
Get WTP, if you want to use Eclipse.
Dan
On Jan 28, 2008 1:06 PM, Franz Amador [EMAIL PROTECTED] wrote:
Okay, I tried removing
I'd like to use MasterObjectProvider to create objects whose constructors take
services as arguments. Tapestry will inject MasterObjectProviderImpl, but I
don't see a way to get access to MasterObjectProvider.provide's arguments. It
wants an AnnotationProvider and an ObjectLocator. I don't
experience some memory leaks in the
application, as threads hold onto objects inside ThreadLocals.
On Jan 11, 2008 2:33 PM, Franz Amador [EMAIL PROTECTED] wrote:
ThreadCleanupHubImpl.cleanup (line 53) catches exceptions thrown by
service initialization cleanup. It logs them, which is good
It looks to me like the tapestry5-acegi module hard-codes the password salt
source to be SystemWideSaltSource. I can change the system-wide salt via
acegi.password.salt, but there is no corresponding acegi.salt.source property.
Having a system-wide salt is better than having no salt, but it
Are there any plans for a way to inject services into domain objects, i.e.
entities created by Hibernate? For example, my domain objects have some fairly
complex business logic that must occasionally execute a query. For that, they
use a DAO, which is a service, but it's not clear the best
interceptor ?
On Jan 21, 2008 8:26 PM, Franz Amador [EMAIL PROTECTED] wrote:
Are there any plans for a way to inject services into domain objects,
i.e. entities created by Hibernate? For example, my domain objects
have some fairly complex business logic that must occasionally execute a
query
I'm using BeanEditForm to generate a form that includes a drop-down selector.
I'd like to get an event when the user selects a value so I can update other
fields in the form, preferably via a partial-page Ajax-style update. Is this
possible? If so, is there an example I can look at? If not,
ThreadCleanupHubImpl.cleanup (line 53) catches exceptions thrown by service
initialization cleanup. It logs them, which is good, but it doesn't pass them
up, which is causing me problems. I want to know if Hibernate initialized
successfully, but this prevents me from seeing exceptions thrown
[EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, January 9, 2008 1:14:37 AM
Subject: Re: T5: Acegi table name too long for Oracle 9i
On Jan 9, 2008 12:38 AM, Franz Amador [EMAIL PROTECTED] wrote:
Actually, it's not my table. I presume it's being defined
the beaneditform variable.
On Jan 8, 2008 2:38 PM, Franz Amador [EMAIL PROTECTED] wrote:
I'm getting this error in the console:
[ERROR] FormPage Embedded component(s) beaneditform are defined
within component class com.[...].pages.FormPage, but are not present in the
component template.
when I
[Franz Amador] By the way, is there a list of Tapestry5 annotations and what
they
do? I haven't seen one on the web site or the wiki.
[Howard Lewis Ship] I think the JavaDoc is a perfectly good reference.
Okay, but it'd still be nice to know where to look for them. I've found
I'm using the tapestry5-acegi module (v 1.0.2, Tapestry v 5.0.7), and I get an
error when Hibernate tries to create tables in Oracle 9i:
14:09:42.234 ERROR! [main]
org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:155) 55
Unsuccessful: create table
I'm getting this error in the console:
[ERROR] FormPage Embedded component(s) beaneditform are defined within
component class com.[...].pages.FormPage, but are not present in the component
template.
when I have this template:
head
titleForm/title
/head
body
h1Form/h1
are using Hibernate
Annotations) or in an XML file? Just specify a shorter name instead
of the auto-created name. Expect this to happen with field names too,
so you may need to override field names using whatever hibernate
mapping method you are using.
On Jan 8, 2008 5:23 PM, Franz Amador [EMAIL
My page unit test dies in PageTester.renderPage. The actual death is at
URLChangeTracker.add(URL), line 72, namely
URI resourceURI = url.toURI();
which gives a URL parsing error. The problem seems to be that my page URL has
blanks:
file:/C:/Documents and
appreciated.
Franz Amador
[EMAIL PROTECTED]
This is a known issue:
https://issues.apache.org/jira/browse/TAPESTRY-1568
-Original Message-
From: Franz Amador [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 03, 2008 2:50 PM
To: Tapestry
Subject: T5.0.7: PageTester.renderPage chokes on page URLs that have
blanks
My page unit test dies
)
at
org.apache.tapestry.internal.hibernate.HibernateSessionManagerImpl.init(HibernateSessionManagerImpl.java:31)
at
org.apache.tapestry.hibernate.HibernateModule.build(HibernateModule.java:73)
Franz Amador
[EMAIL PROTECTED]
.
On Jan 2, 2008 11:18 AM, Franz Amador [EMAIL PROTECTED] wrote:
This used to work, but now it's broken for me in 5.0.6 and 5.0.7.
I'm not sure how to debug this. Apparently a proxy is being created for
Logger, but when HibernateSessionManagerImpl tries to use it, it can't
be realized. Thanks
47 matches
Mail list logo