Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-23 Thread Franz Amador
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

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-23 Thread Franz Amador
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

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-22 Thread Franz Amador
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

Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-21 Thread Franz Amador
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,

Re: How can my RequestExceptionHandler distinguish event requests from page requests?

2008-12-10 Thread Franz Amador
: 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

How can my RequestExceptionHandler distinguish event requests from page requests?

2008-12-09 Thread Franz Amador
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

Re: [T5] A root element of html is needed when linking JavaScript and stylesheet resources.

2008-11-17 Thread Franz Amador
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

[T5] GridDataSource: why call getAvailableRows before prepare?

2008-09-22 Thread Franz Amador
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

T5: Looking for tiled page layout widgets

2008-09-17 Thread Franz Amador
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

T5: HibernateSessionManagerImpl retains stale transaction

2008-07-31 Thread Franz Amador
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

Re: T5: HibernateSessionManagerImpl retains stale transaction

2008-07-31 Thread Franz Amador
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

Re: EagerLoad service doesn't use PerThread service correctly

2008-07-29 Thread Franz Amador
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

Re: EagerLoad service doesn't use PerThread service correctly

2008-07-25 Thread Franz Amador
, 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

EagerLoad service doesn't use PerThread service correctly

2008-07-24 Thread Franz Amador
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

T5: Can't find TapestryConstants after snapshot update

2008-05-27 Thread Franz Amador-2
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

Re: T5: Can't find TapestryConstants after snapshot update

2008-05-27 Thread Franz Amador-2
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

T5: ETA for t5-acegi and t5-components to work with SNAPSHOT?

2008-05-27 Thread Franz Amador-2
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

Is persisting a component a bad idea?

2008-05-23 Thread Franz Amador
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.

Re: T5: Ajax update of one form field based on change to another form field?

2008-05-02 Thread Franz Amador
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

Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Franz Amador
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

T5: Ajax update of one form field based on change to another form field?

2008-04-30 Thread Franz Amador
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

T5: How can I initialize a logged-in user ASO from tapestry5-acegi?

2008-04-25 Thread Franz Amador
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

T5.0.11: Registering type with DefaultDataTypeAnalyzer no longer works?

2008-04-18 Thread Franz Amador
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: demo app bugs

2008-02-13 Thread Franz Amador
(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

Re: Improving Component Reference

2008-02-06 Thread Franz Amador
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

Re: T5 tapestry5-acegi salt source not overridable

2008-02-04 Thread Franz Amador
: 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

Re: Improved Tapestry Component Reference

2008-01-31 Thread Franz Amador
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

Re: T5: Eclipse unhappy with TML file that has DOCTYPE

2008-01-28 Thread Franz Amador
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:

Re: T5: Eclipse unhappy with TML file that has DOCTYPE

2008-01-28 Thread Franz Amador
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

T5: How to use MasterObjectProvider?

2008-01-28 Thread Franz Amador
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

Re: T5.0.7: ThreadCleanupHubImpl.cleanup swallows exceptions

2008-01-21 Thread Franz Amador
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

T5 tapestry5-acegi salt source not overridable

2008-01-21 Thread Franz Amador
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

T5: Inject services into domain objects?

2008-01-21 Thread Franz Amador
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

Re: T5: Inject services into domain objects?

2008-01-21 Thread Franz Amador
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

T5: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Franz Amador
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,

T5.0.7: ThreadCleanupHubImpl.cleanup swallows exceptions

2008-01-11 Thread Franz Amador
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

Re: T5: Acegi table name too long for Oracle 9i

2008-01-09 Thread Franz Amador
[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

Re: T5: beaneditform component error message

2008-01-09 Thread Franz Amador
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

T5: Annotations documentation [was Re: T5: beaneditform component error message]

2008-01-09 Thread Franz Amador
[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

T5: Acegi table name too long for Oracle 9i

2008-01-08 Thread Franz Amador
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

T5: beaneditform component error message

2008-01-08 Thread Franz Amador
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

Re: T5: Acegi table name too long for Oracle 9i

2008-01-08 Thread Franz Amador
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

T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

2008-01-03 Thread Franz Amador
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

T5.0.7: Custom validator for BeanEditForm field?

2008-01-03 Thread Franz Amador
appreciated. Franz Amador [EMAIL PROTECTED]

Re: T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

2008-01-03 Thread Franz Amador
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

T5.0.7: No service implements the interface org.slf4j.Logger

2008-01-02 Thread Franz Amador
) 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]

Re: T5.0.7: No service implements the interface org.slf4j.Logger

2008-01-02 Thread Franz Amador
. 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