Hi,
I am newly learning tapestry.
The Rendered rows vanish if I click on the columns (for sorting of
rows).here is the .page file
--
- P R O P E R T I E S
-->
Hi,
Is it possible to access/inject tapestry4 state objects in spring bean.
Actually i have a class extending AbstractRoutingDataSource to return
datasource to use dynamcially. The datasource name depends upon user
information stored in session. So how can i access tapestry state object or
https
I didn't read the entire thread, but if this particular field has no setter you can add a synthetic
property with model.add("account", null) and then provide a proper block override as
outlined in the guide under "Property Editor Overrides":
http://tapestry.apache.org/tapestry5.1/guide/beaneditf
The reason to remove the setter method (setAccount(String)) is because the
filed `account' is originally purposed to be created once only when e.g.
user registers. Therefore, the account field would not be changed/ edited
after User object created.
But it looks like BeanModel can not add e.g. ac
amazing, i did not know that we can configure manually until reading that
link:
apestry.hibernate.default-configuration
is there a short sample that how this can be be used?
Thanks,
angelo
Thiago H. de Paula Figueiredo wrote:
>
> Em Tue, 29 Sep 2009 17:00:34 -0300, Benny Law
> escreveu:
Thanks Thiago. Somehow, I missed those additional links in the left nav. Now
I have a bit more info to go on.
Benny
On Tue, Sep 29, 2009 at 4:52 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> Em Tue, 29 Sep 2009 17:00:34 -0300, Benny Law
> escreveu:
>
> Hi Thiago,
>>
>
> Hi!
Em Tue, 29 Sep 2009 18:35:39 -0300, neo anderson
escreveu:
If I tried to delete the account property first (e.g.
exclude("account"). Is
this correct?), then adding using model.add("account"). The error becomes
You should use model.add("account", somePropertyConduitInstance) in this
case
The reason why setAccount is removed is because account field is purposed to
be created only when user registers. It is not purposed to be altered once
the account is created. So the to remove setAccount(String) is to prevent
other class falsely calling setAccount(String) accidentally.
In fact,
If I tried to delete the account property first (e.g. exclude("account"). Is
this correct?), then adding using model.add("account"). The error becomes
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
Expression 'user.account' for class org.jecommerce.pages.Register is
read-on
Switching is hopefully not the issue, but if my organization uses
Guice by fiat, but wants to use a Tapestry application, a tapestry-
guice integration would be nice, since it would be major surgery (with
a low patient survival rate) to rip out t5-ioc and replace it with
Guice. :)
Christi
On 29 sep 2009, at 16.12, Thiago H. de Paula Figueiredo wrote:
One simple question related to this: if I have a service that is
used by
many components and that holds a list of component related
information,
how do I make this request related?
Your service must have the perthread scope. A
Em Tue, 29 Sep 2009 17:47:13 -0300, Timo Westkämper
escreveu:
Hi.
Hi!
I am fairly new to Tapestry 5 and I have a few questions.
* Is there a way to declare a pagename alias for the URL generation e.g.
"article" for ArticlePage class or do I need to to do URL rewriting like
described
On Tue, Sep 29, 2009 at 10:47 PM, Timo Westkämper
wrote:
>
> * What is the preferred way to do Tapestry / Guice integration. While the
> Tapestry IoC seems quite powerful, I got used to Guice and would like to
> continue using it in my Tapestry projects.
>
> I managed to wire up something like thi
Em Tue, 29 Sep 2009 17:00:34 -0300, Benny Law
escreveu:
Hi Thiago,
Hi!
Thanks for responding, but I was hoping for something a little more
detailed. I had visited this link before, but needed more details on
things such as configuration and code examples.
Configuration:
http://tapes
Hi.
I am fairly new to Tapestry 5 and I have a few questions.
* Is there a way to declare a pagename alias for the URL generation e.g.
"article" for ArticlePage class or do I need to to do URL rewriting like
described here :
http://tapestry.apache.org/tapestry5.1/guide/url-rewriting.html
I'
Em Tue, 29 Sep 2009 16:23:02 -0300, Benny Law
escreveu:
Hello,
Hi!
Can someone point me to the most up-to-date and detailed documentation on
using Hibernate with T5 (but not Spring)?
http://tapestry.apache.org/tapestry5.1/tapestry-hibernate/
--
Thiago H. de Paula Figueiredo
Independent
Hi Thiago,
Thanks for responding, but I was hoping for something a little more
detailed. I had visited this link before, but needed more details on things
such as configuration and code examples. I have an existing database, and
would like to map my models to the existing tables using annotations.
Hello,
Can someone point me to the most up-to-date and detailed documentation on
using Hibernate with T5 (but not Spring)?
Thank you,
Benny
Why do you want to include the field then? For display purposes? Why
don't you just simply:
public void setAccount(String account){
// do nothing
}
then override the property in the template just to output the value
rather than render a field?
Kalle
On Tue, Sep 29, 2
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
the bean is created e.g. new User(id, account).
Have you tried to delete the property
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{
Thanks Thiago - thanks for the pointers and the clues. I now seem to be
on the right track...
Regards
Alan Chaney
Thiago H. de Paula Figueiredo wrote:
Em Tue, 29 Sep 2009 13:46:29 -0300, Alan Chaney
escreveu:
I'm a complete newbie to T5. I need to develop my own component to go
into a pag
Em Tue, 29 Sep 2009 13:46:29 -0300, Alan Chaney
escreveu:
I'm a complete newbie to T5. I need to develop my own component to go
into a page. Could someone please direct me to an example on the web.
The component is very simple - it will just inject HTML from an external
source.
Writing c
I'm a complete newbie to T5. I need to develop my own component to go
into a page. Could someone please direct me to an example on the web.
The component is very simple - it will just inject HTML from an external
source.
Thanks
Alan Chaney
-
Thanks for the reply Thiago.
One simple question related to this: if I have a service that is used by
many components and that holds a list of component related information,
how do I make this request related? That is, if I want i.e. have a list
of all those components nested ids for a given requ
Em Tue, 29 Sep 2009 11:08:01 -0300, Andreas Pardeike
escreveu:
Thanks for the reply Thiago.
You're welcome! :)
One simple question related to this: if I have a service that is used by
many components and that holds a list of component related information,
how do I make this request relate
Em Tue, 29 Sep 2009 03:21:40 -0300, Andreas Pardeike
escreveu:
Thiago,
Hi!
I have a test version up in a project and I wonder why Tapestry
does not support this kind of loose event handling where
components register themselves for zone refreshes or method calls
that are related to events.
On 9/29/2009 5:20 AM, Alfie Kirkpatrick wrote:
I made a hashmap backed beaneditform for something similar, so the
property conduit just read/writes from the hashmap and the model comes
from somewhere else (this was a dynamic search form in my case where the
model was a JCR repo).
Happy to share
Em Tue, 29 Sep 2009 07:22:16 -0300, Gunnar Eketrapp
escreveu:
Hi!
Hi!
I.e. how do I execute this mvn task from within eclipse and is it
possible to do it automatically?
Take a look at
http://www.nabble.com/forum/ViewPost.jtp?post=25596456&framed=y&skin=302.
I describe how I use Jet
But i see in your code
Does the User bean has an account property ?
model.add() method is added after BeanModel (variable model) is created
(inside the getRegisteredModel method). The display of the bean edit form at
the beginning is ok because I can see the Register html shown navigating to
the Register html page. However, the error occurs after clicking the sub
I just use the maven archetype and directly run mvn jetty:run & mvnDebug
jetty:run.
If mvn jetty:run, all changes in page/component classes are reloaded, but not
for other classes.
If mvnDebug and in eclipse to debug it, all changes in page/component classes
and other classes are immediately re
Hi!
A newbie question!
I managed to install all of the above and can now start/debug my webapp
code.
But I still have to execute ...
mvn war:war
... to update my webapp files each time before launching a jetty run/debug
session.
How do you folks do this?
I.e. how do I execute this mvn task f
I made a hashmap backed beaneditform for something similar, so the
property conduit just read/writes from the hashmap and the model comes
from somewhere else (this was a dynamic search form in my case where the
model was a JCR repo).
Happy to share the code if it would be useful.
Regards, Alfie.
Thanks to my colleague,
I have implemented a simple and clean solution in the module class of my
component library which hold the whole configuration. Doing something like
this :
public static void contributeComponentClassResolver(
Configuration configuration,
When are you doing this add ?
You error can be due for exemple to a multiple call to add() on a persistent
variable.
2009/9/28 neo anderson
>
>
> Thanks for your reply. But when adding the method
>
>model.add("account").label("Account").sortable(false);
>
> The error occurrs after clicking
36 matches
Mail list logo