i've put the deafult value for isName,isAge and isOccupation =false so i only
have to specify the parameter im interested in as true .
but still if i need to include a new property say lastName i have to change
component spec and html template and that doesn't look too convincing.
Aninder Makkar <[EMAIL PROTECTED]> wrote: Thanks Diogenes i used the onChange
event as the solution and it's working as intended........and thanks once
again for your prompt reply ..
ok am on another solution crisis , i've made a component which queries the
database and gets a customer object , in the html template i do
'ognl:customer.name' to insert the customer name , now im in a situation where
i need basically the same component but instead of inserting name i want to
insert age or occupation depending on the context.So i've been trying to
figure out how to reuse the component , and the best way i can come up with
right now is adding parameter each for age , occupation and name(for example
isAge,isOccupation,isName) in the component spec ..so for example if i have to
use the component for age, i'll specify
isName=false,isAge=true,isOccupation=false
and in the html template i use the conditional statements to know which
customer property to insert.
it works but it's not elegant with all these extra binding parameters.
Can anyone help me with a better way of inserting dynamic object properties
in html template ...
Diogenes Moreira wrote: you can use the onchage event or evaluate the condion
in the Page
object and then incluide in you template a segment like this.
You can use a refresh IActionListern
<--
window.open(....)
-->
Greetings,
2006/3/27, Aninder Makkar :
> Hi Guys ,
> Im creating a PropertySelection component in Tapestry 3.0 , the fields
> for the drop down are dynamic
> and i've implemented a new IPropertySelectionModel , one of the reasons
> include adding a external link to the end of the drop-down list ....
> Now when the user clicks on the link i want a new browser window to open
> and take the user to the specified page(page external to tapestry
> application)...
> Any suggestions?
>
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones from your PC for low,
> low rates.
>
--
Diogenes A Moreira
Project Manager
PLEASE NOTE
This message, along with any attachments, may be confidential or
legally privileged. It is intended only for the named person(s), who
is/are the only authorized recipients. If this message has reached you
in error, kindly destroy it without review and notify the sender
immediately. Thank you for your help.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.