-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aleksej wrote:
> To form link itis probably DirectLink component should
> be used with parameter, but how this parameter can be readed
> in items list page? 

you can use the parameter option from the DirectLink Component

example:

# pagefile
<component id="editAccount" type="DirectLink">
  <binding name="listener" expression="listeners.editAccount"/>
  <binding name="parameters" expression="account.userId"/>
</component>

# in javafile
/**
 * Listener method to edit an existing account
 * @param cycle
 */
public void editAccount(IRequestCycle cycle)
{               
  Object [] o = cycle.getServiceParameters();
  int userId = -1;
  if (o != null)
  {
    userId = ((Integer)o[0]).intValue();
  }

  YourNewPage page = (YourNewPage)cycle.getPage("YourNewPage");
  page.setUserId(userId);
  cycle.activate(page);
}

Best Regards,

Mathias

- --
Mathias Herkt (Diplomand)    | SQS Software Quality Systems AG
                             | Stollwerckstrasse 11
Phone:+49 2203/9154-7110     | D-51149 Cologne, GERMANY
Fax:+49 2203/9154-15         | http://www.sqs.de

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFC34Ot8hWAS3IShqURAjJqAJ9Nrt1kRMX6OFKkA+ct5+JXw+V0jwCdEv+b
K7ATKXjuLpnnRySdPlQ0Z9A=
=onOR
-----END PGP SIGNATURE-----

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

Reply via email to