Re: Fallback support for ModalWindow

2008-07-11 Thread pixologe

I agree with hbf.
Of course, modal window is a JS component, but a fallback would really make
sense (why shouldn't there be one when there's one for AjaxLink?).
Is there any component like this around by now or planned in near future?

Basically it should be possible to have a placeholder (MarkupContainer) for
the dialog on every page (which might yield one), hidden until displayed by
an AjaxFallbackLink... this would lead to the whole page reloading + the
dialog MarkupContainer when JS is turned off. Same for closing the window
and returning the dialog result to the underlying component...

But of course, I would prefer an out-of-the-box solution or a ready-made
component. :)



hbf wrote:
 
 On 15.03.2008, at 17:22, Martijn Dashorst wrote:
 
 According to me, when javascript is turned off, onclick is not fired.
 
 
 I agree. I'll try to be more precise:
 
 For instance, the link to open the modal window: if it were made a link
 with both href and an onClick then the href-link will be taken if JS is
 off. This href-link would be such that a page is shown that contains the
 modal window as a div on top of the other page content (no JS involved).
 On the other hand, if JS is on, the onClick is triggered and the div  
 gets
 fetched and shown using JS.
 
 Wouldn't this work? I am just trying to give a constructive feedback on
 the current ModalWindow implementation where I feel that at least
 conceptually the modal window can be shown even without JavaScript.
 
 But obviously you know much more about the internal workings so  
 apologies
 if my comments do not hit the mark.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Fallback-support-for-ModalWindow-tp15985980p18402137.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]



Re: Fallback support for ModalWindow

2008-03-15 Thread Kaspar Fischer

On 14.03.2008, at 18:04, Martijn Dashorst wrote:


it can't. ModalWindow is a javascript component. JavaScript is
necessary for displaying, hiding, positioning, closing, etc. the div
that is the modal window.


I see that it currently works like this.

The fallback solution I was thinking of was: the link to open the  
model window
renders a page which simply contains the windows as an overlayed div.  
(As you
say, the link is therefore a regular link with some JavaScript on it.)  
Of course,
as JS is unavailable, the user will not be able to drag/position it,  
but when

he clicks close, the page is rendered again.

Of course, if JS *is* available, AJAX would be used as it is done now.

P.S. Having the ability to show the modal window without JS might be  
helpful

for http://issues.apache.org/jira/browse/WICKET-12, too (?).

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



Re: Fallback support for ModalWindow

2008-03-15 Thread Martijn Dashorst
According to me, when javascript is turned off, onclick is not fired.

Martijn

On 3/15/08, Kaspar Fischer [EMAIL PROTECTED] wrote:
 On 14.03.2008, at 18:04, Martijn Dashorst wrote:

   it can't. ModalWindow is a javascript component. JavaScript is
   necessary for displaying, hiding, positioning, closing, etc. the div
   that is the modal window.


 I see that it currently works like this.

  The fallback solution I was thinking of was: the link to open the
  model window
  renders a page which simply contains the windows as an overlayed div.
  (As you
  say, the link is therefore a regular link with some JavaScript on it.)
  Of course,
  as JS is unavailable, the user will not be able to drag/position it,
  but when
  he clicks close, the page is rendered again.

  Of course, if JS *is* available, AJAX would be used as it is done now.

  P.S. Having the ability to show the modal window without JS might be
  helpful
  for http://issues.apache.org/jira/browse/WICKET-12, too (?).


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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

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



Re: Fallback support for ModalWindow

2008-03-15 Thread Kaspar Fischer

On 15.03.2008, at 17:22, Martijn Dashorst wrote:


According to me, when javascript is turned off, onclick is not fired.



I agree. I'll try to be more precise:

For instance, the link to open the modal window: if it were made a link
with both href and an onClick then the href-link will be taken if JS is
off. This href-link would be such that a page is shown that contains the
modal window as a div on top of the other page content (no JS involved).
On the other hand, if JS is on, the onClick is triggered and the div  
gets

fetched and shown using JS.

Wouldn't this work? I am just trying to give a constructive feedback on
the current ModalWindow implementation where I feel that at least
conceptually the modal window can be shown even without JavaScript.

But obviously you know much more about the internal workings so  
apologies

if my comments do not hit the mark.

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



Re: Fallback support for ModalWindow

2008-03-14 Thread Kaspar Fischer
Anybody has an idea how the modal window can be made to work when  
JavaScript

is disabled?

On 11.03.2008, at 17:18, Kaspar Fischer wrote:

I am using http://www.wicket-library.com/wicket-examples/ajax/modal-window 
 to
show a modal dialog holding a component. -- First of all, thanks to  
the author

of this extension! It's great, took me only 2 minutes to set it up!

One question I have is whether it is possible to make ModalWindow  
fall back
to an ordinary link to the page showing the modal window if  
JavaScript is

disabled. Does somebody know how to achieve this?

Thanks,
Kaspar



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



Re: Fallback support for ModalWindow

2008-03-14 Thread Martijn Dashorst
it can't. ModalWindow is a javascript component. JavaScript is
necessary for displaying, hiding, positioning, closing, etc. the div
that is the modal window.

The only javascript less option aiui is using popup-settings on a regular link.

Martijn

On 3/14/08, Kaspar Fischer [EMAIL PROTECTED] wrote:
 Anybody has an idea how the modal window can be made to work when
  JavaScript
  is disabled?


  On 11.03.2008, at 17:18, Kaspar Fischer wrote:

   I am using http://www.wicket-library.com/wicket-examples/ajax/modal-window
to
   show a modal dialog holding a component. -- First of all, thanks to
   the author
   of this extension! It's great, took me only 2 minutes to set it up!
  
   One question I have is whether it is possible to make ModalWindow
   fall back
   to an ordinary link to the page showing the modal window if
   JavaScript is
   disabled. Does somebody know how to achieve this?
  
   Thanks,
   Kaspar


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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

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