org.apache.wicket.WicketRuntimeException: Unable to write the response

2010-06-28 Thread tommaso
Hello, This is my first post. I am not a web developer, I usually develop other kinds of systems, but for a quick project I have to do, I looked at JSF and I really did not like it. Finally, I have come across wicket and it was love at first sight. Now, so far everything has been straightforw

Re: extending AbstractFormValidator as a validation adapter

2010-06-28 Thread Igor Vaynberg
On Mon, Jun 28, 2010 at 9:27 PM, Ray Weidner wrote: > Hi all, > > The application that I'm current writing already has its own validation > logic, but I would like to integrate its results into the existing Wicket > form validation so as to unify the feedback.  To this end, I'm trying to > extend

Re: Generating static HTML pages with Wicket

2010-06-28 Thread Igor Vaynberg
see our unit tests, this is how wickettester works and you can use that to render the page outside a webrequest -igor On Mon, Jun 28, 2010 at 2:59 PM, jverstry wrote: > > Hi, > > I am new to Wicket. I would like to use Wicket to generate static html pages > from a Java application. I have create

Re: Reading cookies on first/each request

2010-06-28 Thread Igor Vaynberg
alternatively requestcycle#onbeginrequest() is also a good place -igor On Mon, Jun 28, 2010 at 7:05 AM, M. Hammer wrote: > Quoting Bilgin Ibryam : >> >> I want to implement "Remember me" functionality  by storing the encrypted >> and base64 encoded username in a cookie. >> Then I'd like to check

Re: CryptedUrlWebRequestCodingStrategy, mounted stateless pages and IOException

2010-06-28 Thread Igor Vaynberg
On Mon, Jun 28, 2010 at 6:36 AM, nmetzger wrote: > > Hi all, > > I'm running into problems with my CryptedUrlWebRequestCodingStrategy. First > a question: > > I understand that the CryptedUrlWebRequestCodingStrategy creates a http > session for all pages, even stateless ones. If I mount my statele

Re: Docu/Examples of Models and Generics in Wicket 1.4?

2010-06-28 Thread Igor Vaynberg
there is the wicket-examples module which contains...examples. if you have more specific questions im sure someone will answer them. -igor On Fri, Jun 25, 2010 at 2:23 AM, Alessandro Bottoni wrote: > Hi All, > I'm new to Wicket and I'm studying it with "Wicket in Action". As you > surely know, t

Re: CryptedUrlWebRequestCodingStrategy with JMeter

2010-06-28 Thread Igor Vaynberg
it is very hard to test this with jmeter because urls generated will be different every time since a new random key is generated for every session. you will be better served by turning off the crypted url coding strategy for your junit tests. -igor On Thu, Jun 24, 2010 at 1:22 PM, wrote: > Hi A

Re: fast user input speed

2010-06-28 Thread Igor Vaynberg
this is not your typical usecase for a web application :) web applications are limited by the round trip to the server - which is limited by how fast your server is and what the user's connection speed is. i would try to profile your application and see if you can make it faster, but i dont think

Re: Problems with AjaxPagingNavigation

2010-06-28 Thread Igor Vaynberg
use the navigator -igor On Wed, Jun 23, 2010 at 8:10 AM, Matthias Klass wrote: > Hi, > > I've added a AjaxPagingNavigation to a Panel. Yet, when clicking on the > created link nothing happens - no redirection to the new page. When I copy > the link directly from the markup and paste it into the

Re: Security questions

2010-06-28 Thread Igor Vaynberg
On Wed, Jun 23, 2010 at 7:45 AM, danisevsky wrote: > I would like to implement guest book panel and I have two security question. > > 1) Need I captcha when there will be only ajax submit link? I think that > robots can't submit form thru javascript. should be ok > > 2) New comments will users w

Re: passing a map into PageParameters

2010-06-28 Thread Ray Weidner
I haven't had any success storing anything other than Strings in PageParameters objects. It makes sense, since these are supposed to represent bookmarkable (i.e. GET) parameters. If you're hoping to throw arbitrary Maps into a PageParameters, you're going to be disappointed. But if you have an i

Re: handling error in DataProvider

2010-06-28 Thread Igor Vaynberg
the exception will be thrown as many times as there are tables. but this exception does not fill in the stack trace so it should be fast. profile the code and see where the time is. -igor On Wed, Jun 23, 2010 at 1:56 AM, Decebal Suiu wrote: > > The problem with RestartResponsePage approach is th

Re: ajaxPagingNavigation and CheckGroup

2010-06-28 Thread Igor Vaynberg
use ajaxsubmitlink in your paging navigator -igor 2010/6/22 Fernando Wermus : > Hola, >    Quería saber si existe alguna manera de no perder los items > seleccionados de un checkgroup - check en una lista que esta paginada con > AjaxPagingNavigation. > > saludos! > > -- > Fernando Wermus. > > www

extending AbstractFormValidator as a validation adapter

2010-06-28 Thread Ray Weidner
Hi all, The application that I'm current writing already has its own validation logic, but I would like to integrate its results into the existing Wicket form validation so as to unify the feedback. To this end, I'm trying to extend AbstractFormValidator to wrap my system's logic. The way my sys

Re: Links in DataTable

2010-06-28 Thread Nelson Segura
Since AjaxLink is AJAX and not a proper link, then it does behave as a normal link, i.e. middle click (open link in new tab or new window) does not trigger the AJAX click even, which means you cannot chose to open the link in a new page. back to square one, except that know I know is a problem wit

Re: AW: Jwicket and Wiquery

2010-06-28 Thread Sam Stainsby
On Mon, 28 Jun 2010 16:29:51 +0200, Stefan Lindner wrote: > Hi Josh, > > yes, jWicket does it the Wicket way. > Generally you have a Behavior (e.g. DraggabeBehavior) extending wicket's > AjaxBehavior. So does Wiquery: label = new Label("item-name", model) draggableBehavior = new DraggableBehavi

Re: Links in DataTable

2010-06-28 Thread Nelson Segura
Jeremy, the code is below. I did notice something while researching/testing more. The LinkPanel solution DOES work for a DataTable. The problem starts when changed to a AjaxFallbackDefaultDataTable. I did testing based in the datatable example in the wicket examples. Maybe using an AjaxLink instea

Re: Panel re-rendered twice, when the data is fetched.

2010-06-28 Thread jammyjohn
Hi, I figured out the issue for panel being rendered twice :) The addresspanel.html was not started with tag... It directly has a tag.. It worked fine, when I constructed the tags with proper ... Thanks a lot... J -- View this message in context: http://apache-wicket.1842946.n4.nabb

Re: Links in DataTable

2010-06-28 Thread Jeremy Thomerson
please show some code On Mon, Jun 28, 2010 at 6:39 PM, Nelson Segura wrote: > I am trying to create a table based on DataTable, in which one of the > columns has links on it. > I tried to use the strategy described here (LinkPanel): > > https://cwiki.apache.org/WICKET/adding-links-in-a-defaultda

Links in DataTable

2010-06-28 Thread Nelson Segura
I am trying to create a table based on DataTable, in which one of the columns has links on it. I tried to use the strategy described here (LinkPanel): https://cwiki.apache.org/WICKET/adding-links-in-a-defaultdatatable.html But this has a problem: clicking in the links in succession soon causes "c

RE: Jwicket and Wiquery

2010-06-28 Thread Stefan Lindner
Hi Josh, it would be nice to her from you. Regardless of your decision. And while jwicket is a work in progres I am always glad to receive any feedback from users. Stefan -Ursprüngliche Nachricht- Von: Josh Kamau [mailto:joshnet2...@gmail.com] Gesendet: Montag, 28. Juni 2010 16:20 An:

Generating static HTML pages with Wicket

2010-06-28 Thread jverstry
Hi, I am new to Wicket. I would like to use Wicket to generate static html pages from a Java application. I have created a MyPage.html and corresponding MyPage.java files. MyPage extends WebPage. I would to know if it is possible to generate the 'final' html page that would be sent and displayed

Re: including wicket component into jsp

2010-06-28 Thread rikizz
Hi, thanks for the reply. Yes i checked, and the wicket filter is called but debugging wicket code i found that is not calling the onrender method. I will investigate to find out way.. If anyone has a working example it would be great.. thanks riccardo On 28 June 2010 19:40, bht [via Apache Wick

Re: passing a map into PageParameters

2010-06-28 Thread Fernando Wermus
This is not what I want to achieve. I need to pass a map of parameters as just an entry into PageParameters and other entries too. For instance, Map swfParameters=new HashMap(); swfParameteres.put("a", "1"); swfParameteres.put("b", "2"); PageParameters p=new PageParameters(); p.put("swfParame

Re: passing a map into PageParameters

2010-06-28 Thread jammyjohn
PageParameters parameters = new PageParameters(swfParameters); This is how the hashmap is constructed in PageParameters.. Thanks, J -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/passing-a-map-into-PageParameters-tp2271341p2271351.html Sent from the Wicket - User m

Re: Submitting a component value on a ajax call of a different component

2010-06-28 Thread jammyjohn
Why is getCallbackScript(boolean onlyTargetActivePage) is not called in the below code. I realized that it is not a @Override method. Not sure what is wrong here Instead of using typeOption.add(new AbstractDefaultAjaxBehavior(), I also tried using typeOption.add(new AjaxFormComponentUpdatingB

passing a map into PageParameters

2010-06-28 Thread Fernando Wermus
Hi all, I need to pass a map into PageParameters. But I failed. Map swfParameters=new HashMap(); ... swfParameters.put("token", "abc"); p.put(PanelIframe.SWF_PARAMETERS, swfParameters); ... RequestCycle.get().urlFor(clazz, p); The map is converted to "{token=abc}" like. But

Re: including wicket component into jsp

2010-06-28 Thread bht
Have you checked that the wicket filter is called? I found that the struts filter does not call filterChain.doFilter(). That may or may not be your problem depending whether anything else is in its path after it. I suspect however that this is what you need otherwise how can Wicket get the request

including wicket component into jsp

2010-06-28 Thread rikizz
Hi all, I know the many posts have been written on the same problem, but I have been looking at the answers for 5 hours without having a simple example to work with.. I basically need to include a single component (a menu) into my jsp pages, because we are migrating the application from struts/js

Re: OutOfMemoryError with lots of unit tests

2010-06-28 Thread Zilvinas Vilutis
perTest is deprecated I think, you should use "always" - although it adds additional time for each test run. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com 2010/6/28 Major Péter > Hi, > > Try something like this: > >org.apache.maven.plugins >maven-surefire-pl

Re: Panel re-rendered twice, when the data is pulled in.

2010-06-28 Thread jammyjohn
Ed, Thank you so much for the reply. Could you please send me the link to the working example. I would like to compare with the one I have. Btw, thanks for pointing out the improper usage of "table fragment" as panel. I have modified to Appreciate your help in this regard. J. -- View this me

Re: regarding IModel's

2010-06-28 Thread Jeremy Thomerson
I'll try to give some quick help. Ask again if you have more detailed questions. On Mon, Jun 28, 2010 at 8:04 AM, Marzia Forli wrote: > I have a problem with IModel's... Right now I am doing my homework with > 'Wicket In Action' and I know that models are connections to a data... > What I need t

Upgrade wicketstuff-push to Cometd2

2010-06-28 Thread Martin Grigorov
Hi, Last weekend I felt a bit bored and I decided to take a look at one of the cool wicketstuff projects that I had on my list for quite some time - wicketstuff-core/push-parent. Few minutes later I decided to upgrade it to Cometd version 2.0.0.RC1 because this is how I understand how the things w

AW: Jwicket and Wiquery

2010-06-28 Thread Stefan Lindner
Hi Josh, yes, jWicket does it the Wicket way. Generally you have a Behavior (e.g. DraggabeBehavior) extending wicket's AjaxBehavior. The you have some own component (a Panel e.g.) Now you simply do myPanel.add(new DraggableBehavior(...)); And DraggableBehavior let's you override some

Re: Jwicket and Wiquery

2010-06-28 Thread Josh Kamau
Thanks Stefan. Actually i have an idea that jWicket is what i want. I have read that it allows me to do the UI the jquery way but send events via ajax to the server. The only thing stopping me here is lack of documentation. Let me check out the demo . Thanks again. On Mon, Jun 28, 2010 at 5:15

RE: Jwicket and Wiquery

2010-06-28 Thread Stefan Lindner
There is no tutorial for jWicket yet. Take a look at the javadocs or look into the source code of the demo application. And: If you are convinced that wiquery fulfills your requierements then take wiquery. Stefan -Ursprüngliche Nachricht- Von: Josh Kamau [mailto:joshnet2...@gmail.com]

Re: Reading cookies on first/each request

2010-06-28 Thread M. Hammer
Quoting Bilgin Ibryam : I want to implement "Remember me" functionality by storing the encrypted and base64 encoded username in a cookie. Then I'd like to check for the cookie on the very first request (or every request) to the application. Hi, I do this in the newSession() method of my Applic

Jwicket and Wiquery

2010-06-28 Thread Josh Kamau
Hi team; Whats the difference between jwicket and wiquery? I have already read wiquery tutorials and seen some examples, but i dont need to find any for jwicket. any help from jwicket team will do Kind regards. josh

regarding IModel's

2010-06-28 Thread Marzia Forli
I have a problem with IModel's... Right now I am doing my homework with 'Wicket In Action' and I know that models are connections to a data... What I need to know if there is some kind of design pattern/advice about handling the models... For example there are some typical scenarios that appear i

Reading cookies on first/each request

2010-06-28 Thread Bilgin Ibryam
Hi all, I want to implement "Remember me" functionality by storing the encrypted and base64 encoded username in a cookie. Then I'd like to check for the cookie on the very first request (or every request) to the application. Any tips whats the best way to access httpRequest object on each reques

Announcing WicketObjects v0.1

2010-06-28 Thread Dan Haywood
Hi all, I'd like to announce a new open source (ASLv2) project to help develop Wicket applications - Wicket Objects. This is an integration between Wicket and the Naked Objects framework. The idea is that you can develop full webapps just by writing domain objects pojos, and Wicket Objects

TagTester after Ajax

2010-06-28 Thread Wolfgang
TagTester works on the content of the last response which, in case of an Ajax response, is not the whole page but only a small snippet. Even worse, this snippet doesn't contain the wicket:ids anymore I use for testing. Is there a way to Ajax-enable TagTester such that... ...you can use TagTester

Re: Asynchronous construction of page

2010-06-28 Thread Victor Volle
any progress w.r.t. to this question? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Asynchronous-construction-of-page-tp1892224p2270690.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: How do you create a toolbar of buttons for a datatabe?

2010-06-28 Thread vov
Look to DefaultDataTable addBottomToolbar(new NoRecordsToolbar(this)); You can append custom Bottom Toolbar to your table instead NoRecordsToolbar: public class MyBottomToolbar extends AbstractToolbar { public MyBottomToolbar(DataTable table) { super(table); RepeatingView headers = n

Re: OutOfMemoryError with lots of unit tests

2010-06-28 Thread Major Péter
Hi, Try something like this: org.apache.maven.plugins maven-surefire-plugin true false once -Xmx512m -XX:MaxPermSize=256m maybe check out the perTest forkMode. Regards, Peter 2010-06-28 11:08 keltezéssel, Swanthe Lindgren írta: > Hello > Has someo

Re: OutOfMemoryError with lots of unit tests

2010-06-28 Thread Martin Makundi
Try this as args: -Xms356m -Xmx1024m -XX:MaxPermSize=356m -XX:HeapDumpPath=c:/temp -Xss1024k Also you can reuse Application instance etc. ** Martin 2010/6/28 Swanthe Lindgren : > Hello > Has someone got any good tips about performing lots of render tests? We are > using TestNG and maven/surefi

OutOfMemoryError with lots of unit tests

2010-06-28 Thread Swanthe Lindgren
Hello Has someone got any good tips about performing lots of render tests? We are using TestNG and maven/surefire test runner which results in OutOfMemoryError for our about 500 tests, where each test tries to render a page or panel. After a bit of redesigning our test classes and call WicketT