Questions tagged as 'jsf'

1
answer

Call a method via datatable rows

Given my datatable below: <p:dataTable id="tabela" var="linha" value="#{naturemb.lista}" paginator="true" rows="10" rendered="#{not empty naturemb.lista}" > <p:column styleClass="botoesGrid">...
asked by 14.06.2016 / 00:10
1
answer

Edit datatable record

Next staff: In my datatable when I click the edit button, it is not opening the edit screen. Can someone help me where I'm wrong? page:                                                                                                     ...
asked by 05.06.2016 / 17:23
1
answer

JSF + Primefaces update component when exchanging pagination

<p:dataList paginator="true" value="{bean.lista}" var="lista"> </:dataList> <h:outputText value="qualquerCoisa" id="teste"/> How do I update the outputText 'test' every time the dataList page...
asked by 13.07.2016 / 00:39
2
answers

PrimeFaces JSF - p: commandButton for update and oncomplete

I am trying to make a orderList and am having trouble setting the attributes in the commandButton update and oncomplete tag. I also do not know what their function is, but I know it does not work right if not configured right. Would someone clar...
asked by 04.05.2016 / 13:16
1
answer

How to upload an image of the FTP server through the URL?

I have a JSF application in which the images the user uploads are stored in an FTP directory. The easiest way I found of rendering these images is to put the FTP URL, with username and password in the SRC of the image: <img src="ftp://user:...
asked by 12.04.2016 / 14:24
1
answer

How to do a regular expression to validate JSF password

I need a regular expression to validate password as below: The password must be in the default: ipe @ 1234 (letters, special characters and numbers) I'm using this below, but it does not validate the error: <p:password id="passwordInp...
asked by 12.04.2016 / 15:25
1
answer

Pass user authentication between different contexts

I have three java web (.war) projects with different contexts within the same EAR. I need the user to authenticate in an application and then I traffic this information between the other projects. Searching a little I found some well-designed...
asked by 13.04.2016 / 15:35
1
answer

Internationalization with Enums Labels

Hello, I'm trying to internationalize with labels coming from an enum: public enum WeekDay { MONDAY("msg.week_monday", "mon"), TUESDAY("msg.week_tuesday", "tue"), WEDNESDAY("msg.week_wednesday", "wed"), THURSDAY("msg.week_thursday",...
asked by 30.03.2016 / 19:25
1
answer

Error trying to save record to bank

After completing the form and clicking Save, the following error is occurring: mai 20, 2016 7:14:52 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE: javax.el.PropertyNotFoundException: /web/crud/cadastrar-hab...
asked by 21.05.2016 / 00:20
1
answer

Render component after clicking button

I have a Yes / No button. I would like to click on Yes to render an element below. As the example in my page: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...
asked by 20.05.2016 / 23:24