Hello:

Using myfaces-1.0.7, i was able create a complete dynamic portal page and tiles insertions of the display and portlet fragments. Each jsf page is a custom portal tab form.<h:commandButton> behaves normally within a portal page and can pick up correct action for a new page with new tiles fragments. However, within a fragment inserted by tiles, the <h:commandButton> does not pick up the command action.

Investigations:

(1) I tried both with and without the parent form and use / or NOT use parent form generation from myfaces. Results are the same.

(2) Looking at the generated html from myfaces, i saw the generated codes onclick for the <h:commandButton> that clears the old action form and supposely leads to the next navigation action. But this is not the case for the <h:commandButton> inside an inserted tiles fragment.

Possible solutions:

(1) Is there any readily solution and/or quick fix for the above issue? Even some direction to fix from source codes may help.

(2) One possible solution may be to write a custom onclick attribute for each <h:commandButton> within a tiles insertion, since myfaces will concatenate the custom onclick attribute with its generated javascript clear() function.

Sory to post this in both dev and user lists.

Thanks.

BaTien
DBGROUPS



Reply via email to