It can be useful, however, to have a blank heading for columns which may be icons such as edit/delete. It doesn't hurt to have a heading for such columns, but sometimes it is nice to be able to save some horizontal real-estate by utilizing an icon to replace the text.
Howard Lewis Ship wrote: > > The label is also used by BeanEditor and individual fields when > composing error messages. > > On Feb 2, 2008 12:16 PM, Shing Hing Man <[EMAIL PROTECTED]> wrote: >> Hi, >> >> In the Grid component, I added a custom column with >> a >> blank label. >> >> beanModel.add("rowNo", null).label(" "); >> >> This resulted in the following exception. >> I could use css to make the label non-visible. >> Is there a more elegant way of having a blank column >> header. >> >> Thanks in advance for any assistance ! >> >> Shing >> >> java.lang.IllegalArgumentException >> Parameter label was null or contained only whitespace. >> >> Stack trace >> >> * >> org.apache.tapestry.ioc.internal.util.Defense.notBlank(Defense.java:59) >> * >> org.apache.tapestry.internal.beaneditor.PropertyModelImpl.label(PropertyModelImpl.java:87) >> * >> net.sf.gridDemo.pages.AccessGrid.getBeanModel(AccessGrid.java:110) >> * >> org.apache.tapestry.internal.bindings.PropBinding.get(PropBinding.java:54) >> * >> org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter(InternalComponentResourcesImpl.java:209) >> >> Home page : http://www.lombok.demon.co.uk/ >> >> >> >> __________________________________________________________ >> Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Tap-5.0.9%3A-Why-can%27t-Grid-column-header-has-blank-label-tp15246759p16371478.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]