Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.trails.demo;
 
 
public abstract class NoteListPage extends HibernateListPage implements PageBeginRenderListener
	public abstract Note getNote();
	public abstract void setNote(Note Note);

HibernateListPage doens't persist the "criteria" by default. If you need to rewind the page, like in an AJAX page, you need to explicitly tell the page to persist the property.
	public abstract DetachedCriteria getCriteria();
	public abstract void setCriteria(DetachedCriteria Criteria);
	public void addNote()
	{
		setNote(new Note());
	}
	public void pageBeginRender(PageEvent event)
	{
		super.pageBeginRender(event);
		setNote(new Note());
	}
	private void addStatusResponse(IRequestCycle iRequestCycleString messagge)
	{
/*		AjaxWebRequest ajax = (AjaxWebRequest) iRequestCycle.getAttribute(AjaxWebRequest.AJAX_REQUEST);
		if (ajax != null) ajax.addStatusResponse(messagge);
*/
	}
New to GrepCode? Check out our FAQ X