is there anyway to use PrimeFaces terminal to show a stream of text? Something like if I want it to behave like Unix "tail -f " command that will show+refresh string data as it comes.
If it is not possible, any other recommendations on how to achieve this in an JSF2 page?
Thanks,
Ignacio
No there is not. That is not what the terminal is for. Just use PrimeFaces push to append text to some div at each update. Look at the PrimeFaces Push showcase of the 'chat' example
Related
I'm creating Ionic 4 plus Angular app, in that i'm using ion-select dropdown for country.now i want to add country flags icons in front of country name.below code shows what i'm try.
<ion-select class="dropdownselection" placeholder="PROVINCIA" interface="popover">
<ion-select-option value="A Coruña">
<ion-icon src="/assets/icons/man.svg"></ion-icon> A Coruña
</ion-select-option>
<ion-select-option value="Álava">Álava</ion-select-option>
<ion-select-option value="Albacete">Albacete</ion-select-option>
<ion-select-option value="red">D</ion-select-option>
</ion-select>
I know in Ionic 3 there wasn't a a reliable way to add icons. I'm not sure about Ionic 4, but I use this plugin and its great.
Here is an example.
Another huge benefit of this plugin is you can search tons of data asynchronously.
Old, but if someone's needing, you can use country flag emoji's unicode (you can find a list here).
Make sure you're using UTF-8 as meta charset.
Then, copy/paste the emoji in, by example, an object (between quotes) :
Finally, use the property in your template {{ myObject.flagIcon }}.
Example from my app :
I have implemented a select2 multiselect for list of states in a application, and it works fine using typing the state names. But with Dragon NaturallySpeaking software if you speak in select2 to select a state, it only show the last char of what you spoke and do not autosearch, you have to press space to see the whole text and then press backspace to start the search, looks like some event does not fire when you speak than type. Not sure if there is any solution that I can try. I have tried to fire the change event manually.. but not working !
Since the select2 box is not Select and Say, you probably need to dictate into the dictation box and transfer it over. Or, write a script to take in the dictation, convert it to what you need, and then paste it to clipboard. Then go over to box and paste from clipboard. Let us know what worked . . .
I have added a check if the selected element class is select2-search__field then I trigger a $(activeElement).trigger('change') in that element. that seems doing the job
I'm using hubot with the hubot-slack adapter.
I have a very long url that I'd like to write to the chatroom, and would like to display it as a link.
From this:
http://magnum-ci.oak.domain.com:8080/job/nick_test_success_build/44/console
To this:
Click here to view the console out
I'm using:
res.send "http://magnum-ci.oak.domain.com:8080/job/nick_test_success_build/44/console|link"
I haven't tried this recently with Hubot, but note that it doesn't work as a user.
Slack's docs make it look like you can use "labels" to display friendly URL names. See the last example on this page https://api.slack.com/docs/unfurling
You may be able to send the text
<http://mylink.com|Show this>
in a message and get the desired results.
I tried this a long time ago and don't remember if it worked.
#mshish is right, <http://mylink.com|Show this> should be the way to go.
You can test the output of your link using the Message Builder.
Unfortunately it looks like this is not currently supported by the hubot.
https://github.com/slackhq/hubot-slack/issues/114
Im using orbeon 4.10 to collect data and fill back a PDF from a template. I would like to choose how the time is displayed on the pdf. I have seen the oxf.xforms.format.input.time and oxf.xforms.format.output.time properties, but they seem to only control the form itself.
I have also seen this, but it seems to relate to the date format.
What value do I need to change in my properties?
Thanks
UPDATE: I don't think my solution below actually works. I think this might have worked at some point but might not work anymore. We do have an RFE for this.
You can use the following property:
<property
as="xs:string"
name="oxf.fr.resource.$app.$form.$lang.print.formats.time"
value="[H01]:[m01]:[s01]]"/>
where:
$app is the app name
$form is the form name
$lang is the language which applies
You can use wildcards (*) for all of those.
As a workaround i used a Hidden field to format my time correctly for the pdf.
Here is the formating code :format-time($controlname, '[H01]:[m01]') that i used in the calculated value
Here is the visibility code : $fr-mode = 'email' for the pdf generated from email or $fr-mode = 'pdf' for pdf button.
I want to use vim to edit restructured tex and see the result in the firefox. I found this posting http://www.zopyx.com/blog/editing-restructuredtext-with-vim which shows the way. It works but every time it opens a new instance of firefox. I want it to open only one instance of it not several tabs of it.
Here is the code:
:com RP :exec "Vst html" | w! /tmp/test.html | :q | !firefox /tmp/test.html
Could you help me to change the above code to achieve what I want.
thanks,
Ahmet
Enter about-config in the address bar and write newwindow in the Filter bar.
Set the browser.link.open_newwindow value to 1.
Now Firefox will open /tmp/test.html in the last visited tab.