In a further off-list email exhcange with Rangarath, I suggested a couple
of techniques for reducing the number of services being displayed in menus.
Repeating those tips here for others...)
~~~~
If you are running out of real-estate, what you might want to do is to
create a dummy service and then move other service actions underneath.
Estatio does this with an "Other" service which is for the various
repositories to access reference data.
@Named("Other")
public class OtherServices {
}
and then:
public class Countries {
@MemberOrder(name = "Other", sequence = "geography.countries.1")
public List<Country> allCountries() { ... }
@MemberOrder(name = "Other", sequence = "geography.countries.2")
public List<Country> newCountry( ... ) { ... }
}
...
}
and:
public class States {
@MemberOrder(name="Other", sequence = "geography.states.1")
public List<State> allStates() { ... }
@MemberOrder(name="Other", sequence = "geography.states.2")
public State newState( ...) { ... }
}
Notice how the Countries' and States methods have
@MemberOrder(name="Other", ...); this is what causes them to be rendered in
the "Other" menu.
Other tricks:
- use @NotInMenuServices to prevent actions from being rendered at all
- use @Prototype to only render "developer" actions while running in
prototype mode
- use security roles so that users only see what is relevant to them,
rather than everything.
On 13 June 2014 15:27, Dan Haywood <[email protected]> wrote:
> Screenshots (and other attachments) get stripped off by Apache's mail
> servers, so you'll need to upload elsewhere and link to it for us to see...
>
> However, what I would do is use Chrome DevTools [1] to manipulate styles
> directly, then copy those changes to application.css. If you've not used
> it there must be a hundred youtube tutorials out there, eg [2]
>
> Cheers
> Dan
>
> [1] https://developer.chrome.com/devtools/index
> [2] https://www.youtube.com/watch?v=dNsM2PUkZ1g
>
>
>
>
>
> On 13 June 2014 13:36, <[email protected]> wrote:
>
>> Hi,
>>
>> We have many services in our ISIS application. So adding them causes
>> issue in display. Menu items(Services) which come in 2nd line get hidden
>> because of insufficient height in the menu area.
>>
>>
>>
>> Anyone please guide me how to increase it in application.css.
>>
>>
>>
>> PFB screenshot:
>>
>>
>>
>> The information contained in this electronic message and any
>> attachments to this message are intended for the exclusive use of the
>> addressee(s) and may contain proprietary, confidential or privileged
>> information. If you are not the intended recipient, you should not
>> disseminate, distribute or copy this e-mail. Please notify the sender
>> immediately and destroy all copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>
>> www.wipro.com
>>
>
>