I just interchanged this 

<input t:type="submit" t:id="topLevel" context="videoItem.position"
defer="false" t:value="${videoItem.name}" /> 

to

<input t:type="submit" t:id="topLevel" context="videoItem.name"
defer="false" t:value="${videoItem.position}" /> 

now it correctly displays the position in the ui like below

0
1
2
3
4

and when I clicked any one of those it throws the following exception 

Failure reading parameter 'context' of component Index:toplevel: Property
'videoItem' (within property expression 'videoItem.name', of
web.app.video.pages.Index@1301061) is null.

When I used this videoItem.name in t:value it correctly displays the name 
videoItem.position in t:value correctly displays the position : *but when I
used this videoItem.name or position in context it throws NPE*, what is
wrong here? Please help me to overcome this?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-send-the-selected-button-value-from-tml-page-to-corr-java-page-tp5709890p5709988.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to