ejb « Data « JSF Q&A

1. What would be a correct implemantation of JSF Converter if I need to get an Integer to run a query? (should I use another interface)    stackoverflow.com

HI here's my code: List.xhmtl

<h:selectOneMenu value="#{produtosController.items}">
    <f:selectItems value="#{produtosController.itemsAvailableSelectOne}"/>
<h:commandButton action="#{produtosController.createByCodigos}" value="Buscar" />
My Controller Class with innner Converter implemantation
@ManagedBean (name="produtosController")
public class ProdutosController {

    private Produtos current;

2. Unit test error (JSF): Absent Code attribute in method that is not native or abstract    stackoverflow.com

I get a strange error when Im trying to unit test a Java class dealing with JSF components (javax.faces.model.SelectItem). The error I get is this:

java.lang.ClassFormatError: Absent Code attribute in method that ...

3. Getter / Setter for List    stackoverflow.com

i have one method followed:

public List<Car> getCart(){
 //do something
and in JSF Page i user this method for display Data in h:dataTable and in view (JSF Page) i have one inputText in h:dataTable, ...

4. Trying to use view parameters in @PostConstruct?    stackoverflow.com

I think my question is similar to this but havn't found it to work @ManagedProperty(value = "#{param.id}") in a non-request Scope Bean


5. how to update entity with extra fields?    stackoverflow.com

i need some help to deal with updating an entity with extra fields. I have two entities User and Role that have a OneToMany relationship with a UserRole entity that ...