Re: T5: BeanEditForm, BeanEditor and

2011-04-09 Thread Taha Hafeez
May be I am wrong but when I needed fields without labels in BeanEditor, this is what I did I extended PropertyEditBlocks as public class PropertyEditBlocksWithoutLabel extends PropertyEditBlocks { } and the provided my own template http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Re: T5: BeanEditForm, BeanEditor and

2011-04-09 Thread Howard Lewis Ship
Sheduling questions are hard ... it's simply a matter of prioritizing the work and finding a way to do it, and maintain my income stream. Same goes for the other devs, I'm sure. On Sat, Apr 9, 2011 at 8:27 AM, Adam Zimowski wrote: > Should I then keep my pages backed by BeanEditor and BeanEditFor

Re: T5: BeanEditForm, BeanEditor and

2011-04-09 Thread Howard Lewis Ship
What Adam was getting at is not direclty overridable via block parameters; in the BeanEditor and BeanEditForm, the block parameters allow you to override the editors for specific properties, but not the surrounding content, including the Errors component (in BeanEditForm). On Sat, Apr 9, 2011 at 8

Re: T5: BeanEditForm, BeanEditor and

2011-04-09 Thread Taha Hafeez
Hi You can provide you own contributions to BeanBlockSource and override the default ones till new release. All you have to do is override the class and use you own template. Checkout http://tapestry.apache.org/beaneditform-guide.html regards t

Re: T5: BeanEditForm, BeanEditor and

2011-04-09 Thread Adam Zimowski
Should I then keep my pages backed by BeanEditor and BeanEditForm and wait for 5.3/5.4 or is this something not on the 2011 horizon? Adam On Fri, Apr 8, 2011 at 7:28 PM, Howard Lewis Ship wrote: > As we move away from the error bubbles, I think you'll see that errors > will naturally attach to t

Re: T5: BeanEditForm, BeanEditor and

2011-04-08 Thread Howard Lewis Ship
As we move away from the error bubbles, I think you'll see that errors will naturally attach to the fields, and will just display errors not associated with a specific field. On Fri, Apr 8, 2011 at 5:01 PM, Adam Zimowski wrote: > By default BeanEditForm includes . > > BeanEditor seems to expect

T5: BeanEditForm, BeanEditor and

2011-04-08 Thread Adam Zimowski
By default BeanEditForm includes . BeanEditor seems to expect that t:errors is placed outside if programmer wants it. Intuitively, I would expect a feature for both to support inline errors: with rendered next to a field and some CSS class to override. That would be nice. -

Re: t5: beaneditform and timestamp

2010-02-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Feb 2010 23:05:32 -0200, Angelo Chen wrote: Hi Thiago, Hi! changing from Timestamp to Date works, however, the default edit block for Date seems not working with time part, can't enter any time, try this: Tapestry's DateField only handles dates. Try using the Chenille Kit'

Re: t5: beaneditform and timestamp

2010-02-17 Thread Angelo Chen
Hi Thiago, changing from Timestamp to Date works, however, the default edit block for Date seems not working with time part, can't enter any time, try this: 2/19/2010 09:09:09 it does not work, any idea? Thiago H. de Paula Figueiredo wrote: > > On Wed, 17 Feb 2010 14:47:10 -0200, Stephan Windmü

Re: t5: beaneditform and timestamp

2010-02-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Feb 2010 14:47:10 -0200, Stephan Windmüller wrote: Angelo Chen wrote: Using following code to update an object: < t:beaneditform t:id="user" submitlabel="message:create-user" /> but when click 'update', got following error: Could not find a coercion from type java.util.Dat

Re: t5: beaneditform and timestamp

2010-02-17 Thread Stephan Windmüller
Angelo Chen wrote: > Using following code to update an object: > < t:beaneditform t:id="user" submitlabel="message:create-user" /> > but when click 'update', got following error: > > Could not find a coercion from type java.util.Date to type > java.sql.Timestamp. Could you post the parts

t5: beaneditform and timestamp

2010-02-17 Thread Angelo Chen
Hi, Using following code to update an object: < t:beaneditform t:id="user" submitlabel="message:create-user" /> but when click 'update', got following error: Could not find a coercion from type java.util.Date to type java.sql.Timestamp. Any idea? Thanks, -- View this message in cont

Re: [T5] BeanEditForm and Grid: how to add to (decorate) the default renderer of a field?

2009-06-16 Thread Michael Capper
Michael Capper > wrote: >> >> Hi, >> i want to decorate some fields of a BeanEditForm in use. With decorate i >> mean keep the old but wrap some html around it (e.g. a , or wrap it >> in >> a ) like >> >> >> >> >> &g

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread Robert Zeigler
context.getTranslator will look up the "default" translator for the field, based on the bound type. Ultimately, the FieldTranslatorSource service derives its translators from the TranslatorSource service; tapestry does not provide out-of- the-box support for Date or Time translators. If your a

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread bob_k
Thanks for your help so far. After placing the files in the "pages" folder I came across an exception: Parameter 'translate' of component AppPropertyEditBlocks:duration is bound to null. This parameter is not allowed to be null. [at context:AppPropertyEditBlocks.tml, line 5, column 57] public

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread Robert Zeigler
They should be in the "pages" folder; they are pages that act as "holders" for components. Robert On Feb 12, 2009, at 2/123:59 PM , bob_k wrote: The page I'm trying to use it with is called "Presentations". It's located in com.eveo.speakertraining.tapestry.webapp.pages.admin The AppPrope

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread bob_k
The page I'm trying to use it with is called "Presentations". It's located in com.eveo.speakertraining.tapestry.webapp.pages.admin The AppPropertyEditBlocks.java and AppPropertyEditBlocks.tml files are located in com.eveo.speakertraining.tapestry.webapp.components Should these files not be in

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread Robert Zeigler
As HLS said already, the exception is that it can't locate the page "AppPropertyEditBlocks". What is the name of the page on which you are putting your BeanEditForm-customizing blocks? What package is it in? Robert On Feb 12, 2009, at 2/123:32 PM , bob_k wrote: I'm running into the same

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread bob_k
I'm running into the same problem regarding customizing BeanEditForm. If someone was able to solve this problem could they post the solution? Thanks. -Bob Howard Lewis Ship wrote: > > That looks like it can't find your AppPropertyEditBlocks class. > What's the full package name? Have you v

Re: T5 BeanEditForm and selectObject component

2009-01-15 Thread kristjankelt
list="accounts" value="deposit.account" > labelField="literal:account"/> > > > > -- View this message in context: http://www.nabble.com/T5-BeanEditForm-and-selectObject-component

T5 BeanEditForm and selectObject component

2009-01-03 Thread kristjankelt
ThreadPool$PoolThread.run(BoundedThreadPool.java:450) -- View this message in context: http://www.nabble.com/T5-BeanEditForm-and-selectObject-component-tp21270740p21270740.html Sent from the Tapestry - User mailing list archive at

Re: T5: Beaneditform and Date problem

2008-10-24 Thread Andy Pahne
You can also annotate the zero argument constructor with @Inject. Thiago H. de Paula Figueiredo wrote: One solution is to remove any constructor that takes arguments. Other is to write a method like @OnEvent(component = "celebrity", value = Form.PREPARE) { yourEditedObject = new Celebri

Re: T5: Beaneditform and Date problem

2008-10-24 Thread Thiago H. de Paula Figueiredo
One solution is to remove any constructor that takes arguments. Other is to write a method like @OnEvent(component = "celebrity", value = Form.PREPARE) { yourEditedObject = new Celebrity(...); } Em Fri, 24 Oct 2008 16:32:37 -0300, James Sherwood <[EMAIL PROTECTED]> escreveu: Hello

T5: Beaneditform and Date problem

2008-10-24 Thread James Sherwood
Hello, I have an object Celebrity with the fields: private long id; private String firstName; private String lastName; private Date dateOfBirth;(java.util.Date) When I use the tag: And access the page I get the console error: No service implements the interface java.util

Re: T5: BeanEditForm and Date

2008-10-24 Thread Howard Lewis Ship
http://www.catb.org/~esr/faqs/smart-questions.html On Fri, Oct 24, 2008 at 8:02 AM, James Sherwood <[EMAIL PROTECTED]> wrote: > Hello, > > > > It seems that beaneditform does not like have a date as a field in the > object. > > > > Is there a way around this? > > > > --James > > -- Howard M. L

T5: BeanEditForm and Date

2008-10-24 Thread James Sherwood
Hello, It seems that beaneditform does not like have a date as a field in the object. Is there a way around this? --James

Re: [T5] BeanEditForm how to add to (decorate) the default renderer of a field?

2008-07-21 Thread Howard Lewis Ship
> You might be able to accomplish this using a local property override >> and a PropertyEditor component to "drag in" the default property >> editor block >> >> On Wed, Jul 16, 2008 at 4:02 AM, Michael Capper <[EMAIL PROTECTED]> >> wrote: >>> >

Re: [T5] BeanEditForm how to add to (decorate) the default renderer of a field?

2008-07-21 Thread Michael Capper
gt;> >> >> >> ... >> >> >> Consider the as a placeholder > > -- View this message in context: http://www.nabble.com/-T5--BeanEditForm-how-to-add-to-%28decorate%29-the-default-renderer-of-a-field--tp18485061p18569801.html Sent from the Tapestry

Re: [T5] BeanEditForm how to add to (decorate) the default renderer of a field?

2008-07-19 Thread Howard Lewis Ship
r whatever would render the > original data. > > How would this be done? > > The field in question is a palette magicked in by the AppPropertyEditBlocks. > > Greetings from Karlsruhe, > Mike > -- > View this message in context: > http://www.nabble.com/-T5--BeanEditFor

[T5] BeanEditForm how to add to (decorate) the default renderer of a field?

2008-07-16 Thread Michael Capper
question is a palette magicked in by the AppPropertyEditBlocks. Greetings from Karlsruhe, Mike -- View this message in context: http://www.nabble.com/-T5--BeanEditForm-how-to-add-to-%28decorate%29-the-default-renderer-of-a-field--tp18485061p18485061.html Sent from the Tapestry - User mailing

Re: [T5] BeanEditForm: Howto include complex properties?

2008-07-16 Thread Kristian Marinkovic
tian Marinkovic <[EMAIL PROTECTED]> 16.07.2008 12:44 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: [T5] BeanEditForm: Howto include complex properties? hi Andy, take a look at https://issues.apache.org/jira/browse/TAPESTRY-2460 ther

Re: [T5] BeanEditForm: Howto include complex properties?

2008-07-16 Thread Kristian Marinkovic
hi Andy, take a look at https://issues.apache.org/jira/browse/TAPESTRY-2460 there is a working example in the comments. g, kris Andy Pahne <[EMAIL PROTECTED]> 16.07.2008 12:17 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema [T5] BeanEditForm: Howto

[T5] BeanEditForm: Howto include complex properties?

2008-07-16 Thread Andy Pahne
Hi, I have a bean Customer: class Customer{ pribate Address address; // getter and setter omitted } Address is defined like that: class Address{ private String line1; private String line2; ... // getter and setter omitted } How can I make the BeanEditForm co

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Martijn Brinkers (List)
You should not do this. It's insecure. On a side note: passwords should never be stored, they should be hashed which makes it impossible to restore the password. And thus, the password field should show the passwords because you do not have the passwords :) Martijn Brinkers On Mon, 2008-07-07

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
yeah that makes sense. However, when a user wants to edit his userprofile, I want the password fields to be filled in. How would I do this using the beaneditform? Is this at all possible? Martijn Brinkers (List)-2 wrote: > > That's intentional. You do not want your password to be sent to th

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Martijn Brinkers (List)
See: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/PasswordField.html ...Further, the output value for a PasswordField is always blank. Martijn On Mon, 2008-07-07 at 15:32 -0700, Britske wrote: > partially answering my own question: it doe

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
partially answering my own question: it doens't happen when both passwordfields are changed from type: passwordField to type: textField. Perhaps this is a bug in passwordField? Kind regards, Britske Britske wrote: > > I've got a beaneditform which displays a userprofile, with among other > t

Re: T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Martijn Brinkers (List)
That's intentional. You do not want your password to be sent to the client. Martijn On Mon, 2008-07-07 at 15:27 -0700, Britske wrote: > I've got a beaneditform which displays a userprofile, with among other things > 2 passwordsfields. > When displaying an existing userprofile all fields except

T5: beaneditform: properties don't get populated although model is bound

2008-07-07 Thread Britske
I've got a beaneditform which displays a userprofile, with among other things 2 passwordsfields. When displaying an existing userprofile all fields except the password fields are rendered, (the password fields remain empty), although values for the password-fields exists in the bound userprofile.

Re: t5: BeanEditform and Timestamp

2008-07-01 Thread Howard Lewis Ship
That looks like it can't find your AppPropertyEditBlocks class. What's the full package name? Have you verified that the .class file is present where it should be? On Tue, Jul 1, 2008 at 6:43 AM, mister_bobby <[EMAIL PROTECTED]> wrote: > > I do exactly have the same problem (my data type name is

Re: t5: BeanEditform and Timestamp

2008-07-01 Thread mister_bobby
I do exactly have the same problem (my data type name is type ) : Render queue error in BeginRender[Search:beaneditform.editor.propertyeditor]: Unable to locate a block to edit property 'type' (with data type 'type') of object [EMAIL PROTECTED]: Unable to resolve 'AppPropertyEditBlocks' to a kno

T5: BeanEditForm validation for properties on objects outside tapestry

2008-04-04 Thread Bill Holloway
Like Kevin Menard who submitted JIRA 1932 on this, I'm working on data objects coming from our app's business layer. We may need to support several front end or web service technologies with our domain objects, so we don't want them to know about Tapestry. I want (badly) to be able to use BeanEdi

Re: T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-03 Thread Filip S. Adamsen
rom: "Josh Canfield" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, April 03, 2008 1:47 AM Subject: Re: T5: Beaneditform Validation differences between IE6 and firefox2.0? Hi, Why do you think there is an ajax request sent? Last I checked client side v

Re: T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-03 Thread dhning
Form component in these 3 browsers, result seems the same. Please help. Thanks! DH - Original Message - From: "Josh Canfield" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, April 03, 2008 1:47 AM Subject: Re: T5: Beaneditform Validation differen

Re: T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-02 Thread Josh Canfield
Hi, Why do you think there is an ajax request sent? Last I checked client side validation is done with javascript that is added to the page when it is rendered. I don't use the beaneditform, so I can't be sure but I doubt it's doing validation via ajax. You're catching every action from Useredito

T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-02 Thread dhning
Hi, I just begin to learn T5 and simply use component t:beaneditform to create/edit a simple entity User. But I found that the validation behavior are different in IE6 and firefox. Please help. My tapestry version is 5.0.11. My entity code: public class User implements Serializable { priv

Re: T5: beaneditform and entities with lookup

2008-03-03 Thread Marcelo Lotif
This is a very useful feature, I think many developers miss it It would be nice if Grid support it too 2008/3/2, Howard Lewis Ship <[EMAIL PROTECTED]>: > > This is not (yet) supported by BeanEditForm. I hope to add this in > the future, but that will be 5.1 not 5.0. > > > On Sat, Mar 1, 2008 at 1

Re: t5: BeanEditform and Timestamp

2008-03-02 Thread Angelo Chen
Hi Howard, Thanks, I tried to follow the "Using the BeanEditForm Component" article and come out with a basic editor, my initial plan is, just to edit it first in a textfield, following is my code based exactly on the article, but I got this error: org.apache.tapestry.internal.services.RenderQue

Re: t5: BeanEditform and Timestamp

2008-03-02 Thread Marcus
Hi Angelo, Maybe this help: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/beaneditform.html "Adding New Property Editors" Marcus

Re: T5: beaneditform and entities with lookup

2008-03-02 Thread Howard Lewis Ship
This is not (yet) supported by BeanEditForm. I hope to add this in the future, but that will be 5.1 not 5.0. On Sat, Mar 1, 2008 at 1:45 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I found beaneditform a time saver, so far I use it only on simple entities, > how to use it on entitie

t5: BeanEditForm and complex beans

2008-03-01 Thread Angelo Chen
Hi, How to use beaneditform with complex beans? it seems that beaneditform does not render those user defined classes, here is an example that I found in the list about the similar question for t4: public class Item { private ItemDetails details; } public class ItemDetails {

T5: beaneditform and entities with lookup

2008-03-01 Thread Angelo Chen
Hi, I found beaneditform a time saver, so far I use it only on simple entities, how to use it on entities that has a look up, something like following, what is a best appraoch? thanks. public class OrderLine { Long id; private Item item; @ManyToOne(fetch = FetchType.LAZY) @Joi

Re: t5: BeanEditform and Timestamp

2008-02-29 Thread Howard Lewis Ship
You'll need to supply your own data type and editor for Timestamp. A data type is a logial name for a Java type that is used to select an editor Block and output Block, used by Grid, BeanDisplay, BeanEditForm, etc. Tapestry is treating a Timestamp like a java.util.Date, because of inheritance ..

Re: t5: BeanEditForm and column label

2008-02-29 Thread Howard Lewis Ship
Ugh. That shouldn't work. That's going to screw up an validation error messages. The hard way is to override the editor for the property and just omit the Label component entirely. Seems like an @OmitLabel annotation would be useful as well, that clue Tapestry in that it should not render a Lab

Re: t5: BeanEditForm and column label

2008-02-29 Thread Angelo Chen
this works, thanks Thiago HP wrote: > > A simple workaround is to add a line like this in you app.properties: > edit-label= > > -- > Thiago > > -- View this message in context: http://www.nabble.com/t5%3A-BeanEditForm-and-column-label-tp15754436p15758922.html Sent from the Tapestry - User

Re: t5: BeanEditForm and column label

2008-02-29 Thread Thiago HP
A simple workaround is to add a line like this in you app.properties: edit-label= -- Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

t5: BeanEditForm and column label

2008-02-29 Thread Angelo Chen
Hi, Is there a way to set column label to null? if I do this, it will cause an exception: model.get("edit").label(""); -- View this message in context: http://www.nabble.com/t5%3A-BeanEditForm-and-column-label-tp15754436p15754436.html Sent from the Tapestry - User mailing list archive at Nab

t5: BeanEditform and Timestamp

2008-02-27 Thread Angelo Chen
Hi, I use BeanEditForm with an entity that has Timestamp field, it has DateField dialog in the page, how to encode the time? and when click 'update', I got this error: Failure writing parameter value of component core/PropertyEditBlocks:datefield: Could not find a coercion from type java.util.Da

Re: T5:BeanEditForm

2008-02-17 Thread Howard Lewis Ship
The bad news is: Caused by: java.lang.ClassCastException: net.agef.ccm_2.entities.FinishData at $PropertyConduit_1182855e1a8.get($PropertyConduit_1182855e1a8.java) at org.apache.tapestry.internal.services.CoercingPropertyConduitWrapper.get(CoercingPropertyConduitWrapper.java:36)

Re: T5:BeanEditForm

2008-02-17 Thread Andreas Pursian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I took the tapestry exception report ... the console stack trace look like this thx for your help! [ERROR] TaskWorkerPage Render queue error in BeginRender[core/PropertyEditBlocks:textfield]: Failure reading parameter value of component core/Pr

Re: T5:BeanEditForm

2008-02-17 Thread Howard Lewis Ship
Odd thing about that stack trace, it seems like there should be more going on. The line in question can't generate a CCE, but it calls code that can. Did you copy this off of the Tapestry exception report, or out of the console? On Feb 17, 2008 10:05 AM, Andreas Pursian <[EMAIL PROTECTED]> wrote

T5:BeanEditForm

2008-02-17 Thread Andreas Pursian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi List, i'am working on a workflow like application which provides distributed users the possibilty to work on a common piece of work (case). A case is divided in a couple of tasks which are actually simple forms a user has to deal with. To display

Re: T5: BeanEditForm not setting values for custom parameters

2008-02-10 Thread Olivier Jacquet
I'm sorry to spam. Apparently there is separate validate loop voor the custom parameters. Have a nice day, Olivier Olivier Jacquet wrote: Say that I have a bean Company.java: class Company { private String name; private String city; } a page CreateCompany.java: class CreateCompany {

T5: BeanEditForm not setting values for custom parameters

2008-02-10 Thread Olivier Jacquet
Say that I have a bean Company.java: class Company { private String name; private String city; } a page CreateCompany.java: class CreateCompany { private Company company; void onValidate() { System.out.println("name: " + company.getName() + " city: " + company.getCity()); } a te

Re: T5: BeanEditForm questions

2008-02-08 Thread Howard Lewis Ship
Please see examples: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/TextField.html On Feb 8, 2008 9:19 AM, Zheng, Xiahong <[EMAIL PROTECTED]> wrote: > I am getting the following exception when I moved the CreateAddress page > from tutorial1 to

T5: BeanEditForm questions

2008-02-08 Thread Zheng, Xiahong
I am getting the following exception when I moved the CreateAddress page from tutorial1 to my T5 project as is. Org.apache.tapestry.ioc.internal.util.TapestryException Failure reading parameters validate of component core/PropertyEditBlocks:textfield: Validator 'regexp' requires a validation cons

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-02 Thread Howard Lewis Ship
OK, I'm glad you're back in operation. On Feb 2, 2008 9:39 AM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > Ok, finally I found it: Months ago I was playing around with the Label > component. I found [1] and did a little rewrite to be able to put labels > directly in my .tml files. Now 3 months l

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-02 Thread Michael Gerzabek
Ok, finally I found it: Months ago I was playing around with the Label component. I found [1] and did a little rewrite to be able to put labels directly in my .tml files. Now 3 months later restarting the project I forgot about that. So sorry for the noise! Michael [1] http://www.nabble.com/-

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-02 Thread Michael Gerzabek
Ok. I packed the sources. But before I sent them I wanted to try it one more time on my own. I generated new .project and .classpath files with maven (2.0.8), created a new project in eclipse (3.2) imported the project built it and ... ... all the labels where there! So actually now I have wha

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-01 Thread Howard Lewis Ship
Something odd is going on, because there are specific tests for this stuff so I know it works in the code. Without seeing all the code and the full layout, there's no much more I can do. If you can provide a zipped up Maven project to demonstate the problem, I'm sure I can whip up a fix. On Feb

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-01 Thread Michael Gerzabek
Howard Lewis Ship schrieb: Havning trouble following you ... what is the name, location and contents of your .properties file? Does the expansion work or not work? No! the layout like in maven archetype (both get packaged): | +- JAVA/.../pages/prm/Contact.java +- RESOURCES/.../pages/prm/

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-01 Thread Howard Lewis Ship
Havning trouble following you ... what is the name, location and contents of your .properties file? Does the expansion work or not work? On Feb 1, 2008 11:49 AM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > I'm sorry Howard. The .properties file seems to get read. When I debug > the application

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-01 Thread Michael Gerzabek
I'm sorry Howard. The .properties file seems to get read. When I debug the application the InternalComponentResourcesImpl holds the right file in the attribute _properties. I can see all the mappings there. But the page doesn't display the content of the property if requested. Is there maybe a

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-01 Thread Howard Lewis Ship
Sorry, should be ${message:site-label}, to verify that your .properties file is in the fight place and readable. On Feb 1, 2008 2:54 AM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > > Howard, > > I have the setup that the maven archetype prepares. So the anwser is yes. > The .properties file is

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-01 Thread Michael Gerzabek
oh, and when I debug the page and check the ComponentResources the file is there! But somehow it doesn't get read in rendering the page. Michael Michael Gerzabek wrote: > > Howard, > > I have the setup that the maven archetype prepares. So the anwser is yes. > The .properties file is on the c

Re: T5: BeanEditForm doesn't pick up .properties

2008-02-01 Thread Michael Gerzabek
Howard, I have the setup that the maven archetype prepares. So the anwser is yes. The .properties file is on the classpath. I double checked and put a copy right in the package where the java sources are. I put the ${site-label} into the .tml and got: Could not convert 'site-label' into a compo

Re: T5: BeanEditForm doesn't pick up .properties

2008-01-31 Thread Massimo Lusetti
On Jan 31, 2008 12:55 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I see you point, and it just highlights the fact that .tml files are > allowed at the webapp root level which, itself, is an exception to the > rule. For components, the .tml and .properties file must be bundled > in the sam

Re: T5: BeanEditForm doesn't pick up .properties

2008-01-30 Thread Howard Lewis Ship
I see you point, and it just highlights the fact that .tml files are allowed at the webapp root level which, itself, is an exception to the rule. For components, the .tml and .properties file must be bundled in the same package folder as the .class file. For pages, and only pages, we allow the .t

Re: T5: BeanEditForm doesn't pick up .properties

2008-01-30 Thread Massimo Lusetti
On Jan 30, 2008 8:02 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Is your Contact.properties file in the correct place? It should be on > he classpath, with the .class file (not with the .tml file). Verify > this by putting ${site-label} into your template somewhere to see what > you get.

Re: T5: BeanEditForm doesn't pick up .properties

2008-01-30 Thread Howard Lewis Ship
Is your Contact.properties file in the correct place? It should be on he classpath, with the .class file (not with the .tml file). Verify this by putting ${site-label} into your template somewhere to see what you get. On Jan 29, 2008 10:54 PM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > -- Con

Re: T5 - BeanEditForm and ASO

2008-01-30 Thread Thiago HP
On 1/29/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Not required. > > However, you will generally want the property to be @Persistent if it > is not an ASO, otherwise the data provided in a form submission can be > lost during the redirect to the render of the page. I would suggest flash pe

Re: T5: BeanEditForm and accept-charset

2008-01-29 Thread Michael Gerzabek
Oh, that's easy! Thank you Harald /M Geritzer schrieb: Now I have a lot of beans and I want to make use of BeanEditForm to edit these. In the documentation I couldn't fint any hints on how to set the accept-charset attribute. Where do I have to look? had that problem too...after setting a

Re: T5: BeanEditForm and accept-charset

2008-01-29 Thread Harald Geritzer
Now I have a lot of beans and I want to make use of BeanEditForm to edit these. In the documentation I couldn't fint any hints on how to set the accept-charset attribute. Where do I have to look? had that problem too...after setting a @Meta annotation in the according page classes it worked.

T5: BeanEditForm and accept-charset

2008-01-29 Thread Michael Gerzabek
Guys, When I manually build a t:form there is the possibility to add the attribute accept-charset="ISO-8859-1". With that the user input (German special characters) will be well understood by my app. Now I have a lot of beans and I want to make use of BeanEditForm to edit these. In the docum

Re: T5: BeanEditForm doesn't pick up .properties

2008-01-29 Thread Michael Gerzabek
-- Contact.tml -- http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Person ${person.firstName} ${person.lastName} submitLabel="Änderungen speichern" reorder="title, firstName, lastName, birthDay, EMail, phone, fax, mobile, site"/> bac

Re: T5 - BeanEditForm and ASO

2008-01-29 Thread Howard Lewis Ship
Not required. However, you will generally want the property to be @Persistent if it is not an ASO, otherwise the data provided in a form submission can be lost during the redirect to the render of the page. On Jan 29, 2008 9:43 AM, Marcus <[EMAIL PROTECTED]> wrote: > Hi, > > All tests of BeanEdit

Re: T5: BeanEditForm doesn't pick up .properties

2008-01-29 Thread Howard Lewis Ship
Hard to see from this, can we see your .properties files? On Jan 29, 2008 1:59 AM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > hi guys > > I'm using T5.0.9. > > submitLabel="Änderungen speichern" reorder="title, firstName, lastName, > birthDay, EMail, phone, fax, mobile, site"/> > > I provide t

T5 - BeanEditForm and ASO

2008-01-29 Thread Marcus
Hi, All tests of BeanEditForm (in tapestry-core) are using an ASO (RegistrationData). ASO is not required for use BeanEditForm or BeanEditor, right? Using ASO is the best pratice? Thanks, Marcus

T5 BeanEditForm prints no labels was: [ T5: BeanEditForm doesn't pick up .properties]

2008-01-29 Thread Michael Gerzabek
Actually I was wrong. The property file get's read but the labels on the page are alsways empty. Any clues? Michael Michael Gerzabek schrieb: hi guys I'm using T5.0.9. submitLabel="Änderungen speichern" reorder="title, firstName, lastName, birthDay, EMail, phone, fax, mobile, site"/> I pr

T5: BeanEditForm doesn't pick up .properties

2008-01-29 Thread Michael Gerzabek
hi guys I'm using T5.0.9. submitLabel="Änderungen speichern" reorder="title, firstName, lastName, birthDay, EMail, phone, fax, mobile, site"/> I provide the BeanModel like pinpointed in [1] and [2]. I provide a .properties file where the name of the page [Contact] = name of file[Contact]. I

Re: T5: Annotations documentation [was Re: T5: beaneditform component error message]

2008-01-09 Thread Howard Lewis Ship
Those are the main ones. In addition, there are marker annotations, used as part of service injection, scattered about. These are used to differentiate which particular service to inject when multiple services implement the same service interface. On Jan 9, 2008 1:22 PM, Franz Amador <[EMAIL PROT

T5: Annotations documentation [was Re: T5: beaneditform component error message]

2008-01-09 Thread Franz Amador
[Franz Amador] By the way, is there a list of Tapestry5 annotations and what they do? I haven't seen one on the web site or the wiki. [Howard Lewis Ship] I think the JavaDoc is a perfectly good reference. Okay, but it'd still be nice to know where to look for them. I've found these: tapestry

Re: T5: beaneditform component error message

2008-01-09 Thread Howard Lewis Ship
reference. > > > - Original Message > From: Howard Lewis Ship <[EMAIL PROTECTED]> > To: Tapestry users > Sent: Tuesday, January 8, 2008 7:00:54 PM > Subject: Re: T5: beaneditform component error message > > > @Component defines a component, it does no

Re: T5: beaneditform component error message

2008-01-09 Thread Franz Amador
t of Tapestry5 annotations and what they do? I haven't seen one on the web site or the wiki. - Original Message From: Howard Lewis Ship <[EMAIL PROTECTED]> To: Tapestry users Sent: Tuesday, January 8, 2008 7:00:54 PM Subject: Re: T5: beaneditform component error message @C

Re: T5: beaneditform component error message

2008-01-08 Thread Howard Lewis Ship
@Component defines a component, it does not inject an existing component. You've ended up with two BeanEditForm components, one named "beaneditform" (from the Java code) and one anonymous (from the template). Change the to, say ... or (better, for your example), remove the beaneditform variable

T5: beaneditform component error message

2008-01-08 Thread Franz Amador
I'm getting this error in the console: [ERROR] FormPage Embedded component(s) beaneditform are defined within component class com.[...].pages.FormPage, but are not present in the component template. when I have this template: Form Form and this page class: public c

Re: T5: BeanEditForm and PasswordField

2007-12-10 Thread Filip S. Adamsen
Hi Chris, Try this: And see the section on Property Editor Overrides: http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html And the component reference for BeanEditForm: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapach

T5: BeanEditForm and PasswordField

2007-12-09 Thread Chris Campbell
I have a BeanEditForm for a UserBean that has a password field. I gather that I am supposed to be able to override the BeanEditForm input for the password so that it renders with type="password" so that the text is not visible on the screen. So I do the following: but it gets rendered as

Re: T5 - BeanEditForm server side validation question

2007-12-09 Thread Chris Campbell
Very good. For completeness for anyone else reading this, I did the following: Added to the java class @Component private BeanEditForm _form; public BeanEditForm getForm() { return _form; } and changed template to ( notice the Thanks! Filip S. Adamsen wrote: > Hi Chris, > > Simply inj

Re: T5 - BeanEditForm server side validation question

2007-12-09 Thread Filip S. Adamsen
Hi Chris, Simply inject the BeanEditForm into your page class and use that to record the errors. You'll need to give the BeanEditForm an id in your template and then use the @Component annotation to inject it. Details are here: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/

  1   2   >