Re: Problem using BeanEditForm with a POJO

2009-05-02 Thread mraible
I'm using Tapestry 5.0.14. You can download the project from http://static.raibledesigns.com/downloads/basic-tapestry.zip. Matt Robert Zeigler wrote: > > Hi Matt, > > Hm, that's an odd exception. > The way BeanEditForm works is to lookup an "editor block" for each > property, based on the "

Re: Problem using BeanEditForm with a POJO

2009-05-02 Thread Robert Zeigler
Hi Matt, Hm, that's an odd exception. The way BeanEditForm works is to lookup an "editor block" for each property, based on the "datatype" for that property (datatype is determined by the DataTypeAnalyzer service; lookup of the block is the job of the BeanBlockSource service). The informat

Re: Problem using BeanEditForm with a POJO

2009-05-02 Thread mraible
I was able to fix the problem by commenting out field.isRequired() in the following method: public void insideLabel(Field field, Element labelElement) { if (inError(field)) { addErrorClassToCurrentElement("error"); }/* if (field.isRequired()) {

Re: Problem using BeanEditForm with a POJO

2009-05-02 Thread mraible
I tried using your hint by changing my template to the following: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Form.focusFirstElement($(

Re: Access unique clientId in AjaxFormLoop iteration

2009-05-02 Thread Andrew Court
Anybody? What I'm looking for is the equivalent of the "index" parameter of the loop component. How can this be done with AjaxFormLoop? Andrew Andrew Court wrote: > > Each new iteration of AjaxFormLoop generated by an addRowLink event > appends a unique identifier to the clientId of elemen

Re: Problem using BeanEditForm with a POJO

2009-05-02 Thread Thiago H. de Paula Figueiredo
Em Sat, 02 May 2009 15:31:15 -0300, mraible escreveu: I have the a Person.java object that I'm trying to use the BeanEditForm component with. It has no Tapestry annotations in it. Is it possible to use the BeanEditForm component with it? Yes. By the way, I've never used any Tapestry annot

Problem using BeanEditForm with a POJO

2009-05-02 Thread mraible
I have the a Person.java object that I'm trying to use the BeanEditForm component with. It has no Tapestry annotations in it. Is it possible to use the BeanEditForm component with it? Here's the error I'm getting: Render queue error in AfterRender[PersonForm:beaneditform.editor.loop]: Failure rea

Re: Solving the T5 Documentation Dilemma

2009-05-02 Thread Piero Sartini
On Freitag, 1. Mai 2009 20:09:07 Ulrich Stärk wrote: > As I understand, CLAs only have to be signed by documentation contributors > if the exported wiki documentation is bundled with the release. If its > purely online, I don't think that this is necessary. Thanks for pointing this out. My assumpt

Re: T5: What is NOT beautiful about Tapestry?

2009-05-02 Thread Thiago H. de Paula Figueiredo
Em Fri, 01 May 2009 11:36:46 -0300, Tony Giaccone escreveu: That said, I'm not familiar at all with the changes in T5. However, the one thing that in the past has been a constant source of difficulty for everyone at my organization who's worked to learn Tapestry is the painful process of

t5: grid's pager with query string as links

2009-05-02 Thread Angelo Chen
Hi, I'm looking for a way to do following: http://localhost/search?country=US&stateNY&page=1 this will return a page containing a grid and the pager has 1, 2, 3 and every pager number will have following links: http://localhost/search?country=US&stateNY&page=1 http://localhost/search?country

Re: t5: appending a query string to a page name?

2009-05-02 Thread Joachim Van der Auwera
Try returning a URL instead of a String. The string is interpreted as page name and thus cannot include parameters. Kind regards, Joachim Angelo Chen wrote: Hi, following code redirects to a results page under mysearch: Object onSuccessFromMySearchForm() { return "mysearch/results";

Re: [integration-test apps] problems with starting them standalone

2009-05-02 Thread manuel aldana
thanks this worked. just some detailed program parameters for running with RunJetty: working-directory needs to be: /tapestry-core programm arguments (for running integration-test-application app1): app1 src/test/app1 Ulrich Stärk schrieb: IIRC there's a RunJetty class somewhere in tapestry-c

Re: t5: appending a query string to a page name?

2009-05-02 Thread Andrew Court
In order to do what you ask I believe you have to manually pull the querystring parameters out of the request: mysearch/results?country=US&state=NY @Inject private RequestGlobals requestGlobals; void onActivate() { Request req = requestGlobals.getRequest(); String country = re

Re: [integration-test apps] problems with starting them standalone

2009-05-02 Thread manuel aldana
Just in case you browse thread for same problem and wait to have it resolved: I filed a bug under http://www.jetbrains.net/jira/browse/IDEA-22800. manuel aldana schrieb: I found the cause. It seems to be an IntelliJ thing. By default itself maven2 isn't including test-classes (test pages are s

Re: [integration-test apps] problems with starting them standalone

2009-05-02 Thread manuel aldana
I found the cause. It seems to be an IntelliJ thing. By default itself maven2 isn't including test-classes (test pages are sitting inside src/test/java) when packaging so pages could not be found. Never the less it is weird that IntelliJ does not include them anyway, because the option (includ

Re: t5: appending a query string to a page name?

2009-05-02 Thread Angelo Chen
Hi, the problem is, when it is this which is very common in the query string, T5 will not accept: mysearch/results/country=US&state=NY ஸ்ரீராம் கீர்த்தி wrote: > > Angelo, > > you can make it like this... > Object onSuccessFromMySearchForm() { >return "mysearch/results/12345"; //