Skip to Content
author's profile photo Former Member
Former Member

Access Problem to a Bean

Hello,

I have this piece of code which is using a bean:

bean = new ProfileBean();

IPortalComponentProfile userProfile = request.getComponentContext().getProfile();

Enumeration attr = userProfile.getPropertyAttributes(MYPROPERTY_KEY);

bean.setModelAttributes(this.createAttributesModel(attr, userProfile));

I receive this Exception:

Tag tableView attribute model: Cannot access bean property myProfileBean.modelAttributes in page context.

Can you please tell me what does this error means?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2005 at 01:55 PM

    Hi Roy,

    do you have a useBean tag in your JSP?

    It has to look similar to this example:

    <jsp:useBean 
    	id="MyBeanKey" 
    	scope="session" 
    	class="bean.MyBean" 
    	/>

    Kind regards

    Francisco

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      A possible workaround is to call the java api in between the table view tags ( I remeber doing this but I am not sure what the root cause of the problem was)

      <hbj:tableView
      id="myTableView"
      width="100%"
      
      design="STANDARD"
      headerVisible="false"
      footerVisible="true"
      fillUpEmptyRows="true"
      selectionMode="NONE"
      navigationMode="BYLINE"
      visibleFirstRow="<%= compBean.getVisibleRow()%>"
      visibleRowCount="5"
      onNavigate="onNavigate">
      >
      <%
      myTableView.setModel (compBean.getModel() ) ;
      %>
      </hbj:tableView>
      

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.