Information:
Version: PrimeFaces-3.0.M4-SNAPSHOT
framework: Spring-3.1.0.RC1
Implementation with JSF Which version: mojarra
Which application server or servlet container :Tomcat 7
prime-moviecollector application is not running with the new version:
exception
javax.servlet.ServletException: /createMovie.xhtml: Property 'save' not found on type ....
root cause
javax.el.ELException: /createMovie.xhtml: Property 'save' not found on type ....
All primfaces components in template.xhtml will not be displayed.
Any idea's please?
Thanks
prime-moviecollector with PrimeFaces-3.0.M4-SNAPSHOT
Hi,
I have the same problems.
Everytime I start my own project with the M4, I encounter that javax.servlet.ServletException, that tells me, that the properties (in my case actionListener of buttons in the controller) are not found. Maybe a communication problem with the backing bean?
However, the main.xhtml is not displayed.
Hopefully this is just a temporary bug in the snapshot...
Regards
I have the same problems.
Everytime I start my own project with the M4, I encounter that javax.servlet.ServletException, that tells me, that the properties (in my case actionListener of buttons in the controller) are not found. Maybe a communication problem with the backing bean?
However, the main.xhtml is not displayed.
Hopefully this is just a temporary bug in the snapshot...
Regards
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0
Examples not updated within PF 3.0M4 labs.
Trace next releases on examples and 3.0 labs.
Trace next releases on examples and 3.0 labs.
PrimeFaces Team Member
You must just update the taglib from : xmlns:p="http://primefaces.prime.com.tr/ui to xmlns:p="http://primefaces.org/ui .
Glad you've found it out! It works!You must just update the taglib from : xmlns:p="http://primefaces.prime.com.tr/ui to xmlns:p="http://primefaces.org/ui .
Thank you so much!
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0
When I click on the Save button,confirmation box appears but the action method saveGroup() is not invoked.Please help me to find the solution.
Am using PrimeFaces-3.1.1 on Mojarra-2.1.4 with updated taglibs xmlns:p="http://primefaces.org/ui .
<h:body>
<f:view>
<f:event type="preRenderView" listener="#{groupsBean.initGroups}"/>
</f:view>
<h:form id="form" prependId="false">
<p:growl id="popupMsg" sticky="true" showDetail="true"/>
<panel>
<p:confirmDialog appendToBody="true" id="saveconfirmation" message="Are you sure you want to save all selected items?" header="Confirmation" severity="alert" widgetVar="saveconfirmation">
<h:form>
<p:commandButton value="Save" update=":form:popupMsg" ajax="false" oncomplete="saveconfirmation.hide()"
actionListener="#{groupsBean.saveGroup}">
<f:setPropertyActionListener value="#{group}" target="#{groupsBean.selectedGroup}" />
</p:commandButton>
<p:commandButton value="Cancel" onclick="saveconfirmation.hide()" type="button" />
</h:form>
</p:confirmDialog>
</panel>
<p:commandButton value="Save" onclick="saveconfirmation.show()"/>
</h:form>
</h:body>
In my backing bean
public void saveGroup(ActionEvent event) {
private Group selectedGroup;
System.out.println("Saving group");
List<Schedule> selectedSchedule = grpSelectSchMap.get(selectedGroup.getGroupName()).getTarget();
String stingVa = selectedSchedule.toString();
Set selectedScheduleSet = new HashSet<Schedule>();
for (Schedule schedule : availableSchedules) {
if (stingVa.contains("scheduleId=" + schedule.getScheduleId())) {
selectedScheduleSet.add(schedule);
}
}
selectedGroup.setSchedule(selectedScheduleSet);
List<TreeNode> treeNodes = grpSelectTreeMap.get(selectedGroup.getGroupName()).getChildren();
Set<Role> roleSet = new HashSet<Role>();
listTreeNodes(treeNodes, roleSet);
selectedGroup.setRole(roleSet);
System.out.println("selectedGroup " + selectedGroup);
}
Am using PrimeFaces-3.1.1 on Mojarra-2.1.4 with updated taglibs xmlns:p="http://primefaces.org/ui .
<h:body>
<f:view>
<f:event type="preRenderView" listener="#{groupsBean.initGroups}"/>
</f:view>
<h:form id="form" prependId="false">
<p:growl id="popupMsg" sticky="true" showDetail="true"/>
<panel>
<p:confirmDialog appendToBody="true" id="saveconfirmation" message="Are you sure you want to save all selected items?" header="Confirmation" severity="alert" widgetVar="saveconfirmation">
<h:form>
<p:commandButton value="Save" update=":form:popupMsg" ajax="false" oncomplete="saveconfirmation.hide()"
actionListener="#{groupsBean.saveGroup}">
<f:setPropertyActionListener value="#{group}" target="#{groupsBean.selectedGroup}" />
</p:commandButton>
<p:commandButton value="Cancel" onclick="saveconfirmation.hide()" type="button" />
</h:form>
</p:confirmDialog>
</panel>
<p:commandButton value="Save" onclick="saveconfirmation.show()"/>
</h:form>
</h:body>
In my backing bean
public void saveGroup(ActionEvent event) {
private Group selectedGroup;
System.out.println("Saving group");
List<Schedule> selectedSchedule = grpSelectSchMap.get(selectedGroup.getGroupName()).getTarget();
String stingVa = selectedSchedule.toString();
Set selectedScheduleSet = new HashSet<Schedule>();
for (Schedule schedule : availableSchedules) {
if (stingVa.contains("scheduleId=" + schedule.getScheduleId())) {
selectedScheduleSet.add(schedule);
}
}
selectedGroup.setSchedule(selectedScheduleSet);
List<TreeNode> treeNodes = grpSelectTreeMap.get(selectedGroup.getGroupName()).getChildren();
Set<Role> roleSet = new HashSet<Role>();
listTreeNodes(treeNodes, roleSet);
selectedGroup.setRole(roleSet);
System.out.println("selectedGroup " + selectedGroup);
}
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
@alance: you would be much better off creating a new Thread here rather than ressurrecting an unrelated one.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
-
- Information
-
Who is online
Users browsing this forum: No registered users and 51 guests