Re: T4 XHR under JDK 1.4.2

2007-07-27 Thread Bill Holloway
Got it. Also, it looks like DirectLink is fine under 1.4 JDK. Bill On 7/27/07, Ben Dotte <[EMAIL PROTECTED]> wrote: > > Hi Bill, > > We implemented a fair bit of ajax using the XTile component before > EventListener came about and it proved very usable (we still use it > heavily on one component

Re: [t5] presentation

2007-07-27 Thread Robin Helgelin
On 7/27/07, ra <[EMAIL PROTECTED]> wrote: > No, I'd like make a presentation for my team, so I'd like to create rather > a powerpoint slides Maybe this then? Straight from the OSCON press :) http://howardlewisship.com/downloads/Tapestry-5-Preview.pdf -- regards, Robin -

Re: ajax question

2007-07-27 Thread Andrea Chiumenti
For what I can remember table elements substitution (innerHTML ='...') have problem under M$IE either if you threat 'em with dom. The tbody element is needed tho handle all table 'real' content and to separate that content from the header and footer that i threat for different scopes. On 7/28/07,

Re: T4 XHR under JDK 1.4.2

2007-07-27 Thread Ben Dotte
Hi Bill, We implemented a fair bit of ajax using the XTile component before EventListener came about and it proved very usable (we still use it heavily on one component): http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/xtile.html It may be a little more work than Event

Re: T5 confused about Services and XmlHttpResponse

2007-07-27 Thread Nick Westgate (Work)
mogulwraith wrote: > > How do I get the text returned by the service? > Have a look at this example on the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage You want to do the same thing but something like: TextStreamResponse onEvent() { // get the service text

T4 XHR under JDK 1.4.2

2007-07-27 Thread Bill Holloway
I've been forced into a project wanting to use xmlHttpRequest calls in Tapestry 4.X but using JDK 1.4.2 -- no annotations, therefore no @EventListener. Is there any hope? Bill

RE: T4: How to exclude dojo?

2007-07-27 Thread ASTI Araza, Ariel D.
This is not an answer to the question nor is it about T4, but I'd really like to see more jQuery support in T5. I've left behind dojo in favor of jQuery when I discovered its existence from this list. Ariel -Original Message- From: news on behalf of Chinchih Sent: Sat 7/28/2007 4:26 A

Re: ajax question

2007-07-27 Thread Evan Rawson - Work
that is true they do get tricky when it comes to vertical scaling, you need to use javascript to maintain that. however im still confused onto y you are using a tbody. i have no idea wether a tbody would have problems with ajax. I dont think it would. - Original Message - From: "Andrea

Re: [T5] BeanEditForm and RadioGroups

2007-07-27 Thread Mike_R
According to the component reference I copied below, it should be possible to override the column with a block, and maybe put your radiogroup in the block. Haven't tried it myself though. A component that creates an entire form editting the properties of a particular bean. Inspired by Trails and

Re: T5 confused about Services and XmlHttpResponse

2007-07-27 Thread mogulwraith
I do mean XmlHttpRequest of course... -- View this message in context: http://www.nabble.com/T5-confused-about-Services-and-XmlHttpResponse-tf4160459.html#a11837658 Sent from the Tapestry - User mailing list archive at Nabble.com. ---

T5 confused about Services and XmlHttpResponse

2007-07-27 Thread mogulwraith
Im really new to Tapestry so bear with... I have a service injected into a component. The service returns some text. I have a simple html form with a button and textbox. Javascript in the onclick event of the button gets a link to the service and passes it to an XmlHttpResponse object which I nee

Re: ajax question

2007-07-27 Thread Andrea Chiumenti
Yes the use of div would be very nice, but as far as I know div elements don't expand very well vertically, so building a table using div elements for cells and rows would be a little tricky. sigh! ps.: I hate tables too On 7/27/07, Evan Rawson - Work <[EMAIL PROTECTED]> wrote: > > tbody is

T5 Converting a T4 table to T5 grid

2007-07-27 Thread Daniel Jue
I am converting some T4 code into T5. Maybe someone can point out the best way of doing this, while I contemplate it. In T4, there was a column definition string that you could pass to the contrib:table component. It would define the order and names of the columns. Since the number/type of column

Re: IRC

2007-07-27 Thread Evan Rawson - Work
awesome thats a kewl plugin. - Original Message - From: "#Cyrille37#" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Saturday, July 21, 2007 5:17 AM Subject: Re: IRC Evan Rawson - Work a écrit : wow IRC, looks like i got another reason to download mIRC again. ill definatly be on that

Re: ajax question

2007-07-27 Thread Evan Rawson - Work
tbody is a soon to be deprecated html element. i would recommend steering away from tables and try to utilize div's and css as much as possible. Especially if you wanna be using alot of AJAX. - Original Message - From: "Andrea Chiumenti" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: T

RE: [T4] Gerenating Response -- Component

2007-07-27 Thread Daniel Ruiz
Thanks Ben, I think that's what I need! :D I'll try to make that work, I've already looked forward in FreeMarker implementation in case I don’t get that to happen.. []'s Daniel Ruiz -Original Message- From: Ben Dotte [mailto:[EMAIL PROTECTED] Sent: Friday, July 27, 2007 4:50 PM To: T

[T5] Select, palette, multiselect

2007-07-27 Thread Thiago H de Paula Figueiredo
Hi! Why is encoder a required parameter for the Palette component and isn't for Select? Looking ate the Select source code, we can see that it uses de ValueEncoderSource service to find a default ValueEncoder when the encoder parameter is not set. And has anyone implemented a Select-like

T4: How to exclude dojo?

2007-07-27 Thread Chinchih
I know that Tapestry 4.1.x bundles with dojo, and to use the dojo functions, the @Shell component will have to be used to include the necessary js files. However, in our application we prefer to use jQuery instead of Dojo. I noticed that if a Form component is used, Tapestry will output the followi

Re: [T4] Gerenating Response -- Component

2007-07-27 Thread Ben Dotte
Hi Daniel, You might want to take a look at the wiki for some suggestions about sending HTML e-mail generated by Tapestry: http://wiki.apache.org/tapestry/SendingHtmlEmailWithTap To be honest we have abandoned this approach due to the complexity involved and now use FreeMarker for that. Ben On

[T4] Gerenating Response -- Component

2007-07-27 Thread Daniel Ruiz
Hello, I´ve been looking the docs and I couldn't find how to do this in the proper way.. Using the following structure: public abstract class Viewer extends BasePage { @InitialValue("literal:default value message..") public abstract void setMessage(String message); publ

t5 - XMLNS Error

2007-07-27 Thread Evan Rawson - Work
my eclipse keeps throwing this question on all of my t5 documents when my pages are setup similiarly to this http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> This is a test thi

[T5] BeanEditForm and RadioGroups

2007-07-27 Thread Marcelo lotif
Hi all, is that a way to add a RadioGroup to a BeanEditForm? i tried to add the following code to the beaneditform body, but it didn't work... Fornecedor Outros this works out of the beaneditform, but not inside it. all the variables and properties are strings am i missing so

Re: [T5] Set the text field size in BeanEditForm

2007-07-27 Thread Marcelo lotif
thank you howard, this feature will help a lot :) 2007/7/27, Howard Lewis Ship <[EMAIL PROTECTED]>: > > Yes, what's needed is another annotation to cover this situtation, perhaps > @Width. I think I added a JIRA issue for this already. > > On 7/27/07, Marcelo lotif <[EMAIL PROTECTED]> wrote: > >

Re: [T5] Set the text field size in BeanEditForm

2007-07-27 Thread Howard Lewis Ship
Yes, what's needed is another annotation to cover this situtation, perhaps @Width. I think I added a JIRA issue for this already. On 7/27/07, Marcelo lotif <[EMAIL PROTECTED]> wrote: > > Good solution John, but has the same problem of the other... > > for example: i have 40 fields. 25 of them i w

Re: [T5] Security of files in the classpath

2007-07-27 Thread Daniel Jue
> I have just tried to post but Apache's JIRA threw a NullPointerException . > . . That made me laugh. It seems previous versions had problems with information hiding as well: https://issues.apache.org/jira/browse/TAPESTRY-281 https://issues.apache.org/jira/browse/TAPESTRY-1175 Reminds me of the

Re: [T5] Security of files in the classpath

2007-07-27 Thread Thiago H de Paula Figueiredo
On Fri, 27 Jul 2007 09:59:16 -0300, Robin Helgelin <[EMAIL PROTECTED]> wrote: If someone adds a JIRA issue I'm pretty sure Howard is able to solve this in the best interests of T5. I have just tried to post but Apache's JIRA threw a NullPointerException . . . Thiago

Re: [t5] presentation

2007-07-27 Thread ra
On 7/27/07, ra <[EMAIL PROTECTED]> wrote: > > > Hi > is there any presentation regarding tapestry 5. I mean rather powerpoint, > pdf etc fornat then screencasts Like the tutorial? http://tapestry.apache.org/tapestry5/tutorial1/ No, I'd like make a presentation for my team, so I'd like to cre

Re: T4.1.1 -> T4.1.2 Session handling changed?

2007-07-27 Thread Patrick Klein
Hello, again, problem was a stateful=false statement in the login form i missed. setting it to true again did the trick. Regards, Patrick Hello! Our application is user based and therefore the first page shown is the login page. As soon as the page is entered a new session for the user

Re: [T5] Security of files in the classpath

2007-07-27 Thread Chris Lewis
I just tried this on the tap 5 tutorial. Requesting the asset service via /assests (http://localhost:8080/tapestry-tutorial1/assets/) basically gives you a classpath listing, much like directory index. I see log4j.properties and org. I can download the log4j - scary - and can navigate through t

Re: [t5] presentation

2007-07-27 Thread Robin Helgelin
On 7/27/07, ra <[EMAIL PROTECTED]> wrote: > > > Hi > is there any presentation regarding tapestry 5. I mean rather powerpoint, > pdf etc fornat then screencasts Like the tutorial? http://tapestry.apache.org/tapestry5/tutorial1/ -- regards, Robin -

T 4.1.2 OGNL exception dies on linux while ok on win...

2007-07-27 Thread Wojciech Ciesielski
Hi there, I am stuck with an exception being thrown by OGNL expression... I have an application started on the windows machine and exactly the same app connected to exactly the same databases on the 64bit linux. On windows it's workin, on linux - mysterious exception is being thrown Does

Problem with Match Validation

2007-07-27 Thread Richard Levenberg
Can anyone provide a simple example of using the Match validation of 4.1.2? I have done everything I can think of to set the match of one TextField to the id of another. How is the "component to compare against" specified? Do I need the property tags? using "ognl:verify" causes an exception. Using

How to download a file from portlet

2007-07-27 Thread Atanu
Hi All, I am following the recommendations at http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=3132 while I download a file from a portlet. I include the request from portlet to servlet using a PortletRequestDispatcher. But while rendering, portal prints the binary

[t5] presentation

2007-07-27 Thread ra
Hi is there any presentation regarding tapestry 5. I mean rather powerpoint, pdf etc fornat then screencasts Arek -- View this message in context: http://www.nabble.com/-t5--presentation-tf4157678.html#a11828844 Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [T5] Security of files in the classpath

2007-07-27 Thread Robin Helgelin
On 7/27/07, Chris Lewis <[EMAIL PROTECTED]> wrote: > I'm quite new to Tapestry and just 2 days ago have started working with > Tap 5. I realize the two (4 vs 5) are disparately different, but one of > the things nice about the Tap 4 asset service was the checksum feature I > mentioned that would de

Re: [T5] Security of files in the classpath

2007-07-27 Thread Chris Lewis
I'm quite new to Tapestry and just 2 days ago have started working with Tap 5. I realize the two (4 vs 5) are disparately different, but one of the things nice about the Tap 4 asset service was the checksum feature I mentioned that would deny access unless the sum in the url matched that of the

Re: [T5] Set the text field size in BeanEditForm

2007-07-27 Thread Marcelo lotif
Good solution John, but has the same problem of the other... for example: i have 40 fields. 25 of them i want to set the size="80", then i have to repeat this code 25 times on the beaneditform body. I was thinking in a way to set the size as we set the label, just adding registration-size=80 on th

T4.1.1 -> T4.1.2 Session handling changed?

2007-07-27 Thread Patrick Klein
Hello! Our application is user based and therefore the first page shown is the login page. As soon as the page is entered a new session for the user is created. In Tapestry 4.1.1 this session was used for this user as it should be. After switching to Tapestry 4.1.2 however, as soon as the use

Re: [T4]Handling Nulls in OGNL expressions

2007-07-27 Thread Martino Piccinato
In my opinion is all that you want is not having NullPointerException it would be better to implement MethodAccessor and/or PropertyAccessor, that would return null if the target object is null, then you could simply check expressions returning nulls and returning your message, or maybe have a spec

Re: [T5] Security of files in the classpath

2007-07-27 Thread Thiago H de Paula Figueiredo
On Thu, 26 Jul 2007 23:20:50 -0300, Robert Zeigler <[EMAIL PROTECTED]> wrote: Asset service doesn't really need a configuration point here, imo. You can already make contributions to services that would allow you to implement this sort of content filtering. I agree up to a point. It's a co

Re: [T5] Set the text field size in BeanEditForm

2007-07-27 Thread Jan Laníček
Hi, You can use this way :) JAVA: @Inject private Messages _messages; public Messages getMessages() { return _messages; } HTML: submitLabel="Gravar"> > > > > t:val

Re: Select component problem in T5

2007-07-27 Thread Nick Westgate
Because individual options can be disabled. Also, you shouldn't really use OptionModelImpl because it is an internal class and may change in the future. (1) You can pass a map (names to codes) and Tapestry will create the model for you. (2) More work, implement the SelectModel interface. Daniel

Re: Putting a component body with property expansions in the

2007-07-27 Thread Andrea Chiumenti
You can use @Shell delegate attribute. http://tapestry.apache.org/tapestry4.1/components/general/shell.html Ciao, kiuma On 7/26/07, Bill Holloway <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to put some javascript in the that has dynamic content (JSON > strings). That javascript also needs to

Re: Select component problem in T5

2007-07-27 Thread Allen Guo
I changed OptionModel option = new OptionModelImpl(obj.getName(), true, obj.getCode()); to OptionModel option = new OptionModelImpl(obj.getName(), false, obj.getCode()); It works fine. But I don't know why OptionModelImpl construction need the second parameter. Allen Guo 写道: Hi Nick, B

Re: Select component problem in T5

2007-07-27 Thread Allen Guo
Sorry, it should be getCurrencyModel(). But the code is similar to getCountryCode() Allen Guo 写道: Hi Nick, Below is definitely code I call the method to get the model . . public SelectModel getCountryModel() { List options = new ArrayList(); List list = service.getBaseCountryDao().findA

Re: Controling Dialog Placement

2007-07-27 Thread Martino Piccinato
I think you can do this quiet easily overriding the "dojoDialog" css class (assigned by Dialog template to dialog div). I'm not sure about it though because I?m trying to use Dialog component without success (see my msg on the list): are you using Dialog in Tapestry 4.1.2 without problems? On 7/2

Re: Select component problem in T5

2007-07-27 Thread Allen Guo
Hi Nick, Below is definitely code I call the method to get the model . . public SelectModel getCountryModel() { List options = new ArrayList(); List list = service.getBaseCountryDao().findAll(); // fetch the list from database if (list == null){ return null; } Iterator iter = list.itera