Re: T5: select updating in form?

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 16:09:22 -0300, Alex Kotchnev <[EMAIL PROTECTED]> escreveu: I've never tried to do this on my own yet, but I'm just wondering : is it hard to step outside of T5 as a framework and do the same w/ just plain AJAX (e.g. an XHR request through prototype, JSON coming back and

Re: T5: Submodule in jar with components and pages

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 19:24:33 -0300, Inge Solvoll <[EMAIL PROTECTED]> escreveu: My questions are: - Can I put pages in the library, not only components? Yes! - Will the pages be affected by the configuration from the webapp's Module, or will they only be configured by the library's Module

Re: wiki's ControlAccess sample NPE

2008-10-08 Thread Thiago H. de Paula Figueiredo
Post your code here so we can help you better. :) Em Wed, 08 Oct 2008 18:34:47 -0300, lyifan <[EMAIL PROTECTED]> escreveu: Hi all, I've been trying to run the ControlAccess sample on the Tapestry5Howtos site during these 2 days. But I haven't got any luck When Component page = componen

Re: Problem upgrading to 5.0.15

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 16:22:32 -0300, Keith Bottner <[EMAIL PROTECTED]> escreveu: BTW, do you know of anywhere there is a list of ALL of the possibly methods that could be called in AppModule? I would like to find some kind of definitive list so that I can track these down on my own the nex

T5: Submodule in jar with components and pages

2008-10-08 Thread Inge Solvoll
Hi! I would like to collect some pages and components in my application that logically belong together in a jar file (a library). What I know so far is what I've read in the book, that it is pretty much like in the webapp, you just have to provide the base package in META-INF and use a Module clas

Fwd: [Comment] Re: Tapestry 5 and GWT - part 2

2008-10-08 Thread Daniel Jue
Pär Dahlberg has added the source code link to his article on T5 and GWT using the NetBeans IDE. Daniel -- Forwarded message -- From: pmd/blog <[EMAIL PROTECTED]> Date: Wed, Oct 8, 2008 at 6:03 PM Subject: [Comment] Re: Tapestry 5 and GWT - part 2 To: [EMAIL PROTECTED] Comment f

Re: [T5] RadioGroup and Radio holding enum values

2008-10-08 Thread Ulrich Stärk
This should be possible by going over an EnumSet (or anything else Iterable) with the loop component and rendering an option component in every iteration. Something like @Property private EnumSet enums; @Property private EnumType enum; @Property private EnumType loopValue; I jus

wiki's ControlAccess sample NPE

2008-10-08 Thread lyifan
Hi all, I've been trying to run the ControlAccess sample on the Tapestry5Howtos site during these 2 days. But I haven't got any luck When Component page = componentSource.getPage(pageName) is called, a NPE is thrown. I'm using Tapestry5.0.15 and tomcat 6.0.18 on windowsXp sp3 Any comment is wel

Re: tapestry-spring-security and openid

2008-10-08 Thread Ulrich Stärk
I already planned to write a wiki article on this, but this will have to wait until the end of the week. Cheers, Uli Alex Kotchnev schrieb: Uli, could you post your final module config somewhere ? Pretty soon I was planning to do open id in a small app, it would be great to get a running s

Re: tapestry-spring-security and openid

2008-10-08 Thread Alex Kotchnev
Uli, could you post your final module config somewhere ? Pretty soon I was planning to do open id in a small app, it would be great to get a running start if possible. Cheers, Alex Kotchnev On Wed, Oct 8, 2008 at 3:19 AM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > Whoohoo! It's working :-). I

Re: Treating a Component Like a Form Field

2008-10-08 Thread Keith Bottner
Do you have an example of this working. I have been going around and around and have not been able to get this to work, so I was hoping there was some code you wouldn't mind sharing that demonstrates this working. Thanks in advance, Keith On Oct 7, 2008, at 2:07 PM, Thiago H. de Paula Fig

Re: Problem upgrading to 5.0.15

2008-10-08 Thread Keith Bottner
Yep, that was it. Thanks for the pointers. BTW, do you know of anywhere there is a list of ALL of the possibly methods that could be called in AppModule? I would like to find some kind of definitive list so that I can track these down on my own the next time something like this occurs. Th

Re: [T5] RadioGroup and Radio holding enum values

2008-10-08 Thread Alexey Hanin
But what if I'll have to deal with variable length radio groups where item value can't be hard-coded? On Wed, Oct 8, 2008 at 4:43 PM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > I believe you'll have to write a TypeCoercer from String to EnumType and > back and contribute that to the TypeCoercer ser

Re: T5: select updating in form?

2008-10-08 Thread Alex Kotchnev
I've never tried to do this on my own yet, but I'm just wondering : is it hard to step outside of T5 as a framework and do the same w/ just plain AJAX (e.g. an XHR request through prototype, JSON coming back and populating the second select with the right values) ? Or would this somehow mess up the

Re: [Solved!] Re: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 15:30:33 -0300, Jonathan Barker <[EMAIL PROTECTED]> escreveu: It would be helpful if Tapestry could report this as a need to declare something as static rather than as a recursion problem. A JIRA issue perhaps? AFAIK, only the contributeAlias and contributeApplicationDef

T4 pageBeginRender bug with thread dump

2008-10-08 Thread Phillip Rhodes
I use 4.0.2, but this may apply to 4.1, 5.x... I had a problem with my application pegging 100% on the CPU. This only occurs if there is an uncaught Exception in the pageBeginRender of a page. If I wrap my code with an try/catch, there are no issues. If I do not do a try/catch, the CPU hi

"named" page context parameters ?

2008-10-08 Thread Joel Halbert
Hi, Is it possible to have "named" page context parameters? (along the lines of Wicket PageParameters). I would like to be able to have bookmarkable URLs but rather than indexing page context parameters (in onActivate) by ordinal in a list I would rather key them by name. Thx, Joel -- SU3

RE: [Solved!] Re: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-08 Thread Jonathan Barker
Thiago, That sounds familiar. There were some questions about SaltSource and they also sounded familiar but perhaps I hit the static method issue while playing with SaltSources. It would be helpful if Tapestry could report this as a need to declare something as static rather than as a recursion

Re: Error obtaining injected value for field

2008-10-08 Thread Andy Pahne
There are a two things that seem wrong to me: 1. do not instanciate @Inject private XMLBuilder builder; @Inject private XMLBuilder builder = new XMLBuilder(); I never instanciate injected thingies and it always works. 2. inject a page like this: @Inj

Error obtaining injected value for field

2008-10-08 Thread bob_k
Hi folks. It seems to be a simple problem but I cannot figure out what's going on. I have created an XMLBuilder class that dynamically generates an XML file, "XMLBuilder" and when I try to instantiate it in a Tapestry page I'm getting this error: ... # java.

[Solved!] Re: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-08 Thread Thiago H. de Paula Figueiredo
After a lot of trial and error, I have just found that the contributeApplicationDefaults() and contributeAlias() *must be static*, otherwise the Alias service building falls into a recursive service building exception. I have just found also that you can mix static and non-static methods (contribu

Re: Error obtaining injected value for field

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 15:01:31 -0300, bob_k <[EMAIL PROTECTED]> escreveu: public class GenerateXML { @Inject private XMLBuilder builder = new XMLBuilder(); Remove the @Inject annotation, as you're instantiating XMLBuilder on the spot instead of getting it through Tapestry-Ioc.

Re: What is the difference between a "Translator" and "FieldTranslator"

2008-10-08 Thread Joachim Van der Auwera
Howard Lewis Ship wrote: A FieldTranslator is a wrapper around a Translator that is configured for a specific Field component. Thanks. Should these not be created automatically? This has caused me major headaches for migrating to 5.0.15, I had to change all my translators, assure they also

Re: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-08 Thread Joachim Van der Auwera
Was planning to write a similar post to the list. I have the same problem and it seems to be caused by the integration of tapestry-spring-integration. I have also not defined a SaltSource. I do have the following contributions : public static UserDetailsService buildUserDetailsService()

Re: What is the difference between a "Translator" and "FieldTranslator"

2008-10-08 Thread Howard Lewis Ship
A FieldTranslator is a wrapper around a Translator that is configured for a specific Field component. On Wed, Oct 8, 2008 at 5:40 AM, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote: > And when should which be used? > > I am getting coercing errors trying to convert between the two, but it is >

Re: Problem upgrading to 5.0.15

2008-10-08 Thread Joachim Van der Auwera
Hi, I feel your pain :-) I fixed this by changing the contribution in AppModule to public static void contributeTranslatorDefaultSource( MappedConfiguration configuration ) It now seems to work for me. Kind regards, Joachim Keith Bottner wrote: After upgrading to 5.0.15 (i.e. changing out

Re: Scalability of T5 : Form Wizard options

2008-10-08 Thread John Jimmy Dondapati
Hi Renat, First thanks for the detailed discussion. On Wed, Oct 8, 2008 at 2:16 AM, Renat Zubairov <[EMAIL PROTECTED]>wrote: > Hello John, > > > >> > >> In this case, you wouldn't use the page activation context, as you're > >> filling the page properties yourself. As Tapestry uses > redirect-a

Problem upgrading to 5.0.15

2008-10-08 Thread Keith Bottner
After upgrading to 5.0.15 (i.e. changing out the jars and modifying the ioc to load Tomcat module components) I get the following error when accessing any page that contains a form. Has anyone seen this? org.apache.tapestry5.ioc.internal.util.TapestryException Exception constructing service

5.0.15 has the same Tomcat problem as 5.0.14

2008-10-08 Thread Keith Bottner
I just upgraded from 5.0.14 to 5.0.15 and it has the same problem with Tomcat that the previous version had. It does NOT recognize component libraries. In 5.0.14 there was a similar problem and I found a link that described how to fix it here: http://www.nabble.com/Tapestry-5-deployed-on-To

Re: T5 blueprints application?

2008-10-08 Thread Andy Huhn
Hi Janos, I'd love to take credit for this...but Geoff has put probably hundreds of hours into that project...he deserves the credit. :o) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: T5: select updating in form?

2008-10-08 Thread photos
Quoting Ulrich Stärk <[EMAIL PROTECTED]>: Come on, you could really invest some mental effort instead of asking us to do your work... It's not working out of the box, that much is clear. But you don't have to use two forms either... Thanks for the example Uli. Contrary to what you may think,

Re: T5 blueprints application?

2008-10-08 Thread János Jarecsni
Hi Andy, Thanks for pointing me to Jumpstart! It is a great piece of work! I already set up the environment and it is fun! Lots of good practice can be learned easily, and it is really easy to start a new project using the ant task provided! It definitely helps someone get familiar with T5 in no t

Re: [T5] RadioGroup and Radio holding enum values

2008-10-08 Thread Ulrich Stärk
I believe you'll have to write a TypeCoercer from String to EnumType and back and contribute that to the TypeCoercer service. See http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/TapestryModule.html for examples how to do this. But if you can live with your values not bei

Re: T5: select updating in form?

2008-10-08 Thread Ulrich Stärk
Come on, you could really invest some mental effort instead of asking us to do your work... It's not working out of the box, that much is clear. But you don't have to use two forms either... @Property private String[] values = { "foo", "bar" }; private String[] fooStrings = { "fo

[T5] RadioGroup and Radio holding enum values

2008-10-08 Thread Alexey Hanin
Hello, I'm trying to use RadioGroup with Enum values and getting ClassCastException: java.lang.String cannot be cast to java.lang.Enum. My page is as follows: public class Page { private EnumValueEncoder enumTypeEncoder = new EnumValueEncoder(EnumType.class); private EnumType enumType;

Re: Namespace prefix for URI 'xmlns' is not defined.

2008-10-08 Thread Joel Halbert
I figured out what was causing this problem. In my classpath I have a SAXParser that I use (Piccolo) that doesn't handle namespaces well. To fix it I forced Tapesty (which loads the parser in TemplateParserImpl.java) to use the xerces SAXParser by including the system property: -Dorg.xml.s

Re: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 03:27:33 -0300, Jonathan Barker <[EMAIL PROTECTED]> escreveu: I hit that once, but I can't remember what caused it. Have you made sure that you don't have multiple copies of the library in your classpath? Yes. Can you post your AppModule? It is not a single AppModule

What is the difference between a "Translator" and "FieldTranslator"

2008-10-08 Thread Joachim Van der Auwera
And when should which be used? I am getting coercing errors trying to convert between the two, but it is unclear to me why there is a difference (the interfaces look very similar). Joachim -- Joachim Van der Auwera PROGS bvba, progs.be --

Re: T5: select updating in form?

2008-10-08 Thread photos
Further to this, I can see it can be done using two forms, but that isn't very nice. As this is such a common requirement (and one that I used without problems in an application using Tapestry 3) I am somewhat surprised that there are no examples offered as to how to do this in Tapestry 5

Loops in Form - where are my serialized

2008-10-08 Thread Szemere Szemere
I'm using a Loop in a Form to create a list of checkboxes. I'm having trouble getting hold of the list after it has been submitted. How is it possible to get hold of the collection of objects associated with the loop? The individual checkBoxItems get serialised fine, but a persisted list of them (

Re: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 03:26:04 -0300, Michael Gerzabek <[EMAIL PROTECTED]> escreveu: Can you post (excerpts of) your Module class where you build your own SaltSource? I don't build my own SaltSource . . . -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor

Re: T5 - Localization and Templating Questions

2008-10-08 Thread Tobias Wehrum
Hi there, a late answer, but maybe good to have in the archive when somebody browses it: 1) You can use the method getMessages() of the service ComponentResources to get the message bundle of the Template. - Tobias Filip S. Adamsen schrieb: Hi, Welcome to the list. :) Regarding your que

Re: NaN Undefined

2008-10-08 Thread Marcelo Lotif
This is a known issue, marked to be solved on the next version (5.0.16). See: https://issues.apache.org/jira/browse/TAP5-225 There's a workaround on the last comment. You can also use the DateField from T5Components: http://code.google.com/p/tapestry5-components/ On Wed, Oct 8, 2008 at 6:37 AM,

Re: Namespace prefix for URI 'xmlns' is not defined.

2008-10-08 Thread Joel Halbert
Hi, Just to clarify on this problem: I am using version 5.0.15 If I remove the following element: t:page="Index">refresh the page loads fine. I'd really appreciate any pointers! Also - I take it the problem is not related to https://issues.apache.org/jira/browse/TAP5-125 ? Thx Joel Joel H

Re: T5: How to use Quartz with T5?

2008-10-08 Thread Szemere Szemere
Sorry you also need, step: 5. In pom.xml add quartz quartz 1.5.2 :) Szemere

Re: T5: How to use Quartz with T5?

2008-10-08 Thread Szemere Szemere
We got Quartz working with: 1. In src/main/webapp/WEB-INF/web.xml, we add: QuartzInitializer org.quartz.ee.servlet.QuartzInitializerServlet 1 2. Put quartz.properties at: src/main/resources/quartz.properties 3. Out job file at: src/main/resources/quartz.jobs.xml 4. T

RE: Treating a Component Like a Form Field

2008-10-08 Thread Blower, Andy
Coincidentally we're having the same issues where we're trying to create reusable sections of forms as components that we'll use on lots of different forms. The information from these components is aggregated into a single value object which needs to get back into the parent page. For example, a

Re: [T4] IPropertySelectionModel

2008-10-08 Thread Mohammad Irfan
What's the purpose of IOptionRenderer? How can I set the selected option? On Wed, Oct 8, 2008 at 4:10 PM, Mohammad Irfan <[EMAIL PROTECTED]> wrote: > Hi, > How can I implements selected option in model class that implements > IPropertySelectionModel? > > Thanks > -- Wassalamu'alaikum wr. wb. M

Namespace prefix for URI 'xmlns' is not defined.

2008-10-08 Thread Joel Halbert
Hi, I'm trying to set up my first page in Tapestry but I don't seem to be able to shake this exception: java.lang.RuntimeException: Namespace prefix for URI 'xmlns' is not defined. at org.apache.tapestry5.dom.Element.toNamespacePrefix(Element.java:502) I'd be grateful for any suggestions.

coercion for Translator ?

2008-10-08 Thread Joachim Van der Auwera
I am trying to upgrade from tapestry 5.0.14 to 5.0.15, and am now getting the following exception : Render queue error in BeginRender[IdentityEdit:edit.inlinelinkone.edit.inlineprimitivelist.textfield]: Failure reading parameter 'translate' of component IdentityEdit:edit.inlinelinkone.edit.in

NaN Undefined

2008-10-08 Thread BhushanMahajan
While using Date with tapestry 5.0.15 version it shows me the error as "NaN Undefined". Calendar control opens first time but on next time it shows me above error If any one had solution please tell me. Thanks in Advance -- View this message in context: http://www.nabble.com/NaN-Undefined-

Re: Triggering a partial update on a grid

2008-10-08 Thread Hugo Palma
That could be problem. I can see that the grid is using CachingDataSource for caching the dataSource size. But i see no way to invalidate that cache. Jecki wrote: On Wed, Oct 8, 2008 at 12:47 AM, Hugo Palma <[EMAIL PROTECTED]> wrote: I have a search form and a grid with the results. I'd l

Re: Triggering a partial update on a grid

2008-10-08 Thread Jecki
On Wed, Oct 8, 2008 at 12:47 AM, Hugo Palma <[EMAIL PROTECTED]> wrote: > I have a search form and a grid with the results. > I'd like to submit the form and update the grid with the filtered results > without doing a full page refresh. > > My take on this is to set the form component "zone" parame

[T4] IPropertySelectionModel

2008-10-08 Thread Mohammad Irfan
Hi, How can I implements selected option in model class that implements IPropertySelectionModel? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Triggering a partial update on a grid

2008-10-08 Thread Hugo Palma
Yep, i have it implemented like that. Forgot to rollback some changes that i tried to make this work before putting the code in the post. Sorry. With a zone just outside the grid and setting the form to update it i'm still getting the exception. Thiago H. de Paula Figueiredo wrote: Em Tue, 07 O

Re: t5: multiple javascript include how?

2008-10-08 Thread Andy Pahne
@IncludeJavaScriptLibrary({"js/idCard.js", "js/idCardHelper.js"}) Argo Vilberg schrieb: Hello, I want include more than one javascript library to one tapestry page. I try: @IncludeJavaScriptLibrary("js/idCard.js") @IncludeJavaScriptLibrary("js/idCardHelper.js") Errror multiple include and

Re: T5: select updating in form?

2008-10-08 Thread photos
Quoting Ulrich Stärk <[EMAIL PROTECTED]>: Do a form submit upon selecting something in the first dropdown, then render the second dropdown according to the selection made. And vote for https://issues.apache.org/jira/browse/TAP5-138. Thanks, but I must be doing something wrong as I cannot get

Re: tapestry-spring-security: don't log AccessDeniedException

2008-10-08 Thread Michael Gerzabek
I also realized this annoying thing but couldn't find the root cause fast enough. I put a TODO in the next steps section. ATM try to educate your perfectionalism to live with it ;) /Michael Ulrich Stärk schrieb: Yet another tapestry-spring-security question: How do I turn of the logging of t

Selected Option Example

2008-10-08 Thread Mohammad Irfan
Hi, I have this code on the html the java: public void setTypeSelected(ReportType rpt) { this.typeSelected = rpt; } public boolean getTypeSelected() { return this.typeSelected.getCode().equalsIgnoreCase(

t5: multiple javascript include how?

2008-10-08 Thread Argo Vilberg
Hello, I want include more than one javascript library to one tapestry page. I try: @IncludeJavaScriptLibrary("js/idCard.js") @IncludeJavaScriptLibrary("js/idCardHelper.js") Errror multiple include and @IncludeJavaScriptLibrary("js/idCard.js;js/idCardHelper.js") Error: cant find a path js/idC

tapestry-spring-security: don't log AccessDeniedException

2008-10-08 Thread Ulrich Stärk
Yet another tapestry-spring-security question: How do I turn of the logging of the AccessDeniedExceptions thrown (and apparently catched) in BeginRender when a user tries to access a page he isn't allowed to? The user gets redirected to the loginpage (funnily not to the page specified by spring-sec

Re: T5: select updating in form?

2008-10-08 Thread Ulrich Stärk
Do a form submit upon selecting something in the first dropdown, then render the second dropdown according to the selection made. And vote for https://issues.apache.org/jira/browse/TAP5-138. Uli Am Mi, 8.10.2008, 09:39, schrieb [EMAIL PROTECTED]: > Anyone? > > > Quoting [EMAIL PROTECTED]: > >> >>

Re: T5: select updating in form?

2008-10-08 Thread photos
Anyone? Quoting [EMAIL PROTECTED]: I have a select dropdown that will determine what is displayed in a second dropdown. Both of these are in a form. Am I correct in thinking that this cannot be done using Zones (I seem to recall a recent posting that said it was not possible if it's inside

RE: spring T5 integration on acegi security considerations

2008-10-08 Thread wesley
thanks for the advise, if T5's acegi can cover up much of the hardwork, i guess i'll go for it. thanks again for the feedback. regards, wesley Jonathan Barker wrote: > > > Please note that Spring Security is the successor to Acegi Security. My > experience is with Acegi but you should prob

get browser url link at action listener

2008-10-08 Thread mike
in my action listener. how to i use cycle to get current browser url ? i need this url so that i can reload the same page again ex. url : http://localhost:8080/TestApp/app?service=page&page=Listing&itemId=abcdef&code=abc public void reloadThisPage(IRequestCycle cycle) { //need to get browser

Re: tapestry-spring-security: injecting UserDetails

2008-10-08 Thread Ulrich Stärk
Unfortunately this does not work with openid authentication. When doing openid authentication, only the user's identity, i.e. his openid, get stored in the Authentication token. I'll have to manually fetch the UserDetails from the database or intercept the call to the UserDetailsService and store t

Re: tapestry-spring-security and openid

2008-10-08 Thread Ulrich Stärk
Whoohoo! It's working :-). I already made sure that my filter got contributed before the AuthenticationProcessingFilter but I didn't force it to be after the HttpSessionContextIntegrationFilter which seems to make the Authentication stick in the SecurityContext. After fixing this it's now working.