About the AOP and Page Class

2009-02-03 Thread Xunhua Teng
Now I have a requirement that need to execute a piece of code before every
method of every page class, so I thought I should use the Spring aop, but
how can I do, I found that the aop is just for service class ,how to use it
for page class. Please give some ideas thanks a lot.

 

I use the T5+Spring.



GRID Refresh

2008-10-31 Thread Xunhua Teng
Hi all:

 

 I encountered a problem that the grid can not refresh when its
source changed.

Actually I have put the inPlace in the grid,and I monitored the productList
has been changed but the grid's data not refresh.

Tml is:

 

t:actionLink t:id=queryAction t:zone=resultZoneQuery/t:actionLink

  t:zone t:id=resultZone

 

  t:block id=gridBlock

 t:grid t:source=productList t:inPlace=true
t:model=dataModel t:row=currentProduct
t:exclude=special,prop2,prop3,parentId,itemId

 t:parameter name=empty

${message:noProductData}

 /t:parameter

 

 t:parameter name=internalNumberCell

a
href=javascript:setParentValue('${currentProduct.internalNumber}','${curren
tProduct.productName}')${currentProduct.internalNumber}/a

 /t:parameter

 

 t:parameter name=productNameCell

${currentProduct.productName}

 /t:parameter

 /t:grid

  /t:block

  /t:zone  

 

 

 

pageClass is:

 @Inject

 private Block gridBlock;

 @OnEvent(component=queryAction,value=action)

 Block actionEvent(){

 
productList=productService.getProductsByKey(value_internalCode);

  return gridBlock;

 }

 

 

 

What's wrong with my code?? Thanks ..



How to get the value of other control

2008-10-30 Thread Xunhua Teng
Hi,all:

 

 In my form of tml files,there are 2 controls called A and B .Now I
catch the blur event of control B using onEvent of t5c. In my onEvent
method,I can get the value of control B.but I can not get the value of
control A. I have used the context parameter in the page file.But It gave me
null,how can I get the value?