Re: Dynamic pages (or: arguments to pages)

2007-11-27 Thread Ulrich Stärk
Why exactly do you think one should use the external service here? And what is the benefit of it anyway? To my knowledge the only "difference" is the ability to bookmark pages. But that can be done with "normal" pages too. As to parameter extraction I don't like the external service solution at

Tapestry 5 deployment

2007-11-27 Thread Peter Stavrinides
Hi All, I have successfully configured my Tapestry 5 application to use a JDBC realm with Tomcat in production, but for my T5 development setup I am using Maven with the jetty plug-in... can anyone share how to configure a realm with the plugin? I have minimal jetty/maven experience (note: I

Re: T5: Edit page best practice?

2007-11-27 Thread Geoff Callender
Thanks, Iasatha, for the considered answer. It seems that even with the brilliance of T5, the web is still a tricky area with trade-offs at every turn. On 27/11/2007, at 2:10 AM, lasitha wrote: 1. Persist - Is there an alternative? It's used here to keep _person populated in case onSucces

Re: How to Intergrate GWT into Tapestry pages Article by Geoff Longman

2007-11-27 Thread neo anderson
Do you use Eclipse? After searching around on the internet, I think Cypal plugins is good enough for using gwt. Then you can keep tapestry stuff as it were because Cypal plugin will copy html to the place of web context. Yet the tapestry version I use is version 4.0.2 not 5. mad wrote: > >

Re: Using Alfresco from within Tapestry

2007-11-27 Thread adasal
I've been wondering about this exchange. I haven't looked this up, but if this is a problem of sharing across Servlet container contexts then are you trying "to do what ought not to be done"? Why can't you unpack Alfresco and add in Tapestry to the existing context? You have access to Alfresco sour

[T5] Persistent field strategy and Hibernate

2007-11-27 Thread Olof Næssén
I've stumbled on a problem with implementing a custom persistent field strategy that uses Hibernate. As the the application uses Hibernate I would like to use Hibernate entities as models, but this causes a problem when storing entities in the session as our Hibernate session is created per request

[T4.1] How to get list of registered components?

2007-11-27 Thread ccmail
Hi, how can I get list of active components programatically from within Tapestry component? What I need to do is to check if a component (being a template) with given name exists and use it if so or use some default template otherwise. BTW: is it possible at all? Can I insert ognl within jwc

Re: [T4.1] How to get list of registered components?

2007-11-27 Thread ccmail
ccmail wrote: Hi, how can I get list of active components programatically from within Tapestry component? What I need to do is to check if a component (being a template) with given name exists and use it if so or use some default template otherwise. BTW: is it possible at all? Can I insert

Re: [T4.1] How to get list of registered components?

2007-11-27 Thread Alejandro Scandroli
Hi These old threads might help: http://www.nabble.com/dynamic-component-injection-tf3845654.html#a11223321 http://www.nabble.com/Question-regarding-Block-RenderBlock-tf2586721.html#a7212396 -- Alejandro Scandroli Amneris: We build process-driven web applications. http://www.amneris.es On Nov 27

Re: Using Alfresco from within Tapestry

2007-11-27 Thread Kaspar Fischer
On 27.11.2007, at 13:36, adasal wrote: I've been wondering about this exchange. I haven't looked this up, but if this is a problem of sharing across Servlet container contexts then are you trying "to do what ought not to be done"? You are right. A different setup would definitely be more

Re: T5: Edit page best practice?

2007-11-27 Thread Howard Lewis Ship
On Nov 27, 2007 3:56 AM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Thanks, Iasatha, for the considered answer. It seems that even with > the brilliance of T5, the web is still a tricky area with trade-offs > at every turn. I agree; you can store a lot more persistent state on the server, but t

Re: Using Alfresco from within Tapestry

2007-11-27 Thread adasal
> > I am asking myself whether this is so much better? It would mean > that we have Alfresco's Web Client (first "webapp") and our > own Tapestry "webapp" together in one webapp, one JSF-based, the > other Tapestry-based? Does not sound so nice to me. It doesn't seem very nice, I see what you mea

PropertySelection binding bug T-4.1.3 ?

2007-11-27 Thread Ken in nashua
Folks, I have a PropertySelection component rigged up and initialized with defaults. But I am not sure if my binding to the user interface is broken or if this is a valid BUG. Here is the binding Gallery.jwc Gallery.JAVA (some code omitted) private static final String[] tableSizeS

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-27 Thread Ken in nashua
Here is the actual usage of the widget. Home.html Best regards Ken in nashua _ You keep typing, we keep giving. Download Messenger and join the i’m Initiative now. http://im.live.com/messenger/im/home/?source=TAGLM

Re: Multiple Select

2007-11-27 Thread neo anderson
i follow the following page - http://tapestry.apache.org/tapestry4.1/components/form/select.html. And now I can render the multi-elect item on the page with its index set to 0, 1, 2, 3 ... However I want the index value to be string. For example, I have a color list {"yellow", "green", "red"}, w

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-27 Thread Ken in nashua
Adding a setter does not help. public abstract void setTableSize(String tableSize); _ Connect and share in new ways with Windows Live. http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007

Re: Multiple Select

2007-11-27 Thread neo anderson
sorry. forget to ask another question. I have another menu (jscookmenu) component also plugged in the html page. After rendering the multiple selection. the menu page can not displayed any more. What might cause such problem? The components for menu and multiselection in html look like below:

Re: T5: onActivate woes

2007-11-27 Thread Howard Lewis Ship
Yes it does, if the onActivate() methods are in different places. There's a very explicit order, base classes handle events before subclasses. Within a class, its handled alphabetically (ascending) and by parameter count (descending, for a single method name with multiple overrides). What you may

AssetProtectionDispatcher update

2007-11-27 Thread Robert Zeigler
Hi All, I've updated AssetProtectionDispatcher both in Tassel (http://www.tapestrycomponents.org ) and in the maven repo mentioned in the AssetProtectionDispatcher "notes" on Tassel. Current version is now 0.0.3. The new version includes updated default entries to the WhitelistAuthorizer to

T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread jeffrey ai
Hi Folks, I think I'm missing something here, but would appreciate a shove in the right direction. I created a new BindingFactory, introduced a new prefix, and successfully contributed it to BindingSource. I am trying to do the following things in my new BindingFactory, = public Bindi

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread Filip S. Adamsen
Have you tried injecting the request directly into your BindingFactory? -Filip jeffrey ai skrev: Hi Folks, I think I'm missing something here, but would appreciate a shove in the right direction. I created a new BindingFactory, introduced a new prefix, and successfully contributed it to Bindin

RE: PropertySelection binding bug T-4.1.3 ?

2007-11-27 Thread Ken in nashua
Well after spending a day and trying all combinations/permutations of trying to establish a binding... everything idicates that bindings do not work for component or session property. So I tried a regular parameter annotation @Parameter(required = false, cache = true) public abstract String ge

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread jeffrey ai
Thanks, Filip. I tried to inject RequestGlobals, like I did for normal component, but that doesn't work. It's not correctly injected. Filip S. Adamsen-2 wrote: > > Have you tried injecting the request directly into your BindingFactory? > > -Filip > > jeffrey ai skrev: >> Hi Folks, >> >> I th

Re: Change value property in @Option

2007-11-27 Thread neo anderson
I have similar problem. Is anyone know how to solve it? Thanks in advice. Blackwings wrote: > > Hi, > > I'm looking for the way to change the how the value property of the > @Option > can be change. By default, it put an index from 0 to n. But I don't want > that. I would like to be able to

Re: Change value property in @Option

2007-11-27 Thread Robert Zeigler
I think most of us use the PropertySelection component instead of select and option. Then you would encode your values via an IPropertySelectionModel. Cheers, Robert On Nov 27, 2007, at 11/275:03 PM , neo anderson wrote: I have similar problem. Is anyone know how to solve it? Thanks in ad

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread Howard Lewis Ship
Remember that service injection is ONLY through the constructor, whereas component injection is ONLY through private instance variables. On Nov 27, 2007 2:57 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Jeffrey, > > Try injecting org.apache.tapestry.service.Request: > http://tapestry.apach

Re: T5: Is there a way to make a BindingFactory request-aware

2007-11-27 Thread Filip S. Adamsen
Hi Jeffrey, Try injecting org.apache.tapestry.service.Request: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/services/Request.html That should do the trick. -Filip jeffrey ai skrev: Thanks, Filip. I tried to inject RequestGlobals, like I did for normal component, but that d

Re: Change value property in @Option

2007-11-27 Thread Andreas Andreou
Why do you need to change that? Are you submitting to a tapestry form? On Nov 28, 2007 1:03 AM, neo anderson <[EMAIL PROTECTED]> wrote: > > I have similar problem. Is anyone know how to solve it? > > Thanks in advice. > > > > Blackwings wrote: > > > > Hi, > > > > I'm looking for the way to change

RE: [T5] Cannot persist field exception

2007-11-27 Thread Jean-Philippe Steinmetz
I made this change but it did not help. As a test, I have removed all @Persist annotations in the page and now I am just getting a java.lang.NullPointerException with no other information. Very strange indeed. Not even a stack trace. > -Original Message- > From: jeffrey ai [mailto:[EMAIL

T5: CRUD basic practice?

2007-11-27 Thread Angelo Chen
Hi, I have been trying to find a best practice for tapestry-hibernate, looks like there is none yet, here is an approach that I would do if the tools were still dbase/Clipper at this time, very old fashion, but seems working, no issue at all with @Persist, detached objects, any comments? public c

protecting assets

2007-11-27 Thread Will Norris
surely I'm missing something here. If all assets on the classpath are accessible via /assets/, then how do I protect my configuration files? Running my app with mvn jetty:run lets me access thanks, will -

[T5] CSV in Tapestry 5

2007-11-27 Thread Alejandro Tapia Lazcano
Hello! I have a grid made with tapestry5 and I need to pass this data to a CSV (comma separated values). After searching I found this component but for T4. http://www.tapestrycomponents.org/Tassel/app?service=direct/1/Search/viewComponent&sp=SmschnyderCSV+Export It is possible to migrate th

Re: protecting assets

2007-11-27 Thread Howard Lewis Ship
Contributions to the ResourceDigestGenerator service can be used to protect assets. This is in TapestryModule: public static void contributeResourceDigestGenerator(Configuration configuration) { // Java class files always require a digest. configuration.add("class");

Blank value for PropertySelection

2007-11-27 Thread Joshua Jackson
Dear all, I have a combo box defined as follow: Now I wanted to add a default message for this combo box that would look like this: Choose... But I can not nest that blank option tag inside a PropertySelection component. Does anyone has a solution for this? Thanks in advance, -- What yo