Visibility setting with Ajax

2010-12-21 Thread Duro
Hi, i have 3 panels on my page: wicket:extend> Epubs upload Add next file and only after clicking addLink, the user should see the uploadPanel2. So i coded this: add(new AjaxFallbackLink("addLink") { private static final long serialVersionUID = -442783192331802497

Re: Visibility setting with Ajax

2010-12-21 Thread Duro
)* should do. Regards On Tue, Dec 21, 2010 at 6:09 PM, Duro wrote: Hi, i have 3 panels on my page: wicket:extend> Epubs upload Add next file and only after clicking addLink, the user should see the uploadPanel2. So i coded this: add(new AjaxFallbackLink("

Re: Visibility setting with Ajax

2010-12-21 Thread Duro
thanks, setOutputMarkupId(true) is probably not necessary., but adding the component to target and setOutputMarkupPlaceholderTag(true) is. Now i tried to mak eit work even better and removed the panels from the site. i want to add them just on time, when the user request it. so site looks now li

Custom IUnauthorizedComponentInstantiationListener

2011-01-05 Thread Duro
Hi, i am trying to customize the behavior, when in a page a component is found, that the current user is not authorized to while he is authorized to the page. This by default throws an exception and i want to change it so, that the component is simply not displayed. So i did this: in my web app

Re: Custom IUnauthorizedComponentInstantiationListener

2011-01-14 Thread Duro
onStrategy. thanks, Juraj if you want to hide unauthorized components you should use iauthorizationstrategy and veto component's RENDER action -igor On Wed, Jan 5, 2011 at 1:42 AM, Duro wrote: Hi, i am trying to customize the behavior, when in a page a component is found, that the curr

PagingNavigator not working in PropertyListView

2011-01-28 Thread Duro
Hello, i have an component, which shows content of a table and i use PagingNavigator in this component to list the pages. This component is working correctly, when i put it directly into an page. But when i use repeater - PropertyListView , than PagingNavigator stops working correctly. No mat

Re: PagingNavigator not working in PropertyListView

2011-01-28 Thread Duro
SOLVED, calling setReuseItems(true) on PropertyListView helped (for whatever reasons) :-) Hello, i have an component, which shows content of a table and i use PagingNavigator in this component to list the pages. This component is working correctly, when i put it directly into an page. But wh

FeedbackPanel inside PropertyListView

2011-02-02 Thread Duro
Hello, in my FeedbackPanel, which is created inside PropertyListView I experience this behaviour. Each item , which is created in the PropertyListView contains a form and some data, which u can edit and a FeedbackPanel. When there is a new message in the FeedbackPanel, it is shown in all Fee

entity manager in webapp

2011-03-10 Thread Duro
Hi guys, is this an option to store the JPA entity manager for a wicket webapp: public class DBUtil { private static EntityManagerFactory entityManagerFactory = Persistence .createEntityManagerFactory("db"); private static ThreadLocal emHolder = new ThreadLocal() { p