[Trinidad] Large file upload and processing ideas

2010-07-20 Thread Paul Mander
Related to Trinidad in that this is the main application/UI technology to be used. We have a requirement to process a large amount of data and insert it into a database. The data will be in a csv format and have millions of entries. We have 2 main issues here... 1. Getting the data into the app

[Trinidad] partialSubmit with an action

2010-07-20 Thread Paul Mander
I've just picked up some code that was appearing to execute twice or even three times for every request. I put some logging in a phase listener and a custom faces servlet (delegates to a real one) so I could track the requests. I finally tracked the problem down to command components that

ui:param value accessible in backing bean?

2010-07-20 Thread Michael Heinen
Is it possible to access the value of a facelets ui:param tag in phase render response in a backing bean? I tried to resolve #{activeTab} in MyController.getOnlick() without success. Sample: 1) Template ui:composition template=templates/main.xhtml ui:param name=activeTab value=blabla/

Re: [Trinidad] partialSubmit with an action

2010-07-20 Thread Walter Mourão
Hi Paul, (I would have assumed that it would ignore the partial submit as the entire view needs updating). Actually the action can respond a null value and the partial submit works fine. I'm currently using this way, so I don't think the behavior you described is a general issue, maybe a

Re: [Trinidad] partialSubmit with an action

2010-07-20 Thread Paul Mander
Walter Mourão-2 wrote: Actually the action can respond a null value and the partial submit works fine. I'm currently using this way, so I don't think the behavior you described is a general issue, maybe a localized bug. Can you explain why you are doing this? If you need to re-render the

Re: [Trinidad] partialSubmit with an action

2010-07-20 Thread Walter Mourão
On Tue, Jul 20, 2010 at 1:18 PM, Paul Mander paul.s.man...@gmail.comwrote: Can you explain why you are doing this? If you need to re-render the whole page (by returning null from a command action) then why are you using a partial submit? Surely a partial submit is to target a part of a view

Re: ui:param value accessible in backing bean?

2010-07-20 Thread Leonardo Uribe
Hi I checked in deep some days ago ui:param, and it only define the expression when the view is build, but its context is not preserved on other phases. FaceletContext extends from ELContext and override its VariableMapper and FunctionMapper. So in practice, ui:param just add a variable on the

Re: ui:param value accessible in backing bean?

2010-07-20 Thread Jakob Korherr
Hi Michael, You can use c:set from the JSTL to put the value into the request scope. Then you can access it in the facelet and also later in the action method. Namespace: xmlns:c=http://java.sun.com/jsp/jstl/core; c:set target=#{requestScope} property=foo value=fooValue / Regards, Jakob