Re: Tapestry 5: running tutoriel

2007-11-15 Thread Michael Bernagou
Just to say her problem is fixed since she's my collegue. The Eclipse we use here is a custom (crap) Eclipse and jetty and maven plugins do not work normally. She used a normal Eclipse 3.2 WTP with the regular plugins (plus some proxy configuration) and it now it works. 2007/11/14, Jeffrey ai

Re: T5 Newbie : populate the value of a form in a bean

2007-11-15 Thread Michael Courcy
The title property of the video object is updated, I don't have a title property on my page class. I can't compile anything right now, but I'll try to put together a small example tonight, if someone else hasn't posted something by then. Josh Josh It would be really really nice !!! If you do

Re: T4.0.2: How do I replace a Service via Hivemind?

2007-11-15 Thread Renat Zubairov
Hi It's off course possible (thanks to Howard and his Hivemind ideas :) ) You can actually write something like implementation service-id=FULL SERVICE NAME HERE WITH MODULE ID BLAH BLAH invoke-factory model=singleton construct

T3 : How to include script script.aculo.us to tapestry 3 ?

2007-11-15 Thread Penyihir Kecil
Hi... i tried simple autocompletion using scriptaculous in tapestry 3 but it doesn't work Home.html html head titlescript.aculo.us Autocompleter functional test file/title meta http-equiv=content-type content=text/html; charset=utf-8 / script src=js/prototype.js

T5: grid's column's width

2007-11-15 Thread Angelo Chen
Hi, Is there a way to set the grid's column's width to a fixed size? without that, the grid changes its width from page to page. Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-grid%27s-column%27s-width-tf4811010.html#a13765107 Sent from the Tapestry - User mailing

OGNL or expression problem - here it is again

2007-11-15 Thread Bastian Voigt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, just upgraded to Tapestry 4.1.3 I have the following problem: I am using an @If component with the following conditional expression: ognl:user==null or (!user.hasPermission(@theClass.THE_PERMISSION)) which should evaluate to true, if there is

Re: T4 - access hivemind registry from another servlet

2007-11-15 Thread Renat Zubairov
Another way to extend Application servlet from tapestry and with your implementation and then just replace ApplicationServlet declaration inside web.xml with your new class. Logic is more or less the same. On 15/11/2007, Jili Lv [EMAIL PROTECTED] wrote: 1. Add a filter class : package

Re: OGNL or expression problem - here it is again

2007-11-15 Thread Alejandro Scandroli
Hi Bastian Two suggestions that might help 1) In ognl you don't necesarily need to ask if something is null using ==null you can use ognl:!user http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/coercion.html ognl:!user or (!user.hasPermission(@theClass.THE_PERMISSION)) 2) Given that

Re: expressions in If component?

2007-11-15 Thread Howard Lewis Ship
Nope, the default Tapestry expression language can only read properties, not do higher order things the way OGNL can. Because you can change your Java class on the fly, there isn't a pressing need. I suspect a later release of Tapestry will expand the power of the expression language. On Nov

Re: T5 : Event system

2007-11-15 Thread Steph
Is there a version number or deadline already planned for this functionality ? Thiago H de Paula Figueiredo a écrit : On Wed, 14 Nov 2007 08:13:53 -0200, Stephane Decleire [EMAIL PROTECTED] wrote: I've tried without success to add an onchange event on a select box without firing the submit

Component extension

2007-11-15 Thread Ken in nashua
Folks, Given the integration happenings with T-4.1, I wanted to get feedback on decision on Component extension. I would like to get as much bang for the buck when developing a Component ... Is it more practical to develop a Component as an extension of DojoWidget ? Your feedback and

[T5] Simple question about select and enum

2007-11-15 Thread TNO
Hi, I want to create a very simple select list from an enum. t:select model=${reportModel} value=${report}/ But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I can't have my enum list... please help, thanks

Re: T5 Newbie : populate the value of a form in a bean

2007-11-15 Thread Ezra Epstein
Is it that the user object is null on page load? If so, see the BeanEditForm's implementation of void onPrepareFromForm() Michael Courcy [EMAIL PROTECTED] wrote: You're right here it is, I remove the offending input and use this instead ${user}-- ${user.name} And I get [EMAIL

Re: [T5] Default order by for Grid

2007-11-15 Thread Ezra Epstein
Why @Component of course (aka, nevermind) Ezra Epstein [EMAIL PROTECTED] wrote: Speaking of which, how does one get a reference to a contained component in T5? Marcelo Lotif wrote: The grid component have a method called setSortColumnId(), but for use it, you got to have a reference to the

Re: [T5] Simple question about select and enum

2007-11-15 Thread TNO
No error message, but in the HTML page : option value=[EMAIL PROTECTED] instead of my enum value... My java code : public EnumSelectModel getReportModel() { return new EnumSelectModel(Report.class, _resources.getMessages()); } Michael Courcy a écrit : Do you have error

Re: [T5] Simple question about select and enum

2007-11-15 Thread lasitha
Tom, try it without specifing a select model. The following is working for me: t:select clientId=report value=report / Where the page class has just the report property and accessors. Also note that you don't need to use expansions (the ${..}s) on these. Cheers, lasitha. On Nov 15, 2007 10:00

Re: [T5] Simple question about select and enum

2007-11-15 Thread TNO
It works ! thanks but the Component Reference says that parameter model is required... lasitha a écrit : Tom, try it without specifing a select model. The following is working for me: t:select clientId=report value=report / Where the page class has just the report property and accessors.

Re: [Honeycomb] new release

2007-11-15 Thread Ehren
Is the HoneyComb site back up and running again? I can't seem to find it on JavaForge. If it is not running is there any other way I can get the code? Thank you, Ehren Marcus.Schulte wrote: I've put together a new release of honeycomb ( http://honeycomb.javaforge.com/index.html

Re: T5: grid's column's width

2007-11-15 Thread jeffrey ai
I am looking for the answer of the same question too. The template of the Grid component doesn't embed a colGroup element. - Quated from Grid.tml table class=t-data-grid thead t:id=columns/ tbody tr t:id=rows/

T5: Using the AbstractIntegrationTestSuite (T5.0.6)

2007-11-15 Thread Tobias Wehrum
Hi there, I have a problem including the AbstractIntegrationTestSuite in my little tapestry application. Maybe the solution is easy, but being a newbie to java development in general and Tapestry as well as Selenium in particular doesn't help at all to solve it - so I ask you. The code is

Re: T5 Newbie : populate the value of a form in a bean

2007-11-15 Thread Michael Courcy
Thanks a lot Josh I'm going to try it now Josh Canfield a écrit : Hey Michael, I didn't get to it last night, but here you go, a very simple example: ** Start.tml html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleForm Test/title /head body

Re: T5: grid's column's width

2007-11-15 Thread jeffrey ai
I do noticed that the Grid component is not defined as final like some other components. I guess we could just inherit it and add a new template to extend its feature. Jeffrey Ai jeffrey ai wrote: I am looking for the answer of the same question too. The template of the Grid component

Re: T5: Using the AbstractIntegrationTestSuite (T5.0.6)

2007-11-15 Thread Tobias Wehrum
Hi Howard, then 0.8.0 is my version of choice? (Will AbstractIntegrationTestSuite be upgraded at a later time?) Thanks for your answer. :) Regards, Tobias Howard Lewis Ship schrieb: Well, there's your problem ... AbstractIntegrationTestSuite is coded against a specific version of Selenium.

Re: T5 Newbie : populate the value of a form in a bean

2007-11-15 Thread Michael Courcy
Ok thanks. I need to work on this component anyway. But things are not totally clear in my mind of the state of @Persist objects during the phase request. I 'm going to work on this as well. Ezra Epstein a écrit : Is it that the user object is null on page load? If so, see the

Re: T5 Newbie : populate the value of a form in a bean

2007-11-15 Thread Josh Canfield
Hey Michael, I didn't get to it last night, but here you go, a very simple example: ** Start.tml html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleForm Test/title /head body MyObject:br/ Name: ${myObject.name}br/ Number:

T5 : Editable Select

2007-11-15 Thread martin boulanger
Dear all, I need to make an editable select box : i.e the user can either chose one of the option in the select box or type a custom String. Is it possible to make something like this with Tapestry 5? Thanks, Martin -- View this message in context:

Re: T5: Using the AbstractIntegrationTestSuite (T5.0.6)

2007-11-15 Thread Howard Lewis Ship
Well, there's your problem ... AbstractIntegrationTestSuite is coded against a specific version of Selenium. As a convenience, it implements all the methods of the Selenium interface (buts adds improved exception reporting). That interface has changes since 0.8.1. On Nov 15, 2007 10:08 AM,

Re: [T5] Simple question about select and enum

2007-11-15 Thread martin boulanger
Hi, Try this : in your Page.html : t:select id=enumVar value=enumVar/ - in Page.java : EnumType enumVar; --- in your EnumeType.java public enum EnumeType{ val1,Val2,Val3; } TNO wrote: Hi, I want to create a very simple select list from

[T5] Removing page name shortening?

2007-11-15 Thread Vjeran Marcinko
Hello. I can really speak from position of someone who just is learning Tapestry 5 for first time, and from what Kevind Menard mentioned in few mails before, I can really see page name shortening as nothing but confusion and complication. Referencing pages is quite straightforward, and one

Re: [T5] Removing page name shortening?

2007-11-15 Thread Kevin Menard
Hi Vjeran, I just want to clarify. I'm not against name shortening in general. I actually think it's a very good idea. In T4, all of my page names essentially match my class names (although, this was configurable via the page spec and I do take advantage of that on occasion) and the result is

Re: T5: grid's column's width

2007-11-15 Thread Kevin Menard
Couldn't you just provide your own stylesheet? The header and cell class names are predictable. -- Kevin On 11/15/07 1:26 PM, in article [EMAIL PROTECTED], jeffrey ai [EMAIL PROTECTED] wrote: I do noticed that the Grid component is not defined as final like some other components. I

Re: T5: Using the AbstractIntegrationTestSuite (T5.0.6)

2007-11-15 Thread Howard Lewis Ship
I tried to upgrade at some prior point, and found that version of Selenium unstable. I may give it another try at some point. On Nov 15, 2007 10:22 AM, Tobias Wehrum [EMAIL PROTECTED] wrote: Hi Howard, then 0.8.0 is my version of choice? (Will AbstractIntegrationTestSuite be upgraded at a

Re: T5: grid's column's width

2007-11-15 Thread jeffrey ai
That's right. Thanks for you suggestion! Cheers, Jeffrey Ai nirvdrum wrote: Couldn't you just provide your own stylesheet? The header and cell class names are predictable. -- Kevin On 11/15/07 1:26 PM, in article [EMAIL PROTECTED], jeffrey ai [EMAIL PROTECTED] wrote: I

Re: [T4.1.3] Tip for using using directlink and updatecomponents in a for loop

2007-11-15 Thread Jim Roycroft
I eventually found a situation where I needed this and it worked like a charm! Thanks Andreas. Jim Andreas Andreou wrote: I've always had such direct links after their updateComponents and used updateComponents=clientId:componentWrapper (though nowadays updateComponents=componentWrapper

Re: T5 Newbie : populate the value of a form in a bean

2007-11-15 Thread Howard Lewis Ship
Generally, what you want to do is replace setupRender() with onPrepareFromForm(). void onPrepareFromForm() { if (_myObject == null) _myObject = new MyObject(); } Prepare means the prepare event, fired from your Form component. Prepare event is triggered when the form starts to render AND when

T5: Customize Grid

2007-11-15 Thread Joshua Jackson
Dear all, How do I customize the Grid component since if I use it as such: t:grid source=list beanmodel=department rowsPerPage=1 / it will generate and display default list of data. I want to add one more column in the Grid with header Action Thanks in advance -- What you want today, may

Re: T5 Newbie : populate the value of a form in a bean

2007-11-15 Thread Michael Courcy
I've tried it It works, got to understand my errors now. Thanks a lot. Josh Canfield a écrit : Hey Michael, I didn't get to it last night, but here you go, a very simple example: ** Start.tml html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleForm

Re: T4 - access hivemind registry from another servlet

2007-11-15 Thread Paul Stanton
ok thankyou, i've extended the servlet. Renat Zubairov wrote: Another way to extend Application servlet from tapestry and with your implementation and then just replace ApplicationServlet declaration inside web.xml with your new class. Logic is more or less the same. On 15/11/2007, Jili Lv

Re: [T5] Simple question about select and enum

2007-11-15 Thread Michael Courcy
Do you have error messages ? TNO a écrit : Hi, I want to create a very simple select list from an enum. t:select model=${reportModel} value=${report}/ But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I

Re: [T5] Removing page name shortening?

2007-11-15 Thread Vjeran Marcinko
- Original Message - From: Kevin Menard [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Thursday, November 15, 2007 10:01 PM Subject: Re: [T5] Removing page name shortening? going away. So long as you always use one of the link components, you really shouldn't worry that much