OK, I had a look at what Apache Wicket can provide... there's a sample
phonebook example that demonstrates filtering, and I've just uploaded a
video of it to YouTube [1]

It ought to be doable to implement something like this automatically in
Isis (perhaps a new annotation might be needed to indicate the nature of
the filtering to be provided, or maybe just automatically provide simple
text filtering for all properties).

Comments welcome

Dan

[1] http://www.youtube.com/watch?v=E33lQAddK7Y


On 2 July 2013 00:29, Josh Kamau <[email protected]> wrote:

> Hi Dan ;
>
> Thank you very much for your response.
>
> I can live with all the other issues... but ability to search/filter
> records in a grid is very important. May be a workaround is to do search on
> a form in one page and show the results on a grid in another page. I would
> really like to see something like the filter function in openxava [1]
>
> I will create a Jira issue if that will help ;)
>
> Kind regards.
> Josh
>
> [1] http://openxava.org/
>
>
> On Mon, Jul 1, 2013 at 9:26 PM, Dan Haywood <[email protected]
> >wrote:
>
> > On 1 July 2013 15:59, Josh Kamau <[email protected]> wrote:
> >
> > > Hi guys ;
> > >
> >
> > Hi Josh,
> >
> >
> > > I just discovered apache isis while looking for a java based RAD
> > framework.
> > >
> >
> > welcome to the Apache Isis mailing list; glad you found us!
> >
> >
> > > have a few questions though. I just need to know if the following are
> > > possible (without getting into the guts of the framework).
> > >
> > > 1. Can i add search/filter fields whenever there is a grid ?, can i
> > > customize the filter?
> > >
> >
> > No, fraid not.  Raise a JIRA ticket [1] describing exactly what you want.
> >  What is possible tends to depend on Wicket, though.
> >
> >
> >
> > > 2. Can i change the UI layout ?
> > >
> >
> > Kind of.  The Wicket viewer has support for a lot of annotations and
> hints,
> > and there are pluggable views of maps, charts, calendars etc.  See my
> > github repos [2], isis-wicket-*.  However the overall structure of
> > properties on the left, collections on the right is reasonably fixed.
> >
> > In fact, there is an internal API - PageRegistry - within the Wicket
> viewer
> > that allows different pages to be served up.  It could have quite a few
> > rough edges, but I'm happy to talk you through using it if you fancy
> > digging into Wicket a little.
> >
> > ~~~
> > There are some other viewers that provide alternate support.  Or, for
> > maximum flexibiility, you could roll your own against the Restful Objects
> > viewer [3].
> >
> >
> >
> > > 3. Can i add confirmation dialogs for some actions
> > >
> >
> > You can simulate it quite easily, by having a boolean checkbox that must
> be
> > checked.   Something like:
> >
> > public void doSomething(
> >      @Named("Foo") int a,
> >      @Named("Bar") String x,
> >      @Named("Are you sure?") @Optional Boolean confirm) {
> >
> >
> > }
> > public String validateDoSomething(
> >     int a,
> >     String x,
> >     Boolean confirm) {
> >
> >    return confirm!=null && confirm? null: "Check 'are you sure' to
> > proceed";
> > }
> >
> > There isn't any pop-up, though.  We've been considering it.
> >
> >
> >
> > > 4. Does it support file upload/image fields
> >
> >
> > yes - use org.apache.isis.applib.Blob or org.apache.isis.applib.Clob as
> the
> > datatype.  An example is the attachment property of the ToDoItem
> >
> >
> > > and renderers?
> > >
> >
> > Not sure what you mean here.  The Wicket viewer has a whole bunch of
> > internal renderers, making up a pluggable architecture.  I can explain it
> > in more detail if you have a particular use case in mind...
> >
> >
> >
> > > 5. Is there a relatively complicated application that i can check out?
> > the
> > > demo link on the site is not working.
> > >
> > >
> > If you can wait a few days, we're currently in the process of open
> sourcing
> > a reasonably substantial app that we've been working on.
> >
> > You could also check out the codebase of the TransportPlanner app, [4]
> >
> >
> > Any further questions, please don't hesitate to ask...
> >
> > Cheers
> > Dan
> >
> >
> >
> > > Kind regards.
> > > Josh
> > >
> >
> >
> > [1] https://issues.apache.org/jira/browse/ISIS
> > [2] https://github.com/danhaywood?tab=repositories
> > [3] http://isis.apache.org/components/viewers/restfulobjects/about.html
> > [4] http://isis.apache.org/getting-started/powered-by.html
> >
>

Reply via email to