jsf - primeface dialog doesn't use the information I provide in the view -
i have view contain following fields:
<p:selectonemenu style="width:40px" value="#{capacityfamilybean.capacityfamily.bottleneck}"> <f:selectitems value="#{capacityfamilybean.availablecapfamilybottlenecks()}"/> </p:selectonemenu> <p:inputtext id="capacityfamilyname" binding="#{capacityfamilyname}" style="margin-left:20px" value="#{capacityfamilybean.capacityfamily.name}"> <p:ajax event="change" update="newbundlebutton"/> </p:inputtext> <p:commandbutton id="newbundlebutton" icon="ui-icon-plus" disabled="#{empty capacityfamilyname.value}" value="${msgs.new}" oncomplete="pf('capacityfamilydialog').show();"/>
you can see value properties {capacityfamilybean.capacityfamily.prprty}
capacityfamilydialog
uses same properties, not pre-filled
<p:selectonemenu value="#{capacityfamilybean.capacityfamily.bottleneck}"> <f:selectitems value="#{capacityfamilybean.availablecapfamilybottlenecks()}" /> </p:selectonemenu> <p:inputtext id="capacityfamilyname" style="margin-left:20px" value="#{capacityfamilybean.capacityfamily.name}"/>
i'm assuming refer different capacityfamily object, how can counter that?
the dialog delivered page. it's empty.
oncomplete="pf('capacityfamilydialog').show();"
is pure javascript , shows empty popup. if have dialog actual values, have update
in ajax-call commandbutton
.
<p:commandbutton value="${msgs.new}" update="capacityfamilydialog_id" oncomplete="pf('capacityfamilydialog').show();"/>
Comments
Post a Comment