Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 42237 invoked from network); 25 Dec 2007 23:05:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Dec 2007 23:05:06 -0000 Received: (qmail 57428 invoked by uid 500); 25 Dec 2007 23:04:54 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 57357 invoked by uid 500); 25 Dec 2007 23:04:54 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 57346 invoked by uid 99); 25 Dec 2007 23:04:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Dec 2007 15:04:54 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Dec 2007 23:04:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D715571422E for ; Tue, 25 Dec 2007 15:04:44 -0800 (PST) Message-ID: <18068004.1198623884825.JavaMail.jira@brutus> Date: Tue, 25 Dec 2007 15:04:44 -0800 (PST) From: "Sylvain Wallez (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Commented: (COCOON-2126) CForms-Ajax-Update sends instead of In-Reply-To: <27972954.1187943871428.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON-2126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554366 ] Sylvain Wallez commented on COCOON-2126: ---------------------------------------- A bit of warning: widgets are not block-level components, and are allowed in places where HTML would forbid a div. For example, it is perfectly legal to include a in a tag where a
is not allowed. So replacing the with a
can actually do more harm than good as a general solution. So we must have a special behavior for replacements in a that inserts a rather than a . Handling this server-side in jx-macros.xml (or JXMacrosHelper) seems quite complicated since we can't grab what is sent to the cocoonConsumer by the JXTemplateGenerator. The easiest way is most probably to handle this special case in BUHandler.js, in the handlers.replace function: if oldElement is a and firstChild is an empty , then replace firstChild with an empty *with the proper id attribute* (so that it can be replaced again later). > CForms-Ajax-Update sends instead of > ----------------------------------------------- > > Key: COCOON-2126 > URL: https://issues.apache.org/jira/browse/COCOON-2126 > Project: Cocoon > Issue Type: Bug > Components: Blocks: Ajax, Blocks: Forms > Affects Versions: 2.1.10 > Reporter: Florian Weitling > Assignee: Grzegorz Kossakowski > Attachments: screenshot-1.jpg, screenshot-2.jpg, screenshot-3.jpg, showQuestion.bind.xml, showQuestion.def.xml, showQuestion.js, showQuestion.tmpl.xml, sitemap-excerpt.xmap > > > In a the cells' entries are delivered by a repeater. When hiding a cell programmatically via WidgetState.INVISIBLE the bu:update contains a instead of a or another hint to hide away the cell. This results in weird optics 'cause is not allowed as child of a . > My current workaround: Using
s with table* styles. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.