SourceForge has been redesigned. Learn more.
Close

User Activity

  • Posted a comment on discussion Users on Metawidget

    Oh yes. Sorry, old API. I think you can just use JexlInspectionResultProcessor, and insert ${...} blocks into your annotations. So like: @UiAttribute( name = HIDDEN, value = "${!this.readOnly}" ) If it helps, the SWT Address Book example uses this exact approach. Please take a look.

  • Posted a comment on discussion Users on Metawidget

    What you're asking for is an embedded expression language, which SWT doesn't provide itself. There are a number of ways you can add one. Try JexlInspector: http://blog.kennardconsulting.com/2008/07/expression-language-el-for-swing.html See also: http://metawidget.org/doc/api/org/metawidget/inspectionresultprocessor/commons/jexl/JexlInspectionResultProcessorConfig.html

  • Posted a comment on discussion Developers on Metawidget

    I think having @Ui annotations on parameters would break a lot of stuff. You'll need to create your own Inspector.

  • Posted a comment on discussion Developers on Metawidget

    Yes, we have something like this (although you may need to adapt it to your needs). MetawidgetAnnotationInspector already recognizes an annotation called UiAction. Most WidgetBuilder implementations recognize UiAction and generate buttons.

  • Posted a comment on discussion Users on Metawidget

    The recommended approach is to write your own WidgetProcessor to 'catch' the widget as it is being constructed and modify it (by setting default button or whatever). Here's a similar example you should be able to adapt: http://blog.kennardconsulting.com/2012/06/swingmetawidget-limiting-length-of.html

  • Posted a comment on discussion Users on Metawidget

    Some tips: First, bind the Metawidget value to a Map Remove all Inspectors except XmlSchemaInspector (since you are using an XML Schema as your source of truth). At the moment, PropertyTypeInspector is probably stopping you since your value is empty. Debug XmlSchemaInspector and make sure 'inspect' is being called. Debug what it is returning (the inspection result) You will need to create your own version of org.metawidget.faces.component.widgetprocessor.StandardBindingProcessor that outputs JSF...

  • Posted a comment on discussion Users on Metawidget

    In JSF, setPath is handled by JSF's normal value binding. Are you meaning to instantiate the JSF Metawidget programmatically? You wouldn't normally do 'new HtmlMetawidget' in Java code. Rather, you would use... <m:metawidget value="#{foo.bar}" config="myConfig"/> ...just like a regular JSF Facelets (or JSP) tag. And therefore 'foo.bar' is the path. And you would configure your Metawidget through an XML config file (myConfig), not through Java code. You can still opt to use the XSD Inspector in this...

  • Posted a comment on discussion Users on Metawidget

    Can you send example code to support@metawidget.org?

View All

Personal Data

Username:
kennardconsult
Joined:
2007-10-20 09:43:34

Projects

Skills

  • No skills entered.

Personal Tools