Reply To: Can I pass an Object to a viewscoped bean?

Splash Forums Rewrite Users Can I pass an Object to a viewscoped bean? Reply To: Can I pass an Object to a viewscoped bean?

#26475

cilf
Participant

But then I’m gonna need one more rule for handling 404 (artist not found). I kind of liked the single perform operation per inbounding url and the simple if-else case for existing artist.

I have a feeling that the music app requirements will get more complicated – like checking if an album from /{artistUrl}/{albumUrl} really belongs to the artist and I don’t want to end up in a rule mess. Things can get pretty confusing when the evaluation depends on the rules order and stuff like .withPriority 🙂

I’ll see what I can do with .bindsTo(El.submissionMethod("#{controller.setArtist}")).. Thanks for the info though. I didn’t find it anywhere in docs.