Re: Override session expiration page

2006-09-22 Thread andyhot
Karthik N wrote:
> andy, while i have your attention :-), i had a question:
>
> handleStaleSessionException on the engine class - when does it get
> called in
> a request-response cycle?
>
> will it get called only during a stateful form, or will it get called
> even
> before any tapestry page gets validated.
I *think* only in stateful forms and stateful links, i.e. by the direct
service.
In both
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Form.html
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/DirectLink.html
stateful parameter is true by default..

I believe that the page service doesn't handle this (and IMHO it
shouldn't) .

>
> the issue i have is that we have some logic in the page validate which
> relies on stuff in the HTTP session, and i want to catch the expiration
> before the page validate gets called
> any pointers?
>
> On 9/23/06, andyhot <[EMAIL PROTECTED]> wrote:
>>
>> Karthik N wrote:
>> > follow the thread: Expired Session Message - nabble seems to have
>> > mixed 2 or
>> > 3 threads in 1.
>>
>> nope, it's not nabble's fault. In order to send new mails to this list,
>> some people
>> are used to just clicking on reply on some other mail and changing its
>> subject.
>>
>> >
>> > the gist, as i've gathered so far - you can create and register
>> your own
>> > StaleSession page
>>
>> yep, just create a page named StaleSession
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Override session expiration page

2006-09-22 Thread Karthik N

andy, while i have your attention :-), i had a question:

handleStaleSessionException on the engine class - when does it get called in
a request-response cycle?

will it get called only during a stateful form, or will it get called even
before any tapestry page gets validated.

the issue i have is that we have some logic in the page validate which
relies on stuff in the HTTP session, and i want to catch the expiration
before the page validate gets called

any pointers?

On 9/23/06, andyhot <[EMAIL PROTECTED]> wrote:


Karthik N wrote:
> follow the thread: Expired Session Message - nabble seems to have
> mixed 2 or
> 3 threads in 1.

nope, it's not nabble's fault. In order to send new mails to this list,
some people
are used to just clicking on reply on some other mail and changing its
subject.

>
> the gist, as i've gathered so far - you can create and register your own
> StaleSession page

yep, just create a page named StaleSession


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Thanks, Karthik


Re: Override session expiration page

2006-09-22 Thread andyhot
Karthik N wrote:
> follow the thread: Expired Session Message - nabble seems to have
> mixed 2 or
> 3 threads in 1.

nope, it's not nabble's fault. In order to send new mails to this list,
some people
are used to just clicking on reply on some other mail and changing its
subject.

>
> the gist, as i've gathered so far - you can create and register your own
> StaleSession page

yep, just create a page named StaleSession


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Override session expiration page

2006-09-22 Thread Karthik N

i've been reading up on this

http://www.nabble.com/Asynchronous-form-submission-tf2253801.html#a6270976

follow the thread: Expired Session Message - nabble seems to have mixed 2 or
3 threads in 1.

the gist, as i've gathered so far - you can create and register your own
StaleSession page

good luck.

On 9/23/06, Phillip Rhodes <[EMAIL PROTECTED]> wrote:


I would like to change the default Session Expiration page that tapestry
uses.  Any pointers?

I can't find this in the docs.

Thanks.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Thanks, Karthik


Re: EventListener can update a For component ?

2006-09-22 Thread Jesse Kuhnert

I just noticed and fixed it, but can't "quite" do a new snapshot release
until some date parsing issues get resolved.

It wouldn't be extremely hard for you to fix temporarily...The
tapestry.corepackage (
core.js) had a bug in the load() function...When it found an includescript
element it would correctly load it but didn't do a block continue...The fix
is to add a continue statement as the other script element types do.

On 9/22/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote:


Thanks Patrick!!!

I've look to this component and now I use a "workarround" I show a radio
button to select which item the user wants to remove. This radio button
keeps the for index, and in the server side I can refer directly to the
correct element. This works fine!!! I'm happy to see that this is really
easy to do !

But (there is always some problem) I have another problem which it seem
really strange, at least for me.

The system works fine when inside the loop I just add simple tags. But I
have to add a more complex one (a component). Everything is well rendered,
but when I try to add a new element or any, just using the @EventListeners
methods, it doesn't work, it arrives to the server, and I get which seems
to
be a correct response, but it doesn't updates correctly the html elements.
I tried to turn on dojo debugging and get the following error:


DEBUG: 0:19:50: Response recieved.
DEBUG: 0:19:50: Received element content for id  of:

ERROR: 0:19:50: No node could be found to update content in with id
includescript


Any of you have ever had this exception ???

In fact it works when the number of tapetry compenents in the inner
tapestry
component is very short (3 or less), but I have about 20 components.

Thanks in advance!
  Robert

On 9/22/06, Patrick Moore < [EMAIL PROTECTED]> wrote:
>
> take a look at the For component docs. This component has pretty good
doc
> that talks about that issue.
>
>


--
Robert Ramírez Vique
Computer Science Engineer





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Override session expiration page

2006-09-22 Thread Phillip Rhodes
I would like to change the default Session Expiration page that tapestry 
uses.  Any pointers?


I can't find this in the docs.

Thanks.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to listent for the Request Cycle End

2006-09-22 Thread Dobrin Ivanov
Cool :) 
Thanks a lot, it works for me too :)

It seems that the documentation is poor or I am not
searching at the right place..?

--- Bryan Lewis <[EMAIL PROTECTED]> wrote:

> I believe the reason the WebRequestServicerFilter
> was suggested was to
> avoid that inelegant bit.  This worked for me:
> 
>   
interface="org.apache.tapestry.services.WebRequestServicerFilter">
> 
>class="cview.services.WebRequestFilter">
>  value="infrastructure:applicationStateManager"/>
>   
> 
>   
> 
>   
configuration-id="tapestry.request.WebRequestServicerPipeline">
>  object="service:WebRequestFilter" />
>   
> 
> public class WebRequestFilter implements
> WebRequestServicerFilter {
> private ApplicationStateManager appStateManager;
> public void
> setAppStateManager(ApplicationStateManager asm) {
> appStateManager = asm;
> }
> 
> public void service()  {
> servicer.service(request, response);
> System.out.println("visit = " + (Visit)
> appStateManager.get("visit"));
> }
> }
> 
> 
> Dobrin Ivanov wrote:
> > Thanks, now it works. My filter is :
> > -
> > public void service(WebRequest request,
> WebResponse
> > response, WebRequestServicer servicer) throws
> > IOException { 
> >   // Request Cycle Begin
> >   servicer.service(request, response);
> >   // Request Cycle End
> >   WebSession webSession =
> request.getSession(false);
> >   if (webSession!=null) {
> > String visitKey = "state:" + APP_NAME +
> ":visit";
> > Visit visit = (Visit)
> > webSession.getAttribute(visitKey); 
> > // use visit
> >   }
> > }
> > -
> >
> > So, we again have this visit-from-session code,
> but
> > the only inelegant bit is this visitKey assembling
> > part may be :)
> >
> > --- James Carman <[EMAIL PROTECTED]>
> wrote:
> >
> >   
> >> Sorry.  Try
> >> tapestry.request.WebRequestServicerPipeline.  As
> I
> >> said, it was
> >> off the top of my head.  Sorry for the typo.
> >>
> >> -Original Message-
> >> From: Dobrin Ivanov
> >> [mailto:[EMAIL PROTECTED] 
> >> Sent: Friday, September 22, 2006 1:45 PM
> >> To: Tapestry users
> >> Subject: RE: How to listent for the Request Cycle
> >> End
> >>
> >> 10x
> >>
> >> Now i get the error below. Any chance that there
> are
> >> some docs for this?
> >>
> >> 1547 [main] ERROR
> >>
> >> 
> >
>
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/weprom]
> >   
> >>  - Servlet /weprom threw load() exception
> >> org.apache.hivemind.ApplicationRuntimeException:
> >> Error
> >> at context:/WEB-INF/hivemodule.xml, line 19,
> column
> >> 79: Module weprom has contributed to unknown con
> >> figuration point
> >> hivemind.request.WebRequestServicerPipeline. The
> >> contribution has been ignored.
> >> [context:/WEB-INF/hivemodule.xml, line 19, column
> >> 79]
> >> at
> >>
> >> 
> >
>
org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39
> >   
> >> )
> >>
> >> --- James Carman <[EMAIL PROTECTED]>
> wrote:
> >>
> >> 
> >>> You can put it in your WEB-INF folder or in
> >>> WEB-INF/classes/META-INF.
> >>> Tapestry (actually HiveMind) will find it in
> >>>   
> >> either
> >> 
> >>> case.
> >>>
> >>> -Original Message-
> >>> From: Dobrin Ivanov
> >>> [mailto:[EMAIL PROTECTED] 
> >>> Sent: Friday, September 22, 2006 1:26 PM
> >>> To: Tapestry users
> >>> Subject: RE: How to listent for the Request
> Cycle
> >>> End
> >>>
> >>> And where should be located my hivemodule.xml?
> >>>   
> >> (I'm
> >> 
> >>> using just Tapestry, I know it lies above
> hivemind
> >>> microkernel...)
> >>>
> >>>
> >>> --- James Carman <[EMAIL PROTECTED]>
> >>>   
> >> wrote:
> >> 
>  To plug into the WebRequestServicerPipeline,
> you
>  implement the
>  WebRequestServicerFilter interface:
> 
>  public class MyFilter implements
>  WebRequestServicerFilter
>  {
>  }
> 
>  Then, in your hivemodule.xml you plug it into
>  
> >> the
> >> 
>  pipeline:
> 
>   
>  
> >
>
configuration-id="hivemind.request.WebRequestServicerPipeline">
> >   
>  
> >>> object="instance:MyFilter"
> >>>   
>  />
>  
> 
>  That's off the top of my head, but you get the
>  
> >>> idea.
> >>>   
>   This basically acts
>  like a servlet filter, but you can plug
>  hivemind-managed filters in (so you
>  can inject stuff into your implementation
>  
> >>> objects).
> >>>   
>  -Original Message-
>  From: Dobrin Ivanov
>  [mailto:[EMAIL PROTECTED] 
>  Sent: Wednesday, September 20, 2006 1:30 PM
>  To: Tapestry users
>  Subject: Re: How to listent for the Request
>  
> >> Cycle
> >> 
>  End
> 
>  I do not know about this custom Engine classes
>  changes
>  (frowned)... 
> 

Re: How to listent for the Request Cycle End

2006-09-22 Thread Bryan Lewis
I believe the reason the WebRequestServicerFilter was suggested was to
avoid that inelegant bit.  This worked for me:

  

  

  

  

  

  

public class WebRequestFilter implements WebRequestServicerFilter {
private ApplicationStateManager appStateManager;
public void setAppStateManager(ApplicationStateManager asm) {
appStateManager = asm;
}

public void service()  {
servicer.service(request, response);
System.out.println("visit = " + (Visit)
appStateManager.get("visit"));
}
}


Dobrin Ivanov wrote:
> Thanks, now it works. My filter is :
> -
> public void service(WebRequest request, WebResponse
> response, WebRequestServicer servicer) throws
> IOException { 
>   // Request Cycle Begin
>   servicer.service(request, response);
>   // Request Cycle End
>   WebSession webSession = request.getSession(false);
>   if (webSession!=null) {
> String visitKey = "state:" + APP_NAME + ":visit";
> Visit visit = (Visit)
> webSession.getAttribute(visitKey); 
> // use visit
>   }
> }
> -
>
> So, we again have this visit-from-session code, but
> the only inelegant bit is this visitKey assembling
> part may be :)
>
> --- James Carman <[EMAIL PROTECTED]> wrote:
>
>   
>> Sorry.  Try
>> tapestry.request.WebRequestServicerPipeline.  As I
>> said, it was
>> off the top of my head.  Sorry for the typo.
>>
>> -Original Message-
>> From: Dobrin Ivanov
>> [mailto:[EMAIL PROTECTED] 
>> Sent: Friday, September 22, 2006 1:45 PM
>> To: Tapestry users
>> Subject: RE: How to listent for the Request Cycle
>> End
>>
>> 10x
>>
>> Now i get the error below. Any chance that there are
>> some docs for this?
>>
>> 1547 [main] ERROR
>>
>> 
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/weprom]
>   
>>  - Servlet /weprom threw load() exception
>> org.apache.hivemind.ApplicationRuntimeException:
>> Error
>> at context:/WEB-INF/hivemodule.xml, line 19, column
>> 79: Module weprom has contributed to unknown con
>> figuration point
>> hivemind.request.WebRequestServicerPipeline. The
>> contribution has been ignored.
>> [context:/WEB-INF/hivemodule.xml, line 19, column
>> 79]
>> at
>>
>> 
> org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39
>   
>> )
>>
>> --- James Carman <[EMAIL PROTECTED]> wrote:
>>
>> 
>>> You can put it in your WEB-INF folder or in
>>> WEB-INF/classes/META-INF.
>>> Tapestry (actually HiveMind) will find it in
>>>   
>> either
>> 
>>> case.
>>>
>>> -Original Message-
>>> From: Dobrin Ivanov
>>> [mailto:[EMAIL PROTECTED] 
>>> Sent: Friday, September 22, 2006 1:26 PM
>>> To: Tapestry users
>>> Subject: RE: How to listent for the Request Cycle
>>> End
>>>
>>> And where should be located my hivemodule.xml?
>>>   
>> (I'm
>> 
>>> using just Tapestry, I know it lies above hivemind
>>> microkernel...)
>>>
>>>
>>> --- James Carman <[EMAIL PROTECTED]>
>>>   
>> wrote:
>> 
 To plug into the WebRequestServicerPipeline, you
 implement the
 WebRequestServicerFilter interface:

 public class MyFilter implements
 WebRequestServicerFilter
 {
 }

 Then, in your hivemodule.xml you plug it into
 
>> the
>> 
 pipeline:

 >>>
 
> configuration-id="hivemind.request.WebRequestServicerPipeline">
>   
   >>> 
>>> object="instance:MyFilter"
>>>   
 />
 

 That's off the top of my head, but you get the
 
>>> idea.
>>>   
  This basically acts
 like a servlet filter, but you can plug
 hivemind-managed filters in (so you
 can inject stuff into your implementation
 
>>> objects).
>>>   
 -Original Message-
 From: Dobrin Ivanov
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 20, 2006 1:30 PM
 To: Tapestry users
 Subject: Re: How to listent for the Request
 
>> Cycle
>> 
 End

 I do not know about this custom Engine classes
 changes
 (frowned)... 
   is there some information about this topic? 

 .. and also the other one with the

 
>> pipelines/WebRequestServicerPipeline/interceptors?
>> 
 --- James Carman <[EMAIL PROTECTED]>
 
>>> wrote:
>>>   
> You can plugin to the webrequest servicer
>   
 pipeline.
 
>> Ummm... you could do that too.  You're
>> 
>> correct
>> 
> that it would avoid the
>   
>> visit-from-session inelegant bit.  It would
>> 
>> be
>> 
> conceptually similar to
>   
>> the servlet filter approach.  The downside
>> 
>>> would
>>>   
> be that custom Engine
>   
>> classes are frowned upon as Tapestry goes
>> 
 forwa

Re: EventListener can update a For component ?

2006-09-22 Thread Roberto Ramírez Vique

Thanks Patrick!!!

I've look to this component and now I use a "workarround" I show a radio
button to select which item the user wants to remove. This radio button
keeps the for index, and in the server side I can refer directly to the
correct element. This works fine!!! I'm happy to see that this is really
easy to do !

But (there is always some problem) I have another problem which it seem
really strange, at least for me.

The system works fine when inside the loop I just add simple tags. But I
have to add a more complex one (a component). Everything is well rendered,
but when I try to add a new element or any, just using the @EventListeners
methods, it doesn't work, it arrives to the server, and I get which seems to
be a correct response, but it doesn't updates correctly the html elements.
I tried to turn on dojo debugging and get the following error:


DEBUG: 0:19:50: Response recieved.
DEBUG: 0:19:50: Received element content for id  of: 
ERROR: 0:19:50: No node could be found to update content in with id
includescript


Any of you have ever had this exception ???

In fact it works when the number of tapetry compenents in the inner tapestry
component is very short (3 or less), but I have about 20 components.

Thanks in advance!
 Robert

On 9/22/06, Patrick Moore < [EMAIL PROTECTED]> wrote:


take a look at the For component docs. This component has pretty good doc
that talks about that issue.





--
Robert Ramírez Vique
Computer Science Engineer


Re: LinkSubmit in For - need index as a parameter (Tapestry 4.1.1)

2006-09-22 Thread Martin Strand

Shouldn't the remove link be a DirectLink? That's how I do it.

On Fri, 22 Sep 2006 21:16:47 +0200, Peter Beshai <[EMAIL PROTECTED]> wrote:

I have some items listed by a ForBean that have a remove link  
(LinkSubmit component). I would like the remove link to take the index  
of the ForBean as a parameter so that they can all call the same  
listener, but the Tapestry site says "Parameter(s) gathered at the time  
the link is triggered" (from the LinkSubmit page). This causes my  
parameter of myForBean.index to always be the last index of the loop.


Is there any way I can have each link pass the proper index?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LinkSubmit in For - need index as a parameter (Tapestry 4.1.1)

2006-09-22 Thread Peter Beshai
I have some items listed by a ForBean that have a remove link (LinkSubmit 
component). I would like the remove link to take the index of the ForBean as 
a parameter so that they can all call the same listener, but the Tapestry 
site says "Parameter(s) gathered at the time the link is triggered" (from 
the LinkSubmit page). This causes my parameter of myForBean.index to always 
be the last index of the loop.


Is there any way I can have each link pass the proper index?

_
Ne perdez pas de temps dans les files d’attente… magasinez en ligne.  
http://magasiner.sympatico.msn.ca



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to listent for the Request Cycle End

2006-09-22 Thread Dobrin Ivanov
Thanks, now it works. My filter is :
-
public void service(WebRequest request, WebResponse
response, WebRequestServicer servicer) throws
IOException { 
  // Request Cycle Begin
  servicer.service(request, response);
  // Request Cycle End
  WebSession webSession = request.getSession(false);
  if (webSession!=null) {
String visitKey = "state:" + APP_NAME + ":visit";
Visit visit = (Visit)
webSession.getAttribute(visitKey); 
// use visit
  }
}
-

So, we again have this visit-from-session code, but
the only inelegant bit is this visitKey assembling
part may be :)

--- James Carman <[EMAIL PROTECTED]> wrote:

> Sorry.  Try
> tapestry.request.WebRequestServicerPipeline.  As I
> said, it was
> off the top of my head.  Sorry for the typo.
> 
> -Original Message-
> From: Dobrin Ivanov
> [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 22, 2006 1:45 PM
> To: Tapestry users
> Subject: RE: How to listent for the Request Cycle
> End
> 
> 10x
> 
> Now i get the error below. Any chance that there are
> some docs for this?
> 
> 1547 [main] ERROR
>
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/weprom]
>  - Servlet /weprom threw load() exception
> org.apache.hivemind.ApplicationRuntimeException:
> Error
> at context:/WEB-INF/hivemodule.xml, line 19, column
> 79: Module weprom has contributed to unknown con
> figuration point
> hivemind.request.WebRequestServicerPipeline. The
> contribution has been ignored.
> [context:/WEB-INF/hivemodule.xml, line 19, column
> 79]
> at
>
org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39
> )
> 
> --- James Carman <[EMAIL PROTECTED]> wrote:
> 
> > You can put it in your WEB-INF folder or in
> > WEB-INF/classes/META-INF.
> > Tapestry (actually HiveMind) will find it in
> either
> > case.
> > 
> > -Original Message-
> > From: Dobrin Ivanov
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, September 22, 2006 1:26 PM
> > To: Tapestry users
> > Subject: RE: How to listent for the Request Cycle
> > End
> > 
> > And where should be located my hivemodule.xml?
> (I'm
> > using just Tapestry, I know it lies above hivemind
> > microkernel...)
> > 
> > 
> > --- James Carman <[EMAIL PROTECTED]>
> wrote:
> > 
> > > To plug into the WebRequestServicerPipeline, you
> > > implement the
> > > WebRequestServicerFilter interface:
> > > 
> > > public class MyFilter implements
> > > WebRequestServicerFilter
> > > {
> > > }
> > > 
> > > Then, in your hivemodule.xml you plug it into
> the
> > > pipeline:
> > > 
> > >  > >
> >
>
configuration-id="hivemind.request.WebRequestServicerPipeline">
> > >> object="instance:MyFilter"
> > > />
> > > 
> > > 
> > > That's off the top of my head, but you get the
> > idea.
> > >  This basically acts
> > > like a servlet filter, but you can plug
> > > hivemind-managed filters in (so you
> > > can inject stuff into your implementation
> > objects).
> > > 
> > > 
> > > -Original Message-
> > > From: Dobrin Ivanov
> > > [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, September 20, 2006 1:30 PM
> > > To: Tapestry users
> > > Subject: Re: How to listent for the Request
> Cycle
> > > End
> > > 
> > > I do not know about this custom Engine classes
> > > changes
> > > (frowned)... 
> > >   is there some information about this topic? 
> > > 
> > > .. and also the other one with the
> > >
> pipelines/WebRequestServicerPipeline/interceptors?
> > > 
> > > --- James Carman <[EMAIL PROTECTED]>
> > wrote:
> > > 
> > > > You can plugin to the webrequest servicer
> > > pipeline.
> > > > 
> > > > > Ummm... you could do that too.  You're
> correct
> > > > that it would avoid the
> > > > > visit-from-session inelegant bit.  It would
> be
> > > > conceptually similar to
> > > > > the servlet filter approach.  The downside
> > would
> > > > be that custom Engine
> > > > > classes are frowned upon as Tapestry goes
> > > forward.
> > > >  I'm not sure there
> > > > > is an Engine.getVisit() in 4.1.
> > > > >
> > > > > None of the approaches is perfect since
> > Tapestry
> > > > doesn't provide a
> > > > > built-in end-of-request hook.  Well, there
> is
> > a
> > > > call to
> > > > > monitor.serviceEnd() that you could use
> > without
> > > > subclassing Engine.
> > > > >
> > > > >
> > > > > Dobrin Ivanov wrote:
> > > > >> Hi,
> > > > >> Thanks Bryan, this looks like a hack:)
> > > > >>
> > > > >> What do you think if I override the
> Engine's
> > > > method:
> > > > >>
> > > > >>   public void service(WebRequest request,
> > > > WebResponse
> > > > >> response) throws IOException {
> > > > >> super.service(request, response);
> > > > >> // insert code here
> > > > >> }
> > > > >>
> > > > >> Is this a bad approach?
> > > > >>
> > > > >>
> > > > >> --- Bryan Lewis <[EMAIL PROTECTED]> wrote:
> > > > >>
> > > > >>
> > > > >>> It sounds like a servlet listener method
> > could
> > > > work
> > > > >>> for you.  Or a
> > > > >>> se

Re: tapestry - session / form management

2006-09-22 Thread CincyVenkat

How do I get the form dirty at first time around.


karthik.nar wrote:
> 
> it appears your hibernate session is not getting flushed properly.  are
> you
> using transaction boundaries?
> 
> somehow even though your objects are getting dirtied the first time
> around,
> it is the second time dirty of the form field that's causing the hibernate
> session to flush/commit to the DB.
> 
> 
> 
> On 9/22/06, Venkat <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>>   We have been using the Tapestry 4.0, Hibernate(annotations) with
>> Hivemind. I have a wiered bug for couple of days. Could you help me in
>> what
>> I am missing ?
>>
>>   I have main page with sub-page has 2 text boxes and a button, text box
>> 1
>> is disabled, when user click on button, it will go to another screen for
>> look-up object, once we select the look-up object it has to get back the
>> object relation to the main page. Once we come back to the main page, if
>> we
>> save the changes the relation is not occuring but once we come back to
>> the
>> main page and change any other field and save it, then the object
>> relation
>> will take place. I want get this relation with out touching the form
>> field.
>> When we change some thing on the page manually it's working as I am
>> expecing. Could you please help me in resolving the issue.
>>
>>   Thanks in advance.
>>
>>   Regards,
>>   Venkat
>>
>>
>> -
>> All-new Yahoo! Mail - Fire up a more powerful email and get things done
>> faster.
>>
> 
> 
> 
> -- 
> Thanks, Karthik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tapestry---session---form-management-tf2319186.html#a6452810
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tapestry - session / form management

2006-09-22 Thread Karthik N

it appears your hibernate session is not getting flushed properly.  are you
using transaction boundaries?

somehow even though your objects are getting dirtied the first time around,
it is the second time dirty of the form field that's causing the hibernate
session to flush/commit to the DB.



On 9/22/06, Venkat <[EMAIL PROTECTED]> wrote:


Hi,

  We have been using the Tapestry 4.0, Hibernate(annotations) with
Hivemind. I have a wiered bug for couple of days. Could you help me in what
I am missing ?

  I have main page with sub-page has 2 text boxes and a button, text box 1
is disabled, when user click on button, it will go to another screen for
look-up object, once we select the look-up object it has to get back the
object relation to the main page. Once we come back to the main page, if we
save the changes the relation is not occuring but once we come back to the
main page and change any other field and save it, then the object relation
will take place. I want get this relation with out touching the form field.
When we change some thing on the page manually it's working as I am
expecing. Could you please help me in resolving the issue.

  Thanks in advance.

  Regards,
  Venkat


-
All-new Yahoo! Mail - Fire up a more powerful email and get things done
faster.





--
Thanks, Karthik


tapestry - session / form management

2006-09-22 Thread Venkat
Hi,
   
  We have been using the Tapestry 4.0, Hibernate(annotations) with Hivemind. I 
have a wiered bug for couple of days. Could you help me in what I am missing ?
   
  I have main page with sub-page has 2 text boxes and a button, text box 1 is 
disabled, when user click on button, it will go to another screen for look-up 
object, once we select the look-up object it has to get back the object 
relation to the main page. Once we come back to the main page, if we save the 
changes the relation is not occuring but once we come back to the main page and 
change any other field and save it, then the object relation will take place. I 
want get this relation with out touching the form field. When we change some 
thing on the page manually it's working as I am expecing. Could you please help 
me in resolving the issue.
   
  Thanks in advance.
   
  Regards,
  Venkat


-
 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

RE: How to listent for the Request Cycle End

2006-09-22 Thread James Carman
Sorry.  Try tapestry.request.WebRequestServicerPipeline.  As I said, it was
off the top of my head.  Sorry for the typo.

-Original Message-
From: Dobrin Ivanov [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 22, 2006 1:45 PM
To: Tapestry users
Subject: RE: How to listent for the Request Cycle End

10x

Now i get the error below. Any chance that there are
some docs for this?

1547 [main] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/weprom]
 - Servlet /weprom threw load() exception
org.apache.hivemind.ApplicationRuntimeException: Error
at context:/WEB-INF/hivemodule.xml, line 19, column
79: Module weprom has contributed to unknown con
figuration point
hivemind.request.WebRequestServicerPipeline. The
contribution has been ignored.
[context:/WEB-INF/hivemodule.xml, line 19, column 79]
at
org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39
)

--- James Carman <[EMAIL PROTECTED]> wrote:

> You can put it in your WEB-INF folder or in
> WEB-INF/classes/META-INF.
> Tapestry (actually HiveMind) will find it in either
> case.
> 
> -Original Message-
> From: Dobrin Ivanov
> [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 22, 2006 1:26 PM
> To: Tapestry users
> Subject: RE: How to listent for the Request Cycle
> End
> 
> And where should be located my hivemodule.xml? (I'm
> using just Tapestry, I know it lies above hivemind
> microkernel...)
> 
> 
> --- James Carman <[EMAIL PROTECTED]> wrote:
> 
> > To plug into the WebRequestServicerPipeline, you
> > implement the
> > WebRequestServicerFilter interface:
> > 
> > public class MyFilter implements
> > WebRequestServicerFilter
> > {
> > }
> > 
> > Then, in your hivemodule.xml you plug it into the
> > pipeline:
> > 
> >  >
>
configuration-id="hivemind.request.WebRequestServicerPipeline">
> >object="instance:MyFilter"
> > />
> > 
> > 
> > That's off the top of my head, but you get the
> idea.
> >  This basically acts
> > like a servlet filter, but you can plug
> > hivemind-managed filters in (so you
> > can inject stuff into your implementation
> objects).
> > 
> > 
> > -Original Message-
> > From: Dobrin Ivanov
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, September 20, 2006 1:30 PM
> > To: Tapestry users
> > Subject: Re: How to listent for the Request Cycle
> > End
> > 
> > I do not know about this custom Engine classes
> > changes
> > (frowned)... 
> >   is there some information about this topic? 
> > 
> > .. and also the other one with the
> > pipelines/WebRequestServicerPipeline/interceptors?
> > 
> > --- James Carman <[EMAIL PROTECTED]>
> wrote:
> > 
> > > You can plugin to the webrequest servicer
> > pipeline.
> > > 
> > > > Ummm... you could do that too.  You're correct
> > > that it would avoid the
> > > > visit-from-session inelegant bit.  It would be
> > > conceptually similar to
> > > > the servlet filter approach.  The downside
> would
> > > be that custom Engine
> > > > classes are frowned upon as Tapestry goes
> > forward.
> > >  I'm not sure there
> > > > is an Engine.getVisit() in 4.1.
> > > >
> > > > None of the approaches is perfect since
> Tapestry
> > > doesn't provide a
> > > > built-in end-of-request hook.  Well, there is
> a
> > > call to
> > > > monitor.serviceEnd() that you could use
> without
> > > subclassing Engine.
> > > >
> > > >
> > > > Dobrin Ivanov wrote:
> > > >> Hi,
> > > >> Thanks Bryan, this looks like a hack:)
> > > >>
> > > >> What do you think if I override the Engine's
> > > method:
> > > >>
> > > >>   public void service(WebRequest request,
> > > WebResponse
> > > >> response) throws IOException {
> > > >> super.service(request, response);
> > > >> // insert code here
> > > >> }
> > > >>
> > > >> Is this a bad approach?
> > > >>
> > > >>
> > > >> --- Bryan Lewis <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >>
> > > >>> It sounds like a servlet listener method
> could
> > > work
> > > >>> for you.  Or a
> > > >>> servlet filter as in the previous
> suggestion. 
> > > Both
> > > >>> would give you a
> > > >>> hook into the end-of-request, and you can
> get
> > to
> > > the
> > > >>> Visit via the
> > > >>> session.  Here's a listener approach.
> > > >>>
> > > >>>
> > > >>> public class EventListener implements
> > > >>> ServletRequestListener
> > > >>> {
> > > >>> public void
> > > >>> requestInitialized(ServletRequestEvent sre)
> {
> > > >>> // This method might not need to do
> > > >>> anything.
> > > >>> }
> > > >>>
> > > >>> public void
> > > requestDestroyed(ServletRequestEvent
> > > >>> sre)
> > > >>> {
> > > >>> // Call a static method in your
> > > >>> thread-storage class to get your
> > > >>> data.
> > > >>>
> > > >>> // The slightly messy part is
> getting
> > > the
> > > >>> Visit from the session.
> > > >>> HttpSession session =
> > > >>> sre.getServletRequest().getSession(false);
> > > >>> String visitKey = "state:" + appName
> +
> > > >>> ":visit";
> > > >>> 

RE: How to listent for the Request Cycle End

2006-09-22 Thread Dobrin Ivanov
10x

Now i get the error below. Any chance that there are
some docs for this?

1547 [main] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/weprom]
 - Servlet /weprom threw load() exception
org.apache.hivemind.ApplicationRuntimeException: Error
at context:/WEB-INF/hivemodule.xml, line 19, column
79: Module weprom has contributed to unknown con
figuration point
hivemind.request.WebRequestServicerPipeline. The
contribution has been ignored.
[context:/WEB-INF/hivemodule.xml, line 19, column 79]
at
org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39)

--- James Carman <[EMAIL PROTECTED]> wrote:

> You can put it in your WEB-INF folder or in
> WEB-INF/classes/META-INF.
> Tapestry (actually HiveMind) will find it in either
> case.
> 
> -Original Message-
> From: Dobrin Ivanov
> [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 22, 2006 1:26 PM
> To: Tapestry users
> Subject: RE: How to listent for the Request Cycle
> End
> 
> And where should be located my hivemodule.xml? (I'm
> using just Tapestry, I know it lies above hivemind
> microkernel...)
> 
> 
> --- James Carman <[EMAIL PROTECTED]> wrote:
> 
> > To plug into the WebRequestServicerPipeline, you
> > implement the
> > WebRequestServicerFilter interface:
> > 
> > public class MyFilter implements
> > WebRequestServicerFilter
> > {
> > }
> > 
> > Then, in your hivemodule.xml you plug it into the
> > pipeline:
> > 
> >  >
>
configuration-id="hivemind.request.WebRequestServicerPipeline">
> >object="instance:MyFilter"
> > />
> > 
> > 
> > That's off the top of my head, but you get the
> idea.
> >  This basically acts
> > like a servlet filter, but you can plug
> > hivemind-managed filters in (so you
> > can inject stuff into your implementation
> objects).
> > 
> > 
> > -Original Message-
> > From: Dobrin Ivanov
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, September 20, 2006 1:30 PM
> > To: Tapestry users
> > Subject: Re: How to listent for the Request Cycle
> > End
> > 
> > I do not know about this custom Engine classes
> > changes
> > (frowned)... 
> >   is there some information about this topic? 
> > 
> > .. and also the other one with the
> > pipelines/WebRequestServicerPipeline/interceptors?
> > 
> > --- James Carman <[EMAIL PROTECTED]>
> wrote:
> > 
> > > You can plugin to the webrequest servicer
> > pipeline.
> > > 
> > > > Ummm... you could do that too.  You're correct
> > > that it would avoid the
> > > > visit-from-session inelegant bit.  It would be
> > > conceptually similar to
> > > > the servlet filter approach.  The downside
> would
> > > be that custom Engine
> > > > classes are frowned upon as Tapestry goes
> > forward.
> > >  I'm not sure there
> > > > is an Engine.getVisit() in 4.1.
> > > >
> > > > None of the approaches is perfect since
> Tapestry
> > > doesn't provide a
> > > > built-in end-of-request hook.  Well, there is
> a
> > > call to
> > > > monitor.serviceEnd() that you could use
> without
> > > subclassing Engine.
> > > >
> > > >
> > > > Dobrin Ivanov wrote:
> > > >> Hi,
> > > >> Thanks Bryan, this looks like a hack:)
> > > >>
> > > >> What do you think if I override the Engine's
> > > method:
> > > >>
> > > >>   public void service(WebRequest request,
> > > WebResponse
> > > >> response) throws IOException {
> > > >> super.service(request, response);
> > > >> // insert code here
> > > >> }
> > > >>
> > > >> Is this a bad approach?
> > > >>
> > > >>
> > > >> --- Bryan Lewis <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >>
> > > >>> It sounds like a servlet listener method
> could
> > > work
> > > >>> for you.  Or a
> > > >>> servlet filter as in the previous
> suggestion. 
> > > Both
> > > >>> would give you a
> > > >>> hook into the end-of-request, and you can
> get
> > to
> > > the
> > > >>> Visit via the
> > > >>> session.  Here's a listener approach.
> > > >>>
> > > >>>
> > > >>> public class EventListener implements
> > > >>> ServletRequestListener
> > > >>> {
> > > >>> public void
> > > >>> requestInitialized(ServletRequestEvent sre)
> {
> > > >>> // This method might not need to do
> > > >>> anything.
> > > >>> }
> > > >>>
> > > >>> public void
> > > requestDestroyed(ServletRequestEvent
> > > >>> sre)
> > > >>> {
> > > >>> // Call a static method in your
> > > >>> thread-storage class to get your
> > > >>> data.
> > > >>>
> > > >>> // The slightly messy part is
> getting
> > > the
> > > >>> Visit from the session.
> > > >>> HttpSession session =
> > > >>> sre.getServletRequest().getSession(false);
> > > >>> String visitKey = "state:" + appName
> +
> > > >>> ":visit";
> > > >>> Visit visit = (Visit)
> > > >>> session.getAttribute(visitKey);
> > > >>> }
> > > >>> }
> > > >>>
> > > >>> In your web.xml:
> > > >>>
> > > >>> 
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > >
> >
>
your.package.EventListener
> > > >>
> > > >>> 
> > > >>>
> > > >>>
> > > >>> Dobrin Ivanov wrote:
>

RE: How to listent for the Request Cycle End

2006-09-22 Thread James Carman
You can put it in your WEB-INF folder or in WEB-INF/classes/META-INF.
Tapestry (actually HiveMind) will find it in either case.

-Original Message-
From: Dobrin Ivanov [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 22, 2006 1:26 PM
To: Tapestry users
Subject: RE: How to listent for the Request Cycle End

And where should be located my hivemodule.xml? (I'm
using just Tapestry, I know it lies above hivemind
microkernel...)


--- James Carman <[EMAIL PROTECTED]> wrote:

> To plug into the WebRequestServicerPipeline, you
> implement the
> WebRequestServicerFilter interface:
> 
> public class MyFilter implements
> WebRequestServicerFilter
> {
> }
> 
> Then, in your hivemodule.xml you plug it into the
> pipeline:
> 
> 
configuration-id="hivemind.request.WebRequestServicerPipeline">
>/>
> 
> 
> That's off the top of my head, but you get the idea.
>  This basically acts
> like a servlet filter, but you can plug
> hivemind-managed filters in (so you
> can inject stuff into your implementation objects).
> 
> 
> -Original Message-
> From: Dobrin Ivanov
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 20, 2006 1:30 PM
> To: Tapestry users
> Subject: Re: How to listent for the Request Cycle
> End
> 
> I do not know about this custom Engine classes
> changes
> (frowned)... 
>   is there some information about this topic? 
> 
> .. and also the other one with the
> pipelines/WebRequestServicerPipeline/interceptors?
> 
> --- James Carman <[EMAIL PROTECTED]> wrote:
> 
> > You can plugin to the webrequest servicer
> pipeline.
> > 
> > > Ummm... you could do that too.  You're correct
> > that it would avoid the
> > > visit-from-session inelegant bit.  It would be
> > conceptually similar to
> > > the servlet filter approach.  The downside would
> > be that custom Engine
> > > classes are frowned upon as Tapestry goes
> forward.
> >  I'm not sure there
> > > is an Engine.getVisit() in 4.1.
> > >
> > > None of the approaches is perfect since Tapestry
> > doesn't provide a
> > > built-in end-of-request hook.  Well, there is a
> > call to
> > > monitor.serviceEnd() that you could use without
> > subclassing Engine.
> > >
> > >
> > > Dobrin Ivanov wrote:
> > >> Hi,
> > >> Thanks Bryan, this looks like a hack:)
> > >>
> > >> What do you think if I override the Engine's
> > method:
> > >>
> > >>   public void service(WebRequest request,
> > WebResponse
> > >> response) throws IOException {
> > >> super.service(request, response);
> > >> // insert code here
> > >> }
> > >>
> > >> Is this a bad approach?
> > >>
> > >>
> > >> --- Bryan Lewis <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >>> It sounds like a servlet listener method could
> > work
> > >>> for you.  Or a
> > >>> servlet filter as in the previous suggestion. 
> > Both
> > >>> would give you a
> > >>> hook into the end-of-request, and you can get
> to
> > the
> > >>> Visit via the
> > >>> session.  Here's a listener approach.
> > >>>
> > >>>
> > >>> public class EventListener implements
> > >>> ServletRequestListener
> > >>> {
> > >>> public void
> > >>> requestInitialized(ServletRequestEvent sre) {
> > >>> // This method might not need to do
> > >>> anything.
> > >>> }
> > >>>
> > >>> public void
> > requestDestroyed(ServletRequestEvent
> > >>> sre)
> > >>> {
> > >>> // Call a static method in your
> > >>> thread-storage class to get your
> > >>> data.
> > >>>
> > >>> // The slightly messy part is getting
> > the
> > >>> Visit from the session.
> > >>> HttpSession session =
> > >>> sre.getServletRequest().getSession(false);
> > >>> String visitKey = "state:" + appName +
> > >>> ":visit";
> > >>> Visit visit = (Visit)
> > >>> session.getAttribute(visitKey);
> > >>> }
> > >>> }
> > >>>
> > >>> In your web.xml:
> > >>>
> > >>> 
> > >>>
> > >>>
> > >>>
> > >>
> >
>
your.package.EventListener
> > >>
> > >>> 
> > >>>
> > >>>
> > >>> Dobrin Ivanov wrote:
> > >>>
> >  I have designed some small API in order to
> > provide
> > 
> > >>> the
> > >>>
> >  session persistance of the presentation layer
> >  (Tapestry - Visit object/HttpSession) to the
> > model
> >  layer (in order to be able to cache some
> > session
> >  related stuff without being aware of how the
> > above
> >  layer is doing it). So the data is attached
> to
> > the
> >  thread and at the end of the request cycle I
> > want
> > 
> > >>> to
> > >>>
> >  save it into the Visit object.
> > 
> >  --- Martin Strand <[EMAIL PROTECTED]>
> > wrote:
> > 
> > 
> > 
> > > Exactly what do you need this for?
> > > If you don't need any Tapestry logic, there
> > might
> > >
> > >>> be
> > >>>
> > > other ways to do it -
> > > like a servlet filter or a threaded service
> > that
> > > implements Discardable.
> > >
> > > On Tue, 19 Sep 2006 21:58:20 +0200, Jesse
> > Kuhnert
> > > <[EMAIL PROTECTED]>
> > > wrote:
> > >

RE: How to listent for the Request Cycle End

2006-09-22 Thread Dobrin Ivanov
And where should be located my hivemodule.xml? (I'm
using just Tapestry, I know it lies above hivemind
microkernel...)


--- James Carman <[EMAIL PROTECTED]> wrote:

> To plug into the WebRequestServicerPipeline, you
> implement the
> WebRequestServicerFilter interface:
> 
> public class MyFilter implements
> WebRequestServicerFilter
> {
> }
> 
> Then, in your hivemodule.xml you plug it into the
> pipeline:
> 
> 
configuration-id="hivemind.request.WebRequestServicerPipeline">
>/>
> 
> 
> That's off the top of my head, but you get the idea.
>  This basically acts
> like a servlet filter, but you can plug
> hivemind-managed filters in (so you
> can inject stuff into your implementation objects).
> 
> 
> -Original Message-
> From: Dobrin Ivanov
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 20, 2006 1:30 PM
> To: Tapestry users
> Subject: Re: How to listent for the Request Cycle
> End
> 
> I do not know about this custom Engine classes
> changes
> (frowned)... 
>   is there some information about this topic? 
> 
> .. and also the other one with the
> pipelines/WebRequestServicerPipeline/interceptors?
> 
> --- James Carman <[EMAIL PROTECTED]> wrote:
> 
> > You can plugin to the webrequest servicer
> pipeline.
> > 
> > > Ummm... you could do that too.  You're correct
> > that it would avoid the
> > > visit-from-session inelegant bit.  It would be
> > conceptually similar to
> > > the servlet filter approach.  The downside would
> > be that custom Engine
> > > classes are frowned upon as Tapestry goes
> forward.
> >  I'm not sure there
> > > is an Engine.getVisit() in 4.1.
> > >
> > > None of the approaches is perfect since Tapestry
> > doesn't provide a
> > > built-in end-of-request hook.  Well, there is a
> > call to
> > > monitor.serviceEnd() that you could use without
> > subclassing Engine.
> > >
> > >
> > > Dobrin Ivanov wrote:
> > >> Hi,
> > >> Thanks Bryan, this looks like a hack:)
> > >>
> > >> What do you think if I override the Engine's
> > method:
> > >>
> > >>   public void service(WebRequest request,
> > WebResponse
> > >> response) throws IOException {
> > >> super.service(request, response);
> > >> // insert code here
> > >> }
> > >>
> > >> Is this a bad approach?
> > >>
> > >>
> > >> --- Bryan Lewis <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >>> It sounds like a servlet listener method could
> > work
> > >>> for you.  Or a
> > >>> servlet filter as in the previous suggestion. 
> > Both
> > >>> would give you a
> > >>> hook into the end-of-request, and you can get
> to
> > the
> > >>> Visit via the
> > >>> session.  Here's a listener approach.
> > >>>
> > >>>
> > >>> public class EventListener implements
> > >>> ServletRequestListener
> > >>> {
> > >>> public void
> > >>> requestInitialized(ServletRequestEvent sre) {
> > >>> // This method might not need to do
> > >>> anything.
> > >>> }
> > >>>
> > >>> public void
> > requestDestroyed(ServletRequestEvent
> > >>> sre)
> > >>> {
> > >>> // Call a static method in your
> > >>> thread-storage class to get your
> > >>> data.
> > >>>
> > >>> // The slightly messy part is getting
> > the
> > >>> Visit from the session.
> > >>> HttpSession session =
> > >>> sre.getServletRequest().getSession(false);
> > >>> String visitKey = "state:" + appName +
> > >>> ":visit";
> > >>> Visit visit = (Visit)
> > >>> session.getAttribute(visitKey);
> > >>> }
> > >>> }
> > >>>
> > >>> In your web.xml:
> > >>>
> > >>> 
> > >>>
> > >>>
> > >>>
> > >>
> >
>
your.package.EventListener
> > >>
> > >>> 
> > >>>
> > >>>
> > >>> Dobrin Ivanov wrote:
> > >>>
> >  I have designed some small API in order to
> > provide
> > 
> > >>> the
> > >>>
> >  session persistance of the presentation layer
> >  (Tapestry - Visit object/HttpSession) to the
> > model
> >  layer (in order to be able to cache some
> > session
> >  related stuff without being aware of how the
> > above
> >  layer is doing it). So the data is attached
> to
> > the
> >  thread and at the end of the request cycle I
> > want
> > 
> > >>> to
> > >>>
> >  save it into the Visit object.
> > 
> >  --- Martin Strand <[EMAIL PROTECTED]>
> > wrote:
> > 
> > 
> > 
> > > Exactly what do you need this for?
> > > If you don't need any Tapestry logic, there
> > might
> > >
> > >>> be
> > >>>
> > > other ways to do it -
> > > like a servlet filter or a threaded service
> > that
> > > implements Discardable.
> > >
> > > On Tue, 19 Sep 2006 21:58:20 +0200, Jesse
> > Kuhnert
> > > <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > >
> > >
> > >> It might not be super fun to learn, but I
> > think
> > >>
> > >>
> > > the "tapestry" way of
> > >
> > >
> > >> doing
> > >> this would be to contribute something to
> the
> > >>
> > >>
> > > WebRequestServicerPipeline
> > >
> 
=== message tr

Re: EventListener can update a For component ?

2006-09-22 Thread Patrick Moore

take a look at the For component docs. This component has pretty good doc
that talks about that issue.


Re: What does your project directory structure look like?

2006-09-22 Thread D&J Gredler

I actually haven't had to do any debugging yet, so I haven't crossed this
bridge... but I assume you'd have to use external debugging. Maybe Josh has
some advice :-)

On 9/22/06, Robin Ericsson <[EMAIL PROTECTED]> wrote:



Really nice. Have to try that. How to use debugging in eclipse from
that? External debugging enabled on jetty?



Re: How do I intercept an org.apache.hivemind.ApplicationRuntimeException?

2006-09-22 Thread Jesse Kuhnert

Yeah it's not possible on the client side. (security )

I'm not sure I like the generic error being thrown though, it seems like it
would be nicer to be able to validate the form instead but I know that the
IO streams might not make this possible. (Ie once it's open it's open and
the data is going to comegarr )

On 9/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Thanks for the info, Ben.

This is depressing, though.  This means that the entire file needs to be
uploaded to the server before you can validate it is less than the max
allowed size, right?

Ugh.

-Original Message-
From: Ben Dotte [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 4:25 PM
To: Tapestry users
Subject: RE: How do I intercept an
org.apache.hivemind.ApplicationRuntimeException?

This thread might be a little help:
http://article.gmane.org/gmane.comp.java.tapestry.user/29684

I've never found a way to override the "ugly" error page, I believe the
exception is thrown by commons fileupload, not Tapestry. So I just set
MultipartDecoderImpl's maxSize to "-1" and validate the filesize with a
validator.

HTH

Ben

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 12:52 PM
To: users@tapestry.apache.org
Subject: How do I intercept an
org.apache.hivemind.ApplicationRuntimeException?

I have a page that allows for file uploads, up to 10MB.

The limit is enforced in my hivemodule.xml with this snippet:



  


It works perfectly...if you upload a file larger than 10MB, you get a
big "ugly" error page (pasted below).  We catch all other exceptions
with a configuration line in the .application file:


But that isn't getting triggered on these > 10MB upload errors.

Thoughts? And Thanks,
Tom


Here's the big ugly error page:
---

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.hivemind.ApplicationRuntimeException: Unable to decode
multipart encoded request: the request was rejected because its size
(23940489) exceeds the configured maximum (10485760)

org.apache.tapestry.multipart.MultipartDecoderImpl.decode(MultipartDecod
erImpl.java:56)

$ServletMultipartDecoder_10dd1546644.decode($ServletMultipartDecoder_10d
d1546644.java)

$ServletMultipartDecoder_10dd1546645.decode($ServletMultipartDecoder_10d
d1546645.java)
org.apache.tapestry.multipart.MultipartDetc ad naseum

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


RE: How do I intercept an org.apache.hivemind.ApplicationRuntimeException?

2006-09-22 Thread Thomas.Vaughan
Thanks for the info, Ben.

This is depressing, though.  This means that the entire file needs to be
uploaded to the server before you can validate it is less than the max
allowed size, right?

Ugh.

-Original Message-
From: Ben Dotte [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 4:25 PM
To: Tapestry users
Subject: RE: How do I intercept an
org.apache.hivemind.ApplicationRuntimeException?

This thread might be a little help:
http://article.gmane.org/gmane.comp.java.tapestry.user/29684

I've never found a way to override the "ugly" error page, I believe the
exception is thrown by commons fileupload, not Tapestry. So I just set
MultipartDecoderImpl's maxSize to "-1" and validate the filesize with a
validator.

HTH

Ben

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 12:52 PM
To: users@tapestry.apache.org
Subject: How do I intercept an
org.apache.hivemind.ApplicationRuntimeException?

I have a page that allows for file uploads, up to 10MB.

The limit is enforced in my hivemodule.xml with this snippet:



  


It works perfectly...if you upload a file larger than 10MB, you get a
big "ugly" error page (pasted below).  We catch all other exceptions
with a configuration line in the .application file:


But that isn't getting triggered on these > 10MB upload errors.

Thoughts? And Thanks,
Tom


Here's the big ugly error page:
---

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.hivemind.ApplicationRuntimeException: Unable to decode
multipart encoded request: the request was rejected because its size
(23940489) exceeds the configured maximum (10485760)

org.apache.tapestry.multipart.MultipartDecoderImpl.decode(MultipartDecod
erImpl.java:56)

$ServletMultipartDecoder_10dd1546644.decode($ServletMultipartDecoder_10d
d1546644.java)

$ServletMultipartDecoder_10dd1546645.decode($ServletMultipartDecoder_10d
d1546645.java)
org.apache.tapestry.multipart.MultipartDetc ad naseum

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BeanForm and no setter method for persistence id

2006-09-22 Thread D&J Gredler

Cool, thanks for the update!

On 9/22/06, Claus Myglegaard Vagner <[EMAIL PROTECTED]> wrote:


Hi Daniel,

You are quite right! No problem with BeanForm component. The problem
were somewhere else in the code...

Claus

D&J Gredler skrev:
> Are you listing the properties explicitly, i.e.
> properties="name,description"? If that's the case, I don't see how the
> BeanForm knows anything at all about your ID field. And if there's not
> even a setId( ) method, there's no way at all for BeanForm to modify
> the property (it doesn't modify fields directly). Is your Group object
> marked persistent in the page specification? This sounds like a
> problem somewhere else...
>
> Keep me updated,
>
> Daniel
>
>
> On 9/21/06, *Claus Myglegaard Vagner* <[EMAIL PROTECTED]
> > wrote:
>
> Hi,
>
> Is it possible to use the BeanForm component
> ( http://beanform.sourceforge.net/) for updating a pojo with no
setter
> method for a persistence id?
>
> For example I have a Group object with properties id, name,
> description.
> In the form only name and description is shown. I don't want to
> show the
> id and I don't want to have a setId(id) method on the pojo. This
> should
> be controlled by hibernate (with field access) completely.
>
> When there is no setter method for id - BeanForm is returning a
Group
> object with a null "value" for id. This means that what should
> have been
> an update in the database becomes an insert since hibernate thinks
> that
> it is an not-persisted object (no id).
>
> Why cant the BeanForm component just update the fields in action
> (in the
> form) for the pojo e.g . just call setName and setDecription and
leave
> the id intact?
>
> Regards Claus
>
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
>




Re: What does your project directory structure look like?

2006-09-22 Thread Robin Ericsson

On 9/22/06, D&J Gredler <[EMAIL PROTECTED]> wrote:

There's a Maven2 Eclipse plugin (http://maven.apache.org/eclipse-plugin.html)
that will read your pom.xml (Project Object Model) and auto-update the
Eclipse build path for the project. There's even an option to have it
download the source code for all the dependencies (for easier debugging),
but I've found that most projects haven't started posting source bundles
yet.


Yes, I've found that.


As far as running the app, I used to use the Sysdeo Tomcat plugin, but I'm
slowly migrating to using the Jetty Maven2 plugin. On the commandline you do
"mvn jetty:run" and if you have it set up right it'll watch for changed
files and pick them up automatically. Combine this with disabling the
Tapestry caches, and you're good to go. Josh Long was the one that got me to
try this with his recent post to this mailing list (
http://www.nabble.com/Fast-testing-of-Tapestry-Apps-tf2139725.html#a5996591
).


Really nice. Have to try that. How to use debugging in eclipse from
that? External debugging enabled on jetty?

--
   regards,
   Robin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BeanForm and no setter method for persistence id

2006-09-22 Thread Claus Myglegaard Vagner

Hi Daniel,

You are quite right! No problem with BeanForm component. The problem 
were somewhere else in the code...


Claus

D&J Gredler skrev:
Are you listing the properties explicitly, i.e. 
properties="name,description"? If that's the case, I don't see how the 
BeanForm knows anything at all about your ID field. And if there's not 
even a setId( ) method, there's no way at all for BeanForm to modify 
the property (it doesn't modify fields directly). Is your Group object 
marked persistent in the page specification? This sounds like a 
problem somewhere else...


Keep me updated,

Daniel


On 9/21/06, *Claus Myglegaard Vagner* <[EMAIL PROTECTED] 
> wrote:


Hi,

Is it possible to use the BeanForm component
( http://beanform.sourceforge.net/) for updating a pojo with no setter
method for a persistence id?

For example I have a Group object with properties id, name,
description.
In the form only name and description is shown. I don't want to
show the
id and I don't want to have a setId(id) method on the pojo. This
should
be controlled by hibernate (with field access) completely.

When there is no setter method for id - BeanForm is returning a Group
object with a null "value" for id. This means that what should
have been
an update in the database becomes an insert since hibernate thinks
that
it is an not-persisted object (no id).

Why cant the BeanForm component just update the fields in action
(in the
form) for the pojo e.g . just call setName and setDecription and leave
the id intact?

Regards Claus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]





RE: Expired Session message

2006-09-22 Thread Greg.L.Cormier
I still have been unable to get this to work unfortunately and it's been thrown 
in the "Low priority" pile :(

-Original Message-
From: karthik.nar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 22, 2006 1:35 AM
To: users@tapestry.apache.org
Subject: Re: Expired Session message



Hey Greg,

Just curious - did you eventually solve this?  If so can you paste your
solution?

Thanks, Karthik.
-- 
View this message in context: 
http://www.nabble.com/Asynchronous-form-submission-tf2253801.html#a6441359
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unsubscribe

2006-09-22 Thread Martin Strand
That page says "[EMAIL PROTECTED]" but according to the  
headers in this very message, it appears the address is really  
"[EMAIL PROTECTED]":


List-Unsubscribe: 


On Fri, 22 Sep 2006 14:24:53 +0200, Rui Pacheco <[EMAIL PROTECTED]>  
wrote:



Hi all

I tried to unsubscribe following whats described here (
http://tapestry.apache.org/unsubscribe.html) but I received a permanent
error from the server saying it wasn't possible.

Is it possible for one of the admins to remove me from the mailing list?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unsubscribe

2006-09-22 Thread Rui Pacheco

Hi all

I tried to unsubscribe following whats described here (
http://tapestry.apache.org/unsubscribe.html) but I received a permanent
error from the server saying it wasn't possible.

Is it possible for one of the admins to remove me from the mailing list?

--
Cumprimentos,
Rui Pacheco


Re: Keep your visit going to https?

2006-09-22 Thread Danny Angus
what applicationserver are you using and how is your webserver configured?



"James Sherwood" <[EMAIL PROTECTED]> wrote on 22/09/2006 
13:16:28:

> Hello,
> 
> We have a shopping cart site built and the actuall site is not secure 
until 
> you go to the checkout phase.
> 
> The checkout button sends you to the checkout page and everything worked 

> fine untill we made that page secure.
> 
> As soon as we made it secure we lose our visit.  I assume it is because 
we 
> have to send them to a different url(same page same site just accessing 
it 
> through a secure url).
> 
> Is there a way to keep our visit acrost this jump?
> 
> Thanks,
> James 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


***
The information in this e-mail is confidential and for use by the addressee(s) 
only. If you are not the intended recipient please delete the message from your 
computer. You may not copy or forward it or use or disclose its contents to any 
other person. As Internet communications are capable of data corruption Student 
Loans Company Limited does not accept any responsibility for changes made to 
this message after it was sent. For this reason it may be inappropriate to rely 
on advice or opinions contained in an e-mail without obtaining written 
confirmation of it. Neither Student Loans Company Limited or the sender accepts 
any liability or responsibility for viruses as it is your responsibility to 
scan attachments (if any). Opinions and views expressed in this e-mail are 
those of the sender and may not reflect the opinions and views of The Student 
Loans Company Limited.

This footnote also confirms that this email message has been swept for the 
presence of computer viruses.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What does your project directory structure look like?

2006-09-22 Thread D&J Gredler

There's a Maven2 Eclipse plugin (http://maven.apache.org/eclipse-plugin.html)
that will read your pom.xml (Project Object Model) and auto-update the
Eclipse build path for the project. There's even an option to have it
download the source code for all the dependencies (for easier debugging),
but I've found that most projects haven't started posting source bundles
yet.

As far as running the app, I used to use the Sysdeo Tomcat plugin, but I'm
slowly migrating to using the Jetty Maven2 plugin. On the commandline you do
"mvn jetty:run" and if you have it set up right it'll watch for changed
files and pick them up automatically. Combine this with disabling the
Tapestry caches, and you're good to go. Josh Long was the one that got me to
try this with his recent post to this mailing list (
http://www.nabble.com/Fast-testing-of-Tapestry-Apps-tf2139725.html#a5996591
).

I spent about a day tearing my hair out trying to figure out why various
things wouldn't work, mostly with site generation. But now that that's over,
I'm extremely happy with it.


On 9/22/06, Robin Ericsson <[EMAIL PROTECTED]> wrote:


On 9/22/06, D&J Gredler <[EMAIL PROTECTED]> wrote:
> I've used Maven2 to manage my newest project, and I'm quite happy with
all
> the freebies you get when you follow their standard directory structure:
> builds, source builds, unit testing, test coverage, site building,
> dependency management (inside eclipse, too) etc. The site-building
module
> for Maven2 still feels beta-quality, but that's about my only complaint.

How do you work with your project in eclipse? Also, do you use eclipse
to run jetty/tomcat or do you used an external alternative?

--
regards,
Robin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Keep your visit going to https?

2006-09-22 Thread James Sherwood

Hello,

We have a shopping cart site built and the actuall site is not secure until 
you go to the checkout phase.


The checkout button sends you to the checkout page and everything worked 
fine untill we made that page secure.


As soon as we made it secure we lose our visit.  I assume it is because we 
have to send them to a different url(same page same site just accessing it 
through a secure url).


Is there a way to keep our visit acrost this jump?

Thanks,
James 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What does your project directory structure look like?

2006-09-22 Thread Robin Ericsson

On 9/22/06, D&J Gredler <[EMAIL PROTECTED]> wrote:

I've used Maven2 to manage my newest project, and I'm quite happy with all
the freebies you get when you follow their standard directory structure:
builds, source builds, unit testing, test coverage, site building,
dependency management (inside eclipse, too) etc. The site-building module
for Maven2 still feels beta-quality, but that's about my only complaint.


How do you work with your project in eclipse? Also, do you use eclipse
to run jetty/tomcat or do you used an external alternative?

--
   regards,
   Robin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What does your project directory structure look like?

2006-09-22 Thread D&J Gredler

I've used Maven2 to manage my newest project, and I'm quite happy with all
the freebies you get when you follow their standard directory structure:
builds, source builds, unit testing, test coverage, site building,
dependency management (inside eclipse, too) etc. The site-building module
for Maven2 still feels beta-quality, but that's about my only complaint.

So basically I'm saying "me too" to Igor's post below :-)

On 9/22/06, soir <[EMAIL PROTECTED]> wrote:



My multimodule project's directory structure looks like (it's suggested by
Maven):

workspace\projectname
workspace\projectname\src\main\java
workspace\projectname\src\main\resources
workspace\projectname\src\main\webapp
workspace\projectname\src\main\webapp\images
workspace\projectname\src\main\webapp\script
workspace\projectname\src\main\webapp\style
workspace\projectname\src\main\webapp\META-INF
workspace\projectname\src\main\webapp\WEB-INF
workspace\projectname\src\test\java
workspace\projectname\src\test\resources
workspace\projectname\target\classes


Daniel Jue wrote:
>
> Hi,
>
> I'm relatively new to Tap, and I am starting with Tap 4 and Eclipse.
> I've been using the directory structures as seen in Kent Tong's book.
> I also noticed the Tapestry examples (vlib and workbench) have html
> files that live in the root of the application, instead of in web-inf.
>  Is this a standard thing to do?
>
> I've read that things inside web-inf can't be accessed directly by a
> web browser, so that seems like the correct place for the .page/.jwc's
> to go.
>
> Like I said, I have something that _works_, I am just curious to see
> if there are benefits to other methods, or drawbacks to mine (i'm sure
> my approach is naive):
>
> workspace\projectname
> workspace\projectname\build\classes (output dir for compiled classes)
> workspace\projectname\deploy (holds my war file when I export from
> eclipse)
> workspace\projectname\src\mypackage\ (no .java at this level)
> workspace\projectname\src\mypackage\model\ (classes that know nothing
> about tapestry)
> workspace\projectname\src\mypackage\controller\ (classes for pages and
> components)
>
> workspace\projectname\src\META-INF\ (holds hivemind.xml and sessions.xml
)
>
> workspace\projectname\WebContent\css (css files)
> workspace\projectname\images (jpgs)
> workspace\projectname\META-INF (I think eclipse made this dir and
> manifest.mf for me)
>
> workspace\projectname\WEB-INF (all my .html, .page and .jwc files live
> directly in WEB-INF, as well as projectname.application and web.xml)
> workspace\projectname\lib (hold jars for jscookmenu, BIRT, etc)
>
> workspace\projectname\reporting\BIRT (holds birt engine, jars,
resources,
> etc)
>
>
> When I export my project to a WAR, things in
> workspace\projectname\build\classes
> get put in
> WEB-INF\classes
>
> Please let me know what you think. I'm sure you guys have better
> organized project structures.  For instance, do your Tapestry projects
> look like this?
> http://java.sun.com/blueprints/code/projectconventions.html
>
> Daniel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/What-does-your-project-directory-structure-look-like--tf2315087.html#a6441834
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Problem with tacos:Grid component

2006-09-22 Thread Edoardo Campagnano
Hi,

I've been able to run the Tacos demos on my tomcat installation, then I try
to copy some elements in my Page components. Alol ok but the Grid. When it
reneders the copy of the demo, instead of renedering the rows as 

 

..

rows:[
{stringColumn:"String
0",intColumn:0,floatColumn:0.0,dateColumn:"2006-09-22"},
{stringColumn:"String
1",intColumn:10,floatColumn:100.5,dateColumn:"2006-09-23"},
{stringColumn:"String
2",intColumn:20,floatColumn:200.7,dateColumn:"2006-09-24"},
{stringColumn:"String
3",intColumn:30,floatColumn:300.75,dateColumn:"2006-09-25"},

...

 

(this is rendered in the demo application)

 

In my application it renders 

 

..

rows:[
{stringColumn:"",intColumn:,floatColumn:,dateColumn:""},
{stringColumn:"",intColumn:,floatColumn:,dateColumn:""},
{stringColumn:"",intColumn:,floatColumn:,dateColumn:""},
{stringColumn:"",intColumn:,floatColumn:,dateColumn:""},

..

 

As you can see, without the values. Verified that the List is well passed in
the java, I don't know why it doesn't work

Please help me, 

 

bye



Re: application namespace message catalog question

2006-09-22 Thread soir

Yes, I know.

In my case, I have duplicated messages in the application, and in the
library, which is part of the same application.


Mark Lehmacher wrote:
> 
> 
> Libraries can have their own message catalog. Just put a
> .properties file into the same package where your
> .library specification resides.
> 
>  Original-Nachricht 
> Datum: Thu, 21 Sep 2006 23:22:28 -0700 (PDT)
> Von: soir <[EMAIL PROTECTED]>
> An: users@tapestry.apache.org
> Betreff: Re: application namespace message catalog question
> 
>> 
>> I have same issue. Application-level message catalog is not accessible
>> from
>> the components which are placed into same application library.
>> 
>> 
>> Scott Jarvi wrote:
>> > 
>> > Hi,
>> > 
>> > I have a component that makes use of localized messages that may be
>> shared
>> > by other components and pages.  Because of this, I've put the keys in
>> my
>> > application-level message catalog.  For some reason, the keys are not
>> > found
>> > when the component is rendered on my page.  This seems like it should
>> be
>> > supported based on the documentation, so I must be missing something
>> > simple.  Any ideas??
>> > 
>> > Regards,
>> > Scott
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/application-namespace-message-catalog-question-tf2314010.html#a6441707
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> NEU: GMX DSL Sofort-Start-Set - blitzschnell ins Internet!
> Echte DSL-Flatrate ab 0,- Euro* http://www.gmx.net/de/go/dsl
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/application-namespace-message-catalog-question-tf2314010.html#a6443666
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: application namespace message catalog question

2006-09-22 Thread Mark Lehmacher

Libraries can have their own message catalog. Just put a 
.properties file into the same package where your 
.library specification resides.

 Original-Nachricht 
Datum: Thu, 21 Sep 2006 23:22:28 -0700 (PDT)
Von: soir <[EMAIL PROTECTED]>
An: users@tapestry.apache.org
Betreff: Re: application namespace message catalog question

> 
> I have same issue. Application-level message catalog is not accessible
> from
> the components which are placed into same application library.
> 
> 
> Scott Jarvi wrote:
> > 
> > Hi,
> > 
> > I have a component that makes use of localized messages that may be
> shared
> > by other components and pages.  Because of this, I've put the keys in my
> > application-level message catalog.  For some reason, the keys are not
> > found
> > when the component is rendered on my page.  This seems like it should be
> > supported based on the documentation, so I must be missing something
> > simple.  Any ideas??
> > 
> > Regards,
> > Scott
> > 
> > 
> 
> -- 
> View this message in context:
> http://www.nabble.com/application-namespace-message-catalog-question-tf2314010.html#a6441707
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
NEU: GMX DSL Sofort-Start-Set - blitzschnell ins Internet!
Echte DSL-Flatrate ab 0,- Euro* http://www.gmx.net/de/go/dsl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Alternate way to @EventListener with java 1.4

2006-09-22 Thread Numa Schmeder

Thanks Denis,

I will check the tacos component.

Numa

Le 21 sept. 06 à 22:27, Denis Souza a écrit :


I don't know if you can use it in Tap 4.1 but tacos 4 has a
"AjaxEventSubmit" component that does something similar. I'm not  
sure it
does everything @EventListener does, but maybe it's enough for what  
you

need.

-Original Message-
From: Numa Schmeder [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 21 de setembro de 2006 11:39
To: Tapestry users
Subject: Alternate way to @EventListener with java 1.4

Hello,

Is there a way if you are using java 1.4 to have a similar
functionality to @EventListener.
I am developing a new application and i would like to go with tap 4.1
but this application will run on java 1.4 so i can't use annotations,
but i would really like to have a similar functionality to
@EventListener.

Thanks

Numa

http://www.le-voyage.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: EventListener can update a For component ?

2006-09-22 Thread Roberto Ramírez Vique

Thanks you!!!

In fact I see this comment in another thread and I already did this.

Now I have another problem, probably a problem easy to be solved, but I
don't see how to do this. My problem is that I have a "remove" for the same
list, and I have to pass the list index to the serverside... but how can I
make this?

I mean, the index that I want to pass is the index for the loop, what is
again the index for the list source. But this index should be writen in any
point in the client html or can I read this in the server side directly??

Thanks you in advance,
robert

On 9/21/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


Make sure that your "requestorsLoop" is outputting an actual html element
on
render. If you can't view source of a rendered page and find an existing
html element then there is nothing to "update". I think using the For
component you have to specify element="div || span || whatever " to get it
to output the content.

On 9/21/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
>
> I'm an starter in Tapestry 4.1, using tomcat 5.5 and jdk 1.5
>
> I want to have a link (a plus image :P) that adds a new element to the
for
> loop. I tried this:
>
> @EventListener(elements="addLink", events="onclick",
> submitForm="userForm", async=true)
> public void addNewRequester(IRequestCycle cycle){
> this.getLoanAdvice().getRequesters().add(new
> PersonEconomicEvaluation());
>
> cycle.getResponseBuilder().updateComponent("requestersLoop");
> }
>
> The html is this:
>
> 
> 
> 
>  src="images/images-new/delsigner_01.jpg" >
> 
> 
>
> Obviously, "requesterLoop" is a loop over the
> getLoanAdvice().getRequesters() ... the method 'addNewRequester' is
supose
> to add a new item in the for loop. The serverside is called, but the
> client
> side doens't update correctly, eventhough I call the '
> cycle.getResponseBuilder().updateComponent("requestersLoop");' method...
I
> tried updating directly the entire form, but doesn't work.
>
> My first question is, is it possible ?
>
> And the second one is, can any of you see what I'm missing?
>
> Thanks in advance,
> --
> Robert Ramírez Vique
> Computer Science Engineer
>
>


--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com





--
Robert Ramírez Vique
Computer Science Engineer