Re: Posting from multiple submits
Just tried your code and everething works as expected. Have you any client side errors reported by your browser? Feil: TypeError: this.submitHidden is undefined Kildefil: http://localhost:8080/adapt-it/assets/796296867807588e/core/tapestry.js Linje: 1512 Hmm - I did not see this. This may be the source of my problems? I use firefox 15.0.1. I expect that you do not get this error in your javascript console? -Henrik - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Posting from multiple submits
Hi. I have problems understanding multiple submits. I am running T5.3.5. I have the following tml: t:zone t:id=singleUserRegistrationFormZone id=singleUserRegistrationFormZone t:form t:id=singleUserRegistrationForm zone=singleUserRegistrationFormZone t:submit t:id=setSelectedGroup/ t:submit t:id=sendUserRegistration value=${signupLabel}/ /t:form /zone And javacode: @Component private Submit setSelectedGroup; @Component private Submit sendUserRegistration; public void onSelectedFromSetSelectedGroup() { getLog().info(SELECT GROUP: + selectedGroup); } public void onSelectedFromSendUserRegistration() { getLog().info(SELECT Userre: + selectedGroup); } public Object onSuccessFromSingleUserRegistrationForm() { getLog().info(SUCCESS - SINGLE USER REGISTRATION); } From what I understand of the documentation, when clicking on the setSelectedGroup, the method onSelectedFromSetSelectedGroup should be run first, then the onSuccessFromSingleUserRegistrationForm(). When observing from my debugger, the onSelectedFromSetSelectedGroup is never run. The click on the setSelectedGroup will consequently only run the success method of the form. So my question is: have I misunderstood the documentation, is it not possible to run different methods on the serverside from different buttons on the client? And if it is possible, can somebody help me in spotting where I have done something wrong? -Henrik - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Same page secured and unsecured
Hi Is it possible to have the same page secured and not secured? I have a page now that need to be accessed via https. Consequently I have annotated it with @Secure. But now I also need to access the same page via http. If I try to use the page from http, my ActionLinks do not work, but they do when accessing the page via https. Is it possible to serve the pages in both ways by configuring tapestry in some way? Best regards Henrik von Schlanbusch - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Contribute custom messages
Henrik von Schlanbusch henrik at enovate.no writes: Hi We have made a locale service that extracts messages from the database based on keys. We would like to use the service from the tml files, and preferably to replace the default tapestry ${message:SOME_KEY} to use our implementation. Is this possible to do in T5 so we can still write ${message:SOME_KEY} but the keys are extracted using our service? I found no good solution for this, so I implemented a component that did the trick. It would be cool, though, to be able to replace the default ${SOME_KEY} with own implementation. Still, Tapestry 5 is totally awesome :-) Henrik - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Contribute custom messages
Hi We have made a locale service that extracts messages from the database based on keys. We would like to use the service from the tml files, and preferably to replace the default tapestry ${message:SOME_KEY} to use our implementation. Is this possible to do in T5 so we can still write ${message:SOME_KEY} but the keys are extracted using our service? Best regards Henrik von Schlanbusch - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to obtain the ZoneManager for a Zone
I get the Javascript error: Cannot read property 'noZoneManager' of undefined. Can anybody see what I am doing wrong? Henrik Solved it by the help of this one: https://issues.apache.org/jira/browse/TAP5-569? page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to obtain the ZoneManager for a Zone
Hi I need to get hold of the ZoneManager for a zone. I have the following: @InjectComponent private Zone myZone; @InjectComponent private org.apache.tapestry5.corelib.components.ActionLink myZoneUpdateLink; @Environmental private JavaScriptSupport javaScriptSupport; @AfterRender public void afterRender(){ if(myZone != null){ javaScriptSupport.addScript(var zoneManager = Tapestry.findZoneManagerForZone( + myZone.getClientId() + );); javaScriptSupport.addScript(alert(zoneManager);); } } I get the Javascript error: Cannot read property 'noZoneManager' of undefined. Can anybody see what I am doing wrong? Henrik - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to load a page into a zone
Hi We are trying to make navigation in our application more dynamic and easier to manage. We have built zones that register themselves to a central javascript controller (AdaptitController) when they are rendered. The purpose of the zones is that they should be updated via ajax when objects are selected in the webapp. When clicking on a link (we call it a SelectionLink), the AdaptitController will run through all the zones that need to update themselves and try to update them with a specific url. It is the last issue I am struggeling with. I know the URL I want the zone to be updated with, and I also know the id of the zone in the page. So is it in some way or another possible to use the Tapestry.ZoneManager to load the url into the zone of which I know the id? Regards Henrik von Schlanbusch - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to load a page into a zone
Henrik von Schlanbusch henrik at enovate.no writes: I know the URL I want the zone to be updated with, and I also know the id of the zone in the page. So is it in some way or another possible to use the Tapestry.ZoneManager to load the url into the zone of which I know the id? For some more info, I know that I can load a page, and extract it's body block in order to render it within a zone. So I know all of that works, so the only thing I now need to know is how to be able to load the url into the zone via javascript. Henrik - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Page as Ajax return
Hi Is it possible to return a page as an ajax result or will this only work with zones? -Henrik - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Page as Ajax return
derkoe tapestry.christian.koeberl at gmail.com writes: Henrik Schlanbusch wrote: Hi Is it possible to return a page as an ajax result or will this only work with zones? -Henrik When you return a page to an AJAX event handler the Tapestry JS will make a redirect to that page - for more infos see: http://tapestry.apache.org/ajax-and-zones.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Page-as- Ajax-return-tp4864551p4864662.html Hi Yes I am aware of this one. To describe my problem, I have a rather big framework I would like to rebuild from T4 -T5. In this framework we use a lot of tabbed panes. In T4 we loaded pages into each tab. This made our code cleaner, since we could maintain one tab in one class/page file. My impression is that if I start using Zones, I have to implement the zones and their markup in one big page. Correct me if I am wrong. -Henrik - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org