Hi,
your isVisible() might be called to often or early.
FeedbackMessagesModel caches the messages during request, so the call to
#anyMessage() might result in a premature collection of messages.
Try override #onConfigure() instead, this is preferred over overriding
#isVisible():
The isVisible():
assetLookupOptionsFP = new
FeedbackPanel("assetLookupOptionsFP"){
private static final long serialVersionUID = 1L;
@Override
public boolean isVisible() {
Hi,
hard to tell from your code snippet.
Could you remove the irrelevant part (the request attribute) and show us
the visibility control instead?
A quickstart would help too.
Have fun
Sven
On 26.11.19 16:53, Entropy wrote:
We have a page where we are being required to have multiple
Hm... yes, already thought about a similar solution, but I would like to
avoid any custom feedback handlings. I like the way wicket does.
The only custom requierment I have is, just showing 1 message.
I think the problem I is more related to the across requests issue in
combination with ajax
Store messages somewhere else? And on constructor check if there are any
and add them to the page?
On Tue, May 5, 2015 at 11:49 AM, Patrick Davids
patrick.dav...@nubologic.com wrote:
Hi all,
I have have a quite complicated feedback message case here.
Could someone help me, please...
We
Hi,
sometimes one doesn't see the obvious things,
I simply had to add a lastName.clearInput(); in the
onUpdate method and everything works as expected.
I hope that helps anybody having the same problem :-)
Best Regards
Daniela
Hi,
I am trying to implement a Feedback for every Form Component and
Perhaps you aren't overriding onError(AjaxRequestTarget) ? Add the
feedback panel in there.
On Fri, Dec 2, 2011 at 12:22 AM, Squash james.stewart...@gmail.com wrote:
I am using a SecureAjaxButton to do some business functionality. This
function throws an exception which I catch and then set
The feeback panel is being added to the AjaxTargetRequest as I can see it in
the ajax debug window. The problem is that it is empty.
I already have the onError method overriden for the button. I forgot to
mention that in the previous post.
@Override
protected void
https://issues.apache.org/jira/browse/WICKET-2705 ?!
On Fri, Dec 2, 2011 at 7:12 AM, Squash james.stewart...@gmail.com wrote:
The feeback panel is being added to the AjaxTargetRequest as I can see it in
the ajax debug window. The problem is that it is empty.
I already have the onError method
:Re: Feedback messages with parameter substitution
Folks,
I found the solution from the thread Using getString with
parameters
http://apache-wicket.1842946.n4.nabble.com/Usage-of-getString-with-parameters-model-td1875254.html
.
And this is what I did in the properties file
Folks,
I found the solution from the thread Using getString with
parametershttp://apache-wicket.1842946.n4.nabble.com/Usage-of-getString-with-parameters-model-td1875254.html
.
And this is what I did in the properties file..
premessage.fileAlreadyUploaded=The file ${0} is already uploaded/pre
I found I needed to use form.error(message) in the onSubmit method.
luther.baker wrote:
I'm not at a computer to try this ... but I do this all the time so it
definitely works like you're hoping.
You've posted alot of code so its a bit difficult to trace what is
commented
out and what
Or you just implement (override) the onError(...) method of your
AjaxSubmitLink()... there you can 'refresh' your feedbackpanel by adding it
to the ajaxRequestTarget
(It's on the todo list to make it abstract, so you have to implement it,
just like the onSubmit(...)
On Fri, Dec 18, 2009 at
Thanks for ur help, Marco... :)
GBU.
On Mon, Nov 30, 2009 at 6:04 PM, Marco Mancini marcoman...@gmail.comwrote:
Hi,
Usualy i use this code:
feedBackPanel.getFeedbackMessagesModel().setObject(null);
target.addComponent(feedBackPanel);
but i don't know if is it the right solution
^_^
Hi,
Usualy I use this code:
feedbackPanel.getFeedbackMessagesModel().setObject(null);
but i don't know if is it the right solution.
^_^
Marco
2009/11/30 Gw not4spamm...@gmail.com
Hi all,
Anybody knows how to prevent feedback messages from being cleaned up when
an
Ajax Link
Hi,
Usualy i use this code:
feedBackPanel.getFeedbackMessagesModel().setObject(null);
target.addComponent(feedBackPanel);
but i don't know if is it the right solution
^_^
Marco
2009/11/30 Gw not4spamm...@gmail.com
Hi all,
Anybody knows how to prevent feedback messages from being
Well, if you combine putting inputPwd=Password in your property file and
putting
label for=pwdwicket:message key=inputPwdthis text here will be
replaced by your propertyfile value/wicket:message/label
in you markup, I thing you'll get what you'r looking for.
//Swanthe
Tomás Rossi wrote:
Have you tried something like this in your page.java :
pwd.setLabel(new ModelString(Password));
?
2009/10/7 Tomás Rossi tro...@mecon.gov.ar
Hi,
lets say you have this in you html form:
--
...
label for=pwdPassword/label
input type=password id=pwd wicket:id=inputPwd/
...
Yeah, it worked, thanks.
Nonetheless, it'd be madness if I had to do that with every component of
the system. Is this the only way? Couldn't this be done in a more
automatic fashion, like for example, extracting it from the html label
content which is associated to the input?
Olivier
Nonetheless, it'd be madness
no, this is spartaaa!
form components search property files for their labels without you
having to explicitly set a model.
-igor
if I had to do that with every component of the
system. Is this the only way? Couldn't this be done in a more automatic
fashion,
try putting inputPwd = Password in your property file.
-Matej
On Wed, Oct 7, 2009 at 5:33 PM, Tomás Rossi tro...@mecon.gov.ar wrote:
Hi,
lets say you have this in you html form:
--
...
label for=pwdPassword/label
input type=password id=pwd wicket:id=inputPwd/
...
--
Yeah, we'd need 300 programmers for that task ;)
So you have to specify the label for each component in a property file?
And then you'd have a property file for each markup that contains a
form? Mmhh...
Igor Vaynberg escribió:
Nonetheless, it'd be madness
no, this is spartaaa!
form
Wicket is Sparta?
http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg17023.html
On Wed, Oct 7, 2009 at 3:05 PM, Tomás Rossi tro...@mecon.gov.ar wrote:
Yeah, we'd need 300 programmers for that task ;)
So you have to specify the label for each component in a property file? And
Ok, that's a little nicer, but still... It'd be better if the label
could be deduced from the markup itself. Yet, no big deal.
Thanks
Matej Knopp escribió:
try putting inputPwd = Password in your property file.
-Matej
On Wed, Oct 7, 2009 at 5:33 PM, Tomás Rossi tro...@mecon.gov.ar wrote:
Feedbacks should be processed in prepareRender method which should be
called on Ajax requests as well. If it isn't it would be a bug.
-Matej
On Mon, Aug 3, 2009 at 11:59 AM, Martin
Makundimartin.maku...@koodaripalvelut.com wrote:
Hi!
In normal requests feedbackmessages are processed like
Is it possible they are not ajax-processed at all if they are not
visible in some earlier stage (=if there are no messages when
isvisible is checked...??)?
**
Martin
2009/8/3 Matej Knopp matej.kn...@gmail.com:
Feedbacks should be processed in prepareRender method which should be
called on Ajax
I added a jira issue with a possible fix suggestion:
https://issues.apache.org/jira/browse/WICKET-2411
**
Martin
2009/8/3 Martin Makundi martin.maku...@koodaripalvelut.com:
Is it possible they are not ajax-processed at all if they are not
visible in some earlier stage (=if there are no
You did not call target.addComponent for the feedbackpanel or any of its
parents.
Regards,
Erik.
jpalmer1...@mchsi.com schreef:
I am using an AjaxSubmitLink to submit form data. Using this, however,
is preventing feedback messages from being displayed.
My code is as follows:
public
I called target.addComponent for the feedbackpanel but still no luck. My
updated code is as follows:
final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink(verifyPinLink) {
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
I think you need to override
final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink(verifyPinLink) {
|*onError
http://wicket.sourceforge.net/apidocs/wicket/ajax/markup/html/form/AjaxSubmitLink.html#onError%28wicket.ajax.AjaxRequestTarget,%20wicket.markup.html.form.Form%29*(AjaxRequestTarget
Actually, validation messages are now getting displayed for validation
performed on components but I am still unable to get error messages that I
have added to be displayed. For example, in the following code, I need a way
to display the line No PIN found for PIN but I am not sure how to do that.
I'm not at a computer to try this ... but I do this all the time so it
definitely works like you're hoping.
You've posted alot of code so its a bit difficult to trace what is commented
out and what is not ... but starting with your original post, uncomment the
following:
final
Hi,
I believe you want to display the feedback message in TestPage. If so,
do something like this:
1. make sure you have feedback panel added on the page where you will be
landing after redirect.
2. Then you can get hold of the feedback panel in the current page like
shown below:
FeedbackPanel
I tried to follow your suggestions, but it is still not displaying messages
in the panel.
nanotech wrote:
I believe you want to display the feedback message in TestPage.
Yes, that's correct. TestPage extends BaseTemplate, which contains this:
BaseTemplate.java:
MessagePanel messagePanel
If you want to show messages on another page you need to use session
feedback messages (getSession().info)
-Matej
On Mon, Aug 11, 2008 at 9:47 PM, insom [EMAIL PROTECTED] wrote:
I have a submit button that adds a message to my FeedbackPanel, like so:
if (isTestPassed()) {
...
} else
If you want to show messages on another page you need to use session
feedback messages (getSession().info)
-Matej
On Mon, Aug 11, 2008 at 9:47 PM, insom [EMAIL PROTECTED] wrote:
I have a submit button that adds a message to my FeedbackPanel, like so:
if (isTestPassed()) {
...
} else
That solved it. I'm surprised -- considering that the original
getSession().getFeedbackMessages() showed the message, I had assumed that it
was being attached to the session. I guess I still have a lot to learn :)
Thanks for your help.
Matej Knopp-2 wrote:
If you want to show messages on
hello i am upgrading from wicket 1.2.6 to 1.3 rc1, and feedback messaging is
not showing up with setResponse page.
i am doing
Page userPage = getUserPage();
//1.2.6 version code which was fine
// userPage.getFeedbackMessage().info(userPage, getUser().getDescription() +
Saved);
//now i changed
On Nov 16, 2007 11:36 AM, narup [EMAIL PROTECTED] wrote:
hello i am upgrading from wicket 1.2.6 to 1.3 rc1, and feedback messaging is
not showing up with setResponse page.
i am doing
Page userPage = getUserPage();
//1.2.6 version code which was fine
//
getsession().info/error/warn will work across pages
-igor
On 10/5/07, dkarnows [EMAIL PROTECTED] wrote:
Greetings,
I've noticed when I do:
info(blah blah blah);
setResponsePage(...);
that whether or not the feedback displays seems to be dependent on which
version of
40 matches
Mail list logo