Hi Federic :)
Thank you for the reply, I initially thought about the
Inline box but discarded the idea. I will give your idea a go
:-)
On a related note, do you and everyone else see any
usefuleness in including this as a pre-fab tacos component?
I was thinking that once the link is clicked and the
Autocompleter appears, as soon as you move out of focus it
reverts to the (possibly) updated text link, or
alternatively/complementary a short timer is issued which on
expiry
reverts back to the (possibly) updated text
link.
Thank you again,
Yiannis.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frederic Barnabe
Sent: 18 May 2006 13:50
To: [email protected]
Subject: Re: [Tacos-devel] Component combination
I don't think you could make this with an InlineEditBox (even if it's the same behavior), so I would try to use a ajax direct link that changes a boolean property of the page. In the template, you add conditions that either shows the link or the auto completer depending on the boolean value. Make sure the updateComponent of the direct link surrounds the conditionals. Something like :
<span jwcid="@Any" id="updated">
<span jwcid="@If" condition="ognl:!clicked">
<a jwcid="@tacos:AjaxDirectLink" updateComponent="ognl:{'updated'}" listener="listener:click">Click here!</a>
</span>
<span jwcid="@If" condition="ognl:clicked">
<span jwcid="@tacos:Autocompleter"/>
</span>
</span>
There is a lot of parameters missing, but you get the idea. In the java class, you would have a boolean property named clicked and a method click() that would just set the property from false to true. Voila.
Frederic
On 5/18/06, Yiannis
Mavroukakis <[EMAIL PROTECTED]>
wrote:
Hello :)
I was wondering whether a component could be created that combines an
AutoCompleter with a text link. The
visible effect would be a clickable link that would turn into an
AutoCompleter field..Is this something
that would be classified as a new component or can existing components
be combined to achieve this?
Thank you :)
Note:__________________________________________________________________
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
________________________________________________________________________
This e-mail has been scanned for all known viruses.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel
________________________________________________________________________
This e-mail has been scanned for all known viruses.
Note:__________________________________________________________________
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
________________________________________________________________________
This e-mail has been scanned for all known viruses.
