Re: multiple select
Take a look at Checklist and Palette http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Palette.html http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Checklist.html
RE: multiple select
It will help you https://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects -Original Message- From: John [mailto:j...@quivinco.com] Sent: Thursday, April 25, 2013 4:37 PM To: users@tapestry.apache.org Subject: multiple select Hi, Is there a neat way to have a multiple select componenet in Tapestry 5? I see that t:multiple="true" (or ="false") seems to allow multi selection. Is this a deprecated function, or how does it work with the page class? John - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
multiple select
Hi, Is there a neat way to have a multiple select componenet in Tapestry 5? I see that t:multiple="true" (or ="false") seems to allow multi selection. Is this a deprecated function, or how does it work with the page class? John
How to implement Multiple Select component for a SortedMap model in Tapestry 4
Hi, I am trying to implement multiple select in my project for an already existing single select functionality. The single select is being done using a custom component which implements IPropertySelectionModel. As it is only possible to use Select Component for multiple select I am facing currently one issue. The source for my IPropertySelectionModel is a SortedMap. How to use the same source in case of a Select Component. I have written a cumbersome code in case of a select but I am unsure how to use a SortedMap for a model rather than a list of Account types.Can anybody provide inputs as to how to use a SortedMap in a multiple Select Component Existing Model -- setAccountTypeSelectionModel(new DefaultSelectionModelSer((AccountType[]) accountTypes.keySet().toArray(new AccountType[accountTypes.size()]), this, PresentationChoice.ALL)); //accountTypes is a SortedMap having all account types Existing HTML - Existing Page - New HTML -- New Model -- public abstract SortedMap getAccountTypes(); public abstract AccountType getCurrentAccountType(); public abstract void setSelectedAccountTypes(boolean[] accountTypes); public abstract void setAccountTypes(SortedMap accountTypes); public abstract void setCurrentAccountTypeIndex(int index); public abstract void setCurrentAccountType(AccountType currentAccountType); -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-implement-Multiple-Select-component-for-a-SortedMap-model-in-Tapestry-4-tp5719232.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Issue in implementing multiple select dropdown twice in a form - RESOLVED
Hi, I had declared two methods selectToppings , selectBreads with Request Cycle parameter passed twice. I combined those two into one method and set the values in that after which the app is running fine.seems as the request was stateless it forgot about the previous values - values of toppings in the form. some one can clarify better about it. Regards Nazar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-in-implementing-multiple-select-dropdown-twice-in-a-form-tp4472277p4475717.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Issue in implementing multiple select dropdown twice in a form
Hi, If I am implementing multiple select twice in a form, I am facing an issue.I am currently following Tapestry in Action - pg 145 example for multiple select. If I am trying to implement the example in the way given below i am getting ambiguous output.Anybody help out regarding that. Home.html --- Select toppings: Select breads: # Return to Home page . Home.page --- Home.java -- package com.tapestry; import org.apache.tapestry.event.PageBeginRenderListener; import org.apache.tapestry.event.PageEvent; import org.apache.tapestry.html.BasePage; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import org.apache.tapestry.IRequestCycle; public abstract class Home extends BasePage implements PageBeginRenderListener{ private static String[] TOPPINGS ={"Lettuce","Tomato","Onions","Pickles","Relish","Mustard","Ketchup"}; private static String[] BREADS ={"Grains","Oat","Honey","Italian","Mexican","Whole Wheat"}; public String[] getAllToppings(){ return TOPPINGS; } public abstract String getTopping(); public abstract void setSelectedToppings(ArrayList toppings); public abstract ArrayList getSelectedToppings(); public boolean isToppingSelected(){ return getSelectedToppings().contains(getTopping()); } public void setToppingSelected(boolean toppingSelected){ if(toppingSelected){ System.out.println("\nbefore adding"+getTopping()); getSelectedToppings().add(getTopping()); } else{ System.out.println("\nbefore removing"+getTopping()); getSelectedToppings().remove(getTopping()); } } public void selectToppings(IRequestCycle cycle){ String toppings = getToppingsList(); ToppingsResult page = (ToppingsResult)cycle.getPage("ToppingsResult"); page.setToppings(toppings); cycle.activate(page); } private String getToppingsList() { if(getSelectedToppings().isEmpty()) return "No Toppings"; StringBuffer buffer = new StringBuffer(); int count = getSelectedToppings().size(); int x=0; Iterator i = getSelectedToppings().iterator(); while(i.hasNext()){ if(++x > 1){ if(x == count) buffer.append(" and "); else buffer.append(", "); } String topping = (String)i.next(); System.out.println("\n topping iterator has "+topping); buffer.append(topping); } buffer.append("."); return buffer.toString(); } public String[] getAllBreads(){ return BREADS; } public abstract String getBread(); public abstract void setSelectedBreads(ArrayList breads); public abstract ArrayList getSelectedBreads(); public boolean isBreadSelected(){ return getSelectedBreads().contains(getBread()); } public void setBreadSelected(boolean breadSelected){ if(breadSelected){ getSelectedBreads().add(getBread()); } else{ getSelectedBreads().remove(getBread()); } } public void selectBreads(IRequestCycle cycle){ String breads = getBreadsList(); ToppingsResult page = (ToppingsResult)cycle.getPage("ToppingsResult"); page.setToppings(breads); cycle.activate(page); } private String getBreadsList() { if(getSelectedBreads().isEmpty()) return "No Breads"; StringBuffer buffer = new StringBuffer(); int count = getSelectedBreads().size(); int x=0; It
Re: What to use for multiple select => (MultiplePropertySelect || Select with Multiple=true)
I prefer you will use autocomplete for this. http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/autocompletemixin http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/autocompletemixin -- View this message in context: http://tapestry.1045711.n5.nabble.com/What-to-use-for-multiple-select-MultiplePropertySelect-Select-with-Multiple-true-tp4447117p4450112.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: What to use for multiple select => (MultiplePropertySelect || Select with Multiple=true)
i think he's talking about T4 , so see http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/multiplepropertyselection.html There's a renderer parameter and an alternative implementation that can render checkboxes On Thu, Jun 2, 2011 at 07:42, nazarhussain_s wrote: > Hi, > Thanks Andreou, By adding that line my application is working fine. > > Any body please suggest How I must implement Multiple Select and What > Component do I must use if there are more than 100+ options to be shown > in a drop down. Can I use MultiplePropertySelection or ordinary Select with > Multiple=true? > > Regards > Nazar > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Getting-Library-contrib-not-found-in-application-namespace-Exception-while-using-MultiplePropertySelt-tp4445113p4447117.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Apache Tapestry PMC / http://chesstu.be owner Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: What to use for multiple select => (MultiplePropertySelect || Select with Multiple=true)
Nazar, I know this isn't really an answer to your question, but many people find the hard to use. Usually preferable alternatives are multiple checkboxes (perhaps within a scrolling div), or Tapestry's Palette component http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/Palette.html On Thu, Jun 2, 2011 at 12:42 AM, nazarhussain_s wrote: > Hi, > Thanks Andreou, By adding that line my application is working fine. > > Any body please suggest How I must implement Multiple Select and What > Component do I must use if there are more than 100+ options to be shown > in a drop down. Can I use MultiplePropertySelection or ordinary Select with > Multiple=true? > > Regards > Nazar > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Getting-Library-contrib-not-found-in-application-namespace-Exception-while-using-MultiplePropertySelt-tp4445113p4447117.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
What to use for multiple select => (MultiplePropertySelect || Select with Multiple=true)
Hi, Thanks Andreou, By adding that line my application is working fine. Any body please suggest How I must implement Multiple Select and What Component do I must use if there are more than 100+ options to be shown in a drop down. Can I use MultiplePropertySelection or ordinary Select with Multiple=true? Regards Nazar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Getting-Library-contrib-not-found-in-application-namespace-Exception-while-using-MultiplePropertySelt-tp4445113p4447117.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Multiple Select with tapestry 5.1 ??
Hi, I've tried select multiple with tutorial http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects But it's seem to be an old code, it's doesn't work with tapestry 5.1. Class SelectMultiple.java contains lot of errors. Have you an other idea to perform this multiple select? Thanks in advance -Message d'origine- De : Emmanuel DEMEY [mailto:demey.emman...@gmail.com] Envoyé : vendredi 7 janvier 2011 13:24 À : Tapestry users Objet : Re: Multiple Select with tapestry 5.1 ?? Hi Denis Did you read this wiki article http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects about a MultipleSelect Component ? Emmanuel 2011/1/7 Cucchietti Denis > Hi all ! > > I have a problem with tapestry for create a multiple select . I would like > used a select with the possibility to choose more than one value. > > I have tried this : > > t:encoder="roleEncoder" t:model="rolesModel" t:multiple="true" > t:value="activeMultipleRoles" /> > > It works but I can't get all values selected, just one. > > Have you any idea to perform what I want? I have seen on the web a multiple > select component developed by chenillekit but I don't know if it can works. > > (the best solution for me would be a select with checkbox into :) ) > > Thanks in advance for your contribution ! > > > Denis CUCCHIETTI > > > > > > > > Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage > exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret > professionnel. Si vous recevez ce message par erreur, merci d'en avertir > imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne > pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin > ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les > meilleurs efforts soient faits pour maintenir cette transmission exempte de > tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa > responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un > virus transmis. > > This e-mail and the documents attached are confidential and intended solely > for the addressee; it may also be privileged. If you receive this e-mail in > error, please notify the sender immediately and destroy it. As its integrity > cannot be secured on the Internet, the Atos Origin group liability cannot be > triggered for the message content. Although the sender endeavours to > maintain a computer virus-free network, the sender does not warrant that > this transmission is virus-free and will not be liable for any damages > resulting from any virus transmitted. > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Multiple Select with tapestry 5.1 ??
Hi Emmanuel, Yes i have read this article but I wasn't sure of the result! I will try it! Thanks ;-) -Message d'origine- De : Emmanuel DEMEY [mailto:demey.emman...@gmail.com] Envoyé : vendredi 7 janvier 2011 13:24 À : Tapestry users Objet : Re: Multiple Select with tapestry 5.1 ?? Hi Denis Did you read this wiki article http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects about a MultipleSelect Component ? Emmanuel 2011/1/7 Cucchietti Denis > Hi all ! > > I have a problem with tapestry for create a multiple select . I would like > used a select with the possibility to choose more than one value. > > I have tried this : > > t:encoder="roleEncoder" t:model="rolesModel" t:multiple="true" > t:value="activeMultipleRoles" /> > > It works but I can't get all values selected, just one. > > Have you any idea to perform what I want? I have seen on the web a multiple > select component developed by chenillekit but I don't know if it can works. > > (the best solution for me would be a select with checkbox into :) ) > > Thanks in advance for your contribution ! > > > Denis CUCCHIETTI > > > > > > > > Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage > exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret > professionnel. Si vous recevez ce message par erreur, merci d'en avertir > imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne > pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin > ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les > meilleurs efforts soient faits pour maintenir cette transmission exempte de > tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa > responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un > virus transmis. > > This e-mail and the documents attached are confidential and intended solely > for the addressee; it may also be privileged. If you receive this e-mail in > error, please notify the sender immediately and destroy it. As its integrity > cannot be secured on the Internet, the Atos Origin group liability cannot be > triggered for the message content. Although the sender endeavours to > maintain a computer virus-free network, the sender does not warrant that > this transmission is virus-free and will not be liable for any damages > resulting from any virus transmitted. > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Multiple Select with tapestry 5.1 ??
Hi Denis Did you read this wiki article http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects about a MultipleSelect Component ? Emmanuel 2011/1/7 Cucchietti Denis > Hi all ! > > I have a problem with tapestry for create a multiple select . I would like > used a select with the possibility to choose more than one value. > > I have tried this : > > t:encoder="roleEncoder" t:model="rolesModel" t:multiple="true" > t:value="activeMultipleRoles" /> > > It works but I can't get all values selected, just one. > > Have you any idea to perform what I want? I have seen on the web a multiple > select component developed by chenillekit but I don't know if it can works. > > (the best solution for me would be a select with checkbox into :) ) > > Thanks in advance for your contribution ! > > > Denis CUCCHIETTI > > > > > > > > Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage > exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret > professionnel. Si vous recevez ce message par erreur, merci d'en avertir > imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne > pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin > ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les > meilleurs efforts soient faits pour maintenir cette transmission exempte de > tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa > responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un > virus transmis. > > This e-mail and the documents attached are confidential and intended solely > for the addressee; it may also be privileged. If you receive this e-mail in > error, please notify the sender immediately and destroy it. As its integrity > cannot be secured on the Internet, the Atos Origin group liability cannot be > triggered for the message content. Although the sender endeavours to > maintain a computer virus-free network, the sender does not warrant that > this transmission is virus-free and will not be liable for any damages > resulting from any virus transmitted. > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr
Multiple Select with tapestry 5.1 ??
Hi all ! I have a problem with tapestry for create a multiple select . I would like used a select with the possibility to choose more than one value. I have tried this : It works but I can't get all values selected, just one. Have you any idea to perform what I want? I have seen on the web a multiple select component developed by chenillekit but I don't know if it can works. (the best solution for me would be a select with checkbox into :) ) Thanks in advance for your contribution ! Denis CUCCHIETTI Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
Re: T5: Multiple Select preselected values
On Fri, Apr 10, 2009 at 4:04 AM, Kasper wrote: > Hi all, Hi! > I have a form with a multiple select field: > t:id="preferredRegions" t:multiple="true" size="13" /> Tapestry's Select component does not have a "multiple" parameter nor supports maps as the edited value. Maybe the Palette component is what you're looking for. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5: Multiple Select preselected values
Hi all, I have a form with a multiple select field: t:id="preferredRegions" t:multiple="true" size="13" /> Where the t:model="regions" = HashMap. Now when the page loads I want some preferredRegions to be set. For normal form fields I use a setFieldValue(), so I tried to do this also for this Select field. public HashMap getPreferredRegions() { HashMap l = new HashMap(); l.put(Long.valueOf(1), "first field"); l.put(Long.valueOf(2), "second field"); l.put(Long.valueOf(3), "third field"); return l; } This doesn't work, it also doesn't work when I try to use List or just long[]. It does work when I use plain long. But then only one option can be preselected. Does anyone have a clue how to let more than one value be preseleced? Thanks, Yours, Kasper -- http://kasper.nekoconeko.nl This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Multiple Select
sorry. forget to ask another question. I have another menu (jscookmenu) component also plugged in the html page. After rendering the multiple selection. the menu page can not displayed any more. What might cause such problem? The components for menu and multiselection in html look like below: # neo anderson wrote: > > i follow the following page - > http://tapestry.apache.org/tapestry4.1/components/form/select.html. > And now I can render the multi-elect item on the page with its index set > to 0, 1, 2, 3 ... > > However I want the index value to be string. For example, I have a color > list {"yellow", "green", "red"}, which will be displayed in the html but > with its option value set to, say, {"notice", "open", "stop"}. > > or in html code as below: > > > yellow > green > red > > > I have tried to implement getCurrentColorIndex in the java code, but it > fails with "Unable to update OGNL expression ". > > What should I do? > > Thanks in advice. > > > Dan wrote: >> >> Hi, >> >> I am newbie to tapestry. I am having problems getting the selected values >> from a MULTIPLE select. >> From googling the net and reading the docs, the method i approached to >> get >> the selected value from a SINGLE select list(dropwdown) is by iterating >> over >> the collection being rendered and check if isSelected() is true. >> >> example: >> >> Page spec: >> >> >> >> > label="ognl:color.name"/> >> >> >> >> Java code: >> >> public Color getCurrentColor(){ >> List l = getColorList(); >> Color p; >> for (int i=0;i> p = (Color)l.get(i); >> if (p.isSelected()) >> return p; >> } >> return null; >> } >> >> I try to do similar thing with mulitple select, ie return a List of >> objects >> whose isSelected() == true. But this doesnt seem to work. >> >> Could someone please guide as to how do they retrieve the selected >> objects >> from the multiple select? >> >> Also are there any contrib:palette examples out there? The book >> doesnt...neither did googling help. >> >> Thanks a bunch! >> >> _____ >> Don?t just search. Find. Check out the new MSN Search! >> http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Multiple-Select-tf144431.html#a13976706 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Select
i follow the following page - http://tapestry.apache.org/tapestry4.1/components/form/select.html. And now I can render the multi-elect item on the page with its index set to 0, 1, 2, 3 ... However I want the index value to be string. For example, I have a color list {"yellow", "green", "red"}, which will be displayed in the html but with its option value set to, say, {"notice", "open", "stop"}. or in html code as below: yellow green red I have tried to implement getCurrentColorIndex in the java code, but it fails with "Unable to update OGNL expression ". What should I do? Thanks in advice. Dan wrote: > > Hi, > > I am newbie to tapestry. I am having problems getting the selected values > from a MULTIPLE select. > From googling the net and reading the docs, the method i approached to get > the selected value from a SINGLE select list(dropwdown) is by iterating > over > the collection being rendered and check if isSelected() is true. > > example: > > Page spec: > > > > label="ognl:color.name"/> > > > > Java code: > > public Color getCurrentColor(){ > List l = getColorList(); > Color p; > for (int i=0;i p = (Color)l.get(i); > if (p.isSelected()) > return p; > } > return null; > } > > I try to do similar thing with mulitple select, ie return a List of > objects > whose isSelected() == true. But this doesnt seem to work. > > Could someone please guide as to how do they retrieve the selected objects > from the multiple select? > > Also are there any contrib:palette examples out there? The book > doesnt...neither did googling help. > > Thanks a bunch! > > _ > Don?t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Multiple-Select-tf144431.html#a13976675 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple select dropdown
For multiple select box you do a multiple and define size. Seems like there is no way you can do a multiple select on a dropdown though. Daniel Jue wrote: > > Look at the Palette or Enhanced Palette code. > > On 10/17/07, Daniel Jue <[EMAIL PROTECTED]> wrote: >> I think you define a size variable that tells the html control how >> many items to show. >> >> On 10/17/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: >> > How do you do a regular multiple selection box (as a list)? I can't >> seem to >> > find anything in the component reference. >> > >> > Thanks, >> > >> > Jean-Philippe >> > >> > > -Original Message- >> > > From: Daniel Jue [mailto:[EMAIL PROTECTED] >> > > Sent: Tuesday, October 16, 2007 8:31 AM >> > > To: Tapestry users >> > > Subject: Re: multiple select dropdown >> > > >> > > No I do not think you can do that. Maybe in Flash. >> > > As a user, I wouldn't expect that to be possible. >> > > >> > > >> > > On 10/16/07, Tapestry240 <[EMAIL PROTECTED]> wrote: >> > > > >> > > > Hi everyone, >> > > > Is there a way to do a multiple select from a drop down. I am not >> > > > asking about the list box but a drop down(one row) where I >> > > can do multiple select. >> > > > Thanks in advance, >> > > > Prabhat >> > > > -- >> > > > View this message in context: >> > > > >> > > >> http://www.nabble.com/multiple-select-dropdown-tf4634807.html#a1323560 >> > > > 3 Sent from the Tapestry - User mailing list archive at Nabble.com. >> > > > >> > > > >> > > > >> > > - >> > > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > > >> > > > >> > > >> > > ----- >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/multiple-select-dropdown-tf4634807.html#a13302651 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple select dropdown
Look at the Palette or Enhanced Palette code. On 10/17/07, Daniel Jue <[EMAIL PROTECTED]> wrote: > I think you define a size variable that tells the html control how > many items to show. > > On 10/17/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > How do you do a regular multiple selection box (as a list)? I can't seem to > > find anything in the component reference. > > > > Thanks, > > > > Jean-Philippe > > > > > -Original Message- > > > From: Daniel Jue [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, October 16, 2007 8:31 AM > > > To: Tapestry users > > > Subject: Re: multiple select dropdown > > > > > > No I do not think you can do that. Maybe in Flash. > > > As a user, I wouldn't expect that to be possible. > > > > > > > > > On 10/16/07, Tapestry240 <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi everyone, > > > > Is there a way to do a multiple select from a drop down. I am not > > > > asking about the list box but a drop down(one row) where I > > > can do multiple select. > > > > Thanks in advance, > > > > Prabhat > > > > -- > > > > View this message in context: > > > > > > > http://www.nabble.com/multiple-select-dropdown-tf4634807.html#a1323560 > > > > 3 Sent from the Tapestry - User mailing list archive at Nabble.com. > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple select dropdown
I think you define a size variable that tells the html control how many items to show. On 10/17/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > How do you do a regular multiple selection box (as a list)? I can't seem to > find anything in the component reference. > > Thanks, > > Jean-Philippe > > > -Original Message- > > From: Daniel Jue [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, October 16, 2007 8:31 AM > > To: Tapestry users > > Subject: Re: multiple select dropdown > > > > No I do not think you can do that. Maybe in Flash. > > As a user, I wouldn't expect that to be possible. > > > > > > On 10/16/07, Tapestry240 <[EMAIL PROTECTED]> wrote: > > > > > > Hi everyone, > > > Is there a way to do a multiple select from a drop down. I am not > > > asking about the list box but a drop down(one row) where I > > can do multiple select. > > > Thanks in advance, > > > Prabhat > > > -- > > > View this message in context: > > > > > http://www.nabble.com/multiple-select-dropdown-tf4634807.html#a1323560 > > > 3 Sent from the Tapestry - User mailing list archive at Nabble.com. > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple select dropdown
How do you do a regular multiple selection box (as a list)? I can't seem to find anything in the component reference. Thanks, Jean-Philippe > -Original Message- > From: Daniel Jue [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 16, 2007 8:31 AM > To: Tapestry users > Subject: Re: multiple select dropdown > > No I do not think you can do that. Maybe in Flash. > As a user, I wouldn't expect that to be possible. > > > On 10/16/07, Tapestry240 <[EMAIL PROTECTED]> wrote: > > > > Hi everyone, > > Is there a way to do a multiple select from a drop down. I am not > > asking about the list box but a drop down(one row) where I > can do multiple select. > > Thanks in advance, > > Prabhat > > -- > > View this message in context: > > > http://www.nabble.com/multiple-select-dropdown-tf4634807.html#a1323560 > > 3 Sent from the Tapestry - User mailing list archive at Nabble.com. > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple select dropdown
No I do not think you can do that. Maybe in Flash. As a user, I wouldn't expect that to be possible. On 10/16/07, Tapestry240 <[EMAIL PROTECTED]> wrote: > > Hi everyone, > Is there a way to do a multiple select from a drop down. I am not asking > about the list box but a drop down(one row) where I can do multiple select. > Thanks in advance, > Prabhat > -- > View this message in context: > http://www.nabble.com/multiple-select-dropdown-tf4634807.html#a13235603 > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple select dropdown
Hi everyone, Is there a way to do a multiple select from a drop down. I am not asking about the list box but a drop down(one row) where I can do multiple select. Thanks in advance, Prabhat -- View this message in context: http://www.nabble.com/multiple-select-dropdown-tf4634807.html#a13235603 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry 4.1.2 Multiple Select Component
Hi all, I am having some minor problems with this component. I need to render option tags with both an identifier and string value (value and text attributes), however the only option available for this component is the label parameter, the value parameter is reserved and seems to generate an auto-number. Does anyone know a way around this? Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Multiple Select Box Values
Select component doesn't support multiple values at the moment. it handles form submission by calling _request.getParameter(elementName); which returns only first value. Davor Hrg On 9/5/07, Sean McCarthy <[EMAIL PROTECTED]> wrote: > > Does anyone have a simple example on how to get the selected items from a > select list. In all of my experimentation I only get the value of the first > item that has been selected. I have reviewed the GenericSelectionModel and > it seems like a lot of effort to receive a comma separated list. > > Thanks in advance. > > Sean > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
T5 Multiple Select Box Values
Does anyone have a simple example on how to get the selected items from a select list. In all of my experimentation I only get the value of the first item that has been selected. I have reviewed the GenericSelectionModel and it seems like a lot of effort to receive a comma separated list. Thanks in advance. Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]