Re: dojo dialog to populate portion of form and submit

2007-05-31 Thread Miguel Angel Hernández
The trick is that the dialog its always inside the Form, as a hidden part of the dom i,e: visibility='hidden': div id=ognl:contenedorId jwcid=@Any style=position:absolute;visibility:hidden;z-index: 555 span jwcid=@RenderBody/ /div Whenever I need such dialog to show(and render or

Re: Lehky_SPAM: Re: T5 Decoupling a Template From its Component Class

2007-05-31 Thread Jiri Mares
Hi Howard, I would like to ask, whether there is still possibility to have localized templates? eg. org/example/myapp/components/CClamp.html org/example/myapp/components/CClamp_en.html org/example/myapp/components/CClamp_en_US.html org/example/myapp/components/CClamp_de.html Thanks Howard

Re: T5: when is @Persist necessary and when not...

2007-05-31 Thread Martin Dietze
On Wed, May 30, 2007, Howard Lewis Ship wrote: On 5/30/07, Martin Dietze [EMAIL PROTECTED] wrote: [...] For all these I have getters and setters defined. In my page class I have a constructor like this: | public CreatePartner() { | _contact = new Person();

Re: URGENT: T4.1.1 on Oracle OC4J 9.0.4, 10.1.2.xxx - Missing classpath resource '/dojo' issue

2007-05-31 Thread Jan Vissers
Just to give you an update... I managed to work around this issue using a hacked version of org.apache.hivemind.util.ClasspathResource. Since I already had to hack another part of Hivemind in order for 'it' to work on OC4J9.0.4/10.1.2.x.x, I thought it best to centralize these 'hacks'. public

very very interesting

2007-05-31 Thread Andrea Chiumenti
http://www.sitepen.com/blog/2007/05/30/google-gears-dojo-offline-and-sitepen/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5: select using a wrapped enum

2007-05-31 Thread Martin Dietze
Hi, I created a selectmodel based on a enum wrapped by a generic wrapper and using a generic value encoder. By this I intend to simplify creating select inputs consisting of something like please select and followed by the enum's entries which are the only valid inputs for the select. The

custom js validator T4.0

2007-05-31 Thread Viktor Matić
Hi, I have problem with js validator, which looks like: Tapestry.validate_basket_qty = function(event, fieldId, min, message) { var o = this.find(fieldId); var value = o.value; if (value == ) return; if (Number(value) min Number(value) != 0 )

T5: Inject Entities into Page component

2007-05-31 Thread Joshua Jackson
Dear all, Would it be possible to Inject Entities into my Page component to be used for Hibernate, so I don't have to write get and set for setting and getting the value of my object in my Page component? So I can just write as such: public void onAction(){ session.save(myobj) } inside my

dynamic component injection

2007-05-31 Thread Andrea Chiumenti
Hello I'd like to konw if in Tap 4.1.2 there is a way do dynamically render components inside a page. If yes, how ? regards, kiuma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Detecting Tapestry version

2007-05-31 Thread Geoff Callender
Thanks. On 30/05/2007, at 11:44 PM, Jesse Kuhnert wrote: Looking at the javascriptdoc (like javadoc for javascript) linked to from here: http://tapestry.apache.org/tapestry4.1/javascript/index.html http://tapestry.apache.org/tapestry4.1/jsdoc/index.html You can find that the

T5: Using my own localization backend

2007-05-31 Thread Martin Dietze
Hi, I need to use a particular localization backend for my project. As I understand, T5 provides its own code for retrieving messages based on the .properties files, and if I understand Howard's posting from Mar 4 right, simply plugging in my own ComponentMessageSource implementation is not yet

Moving T4 to T5 broke Acegi

2007-05-31 Thread petros
I had the attached entries in my acegi configuration and I also had the following Tapestry pages Login, Start, AccessDenied Moving to T5 I removed the html extensions from acegi config and everything works fine except the accessDenniedHandler I am getting a 404 error when acegi forwards me to

Form names in T4.1

2007-05-31 Thread Brian Long
Hi all, this is just a quick question, in previous versions of tapestry a Form was assigned a name using the convention jwcid=[EMAIL PROTECTED], however in T4.1this no longer sets the name but assigns an id=someName. Question is, how do I assign a name to my Form component in 4.1, as informal

Re: T5: Inject Entities into Page component

2007-05-31 Thread Davor Hrg
i belive howard is planning for a tighter integration of hibernate module ... don't know is this doable easier since this approach requires a lot code, I could make sth to handle all entities but here's something so you can play and see the easynes of tapestry-ioc. code is not perfect but worked

Re: T5: Using my own localization backend

2007-05-31 Thread SergeEby
Hi, You can provide your own implementation by contributing to aliasOverrides: http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html /Serge Martin Dietze wrote: Hi, I need to use a particular localization backend for my project. As I understand, T5 provides its own code

[T5] proposal for a java api for adding javascript = tapestry-javascript

2007-05-31 Thread Kristian Marinkovic
hi all, wouldn't it be nice to have a java api in tapestry that could be used to add certain javascript functionality to a page? preferable independent from a javascript library? like: jsApi.addEventListener(Page page, Component comp, String eventType); or: jsApi.addAsynchronousLink(Page

Re: T5: Using my own localization backend

2007-05-31 Thread Martin Dietze
On Thu, May 31, 2007, SergeEby wrote: You can provide your own implementation by contributing to aliasOverrides: http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html Thank you for your reply. I took a look at that page, but I do not quite understand it. It seems like I lack

Re: Form names in T4.1

2007-05-31 Thread Andrew Ingram
Hi Brian, I'm not sure if this is the reasoning behind the change, but when using a strict doctype the form tag isn't allowed a name attribute and id is used instead. In tapestry 3 I had to rewrite the form component to use id rather than name. Rewriting the form component to use name

T5 / redirect / https

2007-05-31 Thread jb
Hi to all Tapestry users, is there a best practice for redirect? I noticed in T4 there was a RedirectException. In T5 I got the redirect working just by setting response.sendRedirect(MyClassName.getSimpleName()) in my filter. How is it possible to switch the channel from http to https together

Re: flash covers dojo dialog

2007-05-31 Thread Heping Zhang
I resolved it. Just add param name=wmode value=opaque /

Re: [T5] proposal for a java api for adding javascript = tapestry-javascript

2007-05-31 Thread Joshua Jackson
Hi Kris I agree with you. I think it will be great to have this component to replace dependency to a specific javascript framework like dojo or scriptalous. On 5/31/07, Kristian Marinkovic [EMAIL PROTECTED] wrote: hi all, wouldn't it be nice to have a java api in tapestry that could be used

Localization of validation messagges and their css

2007-05-31 Thread Otho
Hi all, is there a better/more standard way to localize validation errors than to create org.apache.tapestry.internal.ValidationMessages_xx_XX.properties and org.apache.tapestry.corelib.components.Errors_xx_XX.properties in resources package? And where do I override the css? Regards, Otho

Re: custom js validator T4.0

2007-05-31 Thread Viktor Matić
Hi, On 2007.05.31, at 11:30, Viktor Matić wrote: Hi, I have problem with js validator, which looks like: Tapestry.validate_basket_qty = function(event, fieldId, min, message) { var o = this.find(fieldId); var value = o.value; if (value == ) return; if (Number(value)

Re: dynamic component injection

2007-05-31 Thread Andrea Chiumenti
Is it right to do this ? public IRender getDynaComp() { IRequestCycle cycle = getEngine().getInfrastructure().getRequestCycle(); IWorkerRender result; if ((cycle.getParameter(body) != null) (!(cycle.getParameter(body).equals())) ) { result = from a service via IOC

JumpStart v1.3 is now available - Web Flows

2007-05-31 Thread Geoff Callender
Tapestry JumpStart v1.3 is now available. This version adds: * Example of Web Flow And Wizards - demonstrates how Tapestry makes web flow a breeze. No XML or additional frameworks required! * Example of Web Flow With Random Navigation. Includes techniques for:

Re: T5: select using a wrapped enum

2007-05-31 Thread Howard Lewis Ship
Have you considered using OptionGroups as the labels? On 5/31/07, Martin Dietze [EMAIL PROTECTED] wrote: Hi, I created a selectmodel based on a enum wrapped by a generic wrapper and using a generic value encoder. By this I intend to simplify creating select inputs consisting of something

Re: dynamic component injection

2007-05-31 Thread Jesse Kuhnert
Hmm I'm not sure. It doesn't look right but it's possible. Wouldn't @Block be the easiest way to do it? Or different instances of IRender ? On 5/31/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: Is it right to do this ? public IRender getDynaComp() { IRequestCycle cycle =

Re: T5: select using a wrapped enum

2007-05-31 Thread Martin Dietze
On Thu, May 31, 2007, Howard Lewis Ship wrote: Have you considered using OptionGroups as the labels? To me it seemed that if I have to create a number of selects with similar structure, just plugging in the appropriate enum might actually be an elegant solution. Do you seen anything wrong

Re: Localization of validation messagges and their css

2007-05-31 Thread Juan Maya
To override you need to add the css styles u want to override in u r own style sheet. For example, if u want to override the tapestry style: div.t-error you create: newStyles.css div.t-error { border: 1px solid red; padding: 0px; margin: 4px 0px; } then u include the css in ur page and

Re: Shipwreck when downloading T5.0.5

2007-05-31 Thread adasal
I can use this to run 5.0.4 as per Daniel Jue but I cannot run 5.0.5. I have cheated(?) and installed 5.0.4 tapestry-core as 5.0.5-SNAPSHOT then if I e.g. mvn clean install -U this is the console output. It looks for the corresponding pom which it doesn't find. Otherwise, without the cheat, it

Re: dynamic component injection

2007-05-31 Thread Andrea Chiumenti
Well I want to make a single page application, so componentns (the body part of a page) will be injected as reference by hivemind into different jars. Playng a bit with Tapestry src I've found a better way to do this, but I need some more testing (assets, listeners, etc). I'm investigating on

T4 Maven 2 archetype

2007-05-31 Thread Olivier THIERRY
Hi, I try to run Maven 2 archetype for Tapestry 4 as said on this page : http://tapestry.apache.org/tapestry4.1/tapestry-archetype/index.html But it can't find artifact tapestry-archetype, with the followin error : Downloading:

Re: T5: select using a wrapped enum

2007-05-31 Thread Howard Lewis Ship
I meant OptionGroups for the non-selectable labels. Make the HTML browser do the work for you. It actually looks nice, with the items indented beneath the matching labels. The indentation means you probably don't need the row of dashes. On 5/31/07, Martin Dietze [EMAIL PROTECTED] wrote: On

Re: Blog on Tapestry's Future

2007-05-31 Thread Peter Stavrinides
On 5/21/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: I'd love to see more comments. Honest comments about your experiences going from 3 to 4, your thoughts on better adoption, how you feel about Tapestry 5 (especially if you are in a situation where you'll need to upgrade). Please avoid

Re: Localization of validation messagges and their css

2007-05-31 Thread Otho
Thanks! Too obvious to find it out myself... :) 2007/5/31, Juan Maya [EMAIL PROTECTED]: To override you need to add the css styles u want to override in u r own style sheet.

Portlet - custom Exception page

2007-05-31 Thread Petras Martin, Centire
Title: Centire Signature Hi all, I am trying to change the default Exception page in my portlet application. My files (only the most important): context/WEB-INF/myApplication.application context/WEB-INF/hivemodule.xml context/WEB-INF/myPortlet/myPortlet.application

Re: [T5] proposal for a java api for adding javascript = tapestry-javascript

2007-05-31 Thread Howard Lewis Ship
This is a fine idea, but may be deferred a bit until we get some more experience with what it means to be cross-library compatible. On 5/31/07, Joshua Jackson [EMAIL PROTECTED] wrote: Hi Kris I agree with you. I think it will be great to have this component to replace dependency to a specific

Re: T5 - Service injection and ioc

2007-05-31 Thread vidrilon
Did i understood well?? Could you make it work? I'm also having the same problem, i have created another module, UserAuthenticatorModule for validating a login form, but have the same message: No service implements the interface org.clinica.bd.pages.UserAuthenticator Joshua Jackson-3 wrote:

[T5] Beginning Hibernate with a T5 application

2007-05-31 Thread Daniel Jue
Hey there I am considering using Hibernate for part of my applications db access. Before I was hand writing DAOs/daofactories, but now the impedance mismatch is growing too large and I want to try something different. With T4, there are plenty of good tapestry/hibernate resources. With T5, we

Re: Shipwreck when downloading T5.0.5

2007-05-31 Thread RobertSchreiber
Looks like you have an old version of this file. The correct oane is: package org.example.myapp.services; import java.io.IOException; import org.apache.commons.logging.Log; import org.apache.tapestry.ioc.MappedConfiguration; import org.apache.tapestry.ioc.OrderedConfiguration; import

Re: Lehky_SPAM: Re: T5 Decoupling a Template From its Component Class

2007-05-31 Thread Juan Maya
yes, that;s still supported and documented here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html On 5/31/07, Jiri Mares [EMAIL PROTECTED] wrote: Hi Howard, I would like to ask, whether there is still possibility to have localized templates? eg.

Re: dojo dialog to populate portion of form and submit

2007-05-31 Thread Paul Stanton
Ok, but I need to populate the form content with ajax. I could edit 1 of 50 elements, and i don't want to load in all of the editable data until it's selected. The problem as I see it is less that the dialog is shown/hidden, but that the form components are essentially detached from the page's

Re: scrolling window : dojo dialog vs thickbox

2007-05-31 Thread Paul Stanton
well, there's the issue of software bloat as well. I'm sure someone could write some components around jquery to rival the dojo components, but including both by default would be a bad idea imho. is this an issue worth raising with the dojo team? since dojo is the chosen javascript platform

Re: dojo dialog to populate portion of form and submit

2007-05-31 Thread Jesse Kuhnert
I can't really piece together what you are doing vs. what is not working as expected but the Dialog component essentially does nothing other than wrap a block of html. Tapestry does maintain form state during ajax requests - so if that's not happening then something is wrong. It's possible that

Re: scrolling window : dojo dialog vs thickbox

2007-05-31 Thread Jesse Kuhnert
I wasn't suggesting having both running together. More along the lines of what I implemented in Tacos originally - which supports both prototype and dojo - not necessarily strictly one or another. On 5/31/07, Paul Stanton [EMAIL PROTECTED] wrote: well, there's the issue of software bloat as

RE: T5: when is @Persist necessary and when not...

2007-05-31 Thread Ben Sommerville
The default value that the _person member gets reset to will be the Person _instance_ that you assigned in the constructor. So when the form is submitted that instance will have its members set based on the form values. When the page is rendered the same instance will be used as the default

Re: scrolling window : dojo dialog vs thickbox

2007-05-31 Thread Jesse Kuhnert
p.s. I don't know for sure yet but think there is a very good chance someone may be fiddling with things a little here and there soon to make prototype available as well and eliminate the arbitrary inclusion of js on pages not needing it. On 5/31/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: I

Re: Shipwreck when downloading T5.0.5

2007-05-31 Thread Nick Westgate
adasal wrote: I can use this to run 5.0.4 as per Daniel Jue but I cannot run 5.0.5. I have cheated(?) and installed 5.0.4 tapestry-core as 5.0.5-SNAPSHOT then if I e.g. mvn clean install -U this is the console output. It looks for the corresponding pom which it doesn't find. Otherwise, without

Re: T5 - Service injection and ioc

2007-05-31 Thread Joshua Jackson
On 6/1/07, vidrilon [EMAIL PROTECTED] wrote: Did i understood well?? Could you make it work? I'm also having the same problem, i have created another module, UserAuthenticatorModule for validating a login form, but have the same message: No service implements the interface

T5: File input component

2007-05-31 Thread Joshua Jackson
Dear all, Does anybody know where is the component or what is the name for the component for file input in T5? I've been searching through under the package org.apache.tapestry.corelib.components but could not find it? Have I missed on something? Currently I'm using version 5.0.4. Perhaps it is

Re: [T5] Beginning Hibernate with a T5 application

2007-05-31 Thread Eugene Lozovan
Don't know, if it might be helpful - http://www.box.net/shared/1yxqpk0jyband http://new2java.blogspot.com/2007/05/package-orgexampletsa504servicesuseraut.html E.L. On 31/05/07, Daniel Jue [EMAIL PROTECTED] wrote: Hey there I am considering using Hibernate for part of my applications db

T5: @OnEvent value

2007-05-31 Thread Joshua Jackson
Dear all, How do I change the default event type action for @OnEvent? Let's say I have @OnEvent( value = refresh ) What do I write in the corresponding html page for value? I tried: a t:id=select t:type=actionlink *t:value=refresh*${index}/t:comp But it didn't work. Can anyone tell me how