Skip to main content

Trouble using more than one dojo inline edit control on page

3 replies [Last post]
albertbraun
Offline
Joined: 2006-12-03

Hi, I'm a new jMaki user, trying to place two (or more) dojo inlineedit controls on a single JSF page. For example:

<%@ taglib prefix="a" uri="http://java.sun.com/jmaki-jsf" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

SimpleTestBean's setProperty1 and setProperty2 methods set their respective values and then log some output. Nothing complex.

The problem is that when I visit the JSF page and set the first inline edit box's value, and hit save, the data goes into the the second property on SimpleTestBean. So, SimpleTestBean.setProperty2 method is called, not setProperty1 as I would expect.

(I've tried three properties and in that case the value goes to the last inline edit control box's property.) It seems that values are set to whatever inline edit control box is last on the page.

Anyone know what I'm doing wrong and how I can fix it?

Thanks,
Albert

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
albertbraun
Offline
Joined: 2006-12-03

Thanks for logging bug 50 on this issue.

So, just trying to understand better, do you think the fix will go into jmaki's "component.js" file for the dojo inline edit control? I'm wondering where the right place to wire up the form's "save" button would be.

gmurray71
Offline
Joined: 2003-07-31

You could wire it into the Dojo inline edit save button which normally will save it out (we need to fix the bug) the other option is to publish and event and use jMaki Glue to send the data back. It might be best to wait for us to fix this in the next beta rev.

gmurray71
Offline
Joined: 2003-07-31

The save button is not wired into the Dojo Edit Box to save the data and this is what is causing your problem.

I'm filing a bug on this so we can track it. Hopefully we can get this fixed in the beta release coming out this week.

https://ajax.dev.java.net/issues/show_bug.cgi?id=50