javaee / jaxb2-commons

JAXB Implementation project has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/jaxb-ri/
Other
17 stars 15 forks source link

Can't use PropertyChangeListeners generated listener #27

Open glassfishrobot opened 13 years ago

glassfishrobot commented 13 years ago

Hi,

I want to use this plugin, but when i use it with command line argument '-Xinject-listener-code', generated beans aren't generated with PropertyChangeListeners butlListeners are generated with VetoableChangeListeners.

Issue can be fixed if you add the choice to generate PropertyChangeListeners by default or with a command argument.

Thanks

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 13 years ago

Reported by tibobd

glassfishrobot commented 11 years ago

mwise said: With org.jvnet.jaxb2-commons property-listener-injector v1.1-SNAPSHOT you have this option available, it needs to go in your bindings.xjb file. See below:-

<?xml version="1.0" encoding ="UTF-8"?>
<jaxb:bindings
    schemaLocation="po.xsd"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"    xmlns:li="http://jaxb.dev.java.net/plugin/listener-injector"
    version="2.1"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
  <jaxb:bindings node="/xs:schema">
    <li:listener>java.beans.PropertyChangeListener</li:listener>
  </jaxb:bindings>
</jaxb:bindings>
glassfishrobot commented 13 years ago

Was assigned to lexi

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB2_COMMONS-27