Hi guys,
I am handling an event in a page A which was bubbling from a component B:
ComponentB.java
componentResources.triggerEvent(BULK_ACTION_SELECTED, new Object[] {
selectedAction, keys}, null);
PageA.java
void onBulkActionSelectedFromresourceSearchResults(String context,
long[] keys) throws IOException {
response.sendRedirect(getPageURL(linkSource, "resource/group", keys));
...
public String getPageURL(PageRenderLinkSource linkSource, String page,
long[] context) {
Link link = linkSource.createPageRenderLinkWithContext(page, context);
return link.toAbsoluteURI();
As you can see I am trying to redirect to another page, is there any
problem in using redirect inside of an event bubbled up for a component ,
because in my case the page is not submitting.
I am handling an event in a page A which was bubbling from a component B:
ComponentB.java
componentResources.triggerEvent(BULK_ACTION_SELECTED, new Object[] {
selectedAction, keys}, null);
PageA.java
void onBulkActionSelectedFromresourceSearchResults(String context,
long[] keys) throws IOException {
response.sendRedirect(getPageURL(linkSource, "resource/group", keys));
...
public String getPageURL(PageRenderLinkSource linkSource, String page,
long[] context) {
Link link = linkSource.createPageRenderLinkWithContext(page, context);
return link.toAbsoluteURI();
As you can see I am trying to redirect to another page, is there any
problem in using redirect inside of an event bubbled up for a component ,
because in my case the page is not submitting.