Hi again: Another, probably unimportant, issue. With the attached test case, the icon and help text display for the input control, which has ref="noSuchItem" (which doesn't exist in the instance): the control itself correctly does not show. Regards Nigel Nigel Harrison LeSoftCo Limited -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws test1.xhtml (2K) Download Attachment |
Further to that last issuette, the help icon/text also show for a non-relevant item, as in the (different) attached test case. To reproduce, type something into the blank Start input control. The Item: input control shows, with its help icon/text. However, the Item2 select1 control is non-relevant (until something is typed into the Item input control), but its help icon/text shows. Regards Nigel Nigel Harrison LeSoftCo Limited [hidden email] wrote on 25/08/2006 12:08:31: > > Hi again: > > Another, probably unimportant, issue. With the attached test case, > the icon and help text display for the input control, which has > ref="noSuchItem" (which doesn't exist in the instance): the control > itself correctly does not show. > > Regards > > Nigel > > Nigel Harrison > LeSoftCo Limited > [attachment "test1.xhtml" deleted by Nigel Harrison/LeSoftCo Limited] > -- > You receive this message as a subscriber of the ops-users@objectweb. > org mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws test1.xhtml (3K) Download Attachment |
In reply to this post by Nigel Harrison
Nigel,
I believe this is a feature, and not a bug. e.g. I use this feature to switch UI Xforms controls on and off by adding and removing the instance nodes that the ref attribut is referring to. Henrik On 8/25/06, [hidden email] <[hidden email]> wrote:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Henrik: I'm reporting that the xforms:help icon and text do show, even though the control they belong to does not: is that what you expect? Nigel "Henrik Pettersen" <[hidden email]> wrote on 25/08/2006 12:48:54: > Nigel, > > I believe this is a feature, and not a bug. e.g. I use this feature > to switch UI Xforms controls on and off by adding and removing the > instance nodes that the ref attribut is referring to. > > Henrik > On 8/25/06, [hidden email] <[hidden email] > > wrote: > > Hi again: > > Another, probably unimportant, issue. With the attached test case, > the icon and help text display for the input control, which has > ref="noSuchItem" (which doesn't exist in the instance): the control > itself correctly does not show. > > Regards > > Nigel > > Nigel Harrison > LeSoftCo Limited > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto: [hidden email] > For general help: mailto: [hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- > You receive this message as a subscriber of the ops-users@objectweb. > org mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Nigel,
I was just responding to your first email :-) Not sure what the exected behaviour of the help element is in this case. In a pinch, you can allways check the spec from w3c. Anyone else know? Henrik On 8/25/06, [hidden email] <[hidden email]> wrote:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi all,
I have set up a datasource-sql.xml for mysql (see below), and have tested the jdbc settings with a test class outside of orbeon, and they work. But when I plug it in to my address-book example code, I get the log4j error below. I have installed mysql-connector-java-3.1.12-bin.jar in my /webapps/ops/WEB-INF/lib directory. I see on mysql's website that they do not support log4j alpha versions - and it looks to me like log4j-1.3alpha0.jar (also in the ops lib directory) might be an alpha version. Is this the source of the problem? Have people seen this before? Thanks, Paul <datasource> <driver-class-name>com.mysql.jdbc.Driver</driver-class-name> <uri>jdbc:mysql://localhost/mydatabasename</uri> <username>user</username> <password>password</password> </datasource> ________________________________ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.VerifyError: (class: com/mysql/jdbc/log/Log4JLogger, method: isErrorEnabled signature: ()Z) Incompatible argument to method java.lang.Class.forName1(Native Method) java.lang.Class.forName(Class.java(Compiled Code)) com.mysql.jdbc.log.LogFactory.getLogger(LogFactory.java:68) com.mysql.jdbc.Connection.initializeDriverProperties(Connection.java:3640) com.mysql.jdbc.Connection.<init>(Connection.java:1482) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) java.sql.DriverManager.getConnection(DriverManager.java:538) java.sql.DriverManager.getConnection(DriverManager.java:188) org.orbeon.oxf.processor.DatabaseContext.getConnection(DatabaseContext.java:102) org.orbeon.oxf.processor.sql.SQLProcessorInterpreterContext.getConnection(SQLPro cessorInterpreterContext.java:314) org.orbeon.oxf.processor.sql.interpreters.QueryInterpreter.end(QueryInterpreter. java:168) org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(S QLProcessor.java:542) org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endElement(SQ LProcessor.java:634) org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(S QLProcessor.java:544) org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endElement(SQ LProcessor.java:634) org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(S QLProcessor.java:544) -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Nigel Harrison
That's another bug:
http://forge.objectweb.org/tracker/index.php?func=detail&aid=306047&group_id=168&atid=350207 I have found that this seems to happen only the first time around. If you keep using the UI, inserting text and removing it, the behavior is correct. -Erik [hidden email] wrote: > > Further to that last issuette, the help icon/text also show for a > non-relevant item, as in the (different) attached test case. > > To reproduce, type something into the blank Start input control. The > Item: input control shows, with its help icon/text. However, the Item2 > select1 control is non-relevant (until something is typed into the Item > input control), but its help icon/text shows. > > Regards > > Nigel > > Nigel Harrison > LeSoftCo Limited > > > > [hidden email] wrote on 25/08/2006 12:08:31: > > > > > Hi again: > > > > Another, probably unimportant, issue. With the attached test case, > > the icon and help text display for the input control, which has > > ref="noSuchItem" (which doesn't exist in the instance): the control > > itself correctly does not show. > > > > Regards > > > > Nigel > > > > Nigel Harrison > > LeSoftCo Limited > > [attachment "test1.xhtml" deleted by Nigel Harrison/LeSoftCo Limited] Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Henrik Pettersen
Henrik,
This is what the spec says about relevance [1]: "The relevant model item property provides hints to the XForms user interface regarding visibility, focus, and navigation order. In general, when true, associated form controls should be made visible. When false, associated form controls (and any children) and group and switch elements (including content) should be made unavailable, removed from the navigation order, and not allowed focus." It does not specify help or hint, but those are clearly tightly associated with controls, and arguably part of it, so I think it is very reasonable for an implementation to hide not only the control (in the stricter sense) but also everything associated with it, including label, help, hint, and alert message. So we clearly consider this as a bug. -Erik [1] http://www.w3.org/TR/xforms/slice6.html#model-prop-relevant Henrik Pettersen wrote: > Nigel, > > I was just responding to your first email :-) > > Not sure what the exected behaviour of the help element is in this case. > In a pinch, you can allways check the spec from w3c. Anyone else know? > > Henrik > > On 8/25/06, *[hidden email] > <mailto:[hidden email]>* <[hidden email] > <mailto:[hidden email]>> wrote: > > > Henrik: > > I'm reporting that the xforms:help icon and text do show, even > though the control they belong to does not: is that what you expect? > > Nigel > > "Henrik Pettersen" <[hidden email] > <mailto:[hidden email]>> wrote on 25/08/2006 12:48:54: > > > > Nigel, > > > > I believe this is a feature, and not a bug. e.g. I use this feature > > to switch UI Xforms controls on and off by adding and removing the > > instance nodes that the ref attribut is referring to. > > > > Henrik > > > On 8/25/06, [hidden email] > <mailto:[hidden email]> < > [hidden email] <mailto:[hidden email]> > > > wrote: > > > > Hi again: > > > > Another, probably unimportant, issue. With the attached test case, > > the icon and help text display for the input control, which has > > ref="noSuchItem" (which doesn't exist in the instance): the control > > itself correctly does not show. > > > > Regards > > > > Nigel > > > > Nigel Harrison > > LeSoftCo Limited > > > > > > > -- > > You receive this message as a subscriber of the > [hidden email] <mailto:[hidden email]> > > mailing list. > > To unsubscribe: mailto: [hidden email] > <mailto:[hidden email]> > > For general help: mailto: [hidden email]?subject=help > <http://sympa@...?subject=help> > > ObjectWeb mailing lists service home page: > http://www.objectweb.org/wws > > > > > > > > > -- > > You receive this message as a subscriber of the ops-users@objectweb. > > org mailing list. > > To unsubscribe: mailto:[hidden email] > <mailto:[hidden email]> > > For general help: mailto:[hidden email] > <mailto:[hidden email]>?subject=help > > ObjectWeb mailing lists service home page: > http://www.objectweb.org/wws > > > -- > You receive this message as a subscriber of the > [hidden email] <mailto:[hidden email]> mailing list. > To unsubscribe: mailto: [hidden email] > <mailto:[hidden email]> > For general help: mailto: [hidden email] > <mailto:[hidden email]>?subject=help > ObjectWeb mailing lists service home page: > http://www.objectweb.org/wws <http://www.objectweb.org/wws> > > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Paul Warner-2
Paul,
That sounds like an incompatibility between versions of log4j. Try removing the OPS WEB-INF/lib/log4j*.jar, and use a more recent one. Hopefully this will be all right with what MySQL expects. -Erik Paul Warner wrote: > Hi all, > > I have set up a datasource-sql.xml for mysql (see below), and have tested the > jdbc settings with a test class outside of orbeon, and they work. But when I > plug it in to my address-book example code, I get the log4j error below. I have > installed mysql-connector-java-3.1.12-bin.jar in my /webapps/ops/WEB-INF/lib > directory. I see on mysql's website that they do not support log4j alpha > versions - and it looks to me like log4j-1.3alpha0.jar (also in the ops lib > directory) might be an alpha version. Is this the source of the problem? Have > people seen this before? > > Thanks, > Paul > > > > > <datasource> > <driver-class-name>com.mysql.jdbc.Driver</driver-class-name> > <uri>jdbc:mysql://localhost/mydatabasename</uri> > <username>user</username> > <password>password</password> > </datasource> > > > > ________________________________ > > > type Exception report > > message > > description The server encountered an internal error () that prevented it from > fulfilling this request. > > exception > > javax.servlet.ServletException: Servlet execution threw an exception > > > root cause > > java.lang.VerifyError: (class: com/mysql/jdbc/log/Log4JLogger, method: > isErrorEnabled signature: ()Z) Incompatible argument to method > java.lang.Class.forName1(Native Method) > java.lang.Class.forName(Class.java(Compiled Code)) > com.mysql.jdbc.log.LogFactory.getLogger(LogFactory.java:68) > > com.mysql.jdbc.Connection.initializeDriverProperties(Connection.java:3640) > com.mysql.jdbc.Connection.<init>(Connection.java:1482) > > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) > java.sql.DriverManager.getConnection(DriverManager.java:538) > java.sql.DriverManager.getConnection(DriverManager.java:188) > > org.orbeon.oxf.processor.DatabaseContext.getConnection(DatabaseContext.java:102) > > org.orbeon.oxf.processor.sql.SQLProcessorInterpreterContext.getConnection(SQLPro > cessorInterpreterContext.java:314) > > org.orbeon.oxf.processor.sql.interpreters.QueryInterpreter.end(QueryInterpreter. > java:168) > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(S > QLProcessor.java:542) > > org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endElement(SQ > LProcessor.java:634) > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(S > QLProcessor.java:544) > > org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endElement(SQ > LProcessor.java:634) > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endElement(S > QLProcessor.java:544) Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Paul Warner-2
Paul,
Erik is right. It is indeed a problem with the "alpha" version log4j jar that is shipped with OPS. We also had encountered the same issue and fixed it temporarily by getting the nightly build of the mysql connector (see http://bugs.mysql.com/bug.php?id=13469). However, it surfaced again, but this time for FreeMarker. Consequently, we figured out that the issue was with the log4j jar itself and replaced it with an older one. Things are fine now. :-) Rgds, Vikas -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Tuesday, August 29, 2006 5:44 AM To: [hidden email] Subject: Re: [ops-users] mysql log4j error Paul, That sounds like an incompatibility between versions of log4j. Try removing the OPS WEB-INF/lib/log4j*.jar, and use a more recent one. Hopefully this will be all right with what MySQL expects. -Erik Paul Warner wrote: > Hi all, > > I have set up a datasource-sql.xml for mysql (see below), and have tested the > jdbc settings with a test class outside of orbeon, and they work. But when I > plug it in to my address-book example code, I get the log4j error below. I have > installed mysql-connector-java-3.1.12-bin.jar in my /webapps/ops/WEB-INF/lib > directory. I see on mysql's website that they do not support log4j alpha > versions - and it looks to me like log4j-1.3alpha0.jar (also in the ops lib > directory) might be an alpha version. Is this the source of the problem? Have > people seen this before? > > Thanks, > Paul > > > > > <datasource> > <driver-class-name>com.mysql.jdbc.Driver</driver-class-name> > <uri>jdbc:mysql://localhost/mydatabasename</uri> > <username>user</username> > <password>password</password> > </datasource> > > > > ________________________________ > > > type Exception report > > message > > description The server encountered an internal error () that prevented > fulfilling this request. > > exception > > javax.servlet.ServletException: Servlet execution threw an exception > > > root cause > > java.lang.VerifyError: (class: com/mysql/jdbc/log/Log4JLogger, method: > isErrorEnabled signature: ()Z) Incompatible argument to method > java.lang.Class.forName1(Native Method) > java.lang.Class.forName(Class.java(Compiled Code)) > com.mysql.jdbc.log.LogFactory.getLogger(LogFactory.java:68) > > > com.mysql.jdbc.Connection.<init>(Connection.java:1482) > > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:26 6) > java.sql.DriverManager.getConnection(DriverManager.java:538) > java.sql.DriverManager.getConnection(DriverManager.java:188) > > org.orbeon.oxf.processor.DatabaseContext.getConnection(DatabaseContext.j ava:102) > > org.orbeon.oxf.processor.sql.SQLProcessorInterpreterContext.getConnectio n(SQLPro > cessorInterpreterContext.java:314) > > org.orbeon.oxf.processor.sql.interpreters.QueryInterpreter.end(QueryInte rpreter. > java:168) > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endE lement(S > QLProcessor.java:542) > > org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endEl ement(SQ > LProcessor.java:634) > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endE lement(S > QLProcessor.java:544) > > org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHandler.endEl ement(SQ > LProcessor.java:634) > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHandler.endE lement(S > QLProcessor.java:544) -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Thanks, Erik and Vikas! Brilliant. The new (although slightly older) log4j jar
file did the trick. Thanks, Paul > -----Original Message----- > From: Vikas Sasidharan [mailto:[hidden email]] > Sent: 29 August 2006 08:57 > To: [hidden email] > Subject: RE: [ops-users] mysql log4j error > > Paul, > > Erik is right. It is indeed a problem with the "alpha" > version log4j jar that is shipped with OPS. > > We also had encountered the same issue and fixed it > temporarily by getting the nightly build of the mysql > connector (see http://bugs.mysql.com/bug.php?id=13469). > However, it surfaced again, but this time for FreeMarker. > Consequently, we figured out that the issue was with the > log4j jar itself and replaced it with an older one. Things > are fine now. :-) > > Rgds, > Vikas > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of > Erik Bruchez > Sent: Tuesday, August 29, 2006 5:44 AM > To: [hidden email] > Subject: Re: [ops-users] mysql log4j error > > Paul, > > That sounds like an incompatibility between versions of > log4j. Try removing the OPS WEB-INF/lib/log4j*.jar, and use a > more recent one. > Hopefully this will be all right with what MySQL expects. > > -Erik > > Paul Warner wrote: > > Hi all, > > > > I have set up a datasource-sql.xml for mysql (see below), and have > tested the > > jdbc settings with a test class outside of orbeon, and they > work. But > when I > > plug it in to my address-book example code, I get the log4j error > below. I have > > installed mysql-connector-java-3.1.12-bin.jar in my > /webapps/ops/WEB-INF/lib > > directory. I see on mysql's website that they do not support log4j > alpha > > versions - and it looks to me like log4j-1.3alpha0.jar (also in the > ops lib > > directory) might be an alpha version. Is this the source of the > problem? Have > > people seen this before? > > > > Thanks, > > Paul > > > > > > > > > > <datasource> > > <driver-class-name>com.mysql.jdbc.Driver</driver-class-name> > > <uri>jdbc:mysql://localhost/mydatabasename</uri> > > <username>user</username> > > <password>password</password> > > </datasource> > > > > > > > > ________________________________ > > > > > > type Exception report > > > > message > > > > description The server encountered an internal error () > that prevented > it from > > fulfilling this request. > > > > exception > > > > javax.servlet.ServletException: Servlet execution threw an exception > > > > > > root cause > > > > java.lang.VerifyError: (class: > com/mysql/jdbc/log/Log4JLogger, method: > > isErrorEnabled signature: ()Z) Incompatible argument to method > > java.lang.Class.forName1(Native Method) > > java.lang.Class.forName(Class.java(Compiled Code)) > > com.mysql.jdbc.log.LogFactory.getLogger(LogFactory.java:68) > > > > > com.mysql.jdbc.Connection.initializeDriverProperties(Connectio > n.java:364 > 0) > > com.mysql.jdbc.Connection.<init>(Connection.java:1482) > > > > > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriv > er.java:26 > 6) > > java.sql.DriverManager.getConnection(DriverManager.java:538) > > java.sql.DriverManager.getConnection(DriverManager.java:188) > > > > > org.orbeon.oxf.processor.DatabaseContext.getConnection(Databas > eContext.j > ava:102) > > > > > org.orbeon.oxf.processor.sql.SQLProcessorInterpreterContext.ge > tConnectio > n(SQLPro > > cessorInterpreterContext.java:314) > > > > > org.orbeon.oxf.processor.sql.interpreters.QueryInterpreter.end > (QueryInte > rpreter. > > java:168) > > > > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHa > lement(S > > QLProcessor.java:542) > > > > > org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHan > ement(SQ > > LProcessor.java:634) > > > > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHa ndler.endE > lement(S > > QLProcessor.java:544) > > > > > org.orbeon.oxf.processor.sql.SQLProcessor$ForwardingContentHan dler.endEl > ement(SQ > > LProcessor.java:634) > > > > > org.orbeon.oxf.processor.sql.SQLProcessor$InterpreterContentHa ndler.endE > lement(S > > QLProcessor.java:544) > > -- > Orbeon - XForms Everywhere: > http://www.orbeon.com/blog/ > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |