Questions tagged as 'jsf'

1
answer

Problems with p: selectManyCheckbox using Enum

Good evening, I'm doing a registration page but I came across a problem with p:selectManyCheckbox <p:outputLabel value="Nome" for="nomepa" /> <p:autoComplete id="nomepa" size="40" dropdown="true" value="#{cadastroListaBean....
asked by 18.09.2017 / 03:38
1
answer

How to save a csv using hibernate and mysql [closed]

I need to do the following routine: Read some information from the database; Generate a csv based on this data; Save this csv to the database; Start downloading this file to the user. I was able to do items 1 and 2, generating the f...
asked by 12.07.2017 / 16:00
1
answer

Change commandButton color?

I would like to change the color of a commandButton, actually several, I wanted to leave set "edit", "delete" ... etc My code looks like this. <p:commandButton icon="ui-icon-trash" actionListener="#{MBFabricante.prepararExcluir}" onc...
asked by 08.06.2017 / 03:14
2
answers

Image jsf java

I want to put an image on a JSF page, netbeans, but the page does not display the image. I'm calling the image in my code like this: <h:graphicImage library="resources/imagens" name="LojaRoupas.jpg"/> My project structure looks lik...
asked by 27.04.2017 / 03:34
1
answer

Message is not displayed

Within my form has a autocomplete , when triggering the autocomplete and if the previous field has not been filled I want to trigger a message stating that the previous field must be filled in. I configured but the message is not di...
asked by 03.02.2017 / 14:52
1
answer

JSF + RichFaces - Print HTML in DataTable

Personal I have an HTML code in the database and I need to show it in a DataTable. But when you print instead of redrawing the HTML the browser is displaying the HTML. How do I redeem?     
asked by 16.11.2016 / 19:40
1
answer

Call javascript function not managed bean

I'm using the JSF framework with primefaces 6.0 and as I'm new, I'm having trouble calling a javascript when finalizing a method with a @RequestScoped scope bean. How can I do this? Is there any other way using this scope? I want to call a sc...
asked by 07.09.2016 / 17:14
1
answer

Classes Converter [closed]

I have studied programming in JSF , li that for objects to be transformed into String it takes a Convert to entity. Is there a class ready and we adapt our Entities? How does it work?     
asked by 04.10.2016 / 14:01
1
answer

Make the scroll scroll to the bottom of the page automatically

I'm developing an application where the user asks a question and the server delivers a response, I'm having trouble getting the scroll bar to follow the conversation, so far I'm having the chat history on the screen, but I have you drag with the...
asked by 15.10.2016 / 17:10
1
answer

Call page xhtml by commandButton

I'm implementing the toolbar component of primefaces and inside this component there are several commandButtons that I need when clicking it call another xhtml page of my project. How to do? ex: <p:commandButton type="button" value="Cadastr...
asked by 16.05.2016 / 12:54