Given the following:
- AppFuse 1.9.3 (Spring 1.2.8/Spring MVC/Hibernate 3.1.3)
- A QuestionMaster class containing a List of Question objects with the List
index field/column “revision” (bidirectional parent/child)
- A Survey class with a List of Question objects with the List index
field/column
Hello,
I ran into this situation this afternoon, I think I found a good
solution but I'm posting here to share it with you and find out if
there is an easier way to do that.
My application has a form with two addresses: Address and
BillingAddress. In my controller I'm instantiating a
ServletReq
Basically you are clicking the row (the TR element) and the anchor (A)
at the same time.. well not really at the same time the TR is getting
processed first, but it only takes one physical click of the mouse to
trigger both events. By adding the "return false" you are telling the
browser to st
After I googled event bubbling, I still get confused. The outer element is
row which defines an onclick event, and inner element is anchor which
doesn't define onclick event EXPLICITLY.
1. When anchor is clicked, its own default action is executed. That is
correct, but why does it go upwards(bubb
google "event bubbling" to understand how browser events are cascaded /
bubbled.
On 12/27/06, kkus <[EMAIL PROTECTED]> wrote:
It works after I added return false at the bottom of event method(see
below).
But curiously, how come can this row event be ignored if I clicked on an
anchor tag, and "
It works after I added return false at the bottom of event method(see below).
But curiously, how come can this row event be ignored if I clicked on an
anchor tag, and "return false" doesn't prevent row event's default action
from firing if clicking in a row? Is anchor tag event "overriding" row
ev
This whole thing just started making a lot of sense... Now that it is
isolated to the being a combination of the anchor tag and the JS onclick
method.
If adding "return false" to the bottom of that JS method works, could
you add a bug report in JIRA about it.
Nathan
Sanjiv Jivan wrote:
L
I think you will need to register at java.net. After that you can
checkout the latest (using the java.net registration info) by
executing the following:
svn co https://appfuse.dev.java.net/svn/appfuse/trunk appfuse
This will place the lasted code in the appfuse dir.
Thanks,
James
On Dec 26
Like I said in my previous mail, the onclick handler should be returning
'false' in order to prevent both, the onclick handler and the ahref being
called.
I think this js function makes the entire row "act" like a clickable URL. It
should be returning 'false' though.
On 12/27/06, kkus <[EMAIL
Looks like the Javascript onclick handler on the displaytag "a href" is not
returning 'false' and if this is the case, then the javascript onclick call
and the href will be made. Can you investigate which Javascript function
gets called when you click the dispalytag url.
On 12/27/06, kkus <[EMAIL
The problem lies in highlightTableRows() in global.js. If I commented out
following code in that method, there is only one request fired. Is that a
bug? Or why do we need this piece of code?
rows[i].onclick = function() {
var cell = this.getElementsByTagName("td")[0];
var
By disabling javascript in IE6, I can see only one GET request. But haven't
figured out where the responsible javascript is.
Sanjiv Jivan wrote:
>
> Try directly entering the url in the browser and see if you're still
> getting
> two requests. That way you can see if displaytag has anything to
If I post link as below directly I only get one GET request. If clicking url
in displaytag I get two requests. From Fiddler for posting link directly, I
can see it is only one GET request which doesn't have referer record. I
think referer is used to track where the request is from. Which filter is
Try directly entering the url in the browser and see if you're still getting
two requests. That way you can see if displaytag has anything to do with it.
Enter the url that disaplytag is issuing (is it calling /user/a.html or
/editUser.html?)
On 12/26/06, kkus <[EMAIL PROTECTED]> wrote:
I com
14 matches
Mail list logo