Re: responseForComponentWithName() and session

2011-04-12 Thread Chuck Hill
You can also take a look at the source of GVC.SiteMaker if you want. I will warn you that it is a little on the large side. http://sourceforge.net/projects/gvcsitemaker/ Chuck On Apr 12, 2011, at 8:24 PM, Paolo Sommaruga wrote: > > Thanks Chuck, > > I will look at > templateWithHTMLStrin

Re: responseForComponentWithName() and session

2011-04-12 Thread Paolo Sommaruga
Thanks Chuck, I will look at templateWithHTMLString I don't know it Paolo Il giorno 13/apr/2011, alle ore 02:52, Chuck Hill ha scritto: > > On Apr 12, 2011, at 2:25 PM, Paolo Sommaruga wrote: > >> Hi, >> >> I try to explain more. My web application is sort of cms. Basically the idea >>

Re: responseForComponentWithName() and session

2011-04-12 Thread Chuck Hill
On Apr 12, 2011, at 2:25 PM, Paolo Sommaruga wrote: > Hi, > > I try to explain more. My web application is sort of cms. Basically the idea > is simple. Maybe a little too simple for what you want now. :-) > The main page displays an eoObject that has an attribute "text". The > administrat

Re: responseForComponentWithName() and session

2011-04-12 Thread Paolo Sommaruga
Hi, I try to explain more. My web application is sort of cms. Basically the idea is simple. The main page displays an eoObject that has an attribute "text". The administrator can edit such "text" attribute via a java client application. He can insert anywhere in the "text" some special tag, li

Re: responseForComponentWithName() and session

2011-04-11 Thread Farrukh Ijaz
I don't remember exactly but Paolo I think you need to configure your application not to create sessions when you access a component. You may be able to find some article on sessionless login for a clue. Or you may need to pass appropriate params in your method call instead of null null null...

Re: responseForComponentWithName() and session

2011-04-11 Thread Amedeo Mantica
why u would like to do it ? put programmatically in html? what is your goal? On 11/apr/2011, at 13.07, Paolo Sommaruga wrote: > Hi Amedeo, > > After invoking the child component I use response.contentString() component > to retrieve the html generated and insert it programmatically somewhere i

Re: responseForComponentWithName() and session

2011-04-11 Thread Chuck Hill
> "I have an application in which inside in a component I need to call a child > component invoked programmatically in the java code of the parent component." I have a feeling that you are doing something the wrong (and overly difficult) way. Could you use a WOSwitchComponent or WOComponentCon

Re: responseForComponentWithName() and session

2011-04-11 Thread Paolo Sommaruga
Hi Amedeo, After invoking the child component I use response.contentString() component to retrieve the html generated and insert it programmatically somewhere in the main component html output. With pageWithName doesn't work, I have many exception of type "lookup of unknown key" in the child c

Re: responseForComponentWithName() and session

2011-04-10 Thread Amedeo Mantica
why not: WOComponent myPage = pageWithName(ComponentName.class); . . WOResponse response = myPage.generateResponse(); return response; regards Amedeo On 10/apr/2011, at 20.31, Paolo Sommaruga wrote: > Hi, > > I have an application in which inside in a component I need to call a child > compon

responseForComponentWithName() and session

2011-04-10 Thread Paolo Sommaruga
Hi, I have an application in which inside in a component I need to call a child component invoked programmatically in the java code of the parent component. I use (WOApplication.application ()). responseForComponentWithName(ComponentName, null