How to use value from primefaces dropdown without going to B

UI Components for JSF
Post Reply
Hirenkumar69
Posts: 8
Joined: 18 Jan 2017, 22:33

23 Jan 2017, 22:34

I have a drop down which showing two string Build or config.

based on what selected on drop down i want to make decision to reder other field.


is it possible to run comparison on what value has choosen without going to back an bean.

<p:outputLabel value="Task Type"/>
<p:selectOneMenu id="tasktypeval" value="#{buildConfigureBB.taskType}">
<p:ajax listener="#{buildConfigureBB.on_projectIdchange}" update="Projecttasklable,CmdTypebuild,CmdTypeconfig,comment2val" process="@this"/>
<!-- <f:selectItem itemLabel="Baseline" itemValue="Baseline" /> -->
<f:selectItem itemLabel="Build" itemValue="Build" />
<f:selectItem itemLabel="Configure" itemValue="Configure" />
</p:selectOneMenu>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests