Hi all,
I've been playing around with JSF/MyFaces for the past two weeks and am
beginning to get to grips with things. I've already put together a
simple webshop app with shoppingcart and all :-)
However I'm having a few problems which I can't seem to find answers to.
Perhaps someone can help?
1. I have a couple of managed beans in session scope. After making the
purchase definate I want to remove them, or reset them in session. Is
there a recomended way of doing this or it simply, find them in the
context and invoke a reset method clearing all data in that object? Or
can I remove the object from facescontext in some way?
2. I have to show data from several different lists in tabular format,
in one table to be exact. I tried 3 seperate dataTables under each other
which shows the correct data but looks ugly. Something along the lines
of panelgrid with embedded datatable would probably be appropriate but
is not giving correct result. I need some help on this one
3. Is there some way to show a datatable only if the list data being
provided is greater than zero or does one have to revert to JSTL to
solve this, checking for > 0 in an if statement before writing the table?
4. Is there any way to pass arguments to methods being invoked? I read
somewhere that this was a restriction in EL and was not possible. Is
that the case?
ie #{shoppingcart.method(2)}
I look forward to any help
Colin