![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJp0TJH6I96JhiGAZiBoBMfGCkTESVd_0sRX72-5ivrK3NbG3QgyAgezeTVj1rnQ8TRY0CErl1KsOxacAbFe7EDOMArORDB6PZQksXDh5_cS5vvGe_yPFzvkO3PRtD4LNmNvwkhbcSfIg/s400/tutorials.png)
metawidget.setToInspect( values );
metawidget.setPath( "person" );
metawidget.setPath( "person" );
...are obscured behind JSF's standard syntax:
<m:metawidget value="#{...}"/>
There are a number of ways you could unobscure them, but so as not to be confusing I'll just talk about one here. Basically I will wrap the 'toInspect' values and the 'path' type in MyManagedBean so that I can pass them both in a single ValueExpression:
<m:metawidget value="#{myManagedBean}"/>
Regardless, the crucial point - as with the Swing version - is that there's a MapInspector and a MapWidgetProcessor and they operate on different Maps.
You can download the complete project here.
0 comments:
Post a Comment