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
... 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
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
= 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
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
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
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,
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
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:
-
发件人: 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
(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
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
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.
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:
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).
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
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
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
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...
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
35 matches
Mail list logo