Re: Render queue error in SetupRender

2015-01-25 Thread Cheng Zhang
Hi Geoff, Thanks for responding. I removed the @Persist but does not help. I have another project with almost same code working well. I found the difference is, in that project, the create page's java import org.apache.tapestry.ioc.annotations.Inject rather than org.apache.tapestry5.ioc.annotatio

Re: Custom exception report for AJAX requests

2015-01-25 Thread Ilya Obshadko
Ended up with something like this: https://gist.github.com/xfyre/12612d45bccf16422050 Kind of a brutal approach, but works OK On Sun, Jan 25, 2015 at 2:26 PM, Ilya Obshadko wrote: > I have looked into source and seems like we can't do much. AJAX exception > reporting is hard-coded in exception-

Re: Render queue error in SetupRender

2015-01-25 Thread Geoff Callender
I'm not sure what all of those @Inject's are for, and I'd recommend avoiding @Persist wherever possible. Have a look at this example for ideas: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/together/easycrud/person/create T5.3: http://jumpstart.doublenegative.com.au/ju

Re: Getting a page context in a embedded component

2015-01-25 Thread Ilya Obshadko
you may @Inject ComponentEventLinkEncoder and then PageRenderRequestParameters requestParams = componentLinkEncoder.decodePageRenderRequest(request) requestParams.getActivationContext() will give you what you want On Sun, Jan 25, 2015 at 6:45 PM, Boris Horvat wrote: > Hi all, > > What is the

Getting a page context in a embedded component

2015-01-25 Thread Boris Horvat
Hi all, What is the best way to let the component on same page know what was the context used on that page? I have a Header like component that should mark the page that is selected, As not all pages have context I would like to avoid passing context to the component directly if possible. I cou

Re: Custom exception report for AJAX requests

2015-01-25 Thread Ilya Obshadko
I have looked into source and seems like we can't do much. AJAX exception reporting is hard-coded in exception-frame.coffee and this part cannot be properly altered. If we don't supply X-Tapestry-ErrorMessage header, this iframe-based exception reporting is turned off (which is good). ajax.coffee

Re: NoSuchElementException

2015-01-25 Thread George Christman
Below is the tml code 12 13 14 15 16 17 18 19 20 21 22 java @Property private FacetView facetView; @Property private List> facetViews; public void onPrepareFromFilterForm(String filterType) throws IOException { try { searchResponse = vehicleSearchD

Render queue error in SetupRender

2015-01-25 Thread Cheng Zhang
Hi All, I was trying to create a new page for adding new person to existing person array. In the showAll page there is a link to this new page which I put BeanEditForm in it. I always get below error when I click the link. Render queue error in SetupRender[Add:beaneditform.editor]: Exception inst