You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by dwi ardi irawan <pe...@gmail.com> on 2008/01/01 08:32:21 UTC
T5 : pop up windows and refesh parent
hi..i've got another problem here
i try shing man component :
PageLinkPopup (from tassel)
and tried this :
[PlayerGrid.tml]
<a href="#" t:type="man/pagelinkPopup" t:page="admin/PlayerSearch"
windowName="literal:Sum"
features="literal:'resizable,scrollbars,top=100,left=200,height=250,width=300'">Search</a>
code above is display the search page...
in the seach page pop up,
when i enter the keywords and submit it, i called onclick="
opener.location.reload(true);" in the submit button.
the data in the PlayerGrid.tml changed only if i push the submit button
twice....
here's the code in the PlayerSearch.java
void onSuccessFromSearchPlayerForm(){
List playerList = getPlayerDao().queryForList("\"FIRST_NAME\"= '"+
getSearchFirstName()+"' ","");
playerGrid.setPlayerList(playerList);
}
does anybody know what is going on with my code or tapestry treat onClick
differently ?
--
http://dwiardiirawan.blogspot.com
"cos everyone could be extraordinary...lighten up !"