Re: Scheduled Wicket courses (Europe) and jWeekend's Global Partner Program

2009-04-20 Thread Erik van Oosten

Hello,

The first public jWeekend course in Amsterdam has changed date. It is 
now June 8-9 (Mon-Tue).


More information: http://www.jteam.nl/specials.html
There is an early bird discount of 10% (before April 30).

Regards,
   Erik.


jWeekend wrote:
Our partners in Holland, JTeam [4][5], are planning to deliver our 
course in Amsterdam on Jun10-11(Thu-Fri), Sep28-29(Mon-Tue) and 
Nov30-Dec1(Mon-Tue), all TBC. JTeam will announce full details of the 
Wicket training in Holland but in the meantime, please feel free to 
contact us [0] for more information and reservations.


--
Erik van Oosten, Software architect, JTeam B.V.
http://day-to-day-stuff.blogspot.com/
http://www.jteam.nl


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



Global Sessions

2009-04-20 Thread Pi Trash
Hi,

is there a way to use global sessions, e.g. on application level?

tia
__
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de


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



Re: Custom URL Handling

2009-04-20 Thread Erik van Oosten

Hi Matthew,

Without some serious hacking in the Wicket internals this is not 
possible. (I did it, but the code is too specific to share.) Wicket 1.5 
will improve URL handling, then this case will hopefully be easily.


Regards,
   Erik.


Matthew Welch wrote:

I have been happily using HybridUrlCodingStrategy for the common pages of my
current app, however I am now beginning to implement a section which has
slightly different requirements for the URL and while I have some idea about
where I can start to implement this custom URL handling, I would like the
advice of those more experienced that I to make sure I'm not heading down a
rathole.

My application will serve many different organizations. All users will see
the same set of pages, but the organization that they are choosing to view
(users can view the data from any organization) will affect the data on
those pages. I would like the urls to be something like this:

http://myapp.com/organization1/calendar
http://myapp.com/organization1/events

http://myapp.com/organization2/calendar
http://myapp.com/organization2/events

I would need to know the organization part of the URL before retrieving the
data for the page, so in reality it's nothing more that page parameter. In
all other respects, I would like to keep the functionality provided by
HybridUrlCodingStrategy, so would my best bet be to extend that strategy? Is
there somewhere else I should be inserting custom code to intercept the URL
before it gets to the coding strategy instead?

Matt

  


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Haulting Execution of Page

2009-04-20 Thread Douglas Ferguson
If I detect a certain scenario I want to hault execution of the page, however 
if I return then wicket complains of components in the markup that aren't on 
the page.

Is there a way to abort rendering? i.e. I'm setting a redirect at the servlet 
response, so I don't want wicket to bother setting up the page for rendering.

Douglas


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



Re: [poll] Interest in regular Deventer Wicket meetup?

2009-04-20 Thread Linda van der Pal
Well I was discussing having a meeting in Amsterdam, though not quite 
yet on a regular basis. And I see no reason not to have them in both 
locations. I'd probably be able to attend in Deventer once, but 
certainly not on a regular basis.


Regards,
Linda

jeroen dijkmeijer wrote:

+1
First of all thanks for the effort and the initiative.
Although the location is -1 for me, I find this a wicked initiative. 
I just finished reading some chapters of the book, but nothing beats a 
live session.
And the location is actually not that bad, considering the fact that 
its close to the station (sorry for all the lease drivers).


I'll take some cheese from my hometown (old amsterdam) with me, (goes 
nice along with the pizza)



regards,
Jeroen.



 I'm definitively interested and if my calendar allows me I'll attend.

On Apr 17, 2009, at 3:30 PM, Martijn Dashorst wrote:


I want to poll if there is an interest in a regular Wicket meetup in
Deventer, the Netherlands. We can only host at most ~20 people, so I
expect this to be much lower key than the Amsterdam meetups.

If there is an interest, I'll prod my employer to see if they are
willing to help with space, beamer and possibly pizza.

The venue would be one of the Topicus buildings, which are
conveniently located in the historical center of Deventer, very close
to the train station.

The types of presentations/discussions/etc. I'm looking for are 
rather simple:
 - show us your product and discuss where/how/why you used and 
extended wicket

 - show us how you integrated with
hibernate/db4o/ibatis/cayenne/rome/spring/guice/jquery/gmap/opensocial/... 


 - ask us a question for a problem (with code... ;-)
 - ...

These events would start at ~18:30 with pizza, doors open at 18:00 and
presentations starting at 19:00.

I'd also like to keep the meetups short, about 90 minutes, or maybe 2
hours (max). This will give people the opportunity to return to home
at an appropriate time. Afterwards we could visit one of the bars that
serve Topicus Gifkikker.

Is this an event you would like to visit?

Martijn

-
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



No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.287 / Virus Database: 270.12.0/2068 - Release Date: 04/19/09 20:04:00


  



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



gmap2: info window gets closed while refreshing

2009-04-20 Thread shiraz memon
Hi

I have a problem in using gmap2 wicket api, when it refreshes the marker and
at the same time if user has opened the infowindow, it immediately shuts it
off (i.e. while setting overlays), which is distracting for the user
experience.

below is the code for more insight:

map.add(new ClickListener() {

  @Override
  protected void onClick(AjaxRequestTarget target, GLatLng latLng,
  GOverlay overlay) {
   try {
if (overlay.getId() != null) {
 GMarker m = (GMarker) overlay;
 SiteGlueInfo siteInfo = webApp.getListSitesHelper().getSiteInfoById(
 m.getMarkerOptions().getTitle());
 IModel model = new Model();
 model.setObject(siteInfo);
 map.getInfoWindow().open(
 m.getLatLng(),
 new SiteInfoPanel(siteInfo.getSiteId(), model));
   }
  } catch (Exception e) {

  }

  }
  });

map.add(new GMapAutoUpdatingBehavior(Duration.seconds(15)) {

  private static final long serialVersionUID = 1L;

  @Override
  protected void onTimer(AjaxRequestTarget target, GMap2 map) {
  map.setOverlays(createOverlay(map));
  }
  });

Thanks for any help in advance.

Best regards,

Shiraz


Re: Scribd

2009-04-20 Thread francisco treacy
If you're talking about a view component ala Scribd, that is a Flash
object. Then you would integrate it to Wicket as any other Flash
object. I have, however, ran into some problems whilst using swfobject
(see urlFor ResourceStreamRequestTarget returning null post - in the
last message I posted something that does work).

If you want to develop your scribd from scratch, it is feasible but
not easy task (ie no Java libraries to convert docs to Flash:
Openoffice + swftools is a way).

There is some more info at
http://blog.rot13.org/2008/02/converting_pdf_to_flash_for_web_page_flipping.html.

Francisco



2009/4/19 John Armstrong siber...@gmail.com:
 Before I start into it, has anyone built a scribd component?

 John-

 -
 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: Haulting Execution of Page

2009-04-20 Thread Martijn Dashorst
see org.apache.wicket.AbortException and its subtypes.

Martijn

On Mon, Apr 20, 2009 at 9:30 AM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 If I detect a certain scenario I want to hault execution of the page, however 
 if I return then wicket complains of components in the markup that aren't 
 on the page.

 Is there a way to abort rendering? i.e. I'm setting a redirect at the servlet 
 response, so I don't want wicket to bother setting up the page for rendering.

 Douglas


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Global Sessions

2009-04-20 Thread francisco treacy
I don't see why would you want that - but you could stick global state
in your WebApplication.

Needless to say, beware of race conditions.

Francisco


2009/4/20 Pi Trash ptr...@web.de:
 Hi,

 is there a way to use global sessions, e.g. on application level?

 tia
 __
 GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
 Jetzt freischalten unter http://movieflat.web.de


 -
 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] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-04-20 Thread pmarrone

Hi Rodolfo,
I'm trying to deploy the wicketstuff-push example on a Glassfish server V3,
but without success.
Can you give some information about how to use your wicketstuff-push
implementation outside Jetty?
I know that Glassfish has support for cometd, so it should be possible.
I propose to insert in the example package this kind of information, because
jetty is not normally adopted in real production environments.

Thank you very much for your kind response.
Regards
Paolo



Rodolfo Hansen-2 wrote:
 
 Hi, a new version of wicketstuff-push was moved to the wicketstuff-core
 group of projects, as push-parent (as was specified in the wiki)
 
 A couple of new things were done:
 
 It is no longer compatible with java 1.4, is built for wicket 1.4 and
 requires jetty 6.1.14.
 The dependencies on dojo have been reduced even further, so this package
 is
 basically just a cometd client/server project for wicket.
 The RemoveListener is now working and is extended with a new type of
 WicketRemoveListener that allows access to the Wicket Application
 Singleton
 and the session that registered the singleton (i thought of a couple of
 ways
 to register them, and decided to choose the one present in the code for
 it)
 
 Please let me know of any suggestions, ideas for the proj.
 
 

-- 
View this message in context: 
http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p23134109.html
Sent from the Wicket - User 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



ResourceReference question

2009-04-20 Thread Eyal Golan
Hello,
I've been looking for an answer but couldn't find it.
We have a page that adds an image:
add(new Image(iconImage, new Model(imageResourceReference)));

The problem is with the ResourceReference.
I found only one option for the location of the image file. The location
should be next to a class so I could do something like:
final ResourceReference resourceReference = new
ResourceReference(EntityBrowserPage.class, img/myIcon.png);

All of our images are located under 'images' folder, which is under webapp.
Is it possible to get a ResourceReference from there.
We don't want to duplicate our images.

Thanks


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: [poll] Interest in regular Deventer Wicket meetup?

2009-04-20 Thread Thijs

I'd love to attend. so +1
However Amsterdam already being a problem (yes, zeeland is the other end 
of the world, esp. for the NS).
Deventer is just a bit to far for an afternoon/evening. ( 3 - 3,5h 
travel one way).
So I'd like to attend and probably would once in a while. It will 
certainly not be on a regular basis.


Thijs


On 17-4-2009 15:30, Martijn Dashorst wrote:

I want to poll if there is an interest in a regular Wicket meetup in
Deventer, the Netherlands. We can only host at most ~20 people, so I
expect this to be much lower key than the Amsterdam meetups.

If there is an interest, I'll prod my employer to see if they are
willing to help with space, beamer and possibly pizza.

The venue would be one of the Topicus buildings, which are
conveniently located in the historical center of Deventer, very close
to the train station.

The types of presentations/discussions/etc. I'm looking for are rather simple:
  - show us your product and discuss where/how/why you used and extended wicket
  - show us how you integrated with
hibernate/db4o/ibatis/cayenne/rome/spring/guice/jquery/gmap/opensocial/...
  - ask us a question for a problem (with code... ;-)
  - ...

These events would start at ~18:30 with pizza, doors open at 18:00 and
presentations starting at 19:00.

I'd also like to keep the meetups short, about 90 minutes, or maybe 2
hours (max). This will give people the opportunity to return to home
at an appropriate time. Afterwards we could visit one of the bars that
serve Topicus Gifkikker.

Is this an event you would like to visit?

Martijn

-
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



want help in storing the drop down values in the session values should be what we selected

2009-04-20 Thread Geeta Madhavi
Hi,

I what help for i have two drop downs where i select the values now the
values which i select those values should be stored in the session and those
values should be called in the next page. the both drop downs values come
from database and values in the second drop down changes on the selection of
the values form the first drop down.

So, kindly some on help me in this i have taken websession class extending i
am getting the session object i just want to store those value's in session
and what to display in another page. Need help as early as possible








-- 
Regards.
Geeta Madhavi. K


Re: changing style of ajax link

2009-04-20 Thread Martijn Dashorst
a link doesn't repaint itself automatically, you have to add it to the
AjaxRequestTarget in the onclick handler.

Martijn

On Sat, Apr 18, 2009 at 12:57 AM, Jason Novotny novo...@gridsphere.org wrote:

 Hi,

 I have code to create an ajax link and I want it to dynamically adjust its
 css class when clicked. This doesn't work since I don't think the
 onComponentTag is being called.

 final AjaxLink link = new AjaxLink(navlink) {
           @Override
           public void onClick(AjaxRequestTarget target) {

                       }

           public void onComponentTag(ComponentTag tag) {
               super.onComponentTag(tag);
               if (foo == 77) {
                  tag.put(class, secondaryCurrent);
               }
           }

       };

 Any help is greatly appreciated!

 Thanks, Jason

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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: want help in storing the drop down values in the session values should be what we selected

2009-04-20 Thread Martin Makundi
YourSession extends WebSession {
  public final static String MY_VARIABLE = myVariable;
  private MyDropdonVariable myVariable;
}

MyPage extends WebPage {
  add(new DropDownChoice(wicket:id, new PropertyModel(this,
session. + YourSession.MY_VARIABLE));
}

This should do.. and you can get your variable value from the session, ofcourse.

**
Martin


2009/4/20 Geeta Madhavi madhavi.ge...@gmail.com:
 Hi,

 I what help for i have two drop downs where i select the values now the
 values which i select those values should be stored in the session and those
 values should be called in the next page. the both drop downs values come
 from database and values in the second drop down changes on the selection of
 the values form the first drop down.

 So, kindly some on help me in this i have taken websession class extending i
 am getting the session object i just want to store those value's in session
 and what to display in another page. Need help as early as possible








 --
 Regards.
 Geeta Madhavi. K


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



Re: [poll] Interest in regular Deventer Wicket meetup?

2009-04-20 Thread Maarten Bosteels
Bergen-op-zoom ? Antwerp ? Brussels ?
Or the center of the (beer brewing) universe: Leuven ?

I'd like to attend, but Deventer is just too far for me.

Maarten

On Mon, Apr 20, 2009 at 12:47 PM, Thijs vonk.th...@gmail.com wrote:
 I'd love to attend. so +1
 However Amsterdam already being a problem (yes, zeeland is the other end of
 the world, esp. for the NS).
 Deventer is just a bit to far for an afternoon/evening. ( 3 - 3,5h travel
 one way).
 So I'd like to attend and probably would once in a while. It will certainly
 not be on a regular basis.

 Thijs


 On 17-4-2009 15:30, Martijn Dashorst wrote:

 I want to poll if there is an interest in a regular Wicket meetup in
 Deventer, the Netherlands. We can only host at most ~20 people, so I
 expect this to be much lower key than the Amsterdam meetups.

 If there is an interest, I'll prod my employer to see if they are
 willing to help with space, beamer and possibly pizza.

 The venue would be one of the Topicus buildings, which are
 conveniently located in the historical center of Deventer, very close
 to the train station.

 The types of presentations/discussions/etc. I'm looking for are rather
 simple:
  - show us your product and discuss where/how/why you used and extended
 wicket
  - show us how you integrated with
 hibernate/db4o/ibatis/cayenne/rome/spring/guice/jquery/gmap/opensocial/...
  - ask us a question for a problem (with code... ;-)
  - ...

 These events would start at ~18:30 with pizza, doors open at 18:00 and
 presentations starting at 19:00.

 I'd also like to keep the meetups short, about 90 minutes, or maybe 2
 hours (max). This will give people the opportunity to return to home
 at an appropriate time. Afterwards we could visit one of the bars that
 serve Topicus Gifkikker.

 Is this an event you would like to visit?

 Martijn

 -
 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



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



Localize AjaxSubmitLink

2009-04-20 Thread Peter Diefenthaeler

Hi,
is it possible to localize a AjaxSubmitLink?
I would like to replace Speichern with a localized value from a
properties file ...

HTML:
  input wicket:id=save: type=submit value=Speichern/nbsp;
Java:;
  form.add(new AjaxSubmitLink(save) { ... });

Thanx, Peter


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



Image path alternatives

2009-04-20 Thread Daniel Ferreira Castro
I have a problem to solve.

I have a file path that is outside the wicket application path.  This path
is used to store product images and my goal is to design a screen with a
resultset that show the products and their images by its side.

What is the best way to do that?  I have the search showing the product
info, but the image part is my doubt.

The ResourceReference seems to be, as far as I know, inappropriate because
it assumes that the resource is inside the aaplication path, right?  What is
a good alternative?  how to do it?
-- 
Two rules to succeed in life:
1 - don´t tell people everything you know.

We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill


Re: ResourceReference question

2009-04-20 Thread Richard Allen
I believe you want to use ContextRelativeResource. See:
http://wicket.apache.org/docs/1.4/index.html?org/apache/wicket/resource/ContextRelativeResource.html


On Mon, Apr 20, 2009 at 6:43 AM, Eyal Golan egola...@gmail.com wrote:

 Hello,
 I've been looking for an answer but couldn't find it.
 We have a page that adds an image:
 add(new Image(iconImage, new Model(imageResourceReference)));

 The problem is with the ResourceReference.
 I found only one option for the location of the image file. The location
 should be next to a class so I could do something like:
final ResourceReference resourceReference = new
 ResourceReference(EntityBrowserPage.class, img/myIcon.png);

 All of our images are located under 'images' folder, which is under webapp.
 Is it possible to get a ResourceReference from there.
 We don't want to duplicate our images.

 Thanks


 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary



Re: remember me at login page feature

2009-04-20 Thread Brill Pappin

It may not work as you expect.
What it does is store the username in a cookie and repopulates it if  
possible when you hit the login page again.


What I expected it to do was  to auto login, and I had to port he  
wicket-auth-roles code to support auto-signin.


- Brill Pappin





On 19-Apr-09, at 8:09 AM, Khlystov Alexandr wrote:



Good day.

Can anyone, please, give an example, or direct wicket API  
description about remember me at login page feature.


Thanks in advance.

--
Khlystov Alexandr


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





smime.p7s
Description: S/MIME cryptographic signature


Breadcrumbs and raw URLs

2009-04-20 Thread Wilhelmsen Tor Iver
We have an issue where we are using a CMS that provides an API for
getting article components in a peculiar way: Links are sent over as a
raw HTML element followed by a link element followed by the rest of
the HTML. So a link like a href=http://foo/fie; is sent as 
1. HTML: a href=
2. Link: EXTERNAL, http://foo/fie
3. HTML: 

Now, some of these links are article ids that we want to turn into
wicket-extensions breadcrumb links in a BreadCrumbBar. Using the
BreadCrumbLink does not work since we don't actually have a HTML
template element to apply the Link to. 

Is there a way to use urlFor() or the like to create links that updates
the breadcrumb model with our BreadCrumbPanel subclass for the linked
id, i.e. IBreadCrumbModel.setActive(new ArticlePanel(...))?

Med vennlig hilsen

TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: toriv...@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no




Wicket HttpSession Thread Safety

2009-04-20 Thread Carlo Camerino
Hi,

I would just like to post an inquiry on how wicket handles httpsession
concurrency.
When the application usage volume goes way up, it seems that httpsession is
problematic.

In struts for example,
if you use request.getSession() without synchronized access you might
encounter problems

My question is how does wicket handle this? Do we need to add any special
handling or does wicket take care of it automatically?

Thanks
Carlo


Re: Localize AjaxSubmitLink

2009-04-20 Thread jcgarciam

Try using  wicket:message

http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html 


PDiefent wrote:
 
 
 Hi,
 is it possible to localize a AjaxSubmitLink?
 I would like to replace Speichern with a localized value from a
 properties file ...
 
 HTML:
   input wicket:id=save: type=submit value=Speichern/nbsp;
 Java:;
   form.add(new AjaxSubmitLink(save) { ... });
 
 Thanx, Peter
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Localize-AjaxSubmitLink-tp23135348p23137663.html
Sent from the Wicket - User 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 HttpSession Thread Safety

2009-04-20 Thread david
Hello Carlo, very good question. I don't have an answer but I am just 
confirming equal interest in the outcome of your question. I am about to embark 
on a company project web app makeover/rewrite and I am throwing all my eggs 
into the Wicket basket (no pun intended). Hopefully, this will help generate 
more interested replies. ;-) David.




Carlo Camerino wrote ..
 Hi,
 
 I would just like to post an inquiry on how wicket handles httpsession
 concurrency.
 When the application usage volume goes way up, it seems that httpsession is
 problematic.
 
 In struts for example,
 if you use request.getSession() without synchronized access you might
 encounter problems
 
 My question is how does wicket handle this? Do we need to add any special
 handling or does wicket take care of it automatically?
 
 Thanks
 Carlo


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

Re: Wicket HttpSession Thread Safety

2009-04-20 Thread francisco treacy
I don't think you will encounter problems just by calling
Session.get(). But it is up to the client to synchronize session
state.

Francisco

2009/4/20  da...@davidwbrown.name:
 Hello Carlo, very good question. I don't have an answer but I am just 
 confirming equal interest in the outcome of your question. I am about to 
 embark on a company project web app makeover/rewrite and I am throwing all my 
 eggs into the Wicket basket (no pun intended). Hopefully, this will help 
 generate more interested replies. ;-) David.




 Carlo Camerino wrote ..
 Hi,

 I would just like to post an inquiry on how wicket handles httpsession
 concurrency.
 When the application usage volume goes way up, it seems that httpsession is
 problematic.

 In struts for example,
 if you use request.getSession() without synchronized access you might
 encounter problems

 My question is how does wicket handle this? Do we need to add any special
 handling or does wicket take care of it automatically?

 Thanks
 Carlo



 -
 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



tinymce textarea

2009-04-20 Thread tubin gen
I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
is the  tinymce java scriopt is repalce my textarea html with an
iframe


this  is my html , but the   style=display: none; is added by tinymce
textarea maxlength=4000 cols=120 rows=8
name=reassignmentComments wicket:id=reassignmentComments
id=reassignmentComments style=display: none;/

and code generated by tinymce is   lot,  but the problem is it uses
iframe and because of  which the textarea value is not posted to my
form   , please help me integrating tinymce

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



Re: Localize AjaxSubmitLink

2009-04-20 Thread Jeremy Thomerson
link = new AjaxSubmitLink();
link.add(new AttributeModifier(value, true, new
ResourceModel(speichern.textkey));

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 6:59 AM, Peter Diefenthaeler pdief...@csc.comwrote:


 Hi,
 is it possible to localize a AjaxSubmitLink?
 I would like to replace Speichern with a localized value from a
 properties file ...

 HTML:
  input wicket:id=save: type=submit value=Speichern/nbsp;
 Java:;
  form.add(new AjaxSubmitLink(save) { ... });

 Thanx, Peter


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




Re: Image path alternatives

2009-04-20 Thread Jeremy Thomerson
Have you tried searching for this?  It has been asked many times.  Try the
following links, and then if you can't find the answer or need help, reply
back.

http://www.google.com/search?q=wicket+image+external
http://www.nabble.com/forum/Search.jtp?forum=25133local=yquery=external+image

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 7:01 AM, Daniel Ferreira Castro
dfcas...@gmail.comwrote:

 I have a problem to solve.

 I have a file path that is outside the wicket application path.  This path
 is used to store product images and my goal is to design a screen with a
 resultset that show the products and their images by its side.

 What is the best way to do that?  I have the search showing the product
 info, but the image part is my doubt.

 The ResourceReference seems to be, as far as I know, inappropriate because
 it assumes that the resource is inside the aaplication path, right?  What
 is
 a good alternative?  how to do it?
 --
 Two rules to succeed in life:
 1 - don´t tell people everything you know.
 
 We shall go on to the end.
 We shall fight in France
 We shall fightover the seas and oceans.
 We shall fight with growing confidence and growing strength in the air.
 We shall defend our island whatever the cost may be
 We shall fight on beaches, we shall fight on the landing grounds,
 We shall fight in the fields and in the streets,
 We shall fight on the hills.
 We shall never surrender.
 Winston Churchill



Re: tinymce textarea

2009-04-20 Thread jcgarciam

Agreed with @Jeremy,

I have used to TinyMCE myself to update a CLOB fields mapped to my Entity
Object and its value get submitted like a charm, but i remember seen this
problem in my project a while before, when the form was submitted using
Ajax, since i didn't make too much research i just switch to normal
SubmitLink and the problem was resolved. 



Jeremy Thomerson-5 wrote:
 
 I think TinyMCE always uses an iframe - because it loads an editable
 document in it.  I don't think that's your problem.  Show us all of the
 relevant code (your java and html code).
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Mon, Apr 20, 2009 at 9:50 AM, tubin gen fachh...@gmail.com wrote:
 
 I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
 is the  tinymce java scriopt is repalce my textarea html with an
 iframe


 this  is my html , but the   style=display: none; is added by tinymce
 textarea maxlength=4000 cols=120 rows=8
 name=reassignmentComments wicket:id=reassignmentComments
 id=reassignmentComments style=display: none;/

 and code generated by tinymce is   lot,  but the problem is it uses
 iframe and because of  which the textarea value is not posted to my
 form   , please help me integrating tinymce

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


 
 

-- 
View this message in context: 
http://www.nabble.com/tinymce-textarea-tp23138273p23138719.html
Sent from the Wicket - User 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



Wicket portlet into liferay

2009-04-20 Thread Tonio Caputo
Hi wicket users,

I'm a newbie in wicket and portlets, I'm involved in trying to find a
web framework to create portlets in a liferay portal, my duty is to
try wicket and see if it works.

Versions   wicket 1-4-rc2
 liferay 5.2

After reading  Issue https://issues.apache.org/jira/browse/WICKET-1620, it
seems clear
that this is possible.

Reading wicket portlet examples, I realized there is a lot of stuff in
WicketPortlet, that
is a bit difficult to understand for a newbie for both things
(wicket/portlet).

I'll just like to know, if this is the correct example after WICKET-1620, or
perhaps there
is a simpler one.

Thanks in advance
tonio


Re: Wicket HttpSession Thread Safety

2009-04-20 Thread Jeremy Thomerson
Here are some threads that cover this topic, with lots of info from the core
developers.

http://www.nabble.com/Thread-safety-for-components-tt17265324.html#a17265324
http://www.nabble.com/Wicket-Session-and-threading-tt14595666.html#a14599963
http://www.nabble.com/Storing-user-entity-in-session--tt22113666.html#a22113666

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 10:15 AM, Carlo Camerino cmcamer...@gmail.comwrote:

 Um,
 What do you mean it is up to the client?
 who's the client in this case?

 I don't know if Wicket uses sychronized objects or methods for accessing
 the
 httpsession.

 On Mon, Apr 20, 2009 at 10:37 PM, francisco treacy 
 francisco.tre...@gmail.com wrote:

  I don't think you will encounter problems just by calling
  Session.get(). But it is up to the client to synchronize session
  state.
 
  Francisco
 
  2009/4/20  da...@davidwbrown.name:
   Hello Carlo, very good question. I don't have an answer but I am just
  confirming equal interest in the outcome of your question. I am about to
  embark on a company project web app makeover/rewrite and I am throwing
 all
  my eggs into the Wicket basket (no pun intended). Hopefully, this will
 help
  generate more interested replies. ;-) David.
  
  
  
  
   Carlo Camerino wrote ..
   Hi,
  
   I would just like to post an inquiry on how wicket handles httpsession
   concurrency.
   When the application usage volume goes way up, it seems that
 httpsession
  is
   problematic.
  
   In struts for example,
   if you use request.getSession() without synchronized access you might
   encounter problems
  
   My question is how does wicket handle this? Do we need to add any
  special
   handling or does wicket take care of it automatically?
  
   Thanks
   Carlo
  
  
  
   -
   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
 
 



Strange java.util.MissingResourceException on form validation

2009-04-20 Thread Thierry Leveque
Hi

I have a really strange MissingResourceException when running my
application.

I have implemented my own IFormValidator.
When I find an error I use this code:

*lFormComponent.error( lFormComponent.getString( DuplicatePorts, new
Model( new DuplicatePortsMessage( lFormComponent.getRawInput() ) ) ) );

...
private static class DuplicatePortsMessage implements Serializable
{
private String port = ;

private DuplicatePortsMessage( final String iPort )
{
port = iPort;
}
}

*
It is working fine on the first Submit. The correct message is displayed in
my Feedback panel.
But if I submit my form again with the same error or another one, I am
getting this exception:

*

WicketMessage: Method onFormSubmitted of interface
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = configForm]] threw an exception

Root cause:

java.util.MissingResourceException: Unable to find resource:
DuplicatePortOnNode for component: listenerPort
[class=org.apache.wicket.markup.html.form.TextField]
at org.apache.wicket.Localizer.getString(Localizer.java:266)
at org.apache.wicket.Localizer.getString(Localizer.java:116)
at org.apache.wicket.Component.getString(Component.java:1806)
at
com.voiceage.spotxde.admin.config.modules.lbx.PortsValidator.validate(PortsValidator.java:72)
*I really don't understand that one. Why is the resource is found the first
time, but not the second time???

Thierry
Sent from Montreal, Quebec, Canada


Re: Strange java.util.MissingResourceException on form validation

2009-04-20 Thread Thierry Leveque
Forget it!

I found my problem!

It was because I was dynamically adding the validator in my validate
method of my form. The new validators were added at every request without
being removed from the validators collection.
The old validator was then called with null reference to the component

Thierry
Sent from Montreal, Quebec, Canada

On Mon, Apr 20, 2009 at 11:30, Thierry Leveque tleve...@gmail.com wrote:

 Hi

 I have a really strange MissingResourceException when running my
 application.

 I have implemented my own IFormValidator.
 When I find an error I use this code:

 *lFormComponent.error( lFormComponent.getString( DuplicatePorts, new
 Model( new DuplicatePortsMessage( lFormComponent.getRawInput() ) ) ) );

 ...
 private static class DuplicatePortsMessage implements Serializable
 {
 private String port = ;

 private DuplicatePortsMessage( final String iPort )
 {
 port = iPort;
 }
 }

 *
 It is working fine on the first Submit. The correct message is displayed in
 my Feedback panel.
 But if I submit my form again with the same error or another one, I am
 getting this exception:

 *

 WicketMessage: Method onFormSubmitted of interface
 org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
 [MarkupContainer [Component id = configForm]] threw an exception

 Root cause:

 java.util.MissingResourceException: Unable to find resource:
 DuplicatePortOnNode for component: listenerPort
 [class=org.apache.wicket.markup.html.form.TextField]
 at org.apache.wicket.Localizer.getString(Localizer.java:266)
 at org.apache.wicket.Localizer.getString(Localizer.java:116)
 at org.apache.wicket.Component.getString(Component.java:1806)
 at
 com.voiceage.spotxde.admin.config.modules.lbx.PortsValidator.validate(PortsValidator.java:72)
 *I really don't understand that one. Why is the resource is found the
 first time, but not the second time???

 Thierry
 Sent from Montreal, Quebec, Canada


Re: ResourceReference question

2009-04-20 Thread Igor Vaynberg
and ContextImage

-igor

On Mon, Apr 20, 2009 at 5:21 AM, Richard Allen
richard.l.al...@gmail.com wrote:
 I believe you want to use ContextRelativeResource. See:
 http://wicket.apache.org/docs/1.4/index.html?org/apache/wicket/resource/ContextRelativeResource.html


 On Mon, Apr 20, 2009 at 6:43 AM, Eyal Golan egola...@gmail.com wrote:

 Hello,
 I've been looking for an answer but couldn't find it.
 We have a page that adds an image:
 add(new Image(iconImage, new Model(imageResourceReference)));

 The problem is with the ResourceReference.
 I found only one option for the location of the image file. The location
 should be next to a class so I could do something like:
        final ResourceReference resourceReference = new
 ResourceReference(EntityBrowserPage.class, img/myIcon.png);

 All of our images are located under 'images' folder, which is under webapp.
 Is it possible to get a ResourceReference from there.
 We don't want to duplicate our images.

 Thanks


 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really necessary



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



New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread Stefan Simik
New site about health, nutrition, exercise and life
stylehttp://www.fitcomplex.sk/start

We are using stateless pages for public interface, and stateful ajaxified
pages for admin interface.
Stateless ajax in public is developed using jquery + wicket.

The site is running on:

   - *Wicket *1.4rc2
   - *Web server*: Jetty 6.1.14  (with Apache front-end)
   - *Db*: mysql (ehcache + hibernate)
   - *OS*: Ubuntu 8.04 (Hardy Heron)


*Wicket performance* is very good - the slowest element is mysql database.
It's able to serve up to ~130 pages /sec on modern notebook (2Ghz Montevina,
5400 rpm, 3GB RAM).
On server we haven't tested, but it should be much more.

*Thanks to the community for patiently answering many questions and for all
the support.*

Štefan Šimík
www.fitcomplex.sk


Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2009-04-20 Thread Rodolfo Hansen
On Mon, Apr 20, 2009 at 6:26 AM, pmarrone paolo.marr...@gmail.com wrote:


 Hi Rodolfo,
 I'm trying to deploy the wicketstuff-push example on a Glassfish server V3,
 but without success.
 Can you give some information about how to use your wicketstuff-push
 implementation outside Jetty?


For Glassfish there are a couple of configurations you need to set in the
glassfish domain.

Also, you might have to write your own servlet, as in this post:

http://weblogs.java.net/blog/jfarcand/archive/2006/10/writting_a_come.html


 I know that Glassfish has support for cometd, so it should be possible.
 I propose to insert in the example package this kind of information,
 because
 jetty is not normally adopted in real production environments.


Yes, if you can, can you write the Glassfish Servlet for cometd integration
and post it as a patch, or send it to me directly?

rhan...@kindleit.net




 Thank you very much for your kind response.
 Regards
 Paolo



 Rodolfo Hansen-2 wrote:
 
  Hi, a new version of wicketstuff-push was moved to the wicketstuff-core
  group of projects, as push-parent (as was specified in the wiki)
 
  A couple of new things were done:
 
  It is no longer compatible with java 1.4, is built for wicket 1.4 and
  requires jetty 6.1.14.
  The dependencies on dojo have been reduced even further, so this package
  is
  basically just a cometd client/server project for wicket.
  The RemoveListener is now working and is extended with a new type of
  WicketRemoveListener that allows access to the Wicket Application
  Singleton
  and the session that registered the singleton (i thought of a couple of
  ways
  to register them, and decided to choose the one present in the code for
  it)
 
  Please let me know of any suggestions, ideas for the proj.
 
 

 --
 View this message in context:
 http://www.nabble.com/-Announce--wicketstuff-push-ported-to-use-wicket-1.4-jetty-6.1.14-tp20914051p23134109.html
 Sent from the Wicket - User 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




-- 
Rodolfo Hansen
CEO, KindleIT Software Development
Email: rhan...@kindleit.net
Office: 1 (809) 732-5200
Mobile: 1 (809) 299-7332


Re: Cometd Servlet mapping for wickestuff-push example

2009-04-20 Thread Rodolfo Hansen
On Sun, Apr 19, 2009 at 1:06 PM, Paolo Marrone paolo.marr...@gmail.comwrote:

 Hi all,
 first of all, I'm sorry for a wicketstuff question posted on this list, but
 I cannot find a mailing list for wicketstuff, so I hope someone can help me.

 I'm a happy user of wicket (great framework!), and because I need also the
 server-side push feature, I gave a look to the wicketstuff-dojo-1.1 project,
 that includes an implementation of server-push based on Dojo-cometd.

 I'm able to run the example within the embedded jetty server, without
 modifications, but because I need to use Glassfish (it is the servlet
 container we use in production), I tried to run the wicketstuff-push
 examples on a Glassfish v3 server, but without success.
 The problem, in my opinion, depends on the content of web.xml.
 This is the original web.xml (it works on jetty, but not on Glassfish):

 web-app id=WebApp_ID
   display-namewicketstuff-push-examples/display-name
   welcome-file-list
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   welcome-fileindex.jsp/welcome-file
   welcome-filedefault.html/welcome-file
   welcome-filedefault.htm/welcome-file
   welcome-filedefault.jsp/welcome-file
   /welcome-file-list
 /web-app


My apologies, the web.xml is now fixed in the current version.





 I added the following lines to web.xml in order to make the application
 compatible with wicket:

   ...
   filter
   filter-namePushExamples/filter-name
   filter-class
   org.apache.wicket.protocol.http.WicketFilter
   /filter-class
   init-param
   param-nameapplicationClassName/param-name
   param-value
   org.wicketstuff.push.examples.application.ExampleApplication
   /param-value
   /init-param
   /filter
   filter-mapping
   filter-namePushExamples/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
   ...

 with the above new web.xml the webapp apparently seems to work in Glassfish
 (I can reach the home page, that contains just a list of links to launch all
 the wicketstuff-push examples), but when I try to launch some Cometd based
 example, I get the following error:

 WicketMessage: Can't instantiate page using constructor public
 org.wicketstuff.push.examples.pages.WicketCometdChat(org.apache.wicket.PageParameters)
 and argument

 Root cause:

 javax.servlet.ServletException: Error searching for cometd Servlet
 at
 org.wicketstuff.push.cometd.CometdAbstractBehavior.getCometdServletPath(CometdAbstractBehavior.java:232)
 at
 org.wicketstuff.push.cometd.CometdAbstractBehavior.clinit(CometdAbstractBehavior.java:28)
 at
 org.wicketstuff.push.cometd.CometdService.addChannelListener(CometdService.java:74)
 at
 org.wicketstuff.push.examples.pages.WicketAbstractChat.init(WicketAbstractChat.java:49)
 at
 org.wicketstuff.push.examples.pages.WicketCometdChat.init(WicketCometdChat.java:13)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 

 It seems that the cometd servlet mapping cannot be found.
 My questions are:

 - Why the original web.xml can work in jetty? Where does it get the wicket
 filter definition, and the cometd servlet mapping?

 - Someone tried the wicketstuff-push example on a different servlet
 container? If yes, which is the right web.xml file to use?

 Please help me.
 Thank you
 Paolo Marrone





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




-- 
Rodolfo Hansen
CEO, KindleIT Software Development
Email: rhan...@kindleit.net
Office: 1 (809) 732-5200
Mobile: 1 (809) 299-7332


Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread francisco treacy
Štefan,

I don't get a word of slovak, but it looks really neat. Congratulations!

Francisco


2009/4/20 Stefan Simik stefan.si...@gmail.com:
 New site about health, nutrition, exercise and life
 stylehttp://www.fitcomplex.sk/start

 We are using stateless pages for public interface, and stateful ajaxified
 pages for admin interface.
 Stateless ajax in public is developed using jquery + wicket.

 The site is running on:

   - *Wicket *1.4rc2
   - *Web server*: Jetty 6.1.14  (with Apache front-end)
   - *Db*: mysql (ehcache + hibernate)
   - *OS*: Ubuntu 8.04 (Hardy Heron)


 *Wicket performance* is very good - the slowest element is mysql database.
 It's able to serve up to ~130 pages /sec on modern notebook (2Ghz Montevina,
 5400 rpm, 3GB RAM).
 On server we haven't tested, but it should be much more.

 *Thanks to the community for patiently answering many questions and for all
 the support.*

 Štefan Šimík
 www.fitcomplex.sk


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



Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread nino martinez wael
The same theme as my exerciselog.eu although I've taken the exercise
view of it :) Maybe we should have some interaction (provided you do a
international site)?

My software setup are almost the same :) With the exception of wicket
1.3 and tomcat.. Although my server are a p3 500mhz 512mb-ram if it
gets more serious or runs too slow i'll upgrade it..

2009/4/20 Stefan Simik stefan.si...@gmail.com:
 New site about health, nutrition, exercise and life
 stylehttp://www.fitcomplex.sk/start

 We are using stateless pages for public interface, and stateful ajaxified
 pages for admin interface.
 Stateless ajax in public is developed using jquery + wicket.

 The site is running on:

   - *Wicket *1.4rc2
   - *Web server*: Jetty 6.1.14  (with Apache front-end)
   - *Db*: mysql (ehcache + hibernate)
   - *OS*: Ubuntu 8.04 (Hardy Heron)


 *Wicket performance* is very good - the slowest element is mysql database.
 It's able to serve up to ~130 pages /sec on modern notebook (2Ghz Montevina,
 5400 rpm, 3GB RAM).
 On server we haven't tested, but it should be much more.

 *Thanks to the community for patiently answering many questions and for all
 the support.*

 Štefan Šimík
 www.fitcomplex.sk


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



Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread Azzeddine Daddah
Looks great, and you can see that it's PRO. I think that the tabs do not
work under Safari. You can see the selected tab is active but the content
does not change.
Congratulations anyway.

Regards,

Hbiloo

On Mon, Apr 20, 2009 at 7:22 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 The same theme as my exerciselog.eu although I've taken the exercise
 view of it :) Maybe we should have some interaction (provided you do a
 international site)?

 My software setup are almost the same :) With the exception of wicket
 1.3 and tomcat.. Although my server are a p3 500mhz 512mb-ram if it
 gets more serious or runs too slow i'll upgrade it..

 2009/4/20 Stefan Simik stefan.si...@gmail.com:
  New site about health, nutrition, exercise and life
  stylehttp://www.fitcomplex.sk/start
 
  We are using stateless pages for public interface, and stateful ajaxified
  pages for admin interface.
  Stateless ajax in public is developed using jquery + wicket.
 
  The site is running on:
 
- *Wicket *1.4rc2
- *Web server*: Jetty 6.1.14  (with Apache front-end)
- *Db*: mysql (ehcache + hibernate)
- *OS*: Ubuntu 8.04 (Hardy Heron)
 
 
  *Wicket performance* is very good - the slowest element is mysql
 database.
  It's able to serve up to ~130 pages /sec on modern notebook (2Ghz
 Montevina,
  5400 rpm, 3GB RAM).
  On server we haven't tested, but it should be much more.
 
  *Thanks to the community for patiently answering many questions and for
 all
  the support.*
 
  Štefan Šimík
  www.fitcomplex.sk
 

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




Obtain a Page class via mounted page link

2009-04-20 Thread Douglas Ferguson
Is there a way to look up a mounted page link via the name?

I'm digging through the code but I don't see a way to do this..


Douglas Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscr...@yahoogroups.com

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



Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread Jeremy Thomerson
I agree - it looks good, even though I don't understand a word of it.

Does seem like the tabs are broken in FF also - active shows but the content
doesn't change (right side box thing).

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 1:04 PM, Azzeddine Daddah waarhei...@gmail.comwrote:

 Looks great, and you can see that it's PRO. I think that the tabs do not
 work under Safari. You can see the selected tab is active but the content
 does not change.
 Congratulations anyway.

 Regards,

 Hbiloo

 On Mon, Apr 20, 2009 at 7:22 PM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

  The same theme as my exerciselog.eu although I've taken the exercise
  view of it :) Maybe we should have some interaction (provided you do a
  international site)?
 
  My software setup are almost the same :) With the exception of wicket
  1.3 and tomcat.. Although my server are a p3 500mhz 512mb-ram if it
  gets more serious or runs too slow i'll upgrade it..
 
  2009/4/20 Stefan Simik stefan.si...@gmail.com:
   New site about health, nutrition, exercise and life
   stylehttp://www.fitcomplex.sk/start
  
   We are using stateless pages for public interface, and stateful
 ajaxified
   pages for admin interface.
   Stateless ajax in public is developed using jquery + wicket.
  
   The site is running on:
  
 - *Wicket *1.4rc2
 - *Web server*: Jetty 6.1.14  (with Apache front-end)
 - *Db*: mysql (ehcache + hibernate)
 - *OS*: Ubuntu 8.04 (Hardy Heron)
  
  
   *Wicket performance* is very good - the slowest element is mysql
  database.
   It's able to serve up to ~130 pages /sec on modern notebook (2Ghz
  Montevina,
   5400 rpm, 3GB RAM).
   On server we haven't tested, but it should be much more.
  
   *Thanks to the community for patiently answering many questions and for
  all
   the support.*
  
   Štefan Šimík
   www.fitcomplex.sk
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



RE: Obtain a Page class via mounted page link

2009-04-20 Thread Douglas Ferguson
This seems to work.


WebRequestCodingStrategy strategy = 
(WebRequestCodingStrategy)PRManagerApplication.get().getRequestCycleProcessor().getRequestCodingStrategy();
BookmarkablePageRequestTarget target = 
(BookmarkablePageRequestTarget)strategy.urlCodingStrategyForPath().decode(new 
RequestParameters());
target.getPageClass();




 Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscr...@yahoogroups.com

From: Douglas Ferguson [doug...@douglasferguson.us]
Sent: Monday, April 20, 2009 1:16 PM
To: users@wicket.apache.org
Subject: Obtain a Page class via mounted page link

Is there a way to look up a mounted page link via the name?

I'm digging through the code but I don't see a way to do this..


Douglas Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscr...@yahoogroups.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



urlFor troubles

2009-04-20 Thread Antoine van Wel
One issue I keep running into when programming with Wicket is using
urlFor... I guess I am missing something.

Now I am trying to redirect to a page;

/hello is mounted to HelloPage using an indexed mounting strategy
/user is mounted to UserPage

when a user types /hello/username, HelloPage captures this and should
redirect to /user ; for that I am using

throw new RedirectToUrlException(urlFor(UserPage.class, params).toString());


However, urlFor will generate ../user/username  instead of /user/username
which will result in a wrong URL in a browser.

Using RequestUtils.toAbsolutePath ( .. ) on it will break my unit test,
since it doesn't like the full path including http://... in combination with
the RedirectToUrlException. (It won't find the UserPage class).

Any thoughts what's the best way to tackle this? Now I just strip off all
the ../ which is being output by urlFor, but that really feels like a
dirty hack.


Using 1.3.5


- Antoine


PS the common setResponsePage or throw RestartResponseException won't do in
this case, since I want the URL in the browser to be displaying
/user/username


-- 

--8--8--
take your photos everywhere you go - http://www.memolio.com
--8--8--
We don't see things as they are, we see things as we are. - Anais Nin
Whether you think you can or whether you think you can't, you're right. -
Henry Ford
--8--8--


Re: urlFor troubles

2009-04-20 Thread Jeremy Thomerson
Have you tried setResponsePage after calling setRedirect(true)?

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 2:14 PM, Antoine van Wel
antoine.van@gmail.comwrote:

 One issue I keep running into when programming with Wicket is using
 urlFor... I guess I am missing something.

 Now I am trying to redirect to a page;

 /hello is mounted to HelloPage using an indexed mounting strategy
 /user is mounted to UserPage

 when a user types /hello/username, HelloPage captures this and should
 redirect to /user ; for that I am using

 throw new RedirectToUrlException(urlFor(UserPage.class,
 params).toString());


 However, urlFor will generate ../user/username  instead of /user/username
 which will result in a wrong URL in a browser.

 Using RequestUtils.toAbsolutePath ( .. ) on it will break my unit test,
 since it doesn't like the full path including http://... in combination
 with
 the RedirectToUrlException. (It won't find the UserPage class).

 Any thoughts what's the best way to tackle this? Now I just strip off all
 the ../ which is being output by urlFor, but that really feels like a
 dirty hack.


 Using 1.3.5


 - Antoine


 PS the common setResponsePage or throw RestartResponseException won't do in
 this case, since I want the URL in the browser to be displaying
 /user/username


 --

 --8--8--
 take your photos everywhere you go - http://www.memolio.com
 --8--8--
 We don't see things as they are, we see things as we are. - Anais Nin
 Whether you think you can or whether you think you can't, you're right. -
 Henry Ford
 --8--8--



Re: urlFor troubles

2009-04-20 Thread Antoine van Wel
Nope, didn't. Great, I didn't know that one, really simple. Saves me from
using the urlFor this time, thanks!

If there's a way to use urlFor in this case without the hacky approach,
I'm still interested to know.


Antoine

On Mon, Apr 20, 2009 at 9:20 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 Have you tried setResponsePage after calling setRedirect(true)?

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Mon, Apr 20, 2009 at 2:14 PM, Antoine van Wel
 antoine.van@gmail.comwrote:

  One issue I keep running into when programming with Wicket is using
  urlFor... I guess I am missing something.
 
  Now I am trying to redirect to a page;
 
  /hello is mounted to HelloPage using an indexed mounting strategy
  /user is mounted to UserPage
 
  when a user types /hello/username, HelloPage captures this and should
  redirect to /user ; for that I am using
 
  throw new RedirectToUrlException(urlFor(UserPage.class,
  params).toString());
 
 
  However, urlFor will generate ../user/username  instead of
 /user/username
  which will result in a wrong URL in a browser.
 
  Using RequestUtils.toAbsolutePath ( .. ) on it will break my unit test,
  since it doesn't like the full path including http://... in combination
  with
  the RedirectToUrlException. (It won't find the UserPage class).
 
  Any thoughts what's the best way to tackle this? Now I just strip off all
  the ../ which is being output by urlFor, but that really feels like a
  dirty hack.
 
 
  Using 1.3.5
 
 
  - Antoine
 
 
  PS the common setResponsePage or throw RestartResponseException won't do
 in
  this case, since I want the URL in the browser to be displaying
  /user/username
 
 
  --
 
  --8--8--
  take your photos everywhere you go - http://www.memolio.com
  --8--8--
  We don't see things as they are, we see things as we are. - Anais Nin
  Whether you think you can or whether you think you can't, you're right. -
  Henry Ford
  --8--8--
 




-- 

--8--8--
take your photos everywhere you go - http://www.memolio.com
--8--8--
We don't see things as they are, we see things as we are. - Anais Nin
Whether you think you can or whether you think you can't, you're right. -
Henry Ford
--8--8--


Re: Custom URL Handling

2009-04-20 Thread Matt Welch


David Leangen-8 wrote:
 
 What version are you using?
 
I'm using 1.4. 

It wouldn't have occurred to me that it would be so difficult. I know it may
seem odd, but URL control is actually very important here because
organization identity is vital in the domain that the app will serve.

Hmmm

Matt

-- 
View this message in context: 
http://www.nabble.com/Custom-URL-Handling-tp23130367p23143850.html
Sent from the Wicket - User 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: Custom URL Handling

2009-04-20 Thread Jeremy Thomerson
In the past, I've accomplished something similar in a hack-ish sort of way
that may work for you.  Basically, I extended the WicketFilter and stripped
the first argument off, storing it in the request before Wicket used the URL
to determine the requested page.  Maybe you can go down a similar route?

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 3:03 PM, Matt Welch matt...@welchkin.net wrote:



 David Leangen-8 wrote:
 
  What version are you using?
 
 I'm using 1.4.

 It wouldn't have occurred to me that it would be so difficult. I know it
 may
 seem odd, but URL control is actually very important here because
 organization identity is vital in the domain that the app will serve.

 Hmmm

 Matt

 --
 View this message in context:
 http://www.nabble.com/Custom-URL-Handling-tp23130367p23143850.html
 Sent from the Wicket - User 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




Which component for gmap for wicket 1.3.5?

2009-04-20 Thread Phillip Rhodes
I see there are a couple gmap projects if I browse to the SVN repo for 
wicketstuff.

http://wicketstuff.org/maven/repository/org/wicketstuff/

For example:
1) gmap2  (updated Mon, 20 Apr 2009)
2) wicket-contrib-gmap2 (updated on Mon, 01 Dec 2008)

I am using wicket 1.3.5  Which component should I be using?


Thanks!




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



Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread nino martinez wael
btw good tip is to fire of browsershorts.org on the pages.. That way
you know if its broken in some browsers..

2009/4/20 Jeremy Thomerson jer...@wickettraining.com:
 I agree - it looks good, even though I don't understand a word of it.

 Does seem like the tabs are broken in FF also - active shows but the content
 doesn't change (right side box thing).

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Mon, Apr 20, 2009 at 1:04 PM, Azzeddine Daddah waarhei...@gmail.comwrote:

 Looks great, and you can see that it's PRO. I think that the tabs do not
 work under Safari. You can see the selected tab is active but the content
 does not change.
 Congratulations anyway.

 Regards,

 Hbiloo

 On Mon, Apr 20, 2009 at 7:22 PM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

  The same theme as my exerciselog.eu although I've taken the exercise
  view of it :) Maybe we should have some interaction (provided you do a
  international site)?
 
  My software setup are almost the same :) With the exception of wicket
  1.3 and tomcat.. Although my server are a p3 500mhz 512mb-ram if it
  gets more serious or runs too slow i'll upgrade it..
 
  2009/4/20 Stefan Simik stefan.si...@gmail.com:
   New site about health, nutrition, exercise and life
   stylehttp://www.fitcomplex.sk/start
  
   We are using stateless pages for public interface, and stateful
 ajaxified
   pages for admin interface.
   Stateless ajax in public is developed using jquery + wicket.
  
   The site is running on:
  
     - *Wicket *1.4rc2
     - *Web server*: Jetty 6.1.14  (with Apache front-end)
     - *Db*: mysql (ehcache + hibernate)
     - *OS*: Ubuntu 8.04 (Hardy Heron)
  
  
   *Wicket performance* is very good - the slowest element is mysql
  database.
   It's able to serve up to ~130 pages /sec on modern notebook (2Ghz
  Montevina,
   5400 rpm, 3GB RAM).
   On server we haven't tested, but it should be much more.
  
   *Thanks to the community for patiently answering many questions and for
  all
   the support.*
  
   Štefan Šimík
   www.fitcomplex.sk
  
 
  -
  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: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread Jeremy Thomerson
Or, browsershots.org - of course, this doesn't actually help with the
problem he is having - which requires a mouse click.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 3:25 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 btw good tip is to fire of browsershorts.org on the pages.. That way
 you know if its broken in some browsers..

 2009/4/20 Jeremy Thomerson jer...@wickettraining.com:
  I agree - it looks good, even though I don't understand a word of it.
 
  Does seem like the tabs are broken in FF also - active shows but the
 content
  doesn't change (right side box thing).
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Mon, Apr 20, 2009 at 1:04 PM, Azzeddine Daddah waarhei...@gmail.com
 wrote:
 
  Looks great, and you can see that it's PRO. I think that the tabs do not
  work under Safari. You can see the selected tab is active but the
 content
  does not change.
  Congratulations anyway.
 
  Regards,
 
  Hbiloo
 
  On Mon, Apr 20, 2009 at 7:22 PM, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
 
   The same theme as my exerciselog.eu although I've taken the exercise
   view of it :) Maybe we should have some interaction (provided you do a
   international site)?
  
   My software setup are almost the same :) With the exception of wicket
   1.3 and tomcat.. Although my server are a p3 500mhz 512mb-ram if it
   gets more serious or runs too slow i'll upgrade it..
  
   2009/4/20 Stefan Simik stefan.si...@gmail.com:
New site about health, nutrition, exercise and life
stylehttp://www.fitcomplex.sk/start
   
We are using stateless pages for public interface, and stateful
  ajaxified
pages for admin interface.
Stateless ajax in public is developed using jquery + wicket.
   
The site is running on:
   
  - *Wicket *1.4rc2
  - *Web server*: Jetty 6.1.14  (with Apache front-end)
  - *Db*: mysql (ehcache + hibernate)
  - *OS*: Ubuntu 8.04 (Hardy Heron)
   
   
*Wicket performance* is very good - the slowest element is mysql
   database.
It's able to serve up to ~130 pages /sec on modern notebook (2Ghz
   Montevina,
5400 rpm, 3GB RAM).
On server we haven't tested, but it should be much more.
   
*Thanks to the community for patiently answering many questions and
 for
   all
the support.*
   
Štefan Šimík
www.fitcomplex.sk
   
  
   -
   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: Localize AjaxSubmitLink

2009-04-20 Thread Maarten Bosteels
Or:
 input wicket:id=save type=submit
wicket:message=value:speichern.textkey/

Maarten

On Mon, Apr 20, 2009 at 5:07 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 link = new AjaxSubmitLink();
 link.add(new AttributeModifier(value, true, new
 ResourceModel(speichern.textkey));

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Mon, Apr 20, 2009 at 6:59 AM, Peter Diefenthaeler pdief...@csc.comwrote:


 Hi,
 is it possible to localize a AjaxSubmitLink?
 I would like to replace Speichern with a localized value from a
 properties file ...

 HTML:
      input wicket:id=save: type=submit value=Speichern/nbsp;
 Java:;
      form.add(new AjaxSubmitLink(save) { ... });

 Thanx, Peter


 -
 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



Passing argument to AjaxAutocompleteBehavior?

2009-04-20 Thread M. Hansen
Hi,

I have implemented a form with a text field that I autocomplete with
AjaxAutocompleteBehaviour from Wicketstuff.

final TextField myTextField = new TextField(myField, new
PropertyModel(myModelObject, myField));
myTextField.add(new AjaxAutocompleteBehavior() {
  protected String[] getResults(String input) {
return new String[] {option1, option2,  optionN}
  }
});

I would like to make getResults(..) dependent on a value that a give
as argument to the Ajax call so the code looks something like this:

myTextField.add(new AjaxAutocompleteBehavior() {
  protected String[] getResults(String input) {
return getOptionsDependentOnArgument(argument);
  }
});

Is there any way I can do that with AjaxAutocompleteBehaviour?

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



Re: Custom URL Handling

2009-04-20 Thread Matt Welch


Jeremy Thomerson-5 wrote:
 
 In the past, I've accomplished something similar in a hack-ish sort of way
 that may work for you.  Basically, I extended the WicketFilter and
 stripped
 the first argument off, storing it in the request before Wicket used the
 URL
 to determine the requested page.  Maybe you can go down a similar route?
 
Thanks. That's something to consider. How did you get wicket to write out
the correct URL's for links though?

-- 
View this message in context: 
http://www.nabble.com/Custom-URL-Handling-tp23130367p23145343.html
Sent from the Wicket - User 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: Custom URL Handling

2009-04-20 Thread Jeremy Thomerson
Oh, yeah - okay, so there was a little difference.  It depends on your setup
- mainly - will you ever need links from two organizations on the same page?

Basically, what I was doing was creating branded sites.  So, here's the gist
of what I had:

Apache frontend, based on site, would proxy to Tomcat with an additional
path element ahead of the proxy like this:

Your request URL:  www.site-one.com/foo
Apache proxied to Tomcat: www.site-one.com/org-one/foo
My filter modified that so that it was again /foo and stuck the org into the
session
So, the Wicket-generated links of /foo or /bar worked fine - because the org
didn't actually appear in the URL *path* - it was based on URL *domain*

Does that make sense?  I guess it would only work if you could use domain or
subdomain based orgs rather than URL path based.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Apr 20, 2009 at 4:32 PM, Matt Welch matt...@welchkin.net wrote:



 Jeremy Thomerson-5 wrote:
 
  In the past, I've accomplished something similar in a hack-ish sort of
 way
  that may work for you.  Basically, I extended the WicketFilter and
  stripped
  the first argument off, storing it in the request before Wicket used the
  URL
  to determine the requested page.  Maybe you can go down a similar route?
 
 Thanks. That's something to consider. How did you get wicket to write out
 the correct URL's for links though?

 --
 View this message in context:
 http://www.nabble.com/Custom-URL-Handling-tp23130367p23145343.html
 Sent from the Wicket - User 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: Custom URL Handling

2009-04-20 Thread David Leangen

  What version are you using?
 
 I'm using 1.4.

Ok, then I can't really help you much.

 URL control is actually very important here because
 organization identity is vital in the domain that the app will serve.

Agreed. IIUC, it may be easier in 1.4:

  http://www.nabble.com/-PROPOSAL--Use-path-in-URL-when-target-is-instance-o
f-BookmarkablePageRequestTarget-td18188845.html


Good luck! Please let me know how this works out.

Cheers,
=David




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



Re: tinymce textarea

2009-04-20 Thread fachhoch


here my code for textarea

public class CustomTextAreaT extends TextAreaT {

/**
 * 
 */
private static final long serialVersionUID = 1L;

public static final AttributeModifier  rows=new
AttributeModifier(rows,true, new ModelString(8));

public static final AttributeModifier  cols=new
AttributeModifier(cols,true, new ModelString(120));

public static final AttributeModifier  maxlength=new
AttributeModifier(maxlength,true, new ModelString(4000));


public CustomTextArea(String id) {
super(id);
add(rows);
add(cols);
add(maxlength);
add(new AuditBehaviour.TextAreaBeahaviour());
}



}


code for  AuditBehaviour.TextAreaBeahaviour()

public static class TextAreaBeahaviour  extends  JQueryBehavior{
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascriptReference(TEXTAREA_MAX_LENGTH);
response.renderJavascriptReference(TINY_MCE);

response.renderJavascript(((AuditWicketApplication)Application.get()).getTextAreaMaxLengthScript(),
null); 

response.renderJavascript(((AuditWicketApplication)Application.get()).getTinymceScript(),
null); 
}
}

scripts 

for max length i am using jquery   maxlength validation


jQuery(document).ready(function($) {
 //Set maxlength of all 
the textarea (call plugin)
 $().maxlength();
})


for text area

inyMCE.init({ mode : textareas });  

 and as the later guy suggested I am using ajaxlink to submit my form  does 
ajaxlink has any issues with tinynmce ?
and when form is posted the my model get updated with   pbr
mce_bogus=1/p  and not the actual text   









Jeremy Thomerson-5 wrote:
 
 I think TinyMCE always uses an iframe - because it loads an editable
 document in it.  I don't think that's your problem.  Show us all of the
 relevant code (your java and html code).
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Mon, Apr 20, 2009 at 9:50 AM, tubin gen fachh...@gmail.com wrote:
 
 I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
 is the  tinymce java scriopt is repalce my textarea html with an
 iframe


 this  is my html , but the   style=display: none; is added by tinymce
 textarea maxlength=4000 cols=120 rows=8
 name=reassignmentComments wicket:id=reassignmentComments
 id=reassignmentComments style=display: none;/

 and code generated by tinymce is   lot,  but the problem is it uses
 iframe and because of  which the textarea value is not posted to my
 form   , please help me integrating tinymce

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


 
 

-- 
View this message in context: 
http://www.nabble.com/tinymce-textarea-tp23138273p23145724.html
Sent from the Wicket - User 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: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-20 Thread Martin Grotzke
Congrats! A nice site and really fast!

You're mentioning stateless ajax with jquery: can you give some pointers
how you did this?

Cheers,
Martin


On Mon, 2009-04-20 at 18:22 +0200, Stefan Simik wrote:
 New site about health, nutrition, exercise and life
 stylehttp://www.fitcomplex.sk/start
 
 We are using stateless pages for public interface, and stateful ajaxified
 pages for admin interface.
 Stateless ajax in public is developed using jquery + wicket.
 
 The site is running on:
 
- *Wicket *1.4rc2
- *Web server*: Jetty 6.1.14  (with Apache front-end)
- *Db*: mysql (ehcache + hibernate)
- *OS*: Ubuntu 8.04 (Hardy Heron)
 
 
 *Wicket performance* is very good - the slowest element is mysql database.
 It's able to serve up to ~130 pages /sec on modern notebook (2Ghz Montevina,
 5400 rpm, 3GB RAM).
 On server we haven't tested, but it should be much more.
 
 *Thanks to the community for patiently answering many questions and for all
 the support.*
 
 Štefan Šimík
 www.fitcomplex.sk


signature.asc
Description: This is a digitally signed message part


setConvertedInput

2009-04-20 Thread Kurt Heston
I'm building a StartAndEndDateTime form component based on Eelco's 
DateTimeField.  It is essentially the same as his with the time fields 
repeated.


The goal is to get my new custom component to update two date fields in 
the parent form's model.  Here is what the end of my convertInput() 
method look like:

pre
   Object mdlObj = getForm().getModelObject();
   new PropertyModel(mdlObj, svcDate).setObject(new Date(date
   .getMillis()));
   new PropertyModel(mdlObj, endSvcDate).setObject(new Date(endDate
   .getMillis()));

   setConvertedInput(tried a number of things here);
/pre

I'm doing something wrong with setConvertedInput:

pre
ERROR org.apache.wicket.RequestCycle  - Error calling method: public 
void MyClass.setSvcDate(java.util.Date) on object: mycl...@e56328

/pre

If I'm setting two fields in the Model, what should I pass to 
setConvertedInput?


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



Re: Wicket portlet into liferay

2009-04-20 Thread Tonio Caputo
Hi,

I've tried with liferay 5.2.2 tomcat6/tomcat55/jetty6.1.14, and no success.

In both tomcat, application is deployed, but when put into a page, the
application
is not shown.

In jetty, the application doesn't get deployed.

In all cases there is no log, or any message that let me know what is
happening.

Any help will be greatly welcome
Wicket is really a nice framework (the nicer I've seen), and it would be
wonderful if I can use it instead JSP framework provided by liferay.

Thanks in advance
tonio

On Mon, Apr 20, 2009 at 12:21 PM, Tonio Caputo ton...@exeo.com.ar wrote:

 Hi wicket users,

 I'm a newbie in wicket and portlets, I'm involved in trying to find a
 web framework to create portlets in a liferay portal, my duty is to
 try wicket and see if it works.

 Versions   wicket 1-4-rc2
  liferay 5.2

 After reading  Issue https://issues.apache.org/jira/browse/WICKET-1620, it
 seems clear
 that this is possible.

 Reading wicket portlet examples, I realized there is a lot of stuff in
 WicketPortlet, that
 is a bit difficult to understand for a newbie for both things
 (wicket/portlet).

 I'll just like to know, if this is the correct example after WICKET-1620,
 or perhaps there
 is a simpler one.

 Thanks in advance
 tonio




components are not rendering help me out

2009-04-20 Thread Geeta Madhavi
Hi ,

I am newbie to the wicket i have a homepage where i have link on click of
link i should go tot he other page i have added the link in the code but
still it is telling that components fail to render i have multiple pages
like this i need to give link on click on the link or submit button it
should go to another pages how to do this.

Please tell me i am using this in the constructor of home page wchic extends
webpage

Link linkToNext = new Link(NextPage)
{
 public void onClick(){
  // Set the response page
  setResponsePage(CategoryHome.class);
}
  };
  form.add(linkToNext);

in html it is simple as
form wicket:id=home
 strongWicket Quickstart Archetype Homepage/strong
br/br/
h1Wicket list application/h1
DbSandbox LLC limited Development center is hyderabad Head office is USA


a href=# wicket:id=NextPageFor selection category simulation click
here /abr/br/

/form

so please tell me how my components will render such that i go to another
page using link


Regards,
Geeta


LinkedIn poll about Wicket

2009-04-20 Thread Fabrizio Giudici
http://polls.linkedin.com/p/33616/pikzw 
http://www.linkedin.com/e/plh/http%3A%2F%2Fpolls%2Elinkedin%2Ecom%2Fp%2F33616%2Fpikzw/FkIa/ 



--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941



Re: components are not rendering help me out

2009-04-20 Thread Per Newgro

Please provide the stacktrace of your exception.

Cheers
Per

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