Properties on top of tabs (feature request?)

5 posts / 0 new
Last post
Marc
Offline
Joined: 07/08/2009
Properties on top of tabs (feature request?)

Hello,

 

First of all, Pierre and Vincent, thanks for your answers on my previous item. This is clear for me now.

 

I have a new question about component views.

 

I want to construct a component view on my entity “Proposal”. Given the amount of properties, I need to spread most of the properties over several tabs. But some of the properties of a Proposal denote its identification (like proposal-name and proposal-number) and should remain visible whatever tab is op top. So I need a structure containing first a list of BasicPropertyViewDescriptors and subsequently a list of tab panes. A BasicTabViewDescriptor does not seem to be able to contain BasicPropertyViewDescriptors on top of the tabs. So I think we might need something new here. Is this a candidate for a new feature request (then I’m happy to create one)? Or can my case already be achieved with the current JSpresso constructions?

 

Thanks,

Marc

vvandens
Offline
Joined: 05/29/2008
No, already there ;-)

Marc,

This is the perfect use case for using a composite view. A composite view can aggregate multiple children views (the tab view is such a composite view).

In your case, I would use a BasicBorderViewDescriptor that lays-out its children views Nort, East, West, South and Center (there are many other available, like split, grids, ...). Create a component view with your identification properties and set it to North. Then place your existing tab view to center, and you should be done. Of course, in your module, instead of directly referencing the tab view, you will now reference the new border view.

 

HTH,

Vincent

Marc
Offline
Joined: 07/08/2009
Vincent, Thanks. Works

Vincent,

Thanks. Works indeed. Only I have an unfavourable visual effect: tab names are redundantly repeated in a grey bar. See also feature request 2856942. Because I do not know how to upload files or include images here, I made a feature request.

Regards,

Marc 

vvandens
Offline
Joined: 05/29/2008
Titled view

Hi marc,

Sorry for the late answer but I was not connected over the week-end. To get rid of the title bar in views, just don't make them inherit from the framework decoratedView (look at its definition in commons.xml), e.g. :

  <bean id="Proposal.technics.pane"
parent="decoratedView"
class="org.jspresso.framework.view.descriptor.basic.BasicComponentViewDescriptor">

The decoratedView sets the border to EBorderType.TITLED. You can choose EBorderType.SIMPLE (line) or EBorderType.NONE (nothing, the default).

BTW, I will check how to enable file attachement in the forum.

 

HTH,

Vincent

vvandens
Offline
Joined: 05/29/2008
Files attachement enabled

You can now attach files to your forum posts.

 

Vincent