hello

2010-12-22 Thread Ed _
no job so far compares to this i get paid everyday with this program i know 
that your efforts are going to pay off im so excited to receive my first pay 
check http://www.b2cnbc3y.com/
  

RequiresHttps and Apache mod_ssl

2010-07-26 Thread Ed _

Hi,
Trying to get some pages of the application to be secured using SSL. But want 
SSL to be handled by Apache in the production env. 

Is there a way to Configure Pages to require the https:// url without having to 
handle ssl in the app. 

thanks,
Ed
_
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

RE: localizing images

2010-05-12 Thread Ed _

Could you explain that a bit. 
thx!

> From: cika...@gmail.com
> Date: Wed, 12 May 2010 15:47:56 -0700
> Subject: Re: localizing images
> To: users@wicket.apache.org
> 
> Use parameterized ResourceReference's
> 
> Žilvinas Vilutis
> 
> Mobile:   (+370) 652 38353
> E-mail:   cika...@gmail.com
> 
> 
> On Wed, May 12, 2010 at 3:38 PM, Ed _  wrote:
> 
> >
> >
> > Hi,
> > Wanted to see how one could localize images. Esp if they are not in the
> > same folder as the src code.
> > wicket:link seems to only want to look in the local folder. If I specify
> > the path in the src attribute that doesn't work.
> > 
> >   > />
> > 
> >
> > thx,
> > Ed
> > _
> > The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
> > Hotmail.
> >
> > http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
> >
  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

localizing images

2010-05-12 Thread Ed _


Hi,
Wanted to see how one could localize images. Esp if they are not in the same 
folder as the src code.
wicket:link seems to only want to look in the local folder. If I specify the 
path in the src attribute that doesn't work. 

  


thx,
Ed
_
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

converting xml list into un numbered list

2009-12-16 Thread Ed _

Hello,

I have a list of items in a xml document. 

What is the best way to convert them into a list on an page.



apple


orange


carrot




apple
oragnge
carrot



Should I extract into an Array and then use ListView ? Or is there a better way
thank
  
_
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/

RE: Closing ModalWindows on page with multiple modal windows

2009-12-04 Thread Ed _

And the application is  throwing an exception. On repeated tries to close the 
ModalWindow via the AjaxLink

[2009-12-04 16:45:34,942]ERROR [http-8080-4] (RequestCycle.java:1521) - 
org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap 
modal-dialog-pagemap is still locked by: Thread[http-8080-6,5,main], giving up 
trying to get the page for path: 2:CloseWindowLink
Begin of stack trace of Thread[http-8080-6,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:474)
org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442)
java.lang.Thread.run(Thread.java:613)
End of stack trace of Thread[http-8080-6,5,main]
org.apache.wicket.protocol.http.request.InvalidUrlException: 
org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap 
modal-dialog-pagemap is still locked by: Thread[http-8080-6,5,main], giving up 
trying to get the page for path: 2:CloseWindowLink
Begin of stack trace of Thread[http-8080-6,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:474)
org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442)
java.lang.Thread.run(Thread.java:613)
End of stack trace of Thread[http-8080-6,5,main]
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
at 
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)
Caused by: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap 
modal-dialog-pagemap is still locked by: Thread[http-8080-6,5,main], giving up 
trying to get the page for path: 2:CloseWindowLink
Begin of stack trace of Thread[http-8080-6,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:474)
org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442)
java.lang.Thread.run(Thread.java:613)
End of stack trace of Thread[http-8080-6,5,main]
at org.apache.wicket.Session.getPage(Session.java:769)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:458)
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144)
... 20 more


> From: ed_b...@hotmail.com
> To: users@wicket.apache.org
> Subject: RE: Closing ModalWindows on page with multiple modal windows
> Date: Fri, 4 Dec 2009 15:21:36 -0800
> 
> 
> Using version 1.4.3
> 
> Would really ppreciate suggestions.
> 
> > From: ed_b...@hotmail.com
> > To: users@wicket.apache.org
> > Subject: Closing ModalWindows on page with multiple modal windows
> > Date: Fri, 4 Dec 2009 15:09:22 -0800
> > 
> > 
> > Hi,
> > 
> > I have a page with several panels each of them them have links that open 
> > modal windows. Essentially there are a number of modal windows on the page 
> > most are hidden.  They all open up and I am able to close them with the 
> > Cross (X) link. 
> > 
> > 
> > In one of the modal windows the content has an ajaxLink that closes the 
> > modal window.
> > 
> > 
> > AjaxLink cancelSyncLink = new AjaxLink("CloseWindowLink") {
> > @Override
> >

RE: Closing ModalWindows on page with multiple modal windows

2009-12-04 Thread Ed _

Using version 1.4.3

Would really ppreciate suggestions.

> From: ed_b...@hotmail.com
> To: users@wicket.apache.org
> Subject: Closing ModalWindows on page with multiple modal windows
> Date: Fri, 4 Dec 2009 15:09:22 -0800
> 
> 
> Hi,
> 
> I have a page with several panels each of them them have links that open 
> modal windows. Essentially there are a number of modal windows on the page 
> most are hidden.  They all open up and I am able to close them with the Cross 
> (X) link. 
> 
> 
> In one of the modal windows the content has an ajaxLink that closes the modal 
> window.
> 
> 
> AjaxLink cancelSyncLink = new AjaxLink("CloseWindowLink") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> 
> log.info("CloseWindowLink called");
> modalWindow.closeCurrent(target);
>// modalWindow.close(target);
> }
> };
> 
> 
> The function gets called but the modal window does not close. 
> 
> I have tried both closeCurrent and close calls.
> 
> 
> The same works on a page that has only one ModalWindow. 
> 
> 
> Any ideas how I can fix this. 
> 
> 
> thanks!
> 
> _
> Windows Live Hotmail gives you a free,exclusive  gift.
> http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_7:092009
  
_
Windows 7: Unclutter your desktop. Learn more.
http://www.microsoft.com/windows/windows-7/videos-tours.aspx?h=7sec&slideid=1&media=aero-shake-7second&listid=1&stop=1&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_7secdemo:122009

Closing ModalWindows on page with multiple modal windows

2009-12-04 Thread Ed _

Hi,

I have a page with several panels each of them them have links that open modal 
windows. Essentially there are a number of modal windows on the page most are 
hidden.  They all open up and I am able to close them with the Cross (X) link. 


In one of the modal windows the content has an ajaxLink that closes the modal 
window.


AjaxLink cancelSyncLink = new AjaxLink("CloseWindowLink") {
@Override
public void onClick(AjaxRequestTarget target) {

log.info("CloseWindowLink called");
modalWindow.closeCurrent(target);
   // modalWindow.close(target);
}
};


The function gets called but the modal window does not close. 

I have tried both closeCurrent and close calls.


The same works on a page that has only one ModalWindow. 


Any ideas how I can fix this. 


thanks!
  
_
Windows Live Hotmail gives you a free,exclusive  gift.
http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_7:092009

header contribution via panel in a ModalWindow

2009-11-28 Thread Ed _

I am trying to add some javascript via a panel that gets opened in a Modal 
Window.
 
 
The same panel on a web page adds the js to the head section of the page.
 
But does not when opened in a Modal Window.
 
is there a way to do this? 
 
thx,
 
Ed
_
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1

RE: dynamic adding media player files

2009-11-26 Thread Ed _

http://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html

found the solution here.


  
_
Windows 7: It works the way you want. Learn more.
http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2

RE: dynamic adding media player files

2009-11-26 Thread Ed _

I need to add the following in a div 

  
AudioPlayer.embed("player", {  
soundFile: "/mylocation/mymusic.mp3"  
});  



wtithe the soundFile dynamically changing.

thx

> From: ed_b...@hotmail.com
> To: users@wicket.apache.org
> Subject: dynamic adding media player files
> Date: Thu, 26 Nov 2009 10:11:06 -0800
> 
> 
> I am trying to dynamically add a media player to a page.
> 
> How to I add the content to the html since the media files are going to be 
> picked from the db.
> 
> Is there a way to use WebMarkUpContainerWithAssociatedMarkup for this.
> 
> 
> Essentially want to provide the contents of a div.
> 
> thanks!
> 
> _
> Hotmail: Trusted email with powerful SPAM protection.
> http://clk.atdmt.com/GBL/go/177141665/direct/01/
  
_
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1

dynamic adding media player files

2009-11-26 Thread Ed _

I am trying to dynamically add a media player to a page.

How to I add the content to the html since the media files are going to be 
picked from the db.

Is there a way to use WebMarkUpContainerWithAssociatedMarkup for this.


Essentially want to provide the contents of a div.

thanks!
  
_
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/

xmlhttp to another domain

2009-11-20 Thread Ed _

Hi,

I have an application A that needs to make a call via the browser and not the 
backend to a go  across an internal subdomain applicationB to get the status of 
a user and update the session of the main application A.

Is there a way to add xmlhttpRequest from a panel on the page rendered by A to 
application B and feed the into the  session of application A.


thanks!
  
_
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/

AjaxLink and component visibility

2009-11-15 Thread Ed _

Trying to build a shopping cart - Panel B . Which is hidden till an item is 
selected. Items are stored in the session.

I am trying to get  (shipping cart )Panel B to show up when I click an Ajax 
link, viz in Panel C


Both the Panels are under a parent panel A.


When I fist get to the page Panel B is hidden - I am using 
B.setVisibility(false).

When I click the link in Panel C. I am construction a new PanelB and call a 
method in panelA to replace the oldB with the newB

method on PanelA.updateShopping cart(){
 oldB.replaceWith(newB)
newB.setVisibility(true);
}
I can't get B to show up unless I do a page reload. 

Once B is on the page though clicking the links in Panel C - keeps updating it 
just fine.


Ideas on what I am messing up in getting the shopping cart to show up for the 
first item to be added, I want to avoid a page reload when the first item is 
added and stick with the ajax behavoir.

thx!


  
_
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1

RE: Modal window (1.4.1) and IE - Slow load times

2009-11-15 Thread Ed _

Not too many. but is heavy on javascript.

Ed

> From: jcar...@carmanconsulting.com
> Date: Sat, 14 Nov 2009 20:47:53 -0500
> Subject: Re: Modal window (1.4.1) and IE - Slow load times
> To: users@wicket.apache.org
> 
> Does your page have a lot of links on it?
> 
> On Sat, Nov 14, 2009 at 6:36 PM, Ed _  wrote:
> >
> > Hi,
> >
> > I am using version 1.4.1 of wickets. P
> >
> > Contents of a Modal Window take extremely long time upto 10-20 sec to load 
> > on Internet Explorer 8.
> >
> >  FireFox or Chrome on the same machine are really fast. with load times of 
> > 2-3 sec on a slow connection.
> >
> > Any one else seen this issue or has suggestion around fixing it.
> >
> > thanks,
> >
> > Ed
> >
> > _
> > Windows 7: It works the way you want. Learn more.
> > http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
  
_
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1

Modal window (1.4.1) and IE - Slow load times

2009-11-14 Thread Ed _

Hi,

I am using version 1.4.1 of wickets. P

Contents of a Modal Window take extremely long time upto 10-20 sec to load on 
Internet Explorer 8. 

 FireFox or Chrome on the same machine are really fast. with load times of 2-3 
sec on a slow connection.

Any one else seen this issue or has suggestion around fixing it.

thanks,

Ed
  
_
Windows 7: It works the way you want. Learn more.
http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2

RE: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Ed _

For cross (sub) domain reasons - I am adding document.domain to my page. 



Is there a way to make modalwindow / Wickets Ajax links to work with it?



thx 

> From: ed_b...@hotmail.com
> To: users@wicket.apache.org
> Subject: RE: Unable to close ModalWindow 1.4.1
> Date: Tue, 15 Sep 2009 18:49:03 -0700
> 
> 
> 
> 
> Permission denied for <http://domain.com> to get property Window.Wicket from 
> <http://subdomain.domain.com:8080>.
> http://subdomain.domain.com:8080/?wicket:interface=modal-dialog-pagemap:15
> Line 265
> 
> wonder why it thinks that the domains are different ?
> 
> can I force domain.doc value somehow
> 
> thx
> 
> > Date: Tue, 15 Sep 2009 21:45:34 -0300
> > Subject: Re: Unable to close ModalWindow 1.4.1
> > From: pedros...@gmail.com
> > To: users@wicket.apache.org
> > 
> >  - I get permission denied exception as reported by firebug.
> > - head section with my javascript
> > 
> > The firebug firefox plugging has an javascript console. Execute on him (
> > maybe you will not to get permission denied here):
> > alert(Wicket.Window.current)
> > alert(window.parent.Wicket.Window.current)
> > at the end of the javascript operations you report:
> > 
> > "At the end of the operations I hide all the divs and then show a div that
> > has a "close link""
> > 
> > and let us to know what value then have.
> > 
> > call the alerts to output the values,
> > 
> > On Tue, Sep 15, 2009 at 9:13 PM, Ed _  wrote:
> > 
> > >
> > > Thanks for the suggestion.
> > >
> > > I have been using close(target) - unfortunately attached a run when I was
> > > using both methods. Even with one ajax response appended it doesn't work.
> > >
> > > New to JS - can you tell me how to test the variables. If I add
> > >
> > > var status = window.parent.Wicket.Window; as part of my JS - I get
> > > permission denied exception as reported by firebug.
> > >
> > >
> > > My html file includes a head section with my javascript and the markup has
> > > wicket elements viz where the close links are rendered. I have two such
> > > links - both of which are rendered useless when used in this 
> > > configuration -
> > > although the main close button of the modalwindow continues to work.
> > >
> > > thanks
> > >
> > > > Date: Tue, 15 Sep 2009 18:00:47 -0300
> > > > Subject: Re: Unable to close ModalWindow 1.4.1
> > > > From: pedros...@gmail.com
> > > > To: users@wicket.apache.org
> > > >
> > > >  by close(target) or ModalWindow.close(target)
> > > > --> use close(target), to maintain ModalWindow internal states updated.
> > > >
> > > > On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos 
> > > wrote:
> > > >
> > > > > On this ajax response, we can see that the close script was appended 2
> > > > > times. Make sure that it appended only once, by close(target) or
> > > > > ModalWindow.close(target).
> > > > > Before click the "close link", in a moment that was causing trouble,
> > > see if
> > > > > these variables are not null:
> > > > >
> > > > > Wicket.Window.current
> > > > > window.parent.Wicket.Window.current
> > > > >
> > > > > If so, look at what moment they are nullified. The close method called
> > > on
> > > > > response:
> > > > > win.current.close()
> > > > > depends on these variables.
> > > > >
> > > > >
> > > > > On Tue, Sep 15, 2009 at 4:54 PM, Ed _  wrote:
> > > > >
> > > > >>
> > > > >>
> > > > >> Looking for hints to debug the situation I am in. Thanks.
> > > > >>
> > > > >> Using wickets 1.4.1
> > > > >>
> > > > >> I have tried a simple scenario  - opening a page in a modal window 
> > > > >> and
> > > > >> then using a link in the page to close the window. Works fine.
> > > > >>
> > > > >> Now I am opening a more complicated page with its own javascript -
> > > > >> performing a bunch of operations on that page using js while it is
> > > opened in
> > > > >> a modal window. At the end of the operations I hide all the divs and
> > > then
> > > &g

RE: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Ed _



Permission denied for <http://domain.com> to get property Window.Wicket from 
<http://subdomain.domain.com:8080>.
http://subdomain.domain.com:8080/?wicket:interface=modal-dialog-pagemap:15
Line 265

wonder why it thinks that the domains are different ?

can I force domain.doc value somehow

thx

> Date: Tue, 15 Sep 2009 21:45:34 -0300
> Subject: Re: Unable to close ModalWindow 1.4.1
> From: pedros...@gmail.com
> To: users@wicket.apache.org
> 
>  - I get permission denied exception as reported by firebug.
> - head section with my javascript
> 
> The firebug firefox plugging has an javascript console. Execute on him (
> maybe you will not to get permission denied here):
> alert(Wicket.Window.current)
> alert(window.parent.Wicket.Window.current)
> at the end of the javascript operations you report:
> 
> "At the end of the operations I hide all the divs and then show a div that
> has a "close link""
> 
> and let us to know what value then have.
> 
> call the alerts to output the values,
> 
> On Tue, Sep 15, 2009 at 9:13 PM, Ed _  wrote:
> 
> >
> > Thanks for the suggestion.
> >
> > I have been using close(target) - unfortunately attached a run when I was
> > using both methods. Even with one ajax response appended it doesn't work.
> >
> > New to JS - can you tell me how to test the variables. If I add
> >
> > var status = window.parent.Wicket.Window; as part of my JS - I get
> > permission denied exception as reported by firebug.
> >
> >
> > My html file includes a head section with my javascript and the markup has
> > wicket elements viz where the close links are rendered. I have two such
> > links - both of which are rendered useless when used in this configuration -
> > although the main close button of the modalwindow continues to work.
> >
> > thanks
> >
> > > Date: Tue, 15 Sep 2009 18:00:47 -0300
> > > Subject: Re: Unable to close ModalWindow 1.4.1
> > > From: pedros...@gmail.com
> > > To: users@wicket.apache.org
> > >
> > >  by close(target) or ModalWindow.close(target)
> > > --> use close(target), to maintain ModalWindow internal states updated.
> > >
> > > On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos 
> > wrote:
> > >
> > > > On this ajax response, we can see that the close script was appended 2
> > > > times. Make sure that it appended only once, by close(target) or
> > > > ModalWindow.close(target).
> > > > Before click the "close link", in a moment that was causing trouble,
> > see if
> > > > these variables are not null:
> > > >
> > > > Wicket.Window.current
> > > > window.parent.Wicket.Window.current
> > > >
> > > > If so, look at what moment they are nullified. The close method called
> > on
> > > > response:
> > > > win.current.close()
> > > > depends on these variables.
> > > >
> > > >
> > > > On Tue, Sep 15, 2009 at 4:54 PM, Ed _  wrote:
> > > >
> > > >>
> > > >>
> > > >> Looking for hints to debug the situation I am in. Thanks.
> > > >>
> > > >> Using wickets 1.4.1
> > > >>
> > > >> I have tried a simple scenario  - opening a page in a modal window and
> > > >> then using a link in the page to close the window. Works fine.
> > > >>
> > > >> Now I am opening a more complicated page with its own javascript -
> > > >> performing a bunch of operations on that page using js while it is
> > opened in
> > > >> a modal window. At the end of the operations I hide all the divs and
> > then
> > > >> show a div that has a "close link"
> > > >>
> > > >> The link does not close the modal window - I see the request coming to
> > the
> > > >> server I call close(target) tried ModalWindow.close(target) too but
> > nothing
> > > >> happens.
> > > >>
> > > >> The window closes with the X close button on the top right.
> > > >>
> > > >> the wicket debug shows the operation / at least being able to fetch
> > the
> > > >> code to shut the window down succeeding .
> > > >>
> > > >>
> > > >>
> > http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:&random=0.3818687947575885
> > > >>
> > > >>  > > >> encoding="UTF-8"?>
> > > >>
> > > >> _
> > > >> Hotmail: Free, trusted and rich email service.
> > > >> http://clk.atdmt.com/GBL/go/171222984/direct/01/
> > > >>
> > > >
> > > >
> >
> > _
> > Bing brings you health info from trusted sources.
> >
> > http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

_
Bing brings you health info from trusted sources.
http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

RE: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Ed _

Ok I added this to the html 

alert(window.parent.Wicket.Window.current);
 

of my simple page example and the alert poped up with [object Object]



When I add it to my actual page - I get permission denied. :(

alert(Wicket.Window.current) - shows up as an error - undefined in the test 
page.

Thanks



> Date: Tue, 15 Sep 2009 21:45:34 -0300
> Subject: Re: Unable to close ModalWindow 1.4.1
> From: pedros...@gmail.com
> To: users@wicket.apache.org
> 
>  - I get permission denied exception as reported by firebug.
> - head section with my javascript
> 
> The firebug firefox plugging has an javascript console. Execute on him (
> maybe you will not to get permission denied here):
> alert(Wicket.Window.current)
> alert(window.parent.Wicket.Window.current)
> at the end of the javascript operations you report:
> 
> "At the end of the operations I hide all the divs and then show a div that
> has a "close link""
> 
> and let us to know what value then have.
> 
> call the alerts to output the values,
> 
> On Tue, Sep 15, 2009 at 9:13 PM, Ed _  wrote:
> 
> >
> > Thanks for the suggestion.
> >
> > I have been using close(target) - unfortunately attached a run when I was
> > using both methods. Even with one ajax response appended it doesn't work.
> >
> > New to JS - can you tell me how to test the variables. If I add
> >
> > var status = window.parent.Wicket.Window; as part of my JS - I get
> > permission denied exception as reported by firebug.
> >
> >
> > My html file includes a head section with my javascript and the markup has
> > wicket elements viz where the close links are rendered. I have two such
> > links - both of which are rendered useless when used in this configuration -
> > although the main close button of the modalwindow continues to work.
> >
> > thanks
> >
> > > Date: Tue, 15 Sep 2009 18:00:47 -0300
> > > Subject: Re: Unable to close ModalWindow 1.4.1
> > > From: pedros...@gmail.com
> > > To: users@wicket.apache.org
> > >
> > >  by close(target) or ModalWindow.close(target)
> > > --> use close(target), to maintain ModalWindow internal states updated.
> > >
> > > On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos 
> > wrote:
> > >
> > > > On this ajax response, we can see that the close script was appended 2
> > > > times. Make sure that it appended only once, by close(target) or
> > > > ModalWindow.close(target).
> > > > Before click the "close link", in a moment that was causing trouble,
> > see if
> > > > these variables are not null:
> > > >
> > > > Wicket.Window.current
> > > > window.parent.Wicket.Window.current
> > > >
> > > > If so, look at what moment they are nullified. The close method called
> > on
> > > > response:
> > > > win.current.close()
> > > > depends on these variables.
> > > >
> > > >
> > > > On Tue, Sep 15, 2009 at 4:54 PM, Ed _  wrote:
> > > >
> > > >>
> > > >>
> > > >> Looking for hints to debug the situation I am in. Thanks.
> > > >>
> > > >> Using wickets 1.4.1
> > > >>
> > > >> I have tried a simple scenario  - opening a page in a modal window and
> > > >> then using a link in the page to close the window. Works fine.
> > > >>
> > > >> Now I am opening a more complicated page with its own javascript -
> > > >> performing a bunch of operations on that page using js while it is
> > opened in
> > > >> a modal window. At the end of the operations I hide all the divs and
> > then
> > > >> show a div that has a "close link"
> > > >>
> > > >> The link does not close the modal window - I see the request coming to
> > the
> > > >> server I call close(target) tried ModalWindow.close(target) too but
> > nothing
> > > >> happens.
> > > >>
> > > >> The window closes with the X close button on the top right.
> > > >>
> > > >> the wicket debug shows the operation / at least being able to fetch
> > the
> > > >> code to shut the window down succeeding .
> > > >>
> > > >>
> > > >>
> > http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:&random=0.3818687947575885
> > > >>
> > > >>  > > >> encoding="UTF-8"?>
> > > >>
> > > >> _
> > > >> Hotmail: Free, trusted and rich email service.
> > > >> http://clk.atdmt.com/GBL/go/171222984/direct/01/
> > > >>
> > > >
> > > >
> >
> > _
> > Bing brings you health info from trusted sources.
> >
> > http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

_
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/

RE: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Ed _


Here is the wicket AJax Debug

INFO: focus set on cancelUpdatea8INFO: Using XMLHttpRequest transportINFO: 
INFO: Initiating Ajax GET request on 
?wicket:interface=modal-dialog-pagemap:26:cancelUpdate::IBehaviorListener:0:&random=0.5391539823210829INFO:
 Invoking pre-call handler(s)...INFO: Received ajax response (541 
characters)INFO: 
INFO: Response parsed. Now invoking 
steps...INFO: Response processed successfully.INFO: Invoking post-call 
handler(s)...INFO: refocus last focused component not needed/allowedINFO: focus 
removed from cancelUpdatea8




> Date: Tue, 15 Sep 2009 18:00:47 -0300
> Subject: Re: Unable to close ModalWindow 1.4.1
> From: pedros...@gmail.com
> To: users@wicket.apache.org
> 
>  by close(target) or ModalWindow.close(target)
> --> use close(target), to maintain ModalWindow internal states updated.
> 
> On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos  wrote:
> 
> > On this ajax response, we can see that the close script was appended 2
> > times. Make sure that it appended only once, by close(target) or
> > ModalWindow.close(target).
> > Before click the "close link", in a moment that was causing trouble, see if
> > these variables are not null:
> >
> > Wicket.Window.current
> > window.parent.Wicket.Window.current
> >
> > If so, look at what moment they are nullified. The close method called on
> > response:
> > win.current.close()
> > depends on these variables.
> >
> >
> > On Tue, Sep 15, 2009 at 4:54 PM, Ed _  wrote:
> >
> >>
> >>
> >> Looking for hints to debug the situation I am in. Thanks.
> >>
> >> Using wickets 1.4.1
> >>
> >> I have tried a simple scenario  - opening a page in a modal window and
> >> then using a link in the page to close the window. Works fine.
> >>
> >> Now I am opening a more complicated page with its own javascript -
> >> performing a bunch of operations on that page using js while it is opened 
> >> in
> >> a modal window. At the end of the operations I hide all the divs and then
> >> show a div that has a "close link"
> >>
> >> The link does not close the modal window - I see the request coming to the
> >> server I call close(target) tried ModalWindow.close(target) too but nothing
> >> happens.
> >>
> >> The window closes with the X close button on the top right.
> >>
> >> the wicket debug shows the operation / at least being able to fetch the
> >> code to shut the window down succeeding .
> >>
> >>
> >> http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:&random=0.3818687947575885
> >>
> >>  >> encoding="UTF-8"?>
> >>
> >> _
> >> Hotmail: Free, trusted and rich email service.
> >> http://clk.atdmt.com/GBL/go/171222984/direct/01/
> >>
> >
> >

_
Bing brings you health info from trusted sources.
http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

RE: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Ed _

Thanks for the suggestion.

I have been using close(target) - unfortunately attached a run when I was using 
both methods. Even with one ajax response appended it doesn't work.

New to JS - can you tell me how to test the variables. If I add 

var status = window.parent.Wicket.Window; as part of my JS - I get permission 
denied exception as reported by firebug. 


My html file includes a head section with my javascript and the markup has 
wicket elements viz where the close links are rendered. I have two such links - 
both of which are rendered useless when used in this configuration - although 
the main close button of the modalwindow continues to work.

thanks

> Date: Tue, 15 Sep 2009 18:00:47 -0300
> Subject: Re: Unable to close ModalWindow 1.4.1
> From: pedros...@gmail.com
> To: users@wicket.apache.org
> 
>  by close(target) or ModalWindow.close(target)
> --> use close(target), to maintain ModalWindow internal states updated.
> 
> On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos  wrote:
> 
> > On this ajax response, we can see that the close script was appended 2
> > times. Make sure that it appended only once, by close(target) or
> > ModalWindow.close(target).
> > Before click the "close link", in a moment that was causing trouble, see if
> > these variables are not null:
> >
> > Wicket.Window.current
> > window.parent.Wicket.Window.current
> >
> > If so, look at what moment they are nullified. The close method called on
> > response:
> > win.current.close()
> > depends on these variables.
> >
> >
> > On Tue, Sep 15, 2009 at 4:54 PM, Ed _  wrote:
> >
> >>
> >>
> >> Looking for hints to debug the situation I am in. Thanks.
> >>
> >> Using wickets 1.4.1
> >>
> >> I have tried a simple scenario  - opening a page in a modal window and
> >> then using a link in the page to close the window. Works fine.
> >>
> >> Now I am opening a more complicated page with its own javascript -
> >> performing a bunch of operations on that page using js while it is opened 
> >> in
> >> a modal window. At the end of the operations I hide all the divs and then
> >> show a div that has a "close link"
> >>
> >> The link does not close the modal window - I see the request coming to the
> >> server I call close(target) tried ModalWindow.close(target) too but nothing
> >> happens.
> >>
> >> The window closes with the X close button on the top right.
> >>
> >> the wicket debug shows the operation / at least being able to fetch the
> >> code to shut the window down succeeding .
> >>
> >>
> >> http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:&random=0.3818687947575885
> >>
> >>  >> encoding="UTF-8"?>
> >>
> >> _
> >> Hotmail: Free, trusted and rich email service.
> >> http://clk.atdmt.com/GBL/go/171222984/direct/01/
> >>
> >
> >

_
Bing brings you health info from trusted sources.
http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

Unable to close ModalWindow 1.4.1

2009-09-15 Thread Ed _


Looking for hints to debug the situation I am in. Thanks.

Using wickets 1.4.1 

I have tried a simple scenario  - opening a page in a modal window and then 
using a link in the page to close the window. Works fine.

Now I am opening a more complicated page with its own javascript - performing a 
bunch of operations on that page using js while it is opened in a modal window. 
At the end of the operations I hide all the divs and then show a div that has a 
"close link" 

The link does not close the modal window - I see the request coming to the 
server I call close(target) tried ModalWindow.close(target) too but nothing 
happens.

The window closes with the X close button on the top right. 

the wicket debug shows the operation / at least being able to fetch the code to 
shut the window down succeeding .

http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:&random=0.3818687947575885
 



_
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/

Javascript within ModalWindow Panel

2009-09-13 Thread Ed _


I was doing some cross subdomain javascript within a Panel on a Page.

Something simple as setting a variable in the parent window. 


When I move the same Panel to a modal window I am running into permission 
issues 

"Permission denied to set variable"

Doing a page source the javascript and variables do not show up on the main 
page. 

Is there an additional level of indirection added cause of the modal window. 

where in Parent.variable = xyz now needs to be parent.modalwindow.variable=xyz.



thx,

Ed

_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/171222985/direct/01/

Customizing signinpanel

2009-07-17 Thread Ed _


Hi,

I am using the SignInPanel - was wondering if there is a way to customize the 
labels of the fields - like change the "username" to just "name" and "password" 
to "key". 

Also what is the Reset functionality - is there a way to get rid of that button 
too. 

thanks,

Ed

_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

FileUpload in a Panel

2009-01-09 Thread Ed _


Is it possible to do a file upload within a Panel ?

Or can it only be done in a WebPage?  I have seen some solutions using IFrames 
within panels to get around this.


ERROR [http-8080-1] (RequestCycle.java:1072) - there was an error cleaning up 
target 
org.apache.wicket.request.target.component.listener.listenerinterfacerequesttar...@654004161[page
 class = com.mydomain.admin.Admin, id = 0, version = 0]->fileUpload->interface 
org.apache.wicket.markup.html.form.IFormSubmitListener.IFormSubmitListener 
(request paramaters: [RequestParameters  componentPath=0:xPanel:fileUpload 
pageMapName=null versionNumber=0 interfaceName=IFormSubmitListener 
componentId=null behaviorId=null urlDepth=-1 parameters={} 
onlyProcessIfPathActive=false]).
java.lang.IllegalStateException: Attempt to set model object on null model of 
component: xPanel:fileUpload:fileInput
at org.apache.wicket.Component.setDefaultModelObject(Component.java:2933)

thanks,

Ed

_
Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009

RE: create clickable icons (serving as external links) - Sends server into a endless loop

2008-12-05 Thread Ed _

The problem occers when it is rendering. 


The images / page render fine when the src is hardcoded in the html file.

It also works when I use the web markupcontainer and manipulate the src 
attribute as shown below.

ExternalLink link = new ExternalLink("partnerLink", partnerLink);
final String imageUrl = partnerIconUrl;
WebMarkupContainer srcTag = new WebMarkupContainer("partnerIcon");
IModel mediaSrc = new AbstractReadOnlyModel(){
@Override
public String getObject(){
return imageUrl;
}
};
srcTag.add(new AttributeModifier("src", mediaSrc));

link.add(srcTag);
add(link);

> Date: Fri, 5 Dec 2008 16:59:17 -0600
> From: [EMAIL PROTECTED]
> To: users@wicket.apache.org
> Subject: Re: create clickable icons (serving as external links) - Sends 
> server into a endless loop
> 
> I don't see anything right away wrong with your code below.   So, maybe a
> couple questions will help:
> 
> Goes into an endless loop when?  When it's rendering?  When loading image?
> When clicking on link?
> Also - what HTML does your code below produce?
> 
> -- 
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> On Fri, Dec 5, 2008 at 4:49 PM, Ed _ <[EMAIL PROTECTED]> wrote:
> 
> >
> > I am trying to create clickable icons that would link to an external page.
> >
> > I came across -
> > http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html - But
> > the server just goes into an endless loop.
> >
> > pointers?
> >
> > Ed
> >
> >
> > ExternalLink link = new ExternalLink("partnerLink", partnerLink);
> >StaticImage sImg = new StaticImage("partnerIcon", new
> > Model(partnerIconUrl));
> >link.add(sImg);
> >add(link);
> >
> >
> > html xmlns:wicket>
> > 
> >
> >
> > 
> >
> >
> > 
> > 
> >
> >
> > class StaticImage extends WebComponent {
> >
> >public StaticImage(String id, IModel model) {
> >super(id, model);
> >}
> >
> >protected void onComponentTag(ComponentTag tag) {
> >super.onComponentTag(tag);
> >checkComponentTag(tag, "img");
> >tag.put("src", getModelObjectAsString());
> >}
> >
> > }
> >
> >
> > _
> > Suspicious message? There's an alert for that.
> >
> > http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008
> >

_
You live life online. So we put Windows on the web. 
http://clk.atdmt.com/MRT/go/127032869/direct/01/

create clickable icons (serving as external links) - Sends server into a endless loop

2008-12-05 Thread Ed _

I am trying to create clickable icons that would link to an external page. 

I came across - 
http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html - But the 
server just goes into an endless loop. 

pointers?

Ed


ExternalLink link = new ExternalLink("partnerLink", partnerLink);
StaticImage sImg = new StaticImage("partnerIcon", new 
Model(partnerIconUrl));
link.add(sImg);
add(link);


html xmlns:wicket>



 






class StaticImage extends WebComponent {

public StaticImage(String id, IModel model) {
super(id, model);
}

protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
checkComponentTag(tag, "img");
tag.put("src", getModelObjectAsString());
}

}


_
Suspicious message? There’s an alert for that. 
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008

GridView and PagingNavigator - issue in page navigation

2008-11-30 Thread Ed _

Hi,

I am using GridView and PagingNavigator to render a series of podcast elements 
in my database. 

I am using wickets 1.3.5 with Hibernate and Tomcat. 

The first page renders fine but in trying to navigate using the Paging 
Navigator - It looks like the state is lost and I get the following error 

INFO [http-8080-1] (RequestListenerInterface.java:278) - registered listener 
interface [RequestListenerInterface name=INewBrowserWindowListener, 
method=public abstract void 
org.apache.wicket.markup.html.INewBrowserWindowListener.onNewBrowserWindow()]
 INFO [http-8080-1] (PodcastDataProvider.java:64) - PodcastDataProvider: 
Category:null, Num of entries:0
 INFO [http-8080-1] (RequestListenerInterface.java:174) - component not enabled 
or visible; ignoring call. Component: [MarkupContainer [Component id = 
pageLink]]
 INFO [http-8080-1] (PodcastDataProvider.java:64) - PodcastDataProvider: 
Category:null, Num of entries:0
 INFO [http-8080-1] (PodcastDataProvider.java:41) - Iterator - first:0, count:0


Here is my code - pretty much from the wickets grid example - 

public GridPanel(String id, String category){
super(id);
log.info("GridPanel - Category:" + category);
add(new Label("CategoryLabel", category));

IDataProvider dataProvider = new PodcastDataProvider(category);
GridView gridView = new GridView("rows", dataProvider){

protected void populateItem(Item item) {
final PodcastTbl podTbl = (PodcastTbl)item.getModelObject();
  
item.add(new Label("PodcastPanel", podId));
}

protected void populateEmptyItem(Item item)
{
item.add(new Label("PodcastPanel", "*empty*"));
}
};

gridView.setRows(4);
gridView.setColumns(3);
add(gridView);
add(new PagingNavigator("navigator", gridView));


---html ===-


[dataview navigator]


[Podcast Id]




------

Appreciate any pointers.

thx,

Ed

_
Color coding for safety: Windows Live Hotmail alerts you to suspicious email.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008
 

FileResourceStream

2008-04-29 Thread Ed _

I end up using FileResourceStream to serve up static web pages from a Wicket 
page.

But I am having issues with the fact that the page gets cached and - returning 
clients with different url params - keep getting served the original static 
page. 

Is there a way for me to force a refresh and make sure the 
newMarkupResourceStream() gets called each time.

thanks!

_
Make i'm yours.  Create a custom banner to support your cause.
http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours

modal window mask type - is there a way to increase the opacity of the mask

2007-09-10 Thread Ed _

Looking through the java docs - i see two settings for the modal window mask - 

Transparent and Sem-transparent with an opacity of 10% - is there a way to 
increase the opacity to say 20% - is there a css override options or another 
config option.

thanks

_
Can you find the hidden words?  Take a break and play Seekadoo!
http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink

RE: modal window question - opening a modal window on page load

2007-09-10 Thread Ed _

Thanks Ryan,

First pass this has worked well for me. Appreciate your detailed instructions. 
Maybe these can be added to the open issue history itself for other folks till 
the issue gets closed.

I assume you have to be developer to make changes to the change history.

-ed

> From: [EMAIL PROTECTED]
> Subject: Re: modal window question - opening a modal window on page load
> Date: Sun, 9 Sep 2007 22:24:03 -0700
> To: users@wicket.apache.org
> 
> There is an open issue about this: http://issues.apache.org/jira/ 
> browse/WICKET-12
> Read the discussion for some background and possible solutions.
> 
> I needed to do the same thing on a couple of pages. First, I tried  
> using getWindowOpenJavascript() on the modal window (called via  
> reflection as it's a private method) to get the needed JS, but I  
> think I ran into a few issues which I've now forgotten (private  
> 'shown' variable wasn't set?).
> 
> What I ended up doing was to use JavaScript to call the onclick()  
> method of a link that opens the modal window from my page's onload  
> function. Since the modal window is a JavaScript construct anyway I  
> don't think using JS for the "auto-open" behavior is weird.
> 
> 
> The following model ensures that a component is "clicked" only one  
> time, when the page is initially loaded (probably a common use case).  
> If you want to open the modal window on every page load, just check  
> out the JavaScript and the basic concept. This is written for Wicket  
> 1.2 but a similar approach should work for 1.3.
> 
> public class ClickOnceOnLoadModel extends AbstractReadOnlyModel {
>private final Component component;
>private boolean clicked = false;
> 
> public ClickOnceOnLoadModel(Component component) {
>  this.component = component;
>}
> 
>@Override
>public Object getObject(Component cmp) {
>  if ( !this.clicked ) {
>this.clicked = true;
>return getClickJs();
>  }
>  return null;
>}
> 
>private String getClickJs() {
>  StringBuilder sb = new StringBuilder( 64 );
>  sb.append( "var e=document.getElementById('" );
>  sb.append( this.component.getMarkupId() );
>  sb.append( "');e.onclick();" );
>  return sb.toString();
>}
> }
> 
> 
> You would use it like this:
> 
> // Page constructor
> public MyPage() {
>   getBodyContainer().addOnLoadModifier(
>new ClickOnceOnLoadModel( modalWindowOpeningLink ), null );
> }
> 
> 
> This of course requires a link on your page that opens the same modal  
> window you want to open automatically. If you really don't want such  
> a link, you could always hide it with CSS.
> 
> If there are more elegant solutions (and I'm sure there are), you'll  
> probably hear about them soon...
> 
> -Ryan
> 
> On Sep 9, 2007, at 8:04 PM, Ed _ wrote:
> 
> >
> > I want to bring up a modal window when I load a page, ie without  
> > clicking a link. I want to use it to prompt the user to enter some  
> > data on the home page before he can proceed. So somehow I have to  
> > enable the show function, how do I do that.
> >
> > I tried to do something as follows -
> >
> > FormPanel form =  new FormPanel(modal.getContentId(),  
> > StoreBasePath, strId, title);
> > form.setOutputMarkupId(true);
> > modal.setContent(form);
> > modal.setTitle("This is modal window with panel  
> > content.");
> > modal.setCookieName("modalform");
> > AjaxRequestTarget target = new AjaxRequestTarget();
> > modal.show(target);
> >
> > java.lang.IllegalStateException: No Page found for component  
> > [MarkupContainer [Component id = ModalWindow, page = ,  
> > path = FormPanel:ModalWindow.ModalWindow]]
> >  at wicket.Component.getPage(Component.java:1037)
> >  at wicket.RequestCycle.urlFor(RequestCycle.java:655)
> >  at wicket.Component.urlFor(Component.java:2307)
> >  at wicket.behavior.AbstractAjaxBehavior.getCallbackUrl 
> > (AbstractAjaxBehavior.java:143)
> >  at wicket.ajax.AbstractDefaultAjaxBehavior.getCallbackScript 
> > (AbstractDefaultAjaxBehavior.java:131)
> >
> >
> > is there a way to do this.
> >
> > thanks
> >
> > _
> > Gear up for Halo® 3 with free downloads and an exclusive offer.  
> > It’s our way of saying thanks for using Windows Live™.
> > http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of 
saying thanks for using Windows Live™.
http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2

modal window question - opening a modal window on page load

2007-09-09 Thread Ed _

I want to bring up a modal window when I load a page, ie without clicking a 
link. I want to use it to prompt the user to enter some data on the home page 
before he can proceed. So somehow I have to enable the show function, how do I 
do that.

I tried to do something as follows -

FormPanel form =  new FormPanel(modal.getContentId(), 
StoreBasePath, strId, title);
form.setOutputMarkupId(true);
modal.setContent(form);
modal.setTitle("This is modal window with panel content.");
modal.setCookieName("modalform");
AjaxRequestTarget target = new AjaxRequestTarget();
modal.show(target);

java.lang.IllegalStateException: No Page found for component [MarkupContainer 
[Component id = ModalWindow, page = , path = 
FormPanel:ModalWindow.ModalWindow]]
 at wicket.Component.getPage(Component.java:1037)
 at wicket.RequestCycle.urlFor(RequestCycle.java:655)
 at wicket.Component.urlFor(Component.java:2307)
 at 
wicket.behavior.AbstractAjaxBehavior.getCallbackUrl(AbstractAjaxBehavior.java:143)
 at 
wicket.ajax.AbstractDefaultAjaxBehavior.getCallbackScript(AbstractDefaultAjaxBehavior.java:131)


is there a way to do this.

thanks

_
Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of 
saying thanks for using Windows Live™.
http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2

RE: wicket extension examples site down?

2007-09-09 Thread Ed _

sorry my bad - had always navigated from the extensions example page - did not 
realize that they where listed under ajax.

thanks 

> Date: Mon, 10 Sep 2007 00:50:26 +0200
> From: [EMAIL PROTECTED]
> To: users@wicket.apache.org
> Subject: Re: wicket extension examples site down?
> 
> hm,
> 
> i can see the modal window examples for both versions:
> 
> Wicket 1.3.0-SNAPSHOT: http://wicketstuff.org/wicket13/ajax/modal-window
> Wicket 1.2.x: 
> http://wicketstuff.org/wicket12/ajax/?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage
> 
>   gerolf
> 
> On 9/10/07, Ed _ <[EMAIL PROTECTED]> wrote:
> >
> >
> > But the extension examples - e.g. the modal window examples are not hosted 
> > there.
> >
> >
> >
> > I did try to extrapolate from an earlier email referring to example for
> > 1.3 - but did not find the extention examples on either of those pages.
> >
> >
> >
> > -Ed
> >
> >
> > > Date: Mon, 10 Sep 2007 00:32:52 +0200
> > > From: [EMAIL PROTECTED]
> > > To: users@wicket.apache.org
> > > Subject: Re: wicket extension examples site down?
> > >
> > > hi ed,
> > >
> > > as an alternative, you can find the examples for wicket at the following
> > > locations:
> > >
> > > http://wicketstuff.org/wicket12/   -> Wicket 1.2.x
> > > http://wicketstuff.org/wicket13/   -> Wicket 1.3.0
> > >
> > >
> > >   gerolf
> > >
> > >
> > > On 9/10/07, Ed _ <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Trying to access the wicket extension examples - looks like the site is
> > > > down.
> > > >
> > > >
> > > > http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage
> > > >
> > > >
> > > > Is this part of the move to apache? It may be in transition - Just 
> > > > wanted
> > > > to bring to notice of the group just in case this got left out. It was 
> > > > up
> > > > earlier in the day.
> > > >
> > > >
> > > > Ed
> > > >
> > > > _
> > > > Kick back and relax with hot games and cool activities at the Messenger
> > > > Café.
> > > > http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline
> >
> > _
> > More photos; more messages; more whatever – Get MORE with Windows Live™ 
> > Hotmail(r). NOW with 5GB storage.
> > http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of 
saying thanks for using Windows Live™.
http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2

RE: wicket extension examples site down?

2007-09-09 Thread Ed _


But the extension examples - e.g. the modal window examples are not hosted 
there. 



I did try to extrapolate from an earlier email referring to example for
1.3 - but did not find the extention examples on either of those pages.



-Ed


> Date: Mon, 10 Sep 2007 00:32:52 +0200
> From: [EMAIL PROTECTED]
> To: users@wicket.apache.org
> Subject: Re: wicket extension examples site down?
> 
> hi ed,
> 
> as an alternative, you can find the examples for wicket at the following
> locations:
> 
> http://wicketstuff.org/wicket12/   -> Wicket 1.2.x
> http://wicketstuff.org/wicket13/   -> Wicket 1.3.0
> 
> 
>   gerolf
> 
> 
> On 9/10/07, Ed _ <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > Trying to access the wicket extension examples - looks like the site is
> > down.
> >
> >
> > http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage
> >
> >
> > Is this part of the move to apache? It may be in transition - Just wanted
> > to bring to notice of the group just in case this got left out. It was up
> > earlier in the day.
> >
> >
> > Ed
> >
> > _
> > Kick back and relax with hot games and cool activities at the Messenger
> > Café.
> > http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline

_
More photos; more messages; more whatever – Get MORE with Windows Live™ 
Hotmail®. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907

wicket extension examples site down?

2007-09-09 Thread Ed _

Hi,

Trying to access the wicket extension examples - looks like the site is down.

http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage


Is this part of the move to apache? It may be in transition - Just wanted to 
bring to notice of the group just in case this got left out. It was up earlier 
in the day.


Ed

_
Kick back and relax with hot games and cool activities at the Messenger Café.
http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline

RE: modal window as pop up on non wicket site.

2007-08-26 Thread Ed _

Which package are all these javascript files included in? I am using version 
1.2.6thx> Date: Sun, 26 Aug 2007 12:28:25 +0200> From: [EMAIL PROTECTED]> To: 
users@wicket.apache.org> Subject: Re: modal window as pop up on non wicket 
site.> > Sure it can be done. Just include all required javascript fiels (> 
wicket-event.js, wicket-ajax.js and modal.js) and create the modal window> 
yourself (from javascript). Look at ModalWindow.getWindowOpenJavascript to> see 
how the javascript method looks like.> > -Matej> > On 8/26/07, Ed _ <[EMAIL 
PROTECTED]> wrote:> >> >> > I am try to see if modal window can be used to pop 
up a dialog box onto a> > page that has been written in php. I essentially want 
to have a html link on> > the older site - that would launch a pop up dialog to 
my application.  want> > to avoid first coming to my app and then offering the 
users a form.  just> > want to see if this can be done with the 1.2 extensions. 
Would appreciate> > some direction here.thanks,ed> > 
_> > Messenger 
Café — open for fun 24/7. Hot games, cool activities served> > daily. Visit 
now.> > http://cafemessenger.com?ocid=TXT_TAGLM_AugWLtagline
_
See what you’re getting into…before you go there
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507

modal window as pop up on non wicket site.

2007-08-25 Thread Ed _

I am try to see if modal window can be used to pop up a dialog box onto a page 
that has been written in php. I essentially want to have a html link on the 
older site - that would launch a pop up dialog to my application.  want to 
avoid first coming to my app and then offering the users a form.  just want to 
see if this can be done with the 1.2 extensions. Would appreciate some 
direction here.thanks,ed
_
Messenger Café — open for fun 24/7. Hot games, cool activities served daily. 
Visit now.
http://cafemessenger.com?ocid=TXT_TAGLM_AugWLtagline

RE: [Wicket-user] editable form

2007-07-30 Thread Ed _

Thanks the toString override  seems to work in that the correct values/ids that 
I want do get posted back.Like you mentioned is this the right way to do 
it?Even with this solution in response to the submit I still continue to get an 
error back - which isn't making much sense to 
me.http://localhost:8080/wicket/test/?wicket:interface=:5:DisplayPanel:PublishForm::IFormSubmitListenerWicketMessage:
 No get method defined for class: class java.lang.String expression: idRoot 
cause:wicket.WicketRuntimeException: No get method defined for class: class 
java.lang.String expression: id at 
wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:324)
 at 
wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:200)
 at wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:88)
 at wicket.markup.html.form.ChoiceRenderer.getIdValue(ChoiceRenderer.java:148)  
   at 
wicket.markup.html.form.AbstractSingleSelectChoice.getModelValue(AbstractSingleSelectChoice.java:140)
 at wicket.markup.html.form.FormComponent.getValue(FormComponent.java:583)  
   at 
wicket.markup.html.form.AbstractChoice.onComponentTagBody(AbstractChoice.java:319)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) 
at java.lang.Thread.run(Thread.java:613).[Page 
class = com.test.web.myaccount.MyAccount, id = 5]:

  

  #
  Path
  Size
  Type
  Model Object

  
  

  1   
  _header   
  481 bytes   
  wicket.markup.html.internal.HtmlHeaderContainer   
 

  2   
  DisplayPanel   
  6.5K   
  com.test.web.myaccount.AccountPublishDisplayPanel   
 

  3   
  DisplayPanel:PublishForm   
  9.5K   
  wicket.markup.html.form.Form> Date: Mon, 30 Jul 2007 12:45:36 
+0200> From: [EMAIL PROTECTED]> To: users@wicket.apache.org> Subject: Fwd: 
[Wicket-user] editable form> > Hi,> > Sorry if duplicated:> > On 7/29/07, Ed _ 
<[EMAIL PROTECTED]> wrote:> >> > I am trying to create an editable form - this 
has a drop down list. in it> >> > List ratingList = 
cfg.getContentRatingList();> > DropDownChoice ratingChoice = new 
DropDownChoice("rating", new> > PropertyModel(form, "category"), ratingList, 
new> > ChoiceRenderer("label", "id"));> > I think what happens here is 
form.setCategory(ratingList.get(chosenOne)).> That's why you see generic 
toString output as the assigned value.> As a simple hack, you could override 
the toString() method of the rating class.> For a semi-decent solution, 
override the convertValue method of DropDownChoice.> I think what you really 
need is to add a Converter to ratingChoice.> (but IConverter does not extend 
IBehavior, so I don't know how to do> that properly)> > I also don't know how 
these conversion tricks will work in the reverse> direction, when displaying 
the rating already in the model.> > And in an unrelated note, you could call 
this component "category"> instead of "rating", and give a CompoundProertyModel 
to the form.> Saves a lot of typing in the long run,> > 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL 
PROTECTED]> 
_
Local listings, incredible imagery, and driving directions - all in one place! 
Find it!
http://maps.live.com/?wip=69&FORM=MGAC01

RE: editable form

2007-07-30 Thread Ed _








Thanks the toString override  seems to work in that the correct values/ids that 
I want do get posted back.Like you mentioned is this the right way to do 
it?Even with this solution in response to the submit I still continue to get an 
error back - which isn't making much sense to 
me.http://localhost:8080/wicket/test/?wicket:interface=:5:DisplayPanel:PublishForm::IFormSubmitListenerWicketMessage:
 No get method defined for class: class java.lang.String expression: idRoot 
cause:wicket.WicketRuntimeException: No get method defined for class: class 
java.lang.String expression: id at 
wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:324)
 at 
wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:200)
 at wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:88)
 at wicket.markup.html.form.ChoiceRenderer.getIdValue(ChoiceRenderer.java:148)  
   at 
wicket.markup.html.form.AbstractSingleSelectChoice.getModelValue(AbstractSingleSelectChoice.java:140)
 at wicket.markup.html.form.FormComponent.getValue(FormComponent.java:583)  
   at 
wicket.markup.html.form.AbstractChoice.onComponentTagBody(AbstractChoice.java:319)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) 
at java.lang.Thread.run(Thread.java:613).[Page 
class = com.test.web.myaccount.MyAccount, id = 5]:

  

  #
  Path
  Size
  Type
  Model Object

  
  

  1   
  _header   
  481 bytes   
  wicket.markup.html.internal.HtmlHeaderContainer   
 

  2   
  DisplayPanel   
  6.5K   
  com.test.web.myaccount.AccountPublishDisplayPanel   
 

  3   
  DisplayPanel:PublishForm   
  9.5K   
  wicket.markup.html.form.FormFrom: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: editable formDate: Sun, 29 Jul 2007 08:04:46 -0700






I am trying to create an editable form - this has a drop down list. in it

List ratingList = cfg.getContentRatingList();
DropDownChoice ratingChoice = new DropDownChoice("rating", new
PropertyModel(form, "category"), ratingList, new
ChoiceRenderer("label", "id"));

ratingChoice.setRequired(true);
add(ratingChoice);

ratingList is a list of object types of the following class.
public class ConfigContent implements Serializable{
private String label;
private String id;
public ConfigContent(String id, String label){
this.label = label;
this.id = id;
}
public String getLabel(){
return this.label;
}
public String getId(){
return this.id;
}
public void setLabel( String label){
this.label = label;
}
public void setId( String Id){
this.id = Id;
}
}


private class FormData implements Serializable{
private String m_name;
private String m_siteUrl;
private String m_rating;
public String getName() {
return this.m_title;
}
public String getSiteUrl() {
return this.m_SiteUrl;
}
public String getRating() {
return this.m_rating;
}
 setter methods. 

}
}

The html seems to be getting rendered properly - 
Choose OnePGPG-13
PG-17Restricted
But when i submit the form and print out the values beign returned to me - 
public void onSubmit(){
Log log = LogFactory.getLog(PublishForm.class);
FormData mod = (PublishFormModel)getModelObject();
String title = mod.getTitle();
String feedUrl = mod.getSiteUrl();
String rating = mod.getRating();


the values for the dropdown are not right - I end up getting - category:[EMAIL 
PROTECTED]
And then an error is returned to the web page - 

ERROR [http-8080-1] (WebRequestCycle.java:200) - No get method defined for 
class: class java.lang.String expression: id
wicket.WicketRuntimeException: No get method defined for class: class 
java.lang.String expression: id
at 
wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:324)
at 
wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:200)
at wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:88)
at 
wicket.markup.html.form.ChoiceRenderer.getIdValue(ChoiceRenderer.java:148)


would appreciate pointers

thx,

ed

Missed the show?  Watch videos of the Live Earth Concert on 

editable form

2007-07-29 Thread Ed _

I am trying to create an editable form - this has a drop down list. in it

List ratingList = cfg.getContentRatingList();
DropDownChoice ratingChoice = new DropDownChoice("rating", new
PropertyModel(form, "category"), ratingList, new
ChoiceRenderer("label", "id"));

ratingChoice.setRequired(true);
add(ratingChoice);

ratingList is a list of object types of the following class.
public class ConfigContent implements Serializable{
private String label;
private String id;
public ConfigContent(String id, String label){
this.label = label;
this.id = id;
}
public String getLabel(){
return this.label;
}
public String getId(){
return this.id;
}
public void setLabel( String label){
this.label = label;
}
public void setId( String Id){
this.id = Id;
}
}


private class FormData implements Serializable{
private String m_name;
private String m_siteUrl;
private String m_rating;
public String getName() {
return this.m_title;
}
public String getSiteUrl() {
return this.m_SiteUrl;
}
public String getRating() {
return this.m_rating;
}
 setter methods. 

}
}

The html seems to be getting rendered properly - 
Choose OnePGPG-13
PG-17Restricted
But when i submit the form and print out the values beign returned to me - 
public void onSubmit(){
Log log = LogFactory.getLog(PublishForm.class);
FormData mod = (PublishFormModel)getModelObject();
String title = mod.getTitle();
String feedUrl = mod.getSiteUrl();
String rating = mod.getRating();


the values for the dropdown are not right - I end up getting - category:[EMAIL 
PROTECTED]
And then an error is returned to the web page - 

ERROR [http-8080-1] (WebRequestCycle.java:200) - No get method defined for 
class: class java.lang.String expression: id
wicket.WicketRuntimeException: No get method defined for class: class 
java.lang.String expression: id
at 
wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:324)
at 
wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:200)
at wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:88)
at 
wicket.markup.html.form.ChoiceRenderer.getIdValue(ChoiceRenderer.java:148)


would appreciate pointers

thx,

ed

Missed the show?  Watch videos of the Live Earth Concert on MSN. See them now!

_
PC Magazine’s 2007 editors’ choice for best web mail—award-winning Windows Live 
Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HMWL_mini_pcmag_0707