Re: how to disable the table while it is empty in wicket

2014-06-18 Thread Martin Grigorov
Hi, On Thu, Jun 19, 2014 at 7:06 AM, kumar ramanathan wrote: > Hi Martin, > > I have added that code in the dataview as below. > > dataView = new DataView>("AssignmentList", new > ListDataProvider(assignments)) { >public void onConfigure() { > *su

Re: how to disable the table while it is empty in wicket

2014-06-18 Thread kumar ramanathan
Hi Martin, I have added that code in the dataview as below. dataView = new DataView>("AssignmentList", new ListDataProvider(assignments)) { public void onConfigure() { *super.onConfigure();* *//am getting error here* setVis

after redirect to statefull page and browser back button results StalePageException

2014-06-18 Thread Rakesh A
Hi, I've a link on the page, which requires a redirect to statefull page, and the resultant page also has this type of link, upon clicking on it [on the second page], and on the third page, if use the browser back button, I get StalePageException. Click on link - will result a. Create a page i

Re: how to disable the table while it is empty in wicket

2014-06-18 Thread Martin Grigorov
new DataView() { @Override public void onConfigure() { super.onConfigure(); setVisible(getDataProvider().size() > 0); } } Martin Grigorov Wicket Training and Consulting On Wed, Jun 18, 2014 at 11:24 AM, kumar ramanathan wrote: > > > Hi Friends, > Finally i have created a program to di

how to disable the table while it is empty in wicket

2014-06-18 Thread kumar ramanathan
Hi Friends, Finally i have created a program to display table with links with guidance of you all.I have the below program which displays the data in a table format.While the page loads initially an empty table will be shown , once the submit button is pressed the data is populated in the table.I

Re: Re: Exclude link from disabled hierarchy

2014-06-18 Thread Martin Grigorov
Even simpler! Martin Grigorov Wicket Training and Consulting On Wed, Jun 18, 2014 at 10:55 AM, Per Newgro wrote: > Thanks for your respose Martin. > > I maybe found another solution meanwhile. There is a method in AbstractLink > > > @Override > protected boolean

Aw: Re: Exclude link from disabled hierarchy

2014-06-18 Thread Per Newgro
Thanks for your respose Martin. I maybe found another solution meanwhile. There is a method in AbstractLink @Override protected boolean isLinkEnabled() { return isEnabledInHierarchy(); } I've overwritten this by

Re: Exclude link from disabled hierarchy

2014-06-18 Thread Martin Grigorov
Hi, I believe there is a ticket for such requirement but JIRA is too slow today and I cannot find it. In general this is not possible. But it is possible for links - override org.apache.wicket.markup.html.link.AbstractLink#disableLink() for this special link. Martin Grigorov Wicket Training and C

Exclude link from disabled hierarchy

2014-06-18 Thread Per Newgro
Hi, I enable a Form by autorized role. Some users see the form enabled, some disabled. All works fine. My problem is that i've added a goback-link which should be enabled always for all users. But because the link is added to the form (within a button panel) it get's disabled to. Is there a sm

Re: Submiting form on a stateless page creates form page twice

2014-06-18 Thread Martin Grigorov
Hi, On Tue, Jun 17, 2014 at 8:46 PM, KotFilemon wrote: > Hello > > I used wicket to create small web application with search page. This page > is > called many times in single minute, that is why we use stateless page for > smaller memory usage. On this page is stateless form with query text fie