Skip to content

Instantly share code, notes, and snippets.

@Guvenir
Created October 9, 2015 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Guvenir/525b263c6160562e141d to your computer and use it in GitHub Desktop.
Save Guvenir/525b263c6160562e141d to your computer and use it in GitHub Desktop.
Jsf form sorunu
<p:dialog id="Test" header="Test" widgetVar="dlg" modal="true" showEffect="fade" hideEffect="fade" resizable="false">
<p:outputPanel>
<h:form>
<p:panelGrid columns="2" columnClasses="label,value">
<h:outputLabel value="Tarih" />
<p:calendar locale="tr" pattern="MM/dd/yyyy HH:mm" value="#{testBean.test.tarih}"/>
<h:outputLabel value="İlaç" />
<p:inputText value="#{testBean.test.ilac}"/>
<h:outputLabel value="Durum"/>
<p:selectOneMenu id="cons" value="#{testBean.durum}" style="width:96%">
<f:selectItem itemLabel="Yapılmadı" itemValue="Yapılmadı" />
<f:selectItem itemLabel="Yapıldı" itemValue="Yapıldı" />
</p:selectOneMenu>
<h:outputLabel value="Not" />
<p:inputTextarea value="#{testBean.test.dnot}"/>
<f:facet name="footer">
<p:commandButton value="Kaydet" style="float: right" process="@form" action="#{drugBean.saveAllDrug()}" />
</f:facet>
</p:panelGrid>
</h:form>
</p:outputPanel>
</p:dialog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment