http://jmesa.googlecode.com/svn/trunk/jmesa/src/org/jmesa/view/html/editor/HtmlFilterEditor.java
http://code.google.com/p/jmesa/wiki/Editors
What you would need to do is create your own filter editor.
Surprisingly this request just did not come up from developers to have
filter droplists so I have put off doing it. I would be willing to
help you figure it out though.
The way I was hoping to make it work is to have the filter droplist
show up on the div that pops up. So this would require a new filter
editor and some more JavaScript. I am also going to start using the
JQuery library as I think it is a really great library that makes
working with JavaScript a pleasure.
However, if you just wanted the droplist to show up and not have the
div popup you could just have the filter editor create a droplist. You
would just need to call the addFilter() JavaScript (jmesa.js) function
to add it to the Javascript Limit domain.
You can get at the items through the CoreContext. The
AbstractFilterEditor extends the AbstractContextSupport class so you
can get at it from the getCoreContext() function.
Hopefully this is not too overwhelming. The extensions in JMesa allow
developers to customize things with minimal code but you do have to
get your hands a little dirty.
-Jeff Johnston
Thanks.
On Oct 2, 7:48 pm, Jeff Johnston <extremecompone...@gmail.com> wrote:
> Instead of a filterCell, JMesa has a filterEditor that cooresponds
> with the FilterEditor interface. The following link is the default
> filter editor:
>
> http://jmesa.googlecode.com/svn/trunk/jmesa/src/org/jmesa/view/html/e...
In the meantime, I was able to figure out how to create my own
FilterEditor, but I'm lost as how to go about to set/create the
javascript call.
Which jmesa.js script should I call and how?
Thanks.
Patrick
-Jeff Johnston
I'm using the taglib, with
filterEditor="com.example.FaculteFilterEditor"
Code for my FilterEditor is :
public Object getValue()
{
String select = null;
List<Inscription> inscriptions = (List<Inscription>)
webContext.getRequestAttribute("facultesInfo");
List<String> list = new ArrayList<String>();
for (Inscription inscription : inscriptions)
{
list.add(inscription.getActivite().getFaculte());
}
Collections.sort(list);
final StringBuilder sb = new StringBuilder();
sb.append("<select id=\"faculte\" ");
sb.append(">");
sb.append("<option value=\"\">Faculté</option>");
for (String string : list)
{
sb.append("<option name=\"");
sb.append(string);
sb.append("\">");
sb.append(string);
sb.append("</option>");
}
sb.append("</select>");
select = sb.toString();
return select;
}
Patrick
On Oct 6, 11:07 pm, Jeff Johnston <extremecompone...@gmail.com> wrote:
> Could you post or send me the code? It would be easier to explain how
> to do it if I can see what you have. If you do not want to post the
> code send it to me at extremecompone...@gmail.com.
>
> -Jeff Johnston
>
http://jmesa.googlecode.com/svn/trunk/jmesaWeb/src/org/jmesaweb/controller/CareerFilterEditor.java
-Jeff Johnston
--
You received this message because you are subscribed to the Google Groups "JMesa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmesa+un...@googlegroups.com.
To post to this group, send email to jm...@googlegroups.com.
Visit this group at https://groups.google.com/group/jmesa.
For more options, visit https://groups.google.com/d/optout.