Sun Application Server Startup Command: /opt/SUNWappserver/bin/asadmin start-domain --domaindir /opt/SUNWappserver/domains --user admin

Thursday, May 25, 2006

Tapestry: LinkSubmit problem for browsing back

The way to fix it:
Copy the LinkSubmit.jwc and file from Tapestry. Rename it and extend to

// make sure the submit function is on the page (once)
if (cycle.getAttribute(ATTRIBUTE_FUNCTION_NAME) == null)
Add This =>>body.addInitializationScript("document." + formName + "._linkSubmit.value = null;");
body.addBodyScript("function submitLink(form, elementId) { form._linkSubmit.value = elementId; if (form.onsubmit == null || form.onsubmit()) form.submit(); }");
cycle.setAttribute(ATTRIBUTE_FUNCTION_NAME, this);
Please refer this to

No comments: