Score:0

Reading text from external file to outputText in an jsf xhtml file

gq flag

I know this is possible because I did it when I was working at Lockheed. It involves keeping out labels in a separate file which makes changes much, much easier. I just cannot remember hot to set up the external file for reading and the syntax for replacing he outputLabel value.

In a separate file outputlabels.txt login.loginid:LoginID: login.password:Password:

At the top of the xhtml file

h:body

  some code to open the xhtml file pointing to outputtext.txt  ot

  <h:outputLabel style="width: 200px" value="{ot.login:loginid"} /> 
  <h:outputLabel style="width: 200px" value="{ot.login:password"} /> 

Something like that. I can find nothing on this in my internet searches. Help?

terdon avatar
cn flag
Please [edit] your question and explain what you need to do. What does java have to do with it? Is this something that has to be done using Java? What do you currently have? What do you want to obtain? I am afraid I just can't understand what you need at all from the question.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.