Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
I request the /index.updatemsg and get a json data, the
onActionFromUpdateMsg() method works fine!
but i request the /index:updatemsg, it response as /index!
Is this new in t5.06?
How can i get a url like /index.updatemsg??
Thanks!

2007/10/12, lasitha <[EMAIL PROTECTED]>:
>
> AFAIK, there's nothing wrong with using a colon within the path of a URI.
> Do you know of any problems with this?  Its been working so far...
> Perhaps i'm missing the point?
>
> On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote:
> > The colon (:) "/index:updatemsg" is not a uri,
> > how could  i get a "/index.updatemsg"?
> >
> > 2007/10/12, lasitha <[EMAIL PROTECTED]>:
> > >
> > > Umm, looks fine to me...
> > >
> > > According to the createActionLink javadoc[1], it  creates "... a
> > > component action request link as a callback for this component."  So
> > > in this case, your component is the Index page, and your action is
> > > 'updateMsg'.  Tapestry uses a colon (:) to indicate an action as
> > > opposed to a nested component (designated by the period (.)).
> > >
> > > What problems are you having with the generated link?
> > >
> > > Cheers,
> > > lasitha.
> > >
> > > [1]
> > >
> http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResourcesCommon.html#createActionLink(java.lang.String,%20boolean,%20java.lang.Object...)
> > >
> > >
> > > On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote:
> > > > I use T5.06 snapshot !
> > > >
> > > > 2007/10/12, Donyee <[EMAIL PROTECTED]>:
> > > > >
> > > > >
> > > > > Here is my code:
> > > > > Index.java
> > > > > @Inject
> > > > > private ComponentResources resource;
> > > > > public String getUpdateLink() {
> > > > > Link link = resource.createActionLink("updateMsg", true);
> > > > > return link.toURI();
> > > > > }
> > > > >
> > > > > and in Index.tml:
> > > > > ${updateLink}...
> > > > >
> > > > > It displays "/index:updateMsg", it should be "/index.updateMsg"!
> > > > > Is this a bug? or I made wrong?
> > > > >
> > > > > 徐 依伟
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > 徐 依伟
> > > >
> > >
> >
> >
> >
> > --
> > 徐 依伟
> >
>



-- 
徐 依伟


Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread lasitha
AFAIK, there's nothing wrong with using a colon within the path of a URI.
Do you know of any problems with this?  Its been working so far...
Perhaps i'm missing the point?

On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote:
> The colon (:) "/index:updatemsg" is not a uri,
> how could  i get a "/index.updatemsg"?
>
> 2007/10/12, lasitha <[EMAIL PROTECTED]>:
> >
> > Umm, looks fine to me...
> >
> > According to the createActionLink javadoc[1], it  creates "... a
> > component action request link as a callback for this component."  So
> > in this case, your component is the Index page, and your action is
> > 'updateMsg'.  Tapestry uses a colon (:) to indicate an action as
> > opposed to a nested component (designated by the period (.)).
> >
> > What problems are you having with the generated link?
> >
> > Cheers,
> > lasitha.
> >
> > [1]
> > http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResourcesCommon.html#createActionLink(java.lang.String,%20boolean,%20java.lang.Object...)
> >
> >
> > On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote:
> > > I use T5.06 snapshot !
> > >
> > > 2007/10/12, Donyee <[EMAIL PROTECTED]>:
> > > >
> > > >
> > > > Here is my code:
> > > > Index.java
> > > > @Inject
> > > > private ComponentResources resource;
> > > > public String getUpdateLink() {
> > > > Link link = resource.createActionLink("updateMsg", true);
> > > > return link.toURI();
> > > > }
> > > >
> > > > and in Index.tml:
> > > > ${updateLink}...
> > > >
> > > > It displays "/index:updateMsg", it should be "/index.updateMsg"!
> > > > Is this a bug? or I made wrong?
> > > >
> > > > 徐 依伟
> > > >
> > >
> > >
> > >
> > > --
> > > 徐 依伟
> > >
> >
>
>
>
> --
> 徐 依伟
>


Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
The colon (:) "/index:updatemsg" is not a uri,
how could  i get a "/index.updatemsg"?

2007/10/12, lasitha <[EMAIL PROTECTED]>:
>
> Umm, looks fine to me...
>
> According to the createActionLink javadoc[1], it  creates "... a
> component action request link as a callback for this component."  So
> in this case, your component is the Index page, and your action is
> 'updateMsg'.  Tapestry uses a colon (:) to indicate an action as
> opposed to a nested component (designated by the period (.)).
>
> What problems are you having with the generated link?
>
> Cheers,
> lasitha.
>
> [1]
> http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResourcesCommon.html#createActionLink(java.lang.String,%20boolean,%20java.lang.Object...)
>
>
> On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote:
> > I use T5.06 snapshot !
> >
> > 2007/10/12, Donyee <[EMAIL PROTECTED]>:
> > >
> > >
> > > Here is my code:
> > > Index.java
> > > @Inject
> > > private ComponentResources resource;
> > > public String getUpdateLink() {
> > > Link link = resource.createActionLink("updateMsg", true);
> > > return link.toURI();
> > > }
> > >
> > > and in Index.tml:
> > > ${updateLink}...
> > >
> > > It displays "/index:updateMsg", it should be "/index.updateMsg"!
> > > Is this a bug? or I made wrong?
> > >
> > > 徐 依伟
> > >
> >
> >
> >
> > --
> > 徐 依伟
> >
>



-- 
徐 依伟


Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread lasitha
Umm, looks fine to me...

According to the createActionLink javadoc[1], it  creates "... a
component action request link as a callback for this component."  So
in this case, your component is the Index page, and your action is
'updateMsg'.  Tapestry uses a colon (:) to indicate an action as
opposed to a nested component (designated by the period (.)).

What problems are you having with the generated link?

Cheers,
lasitha.

[1] 
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResourcesCommon.html#createActionLink(java.lang.String,%20boolean,%20java.lang.Object...)


On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote:
> I use T5.06 snapshot !
>
> 2007/10/12, Donyee <[EMAIL PROTECTED]>:
> >
> >
> > Here is my code:
> > Index.java
> > @Inject
> > private ComponentResources resource;
> > public String getUpdateLink() {
> > Link link = resource.createActionLink("updateMsg", true);
> > return link.toURI();
> > }
> >
> > and in Index.tml:
> > ${updateLink}...
> >
> > It displays "/index:updateMsg", it should be "/index.updateMsg"!
> > Is this a bug? or I made wrong?
> >
> > 徐 依伟
> >
>
>
>
> --
> 徐 依伟
>


Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
I use T5.06 snapshot !

2007/10/12, Donyee <[EMAIL PROTECTED]>:
>
>
> Here is my code:
> Index.java
> @Inject
> private ComponentResources resource;
> public String getUpdateLink() {
> Link link = resource.createActionLink("updateMsg", true);
> return link.toURI();
> }
>
> and in Index.tml:
> ${updateLink}...
>
> It displays "/index:updateMsg", it should be "/index.updateMsg"!
> Is this a bug? or I made wrong?
>
> 徐 依伟
>



-- 
徐 依伟


[T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
Here is my code:
Index.java
@Inject
private ComponentResources resource;
public String getUpdateLink() {
Link link = resource.createActionLink("updateMsg", true);
return link.toURI();
}

and in Index.tml:
${updateLink}...

It displays "/index:updateMsg", it should be "/index.updateMsg"!
Is this a bug? or I made wrong?

徐 依伟


Re: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Nick Westgate

I'm just giving the standard response for this problem, though I don't
know if T4 has changed such that a different solution is possible.
http://thread.gmane.org/gmane.comp.java.tapestry.user/23236/focus=23293

For instance, maybe you need to use "ognl:tableSource" in your template
depending on the binding defaults for T4, since I think that can change.
I don't have a T4 project (or the time) to test this now.

Also, you mention doing arithmetic on tableSize. But it's a String right?
I don't remember OGNL automatically doing string to numeric conversion
(please correct me if I'm wrong) but in that case you'll need another
getter, say int getTableSizeInt() that converts to an int and then use
tableSizeInt in your arithmetic.

You've posted so much stuff now that I don't have time to read it all.

Cheers,
Nick.


Ken nashua wrote:

Thanks Nick and for the observations I will take notice.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: User validation

2007-10-11 Thread lasitha
Hello Michael, you may find this thread useful:
http://www.nabble.com/-T5--Restricting-Page-Access-tf4325658.html

tapestry5-acegi uses a combination of annotations and contributions to
the RequestHandler pipeline[1].  You may actually only need the
latter.

Cheers,
lasitha.

[1] http://tapestry.apache.org/tapestry5/tapestry-core/guide/request.html

On 10/12/07, mnguyen21 <[EMAIL PROTECTED]> wrote:
>
> Looking at it Acegi seems a little overkill for what I want to do I think.  I
> just want a hook into the request pipeline that allows me to check a user's
> session validity. From what I can tell from Acegi, there are a lot of other
> concerns and packages that it worries about.  Our authentication system
> exists elsewhere so all this is doing is checking that the current session
> is recognized by that other system.  We are porting over from a homegrown
> framework into T5.  We have a mechanism currently that suits our needs but
> just want to have the ability to have this check on pages we specify using
> an annotation or something.  I found off the website a page on Service
> builders.  In particular the Pipelining service builder seems like what I
> want.  What I don't understand I guess is what is a service?  Can I add a
> service builder that all page requests call implicitly?  It seems from the
> examples a bulider is tied to one particular service or filter.
>
> Steven,
>
>   Can you elaborate on your solution?  Did you use an in-memory map of the
> user ids and roles?  If not, what did you do?  I'm having trouble
> understanding the necessary parts in getting Acegi to work properly.
>
> Thanks,
> Michael
>
>
>
> Steven Woolley-2 wrote:
> >
> > I am using acegi in T5, without a database, so no, you don't need to
> > configure it with a DB.  There's a tutorial on a wiki somewhere, if you
> > google it, which was enough to get me (also a total novice) started...
> > Steve
> >
> > On 10/10/07, Nguyen, Michael <[EMAIL PROTECTED]> wrote:
> >>
> >> Robin,
> >>The documentation is scarce for this project. Does it have all the
> >> functionality its counterpart  in Spring have?  I can't tell from the
> >> website.  Does Acegi have to be configured with a database?  I know this
> >> is an odd request, but due to how our framework is setup, user
> >> information is stored in another service.  Our application has no direct
> >> access to a database.  The access to the databases we have access to is
> >> read-only.
> >>
> >> Thanks,
> >> Michael
> >>
> >>
> >>
> >>
> >> -Original Message-
> >> From: Robin Helgelin [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, October 10, 2007 12:38 PM
> >> To: Tapestry users
> >> Subject: Re: T5: User validation
> >>
> >> On 10/10/07, mnguyen21 <[EMAIL PROTECTED]> wrote:
> >> >
> >> > Short of adding a filter in the web.xml, is there a way in tapestry 5
> >> > to selectively have certain pages validate user sessions?  I'm trying
> >> > to unobtrusively have pages redirect the user to log in before they
> >> > view the page if their session timed out.  Currently, I would need
> >> > this functionality for the majority of my pages.  There are a few
> >> > pages that do not require authentication.
> >>
> >> You can always check the Acegi-integration,
> >> .
> >>
> >> --
> >> regards,
> >> Robin
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-User-validation-tf4602871.html#a13166564
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: the relation of pojo

2007-10-11 Thread MavenMan


I have find the docmentent about hibernate .
but I still think you are a impatient guy .



lasitha wrote:
> 
> MavenMan,
> 
> Please do your own homework - most folks here will gladly give of
> their time to help, but we do ask that you _at least_ go over the
> basic documentation first :).  Moreover, your question is really not
> relevant to T5.
> 
> Hibernate/JPA Annotations documentation can be found here:
> http://hibernate.org/5.html#A7
> 
> It assumes a working knowledge of hibernate:
> http://hibernate.org/5.html#A3
> 
> Cheers, lasitha.
> 
> On 10/12/07, MavenMan <[EMAIL PROTECTED]> wrote:
>>
>> but how to  specify the relation of the pojo using  relationships ?
>> can you give me examples of one to many and one to one ?
>> thank you !
>>
>>
>> Angelo Chen wrote:
>> >
>> > you can specify the relationships in the pojp's annotation
>> >
>> > MavenMan wrote:
>> >>
>> >> you know that there is no need to have a hibernate map file(.hbm.xml)
>> in
>> >> project.
>> >>
>> >> but how to represent the relation of the pojo ?
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T5%3A-the-relation-of--pojo-tf4606036.html#a13167277
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-the-relation-of--pojo-tf4606036.html#a13168555
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: the relation of pojo

2007-10-11 Thread lasitha
MavenMan,

Please do your own homework - most folks here will gladly give of
their time to help, but we do ask that you _at least_ go over the
basic documentation first :).  Moreover, your question is really not
relevant to T5.

Hibernate/JPA Annotations documentation can be found here:
http://hibernate.org/5.html#A7

It assumes a working knowledge of hibernate:
http://hibernate.org/5.html#A3

Cheers, lasitha.

On 10/12/07, MavenMan <[EMAIL PROTECTED]> wrote:
>
> but how to  specify the relation of the pojo using  relationships ?
> can you give me examples of one to many and one to one ?
> thank you !
>
>
> Angelo Chen wrote:
> >
> > you can specify the relationships in the pojp's annotation
> >
> > MavenMan wrote:
> >>
> >> you know that there is no need to have a hibernate map file(.hbm.xml) in
> >> project.
> >>
> >> but how to represent the relation of the pojo ?
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-the-relation-of--pojo-tf4606036.html#a13167277
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use ioc of t5 ?

2007-10-11 Thread MavenMan

I just code:

binder.bind(CompanyDAO.class,CompanyDaoImpl.class); 

@Inject
private CompanyDAO dao

then call dao.method ,but 

org.apache.tapestry.internal.services.TransformationException: Error
obtaining injected value for field com.myspacce.pages.Start.dao: No service
implements the interface com.myspacce.pages.CompanyDAO. 

I think the reason is whether to add annotation to  CompanyDaoImpl or
CompanyDAO ?

Best Regards !

Josh Canfield-2 wrote:
> 
>>
>>@Inject
>>@Service("CompanyDAO")
>>private CompanyDAO dao;
>>
> 
> 
> This should just be:
> @Inject
> private CompanyDAO dao;
> 
> Josh
> 
> On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>>
>>
>> now I want to know how to inject service to page class .
>> after I add this in AppModule :
>> binder.bind(CompanyDAO.class,CompanyDaoImpl.class)
>> and add
>>@Inject
>>@Service("CompanyDAO")
>>private CompanyDAO dao;
>>
>> in page class.
>>
>> but it seem to be wrong !
>>
>> can you help me ?
>> thanks
>>
>>
>>
>>
>>
>> kristian.marinkovic wrote:
>> >
>> > do you have the hibernate libraries in your classpath?
>> >
>> >
>> >
>> >
>> > lasitha <[EMAIL PROTECTED]>
>> > 11.10.2007 09:14
>> > Bitte antworten an
>> > "Tapestry users" 
>> >
>> >
>> > An
>> > "Tapestry users" 
>> > Kopie
>> >
>> > Thema
>> > Re: how to use ioc of t5 ?
>> >
>> >
>> >
>> >
>> >
>> >
>> > In my setup i've got all my hibernated classes in the 'entities'
>> > package - which is automatically picked up tapestry-hibernate - so
>> > i've not had to make a contribution like this.  I'm afraid i don't
>> > have time to play with it right now either..., sorry.
>> >
>> > As an experiment, you might try moving (some of) your hibernated
>> > classes from 'domain' into 'entities' and commenting out the
>> > contribution code, just so we know whether your exception is related
>> > to contributing a package or something else.
>> >
>> > Also, is there more to that exception stack?  It doesn't seem to
>> > mention a cause...
>> >
>> > Lastly, i have a vague recollection of a past thread in this list
>> > about contributing packages to tapestry-hibernate... did you happen to
>> > run across anything in the archives?
>> >
>> > Cheers,
>> > lasitha.
>> >
>> >
>> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>> >>
>> >> thanks.
>> >>
>> >> I hava add this to AppModule:
>> >>
>> >>  public static void
>> >> contributeHibernateSessionSource(Configuration
>> > configuration)
>> >> {
>> >> configuration.add("com.myspacce.domain");
>> >> }
>> >>
>> >> Company.java is in  com/myspacce/domain:
>> >>
>> >> import javax.persistence.*;
>> >> @Entity
>> >> @Table(name="company")
>> >> public class Company {
>> >> @Id
>> >> @GeneratedValue
>> >>
>> >> private int id;
>> >> private String name;
>> >>
>> >> public Company()
>> >> {
>> >> }
>> >> public int getId()
>> >> {
>> >> return id;
>> >> }
>> >> public void setId(int id)
>> >> {
>> >> this.id=id;
>> >> }
>> >> public String getName()
>> >> {
>> >> return name;
>> >> }
>> >> public void setName(String name)
>> >> {
>> >> this.name=name;
>> >> }
>> >>
>> >> I have the tapestry-hibernate module in my classpath.
>> >>
>> >> error is :
>> >>
>> >> Error invoking service builder method
>> >>
>> > org.apache.tapestry.hibernate.HibernateModule.build
>> (HibernateSessionSource,
>> >> ThreadCleanupHub) (at HibernateModule.java:62) (for service
>> >> 'HibernateSessionManager'): Exception constructing service
>> >> 'HibernateSessionSource': Error invoking constructor
>> >> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl(Log,
>> >> Collection, ClassNameLocator) (at HibernateSessionSourceImpl.java:35)
>> > (for
>> >> service 'HibernateSessionSource'):
>> >> org/hibernate/cfg/annotations/ResultsetMappingSecondPass
>> >>
>> >>
>> >> thanks
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> lasitha wrote:
>> >> >
>> >> > It looks like you don't have the tapestry-hibernate module in your
>> >> > classpath.
>> >> >
>> >> > There are a couple of starters you should checkout:
>> >> > http://tapestry.apache.org/tapestry5/tapestry-hibernate/
>> >> > http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate
>> >> >
>> >> > And don't forget to search the mailing list archives:
>> >> > http://wiki.apache.org/tapestry/Tapestry5HowToSearchTheMailingLists
>> >> >
>> >> > Let us know if those don't help,
>> >> > Cheers, lasitha.
>> >> >
>> >> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> hello all :
>> >> >>
>> >> >>  I write a page class :
>> >> >>
>> >> >> package com.myspacce.pages;
>> >> >> import java.util.*;
>> >> >> import org.apache.tapestry.annotations.*;
>> >> >> import org.hibernate.*;
>> >> >> public class S

Re: T5: the relation of pojo

2007-10-11 Thread MavenMan

but how to  specify the relation of the pojo using  relationships ?
can you give me examples of one to many and one to one ?
thank you !


Angelo Chen wrote:
> 
> you can specify the relationships in the pojp's annotation
> 
> MavenMan wrote:
>> 
>> you know that there is no need to have a hibernate map file(.hbm.xml) in
>> project.
>> 
>> but how to represent the relation of the pojo ? 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-the-relation-of--pojo-tf4606036.html#a13167277
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: How to set persisted variable to null

2007-10-11 Thread Josh Canfield
>
> if I have an attribute, I should use a setter to assign it? like this:
>
Hmm... looking at javassist, it looks like there is the ability to modify
field level access within a method. Perhaps, if changing to the setter
worked then this should be filed as a defect, if it isn't already.

Josh


On 10/11/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> You are correct. this does bring up a question:
>
> if I have an attribute, I should use a setter to assign it? like this:
>
> private String id;
>
> void onActivate() {
>
>   id = "myid";  // wrong
>   setId("myid"); // correct ?
>
> if (id == "myid");  // wrong
> if (getId() == "myid"); // correct?
>
> }
>
> ?
>
>
>
>
> Josh Canfield-2 wrote:
> >
> >>
> >> even i set uid to null, it is still not null next time when the page is
> >> activated, why? what's the correct way of setting a persisted variable
> >> null?
> >>
> >
> > I would guess that the right way to do it would be to use the setter
> > method
> > for the attribute. I haven't looked, but I would guess that Tapestry is
> > catching assignments to that attribute via the setter, and when you set
> it
> > directly you are bypassing that code.
> >
> > Josh
> >
> >
> > On 10/11/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi,
> >>
> >> I have this class:
> >> public class Confirmation {
> >>
> >>@Persist
> >>private String uid;
> >>
> >>public Class onActivate(String id) {
> >>if (uid == null) {
> >>uid = id;
> >>}
> >>return null;
> >> }
> >>
> >>public String onPassivate()  { return uid;}
> >>
> >>String onActionFromAutoLogin() {
> >>uid = null;
> >>return "MyPage";
> >>}
> >> }
> >>
> >> even i set uid to null, it is still not null next time when the page is
> >> activated, why? what's the correct way of setting a persisted variable
> >> null?
> >> Thanks.
> >> A.C.
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/T5%3A-How-to-set-persisted-variable-to-null-tf4605726.html#a13151324
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > --
> > TheDailyTube.com. Sign up and get the best new videos on the internet
> > delivered fresh to your inbox.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/T5%3A-How-to-set-persisted-variable-to-null-tf4605726.html#a13166676
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


Re: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Josh Canfield
> How do you integrate tapestry source step/debugging into eclipse?


You tell eclipse where the source to the jar is by attaching it in the build
properties dialog under libraries. You shoudl then be able to pull up any of
the tapestry classes in eclipse and see the source.

When I set a breakpoint on a source module, nothing happens. I am launching
> jetty under eclipse's external tools dialog.
>
Are you starting jetty with debug options turned on? Are you connecting to
it from the eclipse debugger?

It may be easier to grab the jetty plugin for eclipse and debug it that way.

There are lots of resources on the web for getting debugging in eclipse this
set up, although the first time around it's going to be a pain but in the
long run it will make you a more productive java developer.

Josh

On 10/11/07, Ken nashua <[EMAIL PROTECTED]> wrote:
>
>
> Josh,
>
> I checked out 4.1.3 and built/deployed/installed it to my local repo.
> Then I re-generated all the eclipse projects for this 4.1.3 tapestry and
> imported them into my workspace.
>
>
> How do you integrate tapestry source step/debugging into eclipse?
>
> When I set a breakpoint on a source module, nothing happens. I am
> launching jetty under eclipse's external tools dialog.
>
> I am finding alot of things that do not work surrounding the
> propertyselect including the invocation of listener methods with the "do"
> prefix.
>
> persistent properties, parameters... not fun stuff.
>
> I can go it alone in the debugger and provide feedback on this release.
>
> Thanks for any tips... BTW: irc is banned where I work
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
> Date: Thu, 11 Oct 2007 14:05:55 -0400
>
>
>
>
>
>
>
>
> Attempts to model the solution below using @Persist in the JAVA defaulting
> to session never worked.
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
> Date: Thu, 11 Oct 2007 12:40:18 -0400
>
>
>
>
>
>
>
>
> Well I finally got something to stick...
>
>
>
>
> I eliminated all references from Home.html since these parameters are self
> contained inside Gallery widget... why pollute the upper level container
> component and violate separation of concerns anyway.
>
> But this solution is flakey. I change the selection and the PropertySelect
> updates whacky... sometimes it changes other times it doesn't then other
> times it never changes.
>
> I am using a @Block to model the thing... and using multiple instances of
> that block
>
> 
> 
> 
>
> autoPagingContent is the guy...
>
> I am going to set the ID's on the following explicitly...
>
> 
>
>
>
>
> 
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
> Date: Thu, 11 Oct 2007 12:15:11 -0400
>
>
>
>
>
>
>
>
>
>
> An exception has occurred.
>
>
> You may continue by restarting the session.
>
>
>
>
>
>[ +/- ] Exception:
> A binding for parameter 'value' of component
> Home/galleryWidget.tableSizeSelect in the template for
> Home/galleryWidget conflicts with an existing binding in the
> specification.
>
>org.apache.hivemind.ApplicationRuntimeException
>
>
>
>A
> binding for parameter 'value' of component
> Home/galleryWidget.tableSizeSelect in the template for
> Home/galleryWidget conflicts with an existing binding in the
> specification.
>
>
>
>component:
>
> [EMAIL PROTECTED]/galleryWidget.tableSizeSelect]
>
>
>location:
>classpath:/org/trails/demo/components/Gallery.html,
> line 8
> 3   
> 4   
> 5   
> 6   
> 7   
> 8value="ognl:tableSize" onchange="tapestry.form.refresh(this.form)"/>
> 9value="Paging Span"/>
> 10   value="ognl:pagingSpan" onchange="tapestry.form.refresh(this.form)"/>
> 11  
> 12  
> 13  listener="listener:onBegin" style="fontSize:15px;">  jwcid="@Insert" value="<<"/> 
>
>
>
>
>
>
>
>Stack Trace:
>
>
>
>
>
> org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.validate(
> ComponentTemplateLoaderLogic.java:380)
> org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addBinding(
> ComponentTemplateLoaderLogic.java:320)
>
> org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addTemplateBindings
> (ComponentTemplateLoaderLogic.java:285)
> org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(
> ComponentTemplateLoaderLogic.java:182)
> org.apache.tapestry.serv

Re: T5: How to set persisted variable to null

2007-10-11 Thread Angelo Chen

Hi,

You are correct. this does bring up a question:

if I have an attribute, I should use a setter to assign it? like this:

private String id;

void onActivate() {

   id = "myid";  // wrong
   setId("myid"); // correct ?

  if (id == "myid");  // wrong
  if (getId() == "myid"); // correct?

}

?




Josh Canfield-2 wrote:
> 
>>
>> even i set uid to null, it is still not null next time when the page is
>> activated, why? what's the correct way of setting a persisted variable
>> null?
>>
> 
> I would guess that the right way to do it would be to use the setter
> method
> for the attribute. I haven't looked, but I would guess that Tapestry is
> catching assignments to that attribute via the setter, and when you set it
> directly you are bypassing that code.
> 
> Josh
> 
> 
> On 10/11/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> I have this class:
>> public class Confirmation {
>>
>>@Persist
>>private String uid;
>>
>>public Class onActivate(String id) {
>>if (uid == null) {
>>uid = id;
>>}
>>return null;
>> }
>>
>>public String onPassivate()  { return uid;}
>>
>>String onActionFromAutoLogin() {
>>uid = null;
>>return "MyPage";
>>}
>> }
>>
>> even i set uid to null, it is still not null next time when the page is
>> activated, why? what's the correct way of setting a persisted variable
>> null?
>> Thanks.
>> A.C.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T5%3A-How-to-set-persisted-variable-to-null-tf4605726.html#a13151324
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet
> delivered fresh to your inbox.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-set-persisted-variable-to-null-tf4605726.html#a13166676
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: User validation

2007-10-11 Thread mnguyen21

Looking at it Acegi seems a little overkill for what I want to do I think.  I
just want a hook into the request pipeline that allows me to check a user's
session validity. From what I can tell from Acegi, there are a lot of other
concerns and packages that it worries about.  Our authentication system
exists elsewhere so all this is doing is checking that the current session
is recognized by that other system.  We are porting over from a homegrown
framework into T5.  We have a mechanism currently that suits our needs but
just want to have the ability to have this check on pages we specify using
an annotation or something.  I found off the website a page on Service
builders.  In particular the Pipelining service builder seems like what I
want.  What I don't understand I guess is what is a service?  Can I add a
service builder that all page requests call implicitly?  It seems from the
examples a bulider is tied to one particular service or filter.

Steven,

  Can you elaborate on your solution?  Did you use an in-memory map of the
user ids and roles?  If not, what did you do?  I'm having trouble
understanding the necessary parts in getting Acegi to work properly.

Thanks,
Michael



Steven Woolley-2 wrote:
> 
> I am using acegi in T5, without a database, so no, you don't need to
> configure it with a DB.  There's a tutorial on a wiki somewhere, if you
> google it, which was enough to get me (also a total novice) started...
> Steve
> 
> On 10/10/07, Nguyen, Michael <[EMAIL PROTECTED]> wrote:
>>
>> Robin,
>>The documentation is scarce for this project. Does it have all the
>> functionality its counterpart  in Spring have?  I can't tell from the
>> website.  Does Acegi have to be configured with a database?  I know this
>> is an odd request, but due to how our framework is setup, user
>> information is stored in another service.  Our application has no direct
>> access to a database.  The access to the databases we have access to is
>> read-only.
>>
>> Thanks,
>> Michael
>>
>>
>>
>>
>> -Original Message-
>> From: Robin Helgelin [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, October 10, 2007 12:38 PM
>> To: Tapestry users
>> Subject: Re: T5: User validation
>>
>> On 10/10/07, mnguyen21 <[EMAIL PROTECTED]> wrote:
>> >
>> > Short of adding a filter in the web.xml, is there a way in tapestry 5
>> > to selectively have certain pages validate user sessions?  I'm trying
>> > to unobtrusively have pages redirect the user to log in before they
>> > view the page if their session timed out.  Currently, I would need
>> > this functionality for the majority of my pages.  There are a few
>> > pages that do not require authentication.
>>
>> You can always check the Acegi-integration,
>> .
>>
>> --
>> regards,
>> Robin
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-User-validation-tf4602871.html#a13166564
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua

Josh,

I checked out 4.1.3 and built/deployed/installed it to my local repo.
Then I re-generated all the eclipse projects for this 4.1.3 tapestry and 
imported them into my workspace. 


How do you integrate tapestry source step/debugging into eclipse?

When I set a breakpoint on a source module, nothing happens. I am launching 
jetty under eclipse's external tools dialog.

I am finding alot of things that do not work surrounding the propertyselect 
including the invocation of listener methods with the "do" prefix.

persistent properties, parameters... not fun stuff.

I can go it alone in the debugger and provide feedback on this release.

Thanks for any tips... BTW: irc is banned where I work

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 14:05:55 -0400








Attempts to model the solution below using @Persist in the JAVA defaulting to 
session never worked. 

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:40:18 -0400








Well I finally got something to stick...




I eliminated all references from Home.html since these parameters are self 
contained inside Gallery widget... why pollute the upper level container 
component and violate separation of concerns anyway.

But this solution is flakey. I change the selection and the PropertySelect 
updates whacky... sometimes it changes other times it doesn't then other times 
it never changes.

I am using a @Block to model the thing... and using multiple instances of that 
block





autoPagingContent is the guy...

I am going to set the ID's on the following explicitly...








Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:15:11 -0400










An exception has occurred.


You may continue by restarting the session.





[ +/- ] Exception:
A binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification. 

org.apache.hivemind.ApplicationRuntimeException



A
binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification.



component:
[EMAIL PROTECTED]/galleryWidget.tableSizeSelect]


location:
classpath:/org/trails/demo/components/Gallery.html, 
line 8
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13   







Stack Trace:





org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.validate(ComponentTemplateLoaderLogic.java:380)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addBinding(ComponentTemplateLoaderLogic.java:320)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addTemplateBindings(ComponentTemplateLoaderLogic.java:285)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:182)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
$ComponentTemplateLoader_1158fd8227e.loadTemplate($ComponentTemplateLoader_1158fd8227e.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92)
org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122)
$Gallery_17.finishLoad($Gallery_17.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408)
org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:504)
$IPageLoader_1158fd82272.createImplicitComponent($IPageLoader_1158fd82272.java)
$IPageLoader_1158fd82273.createImplicitComponent($IPageLoader_1158fd82273.java)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.

Re: Google Alert - "Tapestry 5"

2007-10-11 Thread Robert Zeigler

Looks like they're doing the Atlassian thing...

http://www.zeroturnaround.com/blog/javarebel-for-open-source- 
development/


Robert

On Oct 11, 2007, at 10/111:55 PM , andyhot wrote:


Oh, that... well, i guess I wouldn't need more than a single seat ;)

And who knows, perhaps there'll be an open source alternative soon  
enough!



Mark Stang wrote:

I believe it is a per seat license.

Buy a License

All orders are processed manually within 2-3 business days.  
Licenses are made available on successful receipt of payment.  
Invoice will be sent via email or faxed if requested.


Payment process is handled by moneybookers.com. If for any reason  
you cannot transfer funds via this channel, please contact  
[EMAIL PROTECTED]


The license and invoice will be emailed to the address that you  
provide at moneybookers.com


Step 1: Choose product

JavaRebel
JSPWeaver

Step 2: Choose License

Products are licensed based on the number of users/seats. Single  
seat, 10 seat and 100 seat licenses are available. For orders  
larger than 100 seats or other licensing options please contact  
[EMAIL PROTECTED]


Choose the license type that you are interested in:
Please choose product first.
1 Seat 49$
10 Seat 399$
100 Seat 2499$

JSP Weaver will be licensed to you at the following terms.
1 Seat 99$
10 Seat 799$
100 Seat 4999$

JavaRebel will be licensed to you at the following terms.
Step 3: Proceed to Checkout

You will be directed to moneybookers.com to make the purchase. On  
completion of the process you will be directed back to this site.


Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-Original Message-
From: Andreas Andreou on behalf of andyhot
Sent: Thu 10/11/2007 12:23 PM
To: Tapestry users
Subject: Re: Fwd: Google Alert - "Tapestry 5"
 Mark Stang wrote:


For JavaRebel, take a look at the licensing...


meaning ???



Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-Original Message-
From: Andreas Andreou on behalf of andyhot
Sent: Thu 10/11/2007 8:16 AM
To: Tapestry users
Subject: Re: Fwd: Google Alert - "Tapestry 5"
 Man, this JUSTS works!

Exactly what i / we need for T4.1...

Bill Holloway wrote:


Hinting at a better way to reload.

Bill H. Austin

-- Forwarded message --
From: Google Alerts <[EMAIL PROTECTED]>
Date: Oct 9, 2007 5:23 PM
Subject: Google Alert - "Tapestry 5"
To: [EMAIL PROTECTED]


Generic Class Reloading Comes To Java
Sys-Con Italia (Comunicati Stampa) - USA
... to reconstruct the object state it will only work in a  
controlled and
limited environment -- eg that of a web framework like RIFE,  
Tapestry 5

and so on. ...

See all stories on this topic:



This once a day Google Alert is brought to you by Google...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove this Google Alert:
http://www.google.com/alerts/remove? 
s=EDYhxEtf5zyu7H_MClSuSZY&hl=en


Create another Google Alert:
http://www.google.com/alerts?hl=en

Sign in to manage your alerts:
http://www.google.com/alerts/manage?hl=en

--- 
--

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







   
- 
---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: propertyselection not cached

2007-10-11 Thread Ken nashua

Thanks James,

That seems like a viable concern (parameter names versus component id's). I 
segregated them by postpending PARM to all my parameter names. No relief so 
I am kinda stuck.







My headerSelect's  component gets changed but clobbered by my 
footerSelect's  component.

And my footerSelect's  component clobbers my headerSelect's component 
when their id's are different according to the markup.

So I am wondering if it is a tapestry bug. In general I would like to find out 
how one can update an identical another component on the same page. I could 
then force this thing to behave correctly.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: propertyselection not cached
Date: Tue, 9 Oct 2007 15:48:22 -0400








Folks,

I have a propertyselection component rigged with 1,2,3,4,5...

Everytime I select from my propertyselection... the this.form.submit() listener 
gets called... but my property gets reset. Nothing sticks...

Gallery.JAVA
public IPage onFormSubmit (IRequestCycle cycle) {
IPage page = cycle.getPage();
return page;
}

Any ideas? My rendering is fine...Template follows:

Best regards
Ken in nashua













  
  
  
  
  
  
  
   
  




























Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

_
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

how to tell one component to update another

2007-10-11 Thread Ken nashua

Folks,

In T-4.1.3, is there support for components to auto update each other onChange?

text, select, radio ?

For instance, 2 select components modeled identically with @Block and rendered 
with @RenderBlock (how can one update the other onChange?)

Best regards
Ken in nashua
_
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

Re: Fwd: Google Alert - "Tapestry 5"

2007-10-11 Thread andyhot

Oh, that... well, i guess I wouldn't need more than a single seat ;)

And who knows, perhaps there'll be an open source alternative soon enough!


Mark Stang wrote:

I believe it is a per seat license.

Buy a License

All orders are processed manually within 2-3 business days. Licenses are made 
available on successful receipt of payment. Invoice will be sent via email or 
faxed if requested.

Payment process is handled by moneybookers.com. If for any reason you cannot 
transfer funds via this channel, please contact [EMAIL PROTECTED]

The license and invoice will be emailed to the address that you provide at 
moneybookers.com

Step 1: Choose product

JavaRebel
JSPWeaver

Step 2: Choose License

Products are licensed based on the number of users/seats. Single seat, 10 seat 
and 100 seat licenses are available. For orders larger than 100 seats or other 
licensing options please contact [EMAIL PROTECTED]

Choose the license type that you are interested in:
Please choose product first.
1 Seat 49$
10 Seat 399$
100 Seat 2499$

JSP Weaver will be licensed to you at the following terms.
1 Seat 99$
10 Seat 799$
100 Seat 4999$

JavaRebel will be licensed to you at the following terms.
Step 3: Proceed to Checkout

You will be directed to moneybookers.com to make the purchase. On completion of 
the process you will be directed back to this site.

Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-Original Message-
From: Andreas Andreou on behalf of andyhot
Sent: Thu 10/11/2007 12:23 PM
To: Tapestry users
Subject: Re: Fwd: Google Alert - "Tapestry 5"
 
Mark Stang wrote:
  

For JavaRebel, take a look at the licensing...
  


meaning ???

  

Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-Original Message-
From: Andreas Andreou on behalf of andyhot
Sent: Thu 10/11/2007 8:16 AM
To: Tapestry users
Subject: Re: Fwd: Google Alert - "Tapestry 5"
 
Man, this JUSTS works!


Exactly what i / we need for T4.1...

Bill Holloway wrote:
  


Hinting at a better way to reload.

Bill H. Austin

-- Forwarded message --
From: Google Alerts <[EMAIL PROTECTED]>
Date: Oct 9, 2007 5:23 PM
Subject: Google Alert - "Tapestry 5"
To: [EMAIL PROTECTED]


Generic Class Reloading Comes To Java
Sys-Con Italia (Comunicati Stampa) - USA
... to reconstruct the object state it will only work in a controlled and
limited environment -- eg that of a web framework like RIFE, Tapestry 5
and so on. ...

See all stories on this topic:


This once a day Google Alert is brought to you by Google...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove this Google Alert:
http://www.google.com/alerts/remove?s=EDYhxEtf5zyu7H_MClSuSZY&hl=en

Create another Google Alert:
http://www.google.com/alerts?hl=en

Sign in to manage your alerts:
http://www.google.com/alerts/manage?hl=en

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

  
  



  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Fwd: Google Alert - "Tapestry 5"

2007-10-11 Thread Mark Stang
I believe it is a per seat license.

Buy a License

All orders are processed manually within 2-3 business days. Licenses are made 
available on successful receipt of payment. Invoice will be sent via email or 
faxed if requested.

Payment process is handled by moneybookers.com. If for any reason you cannot 
transfer funds via this channel, please contact [EMAIL PROTECTED]

The license and invoice will be emailed to the address that you provide at 
moneybookers.com

Step 1: Choose product

JavaRebel
JSPWeaver

Step 2: Choose License

Products are licensed based on the number of users/seats. Single seat, 10 seat 
and 100 seat licenses are available. For orders larger than 100 seats or other 
licensing options please contact [EMAIL PROTECTED]

Choose the license type that you are interested in:
Please choose product first.
1 Seat 49$
10 Seat 399$
100 Seat 2499$

JSP Weaver will be licensed to you at the following terms.
1 Seat 99$
10 Seat 799$
100 Seat 4999$

JavaRebel will be licensed to you at the following terms.
Step 3: Proceed to Checkout

You will be directed to moneybookers.com to make the purchase. On completion of 
the process you will be directed back to this site.

Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-Original Message-
From: Andreas Andreou on behalf of andyhot
Sent: Thu 10/11/2007 12:23 PM
To: Tapestry users
Subject: Re: Fwd: Google Alert - "Tapestry 5"
 
Mark Stang wrote:
> For JavaRebel, take a look at the licensing...
>   
meaning ???

> Mark J. Stang
> Software Engineer
> office: +1 303.468.2900
> Ping Identity
>
>
>
> -Original Message-
> From: Andreas Andreou on behalf of andyhot
> Sent: Thu 10/11/2007 8:16 AM
> To: Tapestry users
> Subject: Re: Fwd: Google Alert - "Tapestry 5"
>  
> Man, this JUSTS works!
>
> Exactly what i / we need for T4.1...
>
> Bill Holloway wrote:
>   
>> Hinting at a better way to reload.
>>
>> Bill H. Austin
>>
>> -- Forwarded message --
>> From: Google Alerts <[EMAIL PROTECTED]>
>> Date: Oct 9, 2007 5:23 PM
>> Subject: Google Alert - "Tapestry 5"
>> To: [EMAIL PROTECTED]
>>
>>
>> Generic Class Reloading Comes To Java
>> Sys-Con Italia (Comunicati Stampa) - USA
>> ... to reconstruct the object state it will only work in a controlled and
>> limited environment -- eg that of a web framework like RIFE, Tapestry 5
>> and so on. ...
>> 
>> See all stories on this topic:
>> 
>>
>> This once a day Google Alert is brought to you by Google...
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> Remove this Google Alert:
>> http://www.google.com/alerts/remove?s=EDYhxEtf5zyu7H_MClSuSZY&hl=en
>>
>> Create another Google Alert:
>> http://www.google.com/alerts?hl=en
>>
>> Sign in to manage your alerts:
>> http://www.google.com/alerts/manage?hl=en
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>   
>> 
>
>   

-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Fwd: Google Alert - "Tapestry 5"

2007-10-11 Thread andyhot

Mark Stang wrote:

For JavaRebel, take a look at the licensing...
  

meaning ???


Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-Original Message-
From: Andreas Andreou on behalf of andyhot
Sent: Thu 10/11/2007 8:16 AM
To: Tapestry users
Subject: Re: Fwd: Google Alert - "Tapestry 5"
 
Man, this JUSTS works!


Exactly what i / we need for T4.1...

Bill Holloway wrote:
  

Hinting at a better way to reload.

Bill H. Austin

-- Forwarded message --
From: Google Alerts <[EMAIL PROTECTED]>
Date: Oct 9, 2007 5:23 PM
Subject: Google Alert - "Tapestry 5"
To: [EMAIL PROTECTED]


Generic Class Reloading Comes To Java
Sys-Con Italia (Comunicati Stampa) - USA
... to reconstruct the object state it will only work in a controlled and
limited environment -- eg that of a web framework like RIFE, Tapestry 5
and so on. ...

See all stories on this topic:


This once a day Google Alert is brought to you by Google...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove this Google Alert:
http://www.google.com/alerts/remove?s=EDYhxEtf5zyu7H_MClSuSZY&hl=en

Create another Google Alert:
http://www.google.com/alerts?hl=en

Sign in to manage your alerts:
http://www.google.com/alerts/manage?hl=en

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



  


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Fwd: Google Alert - "Tapestry 5"

2007-10-11 Thread Mark Stang
For JavaRebel, take a look at the licensing...

Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-Original Message-
From: Andreas Andreou on behalf of andyhot
Sent: Thu 10/11/2007 8:16 AM
To: Tapestry users
Subject: Re: Fwd: Google Alert - "Tapestry 5"
 
Man, this JUSTS works!

Exactly what i / we need for T4.1...

Bill Holloway wrote:
> Hinting at a better way to reload.
>
> Bill H. Austin
>
> -- Forwarded message --
> From: Google Alerts <[EMAIL PROTECTED]>
> Date: Oct 9, 2007 5:23 PM
> Subject: Google Alert - "Tapestry 5"
> To: [EMAIL PROTECTED]
>
>
> Generic Class Reloading Comes To Java
> Sys-Con Italia (Comunicati Stampa) - USA
> ... to reconstruct the object state it will only work in a controlled and
> limited environment -- eg that of a web framework like RIFE, Tapestry 5
> and so on. ...
> 
> See all stories on this topic:
> 
>
> This once a day Google Alert is brought to you by Google...
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Remove this Google Alert:
> http://www.google.com/alerts/remove?s=EDYhxEtf5zyu7H_MClSuSZY&hl=en
>
> Create another Google Alert:
> http://www.google.com/alerts?hl=en
>
> Sign in to manage your alerts:
> http://www.google.com/alerts/manage?hl=en
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua

Attempts to model the solution below using @Persist in the JAVA defaulting to 
session never worked. 

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:40:18 -0400








Well I finally got something to stick...




I eliminated all references from Home.html since these parameters are self 
contained inside Gallery widget... why pollute the upper level container 
component and violate separation of concerns anyway.

But this solution is flakey. I change the selection and the PropertySelect 
updates whacky... sometimes it changes other times it doesn't then other times 
it never changes.

I am using a @Block to model the thing... and using multiple instances of that 
block





autoPagingContent is the guy...

I am going to set the ID's on the following explicitly...








Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:15:11 -0400










An exception has occurred.


You may continue by restarting the session.





[ +/- ] Exception:
A binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification. 

org.apache.hivemind.ApplicationRuntimeException



A
binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification.



component:
[EMAIL PROTECTED]/galleryWidget.tableSizeSelect]


location:
classpath:/org/trails/demo/components/Gallery.html, 
line 8
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13   







Stack Trace:





org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.validate(ComponentTemplateLoaderLogic.java:380)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addBinding(ComponentTemplateLoaderLogic.java:320)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addTemplateBindings(ComponentTemplateLoaderLogic.java:285)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:182)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
$ComponentTemplateLoader_1158fd8227e.loadTemplate($ComponentTemplateLoader_1158fd8227e.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92)
org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122)
$Gallery_17.finishLoad($Gallery_17.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408)
org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:504)
$IPageLoader_1158fd82272.createImplicitComponent($IPageLoader_1158fd82272.java)
$IPageLoader_1158fd82273.createImplicitComponent($IPageLoader_1158fd82273.java)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:203)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:158)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
$ComponentTemplateLoader_1158fd8227f.loadTemplate($ComponentTemplateLoader_1158fd8227f.java)
$ComponentTemplateLoader_1158fd8227e.loadTemplate($ComponentTemplateLoader_1158fd8227e.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92)
org.apache.tapestry.BaseComponent.finishLoad(BaseCo

Re: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Josh Canfield
Hi Ken,
Please hear this in a gentle guiding tone, but I have to agree with Nick
here. You posting every 10-20 minutes is going beyond annoying and starting
to feel like abuse. This list is not populated by a hoard of support staff
that are standing by waiting for your next communication. I assume that most
of us are at our jobs where we can't drop what we are doing to try and fix
your problem.

Have you considered seeking help on the IRC channel mentioned before?
(Search the list)

Perhaps you should grab the Tapestry source, break out your favorite
debugger and step through the code to see what's happening?

Perhaps just putting a debug breakpoint on the setter for your property
would tell you when the value is changing...

I appreciate how frustrating it is to find yourself in a situation where you
are scrambling to figure out why your code isn't working, but all of your
messages are more likely hurting your chance of getting help than helping.

Please try to restrain yourself.

Josh


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua

Attached is the markup. It indicates no collision on ID's.

The actual select ID for the header Block is taken from the JWC file.

Subsequent select ID modeled for subsequent RenderBlocks of the same Block are 
auto-generated.

So it remains a mystery as to WHY one is updating the other when both ID's are 
unique. Does anyone have a clue for this?

Ideally I would like to synchronize on the ID's all to be the same (is this 
possible) so if I change tableSize in the header Block, tableSize in the footer 
Block will auto update and vice versa.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:59:45 -0400








Here is more alarming feedback and it would be nice for some team mate to step 
up and offer some support.

One of the reasons why myu property was not updating was because I modeled my 
select components in a single block modeled by multiple renderblocks and it was 
being clobbered by a RenderBlock that uses the same Block (hence multiple 
RenderBlocks of the same Block, see Gallary.html).

Here is the Block...













Here is the RenderBlock






PROBLEM...
1. No matter what... if I change header propertySelect my property never changes
2. If I change footer propertySelect, not only does my footer propertySelect 
change but my header does as well.

#2 is desired and I would like that to happen for #1 as well.

but it seems #1 is my problem as it gets clobbered by #2 regardless.

Howard can you elaborate. I apologize for the thread, mine are notoriously 
known to be busy... but I put alot of heart and work into these. Looking 
forward to your best.

I'd like to move onto the actual auto-paging handlers/metrics

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:40:18 -0400

Well I finally got something to stick...




I eliminated all references from Home.html since these parameters are self 
contained inside Gallery widget... why pollute the upper level container 
component and violate separation of concerns anyway.

But this solution is flakey. I change the selection and the PropertySelect 
updates whacky... sometimes it changes other times it doesn't then other times 
it never changes.

I am using a @Block to model the thing... and using multiple instances of that 
block





autoPagingContent is the guy...

I am going to set the ID's on the following explicitly...








Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:15:11 -0400

An exception has occurred.You may continue by restarting the session.
[ +/- ] Exception:A binding for parameter 'value' of 
componentHome/galleryWidget.tableSizeSelect in the template 
forHome/galleryWidget conflicts with an existing binding in thespecification.   
   org.apache.hivemind.ApplicationRuntimeException  
   Abinding for 
parameter 'value' of componentHome/galleryWidget.tableSizeSelect in the 
template forHome/galleryWidget conflicts with an existing binding in 
thespecification.   
  component:  [EMAIL 
PROTECTED]/galleryWidget.tableSizeSelect]   
 location:   
classpath:/org/trails/demo/components/Gallery.html, line 8
3   4   5  6   7   8 9  
 10  
 11
12 13  
   
   Stack Trace: 
   
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.validate(ComponentTemplateLoaderLogic.java:380)org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addBinding(ComponentTemplateLoaderLogic.java:320)org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addTemplateBindings(ComponentTemplateLoaderLogic.java:285)org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:182)org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTempl

Re: T5: the relation of t5 pojo

2007-10-11 Thread Josh Canfield
Check out the hibernate forums/documentation. This mailing list is for
Tapestry questions.

http://www.hibernate.org/

Josh

On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>
>
> you know that there is no need to have a hibernate map file(.hbm.xml) in
> project.
>
> but how to represent the relation of the pojo ?
> --
> View this message in context:
> http://www.nabble.com/T5%3A-the-relation-of-t5-pojo-tf4606036.html#a13152233
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


Re: T5: How to set persisted variable to null

2007-10-11 Thread Josh Canfield
>
> even i set uid to null, it is still not null next time when the page is
> activated, why? what's the correct way of setting a persisted variable
> null?
>

I would guess that the right way to do it would be to use the setter method
for the attribute. I haven't looked, but I would guess that Tapestry is
catching assignments to that attribute via the setter, and when you set it
directly you are bypassing that code.

Josh


On 10/11/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have this class:
> public class Confirmation {
>
>@Persist
>private String uid;
>
>public Class onActivate(String id) {
>if (uid == null) {
>uid = id;
>}
>return null;
> }
>
>public String onPassivate()  { return uid;}
>
>String onActionFromAutoLogin() {
>uid = null;
>return "MyPage";
>}
> }
>
> even i set uid to null, it is still not null next time when the page is
> activated, why? what's the correct way of setting a persisted variable
> null?
> Thanks.
> A.C.
>
> --
> View this message in context:
> http://www.nabble.com/T5%3A-How-to-set-persisted-variable-to-null-tf4605726.html#a13151324
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


Re: how to use ioc of t5 ?

2007-10-11 Thread Josh Canfield
>
>@Inject
>@Service("CompanyDAO")
>private CompanyDAO dao;
>


This should just be:
@Inject
private CompanyDAO dao;

Josh

On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>
>
> now I want to know how to inject service to page class .
> after I add this in AppModule :
> binder.bind(CompanyDAO.class,CompanyDaoImpl.class)
> and add
>@Inject
>@Service("CompanyDAO")
>private CompanyDAO dao;
>
> in page class.
>
> but it seem to be wrong !
>
> can you help me ?
> thanks
>
>
>
>
>
> kristian.marinkovic wrote:
> >
> > do you have the hibernate libraries in your classpath?
> >
> >
> >
> >
> > lasitha <[EMAIL PROTECTED]>
> > 11.10.2007 09:14
> > Bitte antworten an
> > "Tapestry users" 
> >
> >
> > An
> > "Tapestry users" 
> > Kopie
> >
> > Thema
> > Re: how to use ioc of t5 ?
> >
> >
> >
> >
> >
> >
> > In my setup i've got all my hibernated classes in the 'entities'
> > package - which is automatically picked up tapestry-hibernate - so
> > i've not had to make a contribution like this.  I'm afraid i don't
> > have time to play with it right now either..., sorry.
> >
> > As an experiment, you might try moving (some of) your hibernated
> > classes from 'domain' into 'entities' and commenting out the
> > contribution code, just so we know whether your exception is related
> > to contributing a package or something else.
> >
> > Also, is there more to that exception stack?  It doesn't seem to
> > mention a cause...
> >
> > Lastly, i have a vague recollection of a past thread in this list
> > about contributing packages to tapestry-hibernate... did you happen to
> > run across anything in the archives?
> >
> > Cheers,
> > lasitha.
> >
> >
> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
> >>
> >> thanks.
> >>
> >> I hava add this to AppModule:
> >>
> >>  public static void
> >> contributeHibernateSessionSource(Configuration
> > configuration)
> >> {
> >> configuration.add("com.myspacce.domain");
> >> }
> >>
> >> Company.java is in  com/myspacce/domain:
> >>
> >> import javax.persistence.*;
> >> @Entity
> >> @Table(name="company")
> >> public class Company {
> >> @Id
> >> @GeneratedValue
> >>
> >> private int id;
> >> private String name;
> >>
> >> public Company()
> >> {
> >> }
> >> public int getId()
> >> {
> >> return id;
> >> }
> >> public void setId(int id)
> >> {
> >> this.id=id;
> >> }
> >> public String getName()
> >> {
> >> return name;
> >> }
> >> public void setName(String name)
> >> {
> >> this.name=name;
> >> }
> >>
> >> I have the tapestry-hibernate module in my classpath.
> >>
> >> error is :
> >>
> >> Error invoking service builder method
> >>
> > org.apache.tapestry.hibernate.HibernateModule.build
> (HibernateSessionSource,
> >> ThreadCleanupHub) (at HibernateModule.java:62) (for service
> >> 'HibernateSessionManager'): Exception constructing service
> >> 'HibernateSessionSource': Error invoking constructor
> >> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl(Log,
> >> Collection, ClassNameLocator) (at HibernateSessionSourceImpl.java:35)
> > (for
> >> service 'HibernateSessionSource'):
> >> org/hibernate/cfg/annotations/ResultsetMappingSecondPass
> >>
> >>
> >> thanks
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> lasitha wrote:
> >> >
> >> > It looks like you don't have the tapestry-hibernate module in your
> >> > classpath.
> >> >
> >> > There are a couple of starters you should checkout:
> >> > http://tapestry.apache.org/tapestry5/tapestry-hibernate/
> >> > http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate
> >> >
> >> > And don't forget to search the mailing list archives:
> >> > http://wiki.apache.org/tapestry/Tapestry5HowToSearchTheMailingLists
> >> >
> >> > Let us know if those don't help,
> >> > Cheers, lasitha.
> >> >
> >> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> hello all :
> >> >>
> >> >>  I write a page class :
> >> >>
> >> >> package com.myspacce.pages;
> >> >> import java.util.*;
> >> >> import org.apache.tapestry.annotations.*;
> >> >> import org.hibernate.*;
> >> >> public class Start
> >> >> {
> >> >> public String _name;
> >> >>
> >> >> @Inject
> >> >> private Session _session;
> >> >>
> >> >> public List getList()
> >> >> {
> >> >>
> >> >> List list=_session.createQuery("select name from
> >> >> Company").list();
> >> >> return list;
> >> >> }
> >> >> }
> >> >>
> >> >> run error is
> >> >> :org.apache.tapestry.internal.services.TransformationException:
> >> >> Error obtaining injected value for field
> >> >> com.myspacce.pages.Start._session:
> >> >> No service implements the interface org.hibernate.Session.
> >> >>
> >> >> can you hel

Re: Failure writing parameter value of component Start:loop:

2007-10-11 Thread Josh Canfield
>
> 
>${company.name}
>
> 
>
> the error is :Failure writing parameter value of component Start:loop:
> Expression company for class com.myspacce.pages.Start is read-only.
>
Tapestry is telling you that it can't set the value of the company property
in your page. You need to provide a void setCompany(Company c) method.

Josh


> On 10/10/07, MavenMan <[EMAIL PROTECTED]> wrote:


> I have fetched datas from database :
>
> @Inject
> private HibernateSessionManager _sessionmanager;
> private Company _company;
> public List getList()
>{
>_session=_sessionmanager.getSession();
>List list=_session.createQuery("from Company").list();
>return list;
>}
>
> this is my pojo:
>
> @Entity
> @Table(name="company")
> public class Company {
>@Id  @GeneratedValue
>private long id;
>private String name;
>
>public Company()
>{}
>public long getId()
>{
>return id;
>}
>public void setId(long id)
>{
>this.id=id;
>}
>public String getName()
>{
>return name;
>}
>public void setName(String name)
>{
>this.name=name;
>}
> }
>
> I am test that the result is not null ,so I write this in html page:
>
> 
>${company.name}
>
> 
>
> the error is :Failure writing parameter value of component Start:loop:
> Expression company for class com.myspacce.pages.Start is read-only.
>
> I can not understand .please help me .
>
> thanks !
> --
> View this message in context:
> http://www.nabble.com/Failure-writing-parameter-value-of-component-Start%3Aloop%3A-tf4605415.html#a13150356
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua

Well I finally got something to stick...




I eliminated all references from Home.html since these parameters are self 
contained inside Gallery widget... why pollute the upper level container 
component and violate separation of concerns anyway.

But this solution is flakey. I change the selection and the PropertySelect 
updates whacky... sometimes it changes other times it doesn't then other times 
it never changes.

I am using a @Block to model the thing... and using multiple instances of that 
block





autoPagingContent is the guy...

I am going to set the ID's on the following explicitly...








Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 12:15:11 -0400










An exception has occurred.


You may continue by restarting the session.





[ +/- ] Exception:
A binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification. 

org.apache.hivemind.ApplicationRuntimeException



A
binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification.



component:
[EMAIL PROTECTED]/galleryWidget.tableSizeSelect]


location:
classpath:/org/trails/demo/components/Gallery.html, 
line 8
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13   







Stack Trace:





org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.validate(ComponentTemplateLoaderLogic.java:380)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addBinding(ComponentTemplateLoaderLogic.java:320)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addTemplateBindings(ComponentTemplateLoaderLogic.java:285)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:182)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
$ComponentTemplateLoader_1158fd8227e.loadTemplate($ComponentTemplateLoader_1158fd8227e.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92)
org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122)
$Gallery_17.finishLoad($Gallery_17.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408)
org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:504)
$IPageLoader_1158fd82272.createImplicitComponent($IPageLoader_1158fd82272.java)
$IPageLoader_1158fd82273.createImplicitComponent($IPageLoader_1158fd82273.java)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:203)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:158)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
$ComponentTemplateLoader_1158fd8227f.loadTemplate($ComponentTemplateLoader_1158fd8227f.java)
$ComponentTemplateLoader_1158fd8227e.loadTemplate($ComponentTemplateLoader_1158fd8227e.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92)
org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122)
$Home_0.finishLoad($Home_0.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408)
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:639)
$IPageLoader_1158fd82272.loadPage($IPageLoader_1158fd82272.java)
$IPageLoader_1158fd82273.loadPage(

Re: how to fetch only one record ?

2007-10-11 Thread Josh Canfield
>
>
> I have fetched a record set from database.but now I want to only one
> record .
> so I code :
>

This is a Hibernate API question. You aren't actually performing the query
until you call list(), scroll(), iterate() or uniqueResult()
http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Query.html

In this case it sounds like you want uniqueResult()

(Company)_session.createQuery("from Company where id='11'").uniqueResult();

Josh

On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>
>
> I have fetched a record set from database.but now I want to only one
> record .
> so I code :
>
> //page class
> import com.myspacce.domain.Company;
> public Company getCom()
>{
>_session=_sessionmanager.getSession();
>return (Company)_session.createQuery("from Company where
> id='11'");
>}
>
> //HTML page:
> ${com.name}
> the error is:
> org.hibernate.impl.QueryImpl cannot be cast to com.myspacce.domain.Company
>
> I want to kown how to do ?
> please help me .
> thanks!!
> from Chinese
>
> --
> View this message in context:
> http://www.nabble.com/how-to-fetch-only-one-record---tf4605478.html#a13150571
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua



An exception has occurred.


You may continue by restarting the session.




[ +/- ] Exception:
A binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification. 

org.apache.hivemind.ApplicationRuntimeException



A
binding for parameter 'value' of component
Home/galleryWidget.tableSizeSelect in the template for
Home/galleryWidget conflicts with an existing binding in the
specification.



component:
[EMAIL PROTECTED]/galleryWidget.tableSizeSelect]


location:
classpath:/org/trails/demo/components/Gallery.html, 
line 8
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13   







Stack Trace:





org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.validate(ComponentTemplateLoaderLogic.java:380)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addBinding(ComponentTemplateLoaderLogic.java:320)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addTemplateBindings(ComponentTemplateLoaderLogic.java:285)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:182)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
$ComponentTemplateLoader_1158fd8227e.loadTemplate($ComponentTemplateLoader_1158fd8227e.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92)
org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122)
$Gallery_17.finishLoad($Gallery_17.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408)
org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:504)
$IPageLoader_1158fd82272.createImplicitComponent($IPageLoader_1158fd82272.java)
$IPageLoader_1158fd82273.createImplicitComponent($IPageLoader_1158fd82273.java)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:203)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:158)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
$ComponentTemplateLoader_1158fd8227f.loadTemplate($ComponentTemplateLoader_1158fd8227f.java)
$ComponentTemplateLoader_1158fd8227e.loadTemplate($ComponentTemplateLoader_1158fd8227e.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92)
org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122)
$Home_0.finishLoad($Home_0.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408)
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:639)
$IPageLoader_1158fd82272.loadPage($IPageLoader_1158fd82272.java)
$IPageLoader_1158fd82273.loadPage($IPageLoader_1158fd82273.java)
org.apache.tapestry.pageload.PageSource.makeObject(PageSource.java:153)
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:797)
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:177)
$IPageSource_1158fd821c6.getPage($IPageSource_1158fd821c6.java)
$IPageSource_1158fd821c5.getPage($IPageSource_1158fd821c5.java)
org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:559)
org.apache.tapestry.engine.HomeService.service(HomeService.java:66)
$IEngineService_1158fd82254.service($IEngineService_1158fd82254.java)
org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(EngineServiceInnerP

T5 : Pb with Spring integration with xml file from another JAR

2007-10-11 Thread TNO
Hi,

I can't find my beans !!! I try to get them from another jar. I found
the config files, the Spring logs seems OK, but when I inject my DAO,
exception !
here's my pb :

* java.lang.ClassNotFoundException
  caught an exception while obtaining a class file for
  org.atlog.mjweb.pages.Start

  exception
  org.apache.tapestry.internal.services.TransformationException:
  Error obtaining injected value for field
  org.atlog.mjweb.pages.Start.infoDAO: No service implements the
  interface arc.db.auto.dao.InfoDAO. 


Can you help me please...

here my web.xml

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
Mj Web
   

  contextConfigLocation
 
  classpath:/arc/db/config/application-context-arcdb.xml
  classpath:/arc/db/config/application-context-arcdb-config.xml
  

   
 
tapestry.app-package
org.atlog.mjweb

   

app
org.apache.tapestry.TapestryFilter

   

app
/*

   

   
org.springframework.web.context.ContextLoaderListener
  
   

Start



And my java class :

public class Start extends BasePage {

private Info infoTitre;

public Start() {
super();
}

public List getListInfo() {
return infoDAO.getList();
}

@Inject
private InfoDAO infoDAO;
}

Thanks...



---
Antivirus avast! : message Sortant sain.
Base de donnees virale (VPS) : 000780-1, 10/10/2007
Analyse le : 11/10/2007 17:58:43
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com




T5: mixin parameters in templates

2007-10-11 Thread Chris Lewis

Hi all,

The T5 docs say 
(http://tapestry.apache.org/tapestry5/tapestry-core/guide/mixins.html) 
that it is possible to bind mixin parameters in the template, but no 
examples are given. I haven't been able to get this to work 
(5.0.6-SNAPSHOT). I've tried:


t:TextMonitor.test="hello"/>
t:textmonitor.test="hello"/>


To no avail. How can this be done?

thanks!
chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua



An exception has occurred.


You may continue by restarting the session.




[ +/- ] Exception:
Unable to update OGNL expression '' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated. 

org.apache.tapestry.BindingException



Unable
to update OGNL expression '' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.



binding:
ExpressionBinding[Home/galleryWidget tableSize]


location:
classpath:/org/trails/demo/components/Gallery.jwc, line 
9, column 46
4
allow-informal-parameters="yes">
5   
6   
7

8   
9   
10  
11  
12

13  
14  



 

 



[ +/- ] Exception:
Unable to update OGNL expression '' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated. 

org.apache.hivemind.ApplicationRuntimeException



Unable
to update OGNL expression '' of
[EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1
(StaticBinding[1]) may not be updated.



component:
[EMAIL PROTECTED]/galleryWidget]


location:
context:/WEB-INF/Home.html, line 9
4   
5   
6   
7   
8

9   

28


29


30


31


32


33


34


35


36


37







 

 



[ +/- ] Exception:
   Unable to parse OGNL expression '(index % tableSize) == 0': For 
input string: "tableSize"



org.apache.hivemind.ApplicationRuntimeException




Unable to parse OGNL expression '(index % tableSize) == 
0': For input string: "tableSize"






 

 



[ +/- ] Exception:
   For input string: "tableSize"



java.lang.NumberFormatException



For input string: "tableSize"








Stack Trace:






java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Long.parseLong(Long.java:403)
java.lang.Long.parseLong(Long.java:461)
ognl.OgnlOps.longValue(OgnlOps.java:220)
ognl.OgnlOps.remainder(OgnlOps.java:932)

ognl.ASTRemainder.getValueBody(ASTRemainder.java:51)

ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)

ognl.SimpleNode.getValue(SimpleNode.java:246)
ognl.ASTEq.getValueBody(ASTEq.java:50)

ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)

ognl.SimpleNode.getValue(SimpleNode.java:246)
ognl.Ognl.getValue(Ognl.java:494)
ognl.Ognl.getValue(Ognl.java:458)

org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:153)

ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:523)

ognl.Ognl.compileExpression(Ognl.java:141)

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
D

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua



An exception has occurred.


You may continue by restarting the session.




[ +/- ] Exception:
   Unable to parse OGNL expression '(index % tableSize) == 0': For 
input string: "tableSize"



org.apache.tapestry.BindingException




Unable to parse OGNL expression '(index % tableSize) == 
0': For input string: "tableSize"




binding:

ExpressionBinding[Home/galleryWidget (index % 
tableSize) == 0]



location:

classpath:/org/trails/demo/components/Gallery.html, 
line 32
27


28


29


30


31


32


33


34


35


36


37







 

 



[ +/- ] Exception:
   Unable to parse OGNL expression '(index % tableSize) == 0': For 
input string: "tableSize"



org.apache.hivemind.ApplicationRuntimeException




Unable to parse OGNL expression '(index % tableSize) == 
0': For input string: "tableSize"






 

 



[ +/- ] Exception:
   For input string: "tableSize"



java.lang.NumberFormatException



For input string: "tableSize"








Stack Trace:






java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Long.parseLong(Long.java:403)
java.lang.Long.parseLong(Long.java:461)
ognl.OgnlOps.longValue(OgnlOps.java:220)
ognl.OgnlOps.remainder(OgnlOps.java:932)

ognl.ASTRemainder.getValueBody(ASTRemainder.java:51)

ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)

ognl.SimpleNode.getValue(SimpleNode.java:246)
ognl.ASTEq.getValueBody(ASTEq.java:50)

ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)

ognl.SimpleNode.getValue(SimpleNode.java:246)
ognl.Ognl.getValue(Ognl.java:494)
ognl.Ognl.getValue(Ognl.java:458)

org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:153)

ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:523)

ognl.Ognl.compileExpression(Ognl.java:141)

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 09:49:01 -0400








Hi Nick,

Attached is my Home.html... Home.java

The other modules are original as posted yesterday the same. I basically 
specified the parameter bindings in the template at the widget definition.

The select component keeps punching back to 1 when I attempt to change. I even 
added getter/setter to Home.JAVA for the parameters.

Home.JAVA
@Persist
public abstract String getTableSize();
public abstract void setTableSize(String tableSize);

@Persist
public abstract String getPagingSpan();
public abstract void setPagingSpan(String pagingSpan);

Home.HTML


I also tried specifying the parameter as a property within the JWC file and 
that failed as well.

Any ideas?


Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 09:35:54 -0400

Nick,

Prior attempts to specify 
tableSize='tableSize'> 
inside Home.html caused NumberFormatException because the rendering cycle was 
act

Re: Fwd: Google Alert - "Tapestry 5"

2007-10-11 Thread andyhot

Man, this JUSTS works!

Exactly what i / we need for T4.1...

Bill Holloway wrote:

Hinting at a better way to reload.

Bill H. Austin

-- Forwarded message --
From: Google Alerts <[EMAIL PROTECTED]>
Date: Oct 9, 2007 5:23 PM
Subject: Google Alert - "Tapestry 5"
To: [EMAIL PROTECTED]


Generic Class Reloading Comes To Java
Sys-Con Italia (Comunicati Stampa) - USA
... to reconstruct the object state it will only work in a controlled and
limited environment -- eg that of a web framework like RIFE, Tapestry 5
and so on. ...

See all stories on this topic:


This once a day Google Alert is brought to you by Google...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove this Google Alert:
http://www.google.com/alerts/remove?s=EDYhxEtf5zyu7H_MClSuSZY&hl=en

Create another Google Alert:
http://www.google.com/alerts?hl=en

Sign in to manage your alerts:
http://www.google.com/alerts/manage?hl=en

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua

Hi Nick,

Attached is my Home.html... Home.java

The other modules are original as posted yesterday the same. I basically 
specified the parameter bindings in the template at the widget definition.

The select component keeps punching back to 1 when I attempt to change. I even 
added getter/setter to Home.JAVA for the parameters.

Home.JAVA
@Persist
public abstract String getTableSize();
public abstract void setTableSize(String tableSize);

@Persist
public abstract String getPagingSpan();
public abstract void setPagingSpan(String pagingSpan);

Home.HTML


I also tried specifying the parameter as a property within the JWC file and 
that failed as well.

Any ideas?


Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Thu, 11 Oct 2007 09:35:54 -0400

Nick,

Prior attempts to specify 
tableSize='tableSize'> 
inside Home.html caused NumberFormatException because the rendering cycle was 
acting on the text above in my arithmetic condition.
   

I am giving it a try now...

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Wed, 10 Oct 2007 14:32:08 -0400

 I decided to model T-4 examples and it still produces exception

private static final String[] tableSizeOptions = new String[] { '1', '2', 
'3', '4', '5', '10', '25', '50', '100',
'500', '1000', '2500', '5000', '1', '25000', '5' };

private static final String[] pagingSpanOptions = new String[] { '5', '10', 
'15', '20', '25' };

public IPropertySelectionModel getTableSizeModel()
{
if (tableSizeModel == null)
tableSizeModel = new StringPropertySelectionModel(tableSizeOptions);

return tableSizeModel;
}

public IPropertySelectionModel getPagingSpanModel()
{
if (pagingSpanModel == null)
pagingSpanModel = new 
StringPropertySelectionModel(pagingSpanOptions);

return pagingSpanModel;
}


  
  



  
  


@Persist
public abstract String getTableSize();

@Persist
public abstract String getPagingSpan();






I cannot do arithmetic on this property due to divide by zero.

So how do you set the DEFAULT VALUE of a property ? I see no support for doing 
this.

I cannot use parameters because it states the parameter cannot be updated.

Please advise... thank You


An exception has occurred.You may continue by restarting the session.
[ +/- ] Exception: Unable to parse OGNL expression '(index % 
tableSize) == 0': / by zero 
   org.apache.tapestry.BindingException
Unable 
to parse OGNL expression '(index % tableSize) == 0': / by zero
binding:
ExpressionBinding[Home/galleryWidget (index % 
tableSize) == 0]
location:
classpath:/org/trails/demo/components/Gallery.html, 
line 31
26

27

28

29

30

31

32

33

34

35

36
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua

Nick,

Prior attempts to specify 
tableSize="tableSize"> 
inside Home.html caused NumberFormatException because the rendering cycle was 
acting on the text above in my arithmetic condition.
   

I am giving it a try now...

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Wed, 10 Oct 2007 14:32:08 -0400

 I decided to model T-4 examples and it still produces exception

private static final String[] tableSizeOptions = new String[] { '1', '2', 
'3', '4', '5', '10', '25', '50', '100',
'500', '1000', '2500', '5000', '1', '25000', '5' };

private static final String[] pagingSpanOptions = new String[] { '5', '10', 
'15', '20', '25' };

public IPropertySelectionModel getTableSizeModel()
{
if (tableSizeModel == null)
tableSizeModel = new StringPropertySelectionModel(tableSizeOptions);

return tableSizeModel;
}

public IPropertySelectionModel getPagingSpanModel()
{
if (pagingSpanModel == null)
pagingSpanModel = new 
StringPropertySelectionModel(pagingSpanOptions);

return pagingSpanModel;
}


  
  



  
  


@Persist
public abstract String getTableSize();

@Persist
public abstract String getPagingSpan();






I cannot do arithmetic on this property due to divide by zero.

So how do you set the DEFAULT VALUE of a property ? I see no support for doing 
this.

I cannot use parameters because it states the parameter cannot be updated.

Please advise... thank You


An exception has occurred.You may continue by restarting the session.
[ +/- ] Exception: Unable to parse OGNL expression '(index % 
tableSize) == 0': / by zero 
   org.apache.tapestry.BindingException
Unable 
to parse OGNL expression '(index % tableSize) == 0': / by zero
binding:
ExpressionBinding[Home/galleryWidget (index % 
tableSize) == 0]
location:
classpath:/org/trails/demo/components/Gallery.html, 
line 31
26

27

28

29

30

31

32

33

34

35

36
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua

Thanks Nick and for the observations I will take notice.

I am pioneering a gallery and could not find one anywhere surprisingly.

Thanks for your response... I tried that specifying parameters in the Home.html 
template like you posted. Are you saying I need additional getter/setter with 
@Persist for such attribute in Home.JAVA ? I would hate to think that... but 
will do what I need to do in order to get it to work.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Wed, 10 Oct 2007 16:18:00 -0400








Folks,

I have attached all my modules to this Gallery Widget.

Can someone comment on a solution?

Here are the issues...
1. OGNL cannot do arithmetic on tableSize due to divide by ZERO. My blocker to 
prevent exception is check for null but thats not a solution.
2. Parameters are not updatable with PropertySelection across SUBMIT
3. Persist fails to work either
4. Also unable to get both renderBlocks to act on same instance...

tableSize refuses to act persistent. I select from the select and it keeps 
getting reset back on submit.

The docs need to be updated too.

Thanks

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Wed, 10 Oct 2007 15:25:04 -0400

If tableSize is != 0 (according to OGNL condition check) then how is OGNL 
letting it get in?

An exception has occurred.You may continue by restarting the session.
[ +/- ] Exception: Unable to parse OGNL expression '(index % 
tableSize) == 0': / by zero 
   org.apache.tapestry.BindingException 
   Unable to parse OGNL expression '(index % tableSize) 
== 0': / by zero
   binding:ExpressionBinding[Home/galleryWidget (index 
% tableSize) == 0]  location:   
classpath:/org/trails/demo/components/Gallery.html, line 32
27  28  29  
30  31   
3233
  34
  35   
36   37  

  [ +/- ] Exception: Unable to parse OGNL expression '(index % 
tableSize) == 0': / by zero

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION
Date: Wed, 10 Oct 2007 15:15:20 -0400

An exception has occurred.You may continue by restarting the session.
[ +/- ] Exception:Unable to update OGNL expression '' [EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 
1(ExpressionBinding[Home/galleryWidget 1]) may not be updated.  
org.apache.tapestry.BindingException

Unableto update OGNL expression '' [EMAIL 
PROTECTED]/galleryWidget] to 2: Binding with value 
1(ExpressionBinding[Home/galleryWidget 1]) may not be updated.
binding:
ExpressionBinding[Home/galleryWidget tableSize]
location:
classpath:/org/trails/demo/components/Gallery.jwc, line 
9, column 46
4
 
allow-informal-parameters='yes'>
5

6

7

8

9

10

11

12

13

14



[ +/- ] Exception:Unable to update OGNL expression 
'' [EMAIL PROTECTED]/galleryWidget] to 2: Binding with 
value 1(ExpressionBinding[Home/galleryWidget 1]) may not be updated.
  org.apache.hivemind.ApplicationRuntimeException

Unableto update OGNL expression '' [EMAIL 
PROTECTED]/galleryWidget] to 2: Binding with value 
1(ExpressionBinding[Home/galleryWidget 1]) may not be updated.

component:
[EMAIL PROTECTED]/galleryWidget]
location:
[EMAIL PROTECTED](cache=true, 
defaultValue=1,required=false, name=, aliases=) of public abstract 
java.lang.Stringorg.trails.demo.components.Gallery.getTableSize()

[ +/- ] Exception: Binding with

Possible to handle some ActiveX Elements with Tapestry.

2007-10-11 Thread Sabine K.

Hello,

i have an ActiveX-Component which function is to show special images. The
size of the images is between 100-200MB. The images should be somewhere on
the server, e.g. /images/imagea.ndi. With Tapestry i think i can easily
control the ActiveX, but i don´t know how to handle it with the image Files.
On my local machine, the embedded ActiveX-Component is able to acces to the
local images (they are storred in somethink like c:\images\imagea.ndi). So
if i open the html with the internetexplorer, i can load the local storred
images in the ActiveX-Component, is this possible to do online? 

Best regards
-- 
View this message in context: 
http://www.nabble.com/Possible-to-handle-some-ActiveX-Elements-with-Tapestry.-tf4607272.html#a13155880
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Questions for Tapestry 5(sample Apllication of Tapestry 5.0.5)

2007-10-11 Thread Sadhana Reddy

A Sample Application In Tapestry 5.0.5 with Hibernate 3.2.2 ga Spring 2.0 

This is a sample Apllication of Tapestry 5.0.5 

Create Vehicle 

VehicleId:___ 
Vehicle Name:___ 
   Login 

When ever we click on the login button data will be inserted on the Table
VECHILE_MASTER 

Project Structure: 

 src 
 | 
  _  com.btp.vms 
  | 
   _  dao 
   FMGDatabase.Java 
   FMGService.Java 
   _  data 
   Vehicle.java(BO Business Object) 

   _ Pages 
  AddVehicle.Java 
   _ resources 
 hibernate.cfg.xml 
   _ services 
 VehicleModule.java 

Context 
   | 
_Web-Inf 
  | 
   _ classes 
   _ lib 
   _AddVehicle.html 
   _web.xml 
   _springContext.xml 


we will start with AddVehicle.html form(Simple Html form with
TextFeild,TextArea Tags) 

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> 
Create New Vehicle 
 
  DIV.t-beaneditor LABEL { 
width: 200px; 
  } 
 
 
 
  Model 
   
   
  Vehicle Id 
   
   
   
   
 
 
 


AddVehicle.Java 

package com.btp.vms.pages; 

import java.sql.Date; 

import org.apache.tapestry.annotations.Component; 
import org.apache.tapestry.annotations.Inject; 
import org.apache.tapestry.annotations.OnEvent; 
import org.apache.tapestry.annotations.Persist; 
import org.apache.tapestry.annotations.Service; 
import org.apache.tapestry.corelib.components.Form; 

import com.btp.vms.dao.FMGDatabase; 
import com.btp.vms.data.Vehicle; 

/** 
 * 
 * @author sadhana 
 * 
 */ 
public class AddVehicle{ 

 @Inject 
 @Service("FMGDatabase") 
 private FMGDatabase  _database; 
  
@Component(id = "addVehicle") 
private Form form; 

@Persist 
private String _modelName; 

private String _vehicleId; 

private Date _year; 

  
/** 
 * @return Returns the _modelName. 
 */ 
public String getModelName() 
{ 
return _modelName; 
} 

public void setModelName(String modelName) 
{ 
_modelName = modelName; 
} 

/** 
 * @return Returns the _vehicleId. 
 */ 
public String getVehicleId() 
{ 
return _vehicleId; 
} 

public void setVehicleId(String vehicleId) 
{ 
_vehicleId = vehicleId; 
} 

/** 
 * @return Returns the _year. 
 */ 
public Date getYear() { 
return _year; 
} 

/** 
 * @param _year The _year to set. 
 */ 
public void setYear(Date year) { 
_year = year; 
} 

@OnEvent(value = "submit",component="addVehicle") 
  void  addVehicle(){ 
 System.out.println("---here:: "+_vehicleId); 
 System.out.println("---here:: "+_modelName); 
 Vehicle vehicle = new Vehicle(); 
 vehicle.setVehicleId(_vehicleId); 
 vehicle.setModelName(_modelName); 
_database.add(vehicle); 
  } 


} 

Hear we are Using FMGDataBase is the Interface and FMGservice is the service
which extends HibernateDaoSupport implements FMGDatabase 

// Copyright 2007 The Apache Software Foundation 
// 
// Licensed under the Apache License, Version 2.0 (the "License"); 
// you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at 
// 
// http://www.apache.org/licenses/LICENSE-2.0 
// 
// Unless required by applicable law or agreed to in writing, software 
// distributed under the License is distributed on an "AS IS" BASIS, 
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
// See the License for the specific language governing permissions and 
// limitations under the License. 

FMGDatabase.java 

package com.btp.vms.dao; 

import com.btp.vms.data.Vehicle; 
/** 
 * 
 * @author sadhana 
 * 
 */ 
public interface FMGDatabase 
{ 
/** Adds an item to the database, first assigning a unique id to the
item. */ 
void add(Vehicle item); 

} 

FMGService.java 

package com.btp.vms.dao; 

import org.hibernate.Session; 
import org.springframework.orm.hibernate3.HibernateCallback; 
import org.springframework.orm.hibernate3.support.HibernateDaoSupport; 
import org.springframework.transaction.PlatformTransactionManager; 

import com.btp.vms.data.Vehicle; 

/** 
 * 
 * @author sadhana 
 * 
 */ 

public class FMGService extends HibernateDaoSupport implements FMGDatabase { 

private PlatformTransactionManag

Re: A Sample Application In Tapestry 5.0.5 with Hibernate 3.2.2 ga Spring 2.0

2007-10-11 Thread Francois Armand

Francois Armand wrote:
Wow ! I think this great mail should be put into the HowTo page : 
http://wiki.apache.org/tapestry/Tapestry5HowTos.


Thank you for the contribution :)
OK, I should check before writting : it *is* on HowTos : 
http://wiki.apache.org/tapestry/OnSubmit

Sorry for the noise;

--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A Sample Application In Tapestry 5.0.5 with Hibernate 3.2.2 ga Spring 2.0

2007-10-11 Thread Francois Armand

Sadhana Reddy wrote:

This is a sample Apllication of Tapestry 5.0.5
[]
  
Wow ! I think this great mail should be put into the HowTo page : 
http://wiki.apache.org/tapestry/Tapestry5HowTos.


Thank you for the contribution :)

--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



A Sample Application In Tapestry 5.0.5 with Hibernate 3.2.2 ga Spring 2.0

2007-10-11 Thread Sadhana Reddy

This is a sample Apllication of Tapestry 5.0.5

Create Vehicle

VehicleId:___
Vehicle Name:___
   Login

When ever we click on the login button data will be inserted on the Table
VECHILE_MASTER

Project Structure:

 src
 |
  _  com.btp.vms
  |
   _  dao
   FMGDatabase.Java
   FMGService.Java
   _  data
   Vehicle.java(BO Business Object)

   _ Pages 
  AddVehicle.Java
   _ resources
 hibernate.cfg.xml
   _ services
 VehicleModule.java

Context
   |
_Web-Inf
  |
   _ classes
   _ lib
   _AddVehicle.html
   _web.xml
   _springContext.xml


we will start with AddVehicle.html form(Simple Html form with
TextFeild,TextArea Tags)

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Create New Vehicle

  DIV.t-beaneditor LABEL { 
width: 200px;
  }



  Model
  
  
  Vehicle Id
  
  
  
  





AddVehicle.Java

package com.btp.vms.pages;

import java.sql.Date;

import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.annotations.OnEvent;
import org.apache.tapestry.annotations.Persist;
import org.apache.tapestry.annotations.Service;
import org.apache.tapestry.corelib.components.Form;

import com.btp.vms.dao.FMGDatabase;
import com.btp.vms.data.Vehicle;

/**
 * 
 * @author sadhana
 *
 */
public class AddVehicle{

 @Inject
 @Service("FMGDatabase")
 private FMGDatabase  _database;
 
@Component(id = "addVehicle")
private Form form;

@Persist
private String _modelName;

private String _vehicleId;

private Date _year;

  
/**
 * @return Returns the _modelName.
 */
public String getModelName()
{
return _modelName;
}

public void setModelName(String modelName)
{
_modelName = modelName;
}

/**
 * @return Returns the _vehicleId.
 */
public String getVehicleId()
{
return _vehicleId;
}

public void setVehicleId(String vehicleId)
{
_vehicleId = vehicleId;
}

/**
 * @return Returns the _year.
 */
public Date getYear() {
return _year;
}

/**
 * @param _year The _year to set.
 */
public void setYear(Date year) {
_year = year;
}
   
@OnEvent(value = "submit",component="addVehicle")
  void  addVehicle(){
 System.out.println("---here:: "+_vehicleId);
 System.out.println("---here:: "+_modelName);
 Vehicle vehicle = new Vehicle();
 vehicle.setVehicleId(_vehicleId);
 vehicle.setModelName(_modelName);
_database.add(vehicle);
  }


}

Hear we are Using FMGDataBase is the Interface and FMGservice is the service
which extends HibernateDaoSupport implements FMGDatabase

// Copyright 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

FMGDatabase.java

package com.btp.vms.dao;

import com.btp.vms.data.Vehicle;
/**
 * 
 * @author sadhana
 *
 */
public interface FMGDatabase
{
/** Adds an item to the database, first assigning a unique id to the
item. */
void add(Vehicle item);

}

FMGService.java

package com.btp.vms.dao;

import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.transaction.PlatformTransactionManager;

import com.btp.vms.data.Vehicle;

/**
 * 
 * @author sadhana
 *
 */

public class FMGService extends HibernateDaoSupport implements FMGDatabase {

private PlatformTransactionManager transactionManager;
   
public FMGService()
{
   
}

public void add(final Vehicle vehicle)
{
getHibernateTemplate().execute

Localization of PropertySelection items

2007-10-11 Thread munich
I have been thinking about how to go about implementing a 100%
database-driven solution for localized property selection items.

The only solution that comes to my mind is to use the locale files
and to select "constants" that are mapped to them.

Has anyone ever had the same idea to use a pure database-driven solution for 
that?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: the relation of pojo

2007-10-11 Thread Angelo Chen

you can specify the relationships in the pojp's annotation

MavenMan wrote:
> 
> you know that there is no need to have a hibernate map file(.hbm.xml) in
> project.
> 
> but how to represent the relation of the pojo ? 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-the-relation-of--pojo-tf4606036.html#a13152236
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: the relation of t5 pojo

2007-10-11 Thread MavenMan

you know that there is no need to have a hibernate map file(.hbm.xml) in
project.

but how to represent the relation of the pojo ? 
-- 
View this message in context: 
http://www.nabble.com/T5%3A-the-relation-of-t5-pojo-tf4606036.html#a13152233
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Trails 1.1.1 release

2007-10-11 Thread Alejandro Scandroli
Hi Ted,

Yes, I did look at hibernate-search, in fact the very first full-text
search implementation in Trails was based on the first implementation
of hibernate-search. At that time it came bundled with
hibernate-annotations.
Then I moved to Compass because its integration with spring. Among
other benefits is also really easy to integrate Compass with other
persistence technologies besides hibernate.

Alejandro.

On 10/10/07, Ted Steen <[EMAIL PROTECTED]> wrote:
> One thought regarding Compass. Have you been looking at hibernate-search?
> It is essential the same thing, but without the Compass dependency.
>
> Regards
> Ted
>
> 2007/10/4, Kalle Korhonen <[EMAIL PROTECTED]>:
> > Hello "Trailers" :)
> >
> > Just as promised, we are happy to announce Trails 1.1.1 release! It feels
> > it's been so long, even though it was less than six months ago we hit 1.0.
> > The single biggest difference between 1.0 and 1.1 is the modularized
> > architecture. The documentation gives you an
> > overviewof the new
> > modules; the important thing is it allows Trails to be used in
> > more heterogenous use cases, independent of whether your project is using
> > Hibernate or Acegi. One of the other more visible changes we also made is
> > the new default user interface and layout that's designed to be compatible
> > with AppFuse so users of that project should feel right at home trying out
> > our examples. One more super-exciting feature is our first draft of
> > full-text search based on Trails-Compass integration that we have a whole
> > section about in the User
> > Guide.
> > The release history
> > (also copied
> > below) gives you a brief overview of the major features and a
> > summary of the 30 bugs that were fixed in this release.
> >
> > While the initial plan for 1.1 was to integrate with Tapestry 4.1.2,
> > 4.1.3contained important bug fixes for us and since it was released
> > just
> > recently, we decided to go with it for 1.1.x. We've also upgraded versions
> > of several other dependencies, check out the dependency
> > reportto
> > see exactly what. Trails libraries are already available in
> > repo1.maven.org .
> > We've also revamped our website to transparently blend Maven reports with
> > Confluence-based Codehaus project site. Go visit
> > http://trailsframework.organd enjoy!
> > 1.1.1 Release summary (release date 2007-10-02)
> > * Fixes minor issues in 1.1 release:
> >   o Fixed archetypes referring to snapshot versions
> >   o Added a default exception page to the archetype
> >   o Fixed an issue with validating unique entities when CGLIB
> > enhanced classes are used
> > * Branch (1.1.x) available for further maintenance releases
> >
> > 1.1 Release summary (release date 2007-09-30)
> > * Features
> >   o Move to Tapestry 4.1.3 ( DONE)
> >   o Modularization ( DONE)
> >   o Owner instance -based security ( DONE)
> >   o Search refactoring + Compass / Lucene Integration ( DONE)
> >   o Exception handling ( DONE)
> >   o New look & feel, multiple themes ( DONE)
> > * Fixed bugs in 1.1:
> >   T Key Summary
> >   Bug TRAILS-78 Editing a child object from a indexed list
> > "child" collection creates duplicates.
> >   New Feature TRAILS-30 @OneToOne needs user interface semantics
> >
> >   Bug TRAILS-50 Security Bug: infinite loop on special
> > configuration
> >   Bug TRAILS-49 Security BUG: Login.html does not render
> >   Bug TRAILS-61 Login.html requires username/password entry
> > twice
> >   New Feature TRAILS-59 ObjectTable needs to be instrumented to
> > be able to automatically render images
> >   Bug TRAILS-56 Security is broken, ROLE_ANONYMOUS is
> > constrained from creating users - impact from merge 582
> >   Bug TRAILS-87 Property Editor is broken ... serious flawed
> > behavior semantics 4.1.2 Branch
> >   Bug TRAILS-42 Trails is not using success-cancel-refresh
> > actions listeners in its ObjectForm
> >   Bug TRAILS-85 Trails crashes stale after sitting overnight
> >   Bug TRAILS-86 Custom Editors no longer possible in trails
> > OGNL-105 OGNL-111
> >   Bug TRAILS-81 regression:OneToOne decoration faulty...HARD
> > OneToOne associations broken
> >   Bug TRAILS-33 hasCyclicRelationships solution is merging on
> > entities not persisted yet
> >   Bug TRAILS-3 trails-archetype generates a ${basedir} directory
> >   New Feature TRAILS-37 remove Tapernate
> >   Task TRAILS-38 re-modularize Trails
> >   

T5: How to set persisted variable to null

2007-10-11 Thread Angelo Chen

Hi,

I have this class:
public class Confirmation {

@Persist
private String uid;

public Class onActivate(String id) {
if (uid == null) {
uid = id;
}
return null;
 }

public String onPassivate()  { return uid;}
   
String onActionFromAutoLogin() {
uid = null;
return "MyPage";
}
}

even i set uid to null, it is still not null next time when the page is
activated, why? what's the correct way of setting a persisted variable null?
Thanks.
A.C.

-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-set-persisted-variable-to-null-tf4605726.html#a13151324
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to use ioc of t5 ?

2007-10-11 Thread MavenMan

now I want to know how to inject service to page class .
after I add this in AppModule :
binder.bind(CompanyDAO.class,CompanyDaoImpl.class)
and add 
@Inject
@Service("CompanyDAO")
private CompanyDAO dao;

 in page class.

but it seem to be wrong !

can you help me ?
thanks 





kristian.marinkovic wrote:
> 
> do you have the hibernate libraries in your classpath?
> 
> 
> 
> 
> lasitha <[EMAIL PROTECTED]> 
> 11.10.2007 09:14
> Bitte antworten an
> "Tapestry users" 
> 
> 
> An
> "Tapestry users" 
> Kopie
> 
> Thema
> Re: how to use ioc of t5 ?
> 
> 
> 
> 
> 
> 
> In my setup i've got all my hibernated classes in the 'entities'
> package - which is automatically picked up tapestry-hibernate - so
> i've not had to make a contribution like this.  I'm afraid i don't
> have time to play with it right now either..., sorry.
> 
> As an experiment, you might try moving (some of) your hibernated
> classes from 'domain' into 'entities' and commenting out the
> contribution code, just so we know whether your exception is related
> to contributing a package or something else.
> 
> Also, is there more to that exception stack?  It doesn't seem to
> mention a cause...
> 
> Lastly, i have a vague recollection of a past thread in this list
> about contributing packages to tapestry-hibernate... did you happen to
> run across anything in the archives?
> 
> Cheers,
> lasitha.
> 
> 
> On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>>
>> thanks.
>>
>> I hava add this to AppModule:
>>
>>  public static void
>> contributeHibernateSessionSource(Configuration 
> configuration)
>> {
>> configuration.add("com.myspacce.domain");
>> }
>>
>> Company.java is in  com/myspacce/domain:
>>
>> import javax.persistence.*;
>> @Entity
>> @Table(name="company")
>> public class Company {
>> @Id
>> @GeneratedValue
>>
>> private int id;
>> private String name;
>>
>> public Company()
>> {
>> }
>> public int getId()
>> {
>> return id;
>> }
>> public void setId(int id)
>> {
>> this.id=id;
>> }
>> public String getName()
>> {
>> return name;
>> }
>> public void setName(String name)
>> {
>> this.name=name;
>> }
>>
>> I have the tapestry-hibernate module in my classpath.
>>
>> error is :
>>
>> Error invoking service builder method
>> 
> org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
>> ThreadCleanupHub) (at HibernateModule.java:62) (for service
>> 'HibernateSessionManager'): Exception constructing service
>> 'HibernateSessionSource': Error invoking constructor
>> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl(Log,
>> Collection, ClassNameLocator) (at HibernateSessionSourceImpl.java:35) 
> (for
>> service 'HibernateSessionSource'):
>> org/hibernate/cfg/annotations/ResultsetMappingSecondPass
>>
>>
>> thanks
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> lasitha wrote:
>> >
>> > It looks like you don't have the tapestry-hibernate module in your
>> > classpath.
>> >
>> > There are a couple of starters you should checkout:
>> > http://tapestry.apache.org/tapestry5/tapestry-hibernate/
>> > http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate
>> >
>> > And don't forget to search the mailing list archives:
>> > http://wiki.apache.org/tapestry/Tapestry5HowToSearchTheMailingLists
>> >
>> > Let us know if those don't help,
>> > Cheers, lasitha.
>> >
>> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>> >>
>> >> hello all :
>> >>
>> >>  I write a page class :
>> >>
>> >> package com.myspacce.pages;
>> >> import java.util.*;
>> >> import org.apache.tapestry.annotations.*;
>> >> import org.hibernate.*;
>> >> public class Start
>> >> {
>> >> public String _name;
>> >>
>> >> @Inject
>> >> private Session _session;
>> >>
>> >> public List getList()
>> >> {
>> >>
>> >> List list=_session.createQuery("select name from
>> >> Company").list();
>> >> return list;
>> >> }
>> >> }
>> >>
>> >> run error is
>> >> :org.apache.tapestry.internal.services.TransformationException:
>> >> Error obtaining injected value for field
>> >> com.myspacce.pages.Start._session:
>> >> No service implements the interface org.hibernate.Session.
>> >>
>> >> can you help me how to implements the interface org.hibernate.Session 
> ?
>> >>
>> >> best regards
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/how-to-use-ioc-of-t5---tf4604761.html#a13148406
>> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > 

Re: how to use ioc of t5 ?

2007-10-11 Thread Kristian Marinkovic
do you have the hibernate libraries in your classpath?




lasitha <[EMAIL PROTECTED]> 
11.10.2007 09:14
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: how to use ioc of t5 ?






In my setup i've got all my hibernated classes in the 'entities'
package - which is automatically picked up tapestry-hibernate - so
i've not had to make a contribution like this.  I'm afraid i don't
have time to play with it right now either..., sorry.

As an experiment, you might try moving (some of) your hibernated
classes from 'domain' into 'entities' and commenting out the
contribution code, just so we know whether your exception is related
to contributing a package or something else.

Also, is there more to that exception stack?  It doesn't seem to
mention a cause...

Lastly, i have a vague recollection of a past thread in this list
about contributing packages to tapestry-hibernate... did you happen to
run across anything in the archives?

Cheers,
lasitha.


On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>
> thanks.
>
> I hava add this to AppModule:
>
>  public static void
> contributeHibernateSessionSource(Configuration 
configuration)
> {
> configuration.add("com.myspacce.domain");
> }
>
> Company.java is in  com/myspacce/domain:
>
> import javax.persistence.*;
> @Entity
> @Table(name="company")
> public class Company {
> @Id
> @GeneratedValue
>
> private int id;
> private String name;
>
> public Company()
> {
> }
> public int getId()
> {
> return id;
> }
> public void setId(int id)
> {
> this.id=id;
> }
> public String getName()
> {
> return name;
> }
> public void setName(String name)
> {
> this.name=name;
> }
>
> I have the tapestry-hibernate module in my classpath.
>
> error is :
>
> Error invoking service builder method
> 
org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
> ThreadCleanupHub) (at HibernateModule.java:62) (for service
> 'HibernateSessionManager'): Exception constructing service
> 'HibernateSessionSource': Error invoking constructor
> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl(Log,
> Collection, ClassNameLocator) (at HibernateSessionSourceImpl.java:35) 
(for
> service 'HibernateSessionSource'):
> org/hibernate/cfg/annotations/ResultsetMappingSecondPass
>
>
> thanks
>
>
>
>
>
>
>
>
>
>
>
> lasitha wrote:
> >
> > It looks like you don't have the tapestry-hibernate module in your
> > classpath.
> >
> > There are a couple of starters you should checkout:
> > http://tapestry.apache.org/tapestry5/tapestry-hibernate/
> > http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate
> >
> > And don't forget to search the mailing list archives:
> > http://wiki.apache.org/tapestry/Tapestry5HowToSearchTheMailingLists
> >
> > Let us know if those don't help,
> > Cheers, lasitha.
> >
> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
> >>
> >> hello all :
> >>
> >>  I write a page class :
> >>
> >> package com.myspacce.pages;
> >> import java.util.*;
> >> import org.apache.tapestry.annotations.*;
> >> import org.hibernate.*;
> >> public class Start
> >> {
> >> public String _name;
> >>
> >> @Inject
> >> private Session _session;
> >>
> >> public List getList()
> >> {
> >>
> >> List list=_session.createQuery("select name from
> >> Company").list();
> >> return list;
> >> }
> >> }
> >>
> >> run error is
> >> :org.apache.tapestry.internal.services.TransformationException:
> >> Error obtaining injected value for field
> >> com.myspacce.pages.Start._session:
> >> No service implements the interface org.hibernate.Session.
> >>
> >> can you help me how to implements the interface org.hibernate.Session 
?
> >>
> >> best regards
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/how-to-use-ioc-of-t5---tf4604761.html#a13148406
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
http://www.nabble.com/how-to-use-ioc-of-t5---tf4604761.html#a13149167
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--

Re: how to use ioc of t5 ?

2007-10-11 Thread MavenMan

thank you very much! I make it out !
but a new problem is 
http://www.nabble.com/T5%3Ahow-to-fetch-only-one-record---tf4605478.html

lasitha wrote:
> 
> In my setup i've got all my hibernated classes in the 'entities'
> package - which is automatically picked up tapestry-hibernate - so
> i've not had to make a contribution like this.  I'm afraid i don't
> have time to play with it right now either..., sorry.
> 
> As an experiment, you might try moving (some of) your hibernated
> classes from 'domain' into 'entities' and commenting out the
> contribution code, just so we know whether your exception is related
> to contributing a package or something else.
> 
> Also, is there more to that exception stack?  It doesn't seem to
> mention a cause...
> 
> Lastly, i have a vague recollection of a past thread in this list
> about contributing packages to tapestry-hibernate... did you happen to
> run across anything in the archives?
> 
> Cheers,
> lasitha.
> 
> 
> On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>>
>> thanks.
>>
>> I hava add this to AppModule:
>>
>>  public static void
>> contributeHibernateSessionSource(Configuration configuration)
>> {
>> configuration.add("com.myspacce.domain");
>> }
>>
>> Company.java is in  com/myspacce/domain:
>>
>> import javax.persistence.*;
>> @Entity
>> @Table(name="company")
>> public class Company {
>> @Id
>> @GeneratedValue
>>
>> private int id;
>> private String name;
>>
>> public Company()
>> {
>> }
>> public int getId()
>> {
>> return id;
>> }
>> public void setId(int id)
>> {
>> this.id=id;
>> }
>> public String getName()
>> {
>> return name;
>> }
>> public void setName(String name)
>> {
>> this.name=name;
>> }
>>
>> I have the tapestry-hibernate module in my classpath.
>>
>> error is :
>>
>> Error invoking service builder method
>> org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
>> ThreadCleanupHub) (at HibernateModule.java:62) (for service
>> 'HibernateSessionManager'): Exception constructing service
>> 'HibernateSessionSource': Error invoking constructor
>> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl(Log,
>> Collection, ClassNameLocator) (at HibernateSessionSourceImpl.java:35)
>> (for
>> service 'HibernateSessionSource'):
>> org/hibernate/cfg/annotations/ResultsetMappingSecondPass
>>
>>
>> thanks
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> lasitha wrote:
>> >
>> > It looks like you don't have the tapestry-hibernate module in your
>> > classpath.
>> >
>> > There are a couple of starters you should checkout:
>> > http://tapestry.apache.org/tapestry5/tapestry-hibernate/
>> > http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate
>> >
>> > And don't forget to search the mailing list archives:
>> > http://wiki.apache.org/tapestry/Tapestry5HowToSearchTheMailingLists
>> >
>> > Let us know if those don't help,
>> > Cheers, lasitha.
>> >
>> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>> >>
>> >> hello all :
>> >>
>> >>  I write a page class :
>> >>
>> >> package com.myspacce.pages;
>> >> import java.util.*;
>> >> import org.apache.tapestry.annotations.*;
>> >> import org.hibernate.*;
>> >> public class Start
>> >> {
>> >> public String _name;
>> >>
>> >> @Inject
>> >> private Session _session;
>> >>
>> >> public List getList()
>> >> {
>> >>
>> >> List list=_session.createQuery("select name from
>> >> Company").list();
>> >> return list;
>> >> }
>> >> }
>> >>
>> >> run error is
>> >> :org.apache.tapestry.internal.services.TransformationException:
>> >> Error obtaining injected value for field
>> >> com.myspacce.pages.Start._session:
>> >> No service implements the interface org.hibernate.Session.
>> >>
>> >> can you help me how to implements the interface org.hibernate.Session
>> ?
>> >>
>> >> best regards
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/how-to-use-ioc-of-t5---tf4604761.html#a13148406
>> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-use-ioc-of-t5---tf4604761.html#a13149167
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, 

Re: how to use ioc of t5 ?

2007-10-11 Thread lasitha
In my setup i've got all my hibernated classes in the 'entities'
package - which is automatically picked up tapestry-hibernate - so
i've not had to make a contribution like this.  I'm afraid i don't
have time to play with it right now either..., sorry.

As an experiment, you might try moving (some of) your hibernated
classes from 'domain' into 'entities' and commenting out the
contribution code, just so we know whether your exception is related
to contributing a package or something else.

Also, is there more to that exception stack?  It doesn't seem to
mention a cause...

Lastly, i have a vague recollection of a past thread in this list
about contributing packages to tapestry-hibernate... did you happen to
run across anything in the archives?

Cheers,
lasitha.


On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
>
> thanks.
>
> I hava add this to AppModule:
>
>  public static void
> contributeHibernateSessionSource(Configuration configuration)
> {
> configuration.add("com.myspacce.domain");
> }
>
> Company.java is in  com/myspacce/domain:
>
> import javax.persistence.*;
> @Entity
> @Table(name="company")
> public class Company {
> @Id
> @GeneratedValue
>
> private int id;
> private String name;
>
> public Company()
> {
> }
> public int getId()
> {
> return id;
> }
> public void setId(int id)
> {
> this.id=id;
> }
> public String getName()
> {
> return name;
> }
> public void setName(String name)
> {
> this.name=name;
> }
>
> I have the tapestry-hibernate module in my classpath.
>
> error is :
>
> Error invoking service builder method
> org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
> ThreadCleanupHub) (at HibernateModule.java:62) (for service
> 'HibernateSessionManager'): Exception constructing service
> 'HibernateSessionSource': Error invoking constructor
> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl(Log,
> Collection, ClassNameLocator) (at HibernateSessionSourceImpl.java:35) (for
> service 'HibernateSessionSource'):
> org/hibernate/cfg/annotations/ResultsetMappingSecondPass
>
>
> thanks
>
>
>
>
>
>
>
>
>
>
>
> lasitha wrote:
> >
> > It looks like you don't have the tapestry-hibernate module in your
> > classpath.
> >
> > There are a couple of starters you should checkout:
> > http://tapestry.apache.org/tapestry5/tapestry-hibernate/
> > http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate
> >
> > And don't forget to search the mailing list archives:
> > http://wiki.apache.org/tapestry/Tapestry5HowToSearchTheMailingLists
> >
> > Let us know if those don't help,
> > Cheers, lasitha.
> >
> > On 10/11/07, MavenMan <[EMAIL PROTECTED]> wrote:
> >>
> >> hello all :
> >>
> >>  I write a page class :
> >>
> >> package com.myspacce.pages;
> >> import java.util.*;
> >> import org.apache.tapestry.annotations.*;
> >> import org.hibernate.*;
> >> public class Start
> >> {
> >> public String _name;
> >>
> >> @Inject
> >> private Session _session;
> >>
> >> public List getList()
> >> {
> >>
> >> List list=_session.createQuery("select name from
> >> Company").list();
> >> return list;
> >> }
> >> }
> >>
> >> run error is
> >> :org.apache.tapestry.internal.services.TransformationException:
> >> Error obtaining injected value for field
> >> com.myspacce.pages.Start._session:
> >> No service implements the interface org.hibernate.Session.
> >>
> >> can you help me how to implements the interface org.hibernate.Session ?
> >>
> >> best regards
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/how-to-use-ioc-of-t5---tf4604761.html#a13148406
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/how-to-use-ioc-of-t5---tf4604761.html#a13149167
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 Cryptic Error

2007-10-11 Thread Peter Stavrinides

Oh I see! thanks  !!

My BreadCrumbs class needs to be an ASO which is needed by the 
navigation component, it also requires ComponentResources. I was 
injecting them (using @Inject and @ApplicationState)


So instead I should use InjectService("ComponentResources") in the 
BreadCrumbsImpl constructor and then Navigation should implement 
BreadCrumbs. But I'm not sure how to create the service as an ASO in 
AppModule, perhaps:


@Inject
private ComponentResources resources_;

  public void contributeApplicationStateManager(
   MappedConfiguration 
configuration) {
   ApplicationStateCreator creator = new 
ApplicationStateCreator() {

   public BreadCrumbs create() {
   return new BreadCrumbs(resources_);
   }
   };

   configuration.add(BreadCrumbs.class, new 
ApplicationStateContribution(

   "session", creator));
   }

Thanks again,
Peter

Howard Lewis Ship wrote:

Please check out:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/reload.html

Basically, you shouldn't mix component classes with services classes. When
you do so, you need to define an interface for your components to implement.

On 10/10/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
  

Hi All

I use Tapestry 5, Java 6 with the maven plugin in eclipse 3.3. I am
building a user specific navigation component, and I am getting this
strange error:

java.lang.LinkageError
loader constraint violation: when resolving method
"com.web.services.BreadCrumbs.getRootLink()Lcom/web/components/IrmLink;"
the class loader (instance of

org/apache/tapestry/internal/services/ComponentInstantiatorSourceImpl$PackageAwareLoader)
of the current class, com/web/components/Navigation, and the class
loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for
resolved class, com/web/services/BreadCrumbs, have different Class
objects for the type com/web/components/IrmLink used in the signature

I have tried to clean the project several times thinking this is an
issue with cached resources on the classpath, but have had no luck, so I
am starting to wonder if this could relate to Java 6 and the maven plugin.

Has anyone seen this before?

thanks for your help.

Peter




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to fetch only one record ?

2007-10-11 Thread MavenMan

I have fetched a record set from database.but now I want to only one record .
so I code :

//page class
import com.myspacce.domain.Company;
public Company getCom()
{
_session=_sessionmanager.getSession();
return (Company)_session.createQuery("from Company where 
id='11'");
}

//HTML page:
 ${com.name}
the error is:
org.hibernate.impl.QueryImpl cannot be cast to com.myspacce.domain.Company

I want to kown how to do ? 
please help me .
thanks!!
from Chinese

-- 
View this message in context: 
http://www.nabble.com/how-to-fetch-only-one-record---tf4605478.html#a13150571
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]