Hi Adriaan,

the reason for this is that you first handle the "reservationList" submission with the "Seats" action in the BrowseReservations element. This renders a dynamic list of embedded SeatEntry elements. When the "seatEntry" submission is however sent, the embedding element (which is BrowseReservations), didn't receive the "reservationList" submission anymore. This means that its "processElement" is executed instead (ie. the element is merely rendered, it doesn't process an action). In that method, you print the template, which processes one SeatEntry embedded element without differentiator. This embedded element has a different identifier than the one that sent the "seatEntry" submission since the differentiator is missing.

One way to solve this, is to create a datalink from the "BrowseReservations" element that points to itself (with input and output "showSeats", for instance). Set the output to "true" when the seats should be shown and render then accordingly in the "processElement" method. The reflective datalink indicates to RIFE that this element has state that needs to be maintained, and when the output is set, RIFE will do so automatically.

Hope this helps.

Best regards,

Geert

On 31 May 2006, at 00:49, apdewith wrote:

Hi Geert,

Thanks for the fix that solved my 'problem'.
But I ran into another problem.
I use the 'SeatEntry' embedded element in both 'BrowseReservations' and 'ManageReservation'. In 'ManageReservation' the inline editing works ok but in 'BrowseReservations' not. The 'doSeatEntry' is just not called from the 'BrowseReservations' if the 'Save' button is clicked. Can you verify this with the sources you have? That is because I added more rudimentary functionality (Customer and Payments) in the meantime.

Btw, I am considering your blog invitation.

Regards,
Adriaan
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to