Re: FeedbackPanel inside TabbedPanel does not render

2012-06-14 Thread Martin Grigorov
Hi, Sounds strange. Please create a quickstart and attach it to Jira so we can take a look. On Thu, Jun 14, 2012 at 7:05 PM, Jack Berg wrote: > 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

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] java.la

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

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: 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 unsu

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 exa

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
you can add ajaxformcomponentupdatingbehavior to them On Thu, Jun 14, 2012 at 10:10 PM, srinash 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 to use a form to v

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 Bean Customer.java - getters/setters for firstName and lastname Component.java - On URL getting the firstname and lastNames as page parameters Custome

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=ram&lastName=babu. after loading the page with first name and last name field, modified the first name text field with "raj" , click

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 y

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 a

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 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: 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: users-h

CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread ramlael
Below are my files HTML Bean Customer.java - getters/setters for firstName and lastname Component.java - On URL getting the firstname and lastNames as page parameters Customer customer = new Customer(); CompoundPropertyModel compoundPropertyModel = new CompoundPropertyModel(customer

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 o

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 wrote: > add ajaxeventbehavior  to the label > > > On Thu, Jun 14, 2012 at 8:57 PM, oliver.stef wrote: >> Hi, >> >> i want to use

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 w

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 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 type new Lab

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

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 accordi

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 p

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 an

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 on

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 the

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 wrote: > by default its supposed to timeout after 1 minute , but whenever  my pagemap > is locked only way to  call new   resource is close the bro

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: http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-

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 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 thus it makes

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 > The classes are shared, not the instances. The same classloader loads > JBoss' modules for all apps. > > This is what Igor meant with 'static caches'.

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 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  timeout for all m

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 http://apache-wicket.1842946.n4.nabble.com/Removing-Pagemap-lo

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 wrote: > given that I have not dug deep i

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 /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 JBoss cont