RE: JSon, includeProperties and modelDriven

2012-04-04 Thread Matthieu.Marc
Thanks a lot, it resolved my problem Adding : action Matthieu --- Matthieu MARC Responsable du Service Informatique Centre Arts et Métiers Angers Tel : 02 41 20 73 61 -Message d'origine- De : maurizio.cucchi...@gmail.com [mailto:maurizio.cucchi...@gmail.com] De la part de Maurizio Cucc

JSon, includeProperties and modelDriven

2012-03-05 Thread Matthieu.Marc
Hi, I am trying to make an action build a JSON result. The action is defined in the struts.xml file as : ^day, events, events\[\d+\], events\[\d+\].id, My Java action class EventsAction is defined as : public class EventsAction ex

RE : Mobile Device Support

2012-01-15 Thread Matthieu.Marc
Hi, Your solution sounds better when you want to have a different display between mobile users and browser users. Are you agree to post the code of your interceptor ? I am thinking of making a mobile version of a calendar application. I am displaying a week based calendar for browsers users, b

encodeBase64URLSafeString in s:param

2011-05-17 Thread Matthieu.Marc
Hi, I have a problem calling a method in a s :param tag. I want to encode an url parameter in base64 in order to avoid French special char and charset problem. The param 'dn' is working. Item.result.common.dn.bytes is working (tested with a s:property tag). But the method

RE: Iterator tag and enumeration

2011-05-13 Thread Matthieu.Marc
Great, it nearly solve my problem. Thanks, Matthieu MARC -Message d'origine- De : Biesbrock, Kevin [mailto:biesbrock.ke...@aoins.com] Envoyé : vendredi 13 mai 2011 16:18 À : Struts Users Mailing List Objet : RE: Iterator tag and enumeration This peaked my interest so a colleague of mi

RE: Iterator tag and enumeration

2011-05-12 Thread Matthieu.Marc
getListLocalization() is a method of my Enum, not of my Action class. Matthieu MARC -Message d'origine- De : Steven Yang [mailto:kenshin...@gmail.com] Envoyé : vendredi 13 mai 2011 03:03 À : Struts Users Mailing List Objet : Re: Iterator tag and enumeration I dont quite get what exact

RE: Iterator tag and enumeration

2011-05-12 Thread Matthieu.Marc
This code is working : This one is not working : Neither this one : And neither this one : I would be great to make the getListLocalization() work because I will be able to have a nice display of select element. Thank Matthieu MARC -Message d'origine--

Iterator tag and enumeration

2011-05-12 Thread Matthieu.Marc
Hi, I have an enumeration 'Localization' : public enum Localization { AIX("Aix-en-provence"), ANGERS("Angers") ; } And I want to put a form select in a jsp using s:select tag with all Localization items, like : But I don't know what to put in the list parameter. In my Loca

RE: Tag iterator and my object container

2011-05-12 Thread Matthieu.Marc
Hi, Thank you. I implements the iterator interface, and now it is working. public class SearchResults implements Iterator { private Set keySet = null; private Iterator iterator = null; private Set keySet() { if (this.keySet == null) {

Tag iterator and my object container

2011-05-10 Thread Matthieu.Marc
Hi everybody, I have a container object SearchResults which contains a treeMap of simple object SearchResult. I want to iterate over SearchResults in order to display properties of all SearchResult object Class SearchResult { //getter and setter getDescr

RE : jquery + struts2 => autocompleter example?

2011-03-10 Thread Matthieu.Marc
Hi, You can find example in the two showcases war (the bin for jsp and the source one if you want to see action java class) of the struts2-jquery plugins : http://code.google.com/p/struts2-jquery/downloads/list And on the wiki : http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag B

RE : RE: Multiple field and modelDriven

2011-02-18 Thread Matthieu.Marc
Thanks, for the information, I was an aspect of Struts2 I have not yet learned. So I do, and it is very interesting. I tried to go this way for my problem. My Action class : public class myAction implements ModelDriver; My User class from another java package : public class User { public Strin

RE: Multiple field and modelDriven

2011-02-17 Thread Matthieu.Marc
My User Class came from another java library which bind User class to an Active Directory User. I would like to find a solution without modifying this java library. ... but If there is no solution, I will modify my User class. Matthieu MARC -Message d'origine- De : Maurizio Cucchiara

RE: Multiple field and modelDriven

2011-02-17 Thread Matthieu.Marc
I used the struts 2.2.1.1 version -Message d'origine- De : Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Envoyé : jeudi 17 février 2011 10:28 À : Struts Users Mailing List Objet : Re: Multiple field and modelDriven Which struts version? Maurizio Cucchiara Il giorno 17/feb/2

Multiple field and modelDriven

2011-02-17 Thread Matthieu.Marc
Hi everybody, I have a class named User which contain some information about user . I have made a form in my JSP and an action which is modelDriven with my User class. Public class User implements modelDriven{}... My question is about multiple field with same id in my JSP. My User class have