Hi Angelo,

   by asking for a good practice I have one for you:

I use GWT + GWT-Ext works well (but this should work with 
every kind of java script).

This example:

<form>
  <div class="myPopupSelector">
    <input><!-- Textfield in question -->
  </div>
</form>

When your GWT component loads you simply add your 
Button / Image behind the textfield of all divs 
with a given class or id to open up the 
popup and save the selection to the textfield 
within your div. Sweet and simple.

In the end you can also add a marker class to the input
field just to save you a div.

If you dont use GWT you will have the right idea now.
Just walk the DOM at start up and add a button behind
the textfield to open popup and at the end write the value
in the textfield.


Cheers,

Martin


-----Ursprüngliche Nachricht-----
Von: Angelo Chen [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 3. März 2008 16:19
An: users@tapestry.apache.org
Betreff: Re: T5: How to handle lookup?


hi Davor,

In the case of zone, another area in the same page will be opened for the user 
to do some query/selection and return the result back to main form when done?

I tried jQuery with Thickbox, it pops up another window and we can do some 
selection, although it appears like another window, but actually part of the 
same page, works too.

The need for this is quite common in the Intranet app, would like to know what 
is the usual practice to adopt, thanks for the idea.

A.C.



Davor Hrg wrote:
> 
> to use popup window you need a separate page, and pair of javascript 
> functions to connect the page in popup with parent page's input....
> 
> I personaly don't like popup windows because they're slow to open, a 
> zone would make a better choice here..
> .. I haven't played arround with it, just some thoughts ...
> 
> Davor Hrg
> 
> 
> 

--
View this message in context: 
http://www.nabble.com/T5%3A-How-to-handle-lookup--tp15799598p15806120.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


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

Reply via email to