alecswan1 wrote:
>
> So, how do I test AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form
> form) method?
>
You may try using http://wicketpagetest.sourceforge.net/ to test it instead.
It
supports real AJAX.
-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.so
I guess the servlet container handles jsessionid transparently.
**
Martin
2009/12/28 Wilhelmsen Tor Iver :
>> jsessionid works
>
> ... but leads to lots of boilerplate where you need to rewrite all URLs
> targeted at your app's code. I guess Wicket can do that for you, but still...
>
> - Tor Ive
Just debug it to find the reason.
**
Martin
2009/12/29 Sam Barrow :
> tried that, didn't work.
> any other ideas?
>
> On Mon, 2009-12-28 at 16:11 +0100, Per Newgro wrote:
>> Hi Sam,
>>
>> did you try
>>
>> birthDateField = new TextField("birthDate", new Model(),
>> Date.class);
>>
>> Maybe it he
I doubt it's a problem, but if you're worried about the class reference you can
introduce a middle man that will handle the serialization as a string:
class ClassHolder implements Serializable {
private Class clazz;
// constructor, setter, and getter omitted...
private void readObject(Objec
create a quickstart and attach it to a jira issue.
-igor
On Mon, Dec 28, 2009 at 3:35 PM, Corbin, James wrote:
> Upgrading to 1.4.5 does not fix the problem. Something else is amiss here.
>
> I've even tried explicitly setting the form to multi-part (e.g.,
> myForm.setMultiPart(true))
>
> More
Upgrading to 1.4.5 does not fix the problem. Something else is amiss here.
I've even tried explicitly setting the form to multi-part (e.g.,
myForm.setMultiPart(true))
More investigation is needed.
j.D.
-Original Message-
From: Corbin, James [mailto:jcor...@iqnavigator.com]
Sent: Mond
I developed a new class PopupSettings because I can't extend it,
MyPopupSettings is same as PopupSetting but the method public String
getPopupJavaScript() { . } return a "window.open(' url ')".
This works.
De: Juan E Kipes
Para: users@wicket.apache.org
Yep, I read about that in the jira issue wicket-2621.
The parent form has a fileupload field and I verified the generated HTML
defines the encoding on that form as multipart.
The dialog that is popped up from that panel, also defines a form, in which
wicket converts to a div (can't have nested
in certain cases wicket will set multipart property on your forms for
you. eg if it detects a file upload field in the form.
-igor
On Mon, Dec 28, 2009 at 2:28 PM, Corbin, James wrote:
> A little more information on this issue,
>
> I observed this error after a dialog is popped up that contains
tried that, didn't work.
any other ideas?
On Mon, 2009-12-28 at 16:11 +0100, Per Newgro wrote:
> Hi Sam,
>
> did you try
>
> birthDateField = new TextField("birthDate", new Model(),
> Date.class);
>
> Maybe it helps.
>
> Cheers
> Per
>
>
> ---
A little more information on this issue,
I observed this error after a dialog is popped up that contains a form
that isn't multipart. The page that launches this dialog also has a
form that IS multipart. The thing I don't understand is how the parent
form has multipart encoding because I never s
hi, I'm using datagrid of inmethod,I want open a new window popup no modal,
then override this method
public class MyDataGrid extends DataGrid {
.
@Override
protected void onRowClicked(AjaxRequestTarget target, IMode
As recent as the 1.4.4 release (dated December 10th, 2009), I started
getting the following stack trace.
This happens when submitting the form.
Note: This doesn't seem to occur with the same code base running against
Wicket 1.4.1.
Did something break in 1.4.4 relating to this?
java
Hej,
2009/12/28 uud ashr :
> Won't work using:
> setResponsePage(MyAnotherPage.class);
>
> But fine when use constructor:
> setResponsePage(new MyAnotherPage());
At work we had a similar case where an object in the session, that was
explicitely set before calling, wasn't set in the called page w
> jsessionid works
... but leads to lots of boilerplate where you need to rewrite all URLs
targeted at your app's code. I guess Wicket can do that for you, but still...
- Tor Iver
-
To unsubscribe, e-mail: users-unsubscr...@wic
Martijn Dashorst wrote:
>
> why not use Class.getName() instead?
>
This is a generic component that can be used for any kind of modalwindow
link. So naturally I won't know what the fallback page is for every
instantiation.
--
View this message in context:
http://old.nabble.com/Quick-question
why not use Class.getName() instead?
Martijn
On Mon, Dec 28, 2009 at 9:41 PM, Anthony DePalma wrote:
> I am making a modal window link component that will fallback to a
> standard redirect if javascript is disabled. Traditionally I have been
> overriding a method called onFallback() and forcing
Hi Igor,
Em 23/12/2009 20:28, Igor Vaynberg escreveu:
On Wed, Dec 23, 2009 at 12:51 PM, Ricardo Mayerhofer
wrote:
Good discussion.
Em 23/12/2009 15:32, Igor Vaynberg escreveu:
On Wed, Dec 23, 2009 at 7:02 AM, Ricardo Mayerhofer
wrote:
Hi Igor,
Thanks for your respons
I am making a modal window link component that will fallback to a
standard redirect if javascript is disabled. Traditionally I have been
overriding a method called onFallback() and forcing users to manually
setRedirect(true), setResponsePage(blah), but I would prefer it if I
could just pass the cla
I unsuccessfully tried several different ways to invoke the AjaxSubmitLink
from my test method.
1. formTester.submit("submitButton") does not call
AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form)
2. formTester.submitLink("submitButton", false) fails with
*org.apache.wicket.
The problem was that the test case was creating AnnotApplicationContextMock
before creating the WebApplication itself. The following code worked for me:
MyApplication webApp = new MyApplication()
{
@Override
public void init() {
addComponentInstantia
jsessionid works
**
Martin
2009/12/28 Igor Vaynberg :
> lol, i guess you cant use most major sites out there eh?
>
> -igor
>
> On Mon, Dec 28, 2009 at 11:01 AM, Martin Makundi
> wrote:
>> Yes, many companies' security policies allow javascript but not cookies.
>>
>> **
>> Martin
>>
>> 2009/12/28
lol, i guess you cant use most major sites out there eh?
-igor
On Mon, Dec 28, 2009 at 11:01 AM, Martin Makundi
wrote:
> Yes, many companies' security policies allow javascript but not cookies.
>
> **
> Martin
>
> 2009/12/28 Igor Vaynberg :
>> so you think there are people out there that will us
Yes, many companies' security policies allow javascript but not cookies.
**
Martin
2009/12/28 Igor Vaynberg :
> so you think there are people out there that will use ajax but not
> allow cookies...
>
> -igor
>
> On Mon, Dec 28, 2009 at 10:35 AM, Martin Makundi
> wrote:
>> I agree. But what about
so you think there are people out there that will use ajax but not
allow cookies...
-igor
On Mon, Dec 28, 2009 at 10:35 AM, Martin Makundi
wrote:
> I agree. But what about cookie-less users. Just forget about them?
>
> 2009/12/28 Igor Vaynberg :
>> we have one, its called cookies
>>
>> -igor
>>
Haha, but jsessionid is probably destroyed when session dies..
**
Martin
2009/12/28 Martin Makundi :
> Can we get access to the jsessionid? Maybe we could use that to track
> cookieless users.
>
> **
> Martin
>
> 2009/12/28 Martin Makundi :
>> I agree. But what about cookie-less users. Just forge
Can we get access to the jsessionid? Maybe we could use that to track
cookieless users.
**
Martin
2009/12/28 Martin Makundi :
> I agree. But what about cookie-less users. Just forget about them?
>
> 2009/12/28 Igor Vaynberg :
>> we have one, its called cookies
>>
>> -igor
>>
>
--
I agree. But what about cookie-less users. Just forget about them?
2009/12/28 Igor Vaynberg :
> we have one, its called cookies
>
> -igor
>
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-
we have one, its called cookies
-igor
On Mon, Dec 28, 2009 at 10:22 AM, Martin Makundi
wrote:
> yah.. styles won't work either.. they're in the session so when
> invalidation occurs...the data is lost. So Wicket needs some built-in
> method to pass tokens between sessions.
>
> **
> Martin
>
> 20
yah.. styles won't work either.. they're in the session so when
invalidation occurs...the data is lost. So Wicket needs some built-in
method to pass tokens between sessions.
**
Martin
2009/12/28 Martin Makundi :
> - sethome(string) needs to be called at a particular point in the
> request cycle,
- sethome(string) needs to be called at a particular point in the
request cycle, could be built-in or not?
- gethome() with homepage handling needs to be done in a particular
manner in the request cycle, could be built-in or not?
- alternative url encoding scheme, could be built-in or not?
> does
that does what?
so we provide sethome(string) and gethome(string) which are analogues
to setcookie(cookie) and getcookies() which does not lock you into a
single way of doing multihoming.
there is some code you have to write to build an application
-igor
On Mon, Dec 28, 2009 at 9:56 AM, Mar
is this rule approx true?
as far as it's described in the javadoc:
[1] org.apache.wicket.Session.getSizeInBytes()
Size of this session, including all the pagemaps it contains
[2] org.apache.wicket.PageMap.getSizeInBytes()
Size of this page map in bytes, including a sum of the sizes of all the
pa
I just upgraded from Wicket 1.4.2 to Wicket 1.4.5 and started receiving the
following exceptions from my Unit test.
Is this a known issue or do I need to change my test?
Thanks.
org.apache.wicket.WicketRuntimeException: *There is no application attached
to current thread main*
at org.apa
> rfe? for what? cookies have nothing to do with wicket.
> > Not as robust as an url but works.
> you can build your own url conding strategy that postprocesses urls in
> any way you want.
RFE for built-in support of multi-homing in wicket, out-of-the-box.
**
Martin
>
> -igor
>
On Mon, Dec 28, 2009 at 9:41 AM, Martin Makundi
wrote:
>Not as robust as an url but works.
you can build your own url conding strategy that postprocesses urls in
any way you want.
-igor
>
> **
> Martin
>
> 2009/12/28 Igor Vaynberg :
>> use a cookie. every time a user enters a "silo" set it in
rfe? for what? cookies have nothing to do with wicket.
-igor
On Mon, Dec 28, 2009 at 9:41 AM, Martin Makundi
wrote:
> Ok, something could be built on that. Not as robust as an url but
> works. Requires a nice design in the request processing. Still RFE?
>
> **
> Martin
>
> 2009/12/28 Igor Vaynbe
Ok, something could be built on that. Not as robust as an url but
works. Requires a nice design in the request processing. Still RFE?
**
Martin
2009/12/28 Igor Vaynberg :
> use a cookie. every time a user enters a "silo" set it in a silo
> cookie. when the session expires, the cookie will still b
use a cookie. every time a user enters a "silo" set it in a silo
cookie. when the session expires, the cookie will still be there.
-igor
On Mon, Dec 28, 2009 at 5:04 AM, Martin Makundi
wrote:
> 2009/12/28 Ernesto Reinaldo Barreiro :
>> but I'm no core developer... So, why not wait to see what
>>
On Mon, Dec 28, 2009 at 4:49 AM, Early Morning wrote:
> Hi all,
>
> I created a custom DataTable based on AjaxFallbackDefaultDataTable, as well
> as a ChecBoxColumn based on the CheckBoxColumn in wicket-phonebook. My
> questions:
>
> 1. Would it be also possible to create a RadioColumn for the Dat
Thank you MartinM. Your question caused me to question the other methods I
was overriding from the super...after removing those unnecessary overridden
methods, its working like a charm.
Thank you!
MartinM wrote:
>
> Hi!
>
> Did you implement the IHeaderContributor and mark @Override?
>
> 20
I'll try the quickstart and see if I can reproduce it outside of our code.
We are using Wicket 1.4.4 and the issue occurs. I'm not sure if it's the
looping issue or not, I've just observed, that with the upload control in a
form, none of the ajax behaviors on other controls that are on the same
Hi,
I had some issue with multipart forms and ajax recently, but in 1.4.4 it
works for me, see https://issues.apache.org/jira/browse/WICKET-2432 for
more details. Is this the same issue for you?
Maybe try the quickstart, see if there the ajax is working for you.
Regards,
Peter
2009-12-28 16:46 k
Well done, Uwe!
--
View this message in context:
http://old.nabble.com/Java-Wicket-Job-Opportunity%2C-Finland-tp26853946p26944833.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
Hi!
Did you implement the IHeaderContributor and mark @Override?
2009/12/28 duncan787 :
>
> Great tip, thanks! After implementing, I see that the behavior is added to
> the text field correctly, but the renderHead() method is not being called,
> can you help me understand why that is?
>
**
Mart
Great tip, thanks! After implementing, I see that the behavior is added to
the text field correctly, but the renderHead() method is not being called,
can you help me understand why that is?
jwcarman wrote:
>
> On 3/9/08, James Carman wrote:
>> On 3/9/08, Warren wrote:
>> > WebMarkupContaine
Any feedback on why placing a file upload component on a form in Wicket
would cause the ajax behavior to stop working
Known issue within the wicket community?
J.D.
-Original Message-
From: Corbin, James [mailto:jcor...@iqnavigator.com]
Sent: Friday, December 18, 2009 12:47 PM
To: us
Right, right, my bad. But then you should create three different
webmodules for a single application, that's why wicket would be loaded 3
times only for this separation.. It's just unneccesary resource usage IMHO.
2009-12-28 16:30 keltezéssel, Pieter Degraeuwe írta:
> Hmm, that's not correct. Diff
Hmm, that's not correct. Different frontend apps should use the same EJB's.
In that case, It's not so ugly anymore in my opinion. (I don't want to
advocate the use of EJB's though..)
2009/12/28 Major Péter
> Hi,
>
> 2009-12-28 15:57 keltezéssel, Jim Pinkham írta:
> > OK, but could you deploy mul
I am more worried about the session duplication. I want to get
"multi-homed single application look and feel". Single wicketsession
per user.
**
Martin
2009/12/28 Pieter Degraeuwe :
> Hmm, that's not correct. Different frontend apps should use the same EJB's.
> In that case, It's not so ugly anym
Hi,
2009-12-28 15:57 keltezéssel, Jim Pinkham írta:
> OK, but could you deploy multiple copies of the same app to different root
> contexts - that would give you the info you want in each URL and thus be
> able to do different home/error pages with some config along with each copy
> of the app. S
I guess wicketsessions will be different. I know I proposed to do that but
not sure is the best solution. I your case I would surelly opt for the
solution you have in place right now.
Ernesto
On Mon, Dec 28, 2009 at 4:09 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:
> Might wor
Actually, I think Martin has a solution but he doesn't like it: because it
is not a clean solution. What he is asking for, if I didn't get it wrong at
the end, is been able to have more than one HomePage, ErrorPage, and so on
based on incoming URLs. But this included as a framework feature... not
h
Hi Sam,
did you try
birthDateField = new TextField("birthDate", new Model(),
Date.class);
Maybe it helps.
Cheers
Per
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@
Might work, but I do not know if it has any consequences such as will
the user have a single wicketsession?
**
Martin
2009/12/28 Jim Pinkham :
> I think this suggestion is worth condsidering more carefully:
>
>>> Can you just achieve what you wan't making siloA, siloB, siloC been
>>> different "W
I think this suggestion is worth condsidering more carefully:
>> Can you just achieve what you wan't making siloA, siloB, siloC been
>> different "Wicket" applications?
>No, that is not the proper solution. They are the same application.
OK, but could you deploy multiple copies of the same app t
did you try debugger and breakpoint?
2009/12/28 Sam Barrow :
> I tried that too, still same error.
>
> On Mon, 2009-12-28 at 16:02 +0200, Martin Makundi wrote:
>> You forgot to set Type of the textfield... you know, generics are only
>> compile-deep.
>>
>> public TextField(final String id, final C
I tried that too, still same error.
On Mon, 2009-12-28 at 16:02 +0200, Martin Makundi wrote:
> You forgot to set Type of the textfield... you know, generics are only
> compile-deep.
>
> public TextField(final String id, final Class type)
>
> type -> Date.class
>
> **
> Martin
>
> 2009/12/28 Sa
You forgot to set Type of the textfield... you know, generics are only
compile-deep.
public TextField(final String id, final Class type)
type -> Date.class
**
Martin
2009/12/28 Sam Barrow :
> I'm getting this exception when calling getConvertedInput() on
> birthDateField.
>
> java.lang.ClassCas
I'm getting this exception when calling getConvertedInput() on
birthDateField.
java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Date
I'm using wicket 1.4.1
birthDateField = new TextField("birthDate", new
Model());
birthDateField.setLabe
2009/12/28 Ernesto Reinaldo Barreiro :
> but I'm no core developer... So, why not wait to see what
> do they comment on this issue?
Maybe they just want us to weather this out on ourselves ... ;)
**
Martin
>
> On Mon, Dec 28, 2009 at 1:44 PM, Martin Makundi <
> martin.maku...@koodaripalvelut.com
Maybe if you replace "users's silo" with "user location" and then say
Example, if location="silo"... things will be a little less bound to your
use case... Otherwise your description of what you want to achieve looks
fine fine to me... but I'm no core developer... So, why not wait to see what
do th
Hi all,
I created a custom DataTable based on AjaxFallbackDefaultDataTable, as well
as a ChecBoxColumn based on the CheckBoxColumn in wicket-phonebook. My
questions:
1. Would it be also possible to create a RadioColumn for the DataTable? From
what I've read, I need to add the entire DataTable to
How would you formulate such RFE?
"Wicket needs an autonomus but parametrizable global behavior, that is
transparent to all url encoding schemes, that can be used to identify
users's silo in the application. When session is invalidated or other
errors occur, each silo can have its own errorpage/ho
Create a RFE? Maybe on 1.5 it is already possible?
Ernesto
On Mon, Dec 28, 2009 at 1:16 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:
> It should be automatic and global, like a url encoding scheme, and it
> should come with an interpreter that will process the
> homepage/error
It should be automatic and global, like a url encoding scheme, and it
should come with an interpreter that will process the
homepage/errorpage when necessary.
**
Martin
2009/12/28 Ernesto Reinaldo Barreiro :
>>
>>
>> But where could we bind the silo information into urls globally?
>>
>>
> Mountin
>
>
> But where could we bind the silo information into urls globally?
>
>
Mounting pages? Or better having some kind of configuration class that you
use to mount the pages and do the ugly URL plumbing on that method?
Best,
Ernesto
That's where we have our workaround, currenlty. And it is ugly.
But where could we bind the silo information into urls globally?
**
Martin
2009/12/28 Ernesto Reinaldo Barreiro :
> Neither do I... but
> maybe AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
> requestCycle) i
Neither do I... but
maybe AbstractRequestCycleProcessor.respond(RuntimeException e, RequestCycle
requestCycle) is the method to override?
Best,
Ernesto
On Mon, Dec 28, 2009 at 12:32 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:
> > So essentially what you want to use is the
Should be the same.
Sven
Pieter Degraeuwe wrote:
I was thinking this as well, but the message should in that case also NOT
appear when you do setResponsePage(new MyAnotherPage()), no ?
On Mon, Dec 28, 2009 at 9:39 AM, Sven Meier wrote:
Hi,
feedback messages are tied to components they a
> So essentially what you want to use is the (failing) request URL to redirect
> users to different pages? Some kind of strategy for redirecting to "Expired
> Pages" and to "Home Pages" based on the URL instead of fixed pages? Isn't
> this possible by rolling out your own WebRequestCycleProcessor?
So essentially what you want to use is the (failing) request URL to redirect
users to different pages? Some kind of strategy for redirecting to "Expired
Pages" and to "Home Pages" based on the URL instead of fixed pages? Isn't
this possible by rolling out your own WebRequestCycleProcessor?
Ernesto
Hi!
> Can you just achieve what you wan't making siloA, siloB, siloC been
> different "Wicket" applications?
No, that is not the proper solution. They are the same application.
> I still see the problem of how this state will be stored on Servlet Context
> and how do you manage/recover/delete it
Hi,
i have the same problems for our heavy ajax wicket site. I use
wicket-ajax so the stateless flag can not be used. If the session
expires i make some assumptions:
* all user generated content is thrown away. (e.g. shopingbasket)
* the pagecomponents the user is on is in "initial hierarchie",
Hi Martin,
Can you just achieve what you wan't making siloA, siloB, siloC been
different "Wicket" applications?
I still see the problem of how this state will be stored on Servlet Context
and how do you manage/recover/delete it for a certain "user"... How is this
"generic" user defined? Isn't thi
> How exactly do you see this implemented? There will be plenty of details to
> be taken care for. e.g. For how long should this information stay on
> that Servlet Context? If your application has many users what information
> should go there?...
Somehow configure that
- my application has follow
How exactly do you see this implemented? There will be plenty of details to
be taken care for. e.g. For how long should this information stay on
that Servlet Context? If your application has many users what information
should go there?...
Wouldn't it be simpler to have a component instantiation l
> Can you just simply track user activity and store it into a persistence
> layer that do not expires with session and then once session expires
> redirect them to that last page (after they have logged in?)?.
Maybe wicket could do this automatically using Servlet Context?
**
Martin
>
> Best,
>
Can you just simply track user activity and store it into a persistence
layer that do not expires with session and then once session expires
redirect them to that last page (after they have logged in?)?. You could add
a "check" that sees if the user had some pending actions (that are cleaned
out if
Hi!
Yes, I hate this situation too. Our application has various different
silos and whenever the user session expires, he loses his silo and is
redirected to a generic homepage and an inexperienced user will never
know how to get back to where he was. Some information should be in
the url. I wonde
I was thinking this as well, but the message should in that case also NOT
appear when you do setResponsePage(new MyAnotherPage()), no ?
On Mon, Dec 28, 2009 at 9:39 AM, Sven Meier wrote:
> Hi,
>
> feedback messages are tied to components they are reported for (the link in
> your case).
> Since t
Hi,
When a client has a page in his browser that he does not touch for a while
and the session expired. after that if he hits an ajax link for example - an
exception occurs in the wicket level due to the session expired state.
How can I gracefully handle such a situation assuming that there is no
Hi,
feedback messages are tied to components they are reported for (the link
in your case).
Since this component isn't located on your response page, the message
will not be rendered.
Use Session#info() instead.
Regards
Sven
uud ashr wrote:
Hi all,
Why does wicket panel don't work if I d
Sam Stainsby schrieb:
Finland, Finland, Finland
The country where I quite want to be!
^^^ Not the best job application I've seen :-)
but a nice reference to monty python´s flying circus ;)
-
To unsubscribe, e-mail: users-
84 matches
Mail list logo