Re: (Probably) A Bug in AjaxLink and list

2013-11-06 Thread lambdad...@gmail.com
Hi Martin,

Here is the java file:
http://pastebin.com/rKpp50zr

and the corresponding html file:
http://pastebin.com/Cq1j7ZPT

I have also tried with the WebMarkupContainer and had experienced the same
behavior.

Thanks in advance,
L



On Tue, Nov 5, 2013 at 2:07 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 The first mail didn't make it to the list. At least I haven't seen it.

 Show us your code please.


 On Tue, Nov 5, 2013 at 10:58 AM, lambdad...@gmail.com
 lambdad...@gmail.comwrote:

  Dear Group,
 
  I haven't received any reply yet. Wasn't I clear enough in my query?
 
  cheers,
  L
 
 
  On Mon, Nov 4, 2013 at 1:00 PM, lambdad...@gmail.com
  lambdad...@gmail.comwrote:
 
   Hi,
  
   I am showing a list on wicket page. Each item (is a div) in the list,
 it
   has few labels and two AjaxLinks - show and hide, which show / hides
 some
   information (as another label) related to that item. If I have more
 than
   one item in the list, clicking on the ajax links of any item always
   modifies the first item in the list. For example, if I have 3 items,
   clicking on the third show link always shows and under the first item
   likewise for the hide, nevertheless it shows the correct info. but
 the
   placement is wrong.
  
   This behavior wasn't there when the above code was relying on 1.5, only
   since I have moved to 6.11. I have very good reasons to update, though.
  
   Any help / guidance is very appreciated.
  
   Thanks,
   Lambda
  
  
  
  
  
 



Re: (Probably) A Bug in AjaxLink and list

2013-11-06 Thread lambdad...@gmail.com
That works! Thanks for your answer.

cheers,
L


On Wed, Nov 6, 2013 at 12:37 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

  span wicket:id=dummy id=raw/span

 remove id=raw and let Wicket generate the id for you


 On Wed, Nov 6, 2013 at 11:56 AM, lambdad...@gmail.com
 lambdad...@gmail.comwrote:

  Hi Martin,
 
  Here is the java file:
  http://pastebin.com/rKpp50zr
 
  and the corresponding html file:
  http://pastebin.com/Cq1j7ZPT
 
  I have also tried with the WebMarkupContainer and had experienced the
 same
  behavior.
 
  Thanks in advance,
  L
 
 
 
  On Tue, Nov 5, 2013 at 2:07 PM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
   Hi,
  
   The first mail didn't make it to the list. At least I haven't seen it.
  
   Show us your code please.
  
  
   On Tue, Nov 5, 2013 at 10:58 AM, lambdad...@gmail.com
   lambdad...@gmail.comwrote:
  
Dear Group,
   
I haven't received any reply yet. Wasn't I clear enough in my query?
   
cheers,
L
   
   
On Mon, Nov 4, 2013 at 1:00 PM, lambdad...@gmail.com
lambdad...@gmail.comwrote:
   
 Hi,

 I am showing a list on wicket page. Each item (is a div) in the
 list,
   it
 has few labels and two AjaxLinks - show and hide, which show /
 hides
   some
 information (as another label) related to that item. If I have more
   than
 one item in the list, clicking on the ajax links of any item always
 modifies the first item in the list. For example, if I have 3
 items,
 clicking on the third show link always shows and under the first
  item
 likewise for the hide, nevertheless it shows the correct info.
 but
   the
 placement is wrong.

 This behavior wasn't there when the above code was relying on 1.5,
  only
 since I have moved to 6.11. I have very good reasons to update,
  though.

 Any help / guidance is very appreciated.

 Thanks,
 Lambda





   
  
 



Re: (Probably) A Bug in AjaxLink and list

2013-11-05 Thread lambdad...@gmail.com
Dear Group,

I haven't received any reply yet. Wasn't I clear enough in my query?

cheers,
L


On Mon, Nov 4, 2013 at 1:00 PM, lambdad...@gmail.com
lambdad...@gmail.comwrote:

 Hi,

 I am showing a list on wicket page. Each item (is a div) in the list, it
 has few labels and two AjaxLinks - show and hide, which show / hides some
 information (as another label) related to that item. If I have more than
 one item in the list, clicking on the ajax links of any item always
 modifies the first item in the list. For example, if I have 3 items,
 clicking on the third show link always shows and under the first item
 likewise for the hide, nevertheless it shows the correct info. but the
 placement is wrong.

 This behavior wasn't there when the above code was relying on 1.5, only
 since I have moved to 6.11. I have very good reasons to update, though.

 Any help / guidance is very appreciated.

 Thanks,
 Lambda







[wicketstuff-gmap3] bug in the info. window close behavior

2013-03-19 Thread lambdad...@gmail.com
Hi,

Calling the *GInfoWindow.isOpen()* always returns true despite of being
closed.

Cheers,
Daku


Re: WicketObjects - Could not resolve class [images]

2013-03-19 Thread lambdad...@gmail.com
Ok, I have resolved it by passing a correct icon path to the GIcon
constructor, that is /images/marker_red.png


On Tue, Mar 19, 2013 at 6:11 PM, lambdad...@gmail.com 
lambdad...@googlemail.com wrote:

 Hi,

 I have a page which shows two panels, containing a simple panel with some
 text on it on the left hand side while gmap3 on the right hand side. Both
 the panels are occupy 50% of the page. As soon as I open that page, it
 clearly shows the text panel, however the expected markers are simply not
 there and map is fully zoomed out. Furthermore, the exception (see below)
 can be seen on the server side.

 This is how I initialize the markers' icons

 GIcon ico = new GIcon(images/marker_green.png).setSize(
 new GSize(20, 34)).setAnchor(new GPoint(9, 34));

 Surprising if the given map is shown under different page, it shows
 everything as expected.

 2013-03-19 17:52:33,614 86 [810158789@qtp-177506381-1] WARN
 WicketObjects  - Could not resolve class [images]
 java.lang.ClassNotFoundException: images
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at
 org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401)
 at
 org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:247)
 at
 org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:108)
 at
 org.apache.wicket.core.util.lang.WicketObjects.resolveClass(WicketObjects.java:72)
 at
 org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:139)
 at
 org.apache.wicket.core.request.mapper.BookmarkableMapper.parseRequest(BookmarkableMapper.java:110)
 at
 org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:282)
 at
 org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152)
 at
 org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:183)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)
 at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:267)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
 at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
 at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
 at
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
 at
 org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
 at
 org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at org.mortbay.jetty.Server.handle(Server.java:326)
 at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
 at
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
 at
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
 at
 org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

 Thanks,
 Lambda



building dynamic charts in wicket

2011-05-09 Thread lambdad...@gmail.com
Hi,

I would like add an extra page to my Web application which shows a graph
similar to jconsole or google charts (displaying time series analysis). It
is required to be dynamic in nature which means the graph should update
itself (using wicket ajax) as soon as the new new readings/metrics are
available. Are there any efforts have been made so far relevant to this
direction?

cheers
Daku


Re: building dynamic charts in wicket

2011-05-09 Thread lambdad...@gmail.com
Thanks for the prompt reply!

In the given scenario, the charts on the central web application reflects
the status of the individual machines which either shown as a mashes of the
charts which are suppose to be hosted on the individual machines.
Alternatively, the metrics could bepushed directly to the central wicket
application or pulled periodically through some remote interface, which (the
central app) then can generate the chart - event based.

The former approach is lightweight but latter has some merits as well
(probably).

While on hunt, I have found the following two links. But unsure if the
libraries are fresh enough to be  consumed :)

wicket mashup
http://code.google.com/p/wicket-mashup/

from the Wicket stuff source base
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/googlecharts-parent/googlecharts-examples/src/main/java/org/wicketstuff/googlecharts/examples

Daku

On Mon, May 9, 2011 at 2:41 PM, Wilhelmsen Tor Iver toriv...@arrive.nowrote:

 Sounds like a combo of a dynamic image resource component (using e.g.
 JFreeChart or the like) and an AjaxSelfUpdatingTimerBehavior is needed.

 mvh
 - Tor Iver Wilhelmsen, Arrive AS

 -Original Message-
 From: lambdad...@gmail.com [mailto:lambdad...@googlemail.com]
 Sent: 9. mai 2011 14:32
 To: users@wicket.apache.org
 Subject: building dynamic charts in wicket

 Hi,

 I would like add an extra page to my Web application which shows a graph
 similar to jconsole or google charts (displaying time series analysis). It
 is required to be dynamic in nature which means the graph should update
 itself (using wicket ajax) as soon as the new new readings/metrics are
 available. Are there any efforts have been made so far relevant to this
 direction?

 cheers
 Daku

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: terrain view in gmap2

2011-04-26 Thread lambdad...@gmail.com
Hi Mike,

Then you can file a ticket and attach your patch (or you can fork the repo,
 make your patch and register a pull request).


I have made the changes and sent the pull request. Hope the changes will be
merged and available to all the wicket folks.


Regards,

 Mike


Cheers,
Daku





  As I can see in the wicket-map.js, the types are hardcoded as following:

 this.getMapTypeString = function(mapType){
 switch (mapType) {
 case G_NORMAL_MAP:
 return 'G_NORMAL_MAP';
 break;
 case G_SATELLITE_MAP:
 return 'G_SATELLITE_MAP';
 break;
 case G_HYBRID_MAP:
 return 'G_HYBRID_MAP';
 break;
 default:
 return 'unknown';
 break;
 };
 }

 what I would like to do is, adding the G_PHYSICAL_MAP

 is there a way to add this type to the created map by injecting javascript
 code inside panel or page class?

 Daku

 On Thu, Apr 21, 2011 at 3:58 PM, lambdad...@gmail.com
 lambdad...@googlemail.com  wrote:

  Hi,

 How can I show the terrain view in google maps using gmap2? As of now, I
 can only see the hybrid and satellite views by adding the respective
 controls using map.addConrol(GControl.GMapTypeControl).

 I am using the 1.4.16 version of gmap and wicket.

 Thanks you in advance.
 Daku



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: terrain view in gmap2

2011-04-26 Thread lambdad...@gmail.com
Dear Mike,
Do you know when the maven dependency of gmap2 with the latest changes will
be available on the maven repository? moreover the dependency description?
so that I can start using it in my project.

Currently the dependencies I use for my projects are:
   dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4.16/version
/dependency
dependency
groupIdorg.wicketstuff/groupId
artifactIdgmap2/artifactId
version1.4.16/version
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-extensions/artifactId
version1.4.16/version
/dependency

Cheers,
Daku

On Thu, Apr 21, 2011 at 5:14 PM, Michael O'Cleirigh 
michael.ocleir...@rivulet.ca wrote:

 Hi,

 The best way is to checkout the existing code and add in the changes needed
 to allow you to access the new type (probably both Javascript and Java
 changes will be needed).

 GMap2 is in wicketstuff core here: https://github.com/wicketstuff/core  (
 https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/gmap2-parent
 )

 If you checkout the 'core-1.4.x' branch you can edit the files to effect
 the change you want.

 Then you can file a ticket and attach your patch (or you can fork the repo,
 make your patch and register a pull request).

 Regards,

 Mike




  As I can see in the wicket-map.js, the types are hardcoded as following:

 this.getMapTypeString = function(mapType){
 switch (mapType) {
 case G_NORMAL_MAP:
 return 'G_NORMAL_MAP';
 break;
 case G_SATELLITE_MAP:
 return 'G_SATELLITE_MAP';
 break;
 case G_HYBRID_MAP:
 return 'G_HYBRID_MAP';
 break;
 default:
 return 'unknown';
 break;
 };
 }

 what I would like to do is, adding the G_PHYSICAL_MAP

 is there a way to add this type to the created map by injecting javascript
 code inside panel or page class?

 Daku

 On Thu, Apr 21, 2011 at 3:58 PM, lambdad...@gmail.com
 lambdad...@googlemail.com  wrote:

  Hi,

 How can I show the terrain view in google maps using gmap2? As of now, I
 can only see the hybrid and satellite views by adding the respective
 controls using map.addConrol(GControl.GMapTypeControl).

 I am using the 1.4.16 version of gmap and wicket.

 Thanks you in advance.
 Daku



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




terrain view in gmap2

2011-04-21 Thread lambdad...@gmail.com
Hi,

How can I show the terrain view in google maps using gmap2? As of now, I can
only see the hybrid and satellite views by adding the respective controls
using map.addConrol(GControl.GMapTypeControl).

I am using the 1.4.16 version of gmap and wicket.

Thanks you in advance.
Daku


Re: terrain view in gmap2

2011-04-21 Thread lambdad...@gmail.com
As I can see in the wicket-map.js, the types are hardcoded as following:

this.getMapTypeString = function(mapType){
switch (mapType) {
case G_NORMAL_MAP:
return 'G_NORMAL_MAP';
break;
case G_SATELLITE_MAP:
return 'G_SATELLITE_MAP';
break;
case G_HYBRID_MAP:
return 'G_HYBRID_MAP';
break;
default:
return 'unknown';
break;
};
}

what I would like to do is, adding the G_PHYSICAL_MAP

is there a way to add this type to the created map by injecting javascript
code inside panel or page class?

Daku

On Thu, Apr 21, 2011 at 3:58 PM, lambdad...@gmail.com 
lambdad...@googlemail.com wrote:

 Hi,

 How can I show the terrain view in google maps using gmap2? As of now, I
 can only see the hybrid and satellite views by adding the respective
 controls using map.addConrol(GControl.GMapTypeControl).

 I am using the 1.4.16 version of gmap and wicket.

 Thanks you in advance.
 Daku