Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 2895 invoked from network); 16 Aug 2007 10:08:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 10:08:36 -0000 Received: (qmail 31785 invoked by uid 500); 16 Aug 2007 10:08:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 31727 invoked by uid 500); 16 Aug 2007 10:08:26 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 31716 invoked by uid 99); 16 Aug 2007 10:08:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 03:08:26 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.86.168.179] (HELO mxout-04.mxes.net) (216.86.168.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 10:08:19 +0000 Received: from [192.168.0.129] (unknown [80.240.191.89]) by smtp.mxes.net (Postfix) with ESMTP id D6F4FA322C for ; Thu, 16 Aug 2007 06:07:56 -0400 (EDT) Message-ID: <46C421D9.6020002@apache.org> Date: Thu, 16 Aug 2007 12:07:21 +0200 From: Grzegorz Kossakowski User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Using Variables/attributes in CForm/Ajax/Jexl References: <46AF461A.60101@weitling.net> <46AF8B26.1070505@apache.org> <46AF9981.7020203@weitling.net> <46B5D4ED.7030607@apache.org> <46B63410.4030409@weitling.net> <46B9863D.8010503@apache.org> <46BB505B.9080108@weitling.net> In-Reply-To: <46BB505B.9080108@weitling.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Dev at weitling pisze: > Yes and no, as written below. Sorry for the delay, but my wife reminds > me that we are on holiday (Balconia :-) No problem. Sorry for delay on my side, if you want to know the reason take a look at the end of this mail... > Well, make yourself comfortable... > I want to create an editor component where a question along with a bunch > of possible answers can be created and/or edited. Each question is > localized in one or more languages, e.g. german, english, french. > According to the role of the user or his task he may have complete > rights (edit questions and answers, add or delete answers), may only > translate from one language to another or may only view some languages. > The user may hide some languages for convenience. Ahh, still the same app :-) > So my solution approaches (not exhaustive): > a) a html table hiding a column (= a language) via Ajax and > WidgetState.INVISIBLE for each affected cell. This seems to be the best > solution for accessibility but suffers from a bug [1] returning span's > instead of td's. I remember your report. I think we should try to tackle down this problem because it's really annoying and limiting. It would be very helpful if you could come up with really minimal form definition and template that shows buggy behaviour and create issue in JIRA. This could become a start point for debugging and fixing it. My GSoC project ends in a few days and even though I'll continue my work on expression and object model handling in Cocoon I'll have more free time to help others. Of course I don't make any promises, we don't know in advance if this issue is serious or not. > b) a html table where the hiding is done via deleting and adding rows. > There's a problem reloading the data when the user wants to see a hidden > language again and with preventing deletion of database entries. You see yourself that it's hacky. Don't even think about such solution ;-) > c) a html table where the hiding is done via client-side javascript and > manipulating css styles (one class per column). I have repressed the > problems with this. Less hacky but I really prefer a) option. > d) a table made of div's instead of a classical table. Is a work-around > for a) but is bad for screenreaders. And I didn't test if span's are > returned or div's. > > In the mind's eye I have something like tabs for each language, variable > in width depending on the number of languages displayed. The optimum > would be a scrollable area for the answer cells - displaying 10 > languages would result in rather narrow columns otherwise. And with 40 > possible answers the questions should be visible, too, as seen in > Excel's "fix window" feature. > Additionally when a language is hidden you may redisplay it by choosing > it from a drop-down-menu. > Reordering columns aka languages is also one of my dreams. I think that everything is possible to do with current CForms as long as you make WidgetState.INVISIBLE working. > > BTW: It seems TeeTransformer has a bug - tags like
are converted > in the output to
missing the closing element. What about JIRA issue? It's really going to be lost on mailing list. -- Grzegorz Kossakowski http://reflectingonthevicissitudes.wordpress.com/ *** My Internet Service Provider breaks my internet connection *** *** incessantly so I'll not be able to respond to e-mails *** *** regularly and my work will be somehow irregular. *** *** I'm already trying to switch ISP but it will take handful amount of time. *** --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org