"tom.baeyens@jboss.com" wrote:
then this will probably be something else on my system. i'll try again tomorrow. before the navigation rework, it took approx .5 second for a page to show. now it was approx 7-10 seconds. if you don't have this problem, it will be something local. i'll figure it out first.
profiling should not be necessary at this point.
"david.lloyd@jboss.com" wrote:
Koen, is it possible to modify the GPD so that if there is only one transition, that the "to" attribute is not emitted?
Yes, and to be clear, here are the attributes that you can have on a transitionButton:
* value: This is the caption of the button. If none is given, the transition name is given.
* transition: This is the transition to take. (Up above I said it was called "to" - my apologies for the confusion).
* src: The URL of an image file, if you want to override the little icon. Sensible defaults are automatically chosen for task form buttons.
* All default h:commandButton attributes (except for "action"), which can be found here: http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/commandButton.html
You may also have these attributes (except for "transition") on the saveButton.
I think it would be wise for the GPD to not emit cancelButtons, since the cancel button does not serve any purpose that cannot be also done with a plain <h:commandButton>.
Finally, the GPD should no longer generate a "comments" field by default. This field is already present elsewhere on the task view page.