Re: 6.0.0-beta2 IClusterable

2012-06-14 Thread Martin Grigorov
Hi, It is moved from o.a.w.util to o.a.w.core.util package. This was part of the fix for OSGi-friendliness. And yes, it is OK to use java.io.Serializable instead. IClusterable is a special interface for the integration with Terracotta. On Thu, Jun 14, 2012 at 2:52 AM, Rafał Krupiński

Re: Wicket as Jboss Modules

2012-06-14 Thread Martin Grigorov
Hi, Well done! Let us know if there are any problems with this shared usage. On Thu, Jun 14, 2012 at 4:57 AM, Илья Нарыжный phan...@ydn.ru wrote: Finally I did it! As jboss module I created 2 modules: wicket and wicketstuff. Configuration: ?xml version=1.0 encoding=UTF-8? module

Re: using links in feedback panels

2012-06-14 Thread Martin Grigorov
Hi, You can extend FeedbackPanel and add a AttributeModifier(onclick, ...) to the Label that is used for the feedback message. Use plain JavaScript to focus the form component. This will be easier and better for the user experience. On Wed, Jun 13, 2012 at 11:04 PM, Carter, Isaac

Re: PackageResourceBlockedException after migration to 6.0.0-beta2

2012-06-14 Thread Martin Grigorov
Hi, Please create a quickstart and attach it to Jira. Both 1.5.7 and 6.0.0-beta2 should behave the same way. For some reason the mounted page doesn't match and Wicket tries to serve this url with Resource mapper and thus it makes the security check ... On Thu, Jun 14, 2012 at 4:08 AM, Rafał

Re: stateless resources vs. no cookies

2012-06-14 Thread Martin Grigorov
Hi, Wicket creates temporary o.a.w.Session object only if Session.get() is called during the request lifecycle. Until you call Session().get().bind() no javax.servlet.HttpSession will be created and Wicket's Session will be garbage collected at the end of the request processing. On Wed, Jun 13,

Re: example to avoid pagemap locks

2012-06-14 Thread Bert
Hi, You can put the search result (and the start of the search process) into a Panel and wrap this with a AjaxLazyLoadPanel. Not sure about the cancel thing. At least you can have a look at the AjaxLazyLoadPanel for inspiration. Regards Bert On Thu, Jun 14, 2012 at 7:34 AM, fachhoch

Re: Wicket as Jboss Modules

2012-06-14 Thread Martin Funk
given that I have not dug deep into the contract that JBoss promises for jar Files in the JBOSS_HOME/modules folder, I'd still be quite surprised that putting the jars into a shared folder would imply that the class instances created from those jars would be shared between applications on a single

Re: Wicket as Jboss Modules

2012-06-14 Thread Martin Grigorov
The classes are shared, not the instances. The same classloader loads JBoss' modules for all apps. This is what Igor meant with 'static caches'. If you have a static field then it is also shared for all apps. On Thu, Jun 14, 2012 at 11:27 AM, Martin Funk mafulaf...@googlemail.com wrote: given

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread fachhoch
I am still facing this problem root cause of my issues are database related, it takes time time to respond what can I do to avoid pagemap lock? can I set timeout for all my pages in a global way ? Please advice. I saw this post

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread Martin Grigorov
See org.apache.wicket.settings.IRequestCycleSettings#setTimeout() On Thu, Jun 14, 2012 at 11:50 AM, fachhoch fachh...@gmail.com wrote: I am still facing this problem root cause of my issues are database related, it takes time time to respond what can I do  to avoid pagemap lock? can I set  

Re: Wicket as Jboss Modules

2012-06-14 Thread Martin Funk
Just read SRV.9.7.1 Dependencies On Extensions in the servlet 2.5 specs. Obviously my assumption was wrong... mf 2012/6/14 Martin Grigorov mgrigo...@apache.org The classes are shared, not the instances. The same classloader loads JBoss' modules for all apps. This is what Igor meant with

Re: PackageResourceBlockedException after migration to 6.0.0-beta2

2012-06-14 Thread Rafał Krupiński
On Thu, Jun 14, 2012 at 8:20 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Please create a quickstart and attach it to Jira. Both 1.5.7 and 6.0.0-beta2 should behave the same way. For some reason the mounted page doesn't match and Wicket tries to serve this url with Resource mapper and

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread fachhoch
by default its supposed to timeout after 1 minute , but whenever my pagemap is locked only way to call new resource is close the browser relogin as if new session. Please advice me. -- View this message in context:

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread Martin Grigorov
In 1.5+ it should release the lock when your DB operation finishes. I guess it should be the same in 1.4.x. On Thu, Jun 14, 2012 at 4:32 PM, fachhoch fachh...@gmail.com wrote: by default its supposed to timeout after 1 minute , but whenever  my pagemap is locked only way to  call new   resource

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread fachhoch
if my dboperation is pending and taking long time, there is now way I can call another resource ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-how-to-kill-this-request-tp4565091p4649973.html Sent from

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread Martin Grigorov
run such slow operations in a separate thread in 1.5+ the lock is per page instance so you can just start a new page (i.e. remove the ?pageId ffrom the url) and all will be fine. In 1.4 I guess you need to use a different pageMap. The default pageMap is null. I.e. you need to provide a non-null

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread Thomas Götz
Maybe you should think about an asynchronous approach, i.e. poll the state of your long-time-backend-operation e.g. by using an AjaxSelfUpdatingTimerBehavior. -Tom On 14.06.2012 at 15:51 fachhoch wrote: if my dboperation is pending and taking long time, there is now way I can call

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread fachhoch
I cannot run this in seperate thread becasue this could happen in anypage not just one page , all my pages uses db operations and for some reason once in a while some db operation takes time and the page is stuck.Please tell more on using a different pagemap . I encode all my urls. can I

Detach Model Objects when user leaves page

2012-06-14 Thread brazz
Hi, i have a list view with content from a Repository that is input to a wicket DataProvider with ModelObject. I get the content of the repository from a webservice. I don't want to load the data from the webservice after each request, but the model gets detached after each request and

Re: Detach Model Objects when user leaves page

2012-06-14 Thread Thomas Götz
How would you notice if the user leaves the page? If you have only Wicket controlled Links on your page then you could null your Repository data in their onclick() implementation (if you do a setResponsePage(someOtherPage). If there's also non-Wicket links on your page, well, you would probably

Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread vineet semwal
add ajaxeventbehavior to the label On Thu, Jun 14, 2012 at 8:57 PM, oliver.stef ova...@gmail.com wrote: Hi, i want to use a label inside listView and i want the user will press on the label - and the onClick method will work. but what i get is this msg.: The method onClick() from the

Re: Detach Model Objects when user leaves page

2012-06-14 Thread brazz
Hi Thomas, thanks for your reply. Data is not that much, but i think it's no good practice to have data in memory that is not used any more. So i'd like to have a general solution to this. Your right, the user could leave the page by any means. But for me it would be enough to discard the data

Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread vineet semwal
currently what you have done is you have defined *your own* method so it never gets used up unless you yourself use it. On Thu, Jun 14, 2012 at 9:05 PM, vineet semwal vineetsemwa...@gmail.com wrote: add ajaxeventbehavior  to the label On Thu, Jun 14, 2012 at 8:57 PM, oliver.stef

Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
Label does not have an onClick() method, so nobody will be calling your onClick() ;) If you want to attach AJAX behavior to the label you should do the following: final Label label = new Label(label, item.getModel()); label.add(new AjaxEventBehavior(click) { @Override protected void

CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread ramlael
Below are my files HTML input type=text id=firstName name=firstName wicket:id=firstName value= size=20 maxlength=10 / input type=text id=lastName name=lastName wicket:id=lastName value= size=20 maxlength=20 / Bean Customer.java - getters/setters for firstName and lastname

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread Thomas Götz
Could you please provide a Quickstart that describes your problem? This will make it much easier for us to help you. -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread oliver.stef
Thanks vineetsemwal and Thomas Götz-2 , but still - not working :( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/on-click-on-a-label-in-a-listview-onClicke-method-never-used-localy-tp4649981p4649989.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Detach Model Objects when user leaves page

2012-06-14 Thread brazz
Thanks for the link! I think i will give this one a try: https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Detach-Model-Objects-when-user-leaves-page-tp4649977p4649990.html Sent from the Users forum

FeedbackPanel inside TabbedPanel does not render

2012-06-14 Thread Jack Berg
Hi, I'm using Wicket 6 beta-2 and have a problem, that my feedback panel inside a TabbedPanel tab panel is not rendered. Even if i set output markupid to true, the tag is not rendered. The only way i have managed to get it to show, is by adding dummy error messages manually. If I do so, my

validation without form

2012-06-14 Thread srinash
Hi, I am trying to validate 2 fields(one is a text field and the other is a select) that the user can enter and select. This is inside of a bigger form. I would not want to use a form to validate these fields. Can you let me know how I can validate these fields without doing a form submit? Thank

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread ramlael
1) In form have 2 text fields, 1) First Name and 2) Last Name. On page load populating the values with request parameters like https:localhost:8080/addcard?firstName=ramlastName=babu. after loading the page with first name and last name field, modified the first name text field with raj , clicked

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread Sven Meier
What Wicket version? BTW a quickstart would enable us to help you. Sven On 06/14/2012 05:45 PM, ramlael wrote: Below are my files HTML input type=text id=firstName name=firstName wicket:id=firstName value= size=20 maxlength=10 / input type=text id=lastName name=lastName wicket:id=lastName

Re: validation without form

2012-06-14 Thread vineet semwal
you can add ajaxformcomponentupdatingbehavior to them On Thu, Jun 14, 2012 at 10:10 PM, srinash avisrid...@gmail.com wrote: Hi, I am trying to validate 2 fields(one is a text field and the other is a select) that the user can enter and select. This is inside of a bigger form. I would not want

Re: validation without form

2012-06-14 Thread srinash
Thanks for the reply. Can you please direct me to some examples. Sri -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4649996.html Sent from the Users forum mailing list archive at Nabble.com.

Re: validation without form

2012-06-14 Thread vineet semwal
formcomponent.add(validator) formcomponent.add(new ajaxformcomponentupdatingbehavior(the_event){ protected void onError(AjaxRequestTarget target, RuntimeException e){ target.add(feedback); } protected abstract void onUpdate(AjaxRequestTarget target){ target.add(feedback)} } for more concrete

Re: validation without form

2012-06-14 Thread srinash
thank you , will take a look Sri -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4649998.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread ramlael
Wicket 1.5 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CompoundPropertyModel-problem-the-values-are-not-refreshing-tp4649987p464.html Sent from the Users forum mailing list archive at Nabble.com.

Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
What exactly is not working? If you could provide a Quickstart it would be easier to help you. -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

wicket portlet 1.5 and liferay 6.1

2012-06-14 Thread Gabriel Landon
For those who are having troubles making wicket-portlet works with liferay 6.1, here's the solution... I've many wicket 1.4 application that are just working fine in liferay 6.0. But when I put them in liferay 6.1, I get the following message : /20:49:12,379 ERROR [BasePortalLifecycle:45]