Grid cell with customized font color

2008-07-02 Thread vzhou
Hi, All, I'm using a Grid component to show an alarm table which requires display different font color based on severity level (a string parameter in data model). Any suggestions on how to customize grid cell's font color or background color? Thanks a lot, -victor -- View this message in conte

Re: AW: Fields are shared among application without using @Persist

2008-07-02 Thread Ronny L
Hi Josh, What would you suggest to avoid this kind of thing. Should I rather use a primitive properties for storing form fields. It's much easier to use object but it doesn't always work the way we want it. Thanks, Ronny joshcanfield wrote: > > The value set by the constructor, or inline, i

Re: loader constraint violation

2008-07-02 Thread Martijn Brinkers (List)
Yes that was it. Is there a list of packages that are 'special' to Tapestry. The base package was new to me. The 'Project Layout' page does not mention the special packages and I could not find a page mentioning the base package. Martijn On Wed, 2008-07-02 at 18:20 -0700, Howard Lewis Ship wrote

Re: loader constraint violation

2008-07-02 Thread Howard Lewis Ship
Everything under the .base. package is going to be loaded by the component class loader, and transformed into a component class at runtime. Only components should go there, not data objects. On Wed, Jul 2, 2008 at 4:02 PM, Martijn Brinkers (List) <[EMAIL PROTECTED]> wrote: > I get a "loader const

Re: loader constraint violation

2008-07-02 Thread Martijn Brinkers (List)
Sorry forgot to add the stacktrace Martijn java.lang.ClassLoader.defineClass1(Native Method) * java.lang.ClassLoader.defineClass(ClassLoader.java:620) * java.lang.ClassLoader.defineClass(ClassLoader.java:465) * javassist.Loader.findClass(Loader.java:379) * org.apache.tapestry5.internal.s

loader constraint violation

2008-07-02 Thread Martijn Brinkers (List)
I get a "loader constraint violation" when a page is loaded: loader constraint violation: loader (instance of org/apache/tapestry5/internal/services/ComponentInstantiatorSourceImpl $PackageAwareLoader) previously initiated loading for a different type with name "mitm/mimesecure/web/base/propertyed

Re: Google API:AuthSubRequest && Tapestry

2008-07-02 Thread Patrick Moore
you are redirecting to a page or a service. In that page or service look at the HttpResponse object On Fri, Jun 20, 2008 at 6:17 AM, IT.Adviser <[EMAIL PROTECTED]> wrote: > > I use next code: >public Object onSubmitFromTestForm() > { > String testLink; >

Re: What if "Page" was removed from page names?

2008-07-02 Thread Patrick Moore
Hi there -- Extending what Andy is talking about - the reason I like the Tacos solution is: 1. Developers can refactor without breaking bookmarks 2. Managers can let developers refactor without having to *worry* that the (junior) developers are going to break bookmarks. 3. A meaningfu

Re: [T5] About core components subclassing and methods with package visibility

2008-07-02 Thread Patrick Moore
you could always put a MyLabel subclass in the "org.apache.tapestry5.corelib.components" package and then derive from that. Java does let classes be in different source directories and still be in the same package... Its a little ugly ... but a whole lot better than the cut-and-paste that you are

Re: need advice on validation and canceling a form

2008-07-02 Thread Martijn Brinkers
Answering my own question: This seems to work Cancel The actionLink returns another page so the submit is canceled. Martijn On Wed, 2008-07-02 at 11:00 -0700, Martijn Brinkers (List) wrote: > Hi, > > I have added a cancel button to my form. When the cancel button is a > submit butt

Re: need advice on validation and canceling a form

2008-07-02 Thread Martijn Brinkers (List)
Answering my own question: This seems to work Cancel The actionLink returns another page so the submit is canceled. Martijn On Wed, 2008-07-02 at 11:00 -0700, Martijn Brinkers (List) wrote: > Hi, > > I have added a cancel button to my form. When the cancel button is a > submit butt

Re: T4.1.* - Frustration with the Tapestry Maven Example

2008-07-02 Thread Andreas Andreou
That -U flag can save a lot of time (and frustration) so we could mention it in the guide... Also, the fact that you needed to define remoteRepositories should also be mentioned (it's valid for snapshot versions of the archetype) On the other hand, if I omit it and delete the archetype artifacts f

need advice on validation and canceling a form

2008-07-02 Thread Martijn Brinkers (List)
Hi, I have added a cancel button to my form. When the cancel button is a submit button it seems that client side validation is still done because the validator cannot make a distinction between the submit and cancel button. I now have replaced the cancel button with an actionLink like mentioned he

Re: Autocompleter: value ignored when dismissing dropdown

2008-07-02 Thread Richard Hoberman
Sorry - that's 4.1.5. I've since written my own component, which has some nice extras, but the suggest would have done the trick. I'll keep it in mind. Thanks Richard Ben Dotte-2 wrote: > > Hi, > > Which version of Tapestry are you using? If you're referring to the > Autocompleter from T4

Re: Autocompleter: value ignored when dismissing dropdown

2008-07-02 Thread Ben Dotte
Hi, Which version of Tapestry are you using? If you're referring to the Autocompleter from T4.x, I've already logged some bugs about these kinds of problems, which resulted in the Suggest component getting created: http://tapestry.apache.org/tapestry4.1/components/scriptaculous/suggest.html It t

Re: T5: form zone parameter not taken into account

2008-07-02 Thread Josh Canfield
Your form is not being submitted via AJAX. You may have a javascript error that is preventing the form from being properly updated for the zone. The request object has the isXHR method which you can use to determine if it's a full or partial request. You can use this info to return something other

Re: AW: Fields are shared among application without using @Persist

2008-07-02 Thread Josh Canfield
The value set by the constructor, or inline, is used as the default value for the property. When you retrieve a page from the pool it gets all of it's default values restored. Josh On Wed, Jul 2, 2008 at 5:21 AM, Thiago H. de Paula Figueiredo < [EMAIL PROTECTED]> wrote: > Em Wed, 02 Jul 2008 09:

T4.1.* - Frustration with the Tapestry Maven Example

2008-07-02 Thread lenards
(this isn't a question - I found a solution) I have installed maven - it is functioning correctly. I have not installed or configured anything else specific to it. I am simply trying to following the Tapestry Archetype explained here: http://tapestry.apache.org/tapestry4.1/tapestry-archetype/in

may i know ajaxformloop sample and documation?

2008-07-02 Thread Tan [EMAIL PROTECTED]
Dear all, may i know ajaxformloop sample and documation? or any information? is quite new about this component. Thank you. Regards, Cyber

may i know any sample for simpletreeMenu?

2008-07-02 Thread Tan [EMAIL PROTECTED]
hi all, may i have any sample for the simpletreemenu? Thank you. Rgrds, Cyber

Re: T5 howto manually add a service module?

2008-07-02 Thread Udo Abel
Thanks. I was not precise enough: the application module DOES load when I put it in a jar with a manifest containing the Tapestry-Module-Classes key, but it does not load just by the default name derived in the way described in the documentation. But now i think that may be due to the developem

Re: T5 howto manually add a service module?

2008-07-02 Thread Howard Lewis Ship
Yes, by subclassing the TapestryFilter class; there's a method to override that allows you to have greater control over what modules are loaded. However, the easier way is to figure out why your AppModule is not being loaded; once that is loaded, you can place a @SubModule annotation on it to expr

RE: [T5] Tapestry - Hibernate w/ multiple databases

2008-07-02 Thread Russell Brown
Hmmm, create two tapestry apps that are modules/libraries rather than web apps. One for accessing DB1 with hibernate and one for accessing DB2 with hibernate (thus separate config) then create another tapestry web app that uses those to modules to display/manipulate etc the data from the database?

[T5] Tapestry - Hibernate w/ multiple databases

2008-07-02 Thread 9902468
Hi! How can one use multiple databases with hibernate integration? Is the answer use integration for the db that is largest and code by hand the rest? It should be possible IMHO. - 99 -- View this message in context: http://www.nabble.com/-T5--Tapestry---Hibernate-w--multiple-databases-tp182

[T5] Tapestry5-Acegi and Tapestry 5.0.13

2008-07-02 Thread Thiago H. de Paula Figueiredo
Are there any plans to release Tapestry5-Acegi 1.1.1 (the one with Tapestry 5.0.13 support) soon? I've checked out the sources and the code is there, but not released yet. As I'm planning to release some open-source packages until Friday, and one of them is built on Tapestry5-Acegi, I'm ver

T5 howto manually add a service module?

2008-07-02 Thread Udo Abel
Hi, I want to add some services to the T5 IoC resgistry and have read a number of pages on how to write such a service, but I havn't found instructions on how to add the module class with service definitions to the registry, besides the hint that T5 autoloads module classes found in the manifes

T5: form zone parameter not taken into account

2008-07-02 Thread Stephane Decleire
I've got a form with a zone parameter but i still get the following warning and the whole page is refreshed when i submit the form. Any idea ? [WARN] ComponentInstanceResultProcessor Component Test:accountmanagement was returned from an event handler method, but is not a page component. The pa

Re: AW: Fields are shared among application without using @Persist

2008-07-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Jul 2008 09:16:19 -0300, Ronny L <[EMAIL PROTECTED]> escreveu: @Persist private User user = new User (); @Persist private Login login = new Login(); @Persist private Info info = new Info(); Try not initializing the fields in their declaration. Use the Form component prepare events

Re: AW: Fields are shared among application without using @Persist

2008-07-02 Thread Ronny L
Hi Kristian, I think I have solve the problem. Not sure what's happening. Basically I have three properties @Persist private User user = new User (); @Persist private Login login = new Login(); @Persist private Info info = new Info(); @Component(id = "loginIdTxt", parameters = {"size=15", "max

AW: AW: Fields are shared among application without using @Persist

2008-07-02 Thread Martin Kersten
Hi Ronny, The application state is scoped to the current user/session. So for instance Bob sees another object than Alice would see. Cheers, Martin (Kersten) -Ursprüngliche Nachricht- Von: Ronny L [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. Juli 2008 11:35 An: users@tapestry

RE: T5: upgrade to T5.0.13 from T5.0.11 ClassNotFoundException for slf4j.Logger

2008-07-02 Thread Russell Brown
That is it. Thanks Ben Russell. -Original Message- From: Ben Gidley [mailto:[EMAIL PROTECTED] Sent: 02 July 2008 12:09 To: Tapestry users Subject: Re: T5: upgrade to T5.0.13 from T5.0.11 ClassNotFoundException for slf4j.Logger Russell, I think this is a Jetty issue. Try running the a

Re: Fields are shared among application without using @Persist

2008-07-02 Thread Thiago H. de Paula Figueiredo
Em Wed, 02 Jul 2008 05:58:46 -0300, Ronny L <[EMAIL PROTECTED]> escreveu: Although there's no @Persist annotation. The value always retrieved back even though I'm opening a new browser (Not another tab). AFAIK, multiple browser windows are part of the same process, so the application state f

Re: T5: upgrade to T5.0.13 from T5.0.11 ClassNotFoundException for slf4j.Logger

2008-07-02 Thread Ben Gidley
Russell, I think this is a Jetty issue. Try running the application via mvn jetty:run - if this works then the problem is Jetty is hiding SLF4J from the beanEditForm class loader. What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When

Re: T5: upgrade to T5.0.13 from T5.0.11 ClassNotFoundException for slf4j.Logger

2008-07-02 Thread Ulrich Stärk
Might this work? http://markmail.org/message/eomhqzs7ktvu7g65 Uli Russell Brown schrieb: Hi, I have just upgraded my projects dependencies under maven from T5.0.11 to T5.0.13. Everything compiled OK (after I changed all the *.tapestry.* imports to *.tapestry5.* imports and used the new refact

T5: upgrade to T5.0.13 from T5.0.11 ClassNotFoundException for slf4j.Logger

2008-07-02 Thread Russell Brown
Hi, I have just upgraded my projects dependencies under maven from T5.0.11 to T5.0.13. Everything compiled OK (after I changed all the *.tapestry.* imports to *.tapestry5.* imports and used the new refactored constants classes). However when I request a page that includes a BeanEditForm I get a la

Re: AW: Fields are shared among application without using @Persist

2008-07-02 Thread Kristian Marinkovic
then you have to put @Persist to all user spcific properties... it works. all fields will be saved/restored to/from the users own session just try this: @Persist private String data; alas, there is one usecase where such problem can still occur. that depends on how you initialize your fields. ma

Re: AW: Fields are shared among application without using @Persist

2008-07-02 Thread Ronny L
Hi Martin, Thanks for your reply. Basically I only want to keep all page properties (Forms, etc) specific to the user's session/page and not sharing the information among other user. However, adding the @Persist(client) doesn't make any different. It keeps retrieving/modifying the same properties

AW: Fields are shared among application without using @Persist

2008-07-02 Thread Martin Kersten
Hi Ronny, I didnt got it fully but take a look at @ApplicationState annotation. This is how we store LoginStatus: @ApplicationState LoginStatus loginStatus; {... loginStatus.login(user, password); loginStatus.isLoggedIn()... Etc. ...} Cheers, Martin (Kersten) -Ursprüngliche Nachricht

Fields are shared among application without using @Persist

2008-07-02 Thread Ronny L
Hi all, I'm having a trouble understanding the persistence value. Let say I have a property as follow: private String password; Although there's no @Persist annotation. The value always retrieved back even though I'm opening a new browser (Not another tab). Basically, two users that's filling

Re: [T 4.1.5] client-side validation

2008-07-02 Thread Yohan Yudanara
Hi all, I'm successfully eliminate duplicate messages in client-side validation by modifying form.js I love open source. Thanks anyway, Yohan On Wed, 2008-07-02 at 14:10 +0700, Yohan Yudanara wrote: > Hi all, > > but, there is another question: > Is it possible to distinct error message lines

Autocompleter: value ignored when dismissing dropdown

2008-07-02 Thread Richard Hoberman
Hi All Under certain conditions, the autocompleter ignores text that has been types directly into the textfield. To reproduce: 1. Give focus to the textfield portion of the autocompleter 2. Type in a valid value 3. Click the textfield portion of the autocompleter (this closes the dropdown) 4. S

T5: Working with BeanModel

2008-07-02 Thread Andy Huhn
Hello, I have a class defined (MyClass) that has a String property pstlCode, with a getter and a setter. If I use BeanModelSource to create a BeanModel for MyClass, the BeanModel has a property pstlCode that can be used to access the pstlCode. However, if I exclude the pstlCode property, and the

Re: [T 4.1.5] client-side validation

2008-07-02 Thread Yohan Yudanara
Hi all, This problem solved by adding @Shell component before @Body component but, there is another question: Is it possible to distinct error message lines in Client Side Validation message box (Same message just appear once) ? plz help Thanks in advance, Yohan On Wed, 2008-07-02 at 13:37 +0