T5: PersistentLocale is lowercasing locales

2007-12-21 Thread Geoff Callender
Hi, Before I put this into JIRA I thought I'd check if anyone else is seeing a problem with PersistentLocale (in 5.0.6). I'm seeing it convert locales from mixed case to all lower case, which is useless for formatting. For example, if Page 1 sets the locale like this: @Inject

Re: T4: New tacos release

2007-12-21 Thread Andreas Andreou
On Dec 20, 2007 8:21 PM, Martino Piccinato <[EMAIL PROTECTED]> wrote: > Congratulation Andy, I still think tacos is a must for tapestry users > and look forward for tapestry 4.1.4/dojo 1.0 upgrade Follow this on https://issues.apache.org/jira/browse/TAPESTRY-1902 -- Andreas Andreou - [EMAIL PROT

Re: [T5] best practice to cancel edit page

2007-12-21 Thread jeffrey ai
That's great to know! Thanks for your tips, Geoff. Cheers, Jeffrey Ai Geoff Callender-2 wrote: > > Hi Jeffrey, > > What you do is change the submits and the links to look the same, > which is not quite the same as the browser-generated button, but on > the plus-side they'll look the same

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-21 Thread Geoff Callender
Hi Kristian, In Seam their "conversation" solves the problem of multiple windows or tabs in the same browser. When you say "conversation" are you addressing that too? That would be sensational, because I have no idea how they achieve it. If you are in a window and choose New Window wit

Re: [T5] best practice to cancel edit page

2007-12-21 Thread Geoff Callender
Hi Jeffrey, What you do is change the submits and the links to look the same, which is not quite the same as the browser-generated button, but on the plus-side they'll look the same in any browser. This approach is used in many commercial sites eg. banking sites. One place that describe

Re: Conditional validation in T4?

2007-12-21 Thread Andreas Andreou
looks like a bug then - you could add a JIRA On Dec 21, 2007 11:51 PM, Drew McAuliffe <[EMAIL PROTECTED]> wrote: > The problem with the identity validator is that it doesn't seem to capture > the current value of the other control, which is the essential problem I'm > having. If you have 2 control

Re: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-21 Thread Kaspar Fischer
On 21.12.2007, at 22:33, Marcus Schulte wrote: 2007/12/21, Kaspar Fischer <[EMAIL PROTECTED]>: On 20.12.2007, at 18:16, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Does this mean that Tapestry will keep in its page pool an IExternalPage page for each article I have in the DB (once this p

Re: T5: Linkage error .... violates loader constraints

2007-12-21 Thread Britske
what do you mean exactly by "trying to define a class in classloader" ? I didn't do anything special in creating these instances and just follow the normal route. The one thing that may have some, I dont'know : "dependency cycle thing" going on is: SuperPage referencing component quickNavigat

Re: Conditional validation in T4?

2007-12-21 Thread Drew McAuliffe
The problem with the identity validator is that it doesn't seem to capture the current value of the other control, which is the essential problem I'm having. If you have 2 controls, and the second one uses an identity validator to make sure it's the same as the first, if you change them both at the

Re: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-21 Thread Marcus Schulte
2007/12/21, Kaspar Fischer <[EMAIL PROTECTED]>: > > > On 20.12.2007, at 18:16, <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> wrote: > >> Does this mean that Tapestry will keep in its page pool an > >> IExternalPage page for each article I have in the DB (once > >> this page is visited)? > > > > Please

Re: Help needed with DirectLink and page parameters (Was: Contrib:Table and page parameters)

2007-12-21 Thread Kaspar Fischer
On 20.12.2007, at 18:16, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Does this mean that Tapestry will keep in its page pool an IExternalPage page for each article I have in the DB (once this page is visited)? Please refer to http://tapestry.apache.org/tapestry4.1/usersguide/state.html T

Re: T5: Linkage error .... violates loader constraints

2007-12-21 Thread Josh Canfield
That error can be caused by trying to define a class in classloader which already contains a class with the same name. I believe that Tapestry does some magic with the component base classes when it is extending them... maybe there is something causing Tapestry to try and recreate the base class tw

Re: InjectObject

2007-12-21 Thread bioye
Can you expantiate on this solution with examples? I'm accessing services in a hivemodule.xml in the tapestry-bayeux jar and my code is having trouble locating the service! RonPiterman wrote: > > Now I think both yours and mine ideas are problematic because they don't > work in a changing serv

Re: T5: Linkage error .... violates loader constraints

2007-12-21 Thread Britske
As an addition: also pointing out what type of errors are likely to cause these errors would help. I know that mixing injection with components can give loader constraints, which is why i created an interface for SuperPage. Moreover, I can mimagine that cyclic references would cause errors as w

T5: Linkage error .... violates loader constraints

2007-12-21 Thread Britske
I'm going slightly insane on this one.. that's because everything worked fine, and after some slight modifications (none that could cause such errors I believe) I can't backtrack anymore where things went wrong. The error I'm getting is this: Could not convert 'page.quickNavigation' into a co

Programmatically generating DirectLinks with updateComponents

2007-12-21 Thread Kaspar Fischer
Hi, My custom component needs to emit in its renderComponent() method several DirectLink with updateComponents information. That is, I need to output the same HTML as updateComponents="result"> generates non-programmatically, but from within renderComponent(). How can I do this? Tha

Re: [T5] best practice to cancel edit page

2007-12-21 Thread jeffrey ai
Geoff, I am not quite familiar with CSS. I think ActionLink or PageLink could only be rendered to an Anchor Link. I doubt CSS can change its look like to a button. Cheers, Jeffrey Ai Geoff Callender-2 wrote: > > Another technique is to use an ActionLink or PageLink for cancel and > refres

Re: T5: A web flow idea on T5

2007-12-21 Thread jeffrey ai
Thanks for you comments! >>in the step 3 if the specific page would to render the next link, what >>is the purpose of the WEBFLOW? The next link in that page is populated by the WEBFLOW, so it's still the WEBFLOW controlling the navigation. >>isn't the WEBFLOW'S responsibility to take care of t

Re: T5: A web flow idea on T5

2007-12-21 Thread jeffrey ai
I don't like xml configurations of web flow in Spring too. Also another beauty to make a WEBFLOW a normal T5 page is : multiple WEBFLOWs can be easily composed together to create a new WEBFLOW, just as described in the Composite pattern of GOF. Cheers, Jeffrey Ai Joshua Jackson-3 wrote: > >

Re: T5: redirect page in a Dispatcher

2007-12-21 Thread jeffrey ai
Yes, that's the one. You could use it rewrite inbound and outbound URLs. Cheers, Jeffrey Ai Angelo Chen wrote: > > Hi Jeffrey, > > do you meant the third party URLRewriter, http://tuckey.org/urlrewrite/ > this one? > > jeffrey ai wrote: >> >> Angelo, >> >> You could use URLRewriter to do

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-21 Thread dwi ardi irawan
and also overide the equals method : public boolean equals(Object object) { if (!(object instanceof Club)) { return false; } Club obj = (Club) object; return new EqualsBuilder() .append(this.idClub, obj.idClub) .append(thi

Re: Can't get Tapestry5 to work with Spring

2007-12-21 Thread Francois Armand
Howard Lewis Ship wrote: Between release 5.0.5 and 5.0.6 Tapestry switched from commons-logging to SLF4J. You want to be injecting an org.slf4j.Logger instead. Arf, too quick for me :) -- Francois Armand Etudes & Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1 5

Re: Can't get Tapestry5 to work with Spring

2007-12-21 Thread Francois Armand
[EMAIL PROTECTED] wrote: Joel, When I attempt to retrieve the 'safe' page; the original start page from the tutorial, to which I added a link to my new test page I get this error: 2007-12-21 10:36:28,362 5ERROR [httpWorkerThread-9090-1] (DefaultRequestExceptionHandler.java:50) - Processing of r

Re: Can't get Tapestry5 to work with Spring

2007-12-21 Thread Dave . Derry
Yes the field is private; with a public get and setter. I am using the org.apache.tapestry.spring.TapestrySpringFilter filter. I did simplify by making my DAO a plain POJO with no dependencies, but am now getting a dirrerent error. When trying to retrieve the start page (this app is based on your

Re: T5: Message component

2007-12-21 Thread Howard Lewis Ship
I think you are missing an @Parameter on field _class. On Dec 21, 2007 5:06 AM, Sven Homburg <[EMAIL PROTECTED]> wrote: > like this ? > > /** > * > * @author mailto:[EMAIL PROTECTED]">shomburg > * @version $Id$ > */ > public class MessageDisplay > { > /** > * message that should displ

Re: Can't get Tapestry5 to work with Spring

2007-12-21 Thread Howard Lewis Ship
Between release 5.0.5 and 5.0.6 Tapestry switched from commons-logging to SLF4J. You want to be injecting an org.slf4j.Logger instead. On Dec 21, 2007 7:44 AM, <[EMAIL PROTECTED]> wrote: > Joel, > > Simplifying is, of course, a good suggestion. So I reduced my DAO to a > plain POJO (no longer ex

Re: Conditional validation in T4?

2007-12-21 Thread Steve Shucker
http://tapestry.apache.org/tapestry4.1/usersguide/validation.html http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/validator/Identity.html Look at the match/differ validators. The cover the basic concept of a validator that acts on two components. You can probably write

RE: Can't get Tapestry5 to work with Spring

2007-12-21 Thread Dave . Derry
Joel, Simplifying is, of course, a good suggestion. So I reduced my DAO to a plain POJO (no longer extends SqlMapClientDaoSupport, or has any dependencies). Now I'm getting a different error. When I attempt to retrieve the 'safe' page; the original start page from the tutorial, to which I added a

Re: [T5] Tapestry 5 and IntelliJ IDEA

2007-12-21 Thread Paudi Moriarty
>> There is probably an easier way to do it, and it probably doesn't (or >> shouldn't) happen if you associate the file as an xml file type. I have associated *.tml with the XML file type and have the same problem. Attributes are recognised as being part of the namespace but tags aren't and produc

RE: T5: Tapestry-Test

2007-12-21 Thread Angelo Chen
Hi Joel, Thanks, your tip did the job, it works. now I'd like to ask, any advantages of using Tapestry-Test compared to, we just do the regular selenium remote control test? A.C. Joel Wiegman-2 wrote: > > Seriously? > > Google "webdefault.xml" > > Put one in your /Users/justinchua/bfe/myap

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-21 Thread Richard Kirby
If you allow for nested conversations, then the session could just be a default conversation that lasts for as long as the session. Inherently then, all subsequent conversations will be encapsulated by this default conversation at the very least - a bit like all objects in Java are java.lang.Ob

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-21 Thread dwi ardi irawan
hi it works i just changed like this :   cos in the player object contains club object (i'm using iBatis+Spring for ORM) so what i should do it's to call Player.club not Player.idClub or Player.clubName(Club Properties). Thnx guys On Dec 21, 2007 9:52 PM, dwi ardi ir

Re: T5: Palette does not retrieved the latest object from DB

2007-12-21 Thread Sven Homburg
here an other approche: @Persist("flash") private DatasourceSelectModel _datasourceSelectModel; @SetupRender public void doSetupRender() { _datasourceSelectModel = new DatasourceSelectModel(getDefaultDAO(ReportDatasource.class).findAll(), _propertyAccess, false); }

Job Opportunity for Developers, Java Web at Fredhopper

2007-12-21 Thread Vasil Kokareshkov
TOP SOFTWARE PRODUCT COMPANY OFFERS TALENTED JAVA WEB DEVELOPERS A UNIQUE OPPORTUNITY TO BUILD LARGE SCALE WEB APPLICATIONS Company: Fredhopper, Location: Amsterdam or Sofia, Position: Full-time Do you have a talent for seeing a problem and immediately contemplating the likely solution? Are y

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-21 Thread dwi ardi irawan
ir works with the that one, but i'm still curious bout how implemented it inside aq form... Hmmm I already override the equals method but still didn't work On Dec 21, 2007 4:30 AM, Sylwek <[EMAIL PROTECTED]> wrote: > > Hi, > will it be possible to use in this case BeanEditForm with compon

Re: Example code of T5?

2007-12-21 Thread Francois Armand
Yeeswara Nadapana (HCL Financial Services) wrote: Hi, Can I get any downloads of the example code on Tapestry 5? Please help me with some links For a basic tutorial, there is the official one : http://tapestry.apache.org/tapestry5/tutorial1/ After that, there in number of HowTos here

Re: Example code of T5?

2007-12-21 Thread Davor Hrg
http://files.doublenegative.com.au/jumpstart/ On Dec 21, 2007 2:15 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > http://wiki.apache.org/tapestry/Tapestry5HowTos > > On Dec 21, 2007 2:08 PM, Yeeswara Nadapana (HCL Financial Services) > > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > Can I get

Re: Example code of T5?

2007-12-21 Thread Davor Hrg
http://wiki.apache.org/tapestry/Tapestry5HowTos On Dec 21, 2007 2:08 PM, Yeeswara Nadapana (HCL Financial Services) <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Can I get any downloads of the example code on Tapestry 5? Please help > me with some links > > > > DISCLAIMER: > -

RE: T5: Tapestry-Test

2007-12-21 Thread Joel Wiegman
Seriously? Google "webdefault.xml" Put one in your /Users/justinchua/bfe/myapp/src/test/conf/ folder. :-) -Original Message- From: Angelo Chen [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 4:16 AM To: users@tapestry.apache.org Subject: T5: Tapestry-Test Hi, I am trying o

Example code of T5?

2007-12-21 Thread Yeeswara Nadapana (HCL Financial Services)
Hi, Can I get any downloads of the example code on Tapestry 5? Please help me with some links DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confid

Re: T5: Message component

2007-12-21 Thread Sven Homburg
like this ? /** * * @author mailto:[EMAIL PROTECTED]">shomburg * @version $Id$ */ public class MessageDisplay { /** * message that should displayed. */ @Parameter private String _infoMessage; /** * message that should displayed. */ @Parameter private String _err

Re: [T5] best practice to cancel edit page

2007-12-21 Thread Geoff Callender
Another technique is to use an ActionLink or PageLink for cancel and refresh functions. To make the submit button and ActionLink share the same styling use css. I think Howard recommends this approach. Cheers, Geoff On 21/12/2007, at 4:37 AM, jeffrey ai wrote: Homburg, I noticed the sa

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-21 Thread Davor Hrg
sound ok, looking forward to trying it :) Davor Hrg On Dec 21, 2007 10:25 AM, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > its getting really interesting > > Josh+Davor: your're right "flash" should as well be part of the > conversation context. > > a small summary of my implementati

Re: T5: Palette does not retrieved the latest object from DB

2007-12-21 Thread Sven Homburg
you must refill the select model on every request. i do it within the SetupRender method like this: private List _datasourceList; @Component(parameters = {"value=entity.datasource", "model=datasourceModel", "encoder=datasourceEncoder", "label=message:label.datasource"}) private Selec

RE: Order of the BeanEditForm elements

2007-12-21 Thread Yeeswara Nadapana (HCL Financial Services)
Thanks Kris, It worked... -Original Message- From: Kristian Marinkovic [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 4:24 PM To: Tapestry users Subject: Re: Order of the BeanEditForm elements have you tried the "reorder" parameter of the BeanEditForm? http://tapestry.apach

Re: Order of the BeanEditForm elements

2007-12-21 Thread Kristian Marinkovic
have you tried the "reorder" parameter of the BeanEditForm? http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentsbeaneditform g, kris "Yeeswara Nadapana (HCL Financial Services)" <[EMAIL PROTECTED]> 21.12.2007 11:47 Bitte antworten

RE: Conditional validation in T4?

2007-12-21 Thread Marcus.Schulte
You can bind your validators dynamically (validatory="ognl:conditionalValidStuff" ) and submit changes of you pre-conditions via @EventListener. Sounds a bit like overkill for simple dependencies, but can do very complex things > -Original Message- > From: Drew McAuliffe [mailto:[EMAI

Order of the BeanEditForm elements

2007-12-21 Thread Yeeswara Nadapana (HCL Financial Services)
Hi, Even the fields and their getter methods are declared in my desired order, it renders the pages with elements in alphabetical order. What can I do to keep the form elements in my desired order? Thanks, Yeeswar -Original Message- From: Yeeswara Nadapana (HCL Financial Services) Se

T5: Palette does not retrieved the latest object from DB

2007-12-21 Thread Joshua Jackson
Dear all, I have used the T5 palette component that use list of object that is retrieved from database. So the item under the 'available' is retrieved from the database. That way I expect when I move it to the 'selected' then update it to the database, it would not be available anymore under the '

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-21 Thread Kristian Marinkovic
its getting really interesting Josh+Davor: your're right "flash" should as well be part of the conversation context. a small summary of my implementation so far: if a conversation is started a ConversationContext is created and stored in a ConversationTracker and the created conversati

Re: T5: best approach in testing a service

2007-12-21 Thread Davor Hrg
then you should definitely checkout tapestry sorce and look at the tests there :) Davor Hrg On Dec 21, 2007 10:12 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Davor, > > yes, i have read the doc, i still have to try the samples. in the service > that I'd like to build and test, it is part o

T5: Tapestry-Test

2007-12-21 Thread Angelo Chen
Hi, I am trying out this Tapestry-Test, here is my simple test: public class MyTest2 extends AbstractIntegrationTestSuite { public class MyTest2 extends AbstractIntegrationTestSuite { public MyTest2() { super("src/main/webapp"); } @Test public void test() { op

Re: T5: best approach in testing a service

2007-12-21 Thread Angelo Chen
Hi Davor, yes, i have read the doc, i still have to try the samples. in the service that I'd like to build and test, it is part of a web application, in addition to hibernate, it also uses other serivices like request, ApplicationGlobals, etc, so I'd like to know how to unit test this kind of ser

Re: T5: best approach in testing a service

2007-12-21 Thread Chris Lewis
You could also consider checking out the source code (at least for tapestry-hibernate) and looking into its testing suite. If I remember correctly, it also does what you want to do, which may very well be the same as what Davor posted. sincerely, chris Davor Hrg wrote: I've recently posted t

Re: T5: best approach in testing a service

2007-12-21 Thread Davor Hrg
I've recently posted two examples off running tapestry-ioc on it's own http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate look there on how to start tapestry-ioc with only the things you need. Davor Hrg On Dec 21, 2007 8:50 AM, An