Re: T5.3.1 : How to load image outside context when different options selected in t:select?

2013-06-26 Thread Woei Jye Wesley Too
the example shown were loaded during onEvent, assume that i can get the
image loaded with inputstream and return as StreamResponse; upon changing
selection as this for my t:select component

@InjectComponent private Zone showPictureZone;

@OnEvent(value=EventConstants.VALUE_CHANGED,component="packageSelection")
public Object onPackageSelection(PackageObj theObj){
//Read Image as streamresponse and generate a url link and embed inside img
tag
return showPictureZone.getBody();
}

how do i create a url embed inside  ?

the tml is as follow:






please advice,


On Wed, Jun 26, 2013 at 5:45 PM, Lance Java wrote:

> There's two options, both listed here
>
>
> http://stackoverflow.com/questions/16914673/serve-images-outside-web-application
>
> Be warned that using a local directory has issues with security,
> portability, transactions, clustering and thread safety. You might want to
> consider using a database or Amazon s3 etc.
>


T5.3.1 : How to load image outside context when different options selected in t:select?

2013-06-26 Thread Wesley Too

hi,

currently i have a folder reside in C:\\mypic to store all the pictures. 
my tapestry page has a t:select bound to the event and zone update. when 
i select option in t:select, based on the value of the option i need to 
load the picture from C:\\mypic directory. the problem is this pictures 
reside outside my tapestry webapp context and after reading through the 
tutorial, most of it is returning streamresponse bound to certain @onEvent.


I have no idea how to load this image, please advice,

wesley

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.3.1 : How to load image outside context when different options selected in t:select?

2013-06-26 Thread Wesley Too

hi,


currently i have a folder reside in C:\\mypic to store all the 
pictures. my tapestry page has a t:select bound to the event and zone 
update. when i select option in t:select, based on the value of the 
option i need to load the picture from C:\\mypic directory. the 
problem is this pictures reside outside my tapestry webapp context and 
after reading through the tutorial, most of it is returning 
streamresponse bound to certain @onEvent.


I have no idea how to load this image, please advice,

wesley



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tutorial on Tapestry 5 scriptaculous usage

2008-10-23 Thread wesley

hi all,

so far i haven't seen any detail tutorial on the usage of ajax with
scriptaculous within Tapestry 5, anyone has pointer or links to it? please
advise

regards,
wesley
-- 
View this message in context: 
http://n2.nabble.com/Tutorial-on-Tapestry-5-scriptaculous-usage-tp1369700p1369700.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: T5 communication with applet

2008-10-14 Thread wesley

hi there,

any super simple short samples?

thanks
wesley


Argo Vilberg wrote:
> 
> I use java applet that calls javascript method and after that javascript
> calls tapestry actions.
> 
> Argo
> 
> 
> 2008/10/14, wesley <[EMAIL PROTECTED]>:
>>
>>
>> hi all,
>>
>> is it possible that T5 page's receive event from applet, eg. a click of a
>> button in applet will send an event to T5's page method. and passing
>> parameter/object to applet?
>>
>> regards
>> wesley
>> --
>> View this message in context:
>> http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332006.html
>> Sent from the Tapestry Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332101.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



T5 communication with applet

2008-10-14 Thread wesley

hi all,

is it possible that T5 page's receive event from applet, eg. a click of a
button in applet will send an event to T5's page method. and passing
parameter/object to applet?

regards
wesley
-- 
View this message in context: 
http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332006.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



RE: spring T5 integration on acegi security considerations

2008-10-08 Thread wesley

thanks for the advise, if T5's acegi can cover up much of the hardwork, i
guess i'll go for it. thanks again for the feedback.

regards,
wesley 



Jonathan Barker wrote:
> 
> 
> Please note that Spring Security is the successor to Acegi Security.  My
> experience is with Acegi but you should probably invest the time in
> learning
> Spring Security.  They have definitely changed how they configure things.
> 
> With my old T4 apps, using Acegi configured via Spring, but also using my
> own custom components (one of which behaved like IfRole) I had this in my
> web.xml:
> 
> 
>   
>   Acegi Filter Chain Proxy
>   
> org.acegisecurity.util.FilterToBeanProxy
>   
>   targetClass
>   
> org.acegisecurity.util.FilterChainProxy
>   
>   
>   
>   Acegi Filter Chain Proxy
>   /*
>   
> 
> That was before my OpenSessionInView filter for Hibernate.  There was also
> a
> listener:
> 
>   
>   
> org.acegisecurity.ui.session.HttpSessionEventPublisher ener-class>
>   
> 
> 
> In my applicationContext-acegi.xml file, I had:
> 
>class="org.acegisecurity.util.FilterChainProxy">
>   
>   
>   CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
>   PATTERN_TYPE_APACHE_ANT
>   
> /**=httpSessionContextIntegrationFilter,httpRequestIntegrationFilter
>   
>   
>   
> 
> class="org.acegisecurity.adapters.HttpRequestIntegrationFilter"/>
> 
> class="org.acegisecurity.context.HttpSessionContextIntegrationFilter">
>   
>
> 
> As well as configurations for AuthenticationProvider.
> 
> All of that configuration goes away if you use tapestry5-acegi, or to be
> more accurate, most of what you need is already set up in the
> SecurityModule
> class.  Things like the HttpSessionContextIntegrationFilter were
> re-written
> to fit into the Tapestry processing pipeline.  Take a look at the source
> for
> SecurityModule.
> 
> 
> If you still want to set it up through Spring, then make sure your
> FilterToBeanProxy is defined before your TapestrySpringFilter.
> 
> 
> 
>> -Original Message-
>> From: wesley [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, October 08, 2008 00:06
>> To: users@tapestry.apache.org
>> Subject: RE: spring T5 integration on acegi security considerations
>> 
>> 
>> hi jon,
>> 
>> since i'm integrating the spring as back end and front end as T5, the
>> filter
>> that i'm using is TapestrySpringFilter as outline by the wiki from t5
>> homepage.
>> 
>> "For access to pages, you either configure a filter through Spring, or
>> through annotations, or through tapestry-ioc configuration.  The filters
>> will invoke the necessary authentication and authorization functions."
>> 
>> as outline, i'm using tapestryspringfilter; with filter that accept
>> filter
>> mapping of url pattern of /*. is there gonna be a same configuration on
>> this
>> filter as well? please advise and thanks
>> 
>> regards,
>> wesley
>> 
>> 
>> 
>> Jonathan Barker wrote:
>> >
>> > Wesley,
>> >
>> > I would rather spend two hours figuring out how to use a well thought
>> out
>> > /
>> > designed / tested tool that will pay off in the long haul than spend
>> one
>> > hour doing a one-off solution to an immediate problem.  I didn't save
>> time
>> > the first time I used Acegi, but I really do save time now.
>> >
>> > Acegi is like a well equipped toolbox.
>> >
>> > For password encryption, Acegi provides several classes that implement
>> the
>> > PasswordEncoder interface.  These include PlaintextPasswordEncoder,
>> > MessageDigestPAsswordEncoder, Md5PasswordEncoder, and a few others. 
>> You
>> > would pick one of these and use it to configure your
>> UserDetailsService,
>> > and
>> > you can also use it directly to encode a password to store for
>> yourself.
>> >
>> > You frequently want to use a password Salt, so there is a
>> > SystemWideSaltSource where everyone gets the same salt, or a
>> > ReflectionSaltSource that can read a property that you would store with
>> > your
>> > User record.  You would configure your UserDetailsService to use a Salt
>> > source.
>> >
>> > For a

can T5 do contract first web service

2008-10-07 Thread wesley

hi all,

just wondered whether T5 can offer contract first web services like spring
2? from what i look up on the help pages, there isn't any topic on it except
Hivemind from the previous T4. any idea?

thanks
wesley
-- 
View this message in context: 
http://n2.nabble.com/can-T5-do-contract-first-web-service-tp1305736p1305736.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



RE: spring T5 integration on acegi security considerations

2008-10-07 Thread wesley

hi jon,

since i'm integrating the spring as back end and front end as T5, the filter
that i'm using is TapestrySpringFilter as outline by the wiki from t5
homepage.

"For access to pages, you either configure a filter through Spring, or
through annotations, or through tapestry-ioc configuration.  The filters
will invoke the necessary authentication and authorization functions."

as outline, i'm using tapestryspringfilter; with filter that accept filter
mapping of url pattern of /*. is there gonna be a same configuration on this
filter as well? please advise and thanks

regards,
wesley



Jonathan Barker wrote:
> 
> Wesley,
> 
> I would rather spend two hours figuring out how to use a well thought out
> /
> designed / tested tool that will pay off in the long haul than spend one
> hour doing a one-off solution to an immediate problem.  I didn't save time
> the first time I used Acegi, but I really do save time now.
> 
> Acegi is like a well equipped toolbox. 
> 
> For password encryption, Acegi provides several classes that implement the
> PasswordEncoder interface.  These include PlaintextPasswordEncoder,
> MessageDigestPAsswordEncoder, Md5PasswordEncoder, and a few others.  You
> would pick one of these and use it to configure your UserDetailsService,
> and
> you can also use it directly to encode a password to store for yourself.
> 
> You frequently want to use a password Salt, so there is a
> SystemWideSaltSource where everyone gets the same salt, or a
> ReflectionSaltSource that can read a property that you would store with
> your
> User record.  You would configure your UserDetailsService to use a Salt
> source.
> 
> For access to pages, you either configure a filter through Spring, or
> through annotations, or through tapestry-ioc configuration.  The filters
> will invoke the necessary authentication and authorization functions.
> 
> You don't generally override authenticate(), because you would use one of
> the dozen implementations of the AuthenticationProvider interface that
> ship
> with Acegi.  I typically use the LDAPAuthenticationProvider and the
> DaoAuthenticationProvider.  Of course, each of these needs to be
> configured
> somehow.  For example, you need to have a UserDetailsService configured
> for
> the DaoAuthenticationProvider.
> 
> Jonathan
> 
> 
> 
> 
>> -Original Message-
>> From: wesley [mailto:[EMAIL PROTECTED]
>> Sent: Monday, October 06, 2008 12:54
>> To: users@tapestry.apache.org
>> Subject: RE: spring T5 integration on acegi security considerations
>> 
>> 
>> hi Jon,
>> 
>> thanks much for the feedback, i assumed acegi will do all hard
>> work/encapsulate those like password encryption login and other
>> unauthorized
>> access to the pages? because with normal implementation, i need to do one
>> way encrypt myself to authenticate user for example. does acegi do that?,
>> i
>> mean the authenticate method; do i need to override it myself for
>> encryption
>> purposes? please advise, thanks
>> 
>> wesley
>> 
>> 
>> 
>> Jonathan Barker wrote:
>> >
>> >
>> > I remember going through the Acegi documentation the first time.  It
>> was
>> > daunting.
>> >
>> > In hindsight, it boils down to this:
>> >
>> > The central object in Acegi is the SecurityContext.  You need to store
>> and
>> > retrieve it from your HttpSession and that is done either through a
>> filter
>> > configured in web.xml (for a Spring-configured scenario), or as a part
>> of
>> > a
>> > Tapestry filter chain (for tapestry5-acegi).
>> >
>> > You need to configure at least one AuthenticationProvider using a
>> > UserDetailsService, and pass it to the AuthenticationManager.  I like
>> the
>> > InMemoryDaoImpl as the UserDetailsService for initial development, and
>> a
>> > way
>> > of embedding special administrative accounts.  Don't waste time reading
>> > about all of the options for this service.  Know that later you can add
>> > additional AuthenticationProviders to have multiple authentication
>> > methods.
>> >
>> > The AuthenticationProvider can be invoked manually (by injecting it
>> into
>> > your page, and calling methods like authenticate()), or via a specific
>> jsp
>> > page.
>> >
>> > For example, and this can be handy for testing, you can do this:
>> >
>> >@Inject
>> >private AuthenticationManager _authenticationManager;
>> >
>> > ...

RE: spring T5 integration on acegi security considerations

2008-10-06 Thread wesley

hi Jon,

thanks much for the feedback, i assumed acegi will do all hard
work/encapsulate those like password encryption login and other unauthorized
access to the pages? because with normal implementation, i need to do one
way encrypt myself to authenticate user for example. does acegi do that?, i
mean the authenticate method; do i need to override it myself for encryption
purposes? please advise, thanks

wesley



Jonathan Barker wrote:
> 
> 
> I remember going through the Acegi documentation the first time.  It was
> daunting.
>  
> In hindsight, it boils down to this:
> 
> The central object in Acegi is the SecurityContext.  You need to store and
> retrieve it from your HttpSession and that is done either through a filter
> configured in web.xml (for a Spring-configured scenario), or as a part of
> a
> Tapestry filter chain (for tapestry5-acegi).
> 
> You need to configure at least one AuthenticationProvider using a
> UserDetailsService, and pass it to the AuthenticationManager.  I like the
> InMemoryDaoImpl as the UserDetailsService for initial development, and a
> way
> of embedding special administrative accounts.  Don't waste time reading
> about all of the options for this service.  Know that later you can add
> additional AuthenticationProviders to have multiple authentication
> methods.
> 
> The AuthenticationProvider can be invoked manually (by injecting it into
> your page, and calling methods like authenticate()), or via a specific jsp
> page.
> 
> For example, and this can be handy for testing, you can do this:
> 
>   @Inject
>   private AuthenticationManager _authenticationManager;
> 
> ...
> 
>   UsernamePasswordAuthenticationToken authRequest = 
>   new
> UsernamePasswordAuthenticationToken(_username,_password);
>   Authentication authResult;
>   
>   try {
>   System.out.println("username:" + _username + "
> password: " + _password);
>   authResult =
> _authenticationManager.authenticate(authRequest);
>   logger.info("successful login for: " + _username);
>   } catch (BadCredentialsException failed) {
>   _form.recordError(_passwordField, "Invalid username
> or password");
>   logger.info("bad password for: " + _username);
>   return null;
>   } catch (AuthenticationException failed) {
>   _form.recordError(_passwordField, "Invalid username
> or password");
>   logger.info("failed login for: " + _username);
>   return null;
>   }
> 
>   
> SecurityContextHolder.getContext().setAuthentication(authResult);
> 
> 
> Then you need to enforce security (authorize).  This can be directly, by
> getting the SecurityContext and asking for the Authentication object, and
> then getting a list of GrantedAuthorities and working with that. (Read the
> code for the tapestry5-acegi IfRole component if you want to see what I
> mean). Or, it can be done using Spring configured filters for URL
> patterns,
> or tapestry5-acegi filters for pages or patterns.
> 
> It's only daunting if you look at it all at once.
> 
> 
> Jonathan
>  
> 
>> -Original Message-
>> From: wesley [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, October 05, 2008 12:37
>> To: users@tapestry.apache.org
>> Subject: RE: spring T5 integration on acegi security considerations
>> 
>> 
>> hi,
>> 
>> thanks for the feedback, as long as the pages are secure and can prevent
>> unauthorized users from logging in i'm open for any options. previously
>> what
>> i did was quite traditional, implementing a one way password encryption,
>> setting keystore and config within tomcat container. to me acegi is like
>> a
>> huge topic and mass complexion to implement. so when come to the decision
>> on
>> implementing it is really a challenge to me. the tutorials are great but
>> mostly aim at T5 alone (which is normal). but within my implementation
>> where
>> it is an integrated environment, i really have no idea which one should i
>> choose.
>> 
>> 
>> Jonathan Barker wrote:
>> >
>> >
>> > It depends on your needs.  The tapestry5-acegi or tapestry-spring-
>> security
>> > (http://www.localhost.nu/java/tapestry-spring-security/index.html) are
>> > probably easier to drop in.  The Spring-configured route might be
>> better
>> > if
>> > your

RE: spring T5 integration on acegi security considerations

2008-10-05 Thread wesley

hi,

thanks for the feedback, as long as the pages are secure and can prevent
unauthorized users from logging in i'm open for any options. previously what
i did was quite traditional, implementing a one way password encryption,
setting keystore and config within tomcat container. to me acegi is like a
huge topic and mass complexion to implement. so when come to the decision on
implementing it is really a challenge to me. the tutorials are great but
mostly aim at T5 alone (which is normal). but within my implementation where
it is an integrated environment, i really have no idea which one should i
choose.


Jonathan Barker wrote:
> 
> 
> It depends on your needs.  The tapestry5-acegi or tapestry-spring-security
> (http://www.localhost.nu/java/tapestry-spring-security/index.html) are
> probably easier to drop in.  The Spring-configured route might be better
> if
> your application includes other servlets or filters. 
> 
> Either way you will be able to get access to things like the
> AuthenticationManager if you need to from your page classes.
> 
> With an older T4 app, I used Spring / Hibernate / Acegi with Acegi
> configured via Spring.  I also rolled a few components: Authorize and
> AclAuthorize.
> 
> With the T5 apps I now do, I use a slightly modified tapestry5-acegi
> although I still use Spring for DAO's and some services.  Parts of my old
> Authorize component are now included in the tapestry5-acegi IfRole
> component.
> 
> Actually, I think tapestry5-acegi and its successor would benefit from
> being
> split in two: one piece for the annotations, components and supporting
> pieces that are specific to Tapestry, and the second piece to allow for a
> choice of configuration via Spring, or configuration via tapestry-ioc.
> 
> Whichever way you choose, it's better than re-inventing the wheel and
> rolling your own security.
> 
> Jonathan
> 
> 
>> -Original Message-
>> From: wesley [mailto:[EMAIL PROTECTED]
>> Sent: Friday, October 03, 2008 10:59
>> To: users@tapestry.apache.org
>> Subject: spring T5 integration on acegi security considerations
>> 
>> 
>> hi all,
>> 
>> i've been implementing a project by using T5 mostly as front end, spring
>> framework for back(eg Dao and db operations). after few search on it
>> regarding the acegi implementation, i'm a little bit confused as whether
>> or
>> not to implement this security framework on T5 or spring. any
>> recommendations or advise on this topic? should i just apply this
>> security
>> layer on T5 alone? or Spring 2 for securing the backend or both??
>> 
>> please advise, thanks
>> 
>> wesley
>> --
>> View this message in context: http://n2.nabble.com/spring-T5-integration-
>> on-acegi-security-considerations-tp1142158p1142158.html
>> Sent from the Tapestry Users 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]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/spring-T5-integration-on-acegi-security-considerations-tp1142158p1299013.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



spring T5 integration on acegi security considerations

2008-10-03 Thread wesley

hi all,

i've been implementing a project by using T5 mostly as front end, spring
framework for back(eg Dao and db operations). after few search on it
regarding the acegi implementation, i'm a little bit confused as whether or
not to implement this security framework on T5 or spring. any
recommendations or advise on this topic? should i just apply this security
layer on T5 alone? or Spring 2 for securing the backend or both??

please advise, thanks

wesley 
-- 
View this message in context: 
http://n2.nabble.com/spring-T5-integration-on-acegi-security-considerations-tp1142158p1142158.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Interactive Organisation Chart in T5

2008-10-02 Thread wesley

hi all,

I've been wondering is there a component which can render organisation chart
in T5 pages? which will have a very basic interactive such as click and fire
an event based on the hierarchical boxes? the closest to it was Tree
structure that i found on the wiki tutorial pages, but its best to have an
org chart. any recommendations? please advise, thank you.

regards,
wesley
-- 
View this message in context: 
http://n2.nabble.com/Interactive-Organisation-Chart-in-T5-tp1140737p1140737.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: formatting data output in t:grid column

2008-10-01 Thread wesley

this is great, thanks much for the help thiago!

regards,
wesley


Thiago H. de Paula Figueiredo wrote:
> 
> Em Wed, 01 Oct 2008 16:25:21 -0300, wesley <[EMAIL PROTECTED]>  
> escreveu:
> 
>> i've been wondering how i can change the format of the column data given  
>> if the data is of type java.util.Date. the t:grid column shows my result  
>> as
>> -mm-dd. how about if i want to show the time as well? is there any  
>> way
>> that i can pass something like SimpleDataFormat to format the date? and
>> there is a column which is of type double that show my result in 900.0  
>> where
>> i expect 900.00 with the format of #000.00. can anyone give me some
>> pointer/advise?
> 
>  is the answer to your question. It  
> allows you to show whatever you want in a given column.
> 
> Example taken from  
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html:
> 
> 
>   
>context="user.id">${user.lastname}
>   
> 
> 
> In your case, you would add a method in your page class that returns the  
> formatted value and then use it inside 
> 
> public String getDate() {
>   return ... // formats the date
> }
> 
> 
>   
>   ${date}
>   
> 
> 
> 
> Thiago
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/formatting-data-output-in-t%3Agrid-column-tp1132212p1133253.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



formatting data output in t:grid column

2008-10-01 Thread wesley

hi all,

i've been wondering how i can change the format of the column data given if
the data is of type java.util.Date. the t:grid column shows my result as
-mm-dd. how about if i want to show the time as well? is there any way
that i can pass something like SimpleDataFormat to format the date? and
there is a column which is of type double that show my result in 900.0 where
i expect 900.00 with the format of #000.00. can anyone give me some
pointer/advise?

thanks.

wesley
-- 
View this message in context: 
http://n2.nabble.com/formatting-data-output-in-t%3Agrid-column-tp1132212p1132212.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: pass list of string/object between Tapestry pages

2008-10-01 Thread wesley

hi there thiago,

thanks very much for the reply. the appstatemanager sure comes in handy,
thanks again for the advise.

wesley


Thiago H. de Paula Figueiredo wrote:
> 
> Em Wed, 01 Oct 2008 11:51:47 -0300, wesley <[EMAIL PROTECTED]>  
> escreveu:
> 
>> from the alternative ways of passing data around, can i say that using  
>> flash option; the data only lived on until the next page? after that any  
>> link to other page the flashed data will invalidated unless you set it  
>> again?
> 
> Yes. Flash persistence was created exactly to handle the  
> redirect-after-post technique.
> And don't forget Tapestry's application context: it is the best way to  
> pass a small amount of information from one page to another. ;)
> 
>> on another side using Application State, there's no other way to kill the
>> session unless to invalidate it. but the again, to invalidate the ASO,  
>> other objects which also bound to ASO will be wiped out as well am i  
>> correct?
> 
> If you invalidate the session, all ASO and @Persist'ed values will be  
> wiped out.
> On the other hand, you have ApplicationStateManager (a Tapestry service  
> that can be @Inject'ed in your page) and its set method  
> (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/ApplicationStateManager.html#set(java.lang.Class,
>   
> T)). It gives you the option of clearing a single ASO without wiping the  
> whole session.
> 
> Thiago
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/pass-list-of-string-object-between-Tapestry-pages-tp1128055p1132203.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: pass list of string/object between Tapestry pages

2008-10-01 Thread wesley

from the alternative ways of passing data around, can i say that using flash
option; the data only lived on until the next page? after that any link to
other page the flashed data will invalidated unless you set it again? on
another side using Application State, there's no other way to kill the
session unless to invalidate it. but the again, to invalidate the ASO, other
objects which also bound to ASO will be wiped out as well am i correct? 

wesley


Thiago H. de Paula Figueiredo wrote:
> 
> Em Tue, 30 Sep 2008 14:58:03 -0300, Alex Kotchnev <[EMAIL PROTECTED]>  
> escreveu:
> 
>> I didn't quite realize that a value in a page persisted in flash scope  
>> was not accessible to other pages ( although now that you mention it, it  
>> seems to make sense) .
> 
> It makes sense when you remember the mess that the use of HttpSession  
> attributes was . . . It was always difficult to figure out who set a given  
> attribute, and you had to be careful to not reuse the same attribute name  
> in different pages . . . Argh. I love @Persist. :)
> 
>> That's an interesting fact that seems to significantly
>> reduce the usefulness of flash scope, as in a "traditional" web app,  
>> this is the perfect way to pass short lived data between two different  
>> pages.
> 
> Don't forget that Tapestry uses redirect-after-post by default, so many  
> times you @Persist("flash") something because you do not want that  
> something to remain in the user session.
> 
> My applications tend to have a lot of @Persist("flash") and a few @Persist  
> (almost all them storing search parameters used to fill a Grid).
> 
>> However, it appears that using a combination of setters and flash scope
>> should still work, correct ? e.g.
>>
>> @Persist(value="flash")
>> User user
>>
>> public void setUser(User u) {
>>this.user = u
>> }
> 
> Yes, it would. ;) That's exactly one of its uses:
> 
> class Page2 {
>   @Persist("flash")
>   private YourData data;
>   // getters and setters
> }
> 
> class Page1 {
>   @Inject
>   private Page2 page2;
> 
>   public Object onActionFromSomething() {
>   ...
>   page2.setData(data);
>   return page2;
>   }
> }
> 
> Thiago
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/pass-list-of-string-object-between-Tapestry-pages-tp1128055p1131583.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



pass list of string/object between Tapestry pages

2008-09-29 Thread wesley

hi all,

is there any way to pass a list of string or user defined objects between
pages in tapestry 5? currently like CRUD operation, the only way to pass
parameter around is only string through onActivate() and onPassivate(). 

please advise, thanks

regards,
wesley
-- 
View this message in context: 
http://n2.nabble.com/pass-list-of-string-object-between-Tapestry-pages-tp1128055p1128055.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



delete with list of enabled checkbox

2008-09-28 Thread wesley

hi all,

i've implemented a grid with list of records, each record will have an extra
checkbox column that can be checked or unchecked. is there anyway to say,
user checked few checkbox and press delete button; in turn will pass the
list of id to delete confirm page. where the delete confirm page will show
the list of checked item and show the delete confirmation message. i don't
know how to pass the list of ids to another page.

any recommendations and advise?

regards,
wesley
-- 
View this message in context: 
http://n2.nabble.com/delete-with-list-of-enabled-checkbox-tp1124024p1124024.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: append checkbox to grid list

2008-09-27 Thread wesley

hi Marcelo,

thanks very much with the advise, yeah, it's my silly mistake, i shouldn't
use actionlink on it. It Works now, thanks very much. :-)

Regards,
Wesley



Marcelo Lotif wrote:
> 
> On Fri, Sep 26, 2008 at 11:40 AM, wesley <[EMAIL PROTECTED]> wrote:
> 
>>
>> hi Marcelo,
>>
>> thanks with the feedback, the version of Tapestry that i'm using is
>> 5.0.14.
> 
> 
> I'm using 5.0.14 too.
> 
> <http://5.0.14.>
>> based on your comment, the switched method, non existing model and the
>> println method; does it make difference? perhaps i should use the latest
>> T5
>> library?
> 
> 
> Of course it does. Without switching, the action link will print the list
> and the submit will clear it. With the model, the page does not even
> appear.
> I put the println because I don't know what is the Pt object.
> 
> I was "re-reading" your post and I saw your mistake: you are trying to
> submit with an action link. When you click in the link, the values on the
> list are not updated just because you did not submit it. And your submit
> is
> clearing the list and adding new objects to it, so the values are lost.
> 
> Just try to print the list on your submit method before you clear it, and
> you will get my point. :)
> 
> 
>>
>>
>> Marcelo Lotif wrote:
>> >
>> > wesley,
>> > Considering that your onSubmitFromMy and onActionFromCheckPage methods
>> > are switched with each other and you used a non-existent model in your
>> > tml, your code has no problems. I ran exactly the same lines you put
>> > here and everything went fine. I change you Pt.pt with
>> > System.out.println and the submit printed all my changes perfectly.
>> >
>> > Which version of tapestry are you using?
>> >
>> > On Thu, Sep 25, 2008 at 10:47 PM, wesley <[EMAIL PROTECTED]> wrote:
>> >
>> >>
>> >> hi there,
>> >>
>> >> i implemented the onPrepare method and tried to print all the value
>> out
>> >> from
>> >> the testPojoList, but all the checkbox still returned me false even i
>> >> enabled some of it. am i doing wrong? how's the standard of
>> implementing
>> >> it?
>> >> any short sample around?
>> >>
>> >> regards,
>> >> wesley
>> >>
>> >>
>> >> Jonathan Barker wrote:
>> >> >
>> >> >
>> >> > If you look at the Form documentation, you will see that the Submit
>> >> event
>> >> > fires at the end of the submission - after any values from form
>> fields
>> >> > have
>> >> > been put into your TestPojo's.  Therefore, you are wiping out any
>> >> changes
>> >> > at
>> >> > the end of your submit.
>> >> >
>> >> > You could set up the list in onPrepare().  Just make sure not to
>> >> > re-initialized it unless that's what you really want.
>> >> >
>> >> > Jonathan
>> >> >
>> >> >> -Original Message-
>> >> >> From: wesley [mailto:[EMAIL PROTECTED]
>> >> >> Sent: Thursday, September 25, 2008 13:02
>> >> >> To: users@tapestry.apache.org
>> >> >> Subject: Re: append checkbox to grid list
>> >> >>
>> >> >>
>> >> >> hi Marcelo,
>> >> >>
>> >> >> 1.below is my simple.tml page:
>> >> >> //simple.tml
>> >> >> ---
>> >> >> 
>> >> >>  
>> >> >>  
>> >> >>  > t:source="testPojoList"
>> >> >> row="tp" model="model">
>> >> >>  
>> >> >>  > t:id="subs"
>> >> >> t:value="tp.subs"/>
>> >> >>  
>> >> >>  
>> >> >>  Next
>> >> >> 
>> >> >>
>> >> >> 2.This is Simple.java
>> >> >> -
>> >> >> public class Simple {
>> >> >>  @Persist
>> >> >>  private List testPojoList;
&g

Re: append checkbox to grid list

2008-09-26 Thread wesley

hi Marcelo,

thanks with the feedback, the version of Tapestry that i'm using is 5.0.14. 
based on your comment, the switched method, non existing model and the
println method; does it make difference? perhaps i should use the latest T5
library? 


Marcelo Lotif wrote:
> 
> wesley,
> Considering that your onSubmitFromMy and onActionFromCheckPage methods
> are switched with each other and you used a non-existent model in your
> tml, your code has no problems. I ran exactly the same lines you put
> here and everything went fine. I change you Pt.pt with
> System.out.println and the submit printed all my changes perfectly.
> 
> Which version of tapestry are you using?
> 
> On Thu, Sep 25, 2008 at 10:47 PM, wesley <[EMAIL PROTECTED]> wrote:
> 
>>
>> hi there,
>>
>> i implemented the onPrepare method and tried to print all the value out
>> from
>> the testPojoList, but all the checkbox still returned me false even i
>> enabled some of it. am i doing wrong? how's the standard of implementing
>> it?
>> any short sample around?
>>
>> regards,
>> wesley
>>
>>
>> Jonathan Barker wrote:
>> >
>> >
>> > If you look at the Form documentation, you will see that the Submit
>> event
>> > fires at the end of the submission - after any values from form fields
>> > have
>> > been put into your TestPojo's.  Therefore, you are wiping out any
>> changes
>> > at
>> > the end of your submit.
>> >
>> > You could set up the list in onPrepare().  Just make sure not to
>> > re-initialized it unless that's what you really want.
>> >
>> > Jonathan
>> >
>> >> -Original Message-
>> >> From: wesley [mailto:[EMAIL PROTECTED]
>> >> Sent: Thursday, September 25, 2008 13:02
>> >> To: users@tapestry.apache.org
>> >> Subject: Re: append checkbox to grid list
>> >>
>> >>
>> >> hi Marcelo,
>> >>
>> >> 1.below is my simple.tml page:
>> >> //simple.tml
>> >> ---
>> >> 
>> >>  
>> >>  
>> >>  > >> row="tp" model="model">
>> >>  
>> >>  > >> t:value="tp.subs"/>
>> >>  
>> >>  
>> >>  Next
>> >> 
>> >>
>> >> 2.This is Simple.java
>> >> -
>> >> public class Simple {
>> >>  @Persist
>> >>  private List testPojoList;
>> >>  @Persist
>> >>  private TestPojo tp;
>> >>
>> >>  public List getTestPojoList() {
>> >>  return testPojoList;
>> >>  }
>> >>
>> >>  public void setTestPojoList(List testPojoList) {
>> >>  this.testPojoList = testPojoList;
>> >>  }
>> >>
>> >>  Object onSubmitFromMy(){
>> >>  testPojoList = new ArrayList();
>> >>  for(int i = 0; i < 10; i++){
>> >>  TestPojo tp = new TestPojo();
>> >>  tp.setId("["+i+"]");
>> >>  tp.setName("Name"+i);
>> >>  tp.setDescription("description"+i);
>> >>  testPojoList.add(tp);
>> >>  }
>> >>  return null;
>> >>  }
>> >>
>> >>  Object onActionFromCheckPage(){
>> >>  for(int i = 0; i < testPojoList.size(); i++){
>> >>  TestPojo tps = testPojoList.get(i);
>> >>  Pt.pt("id "+tps.getId()+" check "+tps.isSubs());
>> >>  }
>> >>  return null;
>> >>  }
>> >>
>> >>  public TestPojo getTp() {
>> >>  return tp;
>> >>  }
>> >>
>> >>  public void setTp(TestPojo tp) {
>> >>  this.tp = tp;
>> >>  }
>> >> }
>> >>
>> >> 3. Lastly, the pojo class within the list
>> >> --
>>

RE: append checkbox to grid list

2008-09-25 Thread wesley

hi there,

i implemented the onPrepare method and tried to print all the value out from
the testPojoList, but all the checkbox still returned me false even i
enabled some of it. am i doing wrong? how's the standard of implementing it?
any short sample around?

regards,
wesley


Jonathan Barker wrote:
> 
> 
> If you look at the Form documentation, you will see that the Submit event
> fires at the end of the submission - after any values from form fields
> have
> been put into your TestPojo's.  Therefore, you are wiping out any changes
> at
> the end of your submit.
> 
> You could set up the list in onPrepare().  Just make sure not to
> re-initialized it unless that's what you really want.
> 
> Jonathan
> 
>> -Original Message-
>> From: wesley [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, September 25, 2008 13:02
>> To: users@tapestry.apache.org
>> Subject: Re: append checkbox to grid list
>> 
>> 
>> hi Marcelo,
>> 
>> 1.below is my simple.tml page:
>> //simple.tml
>> ---
>> 
>>  
>>  
>>  > row="tp" model="model">
>>  
>>  > t:value="tp.subs"/>
>>  
>>  
>>  Next
>> 
>> 
>> 2.This is Simple.java
>> -
>> public class Simple {
>>  @Persist
>>  private List testPojoList;
>>  @Persist
>>  private TestPojo tp;
>> 
>>  public List getTestPojoList() {
>>  return testPojoList;
>>  }
>> 
>>  public void setTestPojoList(List testPojoList) {
>>  this.testPojoList = testPojoList;
>>  }
>> 
>>  Object onSubmitFromMy(){
>>  testPojoList = new ArrayList();
>>  for(int i = 0; i < 10; i++){
>>  TestPojo tp = new TestPojo();
>>  tp.setId("["+i+"]");
>>  tp.setName("Name"+i);
>>  tp.setDescription("description"+i);
>>  testPojoList.add(tp);
>>  }
>>  return null;
>>  }
>> 
>>  Object onActionFromCheckPage(){
>>  for(int i = 0; i < testPojoList.size(); i++){
>>  TestPojo tps = testPojoList.get(i);
>>  Pt.pt("id "+tps.getId()+" check "+tps.isSubs());
>>  }
>>  return null;
>>  }
>> 
>>  public TestPojo getTp() {
>>  return tp;
>>  }
>> 
>>  public void setTp(TestPojo tp) {
>>  this.tp = tp;
>>  }
>> }
>> 
>> 3. Lastly, the pojo class within the list
>> --
>> public class TestPojo {
>>  private String id;
>>  private String name;
>>  private String description;
>>  private boolean subs;
>> 
>>  public boolean isSubs() {
>>  return subs;
>>  }
>>  public void setSubs(boolean subs) {
>>  this.subs = subs;
>>  }
>>  public String getId() {
>>  return id;
>>  }
>>  public void setId(String id) {
>>  this.id = id;
>>  }
>>  public String getName() {
>>  return name;
>>  }
>>  public void setName(String name) {
>>  this.name = name;
>>  }
>>  public String getDescription() {
>>  return description;
>>  }
>>  public void setDescription(String description) {
>>  this.description = description;
>>  }
>> }
>> 
>> **the submit button is to get the list of TestPojo object
>> **the actionlink is to call the actionmethod and loop through the list
>> and
>> print out the subs boolean property. but all false even if i checked
>> enabled
>> the checkbox.
>> 
>> hope to receive your advise soon. thanks
>> 
>> wesley
>> 
>> 
>> 
>> Marcelo Lotif wrote:
>> >
>> > Can you attach your source code?Just to be sure, check if you are
>> binding
>> > it
>> > to a valid boolean property and if this property is also marked with
>> > @Persist - at least "flash

Re: append checkbox to grid list

2008-09-25 Thread wesley

hi Marcelo,

1.below is my simple.tml page:
//simple.tml
---







   
Next
   

2.This is Simple.java
-
public class Simple {
@Persist
private List testPojoList;
@Persist
private TestPojo tp;

public List getTestPojoList() {
return testPojoList;
}

public void setTestPojoList(List testPojoList) {
this.testPojoList = testPojoList;
}

Object onSubmitFromMy(){
testPojoList = new ArrayList();
for(int i = 0; i < 10; i++){
TestPojo tp = new TestPojo();
tp.setId("["+i+"]");
tp.setName("Name"+i);
tp.setDescription("description"+i);
testPojoList.add(tp);
}
return null;
}

Object onActionFromCheckPage(){
for(int i = 0; i < testPojoList.size(); i++){
TestPojo tps = testPojoList.get(i);
Pt.pt("id "+tps.getId()+" check "+tps.isSubs());
}
return null;
}

public TestPojo getTp() {
return tp;
}

public void setTp(TestPojo tp) {
this.tp = tp;
}
}

3. Lastly, the pojo class within the list
--
public class TestPojo {
private String id;
private String name;
private String description;
private boolean subs;

public boolean isSubs() {
return subs;
}
public void setSubs(boolean subs) {
this.subs = subs;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}

**the submit button is to get the list of TestPojo object
**the actionlink is to call the actionmethod and loop through the list and
print out the subs boolean property. but all false even if i checked enabled
the checkbox.

hope to receive your advise soon. thanks

wesley



Marcelo Lotif wrote:
> 
> Can you attach your source code?Just to be sure, check if you are binding
> it
> to a valid boolean property and if this property is also marked with
> @Persist - at least "flash".
> 
> On Thu, Sep 25, 2008 at 7:28 AM, wesley <[EMAIL PROTECTED]> wrote:
> 
>>
>> hi all,
>>
>> i'm having a difficulties to append additional column in grid. when i
>> append
>> the extra column within the grid model as a checkbox, the class behind it
>> couldn't track the checkbox's state (check or unchecked).
>>
>> Is there a special way to implement this? hope to have a pointer and
>> advise
>> from anyone.
>>
>> Thanks & Regards,
>> Wesley
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/append-checkbox-to-grid-list-tp1117613p1117613.html
>> Sent from the Tapestry Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Atenciosamente,
> 
> Marcelo Lotif
> Programador Java e Tapestry
> FIEC - Federação das Indústrias do Estado do Ceará
> (85) 3477-5910
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/append-checkbox-to-grid-list-tp1117613p1118670.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



append checkbox to grid list

2008-09-25 Thread wesley

hi all,

i'm having a difficulties to append additional column in grid. when i append
the extra column within the grid model as a checkbox, the class behind it
couldn't track the checkbox's state (check or unchecked).

Is there a special way to implement this? hope to have a pointer and advise
from anyone.

Thanks & Regards,
Wesley




-- 
View this message in context: 
http://n2.nabble.com/append-checkbox-to-grid-list-tp1117613p1117613.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: T5 prevent back button after logout

2008-09-24 Thread wesley

Hello Thiago,

thanks very very much on your comment and advise. :)

Regards,
Wesley



Thiago H. de Paula Figueiredo wrote:
> 
> Em Wed, 24 Sep 2008 23:28:35 -0300, wesley <[EMAIL PROTECTED]>  
> escreveu:
> 
>> Hello Thiago,
> 
> Hi!
> 
>> first of all, thanks for the reply. on my logic for logout, since the  
>> user logs in; i store user object inside ASO. When the user hit logout,  
>> the
>> method implementing this would be like
> 
> I updated your code to reflect what I've suggested you:
> 
> @Inject
> private Session session;
> 
> Object onActionFromLogoutPress(){
>  session.invalidate();
>  return LoginPage.class;
> }
> 
> You don't even need to nullify your ASO, because they are stored in the  
> session and the invalidate() method clears it.
> 
>> based on you remark, invalidating the session alone can actually fix the
>> back button problem?
> 
> This problem and others related to old info stored in the session.
> 
>> cause from what i read from the other forum, the back button is actually  
>> getting back the page from cache. any advise on this?
> 
> It's completely browser-dependent (including the handling of caches and  
> Cache-Control headers), so don't rely on the browsers. Invalidate the  
> session and all the user can see is what he/she had already seen (from the  
> browser cache).
> 
> Thiago
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/T5-prevent-back-button-after-logout-tp1116964p1117061.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



Re: T5 prevent back button after logout

2008-09-24 Thread wesley

Hello Thiago,

first of all, thanks for the reply. on my logic for logout, since the user
logs in; i store user object inside ASO. When the user hit logout, the
method implementing this would be like 

@ApplicationState
private MyUser myUser;

Object onActionFromLogoutPress(){
Class nextPage = LoginPage.class;
if(myUser != null)
   myUser = null;

return nexPage;
}

i just set the ASO back to null as i read ASO is actually stored as session? 
based on you remark, invalidating the session alone can actually fix the
back button problem? cause from what i read from the other forum, the back
button is actually getting back the page from cache. any advise on this?

thanks and regards,
wesley






Thiago H. de Paula Figueiredo wrote:
> 
> Em Wed, 24 Sep 2008 23:00:15 -0300, wesley <[EMAIL PROTECTED]>  
> escreveu:
> 
>>
>> i've implemented some projects which is spring2+T5 integrated. I followed
>> most of the tutorial from book and some tips from forums. The  
>> implementation of my user authentication is using "ASO" to control the  
>> access of
>> unauthorized users. But on my testing, right after i logout, i still be  
>> able to view the previous page which shouldn't.
> 
> AFAIK, your problem is not related to back button. Retyping the last URL  
> would have the same effect.
> 
> In your logout method, you need to invalidate (kill) the user session,  
> because otherwise it is kept until it expires by lack of user interaction.  
> You can use the Session.invalidate() method to do this in your logout
> page:
> 
> @Inject
> private Session session;
> 
> // in some method called by your logout logic
> session.invalidate();
> 
> How do you implement the user logout?
> 
> Thiago
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/T5-prevent-back-button-after-logout-tp1116964p1117002.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



T5 prevent back button after logout

2008-09-24 Thread wesley

hi all,

i've implemented some projects which is spring2+T5 integrated. I followed
most of the tutorial from book and some tips from forums. The implementation
of my user authentication is using "ASO" to control the access of
unauthorized users. But on my testing, right after i logout, i still be able
to view the previous page which shouldn't. 

On normal implementation with servlet, to fix this problem; usually is to
disabled the Cache-Control, so that user after logged out won't be able to
view the page again by pressing the back button. what about in T5? any other
way to rectify this problem using ASO? or do i need to implement some
security framework just to address this? if is really needed on security
framework, which part shall i implement it on? in spring2? or T5 alone?

Thanks and regards,
Wesley


-- 
View this message in context: 
http://n2.nabble.com/T5-prevent-back-button-after-logout-tp1116964p1116964.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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



AppModule in Spring 2+Tapestry 5 integration

2008-09-24 Thread wesley

hi all,

i intergrated spring 2.06 and Tapestry 5 for my project lately. while i'm
still considered a newbie on both framework, i use T5 as mostly on UI
purposes and spring for stored procedure and jdbc access to db. While I'm
searching for more tutorials on tapestry 5 wiki how-to, there are some
tutorial that uses Tapestry's AppModule which is default Ioc configuration
for Tapestry 5 framework alone. What about the settings of it regarding my
environment? it's spring 2 integrates tapestry 5. so i don't have the
default "AppModule" generated by T5 by default. Do i really need it?

Thanks and regards,
Wesley
-- 
View this message in context: 
http://n2.nabble.com/AppModule-in-Spring-2%2BTapestry-5-integration-tp1116957p1116957.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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