Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Martin Marinschek
> > if (username == null || "".equals(username)) { > > > > > > > > > log.warn("Username not specified, notifying user that it's a > > > > > > > > > required field."); > > > > > &g

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Matthias Wessendorf
; > > > addError("errors.required", getText("user.username")); > > > > > > > > return null; > > > > > > > > } > > > > > > > > > > > > >

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Martin Marinschek
> > > > > > > > > > if (log.isDebugEnabled()) { > > > > > > > log.debug("Processing Password Hint..."); > > > > > > > } > > > > > > > > > > > > >

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Matthias Wessendorf
gt; > > > > User user = userManager.getUserByUsername(username); > > > > > > > > > > > > StringBuffer msg = new StringBuffer(); > > > > > > msg.append("Your password hint is: " + > &g

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Mike Kienenberger
;) + "] " + > > getText("user.passwordHint"); > > message.setSubject(subject); > > message.setText(msg.toString()); > > mailEngine.send(message); > > > > addMessage("login.passwordHint.se

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Martin Marinschek
// look up the user's information > > > > > try { > > > > > User user = userManager.getUserByUsername(username); > > > > > > > > > > StringBuffer msg = new StringBuffer(); > > > > > ms

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Matthias Wessendorf
; > > > msg.append("Your password hint is: " + > > > user.getPasswordHint()); > > > > msg.append("\n\nLogin at: " + > > > > RequestUtil.getAppURL(getRequest())); > > > > > > > >

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Mike Kienenberger
message.setTo(user.getEmail()); > > > String subject = '[' + getText("webapp.name") + "] " + > > > getText("user.passwordHint"); > > > message.setSubject(subject); > > > message.set

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Matthias Wessendorf
String subject = '[' + getText("webapp.name") + "] " + > > getText("user.passwordHint"); > > message.setSubject(subject); > > message.setText(msg.toString()); > > mailEngine.send(message); > >

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Martin Marinschek
ect(subject); > message.setText(msg.toString()); > mailEngine.send(message); > > addMessage("login.passwordHint.sent ", >new Object[] { username, user.getEmail() }); > > } catch (Exception e) { >

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Ricardo Tercero Lozano
} return "success"; } This worked fine in 1.1.4, but for some reason - 1.1.5 keeps redirecting back to the same page. Any ideas? Thanks, Matt -- View this message in context: http://www.nabble.com/Upgrading-from-MyFaces-1.1.4-to-1.1.5-tf3271040.html#a9094577 Sent from the MyFaces - Users mailing list archive at Nabble.com.

Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-21 Thread mraible
addError("login.passwordHint.error", username); } return "success"; } This worked fine in 1.1.4, but for some reason - 1.1.5 keeps redirecting back to the same page. Any ideas? Thanks, Matt -- View this message in context: http://www.nabble.com/Upgrading-from-MyFaces-1.1.4-to-1.1.5-tf3271040.html#a9094577 Sent from the MyFaces - Users mailing list archive at Nabble.com.