On Tue, Jul 22, 2008 at 7:51 PM, srizmi <[EMAIL PROTECTED]> wrote:
>
> Got a couple of questions:
>
>        1. BookmarkablePageLink - shouldn't events be exposed so that the 
> target
> page [ page 2 in Joe's example ] is bookmarkable and still the user inputs
> could be passed as pageParameters?

Bookmarkable link does not have a server side onclick all pageparams
given to it are encoded at rendertime in the url. So that would be a
no.

>
>        2. SubmitLink - Why doesn't it have PopupSettings ?

No particular reason i guess. I don't think any one ever needed one before.
You actually don't even have to use a wicket component to submit a
form. You can just put an input type="submit" element on your page or
any element doing something like form.submit() in javascript. Which
makes it pretty easy do anything you want here including popups

>
>        3. AjaxSubmitLink - Joe's requirement in the example is page 2 is fully
> rendered, NOT partially, so  what's the benefit of using Ajax here?

:) Yeah that's my fault i was reading to fast and though he meant a
modalwindow instead of a popup window. No need for ajaxsubmitlink
here.

Maurice

>
> Thanks,
> a curious newcomer.
>
>
> Mr Mean wrote:
>>
>> Try an AjaxSubmitLink. And make sure that page2 is using the models
>> that page 1 uses to store the dates in.
>> If you want to o back and forth between those 2 pages it is a good
>> idea to pass a page reference between them so when they are serialized
>> they don't get out of sync with each other.
>>
>> Maurice
>>
>>
>>
>> On Mon, Jul 21, 2008 at 9:35 PM,  <[EMAIL PROTECTED]> wrote:
>>> I looked around and could not find a simple solution to this, but it
>>> seems
>>> like there should be one.  My problem is this:
>>>
>>>
>>>
>>> 1.      on page 1, I have a couple of input boxes for dates
>>> 2.      on page 1, when a user clicks "GO", I want to display a popup
>>> window
>>> (page2)
>>> 3.      on page 2, I want to use those dates from page1 to do things
>>>
>>>
>>>
>>> If I use a submit link, then I cannot create a pop-up window.  If I use
>>> PageParameters and a BookmarkableLink, then the params that are sent are
>>> not
>>> the ones that the user entered before clicking "GO" (instead they are the
>>> ones that were set at render time).   In the BookmarkableLink scenario, I
>>> could use javascript, but I want to avoid that.
>>>
>>>
>>>
>>> Any suggestions?  Am I missing something obvious?
>>>
>>>
>>>
>>> Thx
>>>
>>>
>>>
>>> Joe C
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-create-a-Popup-Window-with-a-submit-Link-%28Or-at-least-get--the-similiar-functionality%29--tp18575931p18595104.html
> Sent from the Wicket - 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