cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Praher <jpra...@yahoo.de>
Subject [XMLForm] xf:itemset how to do it?
Date Wed, 12 Feb 2003 16:51:33 GMT
hi all,
or shall I say, hi noone?

... hopefully this one will be answered ...

allthough I have done it like in the samples, I have some problems
getting xf:itemset bound to existing values of the model.

here's the story:

class MyBean {
	
	Map allLanguages;
	
	MyBean( ) {
		initAllLanguaes( ) ;
	}
	public initAllLanguages( ) {

		allLanguages = new HashMap ( );
		allLanguages.put( "deu", "German" );
		allLanguages.put( "fin", "Finish" );
		allLanguages.put( "sve", "Swedish" );
		....
	}

	public Set allLanguages( ) {
		return allLangues.entrySet( );
	}
}
<xf:itemset nodeset="/allLanguages">
	<xf:caption ref="value"/>
	<xf:value ref="key"/>
</xf:itemset>

is there anything else which the bindings depend on.
looking at the XMLTransformer, I don't understand JXPath at full detail
right now, so I wanted to ask to save time.

thanks

-- Jakob


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message