Re: DI in wicket

2011-11-11 Thread vela
Kindly find the exception thrown in the server console 12 Nov, 2011 11:58:54 AM org.apache.wicket.DefaultExceptionMapper internalMap SEVERE: Unexpected error occurred org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public com.wicket.pages.IndexPage()'. Might be

Re: DI in wicket

2011-11-11 Thread vela
Kindly find the exception thrown in the server console 12 Nov, 2011 11:58:54 AM org.apache.wicket.DefaultExceptionMapper internalMap SEVERE: Unexpected error occurred org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public com.wicket.pages.IndexPage()'. Might be

Re: DI in wicket

2011-11-11 Thread vela
Hi, Kindly find the stack trace below Root cause:java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source) at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source) at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source) at java.sql.DriverManage

Re: Url.toAbsoluteString doesn't work correctly

2011-11-11 Thread Igor Vaynberg
WICKET-4220 for more details... -igor On Fri, Nov 11, 2011 at 2:29 AM, Bert wrote: > you can try  RequestUtils.toAbsolutePath(fullPath); > > But this appears to have it on problems. E.g. for  a page mounted under > > /login/callback > > you would get http//:host:port/login/login/callback > > Ber

Re: Clarification on defining component visibility

2011-11-11 Thread Igor Vaynberg
if the component itself controls its own visibility the best way is to override onConfigure() and call setVisible() inside if an outside component controls another's visibility the best way is to override the controlling component's onconfigure() and call controlled.setVisible() if you have a sim

Re: Clarification on defining component visibility

2011-11-11 Thread vineet semwal
setvisible(boolean) inside onconfigure() On Sat, Nov 12, 2011 at 2:44 AM, Adam Gray wrote: > Recently some co-workers and I started questioning what is the (most) > correct method for determining component visibility.  In the past we've > gone from calling setVisible() to overriding isVisible() a

Re: Clarification on defining component visibility

2011-11-11 Thread Adam Gray
And, as usual, twitter ends up being faster. Thanks Igor. 8) Answer: none of the above (below?). Call override onConfigure() and call setVisible() from there. On Nov 11, 2011, at 4:14 PM, Adam Gray wrote: > Recently some co-workers and I started questioning what is the (most) correct > metho

Clarification on defining component visibility

2011-11-11 Thread Adam Gray
Recently some co-workers and I started questioning what is the (most) correct method for determining component visibility. In the past we've gone from calling setVisible() to overriding isVisible() and now are finding some people pointed to using setVisibilityAllowed() in onBeforeRender while over

Re: replacing parent panel how to

2011-11-11 Thread Igor Vaynberg
not exactly..you are missing a very important step Panel replacement=new RightPanel("panel"); panel.replaceWith(replacement); panel=replacement; <== very important or the second time this is called it will fail -igor On Fri, Nov 11, 2011 at 12:42 PM, wrote: > So if you are doing Panel panel =

Re: replacing parent panel how to

2011-11-11 Thread anant . asty
So if you are doing Panel panel = new LeftPanel("panel"); add(panel); Then to replace it you can do panel.replaceWith(new RightPanel("panel"); If u want to replace through an ajav request make sure you do target.add(panel); --Original Message-- From: pen To: users@wicket.apache.org Reply

replacing parent panel how to

2011-11-11 Thread pen
Hi All, I have two panels left and right panels. I have two Ajax links on the left panel, page1 and page2. clicking on either of them i can replace the right panels. But now I have some link on the right panel, I need to replace the whole right panel itself, without changing the rest of the page.

Re: AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
I think I am doing something wrong or there is a bug..newSelection is not contain the new selected user..like model value.. If I dont override any methods, selectbox model value is updated as it is expected.. But the the both of them always show the first selection... new PropertyModel(criteria,

Re: AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread Martin Grigorov
On Fri, Nov 11, 2011 at 4:41 PM, wholalotta wrote: > Ok I am overriding the both methods but still cannot update the > userCriteria..It always contains the > the value that I selected first.. > > new PropertyModel(criteria, "userCriteria") > > > The whole code is as following; > > public class Lis

Re: AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
Ok I am overriding the both methods but still cannot update the userCriteria..It always contains the the value that I selected first.. new PropertyModel(criteria, "userCriteria") The whole code is as following; public class ListQuestionsPage extends AdminBasePage { @SpringBean UserDao

AW: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread Sven Meier
See org.apache.wicket.examples.forminput.FormInput, you need to override both methods. Sven -Ursprüngliche Nachricht- Von: wholalotta [mailto:ardaas...@gmail.com] Gesendet: Freitag, 11. November 2011 14:55 An: users@wicket.apache.org Betreff: Re: AW: DropDownChoice model is not updated w

Re: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread anant . asty
Can you please show the code? Iv been trying to do something similar --Original Message-- From: wholalotta To: users@wicket.apache.org ReplyTo: users@wicket.apache.org Subject: Re: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden Sent: Nov 11, 2

Re: AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
Thanks for the quick response Sven...But eclipse gives error for the code you suggested I changed it as below; @Override protected void onSelectionChanged(Object criteria) { criteriaMap.put("user",((Criteria) criteria).getUserCriteria()); } But using onSelec

AW: DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread Sven Meier
protected void onSelectionChanged(final Criteria criteria) { criteriaMap.put("user",criteria.getUserCriteria()); } -Ursprüngliche Nachricht- Von: wholalotta [mailto:ardaas...@gmail.com] Gesendet: Freitag, 11. November 2011 14:33 An: users@wicket.apache.org Betreff: DropDownChoice

DropDownChoice model is not updated when wantOnSelectionChangedNotifications is overriden

2011-11-11 Thread wholalotta
Hi, I want to make a filter to update a table according to selected user. I am filling a hashmap to retrieve some data from database. To accomplish that I overrided "wantOnSelectionChangedNotifications" method. But the problem is; when I choose the user1, the model value is updated as it is exptec

Re: IAjaxIndicatorAware/Busy Indicator Problems

2011-11-11 Thread erica.morrison
That was the very first thing I tried, but it doesn't get processed by the browswer until the onClose event is finished. The onClose event is where all my processing occurs that updates the grid, so it provides the indicator after the fact when using this method. -- View this message in context:

Re: Url.toAbsoluteString doesn't work correctly

2011-11-11 Thread Bert
you can try RequestUtils.toAbsolutePath(fullPath); But this appears to have it on problems. E.g. for a page mounted under /login/callback you would get http//:host:port/login/login/callback Bert - To unsubscribe, e-mail: use

Re: Url.toAbsoluteString doesn't work correctly

2011-11-11 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-4108 I'm also interested in this topic :-) On Fri, Nov 11, 2011 at 12:06 PM, Илья Нарыжный wrote: > Hello, > > I have following code: > > String fullPath = url.toAbsoluteString(); > String subPath = url.toString(); > log.info("FULL: "+fullPath+" SUBPA

Url.toAbsoluteString doesn't work correctly

2011-11-11 Thread Илья Нарыжный
Hello, I have following code: String fullPath = url.toAbsoluteString(); String subPath = url.toString(); log.info("FULL: "+fullPath+" SUBPATH: "+subPath); And after execution on the page in logs I see following: 13:00:08,751 INFO [STDOUT] INFO - TestPanel - FULL: /login SUBPATH:

Re: RadioChoice model not updated in tomcat with liferay portal

2011-11-11 Thread Martin Grigorov
Support for portlets is dropped because none of the active Wicket developers uses this technology and knows its internals. We still accept patches from users like you. For Wicket 1.5 you can use/help/contribute to https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/portlet-parent. See a

Re: RadioChoice model not updated in tomcat with liferay portal

2011-11-11 Thread sauli.ketola
So you don't support portlets in version 1.4.x either anymore? I thougt the portlet support was dropped from 1.5.x. Shouldn't you remove portlet support also from future versions of 1.4. to not to cause confusion? (I was under the impression that portlet support exists 1.4 as it is threre). -- V