RE: Does Tapestry work with XHTML?

2006-05-29 Thread Kristian Marinkovic
hi, to use XHTML it is NOT necessary to rename the .html file to .xhtml. all you have to do is to add the dtd and the . the only reason i could imagine you want to rename it to .xhtml is because you could configure your webserver to set the correct mime-type (text/xml). but if you do so IE6 (and b

Re: new logo for Tapestry - more comps

2006-05-29 Thread Ryan Holmes
Nice color combinations and the logo is clean -- I like it. It's always tough to judge the color scheme from a logo alone, but at first glance I like the blue/orange, blue on blue and the navy/green one on the lower right. If we're going to have a logo contest, maybe it would be a good idea to

File-Inclusion in Tap-3 Specifications (.page, .jwc)

2006-05-29 Thread Schulte Marcus
Hi all, when I had to rework an older (Tap3, annotation-free) application I stumbled over repetitive declaration of delegate & validator beans and base-class properties. My solution, which I wanted to share, is this: 1. put the duplicate xml-code into a separate file. 2. refer to that file fr

Re: contrib:Palette question

2006-05-29 Thread Andreas Bulling
Hi, and thanks for your answer! | Why don't you use: | | | | | | | | | | | and in your .html | ... | e.t.c. Thanks, works like a charme! But I thought the Blocks would be displayed twice on the page in this case, but they are not.

Re: Rendering a page from a hivemind service

2006-05-29 Thread Marcus Matèrn
Henri Dupre has created an hivemind email service you should take a look at. http://www.actualis.com/tapestry/tapestry-email-0.1.0.zip This service creates a new RequestCycle with its own EmailBaseEngine. There is a thread on this list called "tapestry email service". Marcus On 5/29/06, Asl

Re: new logo for Tapestry - more comps

2006-05-29 Thread Peter Svensson
These were very nice indeed, as well. We almost have too much good stuff now :) Cheers, PS On 5/29/06, Ryan Holmes <[EMAIL PROTECTED]> wrote: Nice color combinations and the logo is clean -- I like it. It's always tough to judge the color scheme from a logo alone, but at first glance I like th

Re: how to force initial Locale

2006-05-29 Thread Ron Piterman
take a look at the wiki: tapestry 4 -> how tos Cheers, Ron Bondarenko, Oleg wrote: I would like to force my first page to be in a specified locale (say GERMAN). How to do it? I tried to override Engine and set the its locale to Locale.GERMAN in its constructor. But if the first incoming req

contrib:Table and utf-8 characters

2006-05-29 Thread Rui Pacheco
Hi all I've set the table headers in properties files in my WEB-INF directory, but I can't get my webpage to recognize my utf-8 characters. For some reason, both "ão" or "ão" aren't recongized. The first word appears with garbage instead of the special characters and the second doesn't translate

Component Tab with AJAX

2006-05-29 Thread Hugo Palma
I've looked but couldn't find any component that provides a TabPanel(like the example in Tapestry site) using AJAX so that the whole page doesn't get loaded when i change tabs. I think it could be donne using tacos:AjaxDirectLink instead of framework:DirectLink like the example, but if someone kno

AW: Re: how to force initial Locale

2006-05-29 Thread Bondarenko, Oleg
Ron, thanks for answering, but... Can you maybe give an exact link? AHHH - OK, got it, it's under TipsAndTricks! Will try it right now Doesn't work! Although the engine's locale gets set correctly, the page's locale gets the wrong value (why???)! Ok, I override the page method setLocal

RE: contrib:Table and utf-8 characters

2006-05-29 Thread Schulte Marcus
I think .properties files are always iso-latin-8. Try that encoding, I think it should be fine for all west-european characters (I'm using german & french successfully) You can however use explicit unicode ordinals like this: \u20AC (the Euro-character) > -Original Message- > From: Rui P

Retrieve the old value of a field in the form listener

2006-05-29 Thread Stephane Decleire
Hi all, I need to get the old value of a form field in the listener of this form but i can't get this value before it's been updated with the data submitted by the client ... Any idea is welcome ! -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06

Re: Asset, CSS, and FriendlyURL

2006-05-29 Thread Tian-Jian \"Barabbas\" [EMAIL PROTECTED]
Dear All, I've tried the Hello World example with CSS, it is even more strange; not only Asset, but also inline with HTML. With this example, I can see /Tapestry/css/helloCSS.css in the browser, but the background color was not applied. I'm confused now, shall I e

Re: Retrieve the old value of a field in the form listener

Perhaps i took a wrong approach ... In fact, i need to apply specific code if a particular field of my form has been updated and not in the other case. So i need to compare the old to the new value of this field but i can't find a way to get the old value after the form has benn submitted ...

RE: Retrieve the old value of a field in the form listener

I've written a small component called @Watch for this. It calls a given listener whenever a value is changed. It uses a hidden field to submit the old value along with the new one. If you're interested I could post the code. > -Original Message- > From: Stephane Decleire [mailto:[EMAIL PRO

Re: Retrieve the old value of a field in the form listener

Thanks Marcus, I'm interested cause i'm really stuck with this problem ... But i'm really surprised that Tapestry doesn't let us read the value before it updates it ... Schulte Marcus wrote: I've written a small component called @Watch for this. It calls a given listener whenever a value is c

Re: Retrieve the old value of a field in the form listener

Maybe you could store the old value in a state object ? It's described in chapter four of Enjoying Web Development with tapestry, and as it turns out the first four chapters are freely downloadable from; http://agileskills2.org/EWDT/ Then you can save the latest or last value in that object, wh

Re: Retrieve the old value of a field in the form listener

Yes i could ... but it looks like an elephant gun just to keep the trac of an old value that Tapestry has to know ... but where ? :-\ Peter Svensson wrote: Maybe you could store the old value in a state object ? It's described in chapter four of Enjoying Web Development with tapestry, and as

Re: Retrieve the old value of a field in the form listener

Hmm. Maybe I misunderstood you. When you enter a value into a field in the page, tapestry will call to the getter for that variable when the page render, and the setter of the variable (with you entered value) when you submit the form of which the (I assume) TextField is a part, like; .. publ

RE: Retrieve the old value of a field in the form listener

Here you go, it's for Tap4 btw: Usage example: value is the property to watch, listener will be called at the end of the rewind cycle, if the prop did change. ___ file Watch.java /* * Erstellt am 23.05.2005 von schultma * copyright, 2005 BMW (Schweiz) AG * * $

Re: Component Tab with AJAX

I am literally working on a tab panel component right now (just stopped to check out the list). I was thinking about AJAX support. Right now, it supports a simultaneous mixture of client and serverside tabs in the same tabset. other features include disabling, hiding, etc... of individual ta

Re: Component Tab with AJAX

That's great! I've been checking out stitches for quite some time, but never managed to get it up and running. Could you please consider releasing a binary sometime :) ? I especially like the picture album, which I have ahem been inspired by in my own coding a times :) Good stuff! Cheers, PS O

Re: Asset, CSS, and FriendlyURL

Hi Try remove the quotes from around the color. It should be body { background-color: green; } Regards Alan Chaney Tian-Jian "Barabbas" [EMAIL PROTECTED] wrote: Dear All, I've tried the Hello World example with CSS, it is even more strange; not only Asset, but also inline with HTML.

Redirecting to HTTPS in pageValidate(), or something?

Hello! Is there a way to ensure that a page can be accessed only via HTTPS scheme, but relying only on Tapestry mechanisms, i.e. not using Tomcat etc.? Ideally, I would like to redirect an HTTP request in pageValidate() of a page to the same page but via HTTPS. Thanks in advance! -

Re: Component Tab with AJAX

That's great news..As soon as i find some free time i'll take a deeper look into it, in the mean time i can't access the demo site, is it down ? Do you have a demo of the tab panel component in the site ? On 5/29/06, spamsucks <[EMAIL PROTECTED]> wrote: I am literally working on a tab panel

RE: Retrieve the old value of a field in the form listener

imo each form-component should have a paramter called "changeListener" which does the obvious - like in desktop gui-programming. I proposed this some time ago with no echo ... So, those who would like that, should scream "DO IT" now :-) > -Original Message- > From: Stephane Decleire [mail

Re: AW: Re: how to force initial Locale

are you sure tapestry uses your engine's class? best s to set the application-specification's engine-class attribute... Cheers, Ron Bondarenko, Oleg wrote: Ron, thanks for answering, but... Can you maybe give an exact link? AHHH - OK, got it, it's under TipsAndTricks! Will try it right n

Re: List loaded twice from DB

use lazy initialization for the list instead of doing it on finishLoad() : public List getXXXList() { if (this.xxxList == null ) this.xxxList = readXXXList(); return this.xxxList; } + pageDetachListener -> this.xxxList = null. Cheers, Ron Mark wrote: Hi, I have a simple CRUD sc

Re: Asset, CSS, and FriendlyURL

Hi Alan, Thank you very much. For inline

Re: contrib:Table and utf-8 characters

Hmmm, it doesn't work. The whole page is rendered correctly, but no matter what characters I use on the properties file they always show up garbled. On 5/29/06, Schulte Marcus <[EMAIL PROTECTED]> wrote: I think .properties files are always iso-latin-8. Try that encoding, I think it should be fi

Re: Component Tab with AJAX

Yes, the demo site has been up and down (it's where i am building/testing) the tab panel right now. The new tab component will be on the demo site. I just got it working the way I want it to (css and javascript hell for the client side). I will update the docs and create some binaries to down

Re: Retrieve the old value of a field in the form listener

I've parsed your code Marcus and i don't understand what the "hidden" component is ? Could you briefly explain ? Schulte Marcus wrote: Here you go, it's for Tap4 btw: Usage example: value="ognl:fahrzeug.reserviertBis" listener="listener:onReservierung"/> value is the property to wat

Re: Asset, CSS, and FriendlyURL

HI Mike Your page specification appears to have commented out the asset definition. You have: Try: I assume you removed the quotes around green in the CSS file as well? If it still fails, trying looking at the source generated by the browser. Regards Alan Tian-Jian "Barabbas

Re: Asset, CSS, and FriendlyURL

Hi Alan, Yes, I did remove those xml comment for asset testing, quotes around green were also removed. And my source viewed in the browser seems normal: http://www.w3.org/TR/html4/loose.dtd";> http://localhost:8080/TestTapestryCSS/"/> Tutorial: HelloWorld HelloWorld Tut

Re: contrib:Table and utf-8 characters

Hi, There are something you may want to try: Tell your servlet engine to use fileEncoding=UTF-8, or just pass -DfileEncoding=UTF-8 to the JVM. Also remember to include the following line in your .application: where the "xx" and "YY" are corresponding to your locale. Good luck. Mik

Re: Issues with Label Components with Tapestry 4.0

Hmmm, I'm guessing the answers to my questions below are "no, this isn't possible." ;-) Here's another question - is it possible in my custom Validator to get the existing CSS classes on a component? For example, I currently have: public void writeLabelAttributes(IMarkupWriter writer, IRe

Re: Retrieve the old value of a field in the form listener

Oups, sorry, i did not see the component specification ... Stephane Decleire wrote: I've parsed your code Marcus and i don't understand what the "hidden" component is ? Could you briefly explain ? Schulte Marcus wrote: Here you go, it's for Tap4 btw: Usage example: value="ognl:fahrzeug.re

Re: Issues with Label Components with Tapestry 4.0

try component.getBinding("class") if that's not null, do a getObject() on it Matt Raible wrote: Hmmm, I'm guessing the answers to my questions below are "no, this isn't possible." ;-) Here's another question - is it possible in my custom Validator to get the existing CSS classes on a componen

Re: List loaded twice from DB

Hi Ron, I don't understand what you mean by "instead of doing it on finishLoad()". I did not do anything with finishLoad(), I don't know why it calls the getList. Here is my .page file: class="com.mark_arnold.sample.rbs1.web.tapestry.page.admin.RoomListPage"> object="spring:rbsRoomAdminS

Tapernate/squeezer chain - squeezing null bug

When squeezing an object that is null, EntitySqueezerFilter.squeeze(EntitySqueezerFilter.java:57) throws NPE. It doesn't matter if it is an entity or not, because the object is passed through the chain, and eventually ends up in the EntitySqueezerFilter. A solution to this problem would be to eit

Re: Tapernate/squeezer chain - squeezing null bug

Here's the stack trace if anyone is interested; http://paste.uni.cc/9180 2006/5/29, Ted Steen <[EMAIL PROTECTED]>: When squeezing an object that is null, EntitySqueezerFilter.squeeze(EntitySqueezerFilter.java:57) throws NPE. It doesn't matter if it is an entity or not, because the object is pass

Re: Asset, CSS, and FriendlyURL

Hi Mike The css file should be just: body { background-color: green; } You don't need the tag - the css parser will just ignore the content.

Regards

Alan


Tian-Jian "Barabbas" [EMAIL PROTECTED] wrote:

Re: Component Tab with AJAX
Great! Thanks! /PS On 5/29/06, spamsucks <[EMAIL PROTECTED]> wrote: Yes, the demo site has been up and down (it's where i am building/testing) the tab panel right now. The new tab component will be on the demo site. I just got it working the way I want it to (css and javascript hell for the c

Re: Retrieve the old value of a field in the form listener

I don't know exactly what you need it for, perhaps something like this could work: instead of , you use public String getValue() { return getYourObject().getValue(); } // Called on form submit public void setValue(String value) { if (!value.equals(getYourObject().getValue))

Re: Can't get Tapestry to work with UTF-8 encoding

Hi Galam, How do you get the data that is not outputted in the correct encoding? I haven't seen an explanation of that in your messages, but I am guessing that it is obtained from a file or from something like a database. As a result the data is not read properly and is "mangled" _before_ it r

Re: contrib:Table and utf-8 characters

As mentioned in another email, you can specify the character set which your .property files use by placing the following in your .application: You may set the value to "UTF-8" or "ISO-8859-1" or something like that. (I presume you use T4) -mb

Re: Does Tapestry work with XHTML?

Right. And just to be clear: the ".xhtml" is not necessary for XHTML, not just for Tapestry, but in *any* content -- and I don't think the "text/xml" mime type is necessary either. It's the DOCTYPE that has the last word. Use the W3C validator when in doubt! Use it when not in doubt, too.

Re: Issues with Label Components with Tapestry 4.0

Andreas Andreou wrote: try component.getBinding("class") if that's not null, do a getObject() on it Thanks. This works, but it also prints out duplicate "class" attributes. class="text large error" class="text large" It'd be nice to have something like: writer.appendAttribute("class", "va

Re: Issues with Label Components with Tapestry 4.0

Matt Raible wrote: Andreas Andreou wrote: try component.getBinding("class") if that's not null, do a getObject() on it Thanks. This works, but it also prints out duplicate "class" attributes. class="text large error" class="text large" It'd be nice to have something like: writer.append

Re: Does Tapestry work with XHTML?

Yet, not all of Tapestry's components produce compliant xhtml, so you may be wasting your time going through these measures. On 5/29/06, Paul Cantrell <[EMAIL PROTECTED]> wrote: Right. And just to be clear: the ".xhtml" is not necessary for XHTML, not just for Tapestry, but in *any* content -- a

Re: Does Tapestry work with XHTML?

Yes, you may be wasting your time in general... http://alex.dojotoolkit.org/?p=498 On 5/29/06, Todd Orr <[EMAIL PROTECTED]> wrote: Yet, not all of Tapestry's components produce compliant xhtml, so you may be wasting your time going through these measures. On 5/29/06, Paul Cantrell <[EMAIL PRO

Re: Asset, CSS, and FriendlyURL

Dear Alan, Thank you very much, it works for the simple Hello World page now. But I still have problem with some dynamic server pages, I will try to clarify them and post the problem demo here later. Thank you for your kindness. Sincerely, Mike Alan Chaney wrote: Hi Mike The c

RE: Tapernate/squeezer chain - squeezing null bug

Ted, Great catch! For now, I'll just put in a null check in the Tapernate squeezer. Thanks, James -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 1:56 PM To: Tapestry users Subject: Re: Tapernate/squeezer chain - squeezing null bug Here's the

Re: Asset, CSS, and FriendlyURL

Dear all, I guess I found where the problem is. I've use a bad trick in the web.xml as the following setting: Fooo / Where the /app was expected. Since I would like to use http://localhost:8080/Foo/ not http://localhost:8080/Foo/app as the portal, it may break some default

Re: Asset, CSS, and FriendlyURL

Dear all, errr, it's me, again. I think I found the solution: http://jakarta.apache.org/tapestry/UsersGuide/configuration.html Very sorry about that. Best Regards, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Component Tab with AJAX

The tab component on steroids is ready. Supports client-side and serverside switching (in the same tabset), hiding tabs, enabling/disabling tabs. There is a demo of the tab up and running. Let me know if there are any problems/enhancements http://stitches.authsum.org This tab was origina

TCP/IP Communication Problem

hi all, i am working on implementing TCP/IP socket communication within my web app. I have been able to send messages from a set port to an external application (a dummy server program) and that application is able to receive my send messages. however I am unable to receive messages back from th

RE: Tapernate/squeezer chain - squeezing null bug

Ok, I put in a test case that illustrates the problem and I fixed it. I'm still thinking about that null check thingy and I think it's a good idea. -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 5:43 PM To: 'Tapestry users' Subject: RE: Taperna

Re: Component Tab with AJAX

I've got a component that wraps the dojo TabContainer widget. I haven't had a chance to tacos-ify it yet, and commit it to tacos, but I could zip up some source and post a copy here which should be easy enough to replace with the official tacos version sometime later. Currently, you just define a

TCP-IP Communication help

hi all, i am working on implementing TCP/IP socket communication within my web app. I have been able to send messages from a set port to an external application (a dummy server program) and that application is able to receive my send messages. however I am unable to receive messages back from th

Re: Component Tab with AJAX

I have adapted Sam's component for my own use also. Woks perfectly. For the AJAX enabling part of what Hugo said, since it is allready "DIV based", you can simply add, like you said, a tacos:AjaxDirectLink with the correct updateComponent to the desired DIV before the tab change. I didn't look muc

Re: contrib:Table very slow - sorry for insisting

Hello Rui, have you found the reason for your performance problems? I have a similar problem just now, my first time using the contrib:table component. It works nicely for a while, but after refreshing the same page 10 or 20 times, everything request that navigates from or to this page is reall

Re: contrib:Table very slow - sorry for insisting

Hi Mark In my particular case, I was not returning my connection to the pool ( conn.close() ) after doing my queries. I reengineered my DAO and now everything's working perfectly. Hope this helps, Rui Pacheco On 5/30/06, Mark <[EMAIL PROTECTED]> wrote: Hello Rui, have you found the reason fo

Servlet Mapping ???

I use in *web.xml*: MyWeb org.apache.tapestry.ApplicationServlet 1 MyWeb /app Tooth edu.its.imss.gateway.servlet.Toothervlet 2 Tooth / *the problem is, in my .html i'm trying to put an i

Servlet Mapping ???

I use in web.xml: MyWeb org.apache.tapestry.ApplicationServlet 1 MyWeb /app Tooth edu.its.imss.gateway.servlet.Toothervlet 2 Tooth / the problem is, in my .html i'm trying to put an image t

Form with 2 sets of submit buttons doesn't work

I'm trying to put duplicate "button bars" on a form. The top of my form has: value="message:button.save" id="save" listener="ognl:listeners.save"/> value="message:button.delete" id="delete" listener="ognl:listeners.delete" onclick="form.onsubmit =

Re: Form with 2 sets of submit buttons doesn't work

Don't use the listener= parameter, use action="" . Listeners will always strive to find the most "direct" path to invoking your method, which in the case of forms means as soon as the template parser sees it in the component tree. Action listeners on the other hand will safely be invoked only aft

Re: TCP-IP Communication help

Using socket IO communications has little to do with tapestry development, unless you are talking about IO from browser to server. Maybe your case is different? I would go look at the tutorials on the java.sun.com website about socket IO and create very tiny test classes that don't run in any oth

Servlet Mapping ??? Help Me

I use in web.xml: MyWeb org.apache.tapestry.ApplicationServlet 1 MyWeb /app Tooth edu.its.imss.gateway.servlet.Toothervlet 2 Tooth / the problem is, in my .html i'm trying to put an image t

Re: Servlet Mapping ??? Help Me

Please don't post the same message three times in a row. That's considered poor manners "round here". On 5/29/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: I use in web.xml: MyWeb org.apache.tapestry.ApplicationServlet 1 MyWeb /app

Re: Form with 2 sets of submit buttons doesn't work

Jesse Kuhnert wrote: Don't use the listener= parameter, use action="" . Listeners will always strive to find the most "direct" path to invoking your method, which in the case of forms means as soon as the template parser sees it in the component tree. Thanks Jesse, that did the trick. I ch

Re: Form with 2 sets of submit buttons doesn't work

action="listener:doHelp" will work. It also has the benefit of not invoking an ognl call. As a general rule, use binding prefixes whenever possible to avoid ognl. You might also want to check out the Tapestry-Prop library (http://howardlewisship.com/tapestry-javaforge/tapestry-prop/) to get n

Re: TCP-IP Communication help

jesse, thanks for your feedback. though, i have managed to get TCP/IP communication happening within the web application. by that i mean that my web app can send and receive messages to another app on a set port. but i am not sure how should i run this process. i mean i would like to run this p

Dynamic assigning component id

Hello, Is there a way of dynamically assigning a component id at runtime? For example if I creating components in a for loop and I want to assign the component ids at runtime, is that possible? Tapestery doesn't allow me to use a ognl expression for jwcid like jwcid="ognl:categoryName". Is

Re: Redirecting to HTTPS in pageValidate(), or something?

Hi Josip. Have you tried doing exectly what you yourself suggested? ;-) In T3 I use something like this: public abstract class AppBasePage extends BasePage implements PageValidateListener { public void pageValidate(PageEvent event) { // ssl? RequestContext requestContext