Re: Tapestry DatePicker and some thoughts about ajax

2006-02-10 Thread Cliff Zhao
Tapestry's stronghold is the server side. What I really like to see is a well defined structure and JavaScript API so that we can use it to enhance the client dynamics by handcrafted javascript or by integrating other Ajax tools. For example, I can not find any document on how to customize the clie

Re: trouble injecting pojo into engine service

2006-02-10 Thread Shing Hing Man
Have you tried specifying an interface in ? In your case, you need to specify an interface for service StitchFolderHolder. When the interface attribute is not given, HiveMind will default the interface attribute to (module's package path) + service id. Please see the

Re: INTERNAL_SERVER_ERROR when activating page

2006-02-10 Thread Howard Lewis Ship
Looks there's two exceptions here: some underlying exception getting obscured by some other error generating the exception report. Have you customized exception reporting? On 2/9/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote: > Hi I'm getting a Null pointer exception when I try to activate one

Re: Tapestry DatePicker and some thoughts about ajax

2006-02-10 Thread Jesse Kuhnert
That seems reasonable enough, but I'm not sure I understand your meaning in relation to adding more scripting support. Have you seen the @Script component (which the DatePicker uses) ? I don't think I've seen a web framework that provides more scripting support than tapestry. Regardless, I would

Re: url forward problem

2006-02-10 Thread Konstantin Ignatyev
Or it might be placed behind Apache server and mod_proxy, mod_rewrite and mod_rewrite_html could be used to do the trick. I just did this for Struts application but id does not matter: Please note that on sandbox LoadFile might look like this: LoadFile /usr/lib/libxml2.so

Re: url forward problem

2006-02-10 Thread Cliff Zhao
BaseTagWriter, I guess. Or, I think that I saw somebody posted on this list: configure tomcat for reverse proxy. That may work for you. On 2/10/06, Stijn Christiaens <[EMAIL PROTECTED]> wrote: > > Hello list, > > I have a question that can be answerred by setting some Hivemind > property somewher

Re: Dynamically generating assets

2006-02-10 Thread Cliff Zhao
Create your own service that will return your graphic right away. On 2/10/06, Rob Dennett <[EMAIL PROTECTED]> wrote: > > I am generating some jpegs that I send to the client in a JSP app. The > graphic isn't stored on the server at all, just written to the output > stream. I was trying to figure

Tapestry DatePicker and some thoughts about ajax

2006-02-10 Thread Cliff Zhao
We had a problem of disabling DatePicker field in javascript. Although the input can be disabled, the calendar link can not. That gives some weird feeling. We finally make it disabled with JavaScript, but it may not be future-proof. It may not work if Tapestry changes how the DatePicker renders. I

RE: [OT] Oracle Performance Issue

2006-02-10 Thread Ed Yu
Something immediate comes to mind. When you have the NVL() function call, why not simply use 'column is null'. Using NVL(), the non-null value will still be evaluated and then checked for equality where as a simple 'is null' test will satisfy the condition. So remove all the "NVL(someColumn, 'N')

Dynamically generating assets

2006-02-10 Thread Rob Dennett
I am generating some jpegs that I send to the client in a JSP app. The graphic isn’t stored on the server at all, just written to the output stream. I was trying to figure out the T4 equivalent of this and I came up with dynamically generating an asset, but it seems like that would require wri

Re: Has the UserGuide been updated for T4?

2006-02-10 Thread Mat Gessel
Yes. It's not complete, but what exists is up to date for Tap 4. -= Mat On 2/10/06, Wayland Chan <[EMAIL PROTECTED]> wrote: > Have the user guide and quick start documents on the website been updated > completely for Tapestry 4? > > http://jakarta.apache.org/tapestry/UsersGuide/index.html --

Re: [OT] Oracle Performance Issue

2006-02-10 Thread Chris Chiappone
Whoa, that is one crazy query!!! On 2/10/06, Patrick Casey <[EMAIL PROTECTED]> wrote: > > Good god man, you've got like 5 levels of nested subqueries in > there! No *wonder* this things slow. Without seeing your data model I can't > make any specific suggestions, but I'd really recommend y

RE: [OT] Oracle Performance Issue

2006-02-10 Thread Patrick Casey
Good god man, you've got like 5 levels of nested subqueries in there! No *wonder* this things slow. Without seeing your data model I can't make any specific suggestions, but I'd really recommend you sit down with your Oracle DBA and look at other, more efficient retrieval strategies.

RE: [OT] Oracle Performance Issue

2006-02-10 Thread Jonnalagadda, Sumithra
This is the query: SELECT PTI.PARTY_ID AS "CUSTID", PTI.CMA_CUSTOMER_NUMBER AS "CUSTNUM", PTI.SOURCE_ID AS "CUSTSOURCE", PTI.PARTY_CLASS_CD AS "CLASS", (SELECT CMAPSV.STATUS_VALUE FROM type3 CMAPS, type4 CMAPSV WHERE PT

trouble injecting pojo into engine service

2006-02-10 Thread Phillip Rhodes
I have a singleton pojo that I am trying to manage with hivemind and want to inject this pojo into engine services, components, pages, etc... The POJO is not an interface, but I can create one if necessary. I added the service point/set object (found below) to my libraries hivemodule.xml and it

Re: Page into external libraries

2006-02-10 Thread Andrea Chiumenti
Thank you, this worked, but I have another small problem: inside my jar I have a component that refers to this page, I should not know which name the library should have, so which should be the page attribute of the pagelink component ? Thanks, kiuma (p.s.: I'm developing a menu tha is config

Restarting the Service

2006-02-10 Thread Gogineni, Venu (Home Office)
Hi, I am using custom exception page in my application and i am trying to call the restart service whenever any exception occurs and redirect to a specific page after restart. I am getting an error saying that session is already invalidated. Here is the code i am using to call the restart servi

How to get a property from a table wrapped in a form component

2006-02-10 Thread Chris Chiappone
I have a contrib table that is wrapped in a form. The form has a column that contains three checkboxes. I can't seem to figure out how to get the correct value of the checkbox when the form is submitted. I am only getting the last value in the list. Here is my page code: /** Form submit

Re: getVisit is deprecated?

2006-02-10 Thread Hugo Palma
I agree, it is indeed harder when you can't use annotations. Well, the getVisit() method still works so you can still use it in your application. Maybe when it's time to migrate to the next Tapestry major release you can also migrate to Java 5 and then use annotations. Cheers Hugo On 10/02/06, G

org.apache.hivemind.ApplicationRuntimeException -- duplicate method: getXType

2006-02-10 Thread Cliff Zhao
In my page specification, I have: 1. a property xType 2. a PropertySelection component which use the Simple String model 3. binding the value parameter of PropertySelection to the property xType Also, I have this method in my page class: public abstract String getXType(); Then I got this exception

RE: Tacos & Tapestry Portlets?

2006-02-10 Thread Raphaël Jean
Unfortunately, there is a serious limitation as to what you can do with Ajax in portlet mode: you can't generate any portlet url with the AjaxDirect service. The reason being that AjaxDirect does not and cannot use the PortletLinkFactory (since it operates in servlet mode). This is a limitation

How to disable a link for the duration of subsequent links?

2006-02-10 Thread Izak Wessels
Hello all, I have a custom Border component that is used to generate a navigation menu. A snippet from Border.html is as follows : Home Quotations When the user clicks on

Has the UserGuide been updated for T4?

2006-02-10 Thread Wayland Chan
Have the user guide and quick start documents on the website been updated completely for Tapestry 4? http://jakarta.apache.org/tapestry/UsersGuide/index.html

RE: getVisit is deprecated?

2006-02-10 Thread Greg Cormier
I'm glad you brought this up, because I'm indeed not using Java 5, I'm hosted on Websphere 5 which is a 1.4.x java environment. Greg -Original Message- From: Gentry, Michael (Contractor) [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 10:27 AM To: Tapestry users Subject: RE:

RE: getVisit is deprecated?

2006-02-10 Thread Gentry, Michael \(Contractor\)
Actually, it's not so simple if you are using Java 1.4.2 ... You can use the XML injection in your MyAppBasePage.page, but it will not inherit (only the annotation version will inherit). And for an application that has a lot of pages and is session-based, it gets far uglier that getVisit(). I ag

Re: Tacos & Tapestry Portlets?

2006-02-10 Thread Jesse Kuhnert
How cool! I love hivemind sometimes :) On 2/10/06, Raphaël Jean <[EMAIL PROTECTED]> wrote: > > I was able to use the Autocompleter component in portlet mode. The trick > is to set the tacos.AjaxDirect service to not use the infrastructure > LinkFactory but to use the servlet LinkFactory (the one u

RE: getVisit is deprecated?

2006-02-10 Thread Stijn Christiaens
Hello Greg, at first I thought the same thing. Because getVisit was always available and the injection of an ASO is not. But in reality it was nice and easy. Just add an entry to the xml configuration for a new ASO and create a MyAppBasePage which holds the injected ASO, let all my pages extend th

RE: getVisit is deprecated?

2006-02-10 Thread Greg Cormier
getVisit was a nice simple way to get an object associated with that session, which could contain other objects. Now, it would appear I need to get into configuring hivemind, adding a property specification to every page and adding abstract get/set methods to every page? For my uses it seems a

Re: getVisit is deprecated?

2006-02-10 Thread Hugo Palma
I think they are great. What don't you like about it ? On 10/02/06, Greg Cormier <[EMAIL PROTECTED]> wrote: > > Hmm I see. These ASO's look ugly :( getVisit was nice and simple for me. > > -Original Message- > From: Hugo Palma [mailto:[EMAIL PROTECTED] > Sent: Friday, February 10, 2006 9:3

RE: getVisit is deprecated?

2006-02-10 Thread Greg Cormier
Hmm I see. These ASO's look ugly :( getVisit was nice and simple for me. -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 9:38 AM To: Tapestry users Subject: Re: getVisit is deprecated? That method being deprecated is a way of saying "don't us

Re: getVisit is deprecated?

2006-02-10 Thread Hugo Palma
That method being deprecated is a way of saying "don't use the old ways, join the evolution" :o), which in turn means that now you should define ASO as you like and give them the name you like. See more here http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso Cheers Hugo On 10/02

Re: getVisit is deprecated?

2006-02-10 Thread Jorge Quiroga
Hi: AFAIK you can put your session objects in your .page or into your java archive as an annotation @Persist("session") //Here your public abstract property (or whatever) This is on the Tap 4 docs and into the Kent's book if you want futher information (http://www.agileskills2.org/EWDT/) B

getVisit is deprecated?

2006-02-10 Thread Greg Cormier
I checked the Javadocs and there's no nice "use abc instead" :) What's the new way to retrieve your visit object? Thanks, Greg -- public java.lang.Object getVisit() Deprecated. Returns the visit object obtained from the engine via IEngine.getVisit(IRequestCycle). Specified by:

Re: How to clear the objects contained in the user's session

2006-02-10 Thread Izak Wessels
Raul, >> How are you saving the order in the session, Well in my CreateOrderPage class I have a method : public abstract Order getOrder(); and in my CreateOrder.page I inject the property using : >> are you using T4 or T3? Using T4 >> Are you using a ASO definded in hivemodule.xml to declare

Re: Currency format and validator.

2006-02-10 Thread Rudolf Baloun
Write your own validator. More information here: http://wiki.apache.org/jakarta-tapestry/CreatingCustomValidators?highlight=%28validator%29 Fabiano Choueiri wrote: Hi all, I am using a javascript to format currency. In my country the currency format uses ',' to

Currency format and validator.

2006-02-10 Thread Fabiano Choueiri
Hi all, I am using a javascript to format currency. In my country the currency format uses ',' to separete decimal values. Ex: 125,56 The problem is that I am using a validfield bound to a numbervalidator of type='java.lang.Double' and it is not

AbstractComponent problem

2006-02-10 Thread Schabek Łukasz
Hi! I'm tring to render component body, inside another component. There is a part of HTML code that replies in few components on my web so I've put it in separate component "BaseComponentRender". The problem is that I don't see HTML code generated by BaseComponentRender component... BoxPasspo

url forward problem

2006-02-10 Thread Stijn Christiaens
Hello list, I have a question that can be answerred by setting some Hivemind property somewhere in the hivemodule descriptor. Now only to find where. I would like to use url forwarding with Tapestry. The forwarding is up and running and points to the root, eg. www.myapp.com -> mypcsomewhere.somed

RE: Tacos & Tapestry Portlets?

2006-02-10 Thread Raphaël Jean
I was able to use the Autocompleter component in portlet mode. The trick is to set the tacos.AjaxDirect service to not use the infrastructure LinkFactory but to use the servlet LinkFactory (the one used to generate resource links like assets): instead of: This works in both normal (

Re: How to mix my custom Validator ( bean ) with default validators?

2006-02-10 Thread Daniel Lydiard
This is for T4 right? To use a bean you need to use $name for a bean. http://jakarta.apache.org/tapestry/UsersGuide/validation.html so: validators:$myCustomValidator,required should work. - Original Message - From: "Aleksej" <[EMAIL PROTECTED]> To: "tapestry-user" Sent: Friday, Feb

RE: NPE with T4 portlet

2006-02-10 Thread Raphaël Jean
Arnold, This has been reported as issue TAPESTRY-855 (http://issues.apache.org/jira/browse/TAPESTRY-855) One way to fix this is to modify the PortletRendererImpl service so that it handles PageRedirectException. The code for handlePageRedirectException() is stolen from AbstractEngine. Hope th

How to mix my custom Validator ( bean ) with default validators?

2006-02-10 Thread Aleksej
Hi! I have my own validator which checks database and I want to mix it with default "required" validator ( or any other including my own ). Syntax like that is not working: I tried various combinations but with the same result. Is it possible at all?

Re: anchors with @Shell

2006-02-10 Thread Fernando Padilla
alright, again. version 2 I reviewd the documentation on annotations and simplified the .jwc I still want to know how to add a component to a library without a jwc file? Fernando Padilla wrote: Alright, I had reason to stay up anyhow. Attached is a version of a NameLink component that takes a

Re: anchors with @Shell

2006-02-10 Thread Fernando Padilla
Alright, I had reason to stay up anyhow. Attached is a version of a NameLink component that takes a name parameter. Tapestry 4. I've tested this component only on linux/firefox at home, but the same technique has been working on our site for the last few months; I'll test this component out