--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to the Google Groups "web2py-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-develop...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
my point was more or less:if a component contains a form, the form is trapped. this is handled by the LOAD() (ajax_trap) .if it contains a link, it's not given automatically the class "w2p_trap" (grid is another matter) .... so users in the need to trap links use cid=something explicitely anyway.
unless I lost something in the process (I'll review carefully) the only link in grid that shouldn't reload the component is the delete one, but I'm not sure if it does or not right now (because of potential "no records found" to be updated).
On Oct 2, 2013, at 9:01 AM, Niphlod wrote:my point was more or less:if a component contains a form, the form is trapped. this is handled by the LOAD() (ajax_trap) .if it contains a link, it's not given automatically the class "w2p_trap" (grid is another matter) .... so users in the need to trap links use cid=something explicitely anyway.
unless I lost something in the process (I'll review carefully) the only link in grid that shouldn't reload the component is the delete one, but I'm not sure if it does or not right now (because of potential "no records found" to be updated).
There may be links in the representation of values. By default they should not be trapped. Right now I can dodb.table.field.represent = lambda v,r: A(v,_class='w2p_trap')
How would it work in your case? The represent does not know the cid?