Lukas Ruetz wrote:
Am Freitag, 17. Februar 2006 16:10 schrieb Łukasz Pachciarek:
Lukas Ruetz wrote:
Am Freitag, 17. Februar 2006 13:38 schrieb Łukasz Pachciarek:
Hello
first...
I am new in tapestry :)
I created html template, it contains left-frame and right-frame
left-frame is menu frame,
right frame is data view frame (it contain table, only data in table
will change)
what element should I use (DirectLink, PageLink, ...) in menu in
left-frame to
refresh right-frame to fill the table new data?
best regards
hi
you can simply add a "target"-attribute to the link. if you have to pass
an ID (or something) to your page in the right-frame use a DirectLink
<span jwcid="@DirectLink" listener="listener:showMyData"
parameters="ognl:id" target="right_frame">myLink</span>
Hi
buy now after click on this DirectLink I have content of my left frame =
menu :)
hi
you can activate whatever page you want in your listener like this
public void showMyData( IRequestCycle cycle ) {
MyPage page = (MyPage) cycle.getPage( "MyPage" );
// set here what you need for the page
page.setXxxx();
cycle.activate( page );
}
greets
lukas
thanks a lot
I tried to do 'public IPage showData() with return some IPage....
--
Łukasz Pachciarek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]