Probably my question it's not so clear ...
I am already opening a popup with a
BookmarkablePageLink as you can see. I need to get the
content of the textfield when the user click the link
before open the popup without submit the form. I think
is possible if there are some opportunity to change
the javascript code that is invoked by
BookmarkablePageLink .
I am able now to fill the textfield from the popup
with the user selected value but not the opposite!
I cannot show the actual data from textfield in the
popup calendar.
 

This is a part of the code of DatePicker:

public final class DatePicker extends Panel {
        
        /**
     * Constructor that uses the provided [EMAIL PROTECTED]
IModel}as its model. All components have
     * names. A component's name cannot be null.
     * @param name The non-null name of this component
     * @param model
     * @throws WicketRuntimeException Thrown if the
component has been given a null name.
     */
    public DatePicker(String name, IModel model)
    {
        super(name);
                TextField stringInput = new
TextField("campo",model);
                createUI(stringInput);
    }

...
        /**
        */
        public DatePicker(String name, IModel model, String
expression)
        {
        super(name);
                TextField stringInput = new
TextField("campo",model,expression);
                createUI(stringInput);
        }
        
        private void createUI(TextField field){
                add(field);
                PopupSettings popupSpec = new
PopupSettings().setHeight(200).setWidth(265).setLocation(100,100).setStatusBar(false).setWindowName("WCalendar")
;
                final BookmarkablePageLink link = new
BookmarkablePageLink("popupLink",
DatePickerPopupPage.class);
                link.setPopupSettings(popupSpec);
                link.add(new Image("image4", "cal.gif"));
                add(link);
        }
}

--- Maurice Marrink <[EMAIL PROTECTED]>
wrote:

> Since the textfield is likely to be in a form you
> might want to make the
> icon submit the form and then in the submit from
> your form open the
> popup.
> The trick will be however to update the mainpage
> without loosing any
> data after you close the popup.
> 
> IMO it would be far easier to use one of the many
> fully javascripted
> datepickers that open a floating div instead because
> you never have to
> leave the page.
> 
> Maurice
> 
> 
> -----Oorspronkelijk bericht-----
> Van: Antonio Casula [mailto:[EMAIL PROTECTED] 
> Verzonden: vrijdag 11 februari 2005 11:05
> Aan: [email protected]
> Onderwerp: [Wicket-user] onClick event
> 
> I have written a Calendar and a DatePicker
> components
> for wicket without use javascript (almost) (btw how
> to
> contribute them to the wicket community?) but
> something is missed.
> the datepicker component is composed by one
> textfield
> and a link (a calendar icon actually).
> I need to get the textfield value and send like
> parameter to the calendar component (a popup
> WebPage)
> when I click on icon.
> 
> Some suggestion?
> 
> Antonio
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Meet the all-new My Yahoo! - Try it today! 
> http://my.yahoo.com 
>  
> 
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
>
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Wicket-user mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
> _______________________________________________
> Wicket-user mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
> 



                
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page � Try My Yahoo!
http://my.yahoo.com 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to