Re: [Wicket-user] creating a javascript prompt component

2006-08-23 Thread Hugo Visser
Okay, that could work, but in my case I'm not wrapping each led-sign element in a form. What I've come up with, after looking at the Link class, is registering a new IRequestListener, my PromptResultListener.Then, when rendering i get the url for the listener and append a parameter, like this:
String url = ""
Then I get the p value from the request and dispatch that. It feels a bit hacky but it looks like the way the Ajax stuff is working right?Maybe in the end I'll conclude that I need a form element for all of this after all, but so far it seems to be working like I want it :)
Thanks,HugoOn 8/21/06, 
Martijn Dashorst [EMAIL PROTECTED] wrote:

Probably the simplest way to go is to create a panel with a hiddenfield, or a textfield with style='display:none', and a label. the restis left your _javascript_ guru-ness.wicket:panelspan wicket:id=text
>'bar');text comes here/spaninput wicket:id=value type=hidden id=foo //wicket:panel
MartijnOn 8/20/06, Hugo Visser [EMAIL PROTECTED] wrote: Hi, I'm toying around with wicket some more and I'm working on a kind of editor
 application for my led-sign which I have at home. Basically it allows you to select a font, color, effect and set some text. For the set text part of it I'd like it to be as simple as clicking on the text, popping up a _javascript_
 prompt dialog and then updating the text in the model. Problem is that I cannot seem to find how I should handle the return value from the prompt so that the model/page is updated. Any hints how to create my prompt
 component for this? Thanks, Hugo - Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list 

Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
--Download Wicket 
1.2.1 now! Embed Wicket components in your portals!-- http://wicketframework.org-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] creating a javascript prompt component

2006-08-21 Thread Martijn Dashorst
Probably the simplest way to go is to create a panel with a hidden
field, or a textfield with style='display:none', and a label. the rest
is left your javascript guru-ness.

wicket:panel
span wicket:id=text
onclick=document.getElementById('foo').value=prompt('foo',
'bar');text comes here/span
input wicket:id=value type=hidden id=foo /
/wicket:panel

Martijn

On 8/20/06, Hugo Visser [EMAIL PROTECTED] wrote:
 Hi,

 I'm toying around with wicket some more and I'm working on a kind of editor
 application for my led-sign which I have at home. Basically it allows you to
 select a font, color, effect and set some text. For the set text part of it
 I'd like it to be as simple as clicking on the text, popping up a javascript
 prompt dialog and then updating the text in the model. Problem is that I
 cannot seem to find how I should handle the return value from the prompt so
 that the model/page is updated. Any hints how to create my prompt
 component for this?

 Thanks,

 Hugo

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Download Wicket 1.2.1 now! Embed Wicket components in your portals!
-- http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user