Dynamic AJAX Tabs

2007-08-13 Thread Ballist1c

Hey guys,

Right now i have been playing around with the current, ajax tabbs in wicket
extensions.  What I am trying on now is creating a dynamic number of tabs
with multiple components and models within each tab which can change during
runtime so it will have Ajax polling for information.

I have been using a RefreshingView to manage X number of tabs and it will
have AJAX updates performed on the fly for information contain within the
tab.

I have been trying to use AbstractTab but it doesn't work with
RefreshingView because refreshing view populates the tabs at run-time rather
then creating the tabs at construction/render.

This is my current predicament, and I am looking for a clean solution using
current framework classes if possible. 

THanks hEaps guys<
LEO!
-- 
View this message in context: 
http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12136668
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: Dynamic AJAX Tabs

2007-08-13 Thread Ballist1c

Opppsss!!! hahaha.. gotta get into that habit, at the moment, the tabs
display a unique id just to see if i can get it working.  also... I am
currently using a list, cause I cant add a AbstractTab to the 'item' in
populate item :( 

final List tabs = new ArrayList();

chatSessionTabs = new RefreshingView("chatSessionTabs", new
PropertyModel(HotListTargetPanel.this.getJumbuckSession().getMySessionData(),
"chatSessions")) {

protected Iterator getItemModels() {
return new
ModelIteratorAdapter(HotListTargetPanel.this.getJumbuckSession().getMySessionData().getChatSessions().iterator())
{
protected IModel model(Object object) {
return new Model((Serializable) object); 
}
};
}
protected void populateItem(Item item) {
Label chatSessionTabData = new Label("chatSessionTab",
((Long)item.getModelObject()).toString());
final long tempChatSessionId = (Long)item.getModelObject();

item.add(chatSessionTabData);
tabs.add(new AbstractTab(item.getModel()) {
public Panel getPanel(String panelId) {
return new FlirtTabPanel(panelId,
tempChatSessionId);
}
});
}
};

add(chatSessionTabs);
if (tabs.size() > 0)
add(new AjaxTabbedPanel("tabs", tabs));
else
add(new Label("tabs", "You have no chat sessions"));   




igor.vaynberg wrote:
> 
> why dont you paste your code, abstracttab should work just fine, its just
> a
> factory for panels.
> 
> -igor
> 
> 
> On 8/13/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hey guys,
>>
>> Right now i have been playing around with the current, ajax tabbs in
>> wicket
>> extensions.  What I am trying on now is creating a dynamic number of tabs
>> with multiple components and models within each tab which can change
>> during
>> runtime so it will have Ajax polling for information.
>>
>> I have been using a RefreshingView to manage X number of tabs and it will
>> have AJAX updates performed on the fly for information contain within the
>> tab.
>>
>> I have been trying to use AbstractTab but it doesn't work with
>> RefreshingView because refreshing view populates the tabs at run-time
>> rather
>> then creating the tabs at construction/render.
>>
>> This is my current predicament, and I am looking for a clean solution
>> using
>> current framework classes if possible.
>>
>> THanks hEaps guys<
>> LEO!
>> --
>> View this message in context:
>> http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12136668
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12137077
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: Dynamic AJAX Tabs

2007-08-13 Thread Ballist1c


hrmm... i might have to resort to that... I was hoping not to have to access
any POJO data directly by the rendering components 

my aim was to keep all the UI components to only access models only... and
keep all the scripting to custom models keeping it transparent from the UI
classes. But that venture is starting to really create a bucket load of
classes... :S... 



igor.vaynberg wrote:
> 
> hmm, its still pretty difficult to tell what is going on.
> 
> how about a quickstart that reproduces the problem.
> 
> you want to have an ajax tabbed panel where the number of tabs is
> variable,
> so when you recalculate the number of tabs why not simply replace the
> tabbedpanel with a new instance and add the new instance to the ajax
> target.
> 
> -igor
> 
> 
> On 8/13/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>>
>> Opppsss!!! hahaha.. gotta get into that habit, at the moment, the tabs
>> display a unique id just to see if i can get it working.  also... I am
>> currently using a list, cause I cant add a AbstractTab to the 'item' in
>> populate item :(
>>
>> final List tabs = new ArrayList();
>>
>> chatSessionTabs = new RefreshingView("chatSessionTabs", new
>> PropertyModel(HotListTargetPanel.this.getJumbuckSession
>> ().getMySessionData(),
>> "chatSessions")) {
>>
>> protected Iterator getItemModels() {
>> return new
>> ModelIteratorAdapter(HotListTargetPanel.this.getJumbuckSession
>> ().getMySessionData().getChatSessions().iterator())
>> {
>> protected IModel model(Object object) {
>> return new Model((Serializable) object);
>> }
>> };
>> }
>> protected void populateItem(Item item) {
>> Label chatSessionTabData = new Label("chatSessionTab",
>> ((Long)item.getModelObject()).toString());
>> final long tempChatSessionId =
>> (Long)item.getModelObject();
>>
>> item.add(chatSessionTabData);
>> tabs.add(new AbstractTab(item.getModel()) {
>> public Panel getPanel(String panelId) {
>> return new FlirtTabPanel(panelId,
>> tempChatSessionId);
>> }
>> });
>> }
>> };
>>
>> add(chatSessionTabs);
>> if (tabs.size() > 0)
>> add(new AjaxTabbedPanel("tabs", tabs));
>> else
>> add(new Label("tabs", "You have no chat sessions"));
>>
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > why dont you paste your code, abstracttab should work just fine, its
>> just
>> > a
>> > factory for panels.
>> >
>> > -igor
>> >
>> >
>> > On 8/13/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hey guys,
>> >>
>> >> Right now i have been playing around with the current, ajax tabbs in
>> >> wicket
>> >> extensions.  What I am trying on now is creating a dynamic number of
>> tabs
>> >> with multiple components and models within each tab which can change
>> >> during
>> >> runtime so it will have Ajax polling for information.
>> >>
>> >> I have been using a RefreshingView to manage X number of tabs and it
>> will
>> >> have AJAX updates performed on the fly for information contain within
>> the
>> >> tab.
>> >>
>> >> I have been trying to use AbstractTab but it doesn't work with
>> >> RefreshingView because refreshing view populates the tabs at run-time
>> >> rather
>> >> then creating the tabs at construction/render.
>> >>
>> >> This is my current predicament, and I am looking for a clean solution
>> >> using
>> >> current framework classes if possible.
>> >>
>> >> THanks hEaps guys<
>> >> LEO!
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12136668
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12137077
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamic-AJAX-Tabs-tf4264551.html#a12138522
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Setting up ComponentTags for user submitted youtube links

2007-09-30 Thread Ballist1c

Hey guys,

Right now I am attempting to setup a mechanism which allows users to submit
there own youtube video links and getting them to display in an embedded
fashion.  

e.g.  (ignore the dashes in HTML)

  http://www.youtube.com/v/Z3ClCwcCvdQ";>
  
  http://www.youtube.com/v/Z3ClCwcCvdQ";
type="application/x-shockwave-flash" 
wmode="transparent" width="425" height="350">



There are some non-standard HTML tags and attributes in use and from what I
can tell, it looks like I would have to write my own wicket component.  The
bit that throws me off, is the HTML to embed youtube videos is nested with
multiple levels...  

Any advice on this matter would be appreciated, i am stuck for a starting
point on how to tackle nested HTML and there respective components 

Thanks guys,
Have a great day :)
-- 
View this message in context: 
http://www.nabble.com/Setting-up-ComponentTags-for-user-submitted-youtube-links-tf4546357.html#a12973665
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: Setting up ComponentTags for user submitted youtube links

2007-10-01 Thread Ballist1c

Thanks mate, thats PERFECT! haha.. i just found attributeModifier setup!!!
lol rad!!!


Martijn Dashorst wrote:
> 
> Create a YouTubePanel:
> 
> class YouTubePanel extends Panel {
> private int width;
> private int height;
> 
> public YouTubePanel(String id, IModel src) {
> super(src);
> add(new AttributeModifier("width", true, new
> PropertyModel(this, "width")));
> add(new AttributeModifier("height", true, new
> PropertyModel(this, "height")));
> add(new WebMarkupContainer("movie").add(new
> AttributeModifier("value", true, src)));
> add(new WebMarkupContainer("embed").add(new
> AttributeModifier("src", true, src)));
> }
> /* add component tag check for object */
> }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On 10/1/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>> Hey guys,
>>
>> Right now I am attempting to setup a mechanism which allows users to
>> submit
>> there own youtube video links and getting them to display in an embedded
>> fashion.
>>
>> e.g.  (ignore the dashes in HTML)
>> 
>>   > value="http://www.youtube.com/v/Z3ClCwcCvdQ";>
>>   
>>   http://www.youtube.com/v/Z3ClCwcCvdQ";
>> type="application/x-shockwave-flash"
>> wmode="transparent" width="425" height="350">
>> 
>>
>>
>> There are some non-standard HTML tags and attributes in use and from what
>> I
>> can tell, it looks like I would have to write my own wicket component. 
>> The
>> bit that throws me off, is the HTML to embed youtube videos is nested
>> with
>> multiple levels...
>>
>> Any advice on this matter would be appreciated, i am stuck for a starting
>> point on how to tackle nested HTML and there respective components
>>
>> Thanks guys,
>> Have a great day :)
>> --
>> View this message in context:
>> http://www.nabble.com/Setting-up-ComponentTags-for-user-submitted-youtube-links-tf4546357.html#a12973665
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> 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.0-beta3 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Setting-up-ComponentTags-for-user-submitted-youtube-links-tf4546357.html#a12974702
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: Disabling of Wizard Cancel button

2007-10-01 Thread Ballist1c

Hey Vit,

umm you may want to create a new thread for this topic


Ví­t Rozkovec wrote:
> 
> Hi,
> I am using wizard, its dynamic variant with DynamicWizardModel, 
> DynamicWizardStep and IDynamicWizardStep.
> Would it be possible to add to wizard the possibility to also disable 
> the cancel button? Or if I can do it somehow myself and get it to trunk, 
> I will do, just tell me.
> I use wizard for importing many files into database and last step of 
> wizard is just summary, both buttons - Cancel and Finish - do the same 
> and there is no possibility to go back, so I would like to make 
> availiable only Finish button.
> 
> Thank you.
> 
> Vitek
> 
> Ballist1c wrote:
>> Thanks mate, thats PERFECT! haha.. i just found attributeModifier
>> setup!!!
>> lol rad!!!
>>
>>
>> Martijn Dashorst wrote:
>>   
>>> Create a YouTubePanel:
>>>
>>> class YouTubePanel extends Panel {
>>> private int width;
>>> private int height;
>>>
>>> public YouTubePanel(String id, IModel src) {
>>> super(src);
>>> add(new AttributeModifier("width", true, new
>>> PropertyModel(this, "width")));
>>> add(new AttributeModifier("height", true, new
>>> PropertyModel(this, "height")));
>>> add(new WebMarkupContainer("movie").add(new
>>> AttributeModifier("value", true, src)));
>>> add(new WebMarkupContainer("embed").add(new
>>> AttributeModifier("src", true, src)));
>>> }
>>> /* add component tag check for object */
>>> }
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> On 10/1/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>> 
>>>> Hey guys,
>>>>
>>>> Right now I am attempting to setup a mechanism which allows users to
>>>> submit
>>>> there own youtube video links and getting them to display in an
>>>> embedded
>>>> fashion.
>>>>
>>>> e.g.  (ignore the dashes in HTML)
>>>> 
>>>>   >>> value="http://www.youtube.com/v/Z3ClCwcCvdQ";>
>>>>   
>>>>   http://www.youtube.com/v/Z3ClCwcCvdQ";
>>>> type="application/x-shockwave-flash"
>>>> wmode="transparent" width="425" height="350">
>>>> 
>>>>
>>>>
>>>> There are some non-standard HTML tags and attributes in use and from
>>>> what
>>>> I
>>>> can tell, it looks like I would have to write my own wicket component. 
>>>> The
>>>> bit that throws me off, is the HTML to embed youtube videos is nested
>>>> with
>>>> multiple levels...
>>>>
>>>> Any advice on this matter would be appreciated, i am stuck for a
>>>> starting
>>>> point on how to tackle nested HTML and there respective components
>>>>
>>>> Thanks guys,
>>>> Have a great day :)
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Setting-up-ComponentTags-for-user-submitted-youtube-links-tf4546357.html#a12973665
>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> -
>>>> 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.0-beta3 is released
>>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
>>>
>>> -
>>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Setting-up-ComponentTags-for-user-submitted-youtube-links-tf4546357.html#a12990093
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Google Maps API

2007-10-02 Thread Ballist1c

Hey guys, 

I have been testing and attempting to get the google maps api running, with
little avail.

I have done some digging around for info and components written for Google
map api integration.  Unfortunately, the ones i have come across no longer
exist in their respective SVNs :(

As much as I would like to use something that i can load up and parse in
values, i would very much like to learn how to generate custom Javascript in
the  tags like the one required for google maps to locate a position.

e.g.


   //
 

At the moment I am stuck on how to reference javascript from an external
HTTP url, as opposed to a local js file. 

e.g. "http://maps.google.com/maps?file=api&v=2&key=ABC";

If anyone has any tips, that would be greatly appreciated :)

Thanks guys, 

Take care,
Leo!
-- 
View this message in context: 
http://www.nabble.com/Google-Maps-API-tf4553339.html#a12993967
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: Google Maps API

2007-10-02 Thread Ballist1c

I have tried that...

add(HeaderContributor.forJavaScript("http://maps.google.com/maps?file=api&v=2&key=ABC";));

However, when I have that line of code, accessing the page with that
HeaderContributor the system hangs, and the page doesn't load, i dont even
seem to get an error and the only way i can get out of it is through a
manual refresh to the baseURL.

Any thoughts?


Thomas Maeder wrote:
> 
> How does HeaderContributor.forJavaScript(final String location) not fit
> your needs?
> 
> Thomas
> 
> 
> 
>> 
>> At the moment I am stuck on how to reference javascript from 
>> an external HTTP url, as opposed to a local js file. 
>> 
>> e.g. "http://maps.google.com/maps?file=api&v=2&key=ABC";
>> 
>> If anyone has any tips, that would be greatly appreciated :)
>> 
>> Thanks guys, 
>> 
>> Take care,
>> Leo!
>> --
>> View this message in context: 
>> http://www.nabble.com/Google-Maps-API-tf4553339.html#a12993967
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Google-Maps-API-tf4553339.html#a12994533
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: Google Maps API

2007-10-02 Thread Ballist1c

I'll definately have a look at that over the next day or so. At the same
time, i would like to learn how to work these headerContributors for other
javascript based APIs :)

Thanks for the heads up martin,:)


martinf wrote:
> 
> You have seen 
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
> havent you?
> 
> For GeoCoding check out the examples.
> 
> Martin
> 
> 
> Ballist1c wrote:
>> 
>> Hey guys, 
>> 
>> I have been testing and attempting to get the google maps api running,
>> with little avail.
>> 
>> I have done some digging around for info and components written for
>> Google map api integration.  Unfortunately, the ones i have come across
>> no longer exist in their respective SVNs :(
>> 
>> As much as I would like to use something that i can load up and parse in
>> values, i would very much like to learn how to generate custom Javascript
>> in the  tags like the one required for google maps to locate a
>> position.
>> 
>> e.g.
>> 
>> 
>>//<![CDATA[
>> 
>>function load() {
>>  if (GBrowserIsCompatible()) {
>>var map = new GMap2(document.getElementById("map"));
>>map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>  }
>>}
>> 
>>//]]>
>>  
>> 
>> At the moment I am stuck on how to reference javascript from an external
>> HTTP url, as opposed to a local js file. 
>> 
>> e.g. "http://maps.google.com/maps?file=api&v=2&key=ABC";
>> 
>> If anyone has any tips, that would be greatly appreciated :)
>> 
>> Thanks guys, 
>> 
>> Take care,
>> Leo!
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Google-Maps-API-tf4553339.html#a12994550
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: Google Maps API

2007-10-02 Thread Ballist1c
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 40 more
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
... 41 more




martinf wrote:
> 
> This:
> 
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java
> 
> is the heart of its JavaScript header contribution.
> Beyond that I don't see no real reason to add any JavaScript to the HTML.
> Just add it in its own *.js file and refer to that in the header section
> of the HTML.
> 
> For your other JS Problem, have you seen Firebug? It's a Firefox add-on,
> quite usefull for JavaScript debugging.
> 
> Martin
> 
> 
> 
> Ballist1c wrote:
>> 
>> I'll definately have a look at that over the next day or so. At the same
>> time, i would like to learn how to work these headerContributors for
>> other javascript based APIs :)
>> 
>> Thanks for the heads up martin,:)
>> 
>> 
>> martinf wrote:
>>> 
>>> You have seen 
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>>> havent you?
>>> 
>>> For GeoCoding check out the examples.
>>> 
>>> Martin
>>> 
>>> 
>>> Ballist1c wrote:
>>>> 
>>>> Hey guys, 
>>>> 
>>>> I have been testing and attempting to get the google maps api running,
>>>> with little avail.
>>>> 
>>>> I have done some digging around for info and components written for
>>>> Google map api integration.  Unfortunately, the ones i have come across
>>>> no longer exist in their respe

Re: Google Maps API

2007-10-03 Thread Ballist1c

Ah that might explain it... ive attempted to deploy it in the current
Netbeans IDE im using with the crappy tomcat integrated server (v5.5 or
osmething i think) 

My main project is destined to run on a base tomcat server at the moment,
and as a team we are not considering adding any other containers or
extensions to tomcat just yet... :(

so whatever googlemap implementation i use.. or googmap implementation i
create, will need to run on tomcat. :S... 


martinf wrote:
> 
> hmm..
> 
> how do you deploy?
> 
> To get a first glimpse, a:
> 
> mvn jetty:run
> 
> should get the jetty server running and the examples should be visible at:
> http://localhost:8080/wicket-contrib-gmap2-examples/
> 
> If you want to start it from within Eclipse using the Start class a:
> 
> mvn eclipse:clean eclipse:eclipse
> 
> cleanly rebuilding eclipses project and classpath files might help.
> Also a eclipse classpath variable has to be set up, but eclipse warning 
> will guide you to that.
> 
> Basically the exception says that that the classes providing the logging 
> implementation can't be found,
> Log4J, in this case.
> 
> Could it be that you are trying to get it started in a geronimo server?
> I'm not quite familiar with setting those up, but the Log4J jar has to 
> be present on the runtime classpath, WEB-INF/lib if you go by the 
> standards, but maybe your container has configuration files for that.
> 
> Martin
> 
> Ballist1c schrieb:
>> Ive downloaded and compiled the Gmap2 and examples, however, the examples
>> don't seem to deploy... there seems to be some low level issue. I have
>> the
>> latest wicket snapshot so I am assuming that there may be compatibility
>> issues.
>>
>> Also the Gmap (original) the SVN provided no long works :(
>>
>> The problem unfortuantely still exists and even though Gmap2 does not
>> work
>> deploy, now that i have the code, i can begin to write my own Gmap
>> implementation.
>>
>> Its gonna take a while to work through the code, im going to start with a
>> straight forward method to embed the most simple googlemap in a webpage
>> with
>> using default Wicket components. Any tips?
>>
>>
>> SEVERE: error stopping 
>> org.apache.commons.logging.LogConfigurationException:
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger) (Caused by
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger))
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
>> at
>> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
>> at
>> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
>> at
>> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3623)
>> at
>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4336)
>> at
>> org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5068)
>> at
>> org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1410)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1048)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:421)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)
>> at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)
>> at
>> org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:3960)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>> at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>> at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>> at
>> org.apache.catalina.s

Google Maps and AJAX

2007-10-08 Thread Ballist1c

Okay. this is a follow up from my initial google maps query..

 i just figured out the problem ... what I am attempting to do is load
googles external javascript on AJAX page loads, and google does not like it. 
I get this XMLHttpRequestOpen error which seems like google itself is
denying the request for their JS when the AJAX page gets loaded.

I have made a work around and loaded Googles Javascript from the absolute
parent Panel that initially gets loaded and all is fine.  

I am curious however, has anyone figured out how to load the googlemaps
Javascript API only when its needed with AJAX panel loads... rather than
loading it from the entire web site regardless of its its being used or not.
-- 
View this message in context: 
http://www.nabble.com/Google-Maps-and-AJAX-tf4591408.html#a13107177
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: Google Maps and AJAX

2007-10-08 Thread Ballist1c

Yep tried that... it compiles and deploys fine, but as soon as I try to
access an Ajaxified panel with the headerContributor that points to google,
it doesn't work.


Nino.Martinez wrote:
> 
> You are using header contributor right?
> 
> Ballist1c wrote:
>> Okay. this is a follow up from my initial google maps query..
>>
>>  i just figured out the problem ... what I am attempting to do is load
>> googles external javascript on AJAX page loads, and google does not like
>> it. 
>> I get this XMLHttpRequestOpen error which seems like google itself is
>> denying the request for their JS when the AJAX page gets loaded.
>>
>> I have made a work around and loaded Googles Javascript from the absolute
>> parent Panel that initially gets loaded and all is fine.  
>>
>> I am curious however, has anyone figured out how to load the googlemaps
>> Javascript API only when its needed with AJAX panel loads... rather than
>> loading it from the entire web site regardless of its its being used or
>> not.
>>   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Google-Maps-and-AJAX-tf4591408.html#a13109926
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Changing IDEs to eclipse

2007-10-25 Thread Ballist1c

Hey guys,

I have been developing up until now, solely on netbeans and it is really
starting to crap itself now. Netbeans did have alot of stuff setup with
integrated tomcat which made things conveinient.

So ive chosen to move to eclipse, and to jetty webserver and I am having
alot of trouble setting up the whole IDE. I have heard alot of talk about
maven, but i am not sure if its applicable as i have the wicket sources
already jarred up and now just working on getting my own code compiled into
a web app and automatically deploying.

Anyone have any resources on this?  I am using the latest Eclipse Europa
3.3, with Jetty 6.1.5.

Thanks guys :) 

Take care!

-- 
View this message in context: 
http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13420874
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: Changing IDEs to eclipse

2007-10-25 Thread Ballist1c

Yeah i have had a look, and the deployment doesn't resemble how we had the
project setup in netbeans.

Im completely stuck :S. I can see how you guys use your own jetty server
built into the quick start project... which is very cool.  

THe project i am working with is being deployed directly as a web app with
the built-in tomcat server in netbeans, so there is no main class, rather we
use a web-app wrapper which is configured to point to the starting class. 

Argh my brain is melting.. im not sure even if anything i said just then
makes sense... i think i need to go and cool off for a bit and revisit this
problem in a few minutes.


igor.vaynberg wrote:
> 
> see instructions for quickstart on wicket.apache.org
> 
> -igor
> 
> 
> On 10/25/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>> Hey guys,
>>
>> I have been developing up until now, solely on netbeans and it is really
>> starting to crap itself now. Netbeans did have alot of stuff setup with
>> integrated tomcat which made things conveinient.
>>
>> So ive chosen to move to eclipse, and to jetty webserver and I am having
>> alot of trouble setting up the whole IDE. I have heard alot of talk about
>> maven, but i am not sure if its applicable as i have the wicket sources
>> already jarred up and now just working on getting my own code compiled
>> into
>> a web app and automatically deploying.
>>
>> Anyone have any resources on this?  I am using the latest Eclipse Europa
>> 3.3, with Jetty 6.1.5.
>>
>> Thanks guys :)
>>
>> Take care!
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13420874
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13421317
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: Changing IDEs to eclipse

2007-10-28 Thread Ballist1c

Thanks for the heads up guys,

I have made progress, The source files and main project are finally
compiling now without any errors :D The project has been loaded as a
'Dynamic Web Project'... embarassing as it is... it took me a while to
figure that out ... 

However, i cant figure out how to get the thing to deploy on a web service. 
I have installed the tomcat plug in which has made it a breeze to start up
the service from within Eclipse :) I cant seem to get the tomcat server to
load my bloody project.  I am getting it to run tomcat 6.0.14 which is
loading up OK, and it shows up when i access the root local host. At the
moment I cant figure out how to configure it to load my class files.

I know loading things up as a web app don't follow the normal quick start
guide.  Unfortunately, It does not work to convert the project away from
running as a web app :(




Mr Mean wrote:
> 
> We use this plugin to run our apps with tomcat.
> http://www.eclipsetotale.com/tomcatPlugin.html
> No hassle with deploying a war, automatic class reloading, no special
> main class required, its really quite nice.
> 
> Maurice
> 
> On 10/26/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>> Yeah i have had a look, and the deployment doesn't resemble how we had
>> the
>> project setup in netbeans.
>>
>> Im completely stuck :S. I can see how you guys use your own jetty
>> server
>> built into the quick start project... which is very cool.
>>
>> THe project i am working with is being deployed directly as a web app
>> with
>> the built-in tomcat server in netbeans, so there is no main class, rather
>> we
>> use a web-app wrapper which is configured to point to the starting class.
>>
>> Argh my brain is melting.. im not sure even if anything i said just then
>> makes sense... i think i need to go and cool off for a bit and revisit
>> this
>> problem in a few minutes.
>>
>>
>> igor.vaynberg wrote:
>> >
>> > see instructions for quickstart on wicket.apache.org
>> >
>> > -igor
>> >
>> >
>> > On 10/25/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hey guys,
>> >>
>> >> I have been developing up until now, solely on netbeans and it is
>> really
>> >> starting to crap itself now. Netbeans did have alot of stuff setup
>> with
>> >> integrated tomcat which made things conveinient.
>> >>
>> >> So ive chosen to move to eclipse, and to jetty webserver and I am
>> having
>> >> alot of trouble setting up the whole IDE. I have heard alot of talk
>> about
>> >> maven, but i am not sure if its applicable as i have the wicket
>> sources
>> >> already jarred up and now just working on getting my own code compiled
>> >> into
>> >> a web app and automatically deploying.
>> >>
>> >> Anyone have any resources on this?  I am using the latest Eclipse
>> Europa
>> >> 3.3, with Jetty 6.1.5.
>> >>
>> >> Thanks guys :)
>> >>
>> >> Take care!
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13420874
>> >> 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]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13421317
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13460110
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: Changing IDEs to eclipse

2007-10-29 Thread Ballist1c

Okay its all working now, 

What was missing in that last bit is the proper configuration for the
context.xml in the META-INF and web.xml in WEB-INF.  I had to use tomcat 6.0
configuration xml.  It took me a while to figure out taht the context.xml
was suppsed to be in the webcontent/meta-inf folder.  

Great learning experiance, thanks for all your help guys, learnt a new thing
today :)


Johan Maasing-2 wrote:
> 
> On 10/29/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>>
>> However, i cant figure out how to get the thing to deploy on a web
>> service.
>> I have installed the tomcat plug in which has made it a breeze to start
>> up
>> the service from within Eclipse :) I cant seem to get the tomcat server
>> to
> 
> I configured the server using the JEE-eclipse built in server config
> (just add a new tomcat server, point it to the tomcat directory). Then
> it was simply a question of right clicking the server in the servers
> view and add the project. Don't know how to do it in any other tomcat
> plugin.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Changing-IDEs-to-eclipse-tf4695209.html#a13478688
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Form/Enter Key Problem

2007-12-18 Thread Ballist1c

Hey guys, 

I have created the following form (code below).

The form works fine, when i enter a value into the txt field and mouse click
on the AjaxFormSubmitLink... BUT if i type something into the TextField and
press the enter key, the page loads 'something'... but does nothing and
the form is broken till i do a hard refresh, usually i close the browser and
start it up again.   The application itself doesn't crash, and all the other
AJAX on the page works fine.

I want to know if anyone has had this problem before.  I am pretty stuck on
this one at the moment.

One hack solution i was wondering if someone can help me out with, is to
disable the auto-submit on Enter Key press... anyone know how to do that? 


Thanks guys!!!
LEo1


public class SearchInputPanel extends Form
{
   TextField basicSearchString;
   DropDownChoice dodginess;
   AjaxFormSubmitLink addButton;
   Input input;

   /**
* Creates a new instance of FormPanel
*/
   public SearchInputPanel(String id, MarkupContainer parent)
   {
  super(id, parent);
   }

   @Override
   public void setupComponents()
   {
  input = new Input();
  basicSearchString = new TextField("searchString", this);
  dodginess = new DropDownChoice("dodginess", this, Arrays.asList(new
String[]{"1", "2", "3", "4", "5"}));

  addButton = new AjaxFormSubmitLink("add", this)
  {
 public void onSubmit(AjaxRequestTarget target)
 {
//MessageManager.getInstance().getLatestMessages();
//((BigBrotherCookieSession)
getJumbuckCookieSession()).setSearchResults(MessageManager.getInstance().getNewMessages());
target.addComponent(findParent(BasicSearchPanel.class));
 }

 public Form getJumbuckForm()
 {
return SearchInputPanel.this.getForm();
 }
  };
   }

   @Override
   public void setupModels()
   {
  setModel(new CompoundPropertyModel(input));
   }

   @Override
   public void onSubmit()
   {
  BigBrotherCookieSession session = (BigBrotherCookieSession)
getJumbuckCookieSession();
  session.addSearchString(input.getSearchString(),
input.getDodginess());

  input.setSearchString("");
   }

   private static class Input implements IClusterable
   {
  private String searchString = "";
  private Long dodginess = 1L;

  public String getSearchString()
  {
 return searchString;
  }

  public void setSearchString(String searchString)
  {
 this.searchString = searchString;
  }

  public Long getDodginess()
  {
 return dodginess;
  }

  public void setDodginess(Long dodginess)
  {
 if (dodginess == null)
this.dodginess = 1L;
 else
this.dodginess = dodginess;
  }
   }
}

-- 
View this message in context: 
http://www.nabble.com/Form-Enter-Key-Problem-tp14408121p14408121.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]



Wicket and JAVASCRIPT variables

2008-01-16 Thread Ballist1c

Hey guys,

Im working with google maps and what I want to accomplish is have location
data from our DB backend parsed into the google map for display.

At the moment, what I have achieved is having the google map display
multiple locations statically defined within the javascript itself, and I
have my dynamic location data accessible from the panel in which the google
map is loaded in. 

Where I am stopped at the moment is figuring out a way to parse hundreds of
location coordinates thru to the Javascript.  I had a look at manually
initializing a JS array var, but the format which Googlemaps uses makes it a
real pain in the arse.

To give you an idea of the javascript for the array variable

var officeLayer = [
  {
"zoom": [0, 6],
"places": [
  {
"name": "New York Sales & Engineering Office",
"icon": ["house", "house-shadow"],
"posn": [40.754606, -73.986794]
  },
  {
"name": "Atlanta Sales & Engineering Office",
"icon": ["house", "house-shadow"],
"posn": [33.781506, -84.387422]
  },
  {
"name": "Dallas Sales Office",
"icon": ["house", "house-shadow"],
"posn": [36.4724385, -101.044637]
  },
  {
"name": "Cambridge Sales & Engineering Office",
"icon": ["house", "house-shadow"],
"posn": [42.362331, -71.083661]
  },
  {
"name": "Chicago Sales Office",
"icon": ["house", "house-shadow"],
"posn": [41.889232, -87.628767]
  },
  {
"name": "Denver & Boulder Offices",
"icon": ["house", "house-shadow"],
"posn": [39.563011, -104.868962]
  },
  {
"name": "Detroit Sales Office",
"icon": ["house", "house-shadow"],
"posn": [42.475482, -83.244587]
  },
  {
"name": "Santa Monica & Irvine Offices",
"icon": ["house", "house-shadow"],
"posn": [33.715585, -118.177435]
  },
  {
"name": "Phoenix Sales & Engineering Office",
"icon": ["house", "house-shadow"],
"posn": [33.411782, -111.926247]
  },
  {
"name": "Pittsburgh Engineering Office",
"icon": ["house", "house-shadow"],
"posn": [40.444541, -79.946254]
  },
  {
"name": "Seattle Engineering & Sales Offices",
"icon": ["house", "house-shadow"],
"posn": [47.664261, -122.274308]
  },
  {
"name": "Canada Sales Office",
"icon": ["house", "house-shadow"],
"posn": [43.645478, -79.378843]
  },
]
  },

anyone got any ideas?
-- 
View this message in context: 
http://www.nabble.com/Wicket-and-JAVASCRIPT-variables-tp14902889p14902889.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: Wicket and JAVASCRIPT variables

2008-01-16 Thread Ballist1c

I have had a look, the GMap2 contrib is missing source files :(

GOverlayListenerBehavior class is required ... but the SVN I got doesnt have
it ... so thats not an option.




igor.vaynberg wrote:
> 
> have you seen wicketstuff's google maps integration projects?
> 
> -igor
> 
> 
> On Jan 16, 2008 5:14 PM, Ballist1c <[EMAIL PROTECTED]> wrote:
>>
>> Hey guys,
>>
>> Im working with google maps and what I want to accomplish is have
>> location
>> data from our DB backend parsed into the google map for display.
>>
>> At the moment, what I have achieved is having the google map display
>> multiple locations statically defined within the javascript itself, and I
>> have my dynamic location data accessible from the panel in which the
>> google
>> map is loaded in.
>>
>> Where I am stopped at the moment is figuring out a way to parse hundreds
>> of
>> location coordinates thru to the Javascript.  I had a look at manually
>> initializing a JS array var, but the format which Googlemaps uses makes
>> it a
>> real pain in the arse.
>>
>> To give you an idea of the javascript for the array variable
>>
>> var officeLayer = [
>>   {
>> "zoom": [0, 6],
>> "places": [
>>   {
>> "name": "New York Sales & Engineering Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [40.754606, -73.986794]
>>   },
>>   {
>> "name": "Atlanta Sales & Engineering Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [33.781506, -84.387422]
>>   },
>>   {
>> "name": "Dallas Sales Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [36.4724385, -101.044637]
>>   },
>>   {
>> "name": "Cambridge Sales & Engineering Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [42.362331, -71.083661]
>>   },
>>   {
>> "name": "Chicago Sales Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [41.889232, -87.628767]
>>   },
>>   {
>> "name": "Denver & Boulder Offices",
>> "icon": ["house", "house-shadow"],
>> "posn": [39.563011, -104.868962]
>>   },
>>   {
>> "name": "Detroit Sales Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [42.475482, -83.244587]
>>   },
>>   {
>> "name": "Santa Monica & Irvine Offices",
>> "icon": ["house", "house-shadow"],
>> "posn": [33.715585, -118.177435]
>>   },
>>   {
>> "name": "Phoenix Sales & Engineering Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [33.411782, -111.926247]
>>   },
>>   {
>> "name": "Pittsburgh Engineering Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [40.444541, -79.946254]
>>   },
>>   {
>> "name": "Seattle Engineering & Sales Offices",
>> "icon": ["house", "house-shadow"],
>> "posn": [47.664261, -122.274308]
>>   },
>>   {
>> "name": "Canada Sales Office",
>> "icon": ["house", "house-shadow"],
>> "posn": [43.645478, -79.378843]
>>   },
>> ]
>>   },
>>
>> anyone got any ideas?
>> --
>> View this message in context:
>> http://www.nabble.com/Wicket-and-JAVASCRIPT-variables-tp14902889p14902889.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-and-JAVASCRIPT-variables-tp14902889p14907106.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]



model inheritence issues :S

2008-02-12 Thread Ballist1c

Hey guys, 

i got this strange issue, what I am doing at the moment is attempting to
pass an objectModel to a child panel thru panel.setModel() but i am getting
a null exception error.

I have run debugger and found that when i retrieve the ModelObject for
imageInfo in Csession, its not null. But when the ContentPanel renders, the
ModelObject IS null :S

any ideas??



public class csession extends Panel
{
   Panel content;

  public csession (String wicketId, MarkupContainer parent)
  {
super(wicketId, parent);

content = new ContentPanel("content", this);

TabModel mod = new TabSessionModel(this);
content.setModel(new PropertyModel(mod, "imageInfo"));
  }
 
}

public class ContentPanel extends Panel
{
  Label name;

  public ContentPanel (String wicketId, MarkupContainer parent)
  {
super(wicketId, parent);

name = new Label("name", this);
name.setModel(new PropertyModel(getModel(), "name"));
  }
}

-- 
View this message in context: 
http://www.nabble.com/model-inheritence-issues-%3AS-tp15445920p15445920.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]



Customising Radio Buttons with JS and CSS

2008-03-12 Thread Ballist1c

Hey guys,

I got a funky idea for the UI.

I have a form that consists of set static radio choices and I am looking to
add a bit of zing with it.

Rather than having the radio button with text, i want to jazz it up with
having a 100x100px tile with an image on it representing each of the radio
choices. The functionality i want to capture is only one option can be
selected at any one time, so clicking on another tile will de-select what is
currently selected and select the new tile.

I am a bit stuck with this one, I am attempting to re-write the radio choice
object but im not having much luck with that so far.
-- 
View this message in context: 
http://www.nabble.com/Customising-Radio-Buttons-with-JS-and-CSS-tp16015072p16015072.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]