Return-Path: X-Original-To: apmail-isis-users-archive@www.apache.org Delivered-To: apmail-isis-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00F2917F16 for ; Thu, 12 Feb 2015 07:44:08 +0000 (UTC) Received: (qmail 36589 invoked by uid 500); 12 Feb 2015 07:44:07 -0000 Delivered-To: apmail-isis-users-archive@isis.apache.org Received: (qmail 36556 invoked by uid 500); 12 Feb 2015 07:44:07 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 36543 invoked by uid 99); 12 Feb 2015 07:44:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 07:44:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hirunimadola@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 07:43:42 +0000 Received: by mail-we0-f175.google.com with SMTP id x3so8255413wes.6 for ; Wed, 11 Feb 2015 23:42:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ws8CSUyR+bLJtfDWifETtEzjYWUfEB2BUGOdzyuF+sQ=; b=DS5YvKoQdjJERH9/3gatj7nGNoK3n3b9k2v52ZQWxbJ0FEpOU5pbHD6PGgA3I91OcD QLKV9Ftwi4ZL75b8+A3CzggbolX+2x0pl4aSF03ya0/8IeLuwSTzDnM7tP7H2CmV/JJA COYrYnNdi1tLNMYmzbrcdi2b84J9Znfl3+cgtAkVJsCFwQMQKCSo+1xWG/JoH0/zzTBc JnoTdKOLxZVMuoKtubNTHtqyi69ZWPcCCyH322qpsQ7MZRN1YarhbZKIVxD1bgVupJB1 Kh7y69iNvte3RDqjCSz71vcTH59HUnflWtmOJ9h9mXG0bQ021oPQ4c3dhBTOz8sDxnbO AmPg== MIME-Version: 1.0 X-Received: by 10.180.19.228 with SMTP id i4mr3512964wie.13.1423726976269; Wed, 11 Feb 2015 23:42:56 -0800 (PST) Received: by 10.217.143.4 with HTTP; Wed, 11 Feb 2015 23:42:56 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Feb 2015 13:12:56 +0530 Message-ID: Subject: Re: How to add a Password text field in Apache Isis From: Hiruni Madola To: users@isis.apache.org Content-Type: multipart/alternative; boundary=bcaec53d5507ad832d050edf4466 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec53d5507ad832d050edf4466 Content-Type: text/plain; charset=UTF-8 Thank you Martin for the quick response.. On Thu, Feb 12, 2015 at 1:05 PM, Martin Grigorov wrote: > Hi, > > You need to use Password [1] instead of String. > > > 1. > > https://github.com/apache/isis/blob/master/core/applib/src/main/java/org/apache/isis/applib/value/Password.java > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, Feb 12, 2015 at 9:31 AM, Hiruni Madola > wrote: > > > Hi everyone, > > > > I'm developing a demo User Account Management app. Domain object is a > > UserAccount. I went through the simpleApp, todoApp archetypes and some > of > > the docs in Isis web page. > > > > I have a service called UserAccountService, where I need to add a Signup > > action for new UserAccounts. > > > > So Here I need to add a Password field to add a new account. > > In my service class I have method as below; > > public void signUp(@Named("Username") String uname,@Named("Password") > > String password) { > > UserAccount acc =new UserAccount(); > > acc.setUName(uname); > > acc.setPassword(password); > > } > > > > I need above password parameter to be a password text field in the UI > > (hidden text field) > > Can I pls know how to make the above password parameter as a password > field > > ? > > In Wicket there is a component called PasswordTextField. > > > > Can anyone help me to make my input param render as a PasswordTextField > in > > the Isis UI? > > > > Thank you. > > Hiruni > > > -- Hiru --bcaec53d5507ad832d050edf4466--