I am trying to provide an example from the perffaces website. Using Dialog Framework - Basic
<p:commandButton value="Options" icon="ui-icon-extlink" action="#{dialogBean.viewCarsCustomized}" />
Bean dialogbean
open class DialogBean {
public String viewCarsCustomized() { return "dialog:viewCars?modal=true"; }
}
viewCars.xhtml
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:head> </h:head> <h:body> <p:dataTable var="car" value="#{tableBean.carsSmall}"> <p:column headerText="Model"> <h:outputText value="#{car.model}" /> </p:column> <p:column headerText="Year"> <h:outputText value="#{car.year}" /> </p:column> <p:column headerText="Manufacturer"> <h:outputText value="#{car.manufacturer}" /> </p:column> <p:column headerText="Color"> <h:outputText value="#{car.color}" /> </p:column> </p:dataTable> </h:body> </html>
This is my example in My Bean. I try like this
public String viewComposant(){ return "dialog:AjoutC?modal=true"; }
it does not work, I try to do it like this. but every time a mistake
Unable to delete error message. de vue '/pagess/Parsing/ReacgModule.xhtml' pour l'action '# {parserXls.viewComposant ()}' avec le rรฉsultat 'Dialog: /pagess/pagesComposant/AjoutC.jsf modal = true'.
public String viewComposant(){ return "dialog:/pagess/pagesComposant/AjoutC.jsf?modal=true"; }
But when I like it, the page returns, but not the way I like it
public String viewComposant(){ return "/pagess/pagesComposant/AjoutC.jsf"; }
Adriano_jvma
source share