Hi Hector, Thanks for uploading that image ... a picture tells a thousand words.
To implement your requirements, I could imagine the <fieldset> element having an additional attribute, say "defaultView" (similar to the <collection> element / @CollectionLayout annotation), which might default to "open" but also support "hide". This corresponds to the org.apache.isis.applib.layout.component.FieldSet class. In the UI, this corresponds to the org.apache.isis.viewer.wicket.ui.components.entity.fieldset.PropertyGroup class, which is passed the FieldSet into its constructor (by way of its Wicket model). So it looks like this PropertyGroup component could quite easily be made a little more sophisticated to have a drop-down. Do you fancy delving in to see if you can get a spike working (with a view to incorporating this functionality into a future version of the framework)? Martin Grigorov is our Wicket expert, and he is usually very prompt at answering any Wicket-specific questions. HTH Dan On Sat, 8 Apr 2017 at 23:26 Hector Fabio Meza <[email protected]> wrote: > Thanks for your quick response, Dan. > > What I already have is this: > http://picpaste.com/pics/Captura-3YyASQhp.1491690059.JPG > > It's a ViewModel with a table that can contain a lot of rows, and a group > of fields that act as filters for the table. The fields can sometimes use > up a lot of the screen, so I was wondering if the same component that > allows to hide the table could be used to make the zone highlighted in blue > collapsible, in order to show it only when the user wants to use it. > > I also found this, https://issues.apache.org/jira/browse/ISIS-1031, > <https://issues.apache.org/jira/browse/ISIS-1031%20>which could be an > alternative, but replacing the table component sounds more difficult than > using a hide button. > > > El 2017-04-08 10:39, Dan Haywood escribió: > > Could you do a sketch of the sort of User interface that you are after? > > On Sat, 8 Apr 2017, 16:31 Hector Fabio Meza, <[email protected]> > wrote: > >> Hi, >> >> I have a ViewModel that includes a set of fields and a table. The table >> has the default button that allows to change the view and hide the table, >> but I have the requirement of replicating this behavior for the set of >> fields. >> >> Is this possible? I imagine I'll have to delve into the WicketViewer >> classes, are there any hints or tips for this? >> >> Thank you. >> -- >> >> *Hector Fabio Meza* >> *R&D Lead smartools* >> (57) 300 2254455 <%2857%29%20300%206815404> >> Skype: hectorf.meza >> www.smartools.com.co >> >> > > -- > > *Hector Fabio Meza* > *R&D Lead smartools* > (57) 300 2254455 <%2857%29%20300%206815404> > Skype: hectorf.meza > www.smartools.com.co > >
