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-
Hi i have the following problem. I have set the following code.
public void contributeWebSecurityManager(
final Configuration configuration
//, @InjectService("myDataSource")final DataSource
dataSource
) {
f
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
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
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
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
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 =
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
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
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
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
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();
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
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
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
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
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);
}
}
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 {
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
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
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();
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
23 matches
Mail list logo