http://www.wicket-library.com/wicket-examples/ajax/links.0
2010/7/24 Gustavo Henrique :
> Hi!
> How to put a loading cursor in ajaxsubmitlink?
>
> thanks!
>
-
To unsubscribe, e-mail: users-unsubscr...@wicket
Hi!
How to put a loading cursor in ajaxsubmitlink?
thanks!
old tread because I ran into this issue again.
> Last time I changed my code to use a regular link to submit the form, but
> this time the form is on a modal window and has to be submitted with
> AjaxSubmitLink.
>
> My current findings are identical to the ones describes in my previous
I'd like to resurrect this old tread because I ran into this issue again.
Last time I changed my code to use a regular link to submit the form, but
this time the form is on a modal window and has to be submitted with
AjaxSubmitLink.
My current findings are identical to the ones describes
emy Thomerson
>
> > This appears to be an issue in the documentation of the AjaxSubmitLink.
> I
> > just checked and the documentation is still the same in 1.4. I will try
> to
> > verify this and fix it tomorrow. In the meantime, it would be helpful if
> > you opened
ssing something.
I'm just glad to contribute improving this great framework, even though it's
on a lesser thing like this.
Cheers,
Xavier
2010/4/16 Jeremy Thomerson
> This appears to be an issue in the documentation of the AjaxSubmitLink. I
> just checked and the documentation is
This appears to be an issue in the documentation of the AjaxSubmitLink. I
just checked and the documentation is still the same in 1.4. I will try to
verify this and fix it tomorrow. In the meantime, it would be helpful if
you opened a JIRA issue to keep track of this (post the link back to this
Hi,
I'm a liitle confused about AjaxSubmitLink's JavaDoc, and the code inside
it... I'm using Wicket 1.3.6:
If/when javascript is turned off in the browser, or it doesn't support
> javascript, then the
> browser will not respond to the onclick event, using the href directly.
> Wicket will then us
il/InvokeClientSideFormSubmitHandlerDecorator.java
> >
> > This AjaxCallDecorator will invoke the form's onsubmit handler prior
> > to invoking the ajax call.
> >
> > So you can:
> >
> > add(new AjaxSubmitLink("blah&
ajax call.
>
> So you can:
>
> add(new AjaxSubmitLink("blah") {
> �...@override
> protected IAjaxCallDecorator getAjaxCallDecorator() {
> return new InvokeClientSideFormSubmitHandlerDecorator(MyForm.this);
> }
> });
>
> And have any ajax
/visural/wicket/util/InvokeClientSideFormSubmitHandlerDecorator.java
This AjaxCallDecorator will invoke the form's onsubmit handler prior
to invoking the ajax call.
So you can:
add(new AjaxSubmitLink("blah") {
@Override
protected IAjaxCallDecorator getAj
= function() {
// do your stuff
return wicketOnClick();
};
Is this expected behavior I wonder, or a bug?
>
> SubmitLink will call the 's onsubmit='???' handler,
> AjaxSubmitLink does not.
>
>
AFAIK AjaxSubmitLink doesn't fire the submit
Hi Anantha,
Did you get a resolution to this issue? I have the same problem.
Is this expected behavior I wonder, or a bug?
SubmitLink will call the 's onsubmit='???' handler,
AjaxSubmitLink does not.
On 4 January 2010 23:05, Anantha Kumaran wrote:
> hi pieter
>
>
and an explicit id (other than id="id") is required, at least in Wicket
1.3.5.
FakeBoy wrote:
>
> Hi, I GOT IT
> I found the problem. The Problem was in the TextField with wicket id "id".
> When you want to safetly use ajax submit components (AjaxButton,
> A
>>> On Wed, Jan 27, 2010 at 10:15 AM, Wayne Pope
>>> wrote:
>>> > Hello all,
>>> >
>>> > Ok I cannot figure this one out.
>>> > I have a Page that contains a Form with a AjaxSubmitLink:
>>> >
>>> >
k messages across requests then use
>> getsession().info(...)
>>
>> -igor
>>
>> On Wed, Jan 27, 2010 at 10:15 AM, Wayne Pope
>> wrote:
>> > Hello all,
>> >
>> > Ok I cannot figure this one out.
>> >
t; wrote:
> > Hello all,
> >
> > Ok I cannot figure this one out.
> > I have a Page that contains a Form with a AjaxSubmitLink:
> >
> > AjaxSubmitLink submitLink= new AjaxSubmitLink("submitLink") {
> >@Overrid
at 10:15 AM, Wayne Pope
wrote:
> Hello all,
>
> Ok I cannot figure this one out.
> I have a Page that contains a Form with a AjaxSubmitLink:
>
> AjaxSubmitLink submitLink= new AjaxSubmitLink("submitLink") {
> �...@override
>
Pope <
waynemailingli...@googlemail.com> wrote:
> Hello all,
>
> Ok I cannot figure this one out.
> I have a Page that contains a Form with a AjaxSubmitLink:
>
> AjaxSubmitLink submitLink= new AjaxSubmitLink("submitLink") {
>@Overri
Hello all,
Ok I cannot figure this one out.
I have a Page that contains a Form with a AjaxSubmitLink:
AjaxSubmitLink submitLink= new AjaxSubmitLink("submitLink") {
@Override
protected void onSubmit(AjaxRequestTarget target,
hi pieter
my problem is that the AjaxSubmitLink is not behaving like the SubmitLink
which calls the onsubmit before submitting
the form.currently i am using the mousedown(can't use onclick) of the
AjaxSubmitLink to do the validation stuffs but it breaks when the user
submit the form by pre
}
};
On Mon, Jan 4, 2010 at 5:30 AM, Anantha Kumaran wrote:
> is there any way to do this on the client side.I want to do some client
> side
> stuff before submitting the form.
>
> On Sun, Jan 3, 2010 at 9:36 AM, Mathias Nilsson <
> wicket.program...
is there any way to do this on the client side.I want to do some client side
stuff before submitting the form.
On Sun, Jan 3, 2010 at 9:36 AM, Mathias Nilsson wrote:
>
> form.add ( new AjaxSubmitLink(){
>
> protected void onSubmit(AjaxRequestTarget target, Form form){
> // Ad
form.add ( new AjaxSubmitLink(){
protected void onSubmit(AjaxRequestTarget target, Form form){
// Add feedback and do ajax stuff.
}
protected void onError(AjaxRequestTarget target, Form form){
// Add FeedbackPanel here
target.add( feedback );
}});
--
View this message in context
Is it possible to add a onsubmit event to a form that is submitted using
AjaxSubmitLink?
if not so is there any other way to handle validation stuffs..
JSF (http://http://agileskills2.org)
--
View this message in context:
http://old.nabble.com/Re%3A-Testing-AjaxSubmitLink-onSubmit%28%29-with-WicketTester-%40L-tp26947384p26955427.html
Sent from the Wicket - User mailing list archive at Nabble.com.
nium.waitForCondition( javascript>).
>
> -
> --
> Kent Tong
> Better way to unit test Wicket pages (
> http://wicketpagetest.sourceforge.net)
> Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org)
> --
> View this message in context:
> http://old.nabble.com
F, Axis2, Wicket, JSF (http://http://agileskills2.org)
--
View this message in context:
http://old.nabble.com/Re%3A-Testing-AjaxSubmitLink-onSubmit%28%29-with-WicketTester-%40L-tp26947384p26954770.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
3 AM, Kent Tong wrote:
>
>
> alecswan1 wrote:
> >
> > So, how do I test AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form
> > form) method?
> >
>
> You may try using to test it instead.
> It
> supports real AJAX.
>
> -
>
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
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"
I have a page with a form and AjaxSubmitLink in the form.
I call WicketTester#clickLink(pathToLink, true) to test the code in
AjaxSubmitLink#onSubmit(). The call returns with no errors, but
AjaxSubmitLink#onSubmit() is never called.
Here is a code sample:
tester.startPanel(MyPanel.class
ou can output some javascript using the ajaxrequesttarget that does
>> window.open
>>
>> -igor
>>
>> On Fri, Dec 11, 2009 at 12:31 PM, Jeff Andersen
>> wrote:
>> > I need to know how I can post a form to a new window using an
>> AjaxSubmitLink. I have a
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,
ages 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.
>> Any ideas?
>>
>> final AjaxSubmitLink ver
, 2009 at 2:50 PM, Igor Vaynberg wrote:
> you can output some javascript using the ajaxrequesttarget that does
> window.open
>
> -igor
>
> On Fri, Dec 11, 2009 at 12:31 PM, Jeff Andersen
> wrote:
> > I need to know how I can post a form to a new window using an
> AjaxSu
you can output some javascript using the ajaxrequesttarget that does window.open
-igor
On Fri, Dec 11, 2009 at 12:31 PM, Jeff Andersen wrote:
> I need to know how I can post a form to a new window using an AjaxSubmitLink.
> I have a small page where a user can make a few setting chang
I need to know how I can post a form to a new window using an AjaxSubmitLink.
I have a small page where a user can make a few setting changes and then either
save those settings (using an AjaxButton) or preview those settings (using an
AjaxSubmitLink) in a new window. The problem is, I can
t; **
>> Martin
>>
>>>
>>> On Sun, Jul 26, 2009 at 9:15 AM, Martin
>>> Makundi wrote:
>>>> Hi!
>>>>
>>>> AjaxSubmitLink does not work in 1.4-rc7
>>>>
>>>> Anybody know a workaround:
>>>>
sometimes exaggerate, but yes, the
> test does not work.
>
> **
> Martin
>
>>
>> On Sun, Jul 26, 2009 at 9:15 AM, Martin
>> Makundi wrote:
>>> Hi!
>>>
>>> AjaxSubmitLink does not work in 1.4-rc7
>>>
>>> Anybody kn
gt; Makundi wrote:
>> Hi!
>>
>> AjaxSubmitLink does not work in 1.4-rc7
>>
>> Anybody know a workaround: https://issues.apache.org/jira/browse/WICKET-2400
>>
>> ?
>>
>> **
>> Martin
>>
>> ---
the link works just fine, wicket tester doesnt work right.
-igor
On Sun, Jul 26, 2009 at 9:15 AM, Martin
Makundi wrote:
> Hi!
>
> AjaxSubmitLink does not work in 1.4-rc7
>
> Anybody know a workaround: https://issues.apache.org/jira/browse/WICKET-2400
>
&
Hi!
AjaxSubmitLink does not work in 1.4-rc7
Anybody know a workaround: https://issues.apache.org/jira/browse/WICKET-2400
?
**
Martin
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e
at 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.
> Any ideas?
>
> final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink("verifyPinLink")
how to do that.
Any ideas?
final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink("verifyPinLink") {
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
//target.addComponent(feedback);
//
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
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,
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 am using an AjaxSubmitLink to submit form data. Using this, however, is preventing feedback messages from being displayed. My code is as follows:public class InitiateDeclarationPage extends EzdecBaseWebPage { @SpringBean private IDeclarationService declarationService
ess device
-Original Message-
From: sander v F
Sent: Friday, June 19, 2009 2:06 AM
To: users@wicket.apache.org
Subject: Re: AjaxSubmitLink
Like the error says: "Make sure you called component.setOutputMarkupId(true)
on the component whose markup you are trying to update."
That would be t
-
From: jpalmer1...@mchsi.com
Sent: Thursday, June 18, 2009 4:33 PM
To: users@wicket.apache.org
Subject: AjaxSubmitLink
I am trying to use an AjaxSubmitLink to show a panel when a button is clicked.
I am receiving the following error when I try to submit the form:
Wicket.Ajax.Call.processComponent:
to update with ajax. That's why there's the error
"Component with id [[verifyPanelWmc9]] a was not found while trying to
perform markup update"
You should try "setOutputMarkupPlaceholderTag(true)". This will create a
placeholder so the component can be updated with aj
I am trying to use an AjaxSubmitLink to show a panel when a button is clicked. I am receiving the following error when I try to submit the form:Wicket.Ajax.Call.processComponent: Component with id [[verifyPanelWmc9]] a was not found while trying to perform markup update. Make sure you called
Or:
Maarten
On Mon, Apr 20, 2009 at 5:07 PM, Jeremy Thomerson
wrote:
> link = new AjaxSubmitLink();
> link.add(new AttributeModifier("value", true, new
> ResourceModel("speichern.textkey"));
>
> --
> Jeremy Thomerson
> http://www.wickettraining.co
link = new AjaxSubmitLink();
link.add(new AttributeModifier("value", true, new
ResourceModel("speichern.textkey"));
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Apr 20, 2009 at 6:59 AM, Peter Diefenthaeler wrote:
>
> Hi,
> is it possible to l
Try using wicket:message
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
PDiefent wrote:
>
>
> Hi,
> is it possible to localize a AjaxSubmitLink?
> I would like to replace "Speichern" with a localized
Hi,
is it possible to localize a AjaxSubmitLink?
I would like to replace "Speichern" with a localized value from a
properties file ...
HTML:
Java:;
form.add(new AjaxSubmitLink("save") { ... });
Thanx, Peter
ttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
>
>
>
> # Search
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/AjaxSub
gt; # Search
>
>
>
>
>
>
>
>
>
> igor.vaynberg wrote:
>>
>> your example markup does not contain "search" component. it is much
>> better to open a jira issue and attach a quickstart that reproduces
>> the problem.
>>
&g
blem.
>
> -igor
>
> On Tue, Feb 10, 2009 at 6:12 AM, Matt Welch wrote:
>>
>> I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of
>> the
>> link is being executed twice. This is causing havok in our app.
your example markup does not contain "search" component. it is much
better to open a jira issue and attach a quickstart that reproduces
the problem.
-igor
On Tue, Feb 10, 2009 at 6:12 AM, Matt Welch wrote:
>
> I'm stumped. We have an AjaxSubmitLink and when clicked, the o
I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of the
link is being executed twice. This is causing havok in our app. I've
winnowed it down to just the simplest example but I still see this taking
place. I'm not sure how to proceed. Here
ink the onclick has been replaced. So can u pls
> tell me how to add multiple ajax behaviors on the same event.
>
>
>
>
> Timo Rantalaiho wrote:
>>
>> On Wed, 04 Feb 2009, rag...@directi wrote:
>>> I have a AjaxSubmitLink which i only want to use for some va
but the AjaxLink is not
working properly coz i think the onclick has been replaced. So can u pls
tell me how to add multiple ajax behaviors on the same event.
Timo Rantalaiho wrote:
>
> On Wed, 04 Feb 2009, rag...@directi wrote:
>> I have a AjaxSubmitLink which i only want to
On Wed, 04 Feb 2009, rag...@directi wrote:
> I have a AjaxSubmitLink which i only want to use for some validation on some
> fields on the form. I do not want to submit the form if there are NO errors
> by clicking this link. I am using AjaxSubmitLink just to trigger
> validations, Inca
Hi,
I have a AjaxSubmitLink which i only want to use for some validation on some
fields on the form. I do not want to submit the form if there are NO errors
by clicking this link. I am using AjaxSubmitLink just to trigger
validations, Incase there are any error they should be shown when i click
t;>> Hi,
>>>
>>> I have searched theforums for a similar situation but can't seem to find
>>> anything.
>>>
>>> I have a complicated panel that consists of an outer form that contains
>>> 2
>>> inner forms:
>>>
>&g
, Jeremy2009 wrote:
>>
>> Hi,
>>
>> I have searched theforums for a similar situation but can't seem to find
>> anything.
>>
>> I have a complicated panel that consists of an outer form that contains 2
>> inner forms:
>>
>> a) The outer
, 2009 at 3:06 PM, Jeremy2009 wrote:
>
> Hi,
>
> I have searched theforums for a similar situation but can't seem to find
> anything.
>
> I have a complicated panel that consists of an outer form that contains 2
> inner forms:
>
> a) The outer form has an AjaxSubm
Hi,
I have searched theforums for a similar situation but can't seem to find
anything.
I have a complicated panel that consists of an outer form that contains 2
inner forms:
a) The outer form has an AjaxSubmitLink with an onSubmit() that gets fired
as expected.
b) Each inner form has it
Dear all,
For some reason, I have 2 dropdownchoice(year and month) , according to year
and month to decide the filename , then click button to download file.
for the ajaxsubmitLink, my code is below, now once the file is existed, that
mean after running: getRequestCycle().setRequestTarget(new
:38 PM, miata <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I have a problem with submitting form by an AjaxSubmitLink. In fact I try
>> to
>> disabled all field in my form with:
>> field.setEnabled(false);
>> It's work if I use an AjaxLink.clic
Try overriding onError as well and add a feedback panel to your ajax
request target in the onError.
Martijn
On Tue, Nov 18, 2008 at 3:38 PM, miata <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a problem with submitting form by an AjaxSubmitLink. In fact I try to
> disabled
Hi,
I have a problem with submitting form by an AjaxSubmitLink. In fact I try to
disabled all field in my form with:
field.setEnabled(false);
It's work if I use an AjaxLink.click to take effect enabled disabled but
it's doesn't work with AjaxSubmitLink.submit. The submit work a
The image showing the area in which AjaxSubmitLink is shown.
As the number of links are increasing the scroll bar is work automatically
in Fire Fox.
but its not scrolled in Safari.
In Safari link is added but its not showing the current link which is added
at last.
Mohan Thakare wrote:
>
&
ok. I will explain my problem in detail.
I have a WebMarkupContainer in which I showing a DataView.
DataView contains AjaxSubmitLink.
By clicking a specific button on page a new AjaxSubmitLink containing some
data is added to the DataView.
http://www.nabble.com/file/p19310695/untitled.jpg
each
I don't understand what you want to do. Can you explain the situation a
little more? What do you mean by 'it' in "I need to make it work in Safari"?
Mohan Thakare wrote:
>
> you discuss in your problem that
> "The problem is that the "add"
you discuss in your problem that
"The problem is that the "add" link (the AjaxSubmitLink at the bottom of the
diagram) is working fine"
can you tell how is that possible.
how can I scroll my list and set the focus on current item.
Its possible in Fire Fox but not in Safar
Thaks. You are right. I thought I need just add the AjaxSubmitLink to form as a
Button but it must be set as default button.
Best regards
Milan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
form. Then I decided to refactor my
webapp tu use AjaxSubmitLink because I want to use some images and
texts instead of buttons.
This works too, but one thing make me confused. When I was using
buttons I can submit my forms just by pressing the enter key, but
with AjaxSubmitlink this fea
Hi
In my web application I realized form submiting by AjaxButtons. This wokrs
great. I love the possibility to refresh just part of my page after submiting
the form. Then I decided to refactor my webapp tu use AjaxSubmitLink because I
want to use some images and texts instead of buttons
artijn
>
> On Mon, Aug 11, 2008 at 9:57 PM, FakeBoy <[EMAIL PROTECTED]> wrote:
>>
>> Hi, I GOT IT
>> I found the problem. The Problem was in the TextField with wicket id
>> "id".
>> When you want to safetly use ajax submit components (Ajax
etly use ajax submit components (AjaxButton,
> AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket id
> "id", because ajax submit stop work in IE. For example:
> form.add(new TextField("id",...)) -> cause in IE Ajax Submit Problem
>
>
Hi, I GOT IT
I found the problem. The Problem was in the TextField with wicket id "id".
When you want to safetly use ajax submit components (AjaxButton,
AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket id
"id", because ajax submit stop wor
dow with an
> AjaxSubmitLink that submits my form and closes the window and mine worked
> fine. sorry I can't help with a solution but I can tell you that it is
> possible to make work.
>
>
>
> FakeBoy wrote:
>>
>> Hi,
>> I tried to submit form from ModalWindow wit
I just tested my app in IE 7 since I also have a ModalWindow with an
AjaxSubmitLink that submits my form and closes the window and mine worked
fine. sorry I can't help with a solution but I can tell you that it is
possible to make work.
FakeBoy wrote:
>
> Hi,
> I tried to su
Hi,
I tried to submit form from ModalWindow with AjaxButton or AjaxSubmitLink.
In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
No onSubmit or onError method is fired after button or link cliked in IE 7.
I used WICKET DEBUG console and after clik on Button or Link
: [text field] Add
I have implemented the component as a
FormComponentPanel>, with
AjaxLink's to realize the remove links (x) and with an AjaxSubmitLink
for
the Add button.
The remove links work but the Add button's onSubmit() always fails
with a
NullPointerException when it tri
th a
> LoadableDetachableModel)
> | |
> | --> { populateItem {
> AjaxSubmitLink (to "delete" an element. Updates the WebMarkupContainer) } }
> --> AutoCompleteTextField
> |
> --
; --> Form
>> |
>> --> WebMarkupContainer (setOutputMarkupId(true))
>> ||
>> |--> ListView (with a
>> LoadableDetachableModel)
>> | |
>> |
arkupContainer (setOutputMarkupId(true))
> ||
> |--> ListView (with a
> LoadableDetachableModel)
> | |
> | --> { populateItem {
ableModel)
| |
| --> { populateItem {
AjaxSubmitLink (to "delete" an element. Updates the WebMarkupContainer) } }
--> AutoCompleteTextField
|
--> AjaxSubmitLink (to "
ght the book ;)
> >>
> >> It says
> >>
> >> "To use a CompoundPropertyModel, simply set one as the model for a
> >> container, such as a Form or a Page. Create the contained components
> >> with
> >> no model of their own. I
;)
>>
>> It says
>>
>> "To use a CompoundPropertyModel, simply set one as the model for a
>> container, such as a Form or a Page. Create the contained components
>> with
>> no model of their own. Insure that the component identifier names match
>
bought the book ;)
>
> It says
>
> "To use a CompoundPropertyModel, simply set one as the model for a
> container, such as a Form or a Page. Create the contained components with
> no model of their own. Insure that the component identifier names match
> the appropriate
onent identifier names match
the appropriate property names."
The AjaxSubmitLink is picking-up the parent forms compound property model
but only checking to see if the "mylink" property exists when onSubmit
calls getModelObject().
I would like to get the Forms model via getModelObject b
hat takes a model. Should the AjaxSubmitLink(id, form)
> constructor be used with the Form that it's being added to? e..g
>
> MyForm extends Form {
> public MyForm(){
>
> add( new AjaxSubmitLink("mylink",this){
>
> });
> }}
>
>
Thanks Igor but should it not pick-up the model from the Form? There's no
constructor that takes a model. Should the AjaxSubmitLink(id, form)
constructor be used with the Form that it's being added to? e..g
MyForm extends Form {
public MyForm(){
add( new AjaxSubmitLink(&qu
you forgot to give ajaxsubmitlink a model, so getmodelobject() will
either return null or a compound model.confirm - neither of which i
think you want.
-igor
On Mon, Apr 7, 2008 at 1:00 PM, Tim Squires <[EMAIL PROTECTED]> wrote:
> Hi,
>
> When adding an AjaxSubmitLink, the
Hi,
When adding an AjaxSubmitLink, the onSubmit method tries to access a
property of the model object that does not exists:
---
final AjaxSubmitLink confirmLink = new
AjaxSubmitLink("confirm") {
@Override
public void onSu
101 - 200 of 221 matches
Mail list logo