Re: Bean editor model for User already contains a property model for property 'account'

2009-10-02 Thread neo anderson
You are right. I think this is the scenario issue. I should use other way (e.g. intermediate bean) for gethering User information. Thanks for all your help. That helps me have better understanding on related Tapestry mechanism. I appreacite it. : ) cordenier christophe wrote: > > If your pu

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-29 Thread neo anderson
d e.g. account value using non default constructor, setter method (setAccount(String)) seemingly is unavoidable. Thanks for your help. I really appreciate it. Thiago H. de Paula Figueiredo wrote: > > Em Tue, 29 Sep 2009 18:35:39 -0300, neo anderson > escreveu: > >> I

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-29 Thread neo anderson
just to output the value > rather than render a field? > > Kalle > > On Tue, Sep 29, 2009 at 11:17 AM, neo anderson > wrote: >> >> Yes, the User bean contains property named account. But inside the bean >> it >> does not provide setter method because it i

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-29 Thread neo anderson
he help. Thiago H. de Paula Figueiredo wrote: > > Em Tue, 29 Sep 2009 15:17:39 -0300, neo anderson > escreveu: > >> Yes, the User bean contains property named account. But inside the bean >> it does not provide setter method because it is purposed to setup when

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-29 Thread neo anderson
Yes, the User bean contains property named account. But inside the bean it does not provide setter method because it is purposed to setup when the bean is created e.g. new User(id, account). The User bean looks as below: @Entity @Table(name="USERS") public class User implements Serializable{

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-29 Thread neo anderson
onSuccess(){ ... return login; } } Register.tml (View class) cordenier christophe wrote: > > When are you doing this add ? > > You er

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-28 Thread neo anderson
play for the corresponding > property in your beaneditform. > > 2009/9/28 neo anderson > >> >> It is the line where PropertyConduitSource (variable source.create() ... >> ) >> create synthetic property account as the following code. >> >>

RE: Bean editor model for User already contains a property model for property 'account'

2009-09-28 Thread neo anderson
rote: > > What corresponds to line 92 in your code ? > > -Message d'origine- > De : neo anderson [mailto:javadeveloper...@yahoo.co.uk] > Envoyé : lundi 28 septembre 2009 14:23 > À : users@tapestry.apache.org > Objet : Re: Bean editor model for User already conta

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-28 Thread neo anderson
need to provide (or anything is missing) so that it won't throw this error? Thanks for help. Thiago H. de Paula Figueiredo wrote: > > Em Wed, 23 Sep 2009 17:58:08 -0300, neo anderson > escreveu: > > >> I have an domain object named User, in which it has a field c

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-23 Thread neo anderson
= account; //} ... } Not the following ... neo anderson wrote: > > > public class User{ > > private String account; > public User(... String account, ...){ ... this.account = account; } > ... > public String getAccount(){ >

Bean editor model for User already contains a property model for property 'account'

2009-09-23 Thread neo anderson
I have an domain object named User, in which it has a field called `account'. However, the User object only provide method getAccount(), but does not provide method setAccount(String account). public class User{ private String account; public User(... String account, ...){ ... this.acco

Re: Add a column to beaneditform question

2009-09-22 Thread neo anderson
result in error: @Property(write=false) @Retain private BeanModel model; work version: @Property @Retain private BeanModel model; I sovle this problem. The problem comes from the above annotation where there is an attribute named `write' that should be removed (I thought it was removed but in

Re: Add a column to beaneditform question

2009-09-22 Thread neo anderson
The tml is

Add a column to beaneditform question

2009-09-16 Thread neo anderson
I have an user object which contains several properties, including account, name, gender and password. However, due to the object only provide getAccount() method. So when displaying using beaneditform, the web page does not show the Account column. Then I search the forum http://www.nabble.com

Re: T5: AccessController Dispatcher asm.exists() not working?

2009-09-10 Thread neo anderson
I am trying to do authorization stuff, but how to configure so that UserPermissions.class can be obtained using ApplicationStateManger.exists(UserPermissions.class) method? What I want to do is user request -> AccessController (Dispatcher) -> News (Page) User will click the url and then Acces

Re: T5: ServletRequestFilter and dependency injection

2009-09-04 Thread neo anderson
. Thanks for help. neo anderson wrote: > > > Now this method looks working (without no service implements ... error). > But the constructor arg FilterConfig is still null. Looks like the > constructor doesn't get called. > > Is there any additional setting I

Re: T5: ServletRequestFilter and dependency injection

2009-09-04 Thread neo anderson
Now this method looks working (without no service implements ... error). But the constructor arg FilterConfig is still null. Looks like the constructor doesn't get called. Is there any additional setting I need to configure so that HttpServletRequestFilter impl class can obtain the desire in

Re: T5: ServletRequestFilter and dependency injection

2009-09-03 Thread neo anderson
I follow this setting to add my own request filter. However, I notice that if I, for instance, add public MyHttpServletRequestFilter(final FilterConfig filterConfig) { this.filterConfig = filterConfig; } in the constructor, when accessing to the url e.g. http://l

TapestryFilter question

2009-09-03 Thread Neo Anderson
I try a simall test using aspectj to capture the doFilter() execution of TapestryFilter.java. The pointcut intends to caputre the doFilter method and prints out some information in the e.g. catalina.out log file. The code looks as below: public aspect Test{ pointcut intercept(): execution(* o

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
2009, 11:04 PM > Em Mon, 03 Aug 2009 19:57:12 -0300, > neo anderson > escreveu: > > > Sorry I do not understand very well. What class I need > to bind with > > RdbmsLogin? > > Shouldn't you inject LoginModule instead of RdbmsLogin? > > --Thiago H. de Pa

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread neo anderson
right way if I need to bind RdbmsLogin as well? Many thanks. Juan E. Maya wrote: > > are u binding RdbmsLogin.java too? > > On Mon, Aug 3, 2009 at 11:20 PM, Neo > Anderson wrote: >> >> Yes I do see the log (catalina.out) shows >> >>          

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
Yes I do see the log (catalina.out) shows IAccount: DEFINED IAuthService: DEFINED And what makes me confused is that the log also shows that the IAccount is created when invoking AuthService.java [DEBUG] AppModule.IAccount Creatin

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread neo anderson
hService with RdbmsLogin, the AccountDAO injected inside RdbmsLogin is still null. What additional setting I need to configure? Thanks for patiently answering my questions. I appreciate it. Thiago H. de Paula Figueiredo wrote: > > Em Mon, 03 Aug 2009 13:03:51 -0300, Neo Anderson &

Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
In the AppModule I add the following information to bind IAccount with AccountDAO class. ApplicationStateCreator account = new ApplicationStateCreator(){ public IAccount create() { re

tapestry5 hibernate using persistece.xml

2009-08-01 Thread Neo Anderson
Hi I follow the tutorial at http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate to integrate hibernate with tapestry 5. Everything seems to work fine. But I discover if I switch to use persistence.xml then the application will keep complaining hibernate.cfg.xml not found. Erro

checking userExists problem

2009-06-20 Thread Neo Anderson
I encounter a problem that I would like to check if user has alredy login or not. if a user has login, then they are allowed to add product to the shopping basket; if not, then redirect them to the login page. I use userExists property (private boolean userExists) to check whether user has alrea

Re: Display product detail information

2009-06-11 Thread neo anderson
I just found out the display can be simply solved by using output component. I took many things into account. Thanks for the advice. I appreciate it. Thiago H. de Paula Figueiredo wrote: > > Em Thu, 11 Jun 2009 16:44:09 -0300, Neo Anderson > escreveu: > >> I read the

Display product detail information

2009-06-11 Thread Neo Anderson
I read the message at http://www.mail-archive.com/users@tapestry.apache.org/msg17772.html. It seems like the beaneditform can be marked as readonly for displaying information. For instance, I have a product detail page which will show product information e.g. product image, price, etc. and I do

Re: Obtain the data inside RequestGlobals question

2009-06-09 Thread Neo Anderson
Paula Figueiredo wrote: > > Em Mon, 08 Jun 2009 19:42:14 -0300, Neo Anderson > escreveu: > >> I run the code and request.getAttribute(USER) returns null in dispatch() >> function. So I output the Request to see what happens; then notice that >> they (Request in Login.

Re: Obtain the data inside RequestGlobals question

2009-06-08 Thread Neo Anderson
a Figueiredo > Subject: Re: Obtain the data inside RequestGlobals question > To: "Tapestry users" > Date: Monday, 8 June, 2009, 9:49 PM > Em Mon, 08 Jun 2009 18:40:42 -0300, > Neo Anderson > escreveu: > > > What way is the correct method to set data in the > R

Re: Obtain the data inside RequestGlobals question

2009-06-08 Thread Neo Anderson
.internal.services.requesti...@1c5cd7 What way is the correct method to set data in the Request object in Page and retrieve it back from dispatch function? Thanks in advice, Thiago H. de Paula Figueiredo wrote: > > Em Fri, 05 Jun 2009 17:36:39 -0300, Neo Anderson > escreveu: > >&g

Re: Obtain the data inside RequestGlobals question

2009-06-05 Thread Neo Anderson
bject when obtaining from RequestGlobals in AccessController.java. --- On Fri, 5/6/09, Neo Anderson wrote: > From: Neo Anderson > Subject: Obtain the data inside RequestGlobals question > To: users@tapestry.apache.org > Date: Friday, 5 June, 2009, 8:36 PM > > I following

Obtain the data inside RequestGlobals question

2009-06-05 Thread Neo Anderson
I following the mailing list at http://markmail.org/message/t5sopnse2wgqms7u#query:accessing%20requestglobals%20inside%20dispatcher%20and%20other%20data%20support%20classes+page:1+mid:ks77ayww62mra7in+state:results, trying to obtain data from RequestGlobals. So in my e.g. Login.java contains

Re: [T5] Error obtaining ApplicationState object

2009-05-22 Thread Neo Anderson
On Fri, 22/5/09, Thiago H. de Paula Figueiredo wrote: > From: Thiago H. de Paula Figueiredo > Subject: Re: [T5] Error obtaining ApplicationState object > To: "Tapestry users" > Date: Friday, 22 May, 2009, 6:15 PM > Em Fri, 22 May 2009 13:14:24 -0300, > Neo Anderson

[T5] Error obtaining ApplicationState object

2009-05-22 Thread Neo Anderson
Hi I encounter a problem. My problem is when I use @ApplicationState (e.g. @ApplicationState private IAccount account;) to obtain a mock object, which contains user/ account information, the system will complains NullPointerException. My purpose is to create LoginForm; so when user enters id

Re: contrib:Table: using a List with Maps as dataModel

2007-12-12 Thread neo anderson
What if the source/ columns is dynamic generated? The normal source generated usually would be, for instance, 'List'. So the column name mapping to the entity attribute can be rendered automatically by 'Contrib:Table' However, if the column name and table content are generated dynamically. What

Re: For, Hidden fields, squeezers, etc! How do I use them?

2007-11-28 Thread neo anderson
I plug a @Hidden component in the html page and it exactly produce the html tag. Now how can I get hidden value in Java code. The way how I do it is html: java: public abstract String getReportPage(); This doesn't work. I use System.out.println() the value of getReportPage to the console. It

Re: Change value property in @Option

2007-11-27 Thread neo anderson
I have similar problem. Is anyone know how to solve it? Thanks in advice. Blackwings wrote: > > Hi, > > I'm looking for the way to change the how the value property of the > @Option > can be change. By default, it put an index from 0 to n. But I don't want > that. I would like to be able to

Re: Multiple Select

2007-11-27 Thread neo anderson
: # neo

Re: Multiple Select

2007-11-27 Thread neo anderson
i follow the following page - http://tapestry.apache.org/tapestry4.1/components/form/select.html. And now I can render the multi-elect item on the page with its index set to 0, 1, 2, 3 ... However I want the index value to be string. For example, I have a color list {"yellow", "green", "red"}, w

Re: How to Intergrate GWT into Tapestry pages Article by Geoff Longman

2007-11-27 Thread neo anderson
Do you use Eclipse? After searching around on the internet, I think Cypal plugins is good enough for using gwt. Then you can keep tapestry stuff as it were because Cypal plugin will copy html to the place of web context. Yet the tapestry version I use is version 4.0.2 not 5. mad wrote: > >

A newbie question with Palette

2007-11-26 Thread neo anderson
I am new to Tapestry. Currently learn how to use Palette by working with workbench example. Yet I got one question. The palette works after adapting to my project. However, I only requires multi-selection at the left hand side. I want the multi-selection at the right hand side to be a drop-down me

Re: How to Intergrate GWT into Tapestry pages Article by Geoff Longman

2007-11-25 Thread neo anderson
I follow this article - http://www.ibm.com/developerworks/opensource/library/os-eclipse-ajaxcypal/?S_TACT=105AGX52&S_CMP=cn-a-os and http://www.cleancode.com/downloads/gwt-article/ to integrate GWT with tapestry. The library I use include tapestry 4.0.2; GWT 1.4.60; Eclipse EE; Cypal Studio plug

Re: tapestry cache and naming problem

2007-11-03 Thread Neo Anderson
I found out how to solve these problems. For the first problem, that is because the password field requires one more attribute to be set in the .page configuration file. The textField needs to the property of hidden set to be true to enable the start sign on the screen.

tapestry cache and naming problem

2007-11-03 Thread Neo Anderson
I have a project which consists of web and ejb modules. The web module exploits Tapestry 4.0.2 and ejb is version 3. The EJB runs on Jboss 4.2.2. The Operating System is Gnu/ Linux with kernel 2.6.16. My first questions is, according to the document, I am able to disable tapestry cache in