Hi,
Default impl of IPageFactory interface in Wicket knows how to
instantiate only pages with default (empty) constructor and with
PageParameters as only parameter.
If your page has your own parameters (like IHasTraits) then you need
either to instantiate the page yourself (e.g.
Hi,
From the code below I don't see what exactly doesn't work. It looks fine for
me.
For simpler cases/pages I'd recommend to use Wicket's
ApplicationContextMock instead of using the whole Spring context
because this will slow down your tests.
Just do:
ctx= new ApplicationContextMock();
Hi,
Usage of Wicket's Ajax behaviors make the page stateful, so there is
no easy way to make it stateless.
The easiest solution is to use
org.apache.wicket.settings.IPageSettings#setRecreateMountedPagesAfterExpiry(false).
This way you'll see the configured
Thanks Sebastian,
I was able to resolve it based on your examples!
Sebastian
2012/9/16 Sebastien seb...@gmail.com:
Hi Sebastian
The issue is that $(document).ready( function() is not called (or only
the first time) a Panel is loaded via Ajax.
IMHO, the main thing to understand while working
Hi,
An unitializes session variable caused my problem. First I thought it was
injecting problem.
Thank you for advices now I'm green :).
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-JUnit-testing-tp4652021p4652030.html
Sent from the Users forum
Dear Forum,
I have a bookmarkable page which can take two parameters:
uniqueName=[uniqueName] and unique_id_key=[]
For some reason, the page is being instantiated twice.
The first time, the right parameters are being passed.
The second time, a lot of parameters are being passed and one of the
Hi Dirk,
IEmailUrlProviderI
have used a similar approach in a project.
You just have to make sure Wicket's ThreadContext is properly set before
you access Wicket functionality.
Take a look at BaseWicketTester's constructor.
Hope this helps
Sven
On 09/17/2012 07:10 AM, Dirk Forchel wrote:
Thank you for the hint. I just thought about using the WicketTester to mock
the behavior (RequestCycle) of getting the url for a mounted page.
--
View this message in context:
Hi,
underneath the first part where it goes wrong.
Al the -tag is printed before the
*html wicket makes from it:*
style type=text/css media=all
/**/
/**/
/**/
*/--
/**/
style type=text/css media=print
/*![CDATA[*/
@import
In Wicket, is there an easy way to override the doGet/doPost on every request
in order to add some common code that should fire on every request? I used
to know but forgot.
The idea is to add some common code e.g. database transaction start/end for
the request scope.
--
View this message in
A plain old servlet filter will do the trick afaik. If you want Wicket
(=1.5) specific code, RequestCycleListener's are your best bet.
Martijn
On Mon, Sep 17, 2012 at 3:59 PM, eugenebalt eugeneb...@yahoo.com wrote:
In Wicket, is there an easy way to override the doGet/doPost on every request
add your requestcyclelistener and do it in onbeginrequest
On Mon, Sep 17, 2012 at 7:29 PM, eugenebalt eugeneb...@yahoo.com wrote:
In Wicket, is there an easy way to override the doGet/doPost on every request
in order to add some common code that should fire on every request? I used
to know but
div class=submitareaa href=# wicket:id = submitButton1
class=button submitareaSUBMIT/a/div
Sorry, you are right, it is an ajax link, not a button.
On Thu, Sep 13, 2012 at 4:26 PM, Paul Bors p...@bors.ws wrote:
I'm confused, the title is talking about an Ajax submit button yet your
code
i didn't see last part of your mail see IRequestCycleListener
onbeginrequest/onendrequest
On Mon, Sep 17, 2012 at 7:29 PM, eugenebalt eugeneb...@yahoo.com wrote:
In Wicket, is there an easy way to override the doGet/doPost on every request
in order to add some common code that should fire on
What I'm looking for is some kind of an overridable onRequest() or a Request
Listener that would apply to all requests within the Wicket app.
(This must be done on the Request level, not on the Page level.)
--
View this message in context:
Thanks, I found an example here:
http://wicket.apache.org/apidocs/1.5/org/apache/wicket/request/cycle/IRequestCycleListener.html
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038p4652044.html
Sent from
Sorry, one more question. Is it possible to know which active Page I'm
currently on during this request interception?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038p4652045.html
Sent from the Users
see PageRequestHandlerTracker ,you can get first and last page of your request
On Mon, Sep 17, 2012 at 7:55 PM, eugenebalt eugeneb...@yahoo.com wrote:
Sorry, one more question. Is it possible to know which active Page I'm
currently on during this request interception?
--
View this message
Thanks so much!!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038p4652047.html
Sent from the Users forum mailing list archive at Nabble.com.
Ok, thanks. I set
this.getPageSettings().setRecreateMountedPagesAfterExpiry(false); in the
app class.
But, to my previous point:
The page is mounted and reached with all the necessary data (to get the
entity).
But on AjaxEditableLabel interaction, the page is created with empty
PageParameters.
On Mon, Sep 17, 2012 at 5:59 PM, Ondrej Zizka ozi...@redhat.com wrote:
Ok, thanks. I set
this.getPageSettings().setRecreateMountedPagesAfterExpiry(false); in the
app class.
But, to my previous point:
The page is mounted and reached with all the necessary data (to get the
entity).
But on
If I start it with eclipse-jetty it's works. If i start it with a tomcat 6
follow exeption shows up. I tried to fix it. but I dont have really a clou
what's wrong.
/Sep 17, 2012 4:58:56 PM org.apache.catalina.core.StandardContext
filterStart
Schwerwiegend: Exception starting filter
What did you check already ?
On Mon, Sep 17, 2012 at 6:09 PM, zarathustra wicketfo...@noxin.ch wrote:
If I start it with eclipse-jetty it's works. If i start it with a tomcat 6
follow exeption shows up. I tried to fix it. but I dont have really a clou
what's wrong.
/Sep 17, 2012 4:58:56 PM
The only similar issues i have come across are with plugins to my browser
(firebug etc) causing second requests without any parameters. But this may
be something similar.
On 17 September 2012 11:18, lucast lucastol...@hotmail.com wrote:
Dear Forum,
I have a bookmarkable page which can take two
We're using RenderStrategy.REDIRECT_TO_RENDER (ie redirect after post
strategy; in 1.4.x this was working fine and our FeedbackMessage's were
rendered correctly against their reporter using ComponentFeedbackPanel.
Having upgraded to 6.0.0, the messages no longer appear.
Investigating, it seems
Hello zarathustra,
Sorry if this is stating the obvious, but it looks like a classpath issue,
are you sure that the wicket jar is being included in your servlet's lib
directory?
One way to find out what's in your classpath is to simply print it out with
a jsp:
Try saving the following as a
Hi, I need a dataview/table with multipe rows
One row is no problem, so who can help me with an example with 2 rows?
#
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Is-dataview-table-with-multiple-rows-possible-tp4652055.html
Sent from the Users
Please have a look at http://www.wicket-library.com/wicket-examples/repeater
-Tom
On 17.09.2012, at 20:37, Delange delan...@telfort.nl wrote:
Hi, I need a dataview/table with multipe rows
One row is no problem, so who can help me with an example with 2 rows?
I did, none of them have multiple rows
What I mean is for example:
How to do that?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Is-dataview-table-with-multiple-rows-possible-tp4652055p4652057.html
Sent from the Users
http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.tree.TableTreePage
On Mon, Sep 17, 2012 at 9:57 PM, Delange delan...@telfort.nl wrote:
I did, none of them have multiple rows
What I mean is for example:
How to do that?
--
Is there a working Wicket 6.0.0 Websocket example written in Java? The
only demo provided here on the wiki page is written in Scala.
https://cwiki.apache.org/WICKET/wicket-native-websockets.html
The other demo I found has outdated dependencies on Wicket
6.0-SNAPSHOT and
Hi,
http://wicketinaction.com/2012/07/wicket-6-native-websockets/
This is the Java example.
What is the problem with compiling it ?
On Mon, Sep 17, 2012 at 11:13 PM, sfwicket li...@bgb.net wrote:
Is there a working Wicket 6.0.0 Websocket example written in Java? The only
demo provided here
ChartsResourceReference.java will not compile with a missing import on:
import org.apache.wicket.request.resource.ExternalUrlResourceReference;
This is with the Wicket version set in the pom.xml as either
6.0-SNAPSHOT (as it currently is) or changing it to 6.0.0.
also, the pom.xml will
This class has been renamed to UrlResourceReference. Remove 'External'
and it should work.
On Mon, Sep 17, 2012 at 11:41 PM, sfwicket li...@bgb.net wrote:
ChartsResourceReference.java will not compile with a missing import on:
import
got it - thanks!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Websocket-Example-tp4652059p4652064.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe,
Good!
I've updated the code of the demo apps in my repository.
On Mon, Sep 17, 2012 at 11:57 PM, sfwicket li...@bgb.net wrote:
got it - thanks!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Websocket-Example-tp4652059p4652064.html
Sent from the
In Wicket 6 using Safari, a modal dialog will not allow interactions with
form components. The whole dialog always seems to be in drag mode. Click
anyw here on the panel and the dialog will drag.
Interaction works fine with all other browsers.
Safari interaction works fine with previous Wicket
Thanks... the Tomcat artifact could be switched to 0.2 as well - I know its
commented out but would make it easier switching from Jetty to Tomcat.
Curious though in the example, ChartsResourceReference.java:
JavaScriptHeaderItem.forReference(WicketWebSocketJQueryResourceReference.get())
This issue can also be seen here:
http://www.wicket-library.com/wicket-examples-6.0.x/ajax/modal-window
Using Safari, the dialog appears to resize rather that select input fields
--
View this message in context:
Hello,
I have a very common pattern in which from a list, I can to detail of
an element in the list.
In the detail page I have a reference back to the page list.
The page list can be different, several list might point to the same detail.
Until now I have been using page reference to return to the
you can pass in the page id obtained from page#getpageid() as a
bookmarkable url, then to navigate back to the original page you can
do setResponsePage(new PageReference(pageid).getPage())
this will, however, leave you on a nonbookmarkable url when you come back.
if you want bookmarkable urls
That is what I thought, but PageReference constructor is not public,
so I cannot do that, unless I am missing something?
But I could do
(Page)Session.get().getPageManager().getPage(pageId)
As PageReference does internally, correct?
- Nelson
On Mon, Sep 17, 2012 at 3:11 PM, Igor Vaynberg
its public in 6. but yeah, you can do that yourself.
-igor
On Mon, Sep 17, 2012 at 3:20 PM, Nelson Segura nsegu...@gmail.com wrote:
That is what I thought, but PageReference constructor is not public,
so I cannot do that, unless I am missing something?
But I could do
I have realized my WebSocket connection was closing briefly after opening
because I have Apache httpd on port 80 with mod_jk running in front of my
Tomcat instance on port 8080. When I connect directly on 8080 to Tomcat the
Wicket WebSocket demo app works.
What is the recommended configuration
I have a proposed fix - please let me know if I've analyzed the problem
correctly.
The modal dialog tries to set event.ignore=true if the browser is Safari.
This Wicket event data structure used to be passed through to
Wicket.Drag.mouseDownHandler as the argument e. However, in the switch over
My apologies... the patch file was incomplete. This one supersedes the
previous one
http://apache-wicket.1842946.n4.nabble.com/file/n4652075/Fix_to_Wicket_6___Safari_modal_window_drag_issue1.patch
Fix_to_Wicket_6___Safari_modal_window_drag_issue1.patch
--
View this message in context:
Is there a mechanism to let the page be re-created with the original
PageParameters?
Maybe they could be kept within JS of the page and sent with the AJAX
request? That would probably need a change in Wicket's AJAX code.
(Wicket 1.5)
That was the case until recently but there was
Hi,
I found myself repeatedly creating a PageParameters object from some
domain object for BookmarkablePageLink just to have it then parsed
back to that same domain object.
Example:
Release rel { product: AS; version: 7.1.2 }
=
add( new BookmarkablePageLink ( link, ReleasePage.class,
Jeremy, the archetype is already on the Gamboa project repository:
http://github.com/brunoborges/gamboa-project :-)
It's just not up to date
*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*
On Thu, Sep 13, 2012 at 11:39 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:
On Wed, Sep
49 matches
Mail list logo