prime-moviecollector with PrimeFaces-3.0.M4-SNAPSHOT

UI Components for JSF
Post Reply
ITStudent
Posts: 64
Joined: 18 Oct 2011, 22:25

18 Oct 2011, 22:42

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

stier01
Posts: 23
Joined: 27 Aug 2011, 15:47

22 Oct 2011, 14:30

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
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0

User avatar
leventgny
Posts: 238
Joined: 24 May 2011, 16:49
Contact:

22 Oct 2011, 14:53

Examples not updated within PF 3.0M4 labs.
Trace next releases on examples and 3.0 labs.
PrimeFaces Team Member

ITStudent
Posts: 64
Joined: 18 Oct 2011, 22:25

28 Oct 2011, 13:12

You must just update the taglib from : xmlns:p="http://primefaces.prime.com.tr/ui to xmlns:p="http://primefaces.org/ui . :)

stier01
Posts: 23
Joined: 27 Aug 2011, 15:47

01 Nov 2011, 12:59

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!
Thank you so much!
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0

alance
Posts: 8
Joined: 04 Jun 2010, 08:28

22 Feb 2012, 09:18

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);

}

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

22 Feb 2012, 10:18

@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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 51 guests