On the why of Guice...
Not trying to offend anyone here, but maybe T5 already could have been
finished if instead of writing yet another IoC framework the choice was
made to adopt an elegant one.
https://www.blogger.com/comment.g?blogID=4110180&postID=563902125495823741
Bob Lee:
"If you want to
I didn't see Olof's original post, but this is what the PREPARE event is for.
Use it to set up the object that is being edited using the form context.
Also, note that there is a limitation with form validation. From the docs:
- tracker
- org.apache.tapestry.ValidationTracker
- defaultTracker
- pr
Yes, and then it is important that you implement onPassivate(Long id)
{ ... } in the EditPage
2007/10/30, Nick Westgate <[EMAIL PROTECTED]>:
> The subject for this thread was wrong.
>
> @Inject EditPage editPage;
>
> Object onActionFromEdit(Long id)
> {
> editPage.setId(id);
>
On 10/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> and lifecycle, the need for service contributions (something none of the
> other IoC containers seem to "get") ... but Guice pushes the spectrum of
Not exactly correct. They do not provide it out of the box :-( One can
do the same with
sp
The subject for this thread was wrong.
@Inject EditPage editPage;
Object onActionFromEdit(Long id)
{
editPage.setId(id);
return editPage;
}
Cheers,
Nick.
Angelo Chen wrote:
Hi,
I redirect to another page in my ActionLink using following code:
Class onActionFromEdit(Lon
The context is a list, so you pass it a list with two entries.
Cheers,
Nick.
Angelo Chen wrote:
Hi,
I need to pass two paramters as context in an ActionLink, how to do that?
thanks.
A.C.
-
To unsubscribe, e-mail: [EMAIL PR
I used Hivemind without Tapestry 4 on a handful of high volume applications
at a large bank. In fact, I came to use Tapestry after working with
Hivemind first. Its concept of distributed configuration is quite unique
and very powerful. Tapestry 5 IoC has the same.
Ben
On 10/29/07, Jan Vissers
Hi,
I redirect to another page in my ActionLink using following code:
Class onActionFromEdit(Long id)
{
return EditPage.class;
}
this works, now I'd like to pass the id as well to the EditPage so that its
OnActivate(Long id) will be called, how to do this? thanks.
A.C.
--
View th
Hi all,
I've just tried out BeanEditForm for the first time with T5 and am quite
lost. Reading the docs, it appears I'm going to have to provide a fair
number of translators for my object. That's fine, but I was hoping to do it
piecemeal. The only error I seem to get, however, is the following:
Create an interface for your page, make sure the interface is not in
the .pages. package, have the page implement the interface, do the
coversion in terms of the interface.
It's tricky class loader issues, the EditPgaeModelImpl class known to
your services layer is literally not the same class as
Hi,
I need to pass two paramters as context in an ActionLink, how to do that?
thanks.
A.C.
--
View this message in context:
http://www.nabble.com/T5%3A-ActionLink-with-two-parameter-context-tf4716023.html#a13481391
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Hello,
I'm attempting to contribute a coercion. This is the first time I've
attempted to , so I could be missing something obvious...but the error
message I receive makes me think there's something else going on.
As you can see below, I'm attempting to coerce from
com.homeed.pages.EditPageModelI
That's true.
To compare it would be interesting to find out how many projects out there
use Hivemind without Tapestry 4?
A different question. If I would chose to use Guice as IoC and T5 IoC
simply as a bridge into Guice - which part(s) of T5 as a web app framework
would I be unable to use?
-J
Nothing stops you from using T5 IoC in a non-T5 application, though.
-Filip
Jan Vissers skrev:
Exactly - and to me T5 IoC looks/is very closely related to T5 the web
application framework, whereas Guice seems more general purpose.
--
Thank you, Marcelo! I'll give it a try.
Andy
On Mon, 2007-10-29 at 10:43 -0200, Marcelo Lotif wrote:
> Hi Andy,
> I have the same problem. I solved it using a pretty simple component to
> format dates and numbers, actually a workaround...
>
> the component is here
> http://wiki.apache.org/tapes
Small update for tapestry5-fckeditor ahead,
http://code.google.com/p/tapestry5-fckeditor/downloads/list
* Now works with T5.0.6
* Added "medium" toolbar set
Have fun!
--
/Ted
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
Hello Joshua,
We've deployed tapestry on Websphere 5.1 successfully, however we had allot
of problems because of "Security ON" in WS and Javassist.
We haven't used contrib:table. It might happen that it was compiled against
Java5.
Renat
On 29/10/2007, Joshua Jackson <[EMAIL PROTECTED]> wrote:
Exactly - and to me T5 IoC looks/is very closely related to T5 the web
application framework, whereas Guice seems more general purpose.
> Credit where credit is due: I've borrowed a lot of great ideas from Guice.
> Initially, T5 IoC started as just a better HiveMind, but the influence of
> Guice
Thanks for this quick response - however the code below is already working
in my case. This simple examples shows how to let Guice and T5 work
together - I was just looking for some thoughts on whether this is
actually a good/the best idea.
> Seems like you'll need access to the Registry, or at l
According to FAQ ".value" notation is legal ?
${theWidget.tableWidth}
${theWidget.tableSize}
So..
this...
alert(${theWidget}.${theTableSize}.value);
alert(${theWidget}.${tableSize}.value);
yeilds this...
alert([EMAIL PROTECTED]/galleryWidget].2.value);
alert([EMAIL PROTECTED]/galleryWi
Credit where credit is due: I've borrowed a lot of great ideas from Guice.
Initially, T5 IoC started as just a better HiveMind, but the influence of
Guice really pushed the envelope in a number of ways. Guice, coming in new
and based on generics and annotations, had a large number of innovations.
On Mon, 29 Oct 2007 16:28:33 -0200, Jan Vissers <[EMAIL PROTECTED]>
wrote:
Partially inspired by a question/some work by Leon Pennings (on this
list), partially because of my interest in Guice -
What exactly makes you interested in Guice? As far as I know (but I
haven't taken a look in Gu
Seems like you'll need access to the Registry, or at least and ObjectLocator
to make them play together (allow Guice beans to be injected into Tapestry
services/components).
A contribution to MasterObjectProvider could do the job.
Haven't looked into it in detail.
On 10/29/07, Jan Vissers <[EMAI
Are you finished with the devsheld articles for tap 4.1?
On 10/29/07, Kolesnikov, Alexander GNI
<[EMAIL PROTECTED]> wrote:
> Sure! As soon as it is ready.
>
> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
> Sent: 29 October 2007 15:00
> To: Tapestry users
> Su
Partially inspired by a question/some work by Leon Pennings (on this
list), partially because of my interest in Guice - if been trying to
test some stuff on how best to integrate Guice and T5. Before asking
whether my approach is appropriate I would like to ask what your opinion
is on the whole
Folks,
Can someone please elaborate on this T-4.1.3 documentary...
http://tapestry.apache.org/tapestry4.1/components/general/script.html
"Components within a Script's body may access the input and output parameters
of the Script via the OGNL expression components.scriptId.symbols.name. "
Similarly, I use an @InitialValue annotation to set it to a function
call, like this:
@InitialValue("myDefault")
public abstract String getFoo();
public String getMyDefault() { return "Hello"; }
-Norman Franke
ASD, Inc.
On Oct 29, 2007, at 11:53 AM, Andreas Andreou wrote:
Well, you can ini
Well, you can initialize it to a non-null value during pageBeginRender
On 10/29/07, zaxeer <[EMAIL PROTECTED]> wrote:
>
> hi devs,
>
> I have a from which contains some fields: Whole form is reterived by a bean
> class say USERINFO if i persist this USERINFO getter setter in session,
>
> @Persist
hi devs,
I have a from which contains some fields: Whole form is reterived by a bean
class say USERINFO if i persist this USERINFO getter setter in session,
@Persist("session")
public abstract USERINFO getUSERINFO ();
public abstract void setUSERINFO (USERINFO USERINFO );
it works ok.
I'm having a very similare problem using BeanEditForm. I have a Date field in
my bean, and when there is no value in this Date field, I'm getting the very
same error. The second problem is, this error does not go awy if I reopen
the page from its starting link - the BeanEditForm is not displayed,
Sure! As soon as it is ready.
-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: 29 October 2007 15:00
To: Tapestry users
Subject: Re: T5 book: update
My personal email address is [EMAIL PROTECTED] Surely, you'd just send
me a PDF at this stage?
On 10/29/07, Ko
My personal email address is [EMAIL PROTECTED] Surely, you'd just send me a
PDF at this stage?
On 10/29/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]>
wrote:
>
> Thanks Ted! I am updating chapter 5 now, and it will have a section on
> this component.
>
> -Original Message-
> From: Ted
Hi,
oic, maybe an ajax will do? I am thinking of providing a hidden form, when
user click a link in one record, it will insert the hidden form below the
selected row for user to edit, then submit it via an ajax call and close the
form, not yet tried.
A.C.
"Olof =?UTF-8?Q?N=C3=A6ss=C3=A9n" ?=
Janko Muzykant wrote:
hi, i would like to add an additional button (something like 'cancel') to
BeanEditForm. how may i do it in the simplest way?
thanks,
jm.
If you want to customize the beanEditForm, I think that the simplest
thing to do is to use the beanEditor and use it in you custom
I'm afraid not. I ended up with enclosing all users in one big form. I
thought it wasn't worth solving when the one form approach worked just
fine in my case.
/Olof
On 29/10/2007, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi Olof,
>
> Did you find a solution to this? I have similar need as yours
Hi Olof,
Did you find a solution to this? I have similar need as yours this time.
A.C.
"Olof =?UTF-8?Q?N=C3=A6ss=C3=A9n" ?= wrote:
>
> I have a problem with using forms in components where the data model
> is passed to the components via parameter inside a T5 loop component.
> When a form is
That is nice :-). Thanks for the tips - I've just been poking around the
source.
chris
Kristian Marinkovic wrote:
it is a proxy that implements the org.hibernate.Session interface :)
Chris Lewis <[EMAIL PROTECTED]>
29.10.2007 13:37
Bitte antworten an
"Tapestry users"
An
Tapestry user
it is a proxy that implements the org.hibernate.Session interface :)
Chris Lewis <[EMAIL PROTECTED]>
29.10.2007 13:37
Bitte antworten an
"Tapestry users"
An
Tapestry users
Kopie
Thema
Re: Antwort: T5: 'wrapping' hibernate DAOs as services
Sorry, this just sounds to magical. My DAO
session is just interface,
the instance you get is a proxy,
which redirects each method call to
the instance in current thread.
Davor Hrg
On 10/29/07, Chris Lewis <[EMAIL PROTECTED]> wrote:
>
> Sorry, this just sounds to magical. My DAO explicitly takes a Session -
> org.hibernate.Session - and
I'm facing the exact same problem. I have a WEB-INF/AppName.properties
properties file that works fine, but as soon as I localise it - for
example renaming it to WEB-INF/AppName_sv.properties - it's not found
or not used and I end up with missing messages.
Is this a bug? I'm using 5.0.6 by the wa
Hi Andy,
I have the same problem. I solved it using a pretty simple component to
format dates and numbers, actually a workaround...
the component is here
http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber
and you use it inside your grid like this:
2007/10/26, Andy H
Sorry, this just sounds to magical. My DAO explicitly takes a Session -
org.hibernate.Session - and holds that reference for its entire life.
Basic code:
import org.hibernate.Session;
public class UserDAOImpl implements UserDAO {
private Session session;
public UserDAOHibernate(Ses
right! so your daos can have singleton scope although
they have a session reference!!!
you can look at the HibernateModule source. there
is a very useful comment that explains how and why
it works
g,
kris
Chris Lewis <[EMAIL PROTECTED]>
29.10.2007 13:23
Bitte antworten an
"Tapestry users"
yes, that's right,
that proxy will handle PER_THREAD scope
Hrg Davor
On 10/29/07, Chris Lewis <[EMAIL PROTECTED]> wrote:
>
> Kris,
>
> My DAOs are ignorant of Tapestry - I have no @Inject annotations in
> them. Instead they receive the Session object in the constructor, so
> technically they do
Kris,
My DAOs are ignorant of Tapestry - I have no @Inject annotations in
them. Instead they receive the Session object in the constructor, so
technically they do have state. This is why I thought I might need to
configure them as per-thread. However it sounds like you are saying that
the Ses
hi, i would like to add an additional button (something like 'cancel') to
BeanEditForm. how may i do it in the simplest way?
thanks,
jm.
--
View this message in context:
http://www.nabble.com/T5-BeanEditForm-additional-button-tf4711297.html#a13466278
Sent from the Tapestry - User mailing list
That method didn't exist until JDK 1.5, perhaps you're using an old JDK?
http://java.sun.com/javase/6/docs/api/java/lang/String.html#replace(java.lang.CharSequence,
java.lang.CharSequence)
Martin
On Mon, 29 Oct 2007 12:50:26 +0100, Joshua Jackson <[EMAIL PROTECTED]>
wrote:
Dear all,
Has
Dear all,
Has anyone successfully deployed T4 on websphere 5.1 ?
I got this exception when displaying lists of data into Table component.
java.lang.String: method
replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
not found org.apache.hivemind.ApplicationRuntimeException
Thanks Ted! I am updating chapter 5 now, and it will have a section on
this component.
-Original Message-
From: Ted Steen [mailto:[EMAIL PROTECTED]
Sent: 26 October 2007 18:33
To: Tapestry users
Subject: Re: T5 book: update
ah, i`ll have a look at that in the weekend. it is an easy thin
Hey guys.
I am using TAP-4.0.2/Tacos-4.0 for my app. This app contains a tacos:tree
within a own render 'div' element which has a fixed size and overflow scroll.
The tacos:tree is loaded delayed, that means the tree content is created after
the page has loaded via a JS function call. If the con
hi chris,
i did this too :)
it is not necessary to make your DAOs have per-thread
scope (as long as they dont have a state!... they souldn't anyway).
All you have to do is to inject the session. tapestry-hibernate
generates a session proxy object that will obtain the actual
session from a per
51 matches
Mail list logo