1
votes

Using the NotesIn9 example from episode 133 I tried to adapt the code to a database maintanance XPage. I replaced all the contact stuff with database information: a database form, a database view, a DatabaseModel.java class, a database_crud XPage. And I defined the DatabaseModel.java class as managed bean. But when I try to open y XPage I get the following error:

Error getting property 'dbName' from bean of type com.ibm.domino.xsp.module.nsf.NSFComponentModule$XPagesDatabase

Here is the managed bean definition:

<managed-bean>
    <managed-bean-name>database</managed-bean-name>
    <managed-bean-scope>view</managed-bean-scope>
    <managed-bean-class>org.openntf.howyabean.model.DatabaseModel</managed-bean-class>
</managed-bean>

And here the dbName field in the XPage:

<div class="form-group">
                            <xp:label for="dbName" value="Database Name" />
                            <xp:inputText id="dbName" value="#{database.dbName}" />
                        </div>

I'm new to XPages development and don't know where to search for the problem. Any ideas?

1

1 Answers

2
votes

Change the bean name from database to something else as database is a reserved name.