Jacob,
thanks for your quick reply! I have also used this pageBeginRender approch in some of my components. Unfortunately, pageBeginRender is not always the right place to read properties. In the example from my initial post I used a @For loop to render a block which includes a form. The source iterator of the for loop comes from a database and is read only when the page is being rendered, so it is not available in pageBeginRender.

Regards
Bastian

jake123 schrieb:
Have you tried:

in html:

<input jwcid="@Hidden" value="ognl:myId" id="myId" />

in java:
public abstract class MyPage extends BasePage implements
PageBeginRenderListener {

  public abstract Long getMyId();
  public abstract void setMyId(Long id);

  public void pageBeginRender(PageEvent event) {

    MyObject myObject = getMyService().getMyObject();

    /* set the hidden value */
    setMyId(myObject.getMyId);

  }

}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to