h:selectBooleanCheckbox in p:wizard always submit false

UI Components for JSF
Post Reply
ibrahim.demir
Posts: 6
Joined: 20 Mar 2009, 14:05

10 Aug 2011, 09:49

Hi,

There is a problem to use booleanCheckbox in p:wizard.
When this form submit, Bean always gets false. If I change from wizard to tabview. It's correctly submited.

My project uses primefaces 3.0.M2 and JSF 2.1.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:ft="http://facestrace.sourceforge.net"
template="/resources/template.xhtml">
<ui:define name="content">

<p:panel header="Kullanıcı Ekle/Değiştir" style="width:600px">

<p:wizard>
<p:tab title="Kullanıcı Bilgileri">
<h:panelGrid columns="2">
<h:outputText value="Kullanıcı" />
<h:inputText value="#{userEdit.user.username}" required="true"
requiredMessage="Kullanıcı adı boş geçilemez..." />
<h:outputText value="Ad" />
<h:inputText value="#{userEdit.user.firstname}" />
<h:outputText value="Soyad" />
<h:inputText value="#{userEdit.user.lastname}" />
<h:outputText value="e-posta" />
<h:inputText value="#{userEdit.user.email}" />
<h:outputText value="Durum" />
<h:panelGroup>
<h:selectBooleanCheckbox value="#{userEdit.user.active}" />
<h:outputText value="Aktif" />
</h:panelGroup>
</h:panelGrid>
</p:tab>
<p:tab title="Yetkilendirme">
<p:pickList value="#{userEdit.roles}" var="role"
itemLabel="#{role.description}" itemValue="#{role}"
converter="role" />
</p:tab>
<p:tab title="Onay Ekranı">
<h:commandButton action="#{userEdit.save}" value="Kaydet"
style="font-size:20px;padding:4px;width:120px" />

<h:panelGrid columns="2" cellpadding="3">

<h:outputText value="Kullanıcı" styleClass="label" />

<h:outputText value="#{userEdit.user.username}" />
<h:outputText value="Ad" />
<h:outputText value="#{userEdit.user.firstname}" />
<h:outputText value="Soyad" />
<h:outputText value="#{userEdit.user.lastname}" />
<h:outputText value="e-posta" />
<h:outputText value="#{userEdit.user.email}" />

</h:panelGrid>
</p:tab>

</p:wizard>

</p:panel>
<ft:trace />

</ui:define>

</ui:composition>
PrimeFaces 3.0.M2, Mojarra 2.1, Tomcat 7.0.19

nadhmi_f
Posts: 1
Joined: 15 Nov 2011, 13:16

15 Nov 2011, 13:21

Hi
I have the same probleme please i need a help.
Think you.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Majestic-12 [Bot] and 54 guests