Details
Description
The Buttons and Links portlet example in the Component Showcase behaves a bit differently under certain circumstances. Normally in Component Showcase (non-portlet version), you can do the following:
1) Enter a value in the first input text box (e.g. foo)
2) Click one of the submit buttons/links.
3) The resulting update applies the new backing bean value in the bottom area.
4) Click the Reset button to reset the form back to it's default values.
Deployed as a portlet, the example behaves the same way as long as it is the only portlet on the page. If there are other ICEfaces portlets on the page, however, the resulting update from the initial form submission in Step 3 is much bigger than usual (the whole form). This means that the default value of the input text area is no longer "empty" but the first value that was submitted (foo). Clicking the Reset button no longer clears the input text box but resets it back to the new default value of 'foo'.
Subsequent submissions trigger normal-sized updates (ie not the whole form) so the backing bean values are updated but not the form. This means the default value is still 'foo' and the Reset button will reset the input text to 'foo' instead of empty.
1) Enter a value in the first input text box (e.g. foo)
2) Click one of the submit buttons/links.
3) The resulting update applies the new backing bean value in the bottom area.
4) Click the Reset button to reset the form back to it's default values.
Deployed as a portlet, the example behaves the same way as long as it is the only portlet on the page. If there are other ICEfaces portlets on the page, however, the resulting update from the initial form submission in Step 3 is much bigger than usual (the whole form). This means that the default value of the input text area is no longer "empty" but the first value that was submitted (foo). Clicking the Reset button no longer clears the input text box but resets it back to the new default value of 'foo'.
Subsequent submissions trigger normal-sized updates (ie not the whole form) so the backing bean values are updated but not the form. This means the default value is still 'foo' and the Reset button will reset the input text to 'foo' instead of empty.
This was a bug in the bridge and was fixed here:
http://jira.portletfaces.org/browse/BRIDGE-39
The fix will appear in version 2.0.0-BETA3 of the bridge.