Re: AppModule: using injected service in ContributeWebSecurityManager

2012-06-20 Thread cablepuff
Thanks. It works. I created public static DataSource buildMyDataSource() { // ... implemenation. } then inject the code using @Local @Service("myDataSource") DataSource dataSource like you suggested. -- View this message in context: http://tapestry.1045711.n5.nabble.com/AppModule-

AppModule: using injected service in ContributeWebSecurityManager

2012-06-20 Thread cablepuff
Hi i have the following problem. I have set the following code. public void contributeWebSecurityManager( final Configuration configuration //, @InjectService("myDataSource")final DataSource dataSource ) { f

Re: Tapestry 5.25 with Tynamo 0.4.0 onActionFromLogout not redirecting to index page.

2011-06-30 Thread cablepuff
Thanks it works. logout It would be cool if a.) I can specify and configure the post logout page as either a parameter or configuration (don't know how). b.) Fix the session issue during logout. http://tapestry.1045711.n5.nabble.com/Error-after-logout-td3389686.h

Re: Tapestry 5.25 with Tynamo 0.4.0 onActionFromLogout not redirecting to index page.

2011-06-29 Thread cablepuff
  

Re: Tapestry 5.25 with Tynamo 0.4.0 onActionFromLogout not redirecting to index page.

2011-06-27 Thread cablepuff
Hi actually after looking at the log. onActionFromLogout doesn't seem to get called either. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-25-with-Tynamo-0-4-0-onActionFromLogout-not-redirecting-to-index-page-tp4521350p4528286.html Sent from the Tapestry - User

Tapestry 5.25 with Tynamo 0.4.0 onActionFromLogout not redirecting to index page.

2011-06-24 Thread cablepuff
So i have many pages that implements "onActionFromLogout" @InjectPage private Index index; public Object onActionFromLogout() { SecurityUtils.getSubject().logout(); try { // the session is already invalidated, but need to cause an exception since tapestry

Tynamo 0.4.0 security: How to create custom credential matcher.

2011-06-14 Thread cablepuff
Hi I have the following credential matcher from shiro.ini. Since the support for its remove, how would I convert the following. [main] credentialsMatcher=org.apache.shiro.authc.credential.HashedCredentialsMatcher credentialsMatcher.storedCredentialsHexEncoded=false credentialsMatcher.hashIteration

Tapestry 5.2.5 , Tynamo Security 0.3.1 getting unexpected runtime exception on logout.

2011-05-29 Thread cablepuff
Hi i have the following class. Layout.java which has this. Here is in my layout.tml    @Log public Object onActionFromLogout() { this.securityService.getSubject().logout(); try { final Session session =

Re: Tapestry 5.2.5: does not contain a property (or public field) named

2011-05-04 Thread cablepuff
Thanks. That was the problem. i use imageBasePath in html and now works. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-does-not-contain-a-property-or-public-field-named-tp4367257p4371470.html Sent from the Tapestry - User mailing list archive at Nabble.co

Tapestry 5.2.5: does not contain a property (or public field) named

2011-05-03 Thread cablepuff
Hi I have the following class. my page file. class MyPage { @Property @Inject @Symbol(value = UploadSymbols.REPOSITORY_LOCATION) private String imageBasePath; } my tml file. ${imageBathPath}/${image2} I get the following error. Could not convert 'imageBathP

Tapestry: 5.2.5 : File upload with bean edit form (Example)

2011-04-29 Thread cablepuff
Hi does anyone have an example of using file uploading with beaneditform. The example shows one using without bean edit form, but I want one with using beaneditform. Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-File-upload-with-bean-edit-form-Exa

Re: Tapestry 5: @Property object is null when using in onActivate

2011-04-26 Thread cablepuff
Yes i want to redirect to another page if the user is not sign in. However I found my main problem. I was returning this which would cause it to reinitialize itself, thus causing infinite loop. Instead I return null if the authentication passed. Thanks. -- View this message in context: http

Re: Tapestry 5: @Property object is null when using in onActivate

2011-04-24 Thread cablepuff
public Object onActivate(final Integer databaseId) { Validate.notNull(this.myCommand, "command should be injected"); this.dbRecord = this.myDao.getRecordById(databaseId); final User user = this.securityService.getCurrentUser();

Re: Tapestry 5: @Property object is null when using in onActivate

2011-04-24 Thread cablepuff
Hi I tried it. End up getting this. Firefox has detected that the server is redirecting the request for this address in a way that will never complete. It seems like their is a endless loop going from onActivate and object annotated with @property -- View this message in context: http://tape

Tapestry 5: @Property object is null when using in onActivate

2011-04-23 Thread cablepuff
Hi I have a situation where I have a @property object. @Property private Command cmd. My onActivate would take an id and load it from db and set the obj onActivate(Integer databaseId) { DBRecord dbRecord = myDao.getById(databaseId); if (dbRecord != null) { cmd.setVal(db

Re: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread cablepuff
I found my problem. I had to put a parameter namespace block around it to get it working. I put it inside -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-25-autocomplete-not-working-tp4287751p4290071.html Sent from the Tapestry - User mailing list archive

Re: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread cablepuff
so here is my tml file. I follow and add @Log and even put if (LOG.isDebugEnabled()) { LOG.debug("calling loading of frameworks starting with {}", partial); } Are their anything missing? Are their samples i can see. I debug it in firefox, and I don't see any autocomplete css/js in

Tapestry 5.25 autocomplete not working.

2011-04-06 Thread cablepuff
Hi i have the following field. public class FrameworkPage{ @Component(id = "frameworkName") private TextField frameworkName; public List onProvideCompletionsFromFrameworkName(final String partial) { return this.frameworkService.getFrameworkByName(partial); } }

Re: tapestry-spring: injecting with multiple implementation.

2011-03-27 Thread cablepuff
Well its ugly but i have to get around it by manual loading the JNDI data source. private static DataSource getJndiDataSource() { DataSource dataSource = null; final String datasourceContext = "java:comp/env/jdbc/DS" try {

tapestry-spring: injecting with multiple implementation.

2010-12-26 Thread cablepuff
HI i have a problem in injecting multiple data source into different application. I have a.) selling service that uses one data source (via ) b.) authentication service that uses another. (via ) and so on. now in my appmodule i inject the service with two option: option A:) @Autowi

Re: tapestry security with 1.1.0 of shiro --> unable to get sha512 login working.

2010-11-14 Thread cablepuff
thanks. how do i test that my configuration is working correctly? final String username = "username"; final String password = "password"; String hashedPasswordBase64 = new Sha512Hash(password).toBase64(); // ini part. Ini ini = ne

tapestry security with 1.1.0 of shiro --> unable to get sha512 login working.

2010-11-13 Thread cablepuff
So this is in my pom.xml I have 0.2.0 version of tynamo security excluding apache shiro 1.0.0.incubating and instead using 1.1.0 of apache shiro. my save user looks like this.. // begin save user RandomNumberGenerator rng = new SecureRandomNumberGenerator();

tapestry tynamo forum login question.

2010-10-20 Thread cablepuff
Hi i have a few question. how do i set up jdbc relam is doing this k? public class AppModule { @Inject private static DataSource dataSource; private static JdbcRealm realm; private static final String AUTHENTICATION_QUERY = "select PASSWORD from USER_ROLE