This content has been marked as final. Show 11 replies
The example is nice, but it is not the same I was asking.
The example print out the result to the console System.out.println(getChangedRowCount()....
I want this to be sent somehow to the ViewController. For example, when I have an exception I do this (throw new JboException("some error") and it keeps go up until the view, i.e JSF page.
Instead of printing out to the console, send it to the end user.
I got it. Thank you very much.
But I am wondering if there is another way to do that without the need to implement it my self.
The idea of this question is to build something generic for the whole applications built in my enterprise, say a status bar showing the state of every thing the end user do.
I will mark the thread as answered.
create a insatnce variable like insertedRows deletedRows, updatedRows;
to get the no of rows deleted,inserted, updated
in do_dml method method()
Create a method in voimpl.java
inside that method
create a list/map
put those variable values inside this.
expose this method to client interface.
yes the idea of build something generic for the whole applications built in my enterprise, say a status bar showing the state of every thing the end user do.
will be very helpful and attractive for end user.
actually in one of my task flow there were around 15 pages for (start commercial service )
what we did at that time is created 15 images of 15 blocks and after each step we were changing image(status bar) on the page so that user get that feel ;)
Actually, I have a stored procedures that have an output parameters which read from a messaging system showing the exact result of the transaction.
I override the entity objects to execute the stored procedure and get the result through the output parameter. I wanted a way to push this message to the end users, whatever it was.
As you said, the end user lives the program, he feels as if it was a human and he expects the program to talk to him :)
Instead of calling procedure in entity, call it in applicationmoduleimpl.java class
expose this method to client insterface, so that you can display the return message of procedure using the
FacesContext fc = FacesContext.getCurrentInstance();
FacesMessage message = new FacesMessage("");