naah

Link link=new Link(...) { onclick() { setresponsepage(new loginpage()); };
link.add(new SimpleAttributeModifier("onclick", "openmodalwindow(); return
false;"));
add(link);

now if no javascript then return false is never called and the href takes
the user to login page.

-igor


On 4/19/07, Scott Sauyet <[EMAIL PROTECTED]> wrote:

Al Maw wrote:
> ModalWindow is just about the only component that won't work without
> JavaScript. Like Igor says, stick to AjaxFallback* (or even
> IndicatingAjaxFallback*) and let Wicket do the heavy lifting for you.

Hmmm, that's one of my favorite uses of AJAX, honestly.  I transform a
link to the login page to a call for a modal window with the login
contents, and then, upon successful login, AJAX in anything dependent
upon user credentials.  I have no problem doing the client side
transformations, as long as there is some straightforward way to
transform the link to the login page to something I can use for
for the modal window.  But if the user has Javascript off, they simply
proceed to the login page.

Does that sound particularly difficult to do with a ModalWindow?

Thanks for the information,

   -- Scott


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to