Re: ConfigDefinitionsWatchdogFilter - defintion refresh conditions?
I've configured the WatchdogFilter to refresh my page definitions. But i can change my html pages (symbols) like i want - the changes are deployed, but clay does not refresh the page with the new content when navigating to the same page. Which conditions have to be met to get this working, i guess i am missing some things. You need to change the outer template or one of the common xml config files. There was too much overhead to check every page composition for nested fragments that have changed. Torsten Gary---BeginMessage--- I've configured the WatchdogFilter to refresh my page definitions. But i can change my html pages (symbols) like i want - the changes are deployed, but clay does not refresh the page with the new content when navigating to the same page. Which conditions have to be met to get this working, i guess i am missing some things. Torsten smime.p7s Description: S/MIME cryptographic signature ---End Message---
Re: Submitted values lost - view is refilled everytime with model values
Now it gets interesting. I tried to get it working, using scxml dialogs instead of SWF. The same problem. Lets take shale dialogs - i guess thats your scope, so you may have better insights for me when using the dialogs, whats going wrong. What version of Clay are you using? What version of Myfaces are you using? It might be related to this issue: https://issues.apache.org/struts/browse/SHALE-418 Torsten Gary---BeginMessage--- Now it gets interesting. I tried to get it working, using scxml dialogs instead of SWF. The same problem. Lets take shale dialogs - i guess thats your scope, so you may have better insights for me when using the dialogs, whats going wrong. Torsten Am Freitag, den 27.04.2007, 14:41 + schrieb Gary VanMatre: From: Torsten Krah [EMAIL PROTECTED] Hm did many Debug Points. My RequestParameterMap got the entered values. They are applied to my components in Phase 2 - setLocalValueSet is called with set = true. Now Phase 3 fails and Lifecycle goes to Phase 6. Now a fresh tree is rendered , because my components does not got a local value set - although the RestoreViewExecutor: Application application = facesContext.getApplication(); ViewHandler viewHandler = application.getViewHandler(); // boolean viewCreated = false; UIViewRoot viewRoot = viewHandler.restoreView(facesContext, viewId); if (viewRoot == null) { viewRoot = viewHandler.createView(facesContext, viewId); viewRoot.setViewId(viewId); facesContext.renderResponse(); // viewCreated = true; } does call the restoreView and the viewRoot is not null. If the view gets restored, why are t he components empty? I was speculating that the spring dialog flow was loosing track of the current dialog. The values in the flowScope were lost because the dialog flow was somehow disconnected. That's why I suggested that you debug the spring FlowPhaseListener. This guy adds a component to the view root. At first, I thought that a Clay full view might be removing the FlowExecutionKeyStateHolder component since there was not any Clay config on that component but after further review, I don't think that's the issue. Clay should only remove components from the tree in the render phase if they are nested under a Clay component (AssignChildrenCommand). This FlowExecutionKeyStateHolder component is added as a child to the view root by the FlowPhaseListener. It's not added as a child under a composing Clay component so I don't think that's the problem. However, stepping through the FlowPhaseListener should point to the problem. I am a little bit confused now, i've missed something, but dont know where to look now. The PhaseListener is doing the flow story and seems to work correct - i hope i did not missunderstand things. Any hints? I'm not familiar with the spring web flow. I'm only making guesses based on a quick look through the javadoc. If you create an example, and attach it to a JIRA ticket, I'll try to make time to take a look. Torsten E-Mail-Nachricht-Anlage Weitergeleitete Nachricht Von: Torsten Krah [EMAIL PROTECTED] An: user@shale.apache.org Betreff: Re: Submitted values lost - view is refilled everytime with model values Datum: Thu, 26 Apr 2007 17:38:42 + Hm did many Debug Points. My RequestParameterMap got the entered values. They are applied to my components in Phase 2 - setLocalValueSet is called with set = true. Now Phase 3 fails and Lifecycle goes to Phase 6. Now a fresh tree is rendered , because my components does not got a local value set - although the RestoreViewExecutor: Application application = facesContext.getApplication(); ViewHandler viewHandler = application.getViewHandler(); // boolean viewCreated = false; UIViewRoot viewRoot = viewHandler.restoreView(facesContext, viewId); if (viewRoot == null) { viewRoot = viewHandler.createView(facesContext, viewId); viewRoot.setViewId(viewId); facesContext.renderResponse(); // viewCreated = true; } does call the restoreView and the viewRoot is not null. If the view gets restored, why are the components empty? I am a little bit confused now, i've missed something, but dont know where to look now. The PhaseListener is doing the flow story and seems to work correct - i hope i did not missunderstand things. Any hints? Torsten Am Donnerstag, den 26.04.2007, 15:51 + schrieb Gary VanMatre: Got a problem with clay and flowScoped Spring beans. My view is everytime filled with the model values. The submitted values are lost. I can enter some data in my input fields and submit the form - if i left some required input fields empty, a message appears that something
Re: navigate between http and https
On 4/30/07, JS Portal Support [EMAIL PROTECTED] wrote: Hi, Does shale dialog, any of the other shale components or maybe myfaces have the ability to define if the requests should go over http or https. Up to now the only control over this I found was with the tomahawk sanbox form (scheme). I'm looking for a way to get a request from http, handle it and redirect to the new page over https or the other way around. What would be the best way to handle this? For JSF in general, there is no mechanism built in to the JSF navigation scheme to do this. You will need to generate an absolute URL for the switchover, and then use either: * h:outputLink or equivalent that lets you use an absolute URL * Programmatically redirect via ExternalContext.redirect() followed by a call to FacesContext.responseComplete(). The tricky part of this, which you implied you need but did not mention specifically but it sounds like you want, is that the old and new pages share an HTTP session (in other words, they are part of the same application). The classic scenarios for this: * Login page submits via HTTPS, but the rest of the app runs under HTTP. * Shopping application runs mostly under HTTP, but the checkout process is under HTTPS. I haven't tried any of these solutions personally, but techniques used by packages like SSLExt and Acegi security should apply in a JSF world as well. I also understand that the newest versions of Seam have support for this sort of thing more integrated with JSF (we might need to go steal^h^h^h^h^hevaluate some of these ideas for Shale :-). That all being said, I need to throw open a disclaimer here ... I have never been able to convince myself that switching back and forth, while maintaining session affinity, is safe from session spoofing attacks (since the session ID itself has to be sent in the clear on an http link). I would love to be convinced otherwise, but this is the primary reason I have avoided building apps that behave in this manner. Craig Joost Schouten PS: Those of you in Amsterdam, I hope the conference will be a good. By the looks of it Queensday must have been great. If I wouldn't be living in New Zealand for the year I would have loved to come and meet some of the people who have been so helpful over the last couple of months.
Re: ConfigDefinitionsWatchdogFilter - defintion refresh conditions?
Thx - good to know, touch will do this ;-) Torsten Am Montag, den 30.04.2007, 14:52 + schrieb Gary VanMatre: I've configured the WatchdogFilter to refresh my page definitions. But i can change my html pages (symbols) like i want - the changes are deployed, but clay does not refresh the page with the new content when navigating to the same page. Which conditions have to be met to get this working, i guess i am missing some things. You need to change the outer template or one of the common xml config files. There was too much overhead to check every page composition for nested fragments that have changed. Torsten Gary E-Mail-Nachricht-Anlage Weitergeleitete Nachricht Von: Torsten Krah [EMAIL PROTECTED] An: user@shale.apache.org Betreff: ConfigDefinitionsWatchdogFilter - defintion refresh conditions? Datum: Sun, 29 Apr 2007 14:15:13 + I've configured the WatchdogFilter to refresh my page definitions. But i can change my html pages (symbols) like i want - the changes are deployed, but clay does not refresh the page with the new content when navigating to the same page. Which conditions have to be met to get this working, i guess i am missing some things. Torsten smime.p7s Description: S/MIME cryptographic signature