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 ThreadLocalEntityManager emHolder = new

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

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

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

Re: Custom IUnauthorizedComponentInstantiationListener

2011-01-14 Thread Duro
hi, could u describe the proposed solution more deeply please. Idon't know, what more i should do with my iauthorizationstrategy , it has only 2 boolean methods and i don't see anything, i could improve there. Btw i use RoleAuthorizationStrategy, which is a CompoundAuthorizationStrategy.

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

Visibility setting with Ajax

2010-12-21 Thread Duro
Hi, i have 3 panels on my page: wicket:extend div align=center style=background-color:red;padding:20px h2Epubs upload/h2 form wicket:id=form div style=background-color:#304050 span wicket:id=uploadPanel1/ span wicket:id=uploadPanel2/ span wicket:id=uploadPanel3/ a href=# wicket:id=addLinkAdd next

Re: Visibility setting with Ajax

2010-12-21 Thread Duro
solved, thanks a lot Make sure of set the OutputMarkupPlaceholderTag to true in uploadPanels also On Tue, Dec 21, 2010 at 10:46 AM, Tejash Tarunttej...@educator.eu wrote: Hi, What it looks to me that the panel of which visibility has been set is not added to the target. So, IMHO

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