Re: Override BrowserInfoPage

2012-09-01 Thread sudeivas
Create CustomBrowserInfoPage.java public class CustomBrowserInfoPage extends BrowserInfoPage { . . . } Create CustomBrowserInfoPage.html with your html tags. Then create a custom websession and override newBrowserInfoPage() public class CustomWebSession extends WebSession{ @Override

Re: [WARN]Falling back to Redirect_To_Buffer render

2012-08-29 Thread sudeivas
is it possible to find why its not using 'ONE_PASS_RENDER' ? I just want to make sure that I am not missing any configuration. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WARN-Falling-back-to-Redirect-To-Buffer-render-tp4651567p4651622.html Sent from the Users

[WARN]Falling back to Redirect_To_Buffer render

2012-08-28 Thread sudeivas
Hello, Though I am using 'ONE_PASS_RENDER' strategy, I am still getting the below warning, WARN http-8000-2 [org.apache.wicket.request.handler.render.WebPageRenderer] - Falling back to Redirect_To_Buffer render strategy because none of the conditions matched. I am using wicket 1.5.6 in

Re: Which RENDER_STRATEGY is best for clustered setup?

2012-08-27 Thread sudeivas
Though I am using 'ONE_PASS_RENDER' strategy, I am still getting the below warning, WARN http-8000-2 [org.apache.wicket.request.handler.render.WebPageRenderer] - Falling back to Redirect_To_Buffer render strategy because none of the conditions matched. Am I missing something? I am worried that

Re: Which RENDER_STRATEGY is best for clustered setup?

2012-08-22 Thread sudeivas
Thanks Martin for the response. Could you please answer the below question as well? What is the use of the below API? getRequestCycleSettings().setBufferResponse(false); Does it make any difference to the render strategy? I guess it makes some difference to 'REDIRECT_TO_BUFFER'. Thanks,

Re: Which RENDER_STRATEGY is best for clustered setup?

2012-08-22 Thread sudeivas
Yes it is. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Which-RENDER-STRATEGY-is-best-for-clustered-setup-tp4651420p4651433.html Sent from the Users forum mailing list archive at Nabble.com.

Which RENDER_STRATEGY is best for clustered setup?

2012-08-21 Thread sudeivas
Hello, We are currently using Apache Wicket 1.5.6 in a clustered setup. We have a custom built distributed session management based on memcached. Due to infrastructure limitations, we cannot use sticky sessions. So I am wondering whether 'ONE_PASS_RENDER' render strategy is the best

Re: Getting more stale page exception in wicket 1.5.6

2012-05-31 Thread sudeivas
Hello Martin I think I found why I see the warning WARN: org.apache.wicket.request.handler.request.WebPageRenderer - The Buffered response should be handled by BufferedResponseRequestHandler. I am having a code like, setResponsePage(ProblemIndexPage.class); inside an Panel (last line). This

Re: Getting more stale page exception in wicket 1.5.6

2012-05-29 Thread sudeivas
With the above code changes, I made a simple test case, 1. Ajax Button which will throw StalePageException. Result: The page reloaded itself without going to the error page. 2. Ajax Button which will throw PageExpiredException. Result: Error page 3. Ajax Button which will throw

Re: Getting more stale page exception in wicket 1.5.6

2012-05-29 Thread sudeivas
I believe org.apache.wicket.settings.IPageSettings#setRecreateMountedPagesAfterExpiry() is default to true. So I didn't set anything in my application. I mounted all the pages. I am handling only couple of exceptions on my application and for others I just return 'null' in onException() method.

Re: Getting more stale page exception in wicket 1.5.6

2012-05-29 Thread sudeivas
But according the below link, https://issues.apache.org/jira/browse/WICKET-4454 The page should be repainted instead of showing ComponentNotFoundException. I am using wicket 1.5.6. Why am I seeing ComponentNotFoundException? Anyway to fix this? -Suresh -- View this message in context:

Re: Getting more stale page exception in wicket 1.5.6

2012-05-28 Thread sudeivas
Thanks for the information. But is there any way to prevent this exception or is there any way to recreate the page if this exception occurs? Thanks, Suresh -- View this message in context:

Re: Getting more stale page exception in wicket 1.5.6

2012-05-28 Thread sudeivas
Hello Martin, I am handling couple of other exceptions in my application. Below is my code, getRequestCycleListeners().add(new AbstractRequestCycleListener() { @Override public IRequestHandler onException(final RequestCycle requestCycle, final Exception e) {

Re: Getting more stale page exception in wicket 1.5.6

2012-05-28 Thread sudeivas
I will change to the below code, getRequestCycleListeners().add(new AbstractRequestCycleListener() { @Override public IRequestHandler onException(final RequestCycle requestCycle, final Exception e) { LOGGER.error(e.getMessage(), e);

Re: Loadable-detachable model for ListView

2012-05-10 Thread sudeivas
Hello Igor Dan, Can you please answer the question regarding storing objects in Session for DataView? Why does it store objects in Session since we are using LDM? -Suresh -- View this message in context:

Re: Loadable-detachable model for ListView

2012-05-10 Thread sudeivas
Dan has mentioned I think ListView is better than DataView because it naturally discards its contents after the request where data view saves models, keeping your session size the same. So if my list has 1000 entries, will the session store all these values if I use DataView/IDataProvider and

Re: Loadable-detachable model for ListView

2012-05-10 Thread sudeivas
Thanks Dan. Final question to you guys, Option 1: DataViewSerializableWorkflowInstancePartial dataview = new DataViewSerializableWorkflowInstancePartial(problems, new UsersProvider()) { private static final long serialVersionUID = 1L; @Override

Customize PagingNavigator

2012-05-10 Thread sudeivas
Hello, Currently I am using PaginNavigator along with DataView. dataview.setItemsPerPage(10); container.add(dataview); //webmarkup container container.add(new PagingNavigator(navigator, dataview)); For now, there are around 1000 entries in the list. So

Re: Customize PagingNavigator

2012-05-10 Thread sudeivas
navigator.getPagingNavigation() returns null. Am I missing something? -Suresh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customize-PagingNavigator-tp4624405p4624504.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Customize PagingNavigator

2012-05-10 Thread sudeivas
Works now. Thanks -Suresh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customize-PagingNavigator-tp4624405p4624655.html Sent from the Users forum mailing list archive at Nabble.com. - To

Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
Hello, Can any one please provide an example for implementing a list view with loadable-detachable model? I am trying to minimize the size of the session. Because sometimes, the size of the list view can be more than 2000, and this occupies lot of space in session. Also is there a better

Re: Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
I am using the below code in my application. But the data provider makes a call to my service wrapper asking for all the entries. For example: if total size of the list of 750, the first - 0 and count - 750. This is not different from using list view. How can I make sure that this data view loads

Re: Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
Thanks Igor for the response. If I use dataview.setItemsPerPage(50), then my Data View loads only the first 50 entries. But how can I trigger or ask the data view to load the next 50 entries when we scroll down the list or when we reach the end of the list? -Suresh -- View this message in

Re: Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
thanks for the info Dan. I haven't worked with Jquery before. I will explore more on that. But I am curious to know why DataView stores information in the session. Because I use LoadableDetachableModel in my above example. The main objective for me is minimize the information stored in session.

Wicket 1.5.6 release data please

2012-04-23 Thread sudeivas
Hello, Please let me know the approximate date for Wicket 1.5.6 release. -Suresh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-release-data-please-tp4581936p4581936.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Version Pages by default

2012-04-02 Thread sudeivas
Now I am using IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this); setRootRequestMapper(cryptoMapper); By this way the page parameters are encrypted. I hope it will not affect recreating the page from page mount when the page expiration happens. Also can you please

Re: Version Pages by default

2012-04-01 Thread sudeivas
I have made changes in the code to set all the parameters in the Session. Now the URL looks clean. http:///pageB?5 But in pageB's constructor after reading values from session I am not clearing it as we need those values in the session. When the page expiration happens, when wicket tries to

Re: Version Pages by default

2012-03-31 Thread sudeivas
I believe the best solution for me is to update my project to the latest version of wicket, but still I am worried about the following issue, https://issues.apache.org/jira/browse/WICKET-4454 since lot of our code have nested components. Any idea when 1.5.6 will be released? (so that I can wait

Re: Version Pages by default

2012-03-31 Thread sudeivas
The problem in our application is there is no fixed path except for the home page. From the home page the user will navigate to a different page after clicking on a ajax link (we use setResponsePage(new PageB(Object x)). In Page B we have lot of widgets getting populated dynamically based on

Re: Version Pages by default

2012-03-31 Thread sudeivas
This idea sounds good to me rather than just passing the whole JAVA object. But this raises an another question. Since I am just passing PageParameters to the page, in the beginning it will be a stateless page. But when I start using Ajax components inside the page, then it becomes a stateful page

Version Pages by default

2012-03-30 Thread sudeivas
Hello, I am just trying to make sense when to version pages and when not to. I found in my application I can do something like, getPageSettings().setVersionPagesByDefault(false); as the default value is true. But I am not sure why we need to turn off page version. I didn't find enough

Re: Version Pages by default

2012-03-30 Thread sudeivas
Thanks for the information. I am currently using wicket 1.5.3. I hope this applies to wicket-1.5.3 as well. But in my case, everything works fine. But when our session management fails, then we run into the following exceptions: PageExpiredException ComponentNotFoundException

Re: Override BrowserInfoPage

2012-03-28 Thread sudeivas
It worked. I did override BrowserInfoPage.java and BrowserInfoPage.html. Thanks, Suresh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Override-BrowserInfoPage-tp4499400p4513516.html Sent from the Users forum mailing list archive at Nabble.com.

Re: InvalidBehaviorIdException and ComponentNotFoundException for modal windows

2012-03-28 Thread sudeivas
I am not sure what is 'behavior with id: 0' ... I am just trying to use a simple modal window.. But when I try to close the modal window I am getting this error. org.apache.wicket.behavior.InvalidBehaviorIdException: Cannot find behavior with id: 0 on component: [ModalWindow [Component id =

Multiple Feedback panels in a page

2012-02-10 Thread sudeivas
Hello, I do have a page which contains several widgets and each widget is a panel. I need to add different feedback panel for each of these widgets. I tried using something like below, final FormString form = new FormString(form); ComponentFeedbackMessageFilter filter = new

Is multi-window support on by default in 1.5.3?

2012-01-31 Thread sudeivas
Hello, I am having some issues when I use modal windows in Wicket 1.5.3. I am using clustering (having multiple hosts running the same application). So I am wondering whether I have to turn on multi-window support somewhere or is is turned on by default? -Suresh -- View this message in

Re: Is multi-window support on by default in 1.5.3?

2012-01-31 Thread sudeivas
Thanks for the information. I am trying to resolve the issue by adding panels to the modal window. It creates some problem when we add pages to it. Also as we are using clustering, I did try to set, getRequestCycleSettings().setRenderStrategy(RenderStrategy.ONE_PASS_RENDER); But I am seeing a

Re: Error while closing the modal window

2012-01-25 Thread sudeivas
I just added the below code, modalWindow.setOutputMarkupId(true); But now I am seeing a different error, Page with id '6' has expired. org.apache.wicket.protocol.http.PageExpiredException: Page with id '6' has expired. at

Re: Error while closing the modal window

2012-01-25 Thread sudeivas
After researching, I found setting a different page map name for modal window will fix the issue. But setPageMapName API is removed in wicket-1.5.3. Any another solution for this? Thanks, Suresh -- View this message in context:

Error while closing the modal window

2012-01-24 Thread sudeivas
I am getting the below exception when I try to close a modal window. Also I am not seeing this error in development but I am seeing this in production as we have some session management installed. Cannot find behavior with id: 0 on component: [SherlockModalWindow [Component id = binListWindow]].

Unit Testing AjaxTabbedPanel

2011-12-20 Thread sudeivas
Hello All, I am using AjaxTabbedPanel in my application and I want to write unit tests for that. But I couldn't find any example tests in Apache Wicket - 1.5.3 code. Please share any sample code to write unit tests for AjaxTabbedPanel. Thanks, Suresh -- View this message in

Re: Restartable Self Updating Timer Behavior

2011-12-13 Thread sudeivas
I think the issue is because even after the timer is stopped, in the next cycle a call is going to AbstractDefaultAjaxBehavior - onRequest() and because of that its throwing ListenerInvocationNotAllowedException. In AbstractAjaxRestartableTimerBehavior.java given in JIRA, the stop() method

Re: Restartable Self Updating Timer Behavior

2011-12-13 Thread sudeivas
I tried to call the stop() in AjaxRestartableSelfUpdatingTimerBehavior.java when the page starts. But after 30 secs( timer interval), the stopped flagged reverts back to the default value i.e false. So isEnabled() always returns true. I am not sure whether this a bug. As a temporary fix, I have

Tabbed Panel title not getting updated

2011-12-12 Thread sudeivas
Hello, I am using Tabbed Panel to display the list. Below is my code, for(final Category category : Category.values()) { . . . tabs.add(new AbstractTab(new ModelString(){ private static final long serialVersionUID =

When to use setRenderBodyOnly(true) ?

2011-12-12 Thread sudeivas
Hello, I am using deployment configuration in my web.xml. But if I remove setRenderBodyOnly(true) for some of the containers and components, then I am getting some issues with CSS styles. Does it really make sense to use setRenderBodyOnly(true) when I am in deployment mode already? I am

Re: When to use setRenderBodyOnly(true) ?

2011-12-12 Thread sudeivas
Thanks.. But do I need to specify setRenderBodyOnly(true) for each component even in the 'deployment' mode? Is there a better way to strip these markups for all the components of a page? As we have lot of nested components for a page. -Suresh -- View this message in context:

Re: When to use setRenderBodyOnly(true) ?

2011-12-12 Thread sudeivas
I did include the code getMarkupSettings().setStripWicketTags(true); in my Application's init() method. But after removing .setRenderBodyOnly(true) in couple of panels, I am getting CSS issues. But it works fine if I include .setRenderBodyOnly(true) to the components. Am I missing something?

Re: When to use setRenderBodyOnly(true) ?

2011-12-12 Thread sudeivas
Ya, I just noticed some issues if I setRenderBodyOnly(true) to all the components. It seems some components need the wicket markups to be displayed properly. For now I think I will go through each component and then decide whether they need markups or not. Thanks All -- View this message in

Re: How to test just a panel using apache wicket?

2011-11-26 Thread sudeivas
I just used tester.startPanel(new xxpanel(x,y)); It worked for me. Make sure that this panel has a .html file associated with it. Also make sure that you don't have any mock objects for the parent page or for this panel. Just keep the test case as simple as possible. Let me know if you still have

How to test just a panel using apache wicket?

2011-11-22 Thread sudeivas
Hello, In our project, we have some panels and we embed those panels dynamically to pages. public class DoublePanel extends Panel { public DoublePanel(String id, Panel leftPanel, Panel rightPanel) { . } } I am not sure how to write unit test just for this class without a webpage.

Re: How to test just a panel using apache wicket?

2011-11-22 Thread sudeivas
Additional Information: Using Apache-Wicket - 1.5.3 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-test-just-a-panel-using-apache-wicket-tp4097990p4097993.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to test just a panel using apache wicket?

2011-11-22 Thread sudeivas
I did try something like this, public class DoublePanelTest { private WicketTester tester; private class TestPage extends WebPage { private static final long serialVersionUID = 1L; public TestPage() { super(); add(new DoublePanel(double,

Re: NullPointerException in WicketTester

2011-11-16 Thread sudeivas
Thanks for the update. I add velocity.jar to my classpath. Now I am getting PageExpiredException. org.apache.wicket.protocol.http.PageExpiredException: Page with id '0' has expired. at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:169) at

Re: NullPointerException in WicketTester

2011-11-16 Thread sudeivas
Finally got the issue resolved. I removed the dependency on wicket-velocity and also I was using some mock libraries. Removed everything and tried a simple test case and it worked. Thanks Suresh -- View this message in context:

NullPointerException in WicketTester

2011-11-15 Thread sudeivas
Hello, I am trying to write some unit tests for my wicket application. My webpage has a custom constructor. public DefaultErrorPage(String message) { add(new Label(message, message); } For this, I followed the steps mentioned in

Re: NullPointerException in WicketTester

2011-11-15 Thread sudeivas
Stack Trace: java.lang.NullPointerException at org.apache.wicket.protocol.http.MockHttpServletRequest.setRequestToComponent(MockHttpServletRequest.java:1222) at org.apache.wicket.util.tester.BaseWicketTester.executeListener(BaseWicketTester.java:260) at