Re: could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread Thomas Kappler
On 10/13/10 16:25, fachhoch wrote: could not serialize the pagejava.lang.OutOfMemoryError: PermGen space , This is not *the* heap (for objects) as others have said, it's the permanent generation heap, which is a different memory section used by the JVM, for instance for interning Strings

Re: Getting the html output of a wicket page

2010-10-13 Thread Martin Makundi
Hi! Try this: http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p2993717.html ** Martin 2010/10/14 elesi : > > Hello guys, > > I'm trying to send a email with a body that is HTML-formatted...and I would > to use wicket to write it out... > > Is there a way that I could s

Getting the html output of a wicket page

2010-10-13 Thread elesi
Hello guys, I'm trying to send a email with a body that is HTML-formatted...and I would to use wicket to write it out... Is there a way that I could store the markup (with all the tags and stuff) of a wicket-rendered web page into a string variable? I thought the getMarkupResourceStream() would

Re: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread Jeremy Thomerson
Also, if you haven't seen it, look at the Wicket Examples: http://wicketstuff.org/wicket14/ And specifically, this page: http://wicketstuff.org/wicket14/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.PagingPage On Wed, Oct 13, 2010 at 7:45 PM, Jeremy Thomerson wrote: > S

Re: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread Jeremy Thomerson
Sure, http://www.lmgtfy.com/?q=example+idataprovider&l=1 On Wed, Oct 13, 2010 at 7:16 PM, gouthamrv wrote: > > I am still have issues, is it possible for you to provide an example of > data > provider implementaion for the requirement I have? > -- > View this message in context: > http://apache-

Re: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread gouthamrv
I am still have issues, is it possible for you to provide an example of data provider implementaion for the requirement I have? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-Panel-when-user-selects-a-drop-down-chioce-in-Wicket-tp2994412p2994648.html

Re: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread Jeremy Thomerson
You're not implementing your data provider correctly. The model(Foo) method is called AFTER the iterator method. The intent is so that it can wrap the Foo in a LoadableDetachableModel (or some other appropriate alternative) that loads only a single row. Your iterator and size methods are the one

Re: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread gouthamrv
I think you are right. I have changed my code as you suggested, now it is saying no records found. Here is the rest of the code. I think I am missing something, can you please suggest? DealHistoryDataProvider dataProvider = new DealHistoryDataProvider(); AjaxFallbackDefaultDataTable ajaxFallbackD

Re: How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread Jeremy Thomerson
On Wed, Oct 13, 2010 at 3:33 PM, gouthamrv wrote: > > I would like to know how to update a panel when we select a drop down > chioce > values, that is in onUpdate() method. > > My custom panel has AjaxFallbackDefaultDataTable. > > Below is Panel and drop down components code. When user selects da

How to update a Panel when user selects a drop down chioce in Wicket?

2010-10-13 Thread gouthamrv
I would like to know how to update a panel when we select a drop down chioce values, that is in onUpdate() method. My custom panel has AjaxFallbackDefaultDataTable. Below is Panel and drop down components code. When user selects date, I want to replace my entire Panel. Currently I have commened

Re: could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread Altuğ Bilgin Altıntaş
http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html 2010/10/13 fachhoch > > I added this to eclipse -XX:PermSize=256m -XX:MaxPermSize=512m > > but the problem is I cannot start my jetty container I get this error > > > > Error occurred during initialization of V

Re: using cometd

2010-10-13 Thread Rodolfo Hansen
Yes, this message is safe to ignore. It is the bayeux implementation stating JSONCommented is deprecated. Later versions of push do not try to use it. On Tue, 2010-10-12 at 19:32 -0700, fachhoch wrote: > JSONCommented

Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters

2010-10-13 Thread Jeremy Thomerson
Create a quickstart and attach it to a JIRA. On Tue, Oct 5, 2010 at 4:05 AM, virtualizer wrote: > > > Altuğ Bilgin Altıntaş wrote: > > > > Also could you please try without just > > > > add(new BookmarkablePageLink("testlink1", Test1.class, pp)); > > > > Which wicket version ? > > > > Without

Re: Form model changes when onSubmit method is called for the first time.

2010-10-13 Thread Jeremy Thomerson
Show some code. On Tue, Oct 5, 2010 at 9:27 AM, armandoxxx wrote: > > Hey ppl > > Got a little problem with a form onSubmit(). > A form (for translations, IModel ) has a DropDownChoice (to > select a language and holds list of Language objects) and a ListView with > panels that are wrapper for o

Re: Problem using wicket-extensions

2010-10-13 Thread Jeremy Thomerson
Without knowing what's on your classpath, it's impossible for us to help you. Either slf4j is not on the classpath (most likely), or there is some other strange problem - duplicate jars, different classloaders, etc... On Thu, Oct 7, 2010 at 12:48 AM, chitrabhanu.das wrote: > > Thanks for the rep

RE: could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread fachhoch
I added this to eclipse -XX:PermSize=256m -XX:MaxPermSize=512m but the problem is I cannot start my jetty container I get this error Error occurred during initialization of VM Could not reserve enough space for object heap -- View this message in context: http://apache-wicket.184294

Re: condition in AbstractAjaxTimerBehavior

2010-10-13 Thread Igor Vaynberg
if (!canrefresh()) { settimeout( } -igor On Wed, Oct 13, 2010 at 4:37 AM, Maris Orbidans wrote: > Hi > > I need to periodically update a page unless some condition is met. > I wrote javascript function canRefresh() and added like this: > > add(new AbstractAjaxTimerBehavior(Duration.seconds(5))

Re: AjaxPagingNavigator give out strange error

2010-10-13 Thread btbluesky
The problem is I was using Eclipse's maven plug (m2eclipse?!) to manage the POM (I think it comes with WTP already). Its got the nice GUI, with the checkbox options of "include javadocs" and "include Sources". I didn't add it manually in the POM. Well, very good to know that it doesn't work prope

Re: Problem with IHeaderResponse.renderOnEventJavascript

2010-10-13 Thread Carlson Weber
Ok guys, it worked , I used the AttributeModifier. The thing is, why there's is that renderOnEventJavascript? This should be a method attached maybe to the domready event... Do you think that is worth submiting a patch? Or this is the correct behavior? (IMHO this isn't all right). Anyway, problem s

Re: could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread fachhoch
I got this error when running my app on jetty and tomact maven plugin. and I added -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m to JRE VM arguments in Run configration eclipse. but I cannot start my Jetty it complains Error occurred during initialization of VM Could not

Re: could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread Altuğ Bilgin Altıntaş
What is your application server or container ? Is it a heavy object page ? Every application can get java.lang.OutOfMemoryError: PermGen space potentially First countermeasure you can take is to increase your container's memory. Altuğ 2010/10/13 fachhoch > > could not serialize the page

Re: Feedback message does not show in new WebPage

2010-10-13 Thread Jeremy Thomerson
On Wed, Oct 13, 2010 at 4:35 AM, Ian Marshall wrote: > > Hello All, > > I have a link, which when clicked causes a new web page to be shown. > > > HTML fragment > -- > Pay > > > Java fragment > - > Link lnkPay = new Link("lnkPay", new Mode

Re: DownloadLink with AjaxIndicator

2010-10-13 Thread Altuğ Bilgin Altıntaş
my below example codes works on http://jquery.malsup.com/block/ //** public class BlockerBehaviour { @SuppressWarnings("unused") private String componentId; public BlockerBehaviour(String componentId) { this.componentId = co

RE: could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread CREMONINI Daniele
It happens when the maximum amount of heap memory is reached. The solution is to increase a dedicated virtual machine parameter to a higher value. For example if you wish to increase to 256 megabytes use this: -XX:MaxPermSize=256m in your eclipse.ini file or in the right file of your applicatio

Re: DownloadLink with AjaxIndicator

2010-10-13 Thread MZemeck
AjaxIndicatorAppender? http://wicket.apache.org/apidocs/1.4/org/apache/wicket/extensions/ajax/markup/html/AjaxIndicatorAppender.html From: Ann Baert To: users@wicket.apache.org Date: 10/13/2010 10:09 AM Subject:DownloadLink with AjaxIndicator I would like to add an ajaxindica

could not serialize the page java.lang.OutOfMemoryError: PermGen space

2010-10-13 Thread fachhoch
could not serialize the pagejava.lang.OutOfMemoryError: PermGen space , I got this error, it happens once in a while , its hard to reproduce, please tell me can wicket cause memory errors for any reason ? I am using 1.4.8 -- View this message in context: http://apache-wicket.1842946.n

Re: AjaxRequestTarget not refreshing Component

2010-10-13 Thread Jeremy Thomerson
What does the Wicket AJAX debug window say in that response? Jeremy Thomerson http://wickettraining.com -- sent from my "smart" phone, so please excuse spelling, formatting, or compiler errors On Oct 13, 2010 12:20 AM, "LutherBaker" wrote: I have created an outer list of areaGroups such that e

Re: WebPage: geting string

2010-10-13 Thread Martin Makundi
Here: /** * Renders given page * @param pageClass to render * @param pageParameters to render with * @param clean * @return String of HTML produced */ public static String renderPageToString( final Class pageClass, final PageParameters pageParameters, boolean clean

DownloadLink with AjaxIndicator

2010-10-13 Thread Ann Baert
I would like to add an ajaxindicator on a DownloadLink. How can I do this? But because DownloadLink isn't ajax, I tried the following: AjaxLink downloadLink = new AjaxLink("id") { @Override public void onClick(AjaxRequestTarget target) { } }; downloadLink.add(new AjaxEventBehavior(

WebPage: geting string

2010-10-13 Thread msantos
Hi there. Is possible instanciate a WebPage component and the getting the string that represents that webpage? My intention is to create a method that returns a string representing a html page to use on a email. Thanks a lot -- View this message in context: http://apache-wicket.1842946.n4.nabb

Re: Problem with IHeaderResponse.renderOnEventJavascript

2010-10-13 Thread Michael O'Cleirigh
Hello, You can use: textfield.add (new AttributeModifier ("onkeydown", true, "if (window.event.altKey){if (window.event.keyCode == 80){document.getElementById('" + link.getMarkupId() + "').onclick();}}"); If you do this within the Component.onInitialize() you will have the true markupid of

Re: Problem with IHeaderResponse.renderOnEventJavascript

2010-10-13 Thread Martin Grigorov
Hi, Indeed it looks this method works only when the target element is already available. It is used by org.apache.wicket.markup.html.internal.HeaderResponse.renderOnDomReadyJavascript(String) and org.apache.wicket.markup.html.internal.HeaderResponse.renderOnLoadJavascript(String) but both of them

Problem with IHeaderResponse.renderOnEventJavascript

2010-10-13 Thread Carlson Weber
I searched all over the internet and it seems that no one uses this method. The thing is that I am almost thinking that this is a bug, because it's really not logic to me. What I am trying to do: I am creating a panel that I will use in a lot of forms, and I want to attach some javascript code to m

condition in AbstractAjaxTimerBehavior

2010-10-13 Thread Maris Orbidans
Hi I need to periodically update a page unless some condition is met. I wrote javascript function canRefresh() and added like this: add(new AbstractAjaxTimerBehavior(Duration.seconds(5)) { @Override protected void onTimer(final AjaxRequestTarget target) { updateSessionConfigPanel(target);

Feedback message does not show in new WebPage

2010-10-13 Thread Ian Marshall
Hello All, I have a link, which when clicked causes a new web page to be shown. HTML fragment -- Pay Java fragment - Link lnkPay = new Link("lnkPay", new Model("")) { private static final long serialVersionUID = 1L; @

Re: wicket 1.5, resource gives error in log?

2010-10-13 Thread Romeo Sheshi
hi i have make a test and i have the error only when the src url is relative. http://localhost:8080/test/wicket/bookmarkable/it.test.HomePage if i have i don't have the error i have the error if i put a relativ url or because wicket http://localhost:8080/test/wicket/bookmarkable/ + relative ur

Re: Help with custom component that implements IOnChangeListener

2010-10-13 Thread Rut Bastoni
I've found the mistake: the TextField must override getStatelessHint() this way: @Override protected boolean getStatelessHint() { return false; } now it works. -- From: "Rut Bastoni" Sent: Thursday, October 07, 2010 4:08 PM To: Subject: H