Ah I see now .. okay this is somewhat different from what I expected .. no this is not possible for the moment, you will have to modify the JSP by hand for that

(which is a very minor change)

 

-- Wouter

 


From: Frederic Chapuis [mailto:[EMAIL PROTECTED]
Sent: Monday, November 01, 2004 6:34 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Andromda-user] Validation Error: One Use-Case per package...

 

Sorry, I must have forgotten to include the list for every replies since my first one was

mostly directed to you personaly.

 

I've tried the tablelink and here is what was generated :

<html:link action="">nomPrenom}">${row.nomPrenom}</html:link>

whereas I expected it to generate something like this :

<html:link action="">idUser}">${row.nomPrenom}</html:link>

I obtained this by setting the tagged values tablelink=itemsFound.nomPrenom & field.type=link on the outgoing FrontEndEvent action parameter (named 'idUser').

The itemsFound is a Collection of objects with both 'idUser' and 'nomPrenom' attributes having the table.columns tagged value targetting these attributes.

 

Fred.

 

----- Original Message -----

From: "Wouter Zoons" <[EMAIL PROTECTED]>

To: "'Frederic Chapuis'" <[EMAIL PROTECTED]>

Cc: "'AndroMDA-Users'" <[EMAIL PROTECTED]>

Sent: Monday, November 01, 2004 4:31 PM

Subject: RE: [Andromda-user] Validation Error: One Use-Case per package...

 

> Please reply to the mailing list too ...
>
>> -----Original Message-----
>> From: Frederic Chapuis [mailto:[EMAIL PROTECTED]
>> Sent: Monday, November 01, 2004 4:10 PM
>> To:
[EMAIL PROTECTED]
>> Subject: Re: [Andromda-user] Validation Error: One Use-Case per package...
>>
>> Well I think I get the point. This is because I modelled an 'idUser' as
>> the
>> primary-key instead of
>> letting Hibernate handle the primary-key with an 'id' attribute. Is that
>> it
>> ?
>>
> [WZ> ] the id attribute should NOT be the primary key, just something that
> identifies your entity in your business
>
>

>> Around this, I was wondering if it was possible to render the hyperlink
>> generated by the tablelink
>> tagged value on any other attribute than the one used as the link (in
>> general the 'id' attribute)
>> thus not having the 'id' displayed in the page (for exemple having the
>> hyperlink which uses the 'id'
>> attribute rendered on the 'name' attribute). Am I clear ?
>>
> [WZ> ] yes, this is possible ... if the table is a collection called
> 'itemList' then simply put the tablelink tagged value on the 'id' action
> parameter and give it value 'itemList.name'
>
> (by default 'itemList.id' will be assumed when you only enter 'itemList' on
> the 'id' parameter)
>
> -- Wouter

>
>
>
>

Reply via email to