Re: T5: does actionlink work different in Firefox than in IE?
Unfortunately this makes no difference. By the way, in IE I can turn the cards using right-click and choose from the menu open link (what is not an option of course ;-)) And also the cursor does not change to pointer. Thanks for your opinion, Juliane -Ursprüngliche Nachricht- Von: Tapestry users users@tapestry.apache.org Gesendet: 25.05.08 21:22:30 An: Tapestry users users@tapestry.apache.org Betreff: Re: T5: does actionlink work different in Firefox than in IE? Hmm. Internet Explorer might not be happy with the relative URIs generated by Tapestry. What happens if you set tapestry.force-absolute-uris to true? You'll need this in your AppModule: public static void contributeApplicationDefaults(MappedConfigurationString, String configuration) { configuration.add(tapestry.force-absolute-uris, true); } See if that helps. -Filip On 2008-05-25 21:08, [EMAIL PROTECTED] wrote: Hi Filip, if you go to this adress: http://www.neotopos.de/memory/ and click enter you see a row of cards (i.e. pictures, img - items). The code I posted here is what lays out those rows. In Firefox you can click on one card to let it show you its value. In IE those images are unclickable, and I do not understand why ... Thank you for helping, Juliane -Ursprüngliche Nachricht- Von: Tapestry users users@tapestry.apache.org Gesendet: 25.05.08 13:23:04 An: Tapestry users users@tapestry.apache.org Betreff: Re: T5: does actionlink work different in Firefox than in IE? Hi, What does the generated markup look like? Something's definitely not right here, must be an IE bug... :O -Filip On 2008-05-25 10:31, [EMAIL PROTECTED] wrote: Hi, I have an actionlink which works fine in Firefox but not in Internet Explorer (6.0). Can anybody point me to the cause or how I could change the code that it runs fine on both browsers? Thanks a lot! Juliane t:actionlink t:context=card.position t:id=turnCard t:if test=cardSelected span class=background24${card.text}/span /t:if t:unless test=cardSelected span class=background24img src=bilder/deckblatt24.jpg //span /t:unless /t:actionlink - 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] ___ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED] - 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] _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071distributionid=0066 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: does actionlink work different in Firefox than in IE?
Hi, I have an actionlink which works fine in Firefox but not in Internet Explorer (6.0). Can anybody point me to the cause or how I could change the code that it runs fine on both browsers? Thanks a lot! Juliane t:actionlink t:context=card.position t:id=turnCard t:if test=cardSelected span class=background24${card.text}/span /t:if t:unless test=cardSelected span class=background24img src=bilder/deckblatt24.jpg //span /t:unless /t:actionlink ___ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: does actionlink work different in Firefox than in IE?
Hi Filip, if you go to this adress: http://www.neotopos.de/memory/ and click enter you see a row of cards (i.e. pictures, img - items). The code I posted here is what lays out those rows. In Firefox you can click on one card to let it show you its value. In IE those images are unclickable, and I do not understand why ... Thank you for helping, Juliane -Ursprüngliche Nachricht- Von: Tapestry users users@tapestry.apache.org Gesendet: 25.05.08 13:23:04 An: Tapestry users users@tapestry.apache.org Betreff: Re: T5: does actionlink work different in Firefox than in IE? Hi, What does the generated markup look like? Something's definitely not right here, must be an IE bug... :O -Filip On 2008-05-25 10:31, [EMAIL PROTECTED] wrote: Hi, I have an actionlink which works fine in Firefox but not in Internet Explorer (6.0). Can anybody point me to the cause or how I could change the code that it runs fine on both browsers? Thanks a lot! Juliane t:actionlink t:context=card.position t:id=turnCard t:if test=cardSelected span class=background24${card.text}/span /t:if t:unless test=cardSelected span class=background24img src=bilder/deckblatt24.jpg //span /t:unless /t:actionlink - 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] ___ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: how to get hold of an id in a loop component?
Hi, I have a loop with elements from type Card. Initially the loop shows as many (same) images as there are in the Vector cardsLayout. If I click on one of these pictures I would like to show the card's text in place of this picture. Something like: if image at position of card with id=4 gets clicked, show all other images like before, but show at position with id=4 a text instead of this image. Is there some use of if/else possible? Or what would be the aproach of getting hold of the clicked element? span t:type=loop t:source=cardsLayout t:value=card t:actionlink t:context=card.id t:id=turnCard span class=background24img src=bilder/deckblatt24.jpg //span !-- on the clicked id I want to show this instead of the image: span class=background24${card.text}/span -- /t:actionlink /span I also tried to use some javascript but for some reason the javascript code gets ignored.. It is only my first week learning tapestry so please excuse me if I miss something obviously.. thanks for helping! Juliane _ Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren! http://freemail.web.de/club/landingpage.htm/?mc=02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I call a web url from actionlink
thank you very much :-) -Ursprüngliche Nachricht- Von: Tapestry users users@tapestry.apache.org Gesendet: 17.05.08 17:48:23 An: Tapestry users users@tapestry.apache.org Betreff: Re: how can I call a web url from actionlink Return an URL object: @OnEvent (component=quitGame) Object onQuit() throws MalformedURLException { memory.quit(); // more things to do before quitting return new URL(http://www.someOtherWebspace.com;); } -- Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071distributionid=0066 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how can I call a web url from actionlink
Hi, I would like to have a link, where on click first some cleanup action will be done, like for example closing a database connection etc, and then finally redirekt the user to some absolute URL in the web. How can I accomplish this? I have something like this: a href=# t:type=actionlink t:id=quitGameQuit/a @OnEvent (component=quitGame) Object onQuit(){ memory.quit(); // more things to do before quitting return ?? // go to http://www.someOtherWebspace.com;; } thank you! Juliane _ Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren! http://freemail.web.de/club/landingpage.htm/?mc=02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 br troubles
this is a common behaviour/problem not only with tapestry. br- tags in xhtml should be written with a space before the closing characters: br / Juliane -Ursprüngliche Nachricht- Von: Tapestry users users@tapestry.apache.org Gesendet: 17.05.08 11:39:49 An: users@tapestry.apache.org Betreff: T5 br troubles I might be wrong, and for sure it's not critical but I found out the following behavihour when including tags in my component: component output result br/ parsers warn that is not properly closed none Tapestry wisdomely throws an exception Tag neds end tag /br none Tapestry misses de point and complains on certain div Just in case someone else has found the same behavihour...Tapestry 5.0.11 Thanks -- View this message in context: http://www.nabble.com/T5-% 3Cbr%3E-troubles-tp17289805p17289805.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: unable to resolve 'Layout' (see Article: Tapestry for Nonbelievers)
Hi, I am a Java Programmer just starting to study Tapestry 5. I tried to follow the example in the article Tapestry for Nonbelievers where a Layout.tml is used to integrate page specific content. I keep getting a java.lang.IllegalArgumentException: Unable to resolve 'Layout' to a component class name. And I do not know why this is. (Probably something very easy and stupid, sorry - these are my first steps...) My Code: Start.java: = public class Start{ public Date getCurrentTime() { return new Date(); } } Start.tml: == t:Layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; p The current time is: ${currentTime}. /p /t:Layout Layout.java: === @IncludeStylesheet(context:memory.css) public class Layout { } Layout.tml: = html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleFionas Memory/title /head body h1Fionas Memory/h1 t:body/ !-- here goes the content of Start.tml -- /body /html === Has anybody an idea where to look for the error? Layout.java is empty: is that correct? thanks very much for your help, Juliane ___ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: unable to resolve 'Layout' (see Article: Tapes try for Nonbelievers)
Hi Nille, thank you, that helped. In Eclipse all tml-pages are in the folder WebContent (obviously no need to create subpackages there, because the compiler did not complain). When I put my Layout.java in a subpackage components everything was fine. Thanks a lot!! :-)) Juliane -Ursprüngliche Nachricht- Von: Tapestry users users@tapestry.apache.org Gesendet: 15.05.08 17:11:01 An: Tapestry users users@tapestry.apache.org Betreff: Re: T5: unable to resolve 'Layout' (see Article: Tapestry for Nonbelievers) Hi Juliane, templates and classes for pages or components have to be in the same package. Secondly, pages (i.e. Start) must go to the pages subpackage whilst components (i.e. Layout) must go to the components subpackage. The resulting package structure for your example would be: de.yourdomain.yourappname.pages.Start.java de.yourdomain.yourappname.pages.Start.tml de.yourdomain.yourappname.components.Layout.java de.yourdomain.yourappname.components.Layout.tml And another thing I am facing when creating new classes is that class reloading notices when I have changed an existing class but does not notice for some reason when I have added a new class. So maybe a restart of your context or even your servlet container after having added a new class might solve the problem. Kind regards, nillehammer - original Nachricht Betreff: T5: unable to resolve 'Layout' (see Article: Tapestry for Nonbelievers) Gesendet: Do, 15. Mai 2008 Von: [EMAIL PROTECTED] Hi, I am a Java Programmer just starting to study Tapestry 5. I tried to follow the example in the article Tapestry for Nonbelievers where a Layout.tml is used to integrate page specific content. I keep getting a java.lang.IllegalArgumentException: Unable to resolve 'Layout' to a component class name. And I do not know why this is. (Probably something very easy and stupid, sorry - these are my first steps...) My Code: Start.java: = public class Start{ public Date getCurrentTime() { return new Date(); } } Start.tml: == t:Layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; p The current time is: ${currentTime}. /p /t:Layout Layout.java: === @IncludeStylesheet(context:memory.css) public class Layout { } Layout.tml: = html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleFionas Memory/title /head body h1Fionas Memory/h1 t:body/ !-- here goes the content of Start.tml -- /body /html === Has anybody an idea where to look for the error? Layout.java is empty: is that correct? thanks very much for your help, Juliane ___ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]