Hi
http://svn.codehaus.org/chenillekit/trunk/chenillekit-tapestry/src/main/java/org/chenillekit/tapestry/core/encoders/MultipleValueEncoder.java
regards
Taha
On Aug 23, 2012, at 9:06 AM, rmrajkumar77 wrote:
> Hi Taha,
>
> I am new to tapestry and am trying to build multi select box and i belie
Hi Taha,
I am new to tapestry and am trying to build multi select box and i believe
your codes will help me.
Could you please also share the codes for MultipleValueEncoder class.
Thanks.
Regards
Raj
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-
At first I used myList for the first field with multiple select and it
worked. When I wanted to have two fields with multiple select I took myList
out of the picture by commenting it out and used two new lists myList1 and
myList2.
However, in the methods getEncoder() and getModel() I originally us
You have not mentioned what error you are getting ?
Also, what is myList ? It is never initialized
regards
Taha
On May 19, 2012, at 12:49 PM, Ab wrote:
> myList
Here's the java code:
package edu.asu.wit.eadvisor.ds.t5.pages.t5.admin;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
impor
Hi
I can't see how it is problematic. Can you share the code ?
regards
Taha
On May 18, 2012, at 2:30 PM, Ab wrote:
> Hey Taha,
> I was using the code you posted to allow multiple selects and it worked
> perfectly with ONE t:MultipleSelect component. However, I'm working on a web
> page with two
Hey Taha,
I was using the code you posted to allow multiple selects and it worked
perfectly with ONE t:MultipleSelect component. However, I'm working on a web
page with two fields that are MultipleSelect. How do I accomplish that. In
both getRender and getModel you're using myList. In my case I ha
You can populate the selectedList in
onPrepareForRender(){
//Populate with values
}
regards
Taha
On Thu, Apr 21, 2011 at 5:49 AM, Josh Canfield wrote:
> What is the value of "selectedList" when you render the component?
> Isn't this supposed to contain the values that are selected?
>
> On Wed
What is the value of "selectedList" when you render the component?
Isn't this supposed to contain the values that are selected?
On Wed, Apr 20, 2011 at 5:11 PM, TG wrote:
> One thing I noticed is, in my form I used the following -
>
>
>
> ${user.id}
One thing I noticed is, in my form I used the following -
${user.id}
* select more than once for multiple roles
Is the ab
Anyone has any idea how to troubleshoot this multiselect component?
Any tips on how to preselect the item in the list will be nice.
Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-component-s-multiple-property-tp4304338p4329062.html
Sent from
It does not. I selected two items, go back to it, it remember. But if I saved
it into the database, leave the page (goto some other functionalities for
instance), come back again to the page with the multiple select, they are
obviously not selected. Question is, how do I "make/set" the two items to
On Tue, 19 Apr 2011 15:33:53 -0300, TG wrote:
If let's say the user's select A, B and D, when the multipleselect
component is rendered, how do I pre-select A, B and D correspondingly?
If it doesn't do this automatically, like any Tapestry component provided
out of the box, it should.
--
I just realized that I have one more question, hope you do not mind.
If let's say the user's select A, B and D, when the multipleselect component
is rendered, how do I pre-select A, B and D correspondingly? What do I need
to do (without changing the HTML myself for instance, which defeats the
purp
Hi
Yes you can. In case of an enum, you can get the list using Enum.values(),
you can use EnumSelectModel as your model and the
implement MultipleValueEncoder for enum.
regards
Taha
tawus.wordpress.com
On Tue, Apr 19, 2011 at 5:28 PM, TG wrote:
> Can I replace MyObject with the Enum type e.g
For the sake of anyone else that might find this useful, this is how I
addressed it -
UserRole[] roles = UserRole.values();
for(int i = 0; i < roles.length; ++i){
myList.add(roles[i]);
}
and it works. Let m
Can I replace MyObject with the Enum type e.g. UserRole? Will it work?
Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-component-s-multiple-property-tp4304338p4313085.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Your sample codes works, thanks for that! :)
Now, how do I make use of this, as my codes use Enum type?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-component-s-multiple-property-tp4304338p4312003.html
Sent from the Tapestry - User mailing list arc
Hi
I was busy so couldn't write an example for you. I had never used this
library directly but I have read its source when I started learning tapestry
5 months ago and it is a great great help. A lot of my components are just a
modification of these components( at times the same component but
reim
ANymore kind soul out there that can help?
Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-component-s-multiple-property-tp4304338p4311399.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Is this http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects the
right codes to follow?
Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-component-s-multiple-property-tp4304338p4309784.html
Sent from the Tapestry - User mailing list
Hi Taha,
Could you send me all the codes? Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Select-component-s-multiple-property-tp4304338p4307637.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
In 1.3.2 you will need to implement the interface
public interface MultipleValueEncoder
{
String toClient(V value);
List toValue(String[] clientValue);
}
for the encoder
regards
Taha
On Sat, Apr 16, 2011 at 7:29 AM, TG wrote:
> I changed as suggested but can't move beyond compilatio
I changed as suggested but can't move beyond compilation errors -
GenericMultipleSelectModel is not in 1.3.2 anymore and what exactly are
selectables, YourObject.class, labelPropertyName, valuePropertyName?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Se
Add parameter t:encoder='encoder' t:model='encoder'
and in you class file this method
@Inject
private PropertyAccess propertyAccess;
public GenericMultipleSelectModel getEncoder(){
return new GenericMultipleSelectModel(selectables, YourObject.class,
labelPropertyName, valuePropertyName, prope
I change . to / in t:type i.e.
* select more than once for multiple roles
and I got another error -
Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: Could not
find a coerci
Hi
you can specify a third party component either like
or
suitableTagName will be select for select component, input for input
components etc
As MultipleSelect is a select component, you might right it like
or
regards
Taha
On Fri, Apr 15, 2011 at 11:49 PM, TG wrote:
> You are tal
You are talking to a person who is new to tapestry :) So I need exact
example. So my question is what should the namespace be like following?
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; ???
I code like this and it does not work -
I believe you would do
It's just like any custom component you might make that has a package
beyond *.components, you write out the extra packages in front of the
component class name to qualify it.
I checked my code and I guess I also do it a different way:
model="pageListModel" encoder="p
Ok that helps. Installed 1.3.2 but how do I use it in the .tml file? What is
the namespace I need to import?
I asked as I still have the same not found error i.e.
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: Unable
to resolve 'MultipleSelect' to a component class name. [at
You want ChenilleKit 1.3.2, 1.1.0 is for older version of Tapestry.
On 04/15/2011 12:26 PM, TG wrote:
I do not use maven2. But I downloaded chenillekit-tapestry-1.1.0.jar
manually, installed, run again and I got a new error during bootup -
Caused by: java.lang.ClassNotFoundException:
org.apache
I do not use maven2. But I downloaded chenillekit-tapestry-1.1.0.jar
manually, installed, run again and I got a new error during bootup -
Caused by: java.lang.ClassNotFoundException:
org.apache.tapestry5.internal.services.RequestPathOptimizer
Seems like RequestPathOptimizer is not part of Tapestr
http://www.chenillekit.org/mvnrepo.html
It's a third party component so you need to download it.
On Apr 15, 2011 7:41 AM, "TG" wrote:
> Hey Josh,
>
> Thanks for your reply. But when I use MultipleSelect, I got this error -
>
> An unexpected application exception has occurred.
>
> org.apache.tapes
Hey Josh,
Thanks for your reply. But when I use MultipleSelect, I got this error -
An unexpected application exception has occurred.
org.apache.tapestry5.ioc.internal.OperationException
Unable to resolve 'MultipleSelect' to a component class name.
availableValues
Component types:
ActionLink
Ad
Hmm...
Tapestry's core select component doesn't have a "multiple" parameter.
http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/Select.html
Perhaps you are referring to
http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/comp
I have the following codes in my form -
... (truncated for simplicity) ...
* select more than once for multiple roles
UserRole is Enum type -
public enum UserRole {
ROLE_
36 matches
Mail list logo