Questions tagged as 'jsf'

1
answer

How to upload Dynamic Images in JSF?

What is the best strategy for uploading and using images in JSF? I do not want to use blob field in the database, so how do I solve the image storage folder problem, since the .war file is closed.     
asked by 29.01.2014 / 03:56
1
answer

CDI @Inject Named bean in another Named bean

I'm using jsf 2.2. I have 2 @Named beans in @ViewScoped @Named(value = "menuMB") @ViewScoped public class MenuMB implements Serializable{ } @Named(value = "produtoGeralMB") @ViewScoped public class Produt...
asked by 25.02.2014 / 14:09
1
answer

How to take the refresh of the whole page when using the FileUpload component of the firstfaces

I'm using the FileUpload component of primefaces in mode="simple" and it works fine. But when I click the save button on a particular folder, it refreshes the entire page. Can you take it? Below is my XHTML code: <h:form e...
asked by 15.04.2015 / 18:54
2
answers

Save cropped image after upload

I'm trying to save a cropped image after the user uploads the image. The upload works fine and I can save the cropped image too, but something strange is happening. The image is only trimmed and saved if I put the image path directly into the im...
asked by 09.02.2014 / 12:33
3
answers

Call Java application via PHP

I created a Java application here in my company however they want to call this application in Java via a website made in PHP. I would like to know if it is possible for me to make a PHP code that calls a Java application, no matter the form if i...
asked by 09.06.2015 / 15:27
1
answer

Sort dataTable by attribute

On the JSF page, it picks up the managed bean from the list of any objects. public class Ob implements Serializable { private Integer id; private Date data; private String descrição; } I wanted to mount the table more or less li...
asked by 13.07.2015 / 01:38
2
answers

Request parameter accent on JSF page

I have a JSF page that receives as a parameter, in the URL, the error message to be displayed. Ex: http://example.com/application_error.jsf?exception=Não+permitido On the page, the parameter is displayed as follows: #{param['exceptio...
asked by 11.12.2013 / 17:23
1
answer

Redirect to another page only if the user is authenticated

I have a login screen where I authenticate a user, however when I put a action to change the page independently whether the user was authenticated or not the page is opened. My question is to know where I have to check whether the user...
asked by 10.06.2015 / 18:54
1
answer

What is the benefit of Jsf's life cycle?

Personally I see people speaking that one should understand the JSF life cycle. And I wanted to understand what utilities we will have to understand?     
asked by 17.10.2014 / 19:32
2
answers

Generate PDF with Jasper and download without storing it

I'm generating a PDF with Jasper, I'll show you how it's done. I'm saving to disk, storing the path in the database and then downloading. I would like to know how to do so that at the moment I click to generate, it generate and already downlo...
asked by 08.07.2015 / 04:01