logo       

Re: Question in relation to the xforms-readonly event: msg#00027

Subject: Re: Question in relation to the xforms-readonly event
hi nick,

this behaviour is intended by the spec (see 4.2 Initialization Events).

first, the xforms-model-construct is dispatched, which initializes a model. at the end of model construct the events xforms-rebuild, xforms-recalculate, and xforms-revalidate are dispatched. but the initial revalidation won't lead to xforms-readonly, ..., events, since the user interface is not initialized yet. there are simply no event targets for xforms-readonly, ... . then, the form controls will be initialized during xforms-model-construct-done processing. so moving ui initialization to xforms-model-construct would break conformance.

keep in mind, that xforms-readonly and its relatives are only dispatched when the corresponding model item property *changes*. so in your case you will never see a xforms-readonly/xforms-readwrite event, since the "readonly='true()'" condition uses a static function. if you'd use a dynamic expression which might evaluate to different values at runtime, you'll receive the appropriate events, e.g something like "readonly='string-length(...) > 0'".

regards, uli.

Nick Van den Bleeken wrote:
Hi all,

I have a question in releation to the xforms-readonly vent. When you have for example a Text Control that has a read-only attribute of 'true()' the xforms-readonly event is nevere triggered. Is this a bug or is it a works as in the XForms specification? I know why it is in chiba : the method readonlyChanged f DataElement is called as a result of dispatching the xfroms-revalidate event at the end of the modelConstruct method of Model (as defined in the XForms spec). But because there is no listener is registered at this time the vent is never sent to the DOM tree. The listener is registered in the modelConstructDone method of Model through Initializer.initializeUIElements.

Moving Initializer.initializeUIElements just before the dispatching of the events ( in the modelConstruct method) solves the problem, but I don't know if this is correct.

Thanks,

Nick Van den Bleeken



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Chiba-developer mailing list
Chiba-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/chiba-developer




--
Ulrich Nicolas Lissé




-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe