Hi Dan, I did this little trick of setting the "labelPosition" : "TOP" and adjusting the width which did the job for me. Anyway it is nice to hear that you have added the functionality properly in the upcoming release. It's glad to see Apache ISIS framework is providing the support for customization taking small things into consideration.
Best Regards, Dilshan. On Thu, Mar 17, 2016 at 6:41 PM, Dan Haywood <[email protected]> wrote: > Hi Dilshan, > > sorry not to get back to you on this before now. > > I wasn't able to just use CSS as things are in 1.11.1, but I've gone ahead > and done some minor improvements to the wicket viewer so that it does now > emit extra CSS classes [1]; this will be in 1.12.0. > > I've written up the technique in the docs, see [2] > > Incidentally, this also now provide a CSS-only solution for the > requirements also raised in [3] (suppress certain columns in tables) and > [4] (suppress icon/link for some entity types). > > HTH > Dan > > > [1] https://issues.apache.org/jira/browse/ISIS-1330 > [2] > > http://isis.apache.org/guides/ugvw.html#_ugvw_customisation_tweaking-css-classes_columns-in-tables > [3] https://issues.apache.org/jira/browse/ISIS-791 ... raised by Erik > [4] https://issues.apache.org/jira/browse/ISIS-1021 ... raised by > Stephen > > > > > On 9 March 2016 at 09:02, Shan Wijesinghe <[email protected]> > wrote: > > > Stephen thank you for the comments. > > > > Dan , I tried that already using "width: NN px". I used the same cssClass > > for all the fields and changed the width. It worked but when using lower > > width ( say, 50px ) field name and its text field overlapped and for > > higher width ( say 500px ) horizontal scrollbar appeared in the > table.This > > behavior is undesired. Please do give a guidance on the matter. Thank you > > for the information. > > > > regards, > > Dilshan. > > > > On Wed, Mar 9, 2016 at 1:53 PM, Dan Haywood < > [email protected]> > > wrote: > > > > > Actually, the PropertyLayout#typicalLength() is intended as a UI hint > as > > to > > > the size of the text box... how many characters would typically be in > > that > > > field, and thence how wide to render the text field. That's where the > > name > > > comes from, and why it's in the XxxLayout annotation. > > > > > > The Property#maxLength() is the absolute maximum length, so is part of > > the > > > domain. Alternatively, maxLength is also derived from the JDO > > > @Column#length() annotation. > > > > > > Now the caveats. > > > > > > * First, as already noted these only apply to strings > > > > > > * Second, the typicalLength was only really something we considered for > > the > > > object forms, not for column widths of tables. And even saying that, > > when > > > we restyled the Wicket viewer to use bootstrap3, we decided that it was > > > cleaner to have all text boxes rendered the same size. (How many > > > characters can be entered still depends on the maxLength of course). > > > > > > So, what that means is we don't really have a way to control the column > > > width through the metamodel. > > > > > > What you may be able to do though is to use CSS, modifying the > > > WEB-INF/application.css file to adjust the "width: NN%". I don't have > > time > > > at the moment, but I'll try to follow up with some further guidance on > > this > > > later today. > > > > > > thx > > > Dan > > > > > > > > > > > > > > > > > > > > > On 9 March 2016 at 07:35, Stephen Cameron <[email protected]> > > > wrote: > > > > > > > I don't think that is the way to think of about it. A string has > length > > > but > > > > the other datatypes don't. That is the Naked Object heritage. > > > > > > > > Having said that, there is now quite a bit of flexibility in tweeking > > the > > > > views that a viewer creates, as described here: > > > > > > > > https://isis.apache.org/guides/ugfun.html#_ugfun_object-layout > > > > > > > > . > > > > > > > > On Wed, Mar 9, 2016 at 5:53 PM, Shan Wijesinghe < > > > [email protected] > > > > > > > > > wrote: > > > > > > > > > Stephen it says here maxLength() applicable only to String. Say I > > have > > > > > int,double or even another object inside my table. Then how can I > > give > > > a > > > > > length to such a column. Thanks. > > > > > > > > > > On Wed, Mar 9, 2016 at 12:19 PM, Stephen Cameron < > > > > > [email protected] > > > > > > wrote: > > > > > > > > > > > > > https://isis.apache.org/guides/rgant.html#_rgant-Property_maxLength > > > > > > > > > > > > On Wed, Mar 9, 2016 at 5:02 PM, Shan Wijesinghe < > > > > > [email protected] > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > Hi all, > > > > > > > what is the way to chance the layout of tables like > > spacing > > > > of > > > > > > > columns. ( is there a way to specify length of column similar > to > > > > > > > typicalLength() attribute which only work for Strings ) > > > > > > > > > > > > > > thanks and regards, > > > > > > > Dilshan. > > > > > > > > > > > > > > > > > > > > > > > > > > > >
