Questions tagged as 'jsf'

1
answer

How to change getRealPath () save location? Photocam primefaces

I'm trying to use the Photocam component of Primefaces, it's working, but the image is saved within the target of the application. I want to change the rescue location. Here's a snippet of the code. ExternalContext externalContext = FacesCo...
asked by 10.01.2017 / 11:30
1
answer

Target Unreachable, identifier 'users' resolved to null

My bean: package com.cliente.Bean; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import org.omnifaces.util.Messages; import com.sist...
asked by 05.01.2017 / 19:42
1
answer

Parameter is not arriving as null

I'm working on internationalizing my messages and centralizing them. I have the following methods: private static void addMessage(Severity severity, String mensagem, Object...args){ FacesContext context = FacesContext.getCurrentInstanc...
asked by 18.01.2017 / 17:29
1
answer

Show suggestions while typing autocomplete

I have the following autoComplete : <p:autoComplete id="geracao" value="#{habilidademb.habilidade.geracao}" completeMethod="#{habilidademb.listarGeracoes()}" dropdown="true" var="bean" itemLabel="#{bean.nome}" itemValue="...
asked by 30.11.2016 / 23:46
1
answer

What is the difference between actionlistener and action?

What's the difference between actionListener and action ? When to use one or the other? <h:commandButton action="xxxx" actionListener="zzzz" id="teste"/>     
asked by 25.11.2016 / 16:55
1
answer

Problems in project reconfiguration

When I start wildfly I get the following error: 13:56:39,872 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."pokemax.war".INSTALL: org.jboss.msc.service.StartExceptio...
asked by 29.12.2016 / 17:04
1
answer

BigDecimal - set to null by form when input is empty

I have a form (jsf / primefaces) where a value of type BigDecimal , can be submitted without value. In this case, the value of it should be null . However, when set, it will be 0 . There is an argument that is passed to...
asked by 29.10.2016 / 22:46
1
answer

Dynamic query using JPQL

I need to implement a dynamic query logic, in the DB using JPQL, and I have 4 filters:    1 - PROJECT COORDINATOR   2 - SERVICE PROVIDER   3 - DATE START OF THE PROJECT   4 - FINAL DATE OF THE PROJECT Any of the fields can be combined...
asked by 23.12.2016 / 15:01
1
answer

Centralize components

The print below is the confirmation of a record of my datatable, the popup opens when you click the delete record button: Thecodeforthisdialogisasfollows:<p:commandButtonicon="ui-icon-trash" action="#{geracaomb.excluir(linha)}" ajax="true...
asked by 09.11.2016 / 16:23
1
answer

Java Framework for Ecommerce Website Style

Good evening! I would like the opinion of those who are active on the most appropriate framework for developing an E-commerce site using java. I was thinking of JSF 2 + Primefaces but I believe JSF is more geared towards corporate applicat...
asked by 07.10.2016 / 23:08