Re: URLMapping pattern vs query parameters

Splash Forums PrettyFaces Users URLMapping pattern vs query parameters Re: URLMapping pattern vs query parameters

#21210

tmanning
Participant

You’ve raised some interesting points; for some reason I hadn’t thought of those alternatives. I guess I was hoping that the FindAccount backing bean wouldn’t have a direct reference to the ManageAccount bean – but then again, why not? Since I didn’t design the UI, and apparently a button is required, I’ll have to go with one of the solutions that allows it though.

I’m still a bit puzzled as to why this didn’t work:

<h:commandButton value=”EDIT3″ action=”pretty:manageAccount”>

<f:param name=”iid” value=”#{findAccount.selectedItem.id}” />

</h:commandButton>

Maybe if I have time I’ll dive into the code and figure that out.

Thanks very much for the new perspectives! It was very helpful.