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
pr
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 fo
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 a
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 th
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.
-
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,
Sures
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 solution
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
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:
http://ap
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. Hop
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 ComponentNotFound
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);
Throwa
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) {
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:
http://apache-wicket.1842946.n4.nabble.com/Getting-more-stale-page-exception-in-wicket-1-5-6-tp4649492p464
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 unsubscri
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.
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 PagingNavig
Thanks Dan. Final question to you guys,
Option 1:
DataView dataview =
new DataView("problems",
new UsersProvider()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(final Item item) {
it
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
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:
http://apache-wicket.1842946.n4.nabble.com/Loadable-detachable-model-for-ListVi
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. Ou
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 conte
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 (
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 way
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.
--
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 an
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 r
Most often we don't want users to see the parameters in the URL. But when I
tried using
setResponsePage(PageA.class, pageParameters) and after mounting the page in
my application I see the parameters in the URL.
So I was referring to
http://stackoverflow.com/questions/6390953/how-can-i-create-
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
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
value
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 f
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
StalePageException
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
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 = conte
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.
-
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 Form form = new Form("form");
ComponentFeedbackMessageFilter filter = new
ComponentFe
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
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 cont
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:
http://apache-wicket.1842946.n4.nabble.com/Error-while-closing-the-
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
org.apache.wicket.request.handler.PageProvider.getPageInstance(Pag
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]].
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 context:
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 s
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 j
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 cont
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?
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:
http://apache-wic
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 no
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 Model(){
private static final long serialVersionUID = 1L;
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
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", leftP
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.
-
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.
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:
http://apache-wicket.1842946.n4.nabble.com/NullPointerException-in-
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
org.apa
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
org.apache.wicket.ut
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
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/
57 matches
Mail list logo