Re: Abstract Header JavaScript Behavior

2009-02-14 Thread Martin Makundi
> unless you are planning to reuse such snippets it is cleaner to let > your component implement IHeaderContributor. So if I make a Panel implement IHeaderContributor, the renderHead will automatically be called? This would be very nice. Maybe it should be more apparent from the framework? ** Mar

Re: Anyone have idea on ofbiz framework

2009-02-14 Thread Trent Larson
I've used an old version of it. It works fairly well, and they work to keep up with standard interfaces. However, be prepared for a learning curve with anything you have to customize; many of the pieces (at least with my version) are non-standard. If you anticipate limited customizations and you

Re: propertycolumn - date column, checkbox column

2009-02-14 Thread James Carman
Perhaps a subclass of AbstractColumn? public class MessageFormatColumn extends AbstractColumn { private final String pattern; public MessageFormatColumn(IModel displayModel, String pattern) { super(displayModel); this.pattern = pattern; } public void populateItem(Item> cellItem

Re: propertycolumn - date column, checkbox column

2009-02-14 Thread Korbinian Bachl - privat
Hi, use AbstractColumn instead and provide a panel that does what you want, eg: columns.add(new AbstractColumn(new Model("CHGE"), "changed") { public void populateItem(Item> cellItem, String componentId, IModel model) { cellItem.add(new ChangedCellPanel(componentI

propertycolumn - date column, checkbox column

2009-02-14 Thread Christoph Grün
Hi all, columns.add(new PropertyColumn(new Model("Title"), "title", " title ")); How can I have such a property column that displays java.util.dates? I would also need the same for checkboxes or true/false values. Thanks a lot, Christoph

Re: DefaultDataTable - how to get index of selected element

2009-02-14 Thread James Carman
You could put a link on each row On Sat, Feb 14, 2009 at 12:19 PM, Christoph Grün wrote: > Hi all, > > > > I have a datatable and following method that delivers the selected item in > the table. How can I get the index of the selected element? There are > methods for getting the current page inde

DefaultDataTable - how to get index of selected element

2009-02-14 Thread Christoph Grün
Hi all, I have a datatable and following method that delivers the selected item in the table. How can I get the index of the selected element? There are methods for getting the current page index and all page rows, but I couldn’t find a function for getting the index of the current element.

Re: Abstract Header JavaScript Behavior

2009-02-14 Thread Igor Vaynberg
unless you are planning to reuse such snippets it is cleaner to let your component implement IHeaderContributor. -igor On Sat, Feb 14, 2009 at 2:52 AM, Martin Makundi wrote: > Hi! > > Does Wicket have this functionality built-in? Would it make sense? > public abstract class AbstractHeaderJavaScr

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-14 Thread Adriano dos Santos Fernandes
I know I have, but could only test about it on Monday. Is there any workaround, to have the timer and the image together? Thanks, Adriano Jeremy Thomerson wrote: Have you made sure that you don't have any in your code? This has been known to cause similar behavior. On Thu, Feb 12, 2009 at

Abstract Header JavaScript Behavior

2009-02-14 Thread Martin Makundi
Hi! Does Wicket have this functionality built-in? Would it make sense? public abstract class AbstractHeaderJavaScriptBehavior extends AbstractBehavior implements IHeaderContributor { /** * @see org.apache.wicket.behavior.AbstractBehavior#renderHead(org.apache.wicket.markup.html.IHeader