JavaServer Faces - Question about commad link

Hi,

I have a commad button like:

<hx:commandExButton action="xxxx" onClick="return checkSomething();">

When I click in the button it first does the onclick and them does the action. Is there a way to reverse that I like to do the action first and the onClick last and is that posible with commadLinks also.

Thanks

[362 byte] By [chicoa] at [2007-11-26 23:32:02]
# 1
I dont think you can reverse that behavior.But you can put another button on the page and set the action="xxxx" parameter there. Delete the action parameter on the first button und let your checkSomething() method do a call to JS-click on the second button.
UlrichCecha at 2007-7-10 14:44:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

I try that but does no work for what I抦 tying to do. Here is what I want to do.

I have an application using Web sphere portal and JSF in one of the portlets I have a link to open a popup window and display some data. I don't know if you are using the portal but when you open a popup window the theme and skins appear in the popup and I don't want that so what I want to do is create a hidden frame in the portlet form and called from the popup I can see the flow been OK it goes to the JavaScript function submits a hidden command link which goes to the action of that button opens the window and displays the frame but the data is no there looks like I have to force a render but don't know how.

Any suggestions will be appreciated

Thanks

chicoa at 2007-7-10 14:44:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...