[jboss-user] [JBossWS] - Re: Hide certain fields in return object

kosulin do-not-reply at jboss.com
Tue Aug 12 09:08:55 EDT 2008

Not sure this is what you want, but if I need to send some attribute only if it is not empty, then I declare it as:

	@XmlElement(name = "StatementDate", required = false)
	public final Date getStmtDate()
		return this.stmtDate;
If I want the the attribute to be sent even if it is empty, I use nillable=true

This would not work if you want to prevent a non-empty attribute from being sent though.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170065#4170065

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170065

More information about the jboss-user mailing list