Re: [ANN] WOInject 1.0

2012-04-10 Thread Ramsey Gurley
On Apr 7, 2012, at 8:07 PM, Henrique Prange wrote: > Suppose you have a Service interface and a BasicService implementation for > it. This Service is required across your components. So you have something > like this: > > class ComponentOne { > Service service = new BasicService(); > } >

Re: preventing direct component access

2012-04-10 Thread Lachlan Deck
On 11/04/2012, at 3:31 AM, Amedeo Mantica wrote: > I have patched WOComponentRequestHandler and created a pull request in the > wonder/integration branch > > then you will set the property: > > ERXDirectComponentAccessAllowed=false You might want to add that property to the default project tem

Re: Your JasperReport Example and D2W

2012-04-10 Thread Theodore Petrosky
There is a section of the link: http://wiki.wocommunity.org/display/WO/Adding+a+Normal+WOComponent+Page+to+an+ERModernLook+based+application If I read this I need to create the DownloadIsCompletePage as a D2W component with the factory method in: public class FileTaskDownloadController extends

Re: Log4J logging during WOUnit tests

2012-04-10 Thread Paul Hoadley
Hi Henrique, On 11/04/2012, at 2:46 AM, Henrique Prange wrote: > Properties files are not loaded when tests are executed by JUnit. There is an > issue [1] for that problem. I was obviously imagining it yesterday when I wrote "I can see the properties get picked up at launch". You're right (na

RE: Optimizing EOF Applications - what does this mean to you?

2012-04-10 Thread Michael Gargano
Hey Chuck, I know this is a little late, but I'd like to see something about... - Best way to handle freshness across multiple instances. - How best to do operations not handled by fetch specs. (e.g. group by, adding a column that needs to come from another data source [like an a

Re: preventing direct component access

2012-04-10 Thread Ramsey Gurley
Much ado about nothing ;-) On Apr 10, 2012, at 11:20 AM, Patrick Robinson wrote: > Thanks again for that. I hadn't realized it was that easy, or I'd have done > it myself. Maybe next time! :-) > > - Patrick > > On Apr 10, 2012, at 2:15 PM, Amedeo Mantica wrote: > >> I originally replaced t

Re: 401 Authorization explained

2012-04-10 Thread Daniele Corti
Hi 2012/4/10 Chuck Hill > String originalURLFromRequest = request.headerForKey("request_uri"); is it so easy? I thought it was more complicated... Thank you Chuck! On 2012-04-10, at 10:26 AM, Daniele Corti wrote: > > > Hi Everyone, > > I was wondering, if I use the ErrorDocument in Apache fo

Re: preventing direct component access

2012-04-10 Thread Patrick Robinson
Thanks again for that. I hadn't realized it was that easy, or I'd have done it myself. Maybe next time! :-) - Patrick On Apr 10, 2012, at 2:15 PM, Amedeo Mantica wrote: > I originally replaced the WOComponentRequestHandler (get loaded in the > classpath before the WO one) > > After Ramsey

Re: preventing direct component access

2012-04-10 Thread Amedeo Mantica
I originally replaced the WOComponentRequestHandler (get loaded in the classpath before the WO one) After Ramsey Suggestion I renamed and moved to ERXComponentRequestHandler, then patched ERXApplication to assign ERXComponentRequestHandler to the componenthandler key Amedeo On 10/apr/2012, at

Re: preventing direct component access

2012-04-10 Thread Ramsey Gurley
Probably should be ERX to be consistent. Yeah, WO is very pluggable. You can register your own request handlers for any request handler key. Make up your own request handlers and keys if you like. WOApplication app = WOApplication.application(); app.registerRequestHandler(new ERXComponentRequest

Re: preventing direct component access

2012-04-10 Thread Patrick Robinson
Good idea, so far as I understand it. I've not yet quite grasped the distinction between the ER classes vs. the ERX classes. Also, would you register the new handler with the same old request handler key? On Apr 10, 2012, at 1:47 PM, Ramsey Gurley wrote: > Commented already > > https://githu

Re: preventing direct component access

2012-04-10 Thread Patrick Robinson
Wow, that's great, Amedeo! I hadn't paid much attention to that little corner of Project Wonder before. What is it that forces the patched PW version of that class to be loaded rather than the original WO version? On Apr 10, 2012, at 1:31 PM, Amedeo Mantica wrote: > I have patched WOComponent

Re: preventing direct component access

2012-04-10 Thread Ramsey Gurley
Commented already https://github.com/projectwonder/wonder/pull/150 On Apr 10, 2012, at 10:33 AM, Pascal Robert wrote: > > Le 2012-04-10 à 13:29, Amedeo Mantica a écrit : > >> I have patched WOComponentRequestHandler and created a pull request in the >> wonder/integration branch >> >> then yo

Re: Most requested stuff on Google Moderator

2012-04-10 Thread Ricardo J. Parada
On Mar 29, 2012, at 1:42 PM, Kieran Kelleher wrote: > All anyone has to do is add your fork's remote, fetch the remote, checkout > the feature branch (3 simple commands) and play with the feature or examine > it. Any peer can easily do diff between your tree and master or integration > to see

Re: 401 Authorization explained

2012-04-10 Thread Chuck Hill
String originalURLFromRequest = request.headerForKey("request_uri"); On 2012-04-10, at 10:26 AM, Daniele Corti wrote: > Hi Everyone, > I was wondering, if I use the ErrorDocument in Apache for the 401 to redirect > on a direct action (for example ErrorDocument 401 > /cgi-bin/WebObjects/wa/req

Re: preventing direct component access

2012-04-10 Thread Pascal Robert
Le 2012-04-10 à 13:29, Amedeo Mantica a écrit : > I have patched WOComponentRequestHandler and created a pull request in the > wonder/integration branch > > then you will set the property: > > ERXDirectComponentAccessAllowed=false If someone wants to review it: https://github.com/projectwo

Re: preventing direct component access

2012-04-10 Thread Amedeo Mantica
I have patched WOComponentRequestHandler and created a pull request in the wonder/integration branch then you will set the property: ERXDirectComponentAccessAllowed=false Amedeo On 10/apr/2012, at 15:14, Patrick Robinson wrote: > I'm pretty sure this "feature" is the only mechanism by which a

Re: preventing direct component access

2012-04-10 Thread Jon Nolan
All of my wrapper components have a conditional i.e. "$rootPage.isAuthorized" around the WOComponentContent. Solves this issue and is handy in dozens of other ways. On 4/10/12 7:14 AM, Patrick Robinson wrote: I'm pretty sure this "feature" is the only mechanism by which a user can request a s

Re: 401 Authorization explained

2012-04-10 Thread Daniele Corti
Hi Everyone, I was wondering, if I use the ErrorDocument in Apache for the 401 to redirect on a direct action (for example ErrorDocument 401 /cgi-bin/WebObjects/wa/requireLogon ), is there a way in WO to obtain the URI that cause the Authentication Error? In PHP you can use the $_SERVER['REQUEST_UR

Re: Log4J logging during WOUnit tests

2012-04-10 Thread Henrique Prange
Hi Paul, Properties files are not loaded when tests are executed by JUnit. There is an issue [1] for that problem. The current workaround is to load the Properties files manually or set the required properties in a static method annotated with @BeforeClass. I'll try to spend some time with WOU

Re: [ANN] WOInject 1.0

2012-04-10 Thread Ricardo J. Parada
Thanks a lot for taking the time to explain it. That helps quite a bit. Ricardo On Apr 7, 2012, at 11:07 PM, Henrique Prange wrote: > Hi Ricardo, > > WOInject is a framework that enables dependency injection in WebObjects > applications by integrating the Guice framework. > > OK. It doesn'

Re: Your JasperReport Example and D2W

2012-04-10 Thread David Holt
Hi Ted, You'll probably have to go through the steps of adding a "normal" component to ERModernLook app to get the DownloadIsComplete page behaving as you wish. http://wiki.wocommunity.org/display/WO/Adding+a+Normal+WOComponent+Page+to+an+ERModernLook+based+application Wrap the DownloadIsCompl

Your JasperReport Example and D2W

2012-04-10 Thread Theodore Petrosky
Kieran, I see in your JasperReport example that in the DownloadIsCompletePage there is a method to set the referringPage. Is there a way to get the D2W context and apply it to the DownloadIsCompletePage in the appendToResponse method so the DownloadIsCompletePage has the PageWrapper? I stuck

Re: Rest Components Questions

2012-04-10 Thread Emmanuel Tote Dominguez Torres
Thanks for the answer Pascal, well, this came from a project i am doing with asterisk, at some time I ended up with different little apps each one implementing a thread that was consulting with the server, then i learned about ERRest, and I changed the way things were done so that my apps were c

Re: New Framework on the way

2012-04-10 Thread ISHIMOTO Ken
OK fine I will replace it. On 2012/04/10, at 15:48, Pascal Robert wrote: > > Le 2012-04-10 à 06:00, ISHIMOTO Ken a écrit : > >> I have only one Class to rewrite a little, and pus to wonder. >> >> After wonder is released I will push the Framework and the Example. >> >> But one Important probl

Re: New Framework on the way

2012-04-10 Thread Pascal Robert
Le 2012-04-10 à 06:00, ISHIMOTO Ken a écrit : > I have only one Class to rewrite a little, and pus to wonder. > > After wonder is released I will push the Framework and the Example. > > But one Important problem I have: > > Which of the Project Wonder LOGOS was the Winner The "logo battl

Re: Rest Components Questions

2012-04-10 Thread Pascal Robert
Le 2012-04-09 à 15:27, Emmanuel Tote Dominguez Torres a écrit : > Good Afternoon List, hope everybody is ok, > > I am working using ERRest and I had this wild idea, so I would like to know > if it is possible to achieve this and some pointers (if it is indeed > possible), > I have been using

Re: preventing direct component access

2012-04-10 Thread Patrick Robinson
I'm pretty sure this "feature" is the only mechanism by which a user can request a specific page (or component) by name. I would want to block arbitrary access to pages as well as prevent spurious session creation. But yes, there are ways to mitigate the effects. If an authenticated "user" is

How to show a spinner on AMD after submit?

2012-04-10 Thread James Cicenia
Hello - What is the trick to show a spinner when the user clicks a submit button? Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Updat

Re: New Framework on the way

2012-04-10 Thread ISHIMOTO Ken
Hi, Most is only UI stuff. The Demo is stateful, but i think with combing to ERRest stateless won't be much problem. Ken On 2012/04/08, at 1:18, Farrukh Ijaz wrote: > Great work Ken! Are they stateless or stateful? > > Farrukh > > ISHIMOTO Ken wrote: > > Hi, > > I am th

Re: New Framework on the way

2012-04-10 Thread ISHIMOTO Ken
I have only one Class to rewrite a little, and pus to wonder. After wonder is released I will push the Framework and the Example. But one Important problem I have: Which of the Project Wonder LOGOS was the Winner Ken On 2012/04/08, at 1:06, Jesse Tayler wrote: > Great looking stuff - >