Re: how to use the palette component for multiple updates ?

2012-09-21 Thread Sven Meier

Hi,

I'm not sure what you're up to with the drop down selects at the top, 
but I'd suggest:


form = new Form(form);
form.add(new ListChoice(instructor, instructor, instructors));
form.add(new ListChoice(course, course, courses));
form.add(new Button(assign) {
  onSubmit() {
assignments.getObject().add(new Assignment(instructor.getObject(), 
course.getObject()));

  }
});
form.add(new ListView(assigments, assignments) {
  populateItem(ListItem item) {
item.add(new Label(instructor, new PropertyModel(item.getModel(), 
instructor.name)));
item.add(new Label(course, new PropertyModel(item.getModel(), 
course.name)));

  }
});
form.add(new Button(save) {
  onSubmit() {
save(assignments.getObject());
  }
});

Hope this helps
Sven

On 09/20/2012 11:38 PM, grazia wrote:

What wicket components would you recommend I use ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-use-the-palette-component-for-multiple-updates-tp4652201p4652203.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: [Announce] wicket-jquery-ui 6.0.0 released

2012-09-21 Thread James Eliyezar
Hi Sebastien,

Checked out the demos and wicket-jquery-ui looks amazing.
The examples are very clear, the code looks much simpler.
Looks I'll be moving over to wicket-jquery-ui soon.
Thank you for all your efforts and hardwork.

On Thu, Sep 13, 2012 at 7:19 AM, Sebastien seb...@gmail.com wrote:

 I am glad to follow, in this announcement period...

 wicket-jquery-ui 6.0.0 is an integration of jQuery UI (widgets,
 interactions  effects) over Wicket 6.0.0.
 Some other extensions are also available (Kendo UI widgets, Calendar).

 Links, infos  demos:
 http://www.7thweb.net/wicket-jquery-ui

 Best regards,
 Sebastien.




-- 
Thanks  regards
James Selvakumar


How to create a dashboard with draggable widgets?

2012-09-21 Thread James Eliyezar
Wicketers,

Wondering how to create a google analytics style dashboard with draggable
widgets that remembers it's position across sessions.
Please share your thoughts.

-- 
Thanks  regards
James Selvakumar


Re: How to create a dashboard with draggable widgets?

2012-09-21 Thread Martin Grigorov
Hi,

There is a recipe for this in Apache Wicket Cookbook book.

On Fri, Sep 21, 2012 at 10:49 AM, James Eliyezar ja...@mcruncher.com wrote:
 Wicketers,

 Wondering how to create a google analytics style dashboard with draggable
 widgets that remembers it's position across sessions.
 Please share your thoughts.

 --
 Thanks  regards
 James Selvakumar



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: How to create a dashboard with draggable widgets?

2012-09-21 Thread Ernesto Reinaldo Barreiro
Hi,

I remember there was an example on wiquery repository of of a dashboard
built using jquery sortables and jquery draggable/droppables. Adding the
remembering part should be as simple as storing the position info in some
persistent storage.

On Fri, Sep 21, 2012 at 12:49 AM, James Eliyezar ja...@mcruncher.comwrote:

 Wicketers,

 Wondering how to create a google analytics style dashboard with draggable
 widgets that remembers it's position across sessions.
 Please share your thoughts.

 --
 Thanks  regards
 James Selvakumar




-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com


Re: [Announce] wicket-jquery-ui 6.0.0 released

2012-09-21 Thread Sebastien
Hi James, you're welcome! Glad to read that you like it.
If you have any questions, do not hesitate to use the forum (will may find
the address on the homepage).

Thanks  best regards,
Sebastien.

On Fri, Sep 21, 2012 at 9:19 AM, James Eliyezar ja...@mcruncher.com wrote:

 Hi Sebastien,

 Checked out the demos and wicket-jquery-ui looks amazing.
 The examples are very clear, the code looks much simpler.
 Looks I'll be moving over to wicket-jquery-ui soon.
 Thank you for all your efforts and hardwork.

 On Thu, Sep 13, 2012 at 7:19 AM, Sebastien seb...@gmail.com wrote:

  I am glad to follow, in this announcement period...
 
  wicket-jquery-ui 6.0.0 is an integration of jQuery UI (widgets,
  interactions  effects) over Wicket 6.0.0.
  Some other extensions are also available (Kendo UI widgets, Calendar).
 
  Links, infos  demos:
  http://www.7thweb.net/wicket-jquery-ui
 
  Best regards,
  Sebastien.
 



 --
 Thanks  regards
 James Selvakumar



JavaScriptReference

2012-09-21 Thread Georg Buschbeck

hi

while trying to integrate gmaps3 in our webapp i had issues with the 
wicketstuff-gmap3 stuff ( - we need a client-id for our request) ...


so i have:

public static final String GMAP_API_URL = 
%s://maps.google.com/maps/api/js?v=3sensor=%sclient-id=%s;


response.render(JavaScriptHeaderItem.forUrl(String.format(GMAP_API_URL, 
schema, sensor, clientid)));



the rendered result of this is:
script type=text/javascript 
src=http://maps.google.com/maps/api/js?v=3amp;sensor=falseamp;client-id=;/script



so the requestparameters are encoded

which is happening in the JavaScriptUtils Helper:
public static void writeJavaScriptUrl(final Response response, final 
CharSequence url, final String id, boolean defer, String charset)

{
response.write(script type=\text/javascript\ );
if (id != null)
{
response.write(id=\ + Strings.escapeMarkup(id) + \ 
);
}
if (defer)
{
response.write(defer=\defer\ );
}
if (charset != null)
{
response.write(charset=\ + Strings.escapeMarkup(charset) + 
\ );
}
response.write(src=\);
response.write(Strings.escapeMarkup(url));
response.write(\/script);
response.write(\n);
}

but ... is this right to escape the url?

when i open the above mentioned script, google tells me i have no 
parameter sensor ... which i can understand as ther is only a 
parameter amp ...



Any ideas?

Thanks,

Georg

--
Georg Buschbeck
Information Technology

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 502
F  + 49 761 3 85 59 550
E  g...@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

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



Re: JavaScriptReference

2012-09-21 Thread Martin Grigorov
Hi,

Looks like a bug.

On Fri, Sep 21, 2012 at 12:28 PM, Georg Buschbeck g...@thomas-daily.de wrote:
 hi

 while trying to integrate gmaps3 in our webapp i had issues with the
 wicketstuff-gmap3 stuff ( - we need a client-id for our request) ...

 so i have:

 public static final String GMAP_API_URL =
 %s://maps.google.com/maps/api/js?v=3sensor=%sclient-id=%s;

 response.render(JavaScriptHeaderItem.forUrl(String.format(GMAP_API_URL,
 schema, sensor, clientid)));


 the rendered result of this is:
 script type=text/javascript
 src=http://maps.google.com/maps/api/js?v=3amp;sensor=falseamp;client-id=;/script


 so the requestparameters are encoded

 which is happening in the JavaScriptUtils Helper:
 public static void writeJavaScriptUrl(final Response response, final
 CharSequence url, final String id, boolean defer, String charset)
 {
 response.write(script type=\text/javascript\ );
 if (id != null)
 {
 response.write(id=\ + Strings.escapeMarkup(id) +
 \ );
 }
 if (defer)
 {
 response.write(defer=\defer\ );
 }
 if (charset != null)
 {
 response.write(charset=\ +
 Strings.escapeMarkup(charset) + \ );
 }
 response.write(src=\);
 response.write(Strings.escapeMarkup(url));
 response.write(\/script);
 response.write(\n);
 }

 but ... is this right to escape the url?

 when i open the above mentioned script, google tells me i have no parameter
 sensor ... which i can understand as ther is only a parameter amp ...


 Any ideas?

 Thanks,

 Georg

 --
 Georg Buschbeck
 Information Technology

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 502
 F  + 49 761 3 85 59 550
 E  g...@thomas-daily.de
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: How to create a dashboard with draggable widgets?

2012-09-21 Thread Decebal Suiu
Hi

I will release today or Monday a wicket-dashboard project on github. This
project it's an open source project (Apache license) based on the dashboard
implementations from nextserver (for a live demo see
http://http://demo.next-reports.com/ user:demo, password:demo). 
I used jquery sortable from wiquery (in another project I uesd jqwicket) for
dragdrop. When user stop on dragdrop a widget, a js function calls a
wicket behavior with a json (as parameter) that contains the position
(column and row) for each widget.
I have a implementation for widgets like charts (openflashchart), text,
pivot (see https://github.com/decebals/wicket-pivot)

Best regards,
Decebal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-create-a-dashboard-with-draggable-widgets-tp4652210p4652218.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: JavaScriptReference

2012-09-21 Thread Georg Buschbeck

okay, i filed a bug report ...



On 09/21/2012 11:59 AM, Martin Grigorov wrote:

Hi,

Looks like a bug.

On Fri, Sep 21, 2012 at 12:28 PM, Georg Buschbeck g...@thomas-daily.de wrote:

hi

while trying to integrate gmaps3 in our webapp i had issues with the
wicketstuff-gmap3 stuff ( - we need a client-id for our request) ...

so i have:

public static final String GMAP_API_URL =
%s://maps.google.com/maps/api/js?v=3sensor=%sclient-id=%s;

response.render(JavaScriptHeaderItem.forUrl(String.format(GMAP_API_URL,
schema, sensor, clientid)));


the rendered result of this is:
script type=text/javascript
src=http://maps.google.com/maps/api/js?v=3amp;sensor=falseamp;client-id=;/script


so the requestparameters are encoded

which is happening in the JavaScriptUtils Helper:
public static void writeJavaScriptUrl(final Response response, final
CharSequence url, final String id, boolean defer, String charset)
{
 response.write(script type=\text/javascript\ );
 if (id != null)
 {
 response.write(id=\ + Strings.escapeMarkup(id) +
\ );
 }
 if (defer)
 {
 response.write(defer=\defer\ );
 }
 if (charset != null)
 {
 response.write(charset=\ +
Strings.escapeMarkup(charset) + \ );
 }
 response.write(src=\);
 response.write(Strings.escapeMarkup(url));
 response.write(\/script);
 response.write(\n);
}

but ... is this right to escape the url?

when i open the above mentioned script, google tells me i have no parameter
sensor ... which i can understand as ther is only a parameter amp ...


Any ideas?

Thanks,

Georg

--
Georg Buschbeck
Information Technology

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 502
F  + 49 761 3 85 59 550
E  g...@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

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








--
Georg Buschbeck
Information Technology

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 502
F  + 49 761 3 85 59 550
E  g...@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

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



Re: No target servlet configured for uri: /

2012-09-21 Thread hannes1608
Works with Glassfish 3 and JBoss 7. That shows that my code is ok, but I
still have to figure out how to get it to work with WebSphere 8.

Hannes



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/No-target-servlet-configured-for-uri-tp4652160p4652219.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: JavaScriptReference

2012-09-21 Thread Martin Grigorov
Thank you!

On Fri, Sep 21, 2012 at 2:00 PM, Georg Buschbeck g...@thomas-daily.de wrote:
 okay, i filed a bug report ...




 On 09/21/2012 11:59 AM, Martin Grigorov wrote:

 Hi,

 Looks like a bug.

 On Fri, Sep 21, 2012 at 12:28 PM, Georg Buschbeck g...@thomas-daily.de
 wrote:

 hi

 while trying to integrate gmaps3 in our webapp i had issues with the
 wicketstuff-gmap3 stuff ( - we need a client-id for our request) ...

 so i have:

 public static final String GMAP_API_URL =
 %s://maps.google.com/maps/api/js?v=3sensor=%sclient-id=%s;

 response.render(JavaScriptHeaderItem.forUrl(String.format(GMAP_API_URL,
 schema, sensor, clientid)));


 the rendered result of this is:
 script type=text/javascript

 src=http://maps.google.com/maps/api/js?v=3amp;sensor=falseamp;client-id=;/script


 so the requestparameters are encoded

 which is happening in the JavaScriptUtils Helper:
 public static void writeJavaScriptUrl(final Response response, final
 CharSequence url, final String id, boolean defer, String charset)
 {
  response.write(script type=\text/javascript\ );
  if (id != null)
  {
  response.write(id=\ +
 Strings.escapeMarkup(id) +
 \ );
  }
  if (defer)
  {
  response.write(defer=\defer\ );
  }
  if (charset != null)
  {
  response.write(charset=\ +
 Strings.escapeMarkup(charset) + \ );
  }
  response.write(src=\);
  response.write(Strings.escapeMarkup(url));
  response.write(\/script);
  response.write(\n);
 }

 but ... is this right to escape the url?

 when i open the above mentioned script, google tells me i have no
 parameter
 sensor ... which i can understand as ther is only a parameter amp ...


 Any ideas?

 Thanks,

 Georg

 --
 Georg Buschbeck
 Information Technology

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 502
 F  + 49 761 3 85 59 550
 E  g...@thomas-daily.de
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

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






 --
 Georg Buschbeck
 Information Technology

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 502
 F  + 49 761 3 85 59 550
 E  g...@thomas-daily.de
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Datepicker with range selection support

2012-09-21 Thread Sébastien Gautrin

Hi,

I was wondering if there was any wicket component out there for a 
Datepicker supporting selecting a range of dates. I've looked a bit and 
couldn't find any (the wicket-extensions' Datepicker doesn't, the 
wiquery datepicker doesn't, nor does the wicket-jquery datepicker).


I didn't find actually many actual js lib that would support that 
(mainly http://foxrunsoftware.github.com/DatePicker/), so I guess it's 
not very likely there's already a wicket integration of such a lib.


Thanks,

Sébastien

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



Re: No target servlet configured for uri: /

2012-09-21 Thread Martin Grigorov
I'm glad you found a solution!

I'm still not sure why people pay a lot to suffer a lot. These
problems with WebSphere are since its early versions.
Since you have to use WebSphere I guess you have contract with IBM.
I'm interested did you ask their support about this problem and did
they help anyhow ?

On Fri, Sep 21, 2012 at 2:50 PM, hannes1608 hannes1...@yahoo.de wrote:
 Works :) Thanks to this post:
 http://www.mail-archive.com/users@wicket.apache.org/msg72334.html
 http://www.mail-archive.com/users@wicket.apache.org/msg72334.html



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/No-target-servlet-configured-for-uri-tp4652160p4652223.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: [Wicketstuff] Google Maps 3 component

2012-09-21 Thread Sylvain Vieujot
Hello Joachim,

I am trying to replace Gmap2 with Gmap3 in our webapp, I could not find
a method similar to GMap2's method GInfoWindow.open(GMarker,
Component).\
In GMap3 it seems a GInfoWindow can only have it's content set to a
String.
Is there any plan to implement this, or is there another way of using a
GInfoWindow with a wicket component as content ?

Thank you,

Sylvain.

P.S. I also found that the GMap3's fitMarkers works only for works in
AjaxRequests ( See issue https://github.com/wicketstuff/core/issues/155
)

On Thu, 2012-08-09 at 21:45 +0200, Joachim Rohde wrote:

 Hello,
 
 maybe someone might be interested that I have uploaded a component for 
 Google Maps 3 today which can be found at GitHub under 
 https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/gmap3-parent/gmap3
  
 (I'm not sure when the snapshots are build so it might be necessary to 
 build the project from source still)
 
 A (still) very brief overview can be found in the Wiki: 
 https://github.com/wicketstuff/core/wiki/Gmap3
 
 And the examples are under 
 https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/gmap3-parent/gmap3-examples
 
 So, if anyone is in the need of such a component or just want to play a 
 bit with it, I would appreciate to hear any feedback.
 
 Joachim Rohde
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


Re: No target servlet configured for uri: /

2012-09-21 Thread hannes1608
No, I didn't ask, we are just evaluating a couple of web frameworks, and we
are doing this for another company, we don't use websphere in our company. 
But you are right, next time we should ask ;)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/No-target-servlet-configured-for-uri-tp4652160p4652225.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Datepicker with range selection support

2012-09-21 Thread Sebastien
Hi Sebastien,

I am wondering how you imagine your range datepicker... Do you figure a
component embedding 2 datepickers like in the jQuery UI demo site, where
the user selects alternativey the start date and the end date:
http://jqueryui.com/demos/datepicker/#date-range

Or a component displaying a single datepicker and the range selection is
made inside the widget, like in the link you provided ?

For the first case, it can be achieved quite easily (I can provide it as a
component for wicket-jquery-ui). The second case cannot be handled as
jQuery UI does not provide such functionality (AFAIK)

Best regards,
Sebastien.

On Fri, Sep 21, 2012 at 1:14 PM, Sébastien Gautrin 
sebastien.gaut...@gmail.com wrote:

 Hi,

 I was wondering if there was any wicket component out there for a
 Datepicker supporting selecting a range of dates. I've looked a bit and
 couldn't find any (the wicket-extensions' Datepicker doesn't, the wiquery
 datepicker doesn't, nor does the wicket-jquery datepicker).

 I didn't find actually many actual js lib that would support that (mainly
 http://foxrunsoftware.github.**com/DatePicker/http://foxrunsoftware.github.com/DatePicker/),
 so I guess it's not very likely there's already a wicket integration of
 such a lib.

 Thanks,

 Sébastien

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




Re: String Value Conversion Exception

2012-09-21 Thread Stephen Walsh
I attempted your solution Sebastien and did parameters.set(id, 43);  This
was one of the id's that was showing up in the link when I looked at the
status bar.  I still got the same error (string value exception) and it
also said something about a null pointer.  I'm at work and don't have the
stack trace, but I thought it might be helpful to provide more info.

Any other thoughts on this?  Thanks again.


_
Stephen Walsh



On Thu, Sep 20, 2012 at 4:46 PM, Stephen Walsh 
step...@connectwithawalsh.com wrote:

 Are they not being set when the BlogDetails.link gives the blogPost
 object and it set page parameters there?



 __
 Stephen Walsh

 On Sep 20, 2012, at 14:23, Francois Meillet francois.meil...@gmail.com
 wrote:

  I don't see where you set the parameters...
  parameters.set(id, x);
 
  It has to be done somewhere.
  If parameters.get(id) return null, as null can't be converted to long,
 you get the exception.
 
  François
 
 
  Le 20 sept. 2012 à 21:16, Stephen Walsh step...@connectwithawalsh.com
 a écrit :
 
  Thanks for responding.  That would make sense.  Is there any way to
  identify when or when it couldn't be converted?
 
  Does the array that I provided cause this issue?  In my Post class I
  followed the example code and have the class assigning ids as long.
 
  ___
  Stephen Walsh | http://connectwithawalsh.com
 
 
 
  On Thu, Sep 20, 2012 at 12:55 PM, Francois Meillet 
  francois.meil...@gmail.com wrote:
 
  parameters.get(id).toLong() throws this exception when id can't be
  converted to long.
 
  François
 
 
  Le 20 sept. 2012 à 19:06, Stephen Walsh step...@connectwithawalsh.com
 a
  écrit :
 
  I am new to Wicket and Java, so forgive any ignorance or lack of
  information.
 
  I am modeling a blog type application after the Wicket Examples
 Library
  application and have not had any luck passing the post id to the
 details
  page.  I'm not using the user portion at this point because I'll be
 doing a
  role based authorization later.
 
  The blog page populates the array that it is given and provides a link
  to the detail page, but this is when the exception is thrown.  Any
 thoughts?
 
  Thanks!
 
  public abstract class BasePage extends WebPage {
  /**
   *
   */
  private static final long serialVersionUID = 1L;
 
 
  private String pageTitle = (no title);
 
  /**
   *
   * @return pageTitle
   */
  public final String getPageTitle() {
 
  return pageTitle;
  }
 
  /**
   *
   * @param title
   */
  public final void setPageTitle(String title) {
 
  pageTitle = title;
  }
 
  public BasePage() {
 
  this(new PageParameters());
  }
 
  /**
   *
   * @param parameters
   */
  public BasePage(final PageParameters parameters) {
 
  super(parameters);
 
  add(new Label(title, new PropertyModelString(this,
  pageTitle)));
  add(new BookmarkablePageLink(logo, Index.class));
  add(new BookmarkablePageLink(home, Index.class));
  add(new BookmarkablePageLink(news, Blog.class));
  add(new BookmarkablePageLink(contact, ContactUs.class));
  add(new BookmarkablePageLink(about, About.class));
  add(new FooterPanel(social));
  }
 
  /**
   * Construct
   *
   * @param model
   */
  public BasePage(IModel? model) {
 
  super(model);
  }
 
  public class Blog extends BasePage {
 
  /**
   * Constructor
   *
   * @param params
   */
  public Blog(final PageParameters paramaters) {
 
  setPageTitle(News);
 
  //Add a list of blogPosts
  final PageableListViewPost listView;
  add(listView = new PageableListViewPost(blogPosts, new
  PropertyModelListPost(this, blogPosts), 5) {
 
  @Override
  public void populateItem(final ListItemPost
  listItem) {
  final Post blogPost =
  listItem.getModelObject();
  listItem.add(BlogDetails.link(details,
  blogPost, getLocalizer().getString(noPostTitle, this)));
  listItem.add(new Label(text, new
  ModelPost(blogPost)));
  listItem.add(new Label(tags, new
  ModelPost(blogPost)));
  listItem.add(removeLink(remove,
  listItem));
  listItem.add(EditBlogPost.link(edit,
  blogPost.getId()));
  }
  });
  add(new PagingNavigator(navigator, listView));
  }
 
  public ListPost getBlogPosts() {
  final ListPost blogPosts = new ArrayListPost();
 
  blogPosts.add(new Post(Post1, text1, tag1, tag2,
  tag3));
  blogPosts.add(new Post(Post2, text2, tag1, tag2,
  tag3));

Re: Datepicker with range selection support

2012-09-21 Thread Sébastien Gautrin

Hi,

I was envisaging it working like the js lib I linked. Creating a 
component that would embed to Datepickers linked together (adding in 
that component the logical restrictions such that enforcing start date 
to be prior end date) would be indeed relatively easy, and we actually 
have something similar in our application right now. Though, our ui 
designers provided us with a draft with a behavior as in the link 
(that's how I discovered that library), and the idea would be to add to 
our application something with a similar behaviour (replacing our old 
dual input components).


If there had been such an integration out there, that would have been 
great. Otherwise I'll have to plan some time to figure a way to hack 
that lib into our application, and try to negociate time to build an 
actual and proper integration of that library (because on the short 
term, a proper integration would take too long, so that will 
unfortunately be the dirty and not really reusable way first).


Regards,

Sébastien

Sebastien wrote:

Hi Sebastien,

I am wondering how you imagine your range datepicker... Do you figure a
component embedding 2 datepickers like in the jQuery UI demo site, where
the user selects alternativey the start date and the end date:
http://jqueryui.com/demos/datepicker/#date-range

Or a component displaying a single datepicker and the range selection is
made inside the widget, like in the link you provided ?

For the first case, it can be achieved quite easily (I can provide it as a
component for wicket-jquery-ui). The second case cannot be handled as
jQuery UI does not provide such functionality (AFAIK)

Best regards,
Sebastien.

On Fri, Sep 21, 2012 at 1:14 PM, Sébastien Gautrin 
sebastien.gaut...@gmail.com wrote:


Hi,

I was wondering if there was any wicket component out there for a
Datepicker supporting selecting a range of dates. I've looked a bit and
couldn't find any (the wicket-extensions' Datepicker doesn't, the wiquery
datepicker doesn't, nor does the wicket-jquery datepicker).

I didn't find actually many actual js lib that would support that (mainly
http://foxrunsoftware.github.**com/DatePicker/http://foxrunsoftware.github.com/DatePicker/),
so I guess it's not very likely there's already a wicket integration of
such a lib.

Thanks,

Sébastien

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





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



Re: how to use the palette component for multiple updates ?

2012-09-21 Thread Sven Meier
Sure, just one additional DropDownChoice for each ListView. The 
ListView's model takes into consideration what's in the DropDownChoice's 
model.


Sven

On 09/21/2012 03:24 PM, grazia wrote:

This is very helpful ! Thank you very much.
I am still learning on Wicket, I had not used ListChoice.

You were asking about the dropdowns.
The dropdown contains soem search criteria (and I am not sure this is the
best UI, but my user is accustomed to this functionality). For instance, the
drop down would allow them to choose available instructors by lastname or by
country of origin or whatever, just to give an idea.
In my case, the ListChoices would be populated based upon the selections in
teh drop downs. It should be possible.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-use-the-palette-component-for-multiple-updates-tp4652201p4652228.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: Datepicker with range selection support

2012-09-21 Thread Sebastien
Hi again,

Well... I was looking for a jQuery plugin for the 3rd part of my HowTo's,
about creating a plugin using wicket-jquery-ui.
Maybe will I play with that one in the coming days... (just note that it
will be over Wicket 6)

Regards,
Sebastien.


On Fri, Sep 21, 2012 at 3:53 PM, Sébastien Gautrin 
sebastien.gaut...@gmail.com wrote:

 Hi,

 I was envisaging it working like the js lib I linked. Creating a component
 that would embed to Datepickers linked together (adding in that component
 the logical restrictions such that enforcing start date to be prior end
 date) would be indeed relatively easy, and we actually have something
 similar in our application right now. Though, our ui designers provided us
 with a draft with a behavior as in the link (that's how I discovered that
 library), and the idea would be to add to our application something with a
 similar behaviour (replacing our old dual input components).

 If there had been such an integration out there, that would have been
 great. Otherwise I'll have to plan some time to figure a way to hack that
 lib into our application, and try to negociate time to build an actual and
 proper integration of that library (because on the short term, a proper
 integration would take too long, so that will unfortunately be the dirty
 and not really reusable way first).

 Regards,

 Sébastien

 Sebastien wrote:

 Hi Sebastien,

 I am wondering how you imagine your range datepicker... Do you figure a
 component embedding 2 datepickers like in the jQuery UI demo site, where
 the user selects alternativey the start date and the end date:
 http://jqueryui.com/demos/**datepicker/#date-rangehttp://jqueryui.com/demos/datepicker/#date-range

 Or a component displaying a single datepicker and the range selection is
 made inside the widget, like in the link you provided ?

 For the first case, it can be achieved quite easily (I can provide it as a
 component for wicket-jquery-ui). The second case cannot be handled as
 jQuery UI does not provide such functionality (AFAIK)

 Best regards,
 Sebastien.

 On Fri, Sep 21, 2012 at 1:14 PM, Sébastien Gautrin 
 sebastien.gaut...@gmail.com wrote:

  Hi,

 I was wondering if there was any wicket component out there for a
 Datepicker supporting selecting a range of dates. I've looked a bit and
 couldn't find any (the wicket-extensions' Datepicker doesn't, the wiquery
 datepicker doesn't, nor does the wicket-jquery datepicker).

 I didn't find actually many actual js lib that would support that (mainly
 http://foxrunsoftware.github.com/DatePicker/http://**
 foxrunsoftware.github.com/**DatePicker/http://foxrunsoftware.github.com/DatePicker/
 ),

 so I guess it's not very likely there's already a wicket integration of
 such a lib.

 Thanks,

 Sébastien

 --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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




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




Re: Datepicker with range selection support

2012-09-21 Thread Sébastien Gautrin

Well,

If you make a tutorial about creating a plugin using wicket-jquery-ui, 
even though it'll be for wicket 6, it should be relatively simply 
adaptable to do the same for wicket 1.5 (unless there's a huge lot of 
changes between the two for wicket-jquery-ui which is quite possible 
considering wicket 6 comes with jquery support unlike 1.5).


I'll take a look at your current how tos for wicket-jquery-ui (we don't 
use wicket-jquery-ui for the moment - we have a few components using 
wiquery and a couple very old components using jquery-ui in a crappy 
way), but that's always interesting to see what's out there and how it 
works.


I'll take a closer look on wicket-select2 as well, as I suppose it could 
be a good inspiration to integrate the fox run software datepicker 
library (which is not using jquery-ui).


Regards,

Sébastien

Sebastien wrote:

Hi again,

Well... I was looking for a jQuery plugin for the 3rd part of my HowTo's,
about creating a plugin using wicket-jquery-ui.
Maybe will I play with that one in the coming days... (just note that it
will be over Wicket 6)

Regards,
Sebastien.


On Fri, Sep 21, 2012 at 3:53 PM, Sébastien Gautrin 
sebastien.gaut...@gmail.com wrote:


Hi,

I was envisaging it working like the js lib I linked. Creating a component
that would embed to Datepickers linked together (adding in that component
the logical restrictions such that enforcing start date to be prior end
date) would be indeed relatively easy, and we actually have something
similar in our application right now. Though, our ui designers provided us
with a draft with a behavior as in the link (that's how I discovered that
library), and the idea would be to add to our application something with a
similar behaviour (replacing our old dual input components).

If there had been such an integration out there, that would have been
great. Otherwise I'll have to plan some time to figure a way to hack that
lib into our application, and try to negociate time to build an actual and
proper integration of that library (because on the short term, a proper
integration would take too long, so that will unfortunately be the dirty
and not really reusable way first).

Regards,

Sébastien

Sebastien wrote:


Hi Sebastien,

I am wondering how you imagine your range datepicker... Do you figure a
component embedding 2 datepickers like in the jQuery UI demo site, where
the user selects alternativey the start date and the end date:
http://jqueryui.com/demos/**datepicker/#date-rangehttp://jqueryui.com/demos/datepicker/#date-range

Or a component displaying a single datepicker and the range selection is
made inside the widget, like in the link you provided ?

For the first case, it can be achieved quite easily (I can provide it as a
component for wicket-jquery-ui). The second case cannot be handled as
jQuery UI does not provide such functionality (AFAIK)

Best regards,
Sebastien.

On Fri, Sep 21, 2012 at 1:14 PM, Sébastien Gautrin 
sebastien.gaut...@gmail.com wrote:

  Hi,

I was wondering if there was any wicket component out there for a
Datepicker supporting selecting a range of dates. I've looked a bit and
couldn't find any (the wicket-extensions' Datepicker doesn't, the wiquery
datepicker doesn't, nor does the wicket-jquery datepicker).

I didn't find actually many actual js lib that would support that (mainly
http://foxrunsoftware.github.com/DatePicker/http://**
foxrunsoftware.github.com/**DatePicker/http://foxrunsoftware.github.com/DatePicker/

),

so I guess it's not very likely there's already a wicket integration of
such a lib.

Thanks,

Sébastien

--**
--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apa**che.orghttp://apache.org
users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




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





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



Wicket 6.0.0 Issue: RadioChoice with AjaxFormChoiceComponentUpdatingBehavior

2012-09-21 Thread Aaron J . Garcia
Hello,

I just wanted to report an issue I encountered with Wicket 6.0.0 (there already
is a JIRA issue about it).

https://issues.apache.org/jira/browse/WICKET-4769

When you attach an AjaxFormChoiceComponentUpdatingBehavior to a RadioChoice
inside of a form, clicking on the label of an item doesn't select it's
corresponding radio button.  This was working fine in Wicket 1.5.8, and is
annoying in the sense that you need to click on the radio button (and not the
label), to get the corresponding Ajax behavior to occur.

Does anyone know if this can or will be fixed for the next maintenance release?

Thanks a lot for your help!

-- Aaron


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



Using a div/span tags for wicket components

2012-09-21 Thread Corbin, James
I'm sure this subject has been discussed before many times, but would like to 
revisit it to get some thoughts from the community.

Consider a Wicket TextField.  The typical markup is something like,

input type=text wicket:id=someId …/

I would like to, instead, specify a span or a div in the markup and bind the 
TextField to that markup instead.

I know I can achieve this by creating a new class that extends Panel (call it 
TextFieldPanel) with markup similar to the following,

…
wicket:panel
input type=text wicket:id=someId/
/wicket:panel

Now I can use a div or span tag as in,

div wicket:id=editor/

The problem with this approach is now if I want to affect some portion of the 
TextField, like adding a behavior to it, I'm almost forced to expose internal 
details about the Panel impl that I shouldn't.

For example, myTextFieldPanel.addBehaviorToChildComponent(IBehavior… behavior) 
which then adds the behavior to the TextField within the derived Panel.

It would be nice to be able to do something like,

public  class MyTextFieldT extends TextFieldT {…}

That allows you to use a span or a div for the markup but generates valid 
HTML.  With this approach you would be less inclined to expose the internals of 
the implementation because you are operating on an actual TextField instance.

I am using a fairly old version of Wicket, 1.4.13 but in the process of 
upgrading to 6.0.  So I would like some thoughts on if this is feasible for 
1.4.x and if its even practical.  I realize I have control over the 
construction of the markup for a component but I'm concerned as well about 
making sure the generated markup is valid HTML.

Thanks,
J.D.


Wicket Behavior triggered by Ajax

2012-09-21 Thread raphw
I have a general problem with my application:

I have attache an Ajax OnChangeBehavior to a text field which updates
another component whenever a user edits its value. Now I have another
component which again updates the text fields value by a prepared collection
of values by another Ajax event. My problem is: I would like to chain these
Ajax events. That means that I want the text component's Ajax event to be
trigger no matter whether the user change the input directly or indirectly
via making a selection in the other Ajaxified component.

How can this be done? Thank you. Best, Rafael



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Behavior-triggered-by-Ajax-tp4652238.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Highlight selected row in AjaxFallbackDefaultDataTable

2012-09-21 Thread tome
I am using AjaxFallbackDefaultDataTable to display data.In 1 of the
Abstractcolumn, calling the fragment which has AjaxLink.On click of that
link would like to highlight the complete row where this link  is present. I
looked at the OIR sample but could make it out.Please help me.


Thanks,




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Highlight-selected-row-in-AjaxFallbackDefaultDataTable-tp4652236.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Using a div/span tags for wicket components

2012-09-21 Thread Carl-Eric Menzel
On Fri, 21 Sep 2012 14:48:05 +
Corbin, James jcor...@iqnavigator.com wrote:
 input type=text wicket:id=someId …/
 
 I would like to, instead, specify a span or a div in the markup and
 bind the TextField to that markup instead.

Why? A TextField needs to bind to an input tag, because that is what
the browser will render as a text field.

Of course, you could probably override TextField's onComponentTag to
not do the tag type check, if you wanted. Not sure whether that is
final (can't check right now). 

But to be honest, at least right now I'm not seeing what would be
gained.

Carl-Eric

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



Re: Using a div/span tags for wicket components

2012-09-21 Thread Corbin, James
Well, what would be gained is the flexibility to bind any kind of a form
component to a div or a span.

So if your markup is, for example,

input type=text ../

You do not have a bunch of options as to the type of Wicket Component you
can bind to this HTML markup.

But if you have, 

div wicket:id=component/

You get a bit more flexibility, in what type of component you can render,
TextField, Label, DropDownChoice, Panel etc.

Right now, we have the need to bind components (including form based
components like TextField) to span's and div's and the way we achieved
this was to create new classes that extend Panel and next the actual
component.  It forces us to create public apis like I described in my
original post that break encapsulation.

J.D.



On 9/21/12 10:42 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote:

On Fri, 21 Sep 2012 14:48:05 +
Corbin, James jcor...@iqnavigator.com wrote:
 input type=text wicket:id=someId Š/
 
 I would like to, instead, specify a span or a div in the markup and
 bind the TextField to that markup instead.

Why? A TextField needs to bind to an input tag, because that is what
the browser will render as a text field.

Of course, you could probably override TextField's onComponentTag to
not do the tag type check, if you wanted. Not sure whether that is
final (can't check right now).

But to be honest, at least right now I'm not seeing what would be
gained.

Carl-Eric

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





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



Re: Highlight selected row in AjaxFallbackDefaultDataTable

2012-09-21 Thread Jeremy Thomerson
On Fri, Sep 21, 2012 at 9:51 AM, tome badshahbe...@yahoo.com wrote:

 I am using AjaxFallbackDefaultDataTable to display data.In 1 of the
 Abstractcolumn, calling the fragment which has AjaxLink.On click of that
 link would like to highlight the complete row where this link  is present.
 I
 looked at the OIR sample but could make it out.Please help me.


I'd suggest just using JS for this and doing the highlight on the
client-side.  Use something like jQuery to add a highlighted CSS class to
the parent TR of the link and then add the appropriate CSS.  There's no
reason to go back to the server just to highlight a row.


-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


Re: Wicket as rest backend....

2012-09-21 Thread Bruno Borges
Jersey is really good, but you also should consider using the spec JAX-RS.
Why not?


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.comwrote:

 I've used wicket-rest before - it got the job done, but I couldn't use it
 for wicket 1.5.

 Since then I've moved my rest services to Jersey - I highly recommend using
 that if you can:

 http://jersey.java.net/

 -Dan

 On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com wrote:

  Good idea...
 
  I would like to use JSON though...
 
  Josh.
 
  On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
   I have implemented rest like services by mounting pages and using
 them
  to
   generate XML content instead of HTML.
  
   On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau joshnet2...@gmail.com
  wrote:
  
Hi Guys;
   
Is there a way(a sub project may be..) of exposing a wicket web app
 as
  a
REST API ?
   
   
Josh.
   
  
  
  
   --
   Regards - Ernesto Reinaldo Barreiro
   Antilia Soft
   http://antiliasoft.com
  
 



Re: Highlight selected row in AjaxFallbackDefaultDataTable

2012-09-21 Thread tome
Hi Jeremy,

Thank your for suggestion but being a new in wicket can't understand the TR
meaning also it would be great healp if you give more details like sample
code or detail pointers. Don't know how to use jquery here.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Highlight-selected-row-in-AjaxFallbackDefaultDataTable-tp4652236p4652243.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Highlight selected row in AjaxFallbackDefaultDataTable

2012-09-21 Thread Jeremy Thomerson
On Fri, Sep 21, 2012 at 1:26 PM, tome badshahbe...@yahoo.com wrote:

 Hi Jeremy,

 Thank your for suggestion but being a new in wicket can't understand the TR
 meaning also it would be great healp if you give more details like sample
 code or detail pointers. Don't know how to use jquery here.


TR = table row.  It's just plain HTML.  Sorry I don't have more time right
now for a more detailed response, but Google should be able to help you
out.  If you're using Wicket 6.0 jQuery is already packaged into it.

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


How to turn off redirect for stateful Wicket page on Wicket 1.5?

2012-09-21 Thread Artem
I'm a beginner in Wicket and we have a Wicket application which is not yet
migrated to Wicket 6 for various reasons (wicketstuff is not out, no 6.0.1
version, it will require a significant refactoring on our side).

How to turn off redirect for stateful Wicket page on Wicket 1.5?
We have a page that is a stateful page in Wicket turms, but it actually does
not have any form or stateful information. How do I tell Wicket that it is
actually stateless and turn off redirect that Wicket does for it (adding a
version number to URL)?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-turn-off-redirect-for-stateful-Wicket-page-on-Wicket-1-5-tp4652245.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket as rest backend....

2012-09-21 Thread Martin Grigorov
On Fri, Sep 21, 2012 at 8:58 PM, Bruno Borges bruno.bor...@gmail.com wrote:
 Jersey is really good, but you also should consider using the spec JAX-RS.
 Why not?

Because specs are boring and the compatibility between different impls
is not as they claim it to be.



 *Bruno Borges*
 (11) 99564-9058
 *www.brunoborges.com*



 On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.comwrote:

 I've used wicket-rest before - it got the job done, but I couldn't use it
 for wicket 1.5.

 Since then I've moved my rest services to Jersey - I highly recommend using
 that if you can:

 http://jersey.java.net/

 -Dan

 On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com wrote:

  Good idea...
 
  I would like to use JSON though...
 
  Josh.
 
  On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
   I have implemented rest like services by mounting pages and using
 them
  to
   generate XML content instead of HTML.
  
   On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau joshnet2...@gmail.com
  wrote:
  
Hi Guys;
   
Is there a way(a sub project may be..) of exposing a wicket web app
 as
  a
REST API ?
   
   
Josh.
   
  
  
  
   --
   Regards - Ernesto Reinaldo Barreiro
   Antilia Soft
   http://antiliasoft.com
  
 




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: How to turn off redirect for stateful Wicket page on Wicket 1.5?

2012-09-21 Thread Martin Grigorov
Hi,

Use wicket-devutils' StatelessChecker. It will tell you which
component or behavior in your page makes the page stateful.
If the redirect is not done for really stateful page then the
subsequent interactions with it may lead to further problems.

WicketStuff is out. It has a known problem that it depends on Wicket
6.0-SNAPSHOT but this is easily fixable with Maven exclusion.

On Fri, Sep 21, 2012 at 9:55 PM, Artem artem.golu...@appdirect.com wrote:
 I'm a beginner in Wicket and we have a Wicket application which is not yet
 migrated to Wicket 6 for various reasons (wicketstuff is not out, no 6.0.1
 version, it will require a significant refactoring on our side).

 How to turn off redirect for stateful Wicket page on Wicket 1.5?
 We have a page that is a stateful page in Wicket turms, but it actually does
 not have any form or stateful information. How do I tell Wicket that it is
 actually stateless and turn off redirect that Wicket does for it (adding a
 version number to URL)?




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-turn-off-redirect-for-stateful-Wicket-page-on-Wicket-1-5-tp4652245.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Wicket as rest backend....

2012-09-21 Thread Bruno Borges
True, but we don't move between impls that often, do we? :-)


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Fri, Sep 21, 2012 at 4:11 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Fri, Sep 21, 2012 at 8:58 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Jersey is really good, but you also should consider using the spec
 JAX-RS.
  Why not?

 Because specs are boring and the compatibility between different impls
 is not as they claim it to be.

 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.com
 wrote:
 
  I've used wicket-rest before - it got the job done, but I couldn't use
 it
  for wicket 1.5.
 
  Since then I've moved my rest services to Jersey - I highly recommend
 using
  that if you can:
 
  http://jersey.java.net/
 
  -Dan
 
  On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com
 wrote:
 
   Good idea...
  
   I would like to use JSON though...
  
   Josh.
  
   On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
   reier...@gmail.com wrote:
  
I have implemented rest like services by mounting pages and using
  them
   to
generate XML content instead of HTML.
   
On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau joshnet2...@gmail.com
   wrote:
   
 Hi Guys;

 Is there a way(a sub project may be..) of exposing a wicket web
 app
  as
   a
 REST API ?


 Josh.

   
   
   
--
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com
   
  
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Wicket as rest backend....

2012-09-21 Thread Martin Grigorov
On Fri, Sep 21, 2012 at 11:42 PM, Bruno Borges bruno.bor...@gmail.com wrote:
 True, but we don't move between impls that often, do we? :-)

Exactly!
But then why to follow restrictions and not use the full power of the
specific implementation ?



 *Bruno Borges*
 (11) 99564-9058
 *www.brunoborges.com*



 On Fri, Sep 21, 2012 at 4:11 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Fri, Sep 21, 2012 at 8:58 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  Jersey is really good, but you also should consider using the spec
 JAX-RS.
  Why not?

 Because specs are boring and the compatibility between different impls
 is not as they claim it to be.

 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.com
 wrote:
 
  I've used wicket-rest before - it got the job done, but I couldn't use
 it
  for wicket 1.5.
 
  Since then I've moved my rest services to Jersey - I highly recommend
 using
  that if you can:
 
  http://jersey.java.net/
 
  -Dan
 
  On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com
 wrote:
 
   Good idea...
  
   I would like to use JSON though...
  
   Josh.
  
   On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
   reier...@gmail.com wrote:
  
I have implemented rest like services by mounting pages and using
  them
   to
generate XML content instead of HTML.
   
On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau joshnet2...@gmail.com
   wrote:
   
 Hi Guys;

 Is there a way(a sub project may be..) of exposing a wicket web
 app
  as
   a
 REST API ?


 Josh.

   
   
   
--
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com
   
  
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Wicket Behavior triggered by Ajax

2012-09-21 Thread Martin Grigorov
Hi,

After updating the content of the text field you can call
jQuery(#textFieldId).triggerHandler(change).

P.S.  Great choice of an email provider! ;-)

On Fri, Sep 21, 2012 at 6:13 PM, raphw rafael@web.de wrote:
 I have a general problem with my application:

 I have attache an Ajax OnChangeBehavior to a text field which updates
 another component whenever a user edits its value. Now I have another
 component which again updates the text fields value by a prepared collection
 of values by another Ajax event. My problem is: I would like to chain these
 Ajax events. That means that I want the text component's Ajax event to be
 trigger no matter whether the user change the input directly or indirectly
 via making a selection in the other Ajaxified component.

 How can this be done? Thank you. Best, Rafael



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Behavior-triggered-by-Ajax-tp4652238.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Wicket as rest backend....

2012-09-21 Thread Bruno Borges
I'm just saying that he can opt to use jax-rs... not that he must because
X or Y...

I like jax-rs, it is a good spec, that's why I'm suggesting. :P

Do you think it is not a good spec?


*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Fri, Sep 21, 2012 at 5:44 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Fri, Sep 21, 2012 at 11:42 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  True, but we don't move between impls that often, do we? :-)

 Exactly!
 But then why to follow restrictions and not use the full power of the
 specific implementation ?

 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Fri, Sep 21, 2012 at 4:11 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  On Fri, Sep 21, 2012 at 8:58 PM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   Jersey is really good, but you also should consider using the spec
  JAX-RS.
   Why not?
 
  Because specs are boring and the compatibility between different impls
  is not as they claim it to be.
 
  
  
   *Bruno Borges*
   (11) 99564-9058
   *www.brunoborges.com*
  
  
  
   On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.com
  wrote:
  
   I've used wicket-rest before - it got the job done, but I couldn't
 use
  it
   for wicket 1.5.
  
   Since then I've moved my rest services to Jersey - I highly recommend
  using
   that if you can:
  
   http://jersey.java.net/
  
   -Dan
  
   On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com
  wrote:
  
Good idea...
   
I would like to use JSON though...
   
Josh.
   
On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:
   
 I have implemented rest like services by mounting pages and
 using
   them
to
 generate XML content instead of HTML.

 On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau 
 joshnet2...@gmail.com
wrote:

  Hi Guys;
 
  Is there a way(a sub project may be..) of exposing a wicket web
  app
   as
a
  REST API ?
 
 
  Josh.
 



 --
 Regards - Ernesto Reinaldo Barreiro
 Antilia Soft
 http://antiliasoft.com

   
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: Wicket as rest backend....

2012-09-21 Thread Martin Grigorov
I'm saying that JAX-RS is currently at version 1.
Version 2 is in development and will be available ... when it is ready.
By using internal APIs of Jersey/RestEasy/... you use something like
JAX-RS ver. 1.[1-9] *now*. And  ver. 1.[1-9] considered better than
version 1.

On Sat, Sep 22, 2012 at 12:06 AM, Bruno Borges bruno.bor...@gmail.com wrote:
 I'm just saying that he can opt to use jax-rs... not that he must because
 X or Y...

 I like jax-rs, it is a good spec, that's why I'm suggesting. :P

 Do you think it is not a good spec?


 *Bruno Borges*
 (11) 99564-9058
 *www.brunoborges.com*



 On Fri, Sep 21, 2012 at 5:44 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Fri, Sep 21, 2012 at 11:42 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  True, but we don't move between impls that often, do we? :-)

 Exactly!
 But then why to follow restrictions and not use the full power of the
 specific implementation ?

 
 
  *Bruno Borges*
  (11) 99564-9058
  *www.brunoborges.com*
 
 
 
  On Fri, Sep 21, 2012 at 4:11 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  On Fri, Sep 21, 2012 at 8:58 PM, Bruno Borges bruno.bor...@gmail.com
  wrote:
   Jersey is really good, but you also should consider using the spec
  JAX-RS.
   Why not?
 
  Because specs are boring and the compatibility between different impls
  is not as they claim it to be.
 
  
  
   *Bruno Borges*
   (11) 99564-9058
   *www.brunoborges.com*
  
  
  
   On Thu, Sep 20, 2012 at 5:00 PM, Dan Alvizu dalv...@pingidentity.com
  wrote:
  
   I've used wicket-rest before - it got the job done, but I couldn't
 use
  it
   for wicket 1.5.
  
   Since then I've moved my rest services to Jersey - I highly recommend
  using
   that if you can:
  
   http://jersey.java.net/
  
   -Dan
  
   On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com
  wrote:
  
Good idea...
   
I would like to use JSON though...
   
Josh.
   
On Thu, Sep 20, 2012 at 10:14 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:
   
 I have implemented rest like services by mounting pages and
 using
   them
to
 generate XML content instead of HTML.

 On Thu, Sep 20, 2012 at 7:54 PM, Josh Kamau 
 joshnet2...@gmail.com
wrote:

  Hi Guys;
 
  Is there a way(a sub project may be..) of exposing a wicket web
  app
   as
a
  REST API ?
 
 
  Josh.
 



 --
 Regards - Ernesto Reinaldo Barreiro
 Antilia Soft
 http://antiliasoft.com

   
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: String Value Conversion Exception

2012-09-21 Thread Stephen Walsh
Got this resolved.  I missed a line in my Post class

add(this);

which adds the Post in question to the HashMap.


On Sep 21, 2012, at 08:38, Stephen Walsh step...@connectwithawalsh.com wrote:

 I attempted your solution Sebastien and did parameters.set(id, 43);  This 
 was one of the id's that was showing up in the link when I looked at the 
 status bar.  I still got the same error (string value exception) and it also 
 said something about a null pointer.  I'm at work and don't have the stack 
 trace, but I thought it might be helpful to provide more info.
  
 Any other thoughts on this?  Thanks again.
  
  
 _
 Stephen Walsh
 
 
 
 On Thu, Sep 20, 2012 at 4:46 PM, Stephen Walsh 
 step...@connectwithawalsh.com wrote:
 Are they not being set when the BlogDetails.link gives the blogPost
 object and it set page parameters there?
 
 
 
 __
 Stephen Walsh
 
 On Sep 20, 2012, at 14:23, Francois Meillet francois.meil...@gmail.com 
 wrote:
 
  I don't see where you set the parameters...
  parameters.set(id, x);
 
  It has to be done somewhere.
  If parameters.get(id) return null, as null can't be converted to long, 
  you get the exception.
 
  François
 
 
  Le 20 sept. 2012 à 21:16, Stephen Walsh step...@connectwithawalsh.com a 
  écrit :
 
  Thanks for responding.  That would make sense.  Is there any way to
  identify when or when it couldn't be converted?
 
  Does the array that I provided cause this issue?  In my Post class I
  followed the example code and have the class assigning ids as long.
 
  ___
  Stephen Walsh | http://connectwithawalsh.com
 
 
 
  On Thu, Sep 20, 2012 at 12:55 PM, Francois Meillet 
  francois.meil...@gmail.com wrote:
 
  parameters.get(id).toLong() throws this exception when id can't be
  converted to long.
 
  François
 
 
  Le 20 sept. 2012 à 19:06, Stephen Walsh step...@connectwithawalsh.com a
  écrit :
 
  I am new to Wicket and Java, so forgive any ignorance or lack of
  information.
 
  I am modeling a blog type application after the Wicket Examples Library
  application and have not had any luck passing the post id to the details
  page.  I'm not using the user portion at this point because I'll be doing 
  a
  role based authorization later.
 
  The blog page populates the array that it is given and provides a link
  to the detail page, but this is when the exception is thrown.  Any 
  thoughts?
 
  Thanks!
 
  public abstract class BasePage extends WebPage {
  /**
   *
   */
  private static final long serialVersionUID = 1L;
 
 
  private String pageTitle = (no title);
 
  /**
   *
   * @return pageTitle
   */
  public final String getPageTitle() {
 
  return pageTitle;
  }
 
  /**
   *
   * @param title
   */
  public final void setPageTitle(String title) {
 
  pageTitle = title;
  }
 
  public BasePage() {
 
  this(new PageParameters());
  }
 
  /**
   *
   * @param parameters
   */
  public BasePage(final PageParameters parameters) {
 
  super(parameters);
 
  add(new Label(title, new PropertyModelString(this,
  pageTitle)));
  add(new BookmarkablePageLink(logo, Index.class));
  add(new BookmarkablePageLink(home, Index.class));
  add(new BookmarkablePageLink(news, Blog.class));
  add(new BookmarkablePageLink(contact, ContactUs.class));
  add(new BookmarkablePageLink(about, About.class));
  add(new FooterPanel(social));
  }
 
  /**
   * Construct
   *
   * @param model
   */
  public BasePage(IModel? model) {
 
  super(model);
  }
 
  public class Blog extends BasePage {
 
  /**
   * Constructor
   *
   * @param params
   */
  public Blog(final PageParameters paramaters) {
 
  setPageTitle(News);
 
  //Add a list of blogPosts
  final PageableListViewPost listView;
  add(listView = new PageableListViewPost(blogPosts, new
  PropertyModelListPost(this, blogPosts), 5) {
 
  @Override
  public void populateItem(final ListItemPost
  listItem) {
  final Post blogPost =
  listItem.getModelObject();
  listItem.add(BlogDetails.link(details,
  blogPost, getLocalizer().getString(noPostTitle, this)));
  listItem.add(new Label(text, new
  ModelPost(blogPost)));
  listItem.add(new Label(tags, new
  ModelPost(blogPost)));
  listItem.add(removeLink(remove,
  listItem));
  listItem.add(EditBlogPost.link(edit,
  blogPost.getId()));
  }
  });
  add(new PagingNavigator(navigator, listView));
  }
 
  public ListPost