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 nothin

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.u

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 >

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

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: > ${upd

[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 b

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 th

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.ap

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 :). Mor

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://hibe

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

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 hiberna

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

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 breakpoin

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?

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 sys

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,

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 ope

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 foote

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 ___

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 a

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 yo

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: Googl

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 JU

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

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

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

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 relati

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 Tap

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 : > bin

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

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

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

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.

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.

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:textmo

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.t

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.BindingExce

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 PROTECTE

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

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 Subj

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 @Persis

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

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 P

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; -

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 -

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 |

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 dat

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

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

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

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 onActionFromAutoLog

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 ?

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 auto

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

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

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 constru

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 wh