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
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
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
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
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{
onSuccess(){
...
return login;
}
}
Register.tml (View class)
cordenier christophe wrote:
>
> When are you doing this add ?
>
> You er
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.
>>
>>
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
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
= account;
//}
...
}
Not the following ...
neo anderson wrote:
>
>
> public class User{
>
> private String account;
> public User(... String account, ...){ ... this.account = account; }
> ...
> public String getAccount(){
>
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
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
The tml is
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
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
.
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
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
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
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
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
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
>>
>>
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
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
&
In the AppModule I add the following information to bind IAccount with
AccountDAO class.
ApplicationStateCreator account =
new ApplicationStateCreator(){
public IAccount create() {
re
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
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
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
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
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.
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
.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
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
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
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
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
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
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
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
:
#
neo
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
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:
>
>
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
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
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.
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
45 matches
Mail list logo