initial-value attribute in property-specification -- help

2005-08-05 Thread hari ks
hi, I want to know if initial-value="" is required to be initialize all time. When do we use initial-value attribute. is it for custom-defined user classes/primitive types/standard java classes(String, Integer etc..) ? Also how does is it work differently when used with persistent="no" and persi

Re: ExternalLink to HTTPS

2005-08-05 Thread Nick Westgate
Hi Fernando. You'll want to write an ILinkRenderer to pass to the ExternalLink. I've only got the Tapestry 3 source handy so I'm not sure about 4, but it should be similar. Grab framework\src\org\apache\tapestry\link\DefaultLinkRenderer.java and rename it to a new class in your project. I recomm

ExternalLink to HTTPS

2005-08-05 Thread Fernando Padilla
Hey. So I was wondering if there was an easy way to point an ExternalLink to a different protocol. We want to have most of the site be in HTTP, except the credit card entry page, that should be HTTPS. options? ideas? discussion? --

Re: Is there JSCalendar tapestry component?

2005-08-05 Thread andyhot
Also, http://tapfx.sourceforge.net/ has an OutlookBar component > You could try the krysalis (sp?) menu? There's a sourceforge project for > it, and it's also available on tassel. > > > Matias Blasi wrote: > > Hello! > > It's an great help!! I needed it! And now I think about a menu bar > > lik

Re: Component Abuse

2005-08-05 Thread Robert Zeigler
Hm... interesting... I had a different understanding of the pooling process... though I could be wrong. :) My understanding is that only the pages are pooled. The page spec, and all component specs contained therein, are parsed once and cached. The page instance, and all contained components, are

Re: Component Abuse

2005-08-05 Thread Darío Vasconcelos
Since everybody is building components so easily, why are the Tapestry repositories (Tacos, Tassel, t-deli, etc) kind of empty? Licensing issues? Components that are not generic enough? Lack of time? Fear of finding too many newbies asking basic questions (contrib:Table comes to my mind)? I guess a

Re: Component Abuse

2005-08-05 Thread Darío Vasconcelos
As far as I understand, the page rendering is always done on-the-fly, that is, there is a component pool and when some page needs one, the pool quickly provides it. Now, thinking what Chris originally asked, is there too much overhead if I have a page with, say, 20 components? Or 50? If a page has

RE: Component Abuse

2005-08-05 Thread Mark Stang
I only have one page, so everything is a component. In general, I create new ones until I see they overlap, then I refactor them into one. If I have a component that already does pretty much what I need, I may add "conditionals" to be able to reuse. If the component is generic enough then it

Re: Component Abuse

2005-08-05 Thread Kevin Menard
On Friday 05 August 2005 19:13, Robert Zeigler wrote: > My point was simply that, just because you can't reuse the component > across multiple projects doesn't mean it shouldn't be a component. :) > (Or, there's nothing wrong with application-specific components. :) Ahh good, then we're in agreem

Re: Component Abuse

2005-08-05 Thread Robert Zeigler
Kevin Menard wrote: > On Friday 05 August 2005 18:38, Robert Zeigler wrote: > >>Personal opinion, but i don't find that bad form in any way. Quite the >>opposite. Basically... if you're thinking about your templates like >>they are objects, and the html like it's java code, and you don't want >

Re: Component Abuse

2005-08-05 Thread Kevin Menard
On Friday 05 August 2005 18:38, Robert Zeigler wrote: > Personal opinion, but i don't find that bad form in any way. Quite the > opposite. Basically... if you're thinking about your templates like > they are objects, and the html like it's java code, and you don't want > to rewrite it, then, imo,

RE: Component Abuse

2005-08-05 Thread Patrick Casey
I'm with Robert on this one. Most of the time making a true, perfectly decoupled component that solves a general case problem is way more trouble than it's worth. If I can do 10% of the work and get a component that works in the special case of my application, I'll go home happy.

Re: Component Abuse

2005-08-05 Thread Robert Zeigler
Personal opinion, but i don't find that bad form in any way. Quite the opposite. Basically... if you're thinking about your templates like they are objects, and the html like it's java code, and you don't want to rewrite it, then, imo, you're on the right track. Treat the html like code... object

Component Abuse

2005-08-05 Thread Chris Chiappone
I'm curious if I am abusing the use of components in my application. I pretty much create a component for any block of html that I believe I will reuse at some point in another page. I realize these components will only be used in my application. And they are directly tied to the pages that cont

Re: Is there JSCalendar tapestry component?

2005-08-05 Thread Robert Zeigler
You could try the krysalis (sp?) menu? There's a sourceforge project for it, and it's also available on tassel. Matias Blasi wrote: > Hello! > It's an great help!! I needed it! And now I think about a menu bar > like outlooks one, there are someones implemented in JS, and it would > be helpfully

AW: Application state objects

2005-08-05 Thread Ralf E. Stranzenbach
Hi, just use "tapestry.state" instead of "hivemind.state...". regards, -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. August 2005 15:00 An: tapestry-user@jakarta.apache.org Betreff: Application state objects Hy! I've now been tryi

RE: Help: how can I get home page from a library?

2005-08-05 Thread Reinhold Gruber
I do not think that this is configurable (at least in Tapestry 3.x). The HomeService uses the constant IEngine.HOME_PAGE to determine the name of the home page. So you have to create your own custom Engine class and a custom HomeService class registered with it. A pragmatic solution would be a

CSS : contrib:table.columnsClass howto

2005-08-05 Thread Dan  
I am trying to style up the table component, but am stuck on columnsclass. Can i not just use a CSS class name for columnsclass? .page: /> .css: .table-columns { font-size: 9pt; font-weight: bold; color: #00; background-color: #6692DC; text-align: center; }

RE: Binary Content Service?

2005-08-05 Thread Patrick Casey
This might be what you're looking for. package services; import java.awt.image.BufferedImage; import java.io.IOException; import javax.imageio.ImageIO; import javax.servlet.ServletException; import org.apache.tapestry.IComponent; import org.apache.tapestry.IRequestCycle; import org.apa

Re: Binary Content Service?

2005-08-05 Thread Scott F. Walter
Patrick Casey wrote: I don't know that you need a custom service for this, do you? You can just use a directlink and feed binary data directly into the response stream, neh? Something like this (from my attachment rendering code): public void trigger(IRequestCycle cycle) {

can i make a form component which uses html template?

2005-08-05 Thread CHamilton
I have a component which I would prefer to template with an html file. It needs to go within a form. What is the best way to accomplish this? I see BaseComponent which is default for components with html templates, and AbstractFormComponent. What are the pros/cons in using java code to r

Portlet .application naming convention

2005-08-05 Thread Ryan Wynn
One thing not mentioned in the tapestry portlet configuration documentation is that the .application file should be named portletName.application from portlet.xml instead of servletName.application from web.xml. Tapestry couldn't find my .application file in WEB-INF lib. I just guessed it mig

weblogic issue in storing session help !! - not happening in jetty

2005-08-05 Thread hari ks
Hi, -Dorg.apache.tapestry.disable-caching=true is creating problems in weblogic. "But works without problem in jetty". When running weblogic with this flag, nothing seems to get stored in session. Also was always getting stale session problem as soon as I login to application if I set CookieMax

RE: How do I load components in 3.03 "on-the-fly"

2005-08-05 Thread Mark Stang
I have an application that configures a Single Sign-on Server. Basically, there are many values that need to be configured in order for this beast to run correctly. It is a Security Assertion Markup Language (SAML) protocol server. That is the basic application. As part of the configuration

Re: How do I load components in 3.03 "on-the-fly"

2005-08-05 Thread Viktor Szathmary
On 8/5/05, Mark Stang <[EMAIL PROTECTED]> wrote: > Hi, > I have an entire system set up using standard pages and a .application file. > However, what I need to do is load components on-the-fly from either external > files or a .jar. And then deploy them under JBoss without re-creating the > .w

Tapestry and WebSphere Portal Server 5.1

2005-08-05 Thread Ryan Wynn
After about a weeks worth of work today I was able to get a running tapestry JSR-168 portlet to work in WebSphere Portal. I had initially gone down the path of trying to integrate Tapestry 4 with Portal Server 5. This didn't work because Portal Server 5 runs jdk 1.3.1 and Tapestry was trying

Problem with persistent page property and concurrent access

2005-08-05 Thread Greg Ward
I'm getting a Tapestry error from concurrent access to a page with a persistent property, where both accesses attempt to mutate the property. I know I'm not the first to see this, since I did some google'ing earlier today -- but I didn't find any good solutions. (Oh yeah, I'm using Tapestry 3.0.3

How do I load components in 3.03 "on-the-fly"

2005-08-05 Thread Mark Stang
Hi, I have an entire system set up using standard pages and a .application file. However, what I need to do is load components on-the-fly from either external files or a .jar. And then deploy them under JBoss without re-creating the .war. Basically, I need to be able to hot-deploy components w

Re: Is there JSCalendar tapestry component?

2005-08-05 Thread Matias Blasi
Hello! It's an great help!! I needed it! And now I think about a menu bar like outlooks one, there are someones implemented in JS, and it would be helpfully to have one in tap! I m working on it, but if exists please tell me... Otherwise later I'll tell you! :) Some ones I was looking about: http

In need of help with uploading file to db

2005-08-05 Thread Chris Chiappone
I'm not sure if this would be a better question for the Hibernate group or here. Has anyone had an experience with this: I am trying to upload a file from a form in my tapestry webapp. And get the following exception: 14:15:12,227 INFO [STDOUT] Hibernate: insert into DOCUMENTLOCKER (visibility,

RE: Binary Content Service?

2005-08-05 Thread Patrick Casey
I don't know that you need a custom service for this, do you? You can just use a directlink and feed binary data directly into the response stream, neh? Something like this (from my attachment rendering code): public void trigger(IRequestCycle cycle) { Object[] ar

RE: Is there JSCalendar tapestry component?

2005-08-05 Thread Karthik Abram
Interesting - your malformed URL when clicked on makes Mozilla pull up microsoft's home page!!! -Original Message- From: Robert Zeigler [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 7:34 AM To: Tapestry users Subject: Re: Is there JSCalendar tapestry component? Try the DateTim

Binary Content Service?

2005-08-05 Thread Scott F. Walter
Before I get started to write one, has anybody created a generi bnary content Tapestry service? This way I can have on ustom Tapestry service that can handle downloading pdfs, images, etc. scott. -- Scott F. Walter Scott F. Walter Principal Consultant Vivare, Inc. E: [EMAIL PROTECTED

Application state objects

2005-08-05 Thread mailinglists
Hy! I've now been trying to implement a small application using 'application state objects' as indicated in http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso for some time and didn't manage to make it work. Could someone please post how the hivemind file and the .page file should

Re: Is there JSCalendar tapestry component?

2005-08-05 Thread Vjeran Marcinko
OK, and wouldn't it be nice if updated version would be included in Tapestry core, since this is so oftenly needed component, and it seems that many people prefer this one ? I required it in almost every web app... I know it's not your call to make... ;) -Vjeran - Original Message -

Re: Is there JSCalendar tapestry component?

2005-08-05 Thread Robert Zeigler
Try the DateTimePicker from the myws component library. (http://http://myworkspace.sourceforge.net/) This is based on an earlier version of the dynarch.com calendar. Robert Vjeran Marcinko wrote: > Hi. > > I know there is small chance for this, but has anyone maybe used popular > JSCalendar (ht

Help: how can I get home page from a library?

2005-08-05 Thread Huw Roberts
Hi All, How can I put the home page of my application in a library? I'd like my fred.application file to contain something like the following: Fred but this doesn't work because the specification-path for the "Home" has to be an actual path to a specific

Is there JSCalendar tapestry component?

2005-08-05 Thread Vjeran Marcinko
Hi. I know there is small chance for this, but has anyone maybe used popular JSCalendar (http://www.dynarch.com/projects/calendar/) to create Tapestry component from it, and is ready to share it? It can serve as date *and time* picker (unlike currently DatePicker)... -Vjeran --

Re: IEngine getPropertySource is depreciated - what replaces it?

2005-08-05 Thread Shing Hing Man
According to the Tapestry 4 javadoc, the method IEngine.getPropertySource() has been deprecated. http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/IEngine.html It is now being injected. Please also see the following doc on how to inject something into a page. http://jaka

IEngine getPropertySource is depreciated - what replaces it?

2005-08-05 Thread Alan Chandler
In my component I am try to get the property value "menu-items" from the application properties file. My code has getPage().getEngine().getPropertySource().getPropertyValue("menu-items"); but eclipse is telling me that getPropertySource() is depreciated a) What should I do instead? b) There is