RE: T4 to T5 select component usage

2012-09-27 Thread Ken in Nashua
Ivan, Preeviette !!! Thanks for the generous contribution and good faith. I am excited. I will give that a shot over the weekend. Your tech support for tapestry 5 looks good. I will be as generous to post my widget when I get it QA'd... going to be some weeks though... each month I think i

Re: T4 to T5 select component usage

2012-09-21 Thread Ivan Khalopik
... nothing personal. kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: T4 to T5 select component usage Date: Thu, 20 Sep 2012 23:06:27 -0400 Apologies for post... I uncovered some additional configurations that I failed to migrate to my T5 code base

T4 to T5 select component usage

2012-09-20 Thread Ken in Nashua
Guys/Gals (if any), I am upgrading some T4 code to T5 I have a T4 select component configuration/usage as follows: --- TML snippet --- tr td width=25% align=left nowrap=NOWRAP t:LabelItems Per Page/t:Label select t:type=Select

RE: T4 to T5 select component usage

2012-09-20 Thread Ken in Nashua
= ognl:components.galleryWidget.tableColumns itemCount=ognl:components.galleryWidget.collection.size cursor=ognl:cursor / ghack... glad ognl is gone... and thats no fluff kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: T4 to T5 select component usage

RE: T4 to T5 select component usage

2012-09-20 Thread Ken in Nashua
Referring to syntax... nothing personal. kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: T4 to T5 select component usage Date: Thu, 20 Sep 2012 23:06:27 -0400 Apologies for post... I uncovered some additional configurations that I failed to migrate

Re: [T5] Select component: howto create a SelectModel out of ListString

2008-09-26 Thread Filip S. Adamsen
Hi, Just implement org.apache.tapestry5.SelectModel. You can extend org.apache.tapestry5.util.AbstractSelectModel when you do. -Filip On 2008-09-26 12:20, Andy Pahne wrote: I have a simple list of Strings that should be the source of a SelectModel. How do I create one? I had a look at

Re: [T5] Select component: howto create a SelectModel out of ListString

2008-09-26 Thread Ulrich Stärk
If you want to use it with the select component then there is no need to write your own selectmodel. Just provide an array of strings to the model parameter, e.g. t:select model=literal:foo,bar,baz... or t:select model=strings... where strings is an array or list in your page class. Uli Am Fr,

Re: [T5] Select component: howto create a SelectModel out of ListString

2008-09-26 Thread Andy Pahne
Ulrich Stärk schrieb: If you want to use it with the select component then there is no need to write your own selectmodel. Just provide an array of strings to the model parameter, e.g. t:select model=literal:foo,bar,baz... or t:select model=strings... where strings is an array or list in your

Re: [T5] Select component: howto create a SelectModel out of ListString

2008-09-26 Thread Thiago H. de Paula Figueiredo
Em Fri, 26 Sep 2008 08:35:11 -0300, Andy Pahne [EMAIL PROTECTED] escreveu: That's the easier way I thought of, thanks. I was tricked by the component reference, which states that the type of the parameter is SelectModel. The parameter type *is* SelectModel, but Tapestry has coercions:

Re: 答复: T5: Select component + onchange()

2008-08-15 Thread Lance Java
- 发件人: Sven Homburg [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月25日 2:54 收件人: Tapestry users 主题: Re: T5: Select component + onchange() here some sample code sequences your page class (simplified): @Component(parameters={event=change onCompleteCallback=onSelect1Changed}) @Mixins(t5components

答复: T5: Select component + onchange()

2008-08-13 Thread 滕训华
(response){ alert(response); } -邮件原件- 发件人: Sven Homburg [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月25日 2:54 收件人: Tapestry users 主题: Re: T5: Select component + onchange() here some sample code sequences

Re: T5: Select component + onchange()

2008-04-25 Thread Geoff Callender
It seems to me that Zones would make it very simple. Perhaps you would like to vote for this issue: Add Zone parameter to Select component https://issues.apache.org/jira/browse/TAPESTRY-2361 Cheers, Geoff http://files.doublenegative.com.au/jumpstart/ On 25/04/2008, at 12:04

Re: T5: Select component + onchange()

2008-04-25 Thread Marcelo Lotif
hmmm, I thought about it earlier, but i did not search for a JIRA... this would be really nice! and nice piece of code Sven, I'll try to get this working and take off the workaround with submit... 2008/4/25 Geoff Callender [EMAIL PROTECTED]: It seems to me that Zones would make it very simple.

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
try this http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html 2008/4/24, Leon Derks [EMAIL PROTECTED]: Hello Is it possible to catch the onChange event from a select component in the java page? I would expect something like:

Re: T5: Select component + onchange()

2008-04-24 Thread Marcelo Lotif
I had the same issue as Leon some days ago (and this seems to be a very common issue), and i tried your component. It's very good, with some ajax, but the return type is a little bit limited for what i was trying to achieve(update a combo with information from another combo, which has your mixin).

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
the return type is not limited to StreamResponse. all you can respond all that tapestry allowes here http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html its up to you 2008/4/24, Marcelo Lotif [EMAIL PROTECTED]: I had the same issue as Leon some days ago (and this seems to be a

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
the JSONObject/JSONArray response too 2008/4/24, Sven Homburg [EMAIL PROTECTED]: the return type is not limited to StreamResponse. all you can respond all that tapestry allowes here http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html its up to you 2008/4/24, Marcelo Lotif

Re: T5: Select component + onchange()

2008-04-24 Thread Chris Lewis
Unless https://issues.apache.org/jira/browse/TAPESTRY-2286 has been addressed, you cannot respond with JSONArray, but you can with JSONObject. Sven Homburg wrote: the JSONObject/JSONArray response too 2008/4/24, Sven Homburg [EMAIL PROTECTED]: the return type is not limited to

Re: T5: Select component + onchange()

2008-04-24 Thread Marcelo Lotif
Yeah, i know this, but none of these responses suit to my needs (maybe a Page response, but this will force a reload)... i tried to return a block with the part of the code that i was trying to change, but i had no success And i don't have the enough knowledge of the JSON api and javascript...

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
here some sample code sequences your page class (simplified): @Component(parameters={event=change onCompleteCallback=onSelect1Changed}) @Mixins(t5components/OnEvent) private Select _select1 @Component private Select _select2 @OnEvent(component = select1, value = change) JSONObject

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-21 Thread dwi ardi irawan
hi it works i just changed like this : tr tdt:label for=clubSelect//td tdnbsp;/td tdt:select t:id=clubSelect model=clubSelectionModel value= Player.club encoder=clubValueEncoder label=Club//td /tr cos in the player object contains club object (i'm using iBatis+Spring for

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-21 Thread dwi ardi irawan
ir works with the that one, but i'm still curious bout how implemented it inside aq form... Hmmm I already override the equals method but still didn't work On Dec 21, 2007 4:30 AM, Sylwek [EMAIL PROTECTED] wrote: Hi, will it be possible to use in this case BeanEditForm with component

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-21 Thread dwi ardi irawan
and also overide the equals method : public boolean equals(Object object) { if (!(object instanceof Club)) { return false; } Club obj = (Club) object; return new EqualsBuilder() .append(this.idClub, obj.idClub)

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-20 Thread Sylwek
Hi, will it be possible to use in this case BeanEditForm with component Select ? Something like this: t:beaneditform object=player t:parameter name=club t:label for=club/ t:select t:id=club model=clubSelectionModel value=player.club encoder=clubValueEncoder/ /t:parameter

Re: T5 : select component in a form didn't show the selected value [EDIT MODE]

2007-12-19 Thread Marcelo Lotif
Hi, Try to override the equals() method from the Object on your Club class 2007/12/19, Penyihir Kecil [EMAIL PROTECTED]: Hi... i got another problem here, using select component inside a form. well, when it's on add modeit works to add new entry in the database. but when i try to

Re: T5: select component with support for attribute multiple

2007-06-07 Thread Michael Maier
Am 06.06.2007 um 23:00 schrieb Martin Grotzke: Do you have getters/setters with a Set then? Does the method signature depend on the value? no, I use the value-encoder to map the objects in the set to strings and vice versa... I didn't change the type of _value to be able to use the

Re: T5: select component with support for attribute multiple

2007-06-07 Thread Martin Grotzke
On Thu, 2007-06-07 at 10:39 +0200, Michael Maier wrote: Am 06.06.2007 um 23:00 schrieb Martin Grotzke: I didn't change the type of _value to be able to use the component with or without multiple=true, but perhaps it's better to have a dedicated multiselect component, so the _value could

Re: T5: select component with support for attribute multiple

2007-06-06 Thread Daniel Jue
I'm not sure how that would work with a combobox/dropdown rendering (since one click selects an item) It would have to render it like a listbox, the way it's done in Palette. BTW- I think the Palette super component is ready for use in T5.0.5 SNAPSHOT. That should at least give you the same

Re: T5: select component with support for attribute multiple

2007-06-06 Thread Michael Maier
Yes...it seems that multiple selects are not yet supported, but it is very easy to write a component...just take the select component from tapestry, look for value and the isOptionValueSelected method. I changed the value to Set type and changed the protected void

Re: T5: select component with support for attribute multiple

2007-06-06 Thread Martin Grotzke
On Wed, 2007-06-06 at 21:51 +0200, Martin Grotzke wrote: Hi, AFAICS doesn't the select component support the attribute multiple, only the first selected option is set on the value. Is there some way to get this to work with support for multiple? I just extended the current Select

Re: T5: select component with support for attribute multiple

2007-06-06 Thread Martin Grotzke
On Wed, 2007-06-06 at 22:47 +0200, Michael Maier wrote: Yes...it seems that multiple selects are not yet supported, but it is very easy to write a component... You're right, it's really easy to do this - it took about 30 minutes and some testing :) just take the select component from

Re: T5: select component with support for attribute multiple

2007-06-06 Thread Martin Grotzke
On Wed, 2007-06-06 at 16:42 -0400, Daniel Jue wrote: I'm not sure how that would work with a combobox/dropdown rendering (since one click selects an item) It would have to render it like a listbox, the way it's done in Palette. BTW- I think the Palette super component is ready for use in

Re: T5 Select component

2007-03-16 Thread Anjana Gopinath
me out? i couldnt find any thing related to this in the tapestry 5 website Anjana Gopinath -- View this message in context: http://www.nabble.com/T5-Select- component-tf3411735.html#a9506331 Sent from the Tapestry - User mailing list archive at Nabble.com

T5 Select component

2007-03-15 Thread Anjana Gopinath
Hi I am trying to use the tapestry 5 Select component to display a drop down box. I created a enum with different values and tried giving this enum as the model parameter. It seems to be displaying only the first element of the enum. I get a dropdown with the all the values if the enum

Re: T5 Select component

2007-03-15 Thread Weisu
Gopinath -- View this message in context: http://www.nabble.com/T5-Select-component-tf3411735.html#a9506331 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED