Hi Kent,
thanks for your answer!
| I think the best way is to pass the component to it when you need
| to get a userModel:
|
| class ModelSource {
| IPropertySelectionModel getUserModel(IComponent component) {
| ...
| component.getMessages().getMessage("user_type_0");
| ...
| }
| }
Well, but the problem is, that the propertySelectionModel is
referenced directly in the .page file like this:
<component id="inputType" type="PropertySelection">
<binding name="value" value="attributes.userType"/>
<binding name="model" value="modelSource.userModel"/>
</component>
modelSource in injected with the annotation
@InjectObject("service:plattform.ModelSource")
public abstract ModelSource getModelSource();
How can I pass the component to the getUserModel()
method in this case?
Sncerly,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]