You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "::SammyRulez::" <sa...@gmail.com> on 2006/03/29 12:27:43 UTC

ajax form

Hi all

I'm contemplating the possibility to write an ajax form component that
instead of posting data to the action url calls a javascript to
execute the work.

I'dont want to reinvent the wheel so I started looking at myfaces
implementation of hform but I can't find a good extension point to add
stuff to the onSubmit attribute..

Any suggestions?

thanks


--
::SammyRulez::
http://www.kyub.com/blojsom/

Re: ajax form

Posted by Travis Reeder <tr...@gmail.com>.
Glad to hear it worked in Facelets no problem, here's the quickly thrown
together docs on it:
http://wiki.apache.org/myfaces/HtmlCommandButtonAjax

Take a look at the inputAjax.jsp in the sandbox examples for how to use all
the other ajax form components, I'm not sure what you mean be "ajax text",
but there is InputTextAjax that will submit on edit or with it's own
personal button.
http://wiki.apache.org/myfaces/InputTextAjax

Travis

On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
>
> yo... I made HtmlCommandButtonAjax working.... with facelets! I think
> that with ajax text would accomplish the task!
>
> 2006/3/29, ::SammyRulez:: <sa...@gmail.com>:
> > what do you mean from a different url?
> >
> > my original intention is  to have a non-page-refreashing form
> >
> > 2006/3/29, Enrique Medina <e....@gmail.com>:
> > > Hi,
> > >
> > > I'm currently using Ajaxanywhere in my applications, and it's pretty
> cool.
> > > However, the nature of JSF doesn't allow me to use it when the portion
> to be
> > > ajax-refreshed is from a different URL. I have to do some
> investigations
> > > using the FormAction component in the Sandbox, nut in the meantime,
> would
> > > your ajax-form solve this issue?
> > >
> > >
> > > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > > it is not in the latest sandbox relese... I'm building it from the
> > > > subversion with some pain... I admit.. .;-)
> > > >
> > > > 2006/3/29, Gerald Müllan <bi...@gmail.com>:
> > > > > Heared yes, but never looked at it..
> > > > >
> > > > > From the impressions i get about it due to discussions on the
> list, it
> > > > > may be too generic and consequently doesn`t meet all of our
> > > > > requirements for special ajax components (in particular for dojo
> based
> > > > > stuff).
> > > > >
> > > > > Is this ajax-form stuff from travis the thing you can use?
> > > > >
> > > > > cheers,
> > > > >
> > > > > Gerald
> > > > >
> > > > > On 3/29/06, ::SammyRulez:: < sammyrulez@gmail.com> wrote:
> > > > > > Thanks... I'm also finding ajaxanywhere very usefull.... never
> looked
> > > at it?
> > > > > >
> > > > > > 2006/3/29, Gerald Müllan <bierbrauen@gmail.com >:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I know that travis played around with a form post through
> ajax, the
> > > > > > > stuff was committed a few days ago.
> > > > > > >
> > > > > > > Have a look at the HtmlCommandButtonAjax component in the
> sandbox
> > > (inputAjax).
> > > > > > >
> > > > > > > There was also a discussion on the dev list recently, topic
> "Ajax
> > > form".
> > > > > > >
> > > > > > > If you only mean doing an ajax request after triggering a
> javascript
> > > > > > > event, you should use the conveniences of a js framework like
> dojo
> > > and
> > > > > > > handle the request/response in your components specific js
> code.
> > > > > > >
> > > > > > > cheers,
> > > > > > >
> > > > > > > Gerald
> > > > > > >
> > > > > > > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > > > > > > Hi all
> > > > > > > >
> > > > > > > > I'm contemplating the possibility to write an ajax form
> component
> > > that
> > > > > > > > instead of posting data to the action url calls a javascript
> to
> > > > > > > > execute the work.
> > > > > > > >
> > > > > > > > I'dont want to reinvent the wheel so I started looking at
> myfaces
> > > > > > > > implementation of hform but I can't find a good extension
> point to
> > > add
> > > > > > > > stuff to the onSubmit attribute..
> > > > > > > >
> > > > > > > > Any suggestions?
> > > > > > > >
> > > > > > > > thanks
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > ::SammyRulez::
> > > > > > > > http://www.kyub.com/blojsom/
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Gerald Müllan
> > > > > > > Schelleingasse 2/11
> > > > > > > 1040 Vienna, Austria
> > > > > > > 0043 699 11772506
> > > > > > > Bierbrauen@gmail.com
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > ::SammyRulez::
> > > > > > http://www.kyub.com/blojsom/
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Gerald Müllan
> > > > > Schelleingasse 2/11
> > > > > 1040 Vienna, Austria
> > > > > 0043 699 11772506
> > > > > Bierbrauen@gmail.com
> > > > >
> > > >
> > > >
> > > > --
> > > > ::SammyRulez::
> > > > http://www.kyub.com/blojsom/
> > > >
> > >
> > >
> >
> >
> > --
> > ::SammyRulez::
> > http://www.kyub.com/blojsom/
> >
>
>
> --
> ::SammyRulez::
> http://www.kyub.com/blojsom/
>

Re: ajax form

Posted by "::SammyRulez::" <sa...@gmail.com>.
yo... I made HtmlCommandButtonAjax working.... with facelets! I think
that with ajax text would accomplish the task!

2006/3/29, ::SammyRulez:: <sa...@gmail.com>:
> what do you mean from a different url?
>
> my original intention is  to have a non-page-refreashing form
>
> 2006/3/29, Enrique Medina <e....@gmail.com>:
> > Hi,
> >
> > I'm currently using Ajaxanywhere in my applications, and it's pretty cool.
> > However, the nature of JSF doesn't allow me to use it when the portion to be
> > ajax-refreshed is from a different URL. I have to do some investigations
> > using the FormAction component in the Sandbox, nut in the meantime, would
> > your ajax-form solve this issue?
> >
> >
> > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > it is not in the latest sandbox relese... I'm building it from the
> > > subversion with some pain... I admit.. .;-)
> > >
> > > 2006/3/29, Gerald Müllan <bi...@gmail.com>:
> > > > Heared yes, but never looked at it..
> > > >
> > > > From the impressions i get about it due to discussions on the list, it
> > > > may be too generic and consequently doesn`t meet all of our
> > > > requirements for special ajax components (in particular for dojo based
> > > > stuff).
> > > >
> > > > Is this ajax-form stuff from travis the thing you can use?
> > > >
> > > > cheers,
> > > >
> > > > Gerald
> > > >
> > > > On 3/29/06, ::SammyRulez:: < sammyrulez@gmail.com> wrote:
> > > > > Thanks... I'm also finding ajaxanywhere very usefull.... never looked
> > at it?
> > > > >
> > > > > 2006/3/29, Gerald Müllan <bierbrauen@gmail.com >:
> > > > > > Hi,
> > > > > >
> > > > > > I know that travis played around with a form post through ajax, the
> > > > > > stuff was committed a few days ago.
> > > > > >
> > > > > > Have a look at the HtmlCommandButtonAjax component in the sandbox
> > (inputAjax).
> > > > > >
> > > > > > There was also a discussion on the dev list recently, topic "Ajax
> > form".
> > > > > >
> > > > > > If you only mean doing an ajax request after triggering a javascript
> > > > > > event, you should use the conveniences of a js framework like dojo
> > and
> > > > > > handle the request/response in your components specific js code.
> > > > > >
> > > > > > cheers,
> > > > > >
> > > > > > Gerald
> > > > > >
> > > > > > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > > > > > Hi all
> > > > > > >
> > > > > > > I'm contemplating the possibility to write an ajax form component
> > that
> > > > > > > instead of posting data to the action url calls a javascript to
> > > > > > > execute the work.
> > > > > > >
> > > > > > > I'dont want to reinvent the wheel so I started looking at myfaces
> > > > > > > implementation of hform but I can't find a good extension point to
> > add
> > > > > > > stuff to the onSubmit attribute..
> > > > > > >
> > > > > > > Any suggestions?
> > > > > > >
> > > > > > > thanks
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > ::SammyRulez::
> > > > > > > http://www.kyub.com/blojsom/
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Gerald Müllan
> > > > > > Schelleingasse 2/11
> > > > > > 1040 Vienna, Austria
> > > > > > 0043 699 11772506
> > > > > > Bierbrauen@gmail.com
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ::SammyRulez::
> > > > > http://www.kyub.com/blojsom/
> > > > >
> > > >
> > > >
> > > > --
> > > > Gerald Müllan
> > > > Schelleingasse 2/11
> > > > 1040 Vienna, Austria
> > > > 0043 699 11772506
> > > > Bierbrauen@gmail.com
> > > >
> > >
> > >
> > > --
> > > ::SammyRulez::
> > > http://www.kyub.com/blojsom/
> > >
> >
> >
>
>
> --
> ::SammyRulez::
> http://www.kyub.com/blojsom/
>


--
::SammyRulez::
http://www.kyub.com/blojsom/

Re: ajax form

Posted by "::SammyRulez::" <sa...@gmail.com>.
what do you mean from a different url?

my original intention is  to have a non-page-refreashing form

2006/3/29, Enrique Medina <e....@gmail.com>:
> Hi,
>
> I'm currently using Ajaxanywhere in my applications, and it's pretty cool.
> However, the nature of JSF doesn't allow me to use it when the portion to be
> ajax-refreshed is from a different URL. I have to do some investigations
> using the FormAction component in the Sandbox, nut in the meantime, would
> your ajax-form solve this issue?
>
>
> On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > it is not in the latest sandbox relese... I'm building it from the
> > subversion with some pain... I admit.. .;-)
> >
> > 2006/3/29, Gerald Müllan <bi...@gmail.com>:
> > > Heared yes, but never looked at it..
> > >
> > > From the impressions i get about it due to discussions on the list, it
> > > may be too generic and consequently doesn`t meet all of our
> > > requirements for special ajax components (in particular for dojo based
> > > stuff).
> > >
> > > Is this ajax-form stuff from travis the thing you can use?
> > >
> > > cheers,
> > >
> > > Gerald
> > >
> > > On 3/29/06, ::SammyRulez:: < sammyrulez@gmail.com> wrote:
> > > > Thanks... I'm also finding ajaxanywhere very usefull.... never looked
> at it?
> > > >
> > > > 2006/3/29, Gerald Müllan <bierbrauen@gmail.com >:
> > > > > Hi,
> > > > >
> > > > > I know that travis played around with a form post through ajax, the
> > > > > stuff was committed a few days ago.
> > > > >
> > > > > Have a look at the HtmlCommandButtonAjax component in the sandbox
> (inputAjax).
> > > > >
> > > > > There was also a discussion on the dev list recently, topic "Ajax
> form".
> > > > >
> > > > > If you only mean doing an ajax request after triggering a javascript
> > > > > event, you should use the conveniences of a js framework like dojo
> and
> > > > > handle the request/response in your components specific js code.
> > > > >
> > > > > cheers,
> > > > >
> > > > > Gerald
> > > > >
> > > > > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > > > > Hi all
> > > > > >
> > > > > > I'm contemplating the possibility to write an ajax form component
> that
> > > > > > instead of posting data to the action url calls a javascript to
> > > > > > execute the work.
> > > > > >
> > > > > > I'dont want to reinvent the wheel so I started looking at myfaces
> > > > > > implementation of hform but I can't find a good extension point to
> add
> > > > > > stuff to the onSubmit attribute..
> > > > > >
> > > > > > Any suggestions?
> > > > > >
> > > > > > thanks
> > > > > >
> > > > > >
> > > > > > --
> > > > > > ::SammyRulez::
> > > > > > http://www.kyub.com/blojsom/
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Gerald Müllan
> > > > > Schelleingasse 2/11
> > > > > 1040 Vienna, Austria
> > > > > 0043 699 11772506
> > > > > Bierbrauen@gmail.com
> > > > >
> > > >
> > > >
> > > > --
> > > > ::SammyRulez::
> > > > http://www.kyub.com/blojsom/
> > > >
> > >
> > >
> > > --
> > > Gerald Müllan
> > > Schelleingasse 2/11
> > > 1040 Vienna, Austria
> > > 0043 699 11772506
> > > Bierbrauen@gmail.com
> > >
> >
> >
> > --
> > ::SammyRulez::
> > http://www.kyub.com/blojsom/
> >
>
>


--
::SammyRulez::
http://www.kyub.com/blojsom/

Re: ajax form

Posted by Enrique Medina <e....@gmail.com>.
Hi,

I'm currently using Ajaxanywhere in my applications, and it's pretty cool.
However, the nature of JSF doesn't allow me to use it when the portion to be
ajax-refreshed is from a different URL. I have to do some investigations
using the FormAction component in the Sandbox, nut in the meantime, would
your ajax-form solve this issue?

On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
>
> it is not in the latest sandbox relese... I'm building it from the
> subversion with some pain... I admit.. .;-)
>
> 2006/3/29, Gerald Müllan <bi...@gmail.com>:
> > Heared yes, but never looked at it..
> >
> > From the impressions i get about it due to discussions on the list, it
> > may be too generic and consequently doesn`t meet all of our
> > requirements for special ajax components (in particular for dojo based
> > stuff).
> >
> > Is this ajax-form stuff from travis the thing you can use?
> >
> > cheers,
> >
> > Gerald
> >
> > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > Thanks... I'm also finding ajaxanywhere very usefull.... never looked
> at it?
> > >
> > > 2006/3/29, Gerald Müllan <bi...@gmail.com>:
> > > > Hi,
> > > >
> > > > I know that travis played around with a form post through ajax, the
> > > > stuff was committed a few days ago.
> > > >
> > > > Have a look at the HtmlCommandButtonAjax component in the sandbox
> (inputAjax).
> > > >
> > > > There was also a discussion on the dev list recently, topic "Ajax
> form".
> > > >
> > > > If you only mean doing an ajax request after triggering a javascript
> > > > event, you should use the conveniences of a js framework like dojo
> and
> > > > handle the request/response in your components specific js code.
> > > >
> > > > cheers,
> > > >
> > > > Gerald
> > > >
> > > > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > > > Hi all
> > > > >
> > > > > I'm contemplating the possibility to write an ajax form component
> that
> > > > > instead of posting data to the action url calls a javascript to
> > > > > execute the work.
> > > > >
> > > > > I'dont want to reinvent the wheel so I started looking at myfaces
> > > > > implementation of hform but I can't find a good extension point to
> add
> > > > > stuff to the onSubmit attribute..
> > > > >
> > > > > Any suggestions?
> > > > >
> > > > > thanks
> > > > >
> > > > >
> > > > > --
> > > > > ::SammyRulez::
> > > > > http://www.kyub.com/blojsom/
> > > > >
> > > >
> > > >
> > > > --
> > > > Gerald Müllan
> > > > Schelleingasse 2/11
> > > > 1040 Vienna, Austria
> > > > 0043 699 11772506
> > > > Bierbrauen@gmail.com
> > > >
> > >
> > >
> > > --
> > > ::SammyRulez::
> > > http://www.kyub.com/blojsom/
> > >
> >
> >
> > --
> > Gerald Müllan
> > Schelleingasse 2/11
> > 1040 Vienna, Austria
> > 0043 699 11772506
> > Bierbrauen@gmail.com
> >
>
>
> --
> ::SammyRulez::
> http://www.kyub.com/blojsom/
>

Re: ajax form

Posted by "::SammyRulez::" <sa...@gmail.com>.
it is not in the latest sandbox relese... I'm building it from the
subversion with some pain... I admit.. .;-)

2006/3/29, Gerald Müllan <bi...@gmail.com>:
> Heared yes, but never looked at it..
>
> From the impressions i get about it due to discussions on the list, it
> may be too generic and consequently doesn`t meet all of our
> requirements for special ajax components (in particular for dojo based
> stuff).
>
> Is this ajax-form stuff from travis the thing you can use?
>
> cheers,
>
> Gerald
>
> On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > Thanks... I'm also finding ajaxanywhere very usefull.... never looked at it?
> >
> > 2006/3/29, Gerald Müllan <bi...@gmail.com>:
> > > Hi,
> > >
> > > I know that travis played around with a form post through ajax, the
> > > stuff was committed a few days ago.
> > >
> > > Have a look at the HtmlCommandButtonAjax component in the sandbox (inputAjax).
> > >
> > > There was also a discussion on the dev list recently, topic "Ajax form".
> > >
> > > If you only mean doing an ajax request after triggering a javascript
> > > event, you should use the conveniences of a js framework like dojo and
> > > handle the request/response in your components specific js code.
> > >
> > > cheers,
> > >
> > > Gerald
> > >
> > > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > > Hi all
> > > >
> > > > I'm contemplating the possibility to write an ajax form component that
> > > > instead of posting data to the action url calls a javascript to
> > > > execute the work.
> > > >
> > > > I'dont want to reinvent the wheel so I started looking at myfaces
> > > > implementation of hform but I can't find a good extension point to add
> > > > stuff to the onSubmit attribute..
> > > >
> > > > Any suggestions?
> > > >
> > > > thanks
> > > >
> > > >
> > > > --
> > > > ::SammyRulez::
> > > > http://www.kyub.com/blojsom/
> > > >
> > >
> > >
> > > --
> > > Gerald Müllan
> > > Schelleingasse 2/11
> > > 1040 Vienna, Austria
> > > 0043 699 11772506
> > > Bierbrauen@gmail.com
> > >
> >
> >
> > --
> > ::SammyRulez::
> > http://www.kyub.com/blojsom/
> >
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> Bierbrauen@gmail.com
>


--
::SammyRulez::
http://www.kyub.com/blojsom/

eject & reject

Posted by Mikolaj <jo...@o2.pl>.
-- 
Ten list zosta³ przeskanowany przez program ArcaMail
Silnik (2006-01-25/2006-03-28)
This message has been scanned by ArcaMail
Engine (2006-01-25/2006-03-28)
http://www.mks.com.pl

Re: ajax form

Posted by Gerald Müllan <bi...@gmail.com>.
Heared yes, but never looked at it..

>From the impressions i get about it due to discussions on the list, it
may be too generic and consequently doesn`t meet all of our
requirements for special ajax components (in particular for dojo based
stuff).

Is this ajax-form stuff from travis the thing you can use?

cheers,

Gerald

On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> Thanks... I'm also finding ajaxanywhere very usefull.... never looked at it?
>
> 2006/3/29, Gerald Müllan <bi...@gmail.com>:
> > Hi,
> >
> > I know that travis played around with a form post through ajax, the
> > stuff was committed a few days ago.
> >
> > Have a look at the HtmlCommandButtonAjax component in the sandbox (inputAjax).
> >
> > There was also a discussion on the dev list recently, topic "Ajax form".
> >
> > If you only mean doing an ajax request after triggering a javascript
> > event, you should use the conveniences of a js framework like dojo and
> > handle the request/response in your components specific js code.
> >
> > cheers,
> >
> > Gerald
> >
> > On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > > Hi all
> > >
> > > I'm contemplating the possibility to write an ajax form component that
> > > instead of posting data to the action url calls a javascript to
> > > execute the work.
> > >
> > > I'dont want to reinvent the wheel so I started looking at myfaces
> > > implementation of hform but I can't find a good extension point to add
> > > stuff to the onSubmit attribute..
> > >
> > > Any suggestions?
> > >
> > > thanks
> > >
> > >
> > > --
> > > ::SammyRulez::
> > > http://www.kyub.com/blojsom/
> > >
> >
> >
> > --
> > Gerald Müllan
> > Schelleingasse 2/11
> > 1040 Vienna, Austria
> > 0043 699 11772506
> > Bierbrauen@gmail.com
> >
>
>
> --
> ::SammyRulez::
> http://www.kyub.com/blojsom/
>


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
Bierbrauen@gmail.com

Re: ajax form

Posted by "::SammyRulez::" <sa...@gmail.com>.
Thanks... I'm also finding ajaxanywhere very usefull.... never looked at it?

2006/3/29, Gerald Müllan <bi...@gmail.com>:
> Hi,
>
> I know that travis played around with a form post through ajax, the
> stuff was committed a few days ago.
>
> Have a look at the HtmlCommandButtonAjax component in the sandbox (inputAjax).
>
> There was also a discussion on the dev list recently, topic "Ajax form".
>
> If you only mean doing an ajax request after triggering a javascript
> event, you should use the conveniences of a js framework like dojo and
> handle the request/response in your components specific js code.
>
> cheers,
>
> Gerald
>
> On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> > Hi all
> >
> > I'm contemplating the possibility to write an ajax form component that
> > instead of posting data to the action url calls a javascript to
> > execute the work.
> >
> > I'dont want to reinvent the wheel so I started looking at myfaces
> > implementation of hform but I can't find a good extension point to add
> > stuff to the onSubmit attribute..
> >
> > Any suggestions?
> >
> > thanks
> >
> >
> > --
> > ::SammyRulez::
> > http://www.kyub.com/blojsom/
> >
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> Bierbrauen@gmail.com
>


--
::SammyRulez::
http://www.kyub.com/blojsom/

Re: ajax form

Posted by Gerald Müllan <bi...@gmail.com>.
Hi,

I know that travis played around with a form post through ajax, the
stuff was committed a few days ago.

Have a look at the HtmlCommandButtonAjax component in the sandbox (inputAjax).

There was also a discussion on the dev list recently, topic "Ajax form".

If you only mean doing an ajax request after triggering a javascript
event, you should use the conveniences of a js framework like dojo and
handle the request/response in your components specific js code.

cheers,

Gerald

On 3/29/06, ::SammyRulez:: <sa...@gmail.com> wrote:
> Hi all
>
> I'm contemplating the possibility to write an ajax form component that
> instead of posting data to the action url calls a javascript to
> execute the work.
>
> I'dont want to reinvent the wheel so I started looking at myfaces
> implementation of hform but I can't find a good extension point to add
> stuff to the onSubmit attribute..
>
> Any suggestions?
>
> thanks
>
>
> --
> ::SammyRulez::
> http://www.kyub.com/blojsom/
>


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
Bierbrauen@gmail.com