[jira] Created: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
Add Autocompleter to text field in form created using Form Widget
-----------------------------------------------------------------

                 Key: OFBIZ-1048
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
             Project: OFBiz (The Open for Business Project)
          Issue Type: Improvement
          Components: framework
            Reporter: Anil K Patel
            Priority: Trivial


Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anil K Patel updated OFBIZ-1048:
--------------------------------

    Attachment: AjaxAutocompleteInFormWidgetField.patch

This patch is not meant to go into trunk but Give it a try for Ideas on how we can add Autocompleter to fields when form is developed using Form Widget.

Included js files are MIT License so we should be ok.

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anil K Patel updated OFBIZ-1048:
--------------------------------

    Attachment: screenshot-1.jpg

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500554 ]

Tim Ruppert commented on OFBIZ-1048:
------------------------------------

Very, very cool Anil.  Isn't this something that people would like to use?

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500555 ]

Anil K Patel commented on OFBIZ-1048:
-------------------------------------

Did I forget to mention that we don't have to modify forms file. Its what they call Unobtrusive scripting. If Javascript is not loaded or supported, forms work like conventional Ofbiz forms.

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500557 ]

Chris Howe commented on OFBIZ-1048:
-----------------------------------

Good job, Anil!

With the various ways of implementing this and the various controls one may want to have over the async stuff, it seems that there should be some additional elements and attributes regarding this kind of control in the form definition.

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500559 ]

Anil K Patel commented on OFBIZ-1048:
-------------------------------------

True, At least having Id attribute on form fields will make life lot easy.


> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Pankaj Lall
Hi

When ever I'm typing http://localhost:8080/ecommerce/control/main I'm
getting this error "

(Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh
: Method Invocation ProductPromoWorker.getStoreProductPromos)))) (Error
rendering screen [component://ecommerce/widget/CommonScreens.xml#rightbar]:
*org.ofbiz.base.util.GeneralException*: Error rendering screen
[component://ecommerce/widget/CartScreens.xml#minipromotext]: *
org.ofbiz.base.util.GeneralException*: Error running BSH script at location
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh]:
*org.ofbiz.base.util.GeneralException*: Error running BSH script at
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh],
line [30]: Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh
: Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 :
in file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh
: ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher ,
request )
"
What should I do to get rid of this error message.

With Regards
Pankaj Lall



On 6/1/07, Anil K Patel (JIRA) <[hidden email]> wrote:

>
>
>    [
> https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500559]
>
> Anil K Patel commented on OFBIZ-1048:
> -------------------------------------
>
> True, At least having Id attribute on form fields will make life lot easy.
>
>
> > Add Autocompleter to text field in form created using Form Widget
> > -----------------------------------------------------------------
> >
> >                 Key: OFBIZ-1048
> >                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
> >             Project: OFBiz (The Open for Business Project)
> >          Issue Type: Improvement
> >          Components: framework
> >            Reporter: Anil K Patel
> >            Priority: Trivial
> >         Attachments: AjaxAutocompleteInFormWidgetField.patch,
> screenshot-1.jpg
> >
> >
> > Been trying to add Autocompleter to Text fields in a Form created using
> form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547433 ]

Jacques Le Roux commented on OFBIZ-1048:
----------------------------------------

This could be a tremendous enhancement for end-user. Why not use it, what does it need more ? Id attribute on form fields ?

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547436 ]

Anil K Patel commented on OFBIZ-1048:
-------------------------------------

Yes, there is lot of code that I had to write to work around it.

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1048) Add Autocompleter to text field in form created using Form Widget

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908310#action_12908310 ]

Jacques Le Roux commented on OFBIZ-1048:
----------------------------------------

This works now for some time in lookups. I think it should be easy to use on text field as well... Else shold we close?

> Add Autocompleter to text field in form created using Form Widget
> -----------------------------------------------------------------
>
>                 Key: OFBIZ-1048
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1048
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Anil K Patel
>            Priority: Trivial
>         Attachments: AjaxAutocompleteInFormWidgetField.patch, screenshot-1.jpg
>
>
> Been trying to add Autocompleter to Text fields in a Form created using form Widget. Finally with Prototype, scriptaculous, lowpro made it possible.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.