1. click ajaxButton
2. redirect in button onSubmit
3. verify redirect in test FAILS
Is there a workaround? https://issues.apache.org/jira/browse/WICKET-2379
**
Martin
-
To unsubscribe, e-mail:
Maybe a newbie question, but why does the form care about the URL coding
strategy?
Is there such hybrid URL encoder which encodes like this:
http://www.example.com/mount-path/param1/param2?wicket-interface-and-friends-if-needed
Thanks!
Regards:
Norbi
Igor Vaynberg írta:
forms do not
Hi!
For some reason ModalWindow assumes request is not ajax even though it
is clicked via executeAjaxEvent:
if (getWebRequest().isAjax() == false)
{
shown = false; // This hides the button
}
Thread [main] (Suspended
Was it your intention to attach some code?
/Per
On Sun, Jul 19, 2009 at 9:59 AM, Martin
Makundimartin.maku...@koodaripalvelut.com wrote:
Hi!
For some reason ModalWindow assumes request is not ajax even though it
is clicked via executeAjaxEvent:
if (getWebRequest().isAjax() ==
I am working on reproducing it via steps 1-6.
**
Martin
2009/7/19 Per Lundholm per.lundh...@gmail.com:
Was it your intention to attach some code?
/Per
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For
Martin,
Your button should just be an external like. I don't think you are supposed to
be redirecting to an external url per the wiki guidelines here
http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html,
its this text on the bottom of the page:
Note that if you
Martin,
If you need the button to submit to do some logic, you can add a call decorator
to do your redirect with javascript e.g.
protected IAjaxCallDecorator getAjaxCallDecorator() { return new
AjaxCallDecorator() {public CharSequence
decorateScript(CharSequence script) {
Actually, that's what I initially tried, but it didn't work. If you use the
simple example below, you'll see that. None of the components with
isEnabled() overridden to return true are enabled. I am using wicket
1.4-rc4. In looking at the source code, it looks like if I were able to
override
Don't disable the form. Disable only the components you want to disable.
**
Martin
2009/7/19 slowery23 slow...@gatessolutions.com:
Actually, that's what I initially tried, but it didn't work. If you use the
simple example below, you'll see that. None of the components with
isEnabled()
Your button should just be an external like.
I need some logic there before redirecting.
I don't think you are supposed to be redirecting to an
external url per the wiki guidelines here
new RedirectRequestTarget(/path/to/legacyJspFile.jsp) is what I am using.
It is not relevant whether it
Hi.
When I uses component.info() method to display a message, my program stopped by
OutOfMemoryError or StackOverflowError.
I found the work around, but I could not found reason of this error. Can anyone
teach me the reason?
I create a sample application to show this problem. Open attached
That certainly will work. But if I have a form and I want to disable all of
the elements in the form except for the Edit Form link, it is, IMO, much
simpler to disable the form and override the one link so it is enabled,
rather than disabling many form components. We have one use case where we
That certainly will work. But if I have a form and I want to disable all of
the elements in the form except for the Edit Form link, it is, IMO, much
simpler to disable the form and override the one link so it is enabled,
rather than disabling many form components.
You can just make your own
On Sun, Jul 19, 2009 at 12:00 AM, Norbert Sándordevelo...@erinors.com wrote:
Maybe a newbie question, but why does the form care about the URL coding
strategy?
the form uses page's strategy to encode the urls.
Is there such hybrid URL encoder which encodes like this:
such a thing is coming
can u give an code example of what your centrallyenableddisabledcomponent
looks like?
MartinM wrote:
That certainly will work. But if I have a form and I want to disable all
of
the elements in the form except for the Edit Form link, it is, IMO,
much
simpler to disable the form and
Well..
public class MyCentrallyEnabledPage/Panel xxx {
private boolean centralEnable;
CentrallyEnabledTextField extends TextField {
isEnabled() {
return centralEnable;
}
}
I think you get the idea. It can be an inner class or any kind of
class (just needs the necessary built-in
Hi wicketers!
The question is the subject of this mail. I have a form with some fields
and
I want to those fields being updated after the form submit. All fields share
the same Loadable Detachable Model.
The issue is that the LDM is loaded before onSubmit() and i have no chance
to update the
Hi Igor;
I found the problem; problem is when i hit my UploadServlet via http-get
method , i simply write the url and hit the enter then below code is working
Session wicketSession = Session.get();
I can get wicket Session, wow !! it is great...
BUT ...
When i hit my UploadServlet via
Hi all,
My use case consists in show a text as a title or as a link.
I tried to solve this with a border
boolean isTitle=true;
H2Border border=new H2Border(border);
Link link=new Link(link);
H2border.add(link);
link.setEnable(!isTitle);
H2border.setVisible(isTitle);
add(H2border);
Hi,
Instead using a servlet you could try the following (you can find the whole
code at wicketstuff pickwick )
This way you will have the session because your are into the
requestCycle
On your WicketApp
mount(new URIRequestTargetUrlCodingStrategy(/upload) {
Great solution Fernando.
It works !!!
Thanks.
2009/7/20 Fernando Wermus fernando.wer...@gmail.com
Hi,
Instead using a servlet you could try the following (you can find the whole
code at wicketstuff pickwick )
This way you will have the session because your are into the
requestCycle
I have not run your quickstart, but this sounds peculiar to me.
Please create a JIRA (with the quickstart attached) and reply-all here
with the issue URL.
--
Jeremy Thomerson
http://www.wickettraining.com
On Sun, Jul 19, 2009 at 9:10 AM, Tsutomu Yanot_y...@me.com wrote:
Hi.
When I uses
If isVisible of border returns false it will definitely hide all it's children.
Paste your code, please.
On Mon, Jul 20, 2009 at 3:44 AM, Fernando
Wermusfernando.wer...@gmail.com wrote:
Hi all,
I thought the correct behavior for a border that its visibility is set
to false, it would be not
The code of a constructor is executed only once, so after
setVisible(true) it will not be called again for other isTitle value
(this is not a model). Simply override isVisible of your border. It
will be called each time page is going to be rendered.
-- Tony
On Mon, Jul 20, 2009 at 6:27 AM,
If you provide methods for updating underlying objects that hold data
in object setters, this must be sufficient. Or may be you forgot about
Feedback messages. If validation goes wrong, setters will not be
called.
Paste your code, please.
On Mon, Jul 20, 2009 at 6:05 AM, Mauro
I cannot override it, it is final
On Sun, Jul 19, 2009 at 7:37 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
The code of a constructor is executed only once, so after
setVisible(true) it will not be called again for other isTitle value
(this is not a model). Simply override
isVisible, not setVisible
H2Border border=new H2Border(border) {
@Override
public boolean isVisible() {
return ...
}
};
Be aware it may be called several times during page rendering (look JavaDoc).
-- Tony
On Mon, Jul 20, 2009 at 10:48 AM, Fernando
After checking the strange behavior with Sander,we find that in deployment
mode to run the quickstart will be okay.
This strange problem only took place in development mode.
Thanks Sander helping me to figure out this problem.
--
View this message in context:
I'm probably revealing my inexperience with J2EE environments in asking
this, but how do Wicket programmers typically handle application add-
ons (or plug-ins or modules).
I'm interested in emulating what happens in the Zope/Plone world (which
is where I've come from). In the case of Zope, you
What are you aiming at? Providing modules to others or building
software to your client/own company?
In my opinnion modules are good for the public but not for internal /
sophisticated (=educated) use.
**
Martin
2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
I'm probably revealing my
30 matches
Mail list logo