This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Dojo plugin: sx:bind doesn't work in the rerendered div. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dojo plugin: sx:bind doesn Watch "Dojo plugin: sx:bind doesn New topic
Author

Dojo plugin: sx:bind doesn't work in the rerendered div.

Boris Romashov
Ranch Hand

Joined: Feb 23, 2009
Posts: 38
My problem is that I can't make sx:bind work if it lays in the div that was rerendered using another sx:bind.

Here is short example.

main.jsp:

myAction.jsp:

header.jsp

myAction results to myAction.jsp.

What I want to get:
Step 1. I get page main.jsp.
Step 2. I click Submit. myAction works and myAction.jsp is rendered in the div1.
Step 3. I click Submit1. myAction works and myAction.jsp is rendered in the div2.

What I get really:
Steps 1,2 work fine, but when I click submit1 nothing happens.

If I use sx:submit instead of s:submit and sx:bind everything works fine. But I want to use sx:bind.
Roberto Hernandez
Ranch Hand

Joined: Apr 29, 2009
Posts: 33
I'm having the same issue. I'm using sx:bind inside a sx:tabbedpanel and it's not binding the data to any events. I've tested the same code outside the tabbed panel and it works fine, it's only when using it inside the tabs that it fails. Please help!!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Dojo plugin: sx:bind doesn't work in the rerendered div.
 
Similar Threads
Showing Hiding <s:div> tag in Struts2
struts 2 with dojo plugin
ajax code injected by ajax request using sx:bind does not work in struts 2.2
unable to get next form
how to send rich text editor content using ajax