Re: Sending Data via Javascript and AJAX

2013-03-07 Thread Hans Lesmeister 2
https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html



-
-- 
Regards, 
Hans 

http://cantaa.de 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sending-Data-via-Javascript-and-AJAX-tp4657008p4657065.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
Great, do you know of any good examples using wicketAjaxPost?



On Wed, Mar 6, 2013 at 9:35 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> On Wed, Mar 6, 2013 at 6:18 PM, Nick Mudge  wrote:
>
> > Looks like the problem with AjaxEditableLabel is that it sends data to
> the
> > server through a URL. The data I need to send to the server is a lot of
> > data and won't fit in a URL.
> > Is there another source code example that I could look at that can send a
> > lot of data to the server via AJAX?
> >
> > Here's is what I need to do:
> > I have a web page with a Save button on it. When the user presses the
> Save
> > button I want to execute some javascript which generates a large string
> > value and then I want the value to be sent to the server where I store
> the
> > value in a database. Then I want a label to appear on the webpage that
> says
> > the data has been saved. The string value contains a lot of data and so
> the
> > value cannot be put in a URL.
> >
> >
> The following might work.
>
> 1-Put data in a hidden field.
> 2-Use wicketAjaxPost() to stream back this value to server side.
>
>
> > I am using Wicket 1.4.
> >
> > Thanks
> > Nick
> >
> >
> >
> >
> > On Wed, Mar 6, 2013 at 9:09 AM, Nick Mudge  wrote:
> >
> > > I see, Martin wanted me to look at the source code of
> AjaxEditableLabel.
> > >  I didn't know that.
> > > I understand now. Thank you.
> > >
> > >
> > > On Wed, Mar 6, 2013 at 9:01 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > >> Hi,
> > >>
> > >> On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge  wrote:
> > >>
> > >> > Hi,
> > >> > Where is the example?
> > >> >
> > >> >
> > >> AjaxEditableLabel source code?
> > >>
> > >>
> > >> > Nick
> > >> >
> > >> >
> > >> > On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov <
> mgrigo...@apache.org
> > >> > >wrote:
> > >> >
> > >> > > On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge 
> > wrote:
> > >> > >
> > >> > > > Hi,
> > >> > > > Why would I look at the AjaxEditableLabel? According to the
> > javadoc
> > >> for
> > >> > > it,
> > >> > > >
> > >> > >
> > >> > > To see an example how this is done there.
> > >> > >
> > >> > >
> > >> > > > it is for: "An implementation of ajaxified edit-in-place
> component
> > >> > using
> > >> > > a
> > >> > > > TextField as it's editor."
> > >> > > > I am not doing that.
> > >> > > >
> > >> > > > What I need is a Save button that executes some javascript to
> > >> calculate
> > >> > > > some data that is then sent the server via AJAX.  Then I need to
> > >> > update a
> > >> > > > label on the webpage saying that the data has been saved.
> > >> > > >
> > >> > > > How can I do this?
> > >> > > >
> > >> > > > Thanks
> > >> > > > Nick
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov <
> > >> mgrigo...@apache.org
> > >> > > > >wrote:
> > >> > > >
> > >> > > > > Hi,
> > >> > > > >
> > >> > > > > Take a look at AjaxEditableLabel, it sends a parameter named
> > >> "save".
> > >> > > > > This is improved a lot in Wicket 6.
> > >> > > > >
> > >> > > > >
> > >> > > > > On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge 
> > >> wrote:
> > >> > > > >
> > >> > > > > > I could not find an example that show's how to do what I
> want
> > to
> > >> > do.
> > >> > > > > >
> > >> > > > > > I have a web page with a Save button on it. When the user
> > >> presses
> > >> > the
> > >> > > > > Save
> > >> > > > > > button I want to execute some javascript which calculates a
> > >> value
> > >> > and
> > >> > > > > then
> > >> > > > > > I want the value to be sent to the server where I store the
> > >> value
> > >> > in
> > >> > > a
> > >> > > > > > database. Then I want a label to appear on the webpage that
> > says
> > >> > the
> > >> > > > data
> > >> > > > > > has been saved.
> > >> > > > > >
> > >> > > > > > I am new to Wicket and I am using Wicket 1.4. How should I
> do
> > >> this?
> > >> > > Is
> > >> > > > > > there an example of something like this?
> > >> > > > > >
> > >> > > > > > Thanks
> > >> > > > > > Nick Mudge
> > >> > > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > > --
> > >> > > > > Martin Grigorov
> > >> > > > > jWeekend
> > >> > > > > Training, Consulting, Development
> > >> > > > > http://jWeekend.com 
> > >> > > > >
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> > > --
> > >> > > Martin Grigorov
> > >> > > jWeekend
> > >> > > Training, Consulting, Development
> > >> > > http://jWeekend.com 
> > >> > >
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> Regards - Ernesto Reinaldo Barreiro
> > >> Antilia Soft
> > >> http://antiliasoft.com/ 
> > >>
> > >
> > >
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Ernesto Reinaldo Barreiro
Hi,

On Wed, Mar 6, 2013 at 6:18 PM, Nick Mudge  wrote:

> Looks like the problem with AjaxEditableLabel is that it sends data to the
> server through a URL. The data I need to send to the server is a lot of
> data and won't fit in a URL.
> Is there another source code example that I could look at that can send a
> lot of data to the server via AJAX?
>
> Here's is what I need to do:
> I have a web page with a Save button on it. When the user presses the Save
> button I want to execute some javascript which generates a large string
> value and then I want the value to be sent to the server where I store the
> value in a database. Then I want a label to appear on the webpage that says
> the data has been saved. The string value contains a lot of data and so the
> value cannot be put in a URL.
>
>
The following might work.

1-Put data in a hidden field.
2-Use wicketAjaxPost() to stream back this value to server side.


> I am using Wicket 1.4.
>
> Thanks
> Nick
>
>
>
>
> On Wed, Mar 6, 2013 at 9:09 AM, Nick Mudge  wrote:
>
> > I see, Martin wanted me to look at the source code of AjaxEditableLabel.
> >  I didn't know that.
> > I understand now. Thank you.
> >
> >
> > On Wed, Mar 6, 2013 at 9:01 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge  wrote:
> >>
> >> > Hi,
> >> > Where is the example?
> >> >
> >> >
> >> AjaxEditableLabel source code?
> >>
> >>
> >> > Nick
> >> >
> >> >
> >> > On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov  >> > >wrote:
> >> >
> >> > > On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge 
> wrote:
> >> > >
> >> > > > Hi,
> >> > > > Why would I look at the AjaxEditableLabel? According to the
> javadoc
> >> for
> >> > > it,
> >> > > >
> >> > >
> >> > > To see an example how this is done there.
> >> > >
> >> > >
> >> > > > it is for: "An implementation of ajaxified edit-in-place component
> >> > using
> >> > > a
> >> > > > TextField as it's editor."
> >> > > > I am not doing that.
> >> > > >
> >> > > > What I need is a Save button that executes some javascript to
> >> calculate
> >> > > > some data that is then sent the server via AJAX.  Then I need to
> >> > update a
> >> > > > label on the webpage saying that the data has been saved.
> >> > > >
> >> > > > How can I do this?
> >> > > >
> >> > > > Thanks
> >> > > > Nick
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov <
> >> mgrigo...@apache.org
> >> > > > >wrote:
> >> > > >
> >> > > > > Hi,
> >> > > > >
> >> > > > > Take a look at AjaxEditableLabel, it sends a parameter named
> >> "save".
> >> > > > > This is improved a lot in Wicket 6.
> >> > > > >
> >> > > > >
> >> > > > > On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge 
> >> wrote:
> >> > > > >
> >> > > > > > I could not find an example that show's how to do what I want
> to
> >> > do.
> >> > > > > >
> >> > > > > > I have a web page with a Save button on it. When the user
> >> presses
> >> > the
> >> > > > > Save
> >> > > > > > button I want to execute some javascript which calculates a
> >> value
> >> > and
> >> > > > > then
> >> > > > > > I want the value to be sent to the server where I store the
> >> value
> >> > in
> >> > > a
> >> > > > > > database. Then I want a label to appear on the webpage that
> says
> >> > the
> >> > > > data
> >> > > > > > has been saved.
> >> > > > > >
> >> > > > > > I am new to Wicket and I am using Wicket 1.4. How should I do
> >> this?
> >> > > Is
> >> > > > > > there an example of something like this?
> >> > > > > >
> >> > > > > > Thanks
> >> > > > > > Nick Mudge
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > --
> >> > > > > Martin Grigorov
> >> > > > > jWeekend
> >> > > > > Training, Consulting, Development
> >> > > > > http://jWeekend.com 
> >> > > > >
> >> > > >
> >> > >
> >> > >
> >> > >
> >> > > --
> >> > > Martin Grigorov
> >> > > jWeekend
> >> > > Training, Consulting, Development
> >> > > http://jWeekend.com 
> >> > >
> >> >
> >>
> >>
> >>
> >> --
> >> Regards - Ernesto Reinaldo Barreiro
> >> Antilia Soft
> >> http://antiliasoft.com/ 
> >>
> >
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
Looks like the problem with AjaxEditableLabel is that it sends data to the
server through a URL. The data I need to send to the server is a lot of
data and won't fit in a URL.
Is there another source code example that I could look at that can send a
lot of data to the server via AJAX?

Here's is what I need to do:
I have a web page with a Save button on it. When the user presses the Save
button I want to execute some javascript which generates a large string
value and then I want the value to be sent to the server where I store the
value in a database. Then I want a label to appear on the webpage that says
the data has been saved. The string value contains a lot of data and so the
value cannot be put in a URL.

I am using Wicket 1.4.

Thanks
Nick




On Wed, Mar 6, 2013 at 9:09 AM, Nick Mudge  wrote:

> I see, Martin wanted me to look at the source code of AjaxEditableLabel.
>  I didn't know that.
> I understand now. Thank you.
>
>
> On Wed, Mar 6, 2013 at 9:01 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
>> Hi,
>>
>> On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge  wrote:
>>
>> > Hi,
>> > Where is the example?
>> >
>> >
>> AjaxEditableLabel source code?
>>
>>
>> > Nick
>> >
>> >
>> > On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov > > >wrote:
>> >
>> > > On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge  wrote:
>> > >
>> > > > Hi,
>> > > > Why would I look at the AjaxEditableLabel? According to the javadoc
>> for
>> > > it,
>> > > >
>> > >
>> > > To see an example how this is done there.
>> > >
>> > >
>> > > > it is for: "An implementation of ajaxified edit-in-place component
>> > using
>> > > a
>> > > > TextField as it's editor."
>> > > > I am not doing that.
>> > > >
>> > > > What I need is a Save button that executes some javascript to
>> calculate
>> > > > some data that is then sent the server via AJAX.  Then I need to
>> > update a
>> > > > label on the webpage saying that the data has been saved.
>> > > >
>> > > > How can I do this?
>> > > >
>> > > > Thanks
>> > > > Nick
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov <
>> mgrigo...@apache.org
>> > > > >wrote:
>> > > >
>> > > > > Hi,
>> > > > >
>> > > > > Take a look at AjaxEditableLabel, it sends a parameter named
>> "save".
>> > > > > This is improved a lot in Wicket 6.
>> > > > >
>> > > > >
>> > > > > On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge 
>> wrote:
>> > > > >
>> > > > > > I could not find an example that show's how to do what I want to
>> > do.
>> > > > > >
>> > > > > > I have a web page with a Save button on it. When the user
>> presses
>> > the
>> > > > > Save
>> > > > > > button I want to execute some javascript which calculates a
>> value
>> > and
>> > > > > then
>> > > > > > I want the value to be sent to the server where I store the
>> value
>> > in
>> > > a
>> > > > > > database. Then I want a label to appear on the webpage that says
>> > the
>> > > > data
>> > > > > > has been saved.
>> > > > > >
>> > > > > > I am new to Wicket and I am using Wicket 1.4. How should I do
>> this?
>> > > Is
>> > > > > > there an example of something like this?
>> > > > > >
>> > > > > > Thanks
>> > > > > > Nick Mudge
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Martin Grigorov
>> > > > > jWeekend
>> > > > > Training, Consulting, Development
>> > > > > http://jWeekend.com 
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Martin Grigorov
>> > > jWeekend
>> > > Training, Consulting, Development
>> > > http://jWeekend.com 
>> > >
>> >
>>
>>
>>
>> --
>> Regards - Ernesto Reinaldo Barreiro
>> Antilia Soft
>> http://antiliasoft.com/ 
>>
>
>


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
I see, Martin wanted me to look at the source code of AjaxEditableLabel.  I
didn't know that.
I understand now. Thank you.


On Wed, Mar 6, 2013 at 9:01 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge  wrote:
>
> > Hi,
> > Where is the example?
> >
> >
> AjaxEditableLabel source code?
>
>
> > Nick
> >
> >
> > On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov  > >wrote:
> >
> > > On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge  wrote:
> > >
> > > > Hi,
> > > > Why would I look at the AjaxEditableLabel? According to the javadoc
> for
> > > it,
> > > >
> > >
> > > To see an example how this is done there.
> > >
> > >
> > > > it is for: "An implementation of ajaxified edit-in-place component
> > using
> > > a
> > > > TextField as it's editor."
> > > > I am not doing that.
> > > >
> > > > What I need is a Save button that executes some javascript to
> calculate
> > > > some data that is then sent the server via AJAX.  Then I need to
> > update a
> > > > label on the webpage saying that the data has been saved.
> > > >
> > > > How can I do this?
> > > >
> > > > Thanks
> > > > Nick
> > > >
> > > >
> > > >
> > > >
> > > > On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov <
> mgrigo...@apache.org
> > > > >wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Take a look at AjaxEditableLabel, it sends a parameter named
> "save".
> > > > > This is improved a lot in Wicket 6.
> > > > >
> > > > >
> > > > > On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge 
> wrote:
> > > > >
> > > > > > I could not find an example that show's how to do what I want to
> > do.
> > > > > >
> > > > > > I have a web page with a Save button on it. When the user presses
> > the
> > > > > Save
> > > > > > button I want to execute some javascript which calculates a value
> > and
> > > > > then
> > > > > > I want the value to be sent to the server where I store the value
> > in
> > > a
> > > > > > database. Then I want a label to appear on the webpage that says
> > the
> > > > data
> > > > > > has been saved.
> > > > > >
> > > > > > I am new to Wicket and I am using Wicket 1.4. How should I do
> this?
> > > Is
> > > > > > there an example of something like this?
> > > > > >
> > > > > > Thanks
> > > > > > Nick Mudge
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Martin Grigorov
> > > > > jWeekend
> > > > > Training, Consulting, Development
> > > > > http://jWeekend.com 
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jWeekend
> > > Training, Consulting, Development
> > > http://jWeekend.com 
> > >
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Ernesto Reinaldo Barreiro
Hi,

On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge  wrote:

> Hi,
> Where is the example?
>
>
AjaxEditableLabel source code?


> Nick
>
>
> On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov  >wrote:
>
> > On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge  wrote:
> >
> > > Hi,
> > > Why would I look at the AjaxEditableLabel? According to the javadoc for
> > it,
> > >
> >
> > To see an example how this is done there.
> >
> >
> > > it is for: "An implementation of ajaxified edit-in-place component
> using
> > a
> > > TextField as it's editor."
> > > I am not doing that.
> > >
> > > What I need is a Save button that executes some javascript to calculate
> > > some data that is then sent the server via AJAX.  Then I need to
> update a
> > > label on the webpage saying that the data has been saved.
> > >
> > > How can I do this?
> > >
> > > Thanks
> > > Nick
> > >
> > >
> > >
> > >
> > > On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov  > > >wrote:
> > >
> > > > Hi,
> > > >
> > > > Take a look at AjaxEditableLabel, it sends a parameter named "save".
> > > > This is improved a lot in Wicket 6.
> > > >
> > > >
> > > > On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge  wrote:
> > > >
> > > > > I could not find an example that show's how to do what I want to
> do.
> > > > >
> > > > > I have a web page with a Save button on it. When the user presses
> the
> > > > Save
> > > > > button I want to execute some javascript which calculates a value
> and
> > > > then
> > > > > I want the value to be sent to the server where I store the value
> in
> > a
> > > > > database. Then I want a label to appear on the webpage that says
> the
> > > data
> > > > > has been saved.
> > > > >
> > > > > I am new to Wicket and I am using Wicket 1.4. How should I do this?
> > Is
> > > > > there an example of something like this?
> > > > >
> > > > > Thanks
> > > > > Nick Mudge
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Martin Grigorov
> > > > jWeekend
> > > > Training, Consulting, Development
> > > > http://jWeekend.com 
> > > >
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
Hi,
Where is the example?

Nick


On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov wrote:

> On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge  wrote:
>
> > Hi,
> > Why would I look at the AjaxEditableLabel? According to the javadoc for
> it,
> >
>
> To see an example how this is done there.
>
>
> > it is for: "An implementation of ajaxified edit-in-place component using
> a
> > TextField as it's editor."
> > I am not doing that.
> >
> > What I need is a Save button that executes some javascript to calculate
> > some data that is then sent the server via AJAX.  Then I need to update a
> > label on the webpage saying that the data has been saved.
> >
> > How can I do this?
> >
> > Thanks
> > Nick
> >
> >
> >
> >
> > On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov  > >wrote:
> >
> > > Hi,
> > >
> > > Take a look at AjaxEditableLabel, it sends a parameter named "save".
> > > This is improved a lot in Wicket 6.
> > >
> > >
> > > On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge  wrote:
> > >
> > > > I could not find an example that show's how to do what I want to do.
> > > >
> > > > I have a web page with a Save button on it. When the user presses the
> > > Save
> > > > button I want to execute some javascript which calculates a value and
> > > then
> > > > I want the value to be sent to the server where I store the value in
> a
> > > > database. Then I want a label to appear on the webpage that says the
> > data
> > > > has been saved.
> > > >
> > > > I am new to Wicket and I am using Wicket 1.4. How should I do this?
> Is
> > > > there an example of something like this?
> > > >
> > > > Thanks
> > > > Nick Mudge
> > > >
> > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jWeekend
> > > Training, Consulting, Development
> > > http://jWeekend.com 
> > >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Martin Grigorov
On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge  wrote:

> Hi,
> Why would I look at the AjaxEditableLabel? According to the javadoc for it,
>

To see an example how this is done there.


> it is for: "An implementation of ajaxified edit-in-place component using a
> TextField as it's editor."
> I am not doing that.
>
> What I need is a Save button that executes some javascript to calculate
> some data that is then sent the server via AJAX.  Then I need to update a
> label on the webpage saying that the data has been saved.
>
> How can I do this?
>
> Thanks
> Nick
>
>
>
>
> On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov  >wrote:
>
> > Hi,
> >
> > Take a look at AjaxEditableLabel, it sends a parameter named "save".
> > This is improved a lot in Wicket 6.
> >
> >
> > On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge  wrote:
> >
> > > I could not find an example that show's how to do what I want to do.
> > >
> > > I have a web page with a Save button on it. When the user presses the
> > Save
> > > button I want to execute some javascript which calculates a value and
> > then
> > > I want the value to be sent to the server where I store the value in a
> > > database. Then I want a label to appear on the webpage that says the
> data
> > > has been saved.
> > >
> > > I am new to Wicket and I am using Wicket 1.4. How should I do this? Is
> > > there an example of something like this?
> > >
> > > Thanks
> > > Nick Mudge
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Nick Mudge
Hi,
Why would I look at the AjaxEditableLabel? According to the javadoc for it,
it is for: "An implementation of ajaxified edit-in-place component using a
TextField as it's editor."
I am not doing that.

What I need is a Save button that executes some javascript to calculate
some data that is then sent the server via AJAX.  Then I need to update a
label on the webpage saying that the data has been saved.

How can I do this?

Thanks
Nick




On Wed, Mar 6, 2013 at 12:34 AM, Martin Grigorov wrote:

> Hi,
>
> Take a look at AjaxEditableLabel, it sends a parameter named "save".
> This is improved a lot in Wicket 6.
>
>
> On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge  wrote:
>
> > I could not find an example that show's how to do what I want to do.
> >
> > I have a web page with a Save button on it. When the user presses the
> Save
> > button I want to execute some javascript which calculates a value and
> then
> > I want the value to be sent to the server where I store the value in a
> > database. Then I want a label to appear on the webpage that says the data
> > has been saved.
> >
> > I am new to Wicket and I am using Wicket 1.4. How should I do this? Is
> > there an example of something like this?
> >
> > Thanks
> > Nick Mudge
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>


Re: Sending Data via Javascript and AJAX

2013-03-06 Thread Martin Grigorov
Hi,

Take a look at AjaxEditableLabel, it sends a parameter named "save".
This is improved a lot in Wicket 6.


On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge  wrote:

> I could not find an example that show's how to do what I want to do.
>
> I have a web page with a Save button on it. When the user presses the Save
> button I want to execute some javascript which calculates a value and then
> I want the value to be sent to the server where I store the value in a
> database. Then I want a label to appear on the webpage that says the data
> has been saved.
>
> I am new to Wicket and I am using Wicket 1.4. How should I do this? Is
> there an example of something like this?
>
> Thanks
> Nick Mudge
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


Sending Data via Javascript and AJAX

2013-03-05 Thread Nick Mudge
I could not find an example that show's how to do what I want to do.

I have a web page with a Save button on it. When the user presses the Save
button I want to execute some javascript which calculates a value and then
I want the value to be sent to the server where I store the value in a
database. Then I want a label to appear on the webpage that says the data
has been saved.

I am new to Wicket and I am using Wicket 1.4. How should I do this? Is
there an example of something like this?

Thanks
Nick Mudge