RE: Flexigrid with tapestry 5.2
Hi Chris, Thank you for your answer. I will use the got5 component but you should post yours too ;-). Thank you ! -Message d'origine- De : derkoe [mailto:tapestry.christian.koeb...@gmail.com] Envoyé : lundi 21 novembre 2011 20:30 À : users@tapestry.apache.org Objet : Re: Flexigrid with tapestry 5.2 Cucchietti Denis-2 wrote Hi all ! Hi Cucchietti Denis-2 wrote Is there a mean to integrate flexigrid ( http://flexigrid.info/ ) component into tapestry 5.2 ? Maybe a custom component already exists? Haven't heard of any - but I've done an implementation for http://datatables.net/ - I can publish that if you want. Seems like the got5 guys are also implementing a DataTable component: https://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/components/DataTable.java Cucchietti Denis-2 wrote Thanks in advance. Your'e welcome, Chris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Flexigrid-with-tapestry-5-2-tp5010845p5011427.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 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é d'Atos 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 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
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 : t:select t:id=multipleRoles t:validate=required 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.
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 denis.cucchie...@atosorigin.com 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:select t:id=multipleRoles t:validate=required 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, 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 denis.cucchie...@atosorigin.com 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:select t:id=multipleRoles t:validate=required 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
Problem for write actionLink with markup writer
Hi all ! I've a question : it is possible to write an actionLink with a MarkupWriter ? I've tried to do : In my component : writer.writeRaw(a id='delete' href='../view.delete/+childLevel.getId()+?t:ac=+childLevel.getOrganism().getId()+'); But when I click on it's doesn't work, the page respond : org.apache.tapestry5.ioc.internal.util.TapestryException: Component organism/department/View does not contain an embedded component with id 'delete'. Any ideas? Thanks in advance 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: Problem for write actionLink with markup writer
Thanks Thiago, Im trying to create a tree and for each node a menu. In this menu I have this action delete and I would like catch this event in order to delete the node from my page. -Message d'origine- De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Envoyé : jeudi 16 décembre 2010 16:32 À : Tapestry users Objet : Re: Problem for write actionLink with markup writer On Thu, 16 Dec 2010 13:05:31 -0200, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Hi all ! Hi! I've a question : it is possible to write an actionLink with a MarkupWriter ? Technically speaking, no, because you can only declare component instances in templates. In addition, you can't instantiate components yourself for use in other components or pages. On the other hand, you can get the URL genarated for an ActionLink or EventLink @Inject'ing ComponentResources and using it createEventLink(String eventType, Object... context) method. writer.writeRaw(a id='delete' href='../view.delete/+childLevel.getId()+?t:ac=+childLevel.getOrganism().getId()+'); Why are you using writeRaw() instead of element()? Anyway, using hardwired URLs is a very bad practice. What you're trying to accomplish? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org 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: Problem for write actionLink with markup writer
Ok Thiago i will try it, thanks !! -Message d'origine- De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Envoyé : jeudi 16 décembre 2010 16:49 À : Tapestry users Objet : Re: Problem for write actionLink with markup writer On Thu, 16 Dec 2010 13:39:21 -0200, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Thanks Thiago, Im trying to create a tree and for each node a menu. In this menu I have this action delete and I would like catch this event in order to delete the node from my page. You need events for that, but not necessarily an EventLink or ActionLink. Do what I said: generate an URL @Inject'ing ComponentResources and using its createEventLink(String eventType, Object... context) method. Pass the object id as the context. If you use delete as your event name, you can handle the event using a onDelete(int id) method. And just use writeRaw() if you want to output HTML from other sources. You shoulde use element() in your scenario instead. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org 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: Problem for write actionLink with markup writer
Thanks Thiago it's works !! Solution : writer.writeRaw(a id='delete' href=' + componentResources.createEventLink(delete, childLevel.getId()) + '); But use element() instead writeRaw ;-) -Message d'origine- De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Envoyé : jeudi 16 décembre 2010 16:49 À : Tapestry users Objet : Re: Problem for write actionLink with markup writer On Thu, 16 Dec 2010 13:39:21 -0200, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Thanks Thiago, Im trying to create a tree and for each node a menu. In this menu I have this action delete and I would like catch this event in order to delete the node from my page. You need events for that, but not necessarily an EventLink or ActionLink. Do what I said: generate an URL @Inject'ing ComponentResources and using its createEventLink(String eventType, Object... context) method. Pass the object id as the context. If you use delete as your event name, you can handle the event using a onDelete(int id) method. And just use writeRaw() if you want to output HTML from other sources. You shoulde use element() in your scenario instead. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org 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.
Attribute sortable in grid
Hello everybody ! I have a little problem in my grid component. I want to offer the possibility to sort a column in my grid. The problem is that this column is not an attribute of my object. I have created a new attribute in my grid component like this : TML : table t:id=structureRelationsGrid t:empty=block:empty pagerPosition=bottom model=gridModel t:type=grid t:row=structureRelationRow t:rowIndex=rowIndex t:source=structureRelationsResult t:rowsPerPage=${message:rowsPerPage} t:inplace=true t:parameter name=relationCell t:textoutput t:value=relationLabel / /t:parameter /table JAVA : BeanModelStructure model = this.beanModelSource.createDisplayModel(Structure.class, this.messages); model.add(relation, null).sortable(true); public String getRelationLabel() { if (this.listOfParentStructures.contains(this.structureRelationRow)) { return Belong to; } return Combines; } So, I've the icon that indicate that the column can be sort but it's don't work ! I would like can sort by Belong to or Combines. Have you any idea? Thanks a lot !!! 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: Attribute sortable in grid
Hi Thiago. First of all thanks for your response. I have tried with a property conduit but the problem is my new column is not an attribute of my object Structure so I don't know how to use it : PropertyConduit propCdtAttribute = this.propertyConduitSource.create(String.class, relation); model.add(relation,propCdtAttribute).sortable(true); This solution doesn't work because the attribute relation doesn't exists in String.class I have also tried with PropertyConduit propCdtAttribute = this.propertyConduitSource.create(String.class, relation); without success. Cheers -Message d'origine- De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Envoyé : lundi 27 septembre 2010 14:47 À : Tapestry users Objet : Re: Attribute sortable in grid On Mon, 27 Sep 2010 05:33:35 -0300, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Hello everybody ! Hi! I have a little problem in my grid component. I want to offer the possibility to sort a column in my grid. The problem is that this column is not an attribute of my object. JAVA : BeanModelStructure model = this.beanModelSource.createDisplayModel(Structure.class, this.messages); model.add(relation, null).sortable(true); You'll need to create a PropertyConduit and then use it in the model: model.add(relation, yourPropertyConduit). In this case, you can have an empty set() method, as you're not using this inside a BeanEditor ou BeanEditform. This way, Grid will know how to get the values of that column and sort them. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org 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: Attribute sortable in grid
Thanks a lot Thiago its works Here the solution : In JAVA : @Property private ListStructure listOfParentStructures; private RelationPropertyConduit relationPropertyConduit; public BeanModelStructure getGridModel() { BeanModelStructure model = this.beanModelSource.createDisplayModel(Structure.class, this.messages); relationPropertyConduit = new RelationPropertyConduit(); relationPropertyConduit.setListOfParentStructures(this.listOfParentStructures); model.add(relation, this.relationPropertyConduit).sortable(true); } My PropertyConduit (RelationPropertyConduit) : public class RelationPropertyConduit implements PropertyConduit { private ListStructure listOfParentStructures; /** * @see org.apache.tapestry5.PropertyConduit#get(java.lang.Object) */ public Object get(Object instance) { Structure structureRelationRow = (Structure) instance; if (this.listOfParentStructures.contains(structureRelationRow)) { return Belong to; } return Combines; } @SuppressWarnings(unchecked) public Class getPropertyType() { return String.class; } @Override public void set(Object arg0, Object arg1) { // TODO Auto-generated method stub } @Override public T extends Annotation T getAnnotation(ClassT arg0) { // TODO Auto-generated method stub return null; } public ListStructure getListOfParentStructures() { return listOfParentStructures; } public void setListOfParentStructures(ListStructure listOfParentStructures) { this.listOfParentStructures = listOfParentStructures; } Thanks ;-) -Message d'origine- De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Envoyé : lundi 27 septembre 2010 15:47 À : Tapestry users Objet : Re: Attribute sortable in grid On Mon, 27 Sep 2010 10:38:38 -0300, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Hi Thiago. Hi! I have tried with a property conduit but the problem is my new column is not an attribute of my object Structure so I don't know how to use it : PropertyConduit propCdtAttribute = this.propertyConduitSource.create(String.class, relation); You should *implement* your own PropertyConduit. PropertyConduitSource only works for real properties (getXXX() and setXXX()). The above code tries to access getRelation() in String class, which doesn't exist. It should be something like this (not tested): class YourPropertyConduit implements PropertyConduit { public Object get(Object instance) { StructureRelationRow structureRelationRow = (StructureRelationRow) instance; if (listOfParentStructures.contains(structureRelationRow)) { return Belong to; } return Combines; } public void set(Object instance, Object value) {} public Class getPropertyType() { return String.class; } } -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org 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: Textfield disabled return a null value
Thanks pablo but i want that the field stay visible but disabled ;-) Thanks for your answer ! -Message d'origine- De : Pablo dos Reis [mailto:pablodosr...@gmail.com] Envoyé : jeudi 23 septembre 2010 00:30 À : Tapestry users Objet : Re: Textfield disabled return a null value *Another option is you change the style.display to none or use the method hide() of prototype element.hide(); * 2010/9/22 Cucchietti Denis denis.cucchie...@atosorigin.com Hi Katia, Thanks for your answer i have used an hidden field and its works! -Message d'origine- De : Katia Aresti Gonzalez [mailto:katiaare...@gmail.com] Envoyé : mardi 21 septembre 2010 17:42 À : Tapestry users Objet : Re: Textfield disabled return a null value Why do you need to disable the autocomplete field this way ? What happens if the user makes a mistake and chooses à wring value ? A quick answer can be to use a hidden and fill it with the value in JavaScript. This hidden value will be mapped with the java class. So when submitting you will have your value But I don't see the point of disabling this way ... 2010/9/21 Cucchietti Denis denis.cucchie...@atosorigin.com Hi Katia, Yes its after submitting. It's on an autocomplete textfield. When the user select a value into the autocomplete list I have added some javascript in order to disable the textfield. But when I submit the form the textfield is null :-/. Is there another mean to forbid the user to change the value of the textfield? Thanks ;-) -Message d'origine- De : Katia Aresti Gonzalez [mailto:katiaare...@gmail.com] Envoyé : mardi 21 septembre 2010 17:10 À : Tapestry users Objet : Re: Textfield disabled return a null value Do you mean after submitting ? When a field is disabled on HTML, this field's value is not submitted. where is this field's value coming from ? 2010/9/21 Cucchietti Denis denis.cucchie...@atosorigin.com Hi everybody ! I have a little problem : I want to get a value from a field which is disabled but in my page.java the property is null even if the textfield is not empty. The problem is that I don't want that the user modify the textfield... Thanks for your help in advance ! 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. 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: Textfield disabled return a null value
Hi Katia, Thanks for your answer i have used an hidden field and its works! -Message d'origine- De : Katia Aresti Gonzalez [mailto:katiaare...@gmail.com] Envoyé : mardi 21 septembre 2010 17:42 À : Tapestry users Objet : Re: Textfield disabled return a null value Why do you need to disable the autocomplete field this way ? What happens if the user makes a mistake and chooses à wring value ? A quick answer can be to use a hidden and fill it with the value in JavaScript. This hidden value will be mapped with the java class. So when submitting you will have your value But I don't see the point of disabling this way ... 2010/9/21 Cucchietti Denis denis.cucchie...@atosorigin.com Hi Katia, Yes its after submitting. It's on an autocomplete textfield. When the user select a value into the autocomplete list I have added some javascript in order to disable the textfield. But when I submit the form the textfield is null :-/. Is there another mean to forbid the user to change the value of the textfield? Thanks ;-) -Message d'origine- De : Katia Aresti Gonzalez [mailto:katiaare...@gmail.com] Envoyé : mardi 21 septembre 2010 17:10 À : Tapestry users Objet : Re: Textfield disabled return a null value Do you mean after submitting ? When a field is disabled on HTML, this field's value is not submitted. where is this field's value coming from ? 2010/9/21 Cucchietti Denis denis.cucchie...@atosorigin.com Hi everybody ! I have a little problem : I want to get a value from a field which is disabled but in my page.java the property is null even if the textfield is not empty. The problem is that I don't want that the user modify the textfield... Thanks for your help in advance ! 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. 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 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
Textfield disabled return a null value
Hi everybody ! I have a little problem : I want to get a value from a field which is disabled but in my page.java the property is null even if the textfield is not empty. The problem is that I don't want that the user modify the textfield... Thanks for your help in advance ! 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: Textfield disabled return a null value
Hi Katia, Yes its after submitting. It's on an autocomplete textfield. When the user select a value into the autocomplete list I have added some javascript in order to disable the textfield. But when I submit the form the textfield is null :-/. Is there another mean to forbid the user to change the value of the textfield? Thanks ;-) -Message d'origine- De : Katia Aresti Gonzalez [mailto:katiaare...@gmail.com] Envoyé : mardi 21 septembre 2010 17:10 À : Tapestry users Objet : Re: Textfield disabled return a null value Do you mean after submitting ? When a field is disabled on HTML, this field's value is not submitted. where is this field's value coming from ? 2010/9/21 Cucchietti Denis denis.cucchie...@atosorigin.com Hi everybody ! I have a little problem : I want to get a value from a field which is disabled but in my page.java the property is null even if the textfield is not empty. The problem is that I don't want that the user modify the textfield... Thanks for your help in advance ! 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. 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: Problem with comma and Integer in textfield
Hi Donny! First of all thanks for your answer. I've chosen the first option. I've declared a String and used the regex and its works fine ;-). Thanks! -Message d'origine- De : Donny Nadolny [mailto:donny.nado...@gmail.com] Envoyé : vendredi 27 août 2010 03:07 À : Tapestry users Objet : Re: Problem with comma and Integer in textfield This seems like a bug to me. I tried it out, and if you have an Integer then Tapestry automatically adds the numericformat validator, but ignores the regex validation you gave (the regex worked when I tried a different one, eg ^a+$, just not the one you gave). If you change your code to be private String budget, the regex works. So you have two options: Change it to be a String and Integer.parseInt it, or: Set your JVM Locale to be french (jvm argument -Duser.language=fr) and Tapestry's numericformat validator will validate numbers properly for you (commas count as decimals which are invalid), and you don't need the regex. On Thu, Aug 19, 2010 at 3:36 AM, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Hi !! First sorry for my poor english ;-). I have decided to ask some help for a problem of comma in textfield. I have an attribute budget : private Integer budget; In TML, i have : t:label for=budget${message:budget-label} :/t:label t:textfield t:id=budget t:value=organism.budget t:maxlength=9 t:validate=regexp/ So i have a regexp because i just want an integer : budget-regexp=^[0-9]{1,9}$ It works but it is always possible to insert a comma in the textfield !! How can i do to forbid this comma? (because in France if you insert a comma is for a float) If someone has an idea :-) Thanks Denis CUCCHIETTI Responsable d'application Business Unit Public Santé Transport Atos Worldline - Lyon Mail : denis.cucchie...@atosorigin.com Tel : +33 (0)4 78 17 87 86 www.atosworldline.comblocked::http://www.atosworldline.com Atos Worldline est une société du groupe Atos Origin : www.atosorigin.comblocked::http://www.atosorigin.com 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 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
RE: Event Refresh when hit F5
Hi Josh ! I can't use flash persistence strategy because my form is in two part. It's a form used to regenerate password. First the user write is login and reply to a question (like 4+2 = ?), if there is a result an array appear with his informations but I need to save the response of the question because when the user validate the form I check the response. When the user validate the form a message appear : Your new password was send successfully... at the top of the array. My client want that when you press F5 at this moment, the first form appear with all fields empty (username and question). Thanks in advance ! -Message d'origine- De : Josh Canfield [mailto:joshcanfi...@gmail.com] Envoyé : mardi 24 août 2010 22:35 À : Tapestry users Objet : Re: Event Refresh when hit F5 I'm trying to detect the event Refresh on my page in order to clean all persistant variables (annoted @Persist). Could you use the flash persistence strategy instead? If not, what are you trying to accomplish? Can you give the workflow? Josh On Tue, Aug 24, 2010 at 5:05 AM, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Hi everybody !! I'm trying to detect the event Refresh on my page in order to clean all persistant variables (annoted @Persist). To clean these variables I use this code: @Inject private ComponentResources componentResources; componentResources.discardPersistentFieldChanges(); But the problem is to detect the event Refresh when some user hit on F5. Is there a way to detect this event with tapestry? Thanks in advance 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. -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org 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: Event Refresh when hit F5
Hi ! That's a great idea witch probably resolve my problem !! Thanks for your answers guys. -Message d'origine- De : Sigbjørn Tvedt [mailto:sigbjo...@gmail.com] Envoyé : mercredi 25 août 2010 12:24 À : Tapestry users Objet : Re: Event Refresh when hit F5 Hi. How about introducing a new field that will contain the status of the page? @Persist(Flash) private boolean isOK; Every time you do some operations you will have to set isOK to true. If the user reloads the page without posting to the server, isOK will be false. Sigbjørn Tvedt On Wed, Aug 25, 2010 at 9:36 AM, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Hi Josh ! I can't use flash persistence strategy because my form is in two part. It's a form used to regenerate password. First the user write is login and reply to a question (like 4+2 = ?), if there is a result an array appear with his informations but I need to save the response of the question because when the user validate the form I check the response. When the user validate the form a message appear : Your new password was send successfully... at the top of the array. My client want that when you press F5 at this moment, the first form appear with all fields empty (username and question). Thanks in advance ! -Message d'origine- De : Josh Canfield [mailto:joshcanfi...@gmail.com] Envoyé : mardi 24 août 2010 22:35 À : Tapestry users Objet : Re: Event Refresh when hit F5 I'm trying to detect the event Refresh on my page in order to clean all persistant variables (annoted @Persist). Could you use the flash persistence strategy instead? If not, what are you trying to accomplish? Can you give the workflow? Josh On Tue, Aug 24, 2010 at 5:05 AM, Cucchietti Denis denis.cucchie...@atosorigin.com wrote: Hi everybody !! I'm trying to detect the event Refresh on my page in order to clean all persistant variables (annoted @Persist). To clean these variables I use this code: @Inject private ComponentResources componentResources; componentResources.discardPersistentFieldChanges(); But the problem is to detect the event Refresh when some user hit on F5. Is there a way to detect this event with tapestry? Thanks in advance 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. -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org 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
Event Refresh when hit F5
Hi everybody !! I'm trying to detect the event Refresh on my page in order to clean all persistant variables (annoted @Persist). To clean these variables I use this code: @Inject private ComponentResources componentResources; componentResources.discardPersistentFieldChanges(); But the problem is to detect the event Refresh when some user hit on F5. Is there a way to detect this event with tapestry? Thanks in advance 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.
Problem with comma and Integer in textfield
Hi !! First sorry for my poor english ;-). I have decided to ask some help for a problem of comma in textfield. I have an attribute budget : private Integer budget; In TML, i have : t:label for=budget${message:budget-label} :/t:label t:textfield t:id=budget t:value=organism.budget t:maxlength=9 t:validate=regexp/ So i have a regexp because i just want an integer : budget-regexp=^[0-9]{1,9}$ It works but it is always possible to insert a comma in the textfield !! How can i do to forbid this comma? (because in France if you insert a comma is for a float) If someone has an idea :-) Thanks Denis CUCCHIETTI Responsable d'application Business Unit Public Santé Transport Atos Worldline - Lyon Mail : denis.cucchie...@atosorigin.com Tel : +33 (0)4 78 17 87 86 www.atosworldline.comblocked::http://www.atosworldline.com Atos Worldline est une société du groupe Atos Origin : www.atosorigin.comblocked::http://www.atosorigin.com 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.