RE: Tapestry page (and other) event listeners

2006-10-10 Thread Epstein, Ezra
ve the other options > involved, > like: > > (from > http://tapestry.apache.org/tapestry4.1/target/site/tapestry-framework/ > apidocs/org/apache/tapestry/AbstractComponent.html) > > > finishLoad > prepareForRender > renderComponent > > > > On 10/10/06

RE: Tapestry page (and other) event listeners

2006-10-10 Thread Epstein, Ezra
s Listener classes (like umm... PageBeginRenderListener) - the framework will detect it and perform the necessary registrations for you automatically when it enhances the page class the first time. On 10/10/06, Epstein, Ezra <[EMAIL PROTECTED]> wrote: > > The common idiom for listen

Tapestry page (and other) event listeners

2006-10-10 Thread Epstein, Ezra
peration will only happen once for that request/response cycle. This all changes if you want it to be done for "all users" ? You can do that as well I suppose but I think I probably need more clarification on who the properties are supposed to be exposed to/etc.. On 10/10/06,

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
the heavy operation will only happen once for that request/response cycle. This all changes if you want it to be done for "all users" ? You can do that as well I suppose but I think I probably need more clarification on who the properties are supposed to be exposed to/etc.. On 10/10/

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
See http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/IRequestCycle.html Epstein, Ezra wrote: > OK, let's get to brass tacks. > > I have some derived values that are somewhat expensive to compute so I > compute them once per request/response cycle and then they&#

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
Also, that title should have been "parameter binding events" not (generic) property. The situation I have occurs when the framework sets the parameter on a Component. Thanks, Ezra Epstein -Original Message----- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
is harder to understand / design around. There is no such thing as a "parameter" property listener because parameters have no meaning in the context of something taking a parameter...There has to be a source for that parameter value (usually a page ) somewhere. On 10/9/06, Epstein, Ezra <

RE: How to observe property binding events

2006-10-09 Thread Epstein, Ezra
n easier to follow worker to reference before modifying ParameterPropertyWorker might be easier. Hope that helps. On 10/6/06, Epstein, Ezra <[EMAIL PROTECTED]> wrote: > > I've got a component which accepts a parameter. I want to listen > (receive a callback) when t

How to observe property binding events

2006-10-06 Thread Epstein, Ezra
I've got a component which accepts a parameter. I want to listen (receive a callback) when the parameter is set (bound). Does Tapestry provide such a facility? Thanks, Ezra Epstein

RE: Maximize Portlet

2006-08-08 Thread Epstein, Ezra
--Original Message----- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 12:45 PM To: Tapestry users Subject: RE: Maximize Portlet What's the code for your getActionResponse() method? When you say "DirectLink call" do you mean a Listener method? Page 50

RE: Maximize Portlet

2006-08-07 Thread Epstein, Ezra
What's the code for your getActionResponse() method? When you say "DirectLink call" do you mean a Listener method? Page 50 (among others) of the JSR 168 spec lists conditions where one may not call setWindowState() and where an exception should be thrown. Thanks, Ezra Epstein -Original

After validation Hook

2006-08-03 Thread Epstein, Ezra
Is there a place to put logic that is called after (post-) validation? Simply put, there's some logic that I'd like to have invoked before any listener is called (after validation) but would rather not explicitly call that logic from each listener method. Thanks, Ezra Epstein -

RE: Portlets on Tapestry 4.1

2006-08-02 Thread Epstein, Ezra
question. I will answer with a documentation page. > > > On 8/2/06, Epstein, Ezra <[EMAIL PROTECTED]> wrote: > > > > We want to move to 4.1 for our portlets. Reading up I find: > > > > "By default, the Shell component will include the core dojo > > ja

RE: recursive rendering

2006-08-02 Thread Epstein, Ezra
This may not be the issue, but... You could make a "dyna-eval" component that (re-)evaluates an ognl expression wherever/whenever you choose. OGNL is pretty easy to work with. Perhaps that could work? Thanks, Ezra Epstein -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED

Portlets on Tapestry 4.1

2006-08-02 Thread Epstein, Ezra
We want to move to 4.1 for our portlets. Reading up I find: "By default, the Shell component will include the core dojo javascript object dojo.js, as well as the new core Tapestry javascript object - core.js. This means that you don't have to worry about how to include dojo or Tapestry javascr

RE: Re: Tapestry 5 Discussions

2006-08-01 Thread Epstein, Ezra
I think there's a mis-communication. I do not at all feel HiveMind is "just an ego trip." Far from it. Rather I was questioning how the decision about IoC adoption is being made. At the time HiveMind got started the IoC container space was pretty open and empty. Not so anymore. Of course

RE: Tapestry 5 Discussions

2006-07-28 Thread Epstein, Ezra
The argument against HiveMind is not against HiveMind, per se. It's about Tapestry adoption. Tapestry already has a battleground: the web framework space. By combining it with HM it now has two battles: web frameworks and IoC/lightweight-containers. While opting for its own built-in IoC cont

RE: Streaming files from Tapestry

2006-07-28 Thread Epstein, Ezra
hopeful that somebody will deliver a servlet or library that does serve this purpose in a better and generic method, I am happy to be the first to test and implement it. Cheers mc On 28 Jul 2006 at 9:53, Epstein, Ezra wrote: > I'm not sure I really followed, but your option "c&qu

RE: Portlet Examples

2006-07-28 Thread Epstein, Ezra
Yes, there are several. One hosted by Howard, I believe, that is pre-config'd to run under JetSpeed or eXo. Then there's a very simple one here: http://labs.jboss.com/portal/portletswap/downloads/portlets/framework Thanks, Ezra Epstein -Original Message- From: Joel Trunick [mailto

RE: Streaming files from Tapestry

2006-07-28 Thread Epstein, Ezra
I'm not sure I really followed, but your option "c" doesn't seem to have anything to do with a web framework (tapestry or otherwise). Rather you're just dynamically generating some text a la: Or whatever. The only part of that which is dynamic is the image name. And "Any" tag can give you

RE: Portlet Tapestry: using @Persist with a ValidationDelegate vs. using an ApplicationStateObject

2006-07-26 Thread Epstein, Ezra
ish, if there is a fix to be had. (maybe tomorrow I'll take a look) You'd have to move to tapestry 4.1 though. On 7/25/06, Epstein, Ezra <[EMAIL PROTECTED]> wrote: > > Doing some validation on a portlet. Got it working using the > recommended approach described on > >

Portlet Tapestry: using @Persist with a ValidationDelegate vs. using an ApplicationStateObject

2006-07-25 Thread Epstein, Ezra
Doing some validation on a portlet. Got it working using the recommended approach described on http://tapestry.apache.org/tapestry4/tapestry-portlet/coding-issues.html#Loss+of+Transient+State I'd like to try doing it where the ValidationDelegate is stored in the session for a specific page (po

Portlet hivemodule space in class name?

2006-07-20 Thread Epstein, Ezra
Looking at the Tapestry 4.02 Portlet source I noticed: In the hivemodule.xml file. Is the space between 'RootDescriptionReceiverFactory' and 'Impl' a typo? Thanks, Ezra Epstein - To unsubscribe, e-mail: [EMAIL PROTE

RE: Re: From the online docs

2006-07-18 Thread Epstein, Ezra
med after the servlet and lists the .page files. So if you put the .page files in separate sub directories you can get it nicely separated. I don't think it is terribly difficult. Henrik "Epstein, Ezra" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] Do

RE: Access to PortletConfig (init-param and friends) SOLVED ?

2006-07-14 Thread Epstein, Ezra
pertyValue( initParamName ); // use initParamValue here... } Thanks, Ezra Epstein -Original Message- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 4:33 PM To: Tapestry users Subject: Access to PortletConfig (init-param and friends) So I th

RE: Hello world portlet

2006-07-14 Thread Epstein, Ezra
This can supposedly work, but I haven't yet found out how. If you do find out PLEASE post it to the list. I believe it's a pre-requisite for getting multiple portlets in a single Tapestry .war Thanks, Ezra Epstein -Original Message- From: Julio C. Rivera [mailto:[EMAIL PROTECTED]

RE: Inject and the infrastructure namespace

2006-07-14 Thread Epstein, Ezra
ovider. It can provide any java.lang.Class object given a class name. So, there's no real way for it to be able to tell you "here are all of the objects that I can provide." -Original Message- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Friday, July 14,

RE: Hello world portlet

2006-07-14 Thread Epstein, Ezra
Tapestry wants to load a View class. You'll need a HelloWorldPortlet.application file in the WEB-INF folder with contents like: http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> Where the value is specific to your package, of course. HTH. Thanks, Ezra Epstein -Orig

RE: Inject and the infrastructure namespace

2006-07-14 Thread Epstein, Ezra
nterface is available via the infrastructure: prefix. -----Original Message- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 7:07 PM To: Tapestry users Subject: Inject and the infrastructure namespace This: @InjectObject("infrastructure:context")

Access to PortletConfig (init-param and friends)

2006-07-13 Thread Epstein, Ezra
So I think I found the code that handles the PortletConfig: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-portlet/src/java/org/apache/tapestry/portlet/PortletApplicationSpecificationInitializer.java?view=markup public void initialize(PortletConfig portletConfig) { Str

RE: Inject and the infrastructure namespace GENERALIZED

2006-07-13 Thread Epstein, Ezra
More generally, how does one introspect the entire HiveMind registry? I'd really like to list out the top level entry points (namespaces) and then crawl those printing out what I find. Is there some sample code to do that? Thanks, Ezra Epstein -Original Message- From: Ep

Inject and the infrastructure namespace

2006-07-13 Thread Epstein, Ezra
This: @InjectObject("infrastructure:context") works fine. And of course there's the 'request' available from infrastructure. Can someone kindly point me to the docs that list all the possible values that may be placed after the "infrastructure:" tag/namespace for a default tapestry+portlet d

Tapestry and a portlet's init-param

2006-07-13 Thread Epstein, Ezra
So the portlet spec lists a way to get the init-params set in the portlet.xml file. How does one access these from a Tapestry (portlet) page? I've been perusing the javadocs and seem to only get 1/2 way there. Thanks, Ezra Epstein --

RE: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter

2006-07-13 Thread Epstein, Ezra
t, and OGNL makes it very easy to create one inline. > > The following worked for me: > parameters="ognl:{ null }" > > Prolly cuz the list itself isn't null and thus not thrown away, and > then it's mapped to the input parameters. > > Jim > &g

RE: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter SOLVED

2006-07-13 Thread Epstein, Ezra
The OGNL incantation is: Parameters="ognl:new java.lang.String[1]" Thanks, Ezra Epstein -Original Message----- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 1:39 PM To: Tapestry users Subject: Tapestry 4: @DirectLink with parameter="

Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter

2006-07-13 Thread Epstein, Ezra
I've got working @DirectLink tags for a listener that takes a single String parameter. In one case I want to pass in null as the parameter. How does one do this? Using Link Causes: org.apache.tapestry.BindingException Exception invoking listener method setCurrentNodeId of component View: N

'context' ObjectProvider (hivemind/tapestry)

2006-07-12 Thread Epstein, Ezra
Does Tapestry's HiveMind come with a "ContextObjectProvider" ? Basically I want a way to get attributes from the WebContext and use them as parameters in instantiating an object inside a hivemodule.xml file. If not, looks like I have to role my own ObjectProvider a la: http://jakarta.apa

RE: JSF-style bean access (JBoss) via HiveMind ?

2006-07-12 Thread Epstein, Ezra
that doesn't do the trick, perhaps you can describe exactly what this JSF code does Cheers, P _ Piano music podcast: http://inthehands.com Other interesting stuff: http://innig.net On Jul 11, 2006, at 2:01 PM, Epstein, Ezra wrote: > We're trying to writ

RE: Source code for Tapestry examples

2006-07-11 Thread Epstein, Ezra
SVN access to Tapestry4 source: http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk I'm using Subclipse from within eclipse. Browse to what is of interest and make a project... Thanks, Ezra Epstein -Original Message- From: Epstein, Ezra [mailto:[EMAIL PROTECTED]

Source code for Tapestry examples

2006-07-11 Thread Epstein, Ezra
So I went to go download the vLib example: http://tapestry.apache.org/tapestry4/examples/index.html It links to Howard's personal site. Fair enough, I downloaded the 27MB gzipped package from there. And... Not a .java file to be found. No source code. No indication of where to find the sou

RE: General HiveMind questions

2006-07-11 Thread Epstein, Ezra
you've been "forced" to use Tapestry. Ah well. On 7/11/06, Epstein, Ezra <[EMAIL PROTECTED]> wrote: > > OK, thanks to the SVN links, I see I need to reference the service by > the Java class of the interface, not by the id which I assigned to > that service)

RE: General HiveMind questions

2006-07-11 Thread Epstein, Ezra
ut at this point using Tapestry feels like coding by braille or utter trial and error. Is that just me or is there some hard to find great docs that everyone else has read? If so, please, please pass along the link. Thanks, Ezra Epstein -Original Message- From: Epstein, Ezra [m

RE: General HiveMind questions

2006-07-11 Thread Epstein, Ezra
your "parameters" by autowiring (if they're supposed to be references to other HiveMind services) or using XML inside the hivemodule.xml file. If you're using tapestry-autowire (or Tap4.1), then all you have to do is declare an abstract getter of the same type as your bean c

General HiveMind questions

2006-07-11 Thread Epstein, Ezra
So I've got an object I want to make available to a Tapestry page and I want to use HiveMind to do this. What are the steps one takes? More specifically: the object does *not* implement an interface; the object has parameters (set via mutator methods). (Maybe should be posted on the HiveMind l

JSF-style bean access (JBoss) via HiveMind ?

2006-07-11 Thread Epstein, Ezra
We're trying to write some admin/management code for JBoss Portal in Tapestry. Current code uses JSF. The relevant portion of the faces-config.xml is: portalobjectmgr org.jboss.portal.core.portlet.management.PortalObjectManagerBean session roleModule

RE: Portlets -- many in one .war ?

2006-07-10 Thread Epstein, Ezra
works. d. "Epstein, Ezra" <[EMAIL PROTECTED]> wrote on 07/07/2006 20:24:13: > > We're looking to Tapestry for our portlet development. Basically we > love what Tapestry does for servlet/web-app dev. and are hoping it can > help with an in-process Portal. > &

RE: From the online docs

2006-07-10 Thread Epstein, Ezra
imply one portlet per war?? There is clearly no such limitation. See http://tapestry.apache.org/tapestry4/tapestry-portlet/configuration.html for more... >From "Epstein, Ezra" <[EMAIL PROTECTED]>: > From http://tapestry.apache.org/tapestry4/tapestry-portlet/index.html > >

RE: Re: Why I hate mailing lists

2006-07-10 Thread Epstein, Ezra
rss feed You can even search across multiple mailing lists at one time. As far as I am concerned, this is much more flexible than most forums. Go to http://dir.gmane.org/gmane.comp.java.tapestry.user and try it out. With gmane, might even learn to love mailing lists! Epstein, Ezra wrote: > S

From the online docs

2006-07-07 Thread Epstein, Ezra
>From http://tapestry.apache.org/tapestry4/tapestry-portlet/index.html "The pattern of development for Tapestry portlet applications is to create a (generally) small application, consisting of just a few pages. Each Tapestry portlet within a portal page will be a completely separate instance of

Multiple portlets in one Tapestry .war ?

2006-07-07 Thread Epstein, Ezra
JBoss's portlet-swap has a nice example of using Tapestry to make a portlet. The files for the 3 different render modes are named: View.[html/page/java] Edit.[html/page/java] Help.[html/page/java] But the question I have is "View what"? Edit what? There's no indication of which portlet. Nor do

RE: Why I hate mailing lists

2006-07-07 Thread Epstein, Ezra
alent to forums. On 7/7/06, Epstein, Ezra <[EMAIL PROTECTED]> wrote: > > So I wanted to read up about putting multiple portlets/pages in a > single Tapestry portlet .war and went happily to the online mailing > list archives and what do I find: > > The archives are segme

Portlets -- many in one .war ?

2006-07-07 Thread Epstein, Ezra
We're looking to Tapestry for our portlet development. Basically we love what Tapestry does for servlet/web-app dev. and are hoping it can help with an in-process Portal. Reading the list I'm not optimistic. Here are the questions: 1. How do we add multiple portlets to a single .war (not mul

Why I hate mailing lists

2006-07-07 Thread Epstein, Ezra
So I wanted to read up about putting multiple portlets/pages in a single Tapestry portlet .war and went happily to the online mailing list archives and what do I find: The archives are segmented: + first by month (oh and only 3 months are online) + then by a "page" of "n" postings in a month. +