Tapestry 5.0.8 error - Websphere 6.1.0.13

2008-01-22 Thread Brandon S
All, Below is the error I'm getting on Websphere 6.1.0.13 and Tapestry 5.0.8 and Howard's first response. Anyone have any ideas? Thanks in advance, Brandon Staton >From Howard: The OSGi stuff makes me a little nervous that its some nasty class loader issue in WebSphere. I've already starte

T5: TapestryTestCase and EasyMock

2008-01-22 Thread Angelo Chen
Hi, I have a disturbing problem, following is a test using TapestryTestCase, Easymock will give me an error: ava.lang.IllegalStateException: missing behavior definition for the preceeding method call DBServices.findUsrByCode("M123") if I change the method test5 to test6, or i comment out the 'tes

RE: bidirectional dom interface

2008-01-22 Thread Ken in nashua
This was the issue with refresh. https://issues.apache.org/jira/browse/TAPESTRY-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561377#action_12561377Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: bidirectional dom interfac

Re: t5 class cast

2008-01-22 Thread Dave . Derry
I think your test is wrong. Don't you want if (field instanceof MyInput){ ? Dave We must begin not just to act, but to think, for there is no better slave than the one who believes his slavery to be freedom, and we are in no greater peril than when we cannot see the chai

Re: T5: Page from sub-package

2008-01-22 Thread kranga
Thanks for the input Kevin... The T5 documentation states: The dispatcher here strips terms off of the path until it finds a known page name. Thus, "/mypage/27" would look first for a page whose name was "mypage/27", then look for a page name "mypage". Assuming the second search was succesful,

t5 class cast

2008-01-22 Thread riccaruf
Hi everybody, I've got this kind of method in my validator class public void render(Field field, Void constraintValue, MessageFormatter formatter, MarkupWriter writer, FormSupport formSupport) { System.out.println("### field:"+field);

Re: T5: service access to ApplicatonDefaults

2008-01-22 Thread Chris Lewis
Thanks Robert, much appreciated! Robert Zeigler wrote: You can either: 1) Inject the symbol directly, or 2) Inject the SymbolSource service, and grab your symbols from there. This is a much more suitable alternative than accessing "ApplicationDefaults" directly, because you can: 1) cont

RE: property/parameter transmission T-4.1.3

2008-01-22 Thread Ken in nashua
This turned out to be the issue https://issues.apache.org/jira/browse/TAPESTRY-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561377#action_12561377 corrupting all page properties and component parameters at runtime to all be silent and not used

RE: T-4.1.3 - Refresh versus Form-Submit

2008-01-22 Thread Ken in nashua
Confirmation of single reference usage does in fact resolve all my page property corruption and component parameter corruption... Phee.. Now I can start coding again. Glad to have the faith restored.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: T-4.1.3

RE: PropertySelection binding bug T-4.1.3 ?

2008-01-22 Thread Ken in nashua
This turned out to be the issue... https://issues.apache.org/jira/browse/TAPESTRY-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561377#action_12561377Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: PropertySelection bi

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

2008-01-22 Thread Ken in nashua
This turned out to be the issue for this thread... https://issues.apache.org/jira/browse/TAPESTRY-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561377#action_12561377Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: para

RE: T-4.1.3 - Refresh versus Form-Submit

2008-01-22 Thread Ken in nashua
Ok, Upon changing the template to use one reference to the BLOCK component instance using a RENDERBLOCK instead of multiple references... I see the ID's are now what I coded... value="tableSizeSelect,pagingSpanSelect,... as opposed to value="tableSizeSelect_0,pagingSpanSelect_0

Re: T5: service access to ApplicatonDefaults

2008-01-22 Thread Robert Zeigler
You can either: 1) Inject the symbol directly, or 2) Inject the SymbolSource service, and grab your symbols from there. This is a much more suitable alternative than accessing "ApplicationDefaults" directly, because you can: 1) contribute to "factory defaults" for a default configuration

RE: T-4.1.3 - Refresh versus Form-Submit

2008-01-22 Thread Ken in nashua
Thanks Kev for stepping up. Yes it appears to be an id dilemma and no logic is in place to accomodate multiple references to a single instance in this dom space since ALL id's to ALL dom nodes within the same dom child collection need to be unique. So I'm stuck. Sorry about the fumes... but

T5: service access to ApplicatonDefaults

2008-01-22 Thread Chris Lewis
Dear list, I'm working on a service that can be configured via string symbols. It seems to me like a good way to provide this is by allowing the developer contribute symbols to the ApplicationDefaults in the app module, like so: public static void contributeApplicationDefaults(MappedConfigur

Re: T-4.1.3 - Refresh versus Form-Submit

2008-01-22 Thread Kevin Menard
The IDs are different because in HTML, IDs must be unique. UpdateComponent() and friends take this into consideration. If you're trying to do things from custom JavaScript, you'll either have to use Tapestry facilities to grab the correct ID or use another selection criteria. I've personally gott

RE: T-4.1.3 - Refresh versus Form-Submit

2008-01-22 Thread Ken in nashua
Can anyone comment on this finding... Here is PropertySelection template code from Gallery.html Here is the rendered markup within the form value="tableSizeSelect, pagingSpanSelect, foreach, If, If_0, editLinkElse, If_1, If_0_0,

T-4.1.3 - Refresh versus Form-Submit

2008-01-22 Thread Ken in nashua
Folks, SUBJECT: T-4.1.3 - Refresh versus Form-Submit I have an instance where neither of the above actions (browser refresh button OR form submit) results in normal behavior. My REFRESH resets the form to everything initialized (cached parameters and page properties are all reset) but the pa

Re: [T5][ANN] - Tapestry+Acegi+Spring+JDBC+Hibernate+JPA+HSQLDB all in one

2008-01-22 Thread Mohammad Shamsi
another way : encrypt your and password and then send it with url. you can do this in two way 1 - with java code in Login.java class : this is my sample that used in a project : public String digest(String password, String salt) { if ((password == null) || (salt == null)) {

Re: T5: Page from sub-package

2008-01-22 Thread Kevin Menard
I remember running into that before. I spent some time trying to figure it out before deciding to just restructure my pages. The issue, as near as I can tell, is that Tapestry cannot distinguish between activation context and pages. Or rather, a preference is given to the former over the latter.

Re: [T5][ANN] - Tapestry+Acegi+Spring+JDBC+Hibernate+JPA+HSQLDB all in one

2008-01-22 Thread Baptiste Meurant
Thanks for your response. It is the solution that I decided to use. It is perfectly working but without using T5 mechanisms. I was wondering if some "full T5" solution was posible. Thanks again, Baptiste. dalahoo wrote: > > a simple idea is to change Login.tml to submit directly to acegi fil

Re: [T5][ANN] - Tapestry+Acegi+Spring+JDBC+Hibernate+JPA+HSQLDB all in one

2008-01-22 Thread Mohammad Shamsi
a simple idea is to change Login.tml to submit directly to acegi filter : On Jan 22, 2008 4:43 PM, Baptiste Meurant <[EMAIL PROTECTED]> wrote: > > Hi, > >Thank you for this great work. It will be really useful. > >I still have a question about security T5

Re: [T5][ANN] - Tapestry+Acegi+Spring+JDBC+Hibernate+JPA+HSQLDB all in one

2008-01-22 Thread Baptiste Meurant
Hi, Thank you for this great work. It will be really useful. I still have a question about security T5/acegi integration : the "classic" solution that you used to perform strong authentication with acegi through T5 is creating a T5 LinkImpl object. You give then parameters (login and p

T5: Page from sub-package

2008-01-22 Thread kranga
I'm using 5.0.7 I have a page called Admin.java in the root "pages" package. I also have a page called Search.java in package "pages/admin/" When I send a request to /admin, Tapestry correctly renders the admin page. But when I send a request to /admin/search, I still get the admin page. How d

[T5][ANN] - Tapestry+Acegi+Spring+JDBC+Hibernate+JPA+HSQLDB all in one

2008-01-22 Thread Mohammad Shamsi
Hi all, latest release of my phone book application is available now, In this release i used : - Tapestry 5.0.7 as a Web MVC framework. - Acegi 1.0.5 as a Security System. - Spring 2.5 as a Application framework. - Spring JDBC for Data Access Layer. - Hibernate 3.2.4 an alternativ

Re: T5: Inject services into domain objects?

2008-01-22 Thread Kristian Marinkovic
Hibernate Tuplizers and Interceptors give you the oppurtunity to create your entities on your own or at least a way/point to initialize them before or after they have been loaded. this is a great place to set services obtained from an IOC container. i see two more possibilities to solve your p

Re: Antwort: Layout component

2008-01-22 Thread Michael Courcy
Kristian, I didn't know that, I'll try it. Thanks. Kristian Marinkovic a écrit : hi michael, great tutorial... had to figure out this myself :) you can simplify the getLeftContent() method if you use the value attribute of the Parameter annotation: @Parameter(value="block:left") private

Antwort: Layout component

2008-01-22 Thread Kristian Marinkovic
hi michael, great tutorial... had to figure out this myself :) you can simplify the getLeftContent() method if you use the value attribute of the Parameter annotation: @Parameter(value="block:left") private Object left; Object getLeftContent() { return left; } if no left parameter is pass