I am developing a project using jsf and primefaces. i need one help that is in using primefaces datatable i want to scroll down each row using up and down arrow keys and also need to check the checkbox using key function.
Is there any options for using keyboard keys and i have used one functionality with delete key and it worked by using hotkey tag I had tried using hotkey bind function with up and down key but it doesn't work
I think there is no feature for arrow keys used in the data table may be you can try for example in image swap in primefaces example. This may help you to carry on ur problem.
Related
I have just started using ngx-formly and added some dynamic controls to a page. I was wondering if there is a way to add sorting and searching functionality on a table dynamically created using angular ngx-formly? Something like the screenshot.
Perhaps a setting to be put into templateOptions inside the FormlyFieldConfig ?- or adding a wrapper? Would appreciate some suggestions.
I have the current code to get a list of item using a picklist in Primefaces:
<p:pickList showSourceFilter="true" showTargetFilter="true" filterMatchMode="contains" label="#{msg.dataview_label_net}" id="pickListNet" converter="firstItemConverter" value="#{dataViewBean.net}" var="node" itemLabel="#{item.name}" itemValue="#{item}" />
But, I have an issue with performance at the Google Chrome to show this list.
My backend is fast, but, to show all item in Primefaces there is a long time to render. Is it possible using some pagination in a picklist or some like lazy load?
I have around 3000 items in my list. I tried a js fix to improve in here:
https://code.google.com/p/primefaces/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20TargetVersion%20Reporter%20Owner%20Summary&groupby=&sort=&id=7655
but it's not working good for me.
The best solution for this issue is try another component like a DataTable.
I used a DataTable with a multiple checkbox and a lazy scroll to show only a partial list. My time to load reduce from 1min15s to 15s.
No, sorry this is not supported in the versions of PrimeFaces at this time of writing (5.1/5.2-SNAPSHOT). As could have been found out by lookin at the PrimeFaces documentation
i'm using primeng and i've faced the problem of pagination, i bring data from API, by 20 elements each call, the solution was to get the list element UL of the source by className and check if scroll is in the limit, if yes i make a new call of the api with page+1 and concatenate the data
iam new to mysqlworkbench. i am using the latest 6.1 version of it. While iam designing model(EER diagram) i created a table and tried to insert some default data to it in the bottom inserts tab of the respective table.
now when i try to close the bottom tab i get a pop up for saying to apply the changes, but i cant find the apply button anywhere on the GUI , Please help where is the apply button so that i can apply
There's an apply button on the toolbar:
I want to know, is it possible to write such plugin for ST2?
Idea: plugin handles special key (e.g. Ctrl+F1)-- after this key press, plugin handles arrows keys special way: it reacts to all 4 arrows and draws "frame" characters in editor.
So on Right key it draws into text "-" char, on Up key it draws into text "|" char (at needed position), etc.
After pressing special key again, arrows work deactivated (arrows work as usual).
Inserting is easy.
I doubt that plugin can handle simple arrows (after pressing special key).
Or is it possible, with what API?
I believe https://github.com/KonTrax/MultiBind will do what you want.
Edit
In short, the plugin sets some setting that defines state. See MultibindToggleCommand to see how this is done. It then uses a context entry to use run the appropriate key binding. For that see MultibindListener While not completely documented, the example demonstrates how to set a state and use w, a, s, and d for different key bindings. You would do something similar with up, down, left, and right for your key bindings. I'm not sure why you want to start a plugin from scratch, when the one I posted does what you want. You can investigate the plugin code to see how it interacts with the sublime API. You would bind to the arrow keys like you would any other key binding in Sublime Text.
I have this problem, in a form I have a list of customers that could be more than 300 and, for me, it isn't very simple find over there because I should scroll all results for find a single row!
On the old technology I had a button that opened a pop up where I should research which customer I should select and than I used a javascript for recording the selection on the first form, but It could be a good solution with new technology!
How can I resolve this doubt? What is the best solution for big <select> tag?
You basically want an autocomplete dropdown list. This does not exist in the standard JSF component set and it is also not exactly trivial to implement with JavaScript/jQuery on top of the standard JSF component set because the available values have to be present in the server side's state. You also basically want a dropdown list which is represented by a <div><input><ul><li> instead of a <select><option> because a normal <select> doesn't allow the enduser to type text in. The standard JSF component set does not have a component which renders the desired HTML markup. You'd basically need to create a custom JSF component.
There are 3rd party JSF component libraries which already offer a fullworthy JSF autocomplete dropdown list. It would be easier to use either of them instead of reinventing the wheel by a custom JSF component. Take your pick:
PrimeFaces - the <p:autoComplete> component
RichFaces - the <rich:autocomplete> component
OpenFaces - the <o:suggestionField> component
ICEfaces - the <ice:selectInputText> component
you can try jquery ajax autocomplete
Refer to:
http://docs.jquery.com/Plugins/Autocomplete
http://jqueryui.com/demos/autocomplete/
Yes, the jQuery autocomplete plugin is the best solution for you while you have a large number of items.
By the way, imagine that you would like to select an item with specific letters. While you are using drop down lists, you can point to your wanted items by typing their names from the first letter of each one. But using jQuery autocomplete, you can search a string or a group of letters in everywhere. it does not matter if are your inserted letters located at the first of your item names or in other places.
As ShantanuD said, you can find this plugin in http://jqueryui.com/demos/autocomplete/