Re: Wicket and RSS

2009-08-20 Thread Roman Zechner

you can simply use rome itself, it's easy to use.

-roman

VGJ wrote:

I've got a simple RSS feed I'm trying to display on a page.  Is
wicketstuff-rome dead?  Is there a better way?  I'm not a maven user (not
even familar with it) - so are there any jars I can download somewhere for
wicketstuff-rome, if it's not dead?

Appreciate the help, thanks.

  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at
http://www.Liland.at 

office: +43 (0)463 220-111  | fax: +43 463 220-111 DW 33 
mobil: +43 (0) 699 122 011 28



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



Re: How to configure data source for Jetty server?

2009-07-08 Thread Roman Zechner



Peter Thomas wrote:

On Tue, Jul 7, 2009 at 2:08 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

  

http://docs.codehaus.org/display/JETTY/JNDI

-igor

On Mon, Jul 6, 2009 at 1:22 PM, Petr Fejfarpetr.fej...@gmail.com wrote:


Hi all,

When I've started learning Wicket, I followed configuration described
in the book Enjoy web dev ...

Now I'm trying to migrate my project under Maven's management. I seem
to be almost
finished except data source configuration in the Tomcat's context file:

 Resource
   name=jdbc/trackerDataSource
   auth=Container
   type=javax.sql.DataSource
   driverClassName=org.postgresql.Driver
   url=jdbc:postgresql://localhost/tracker
   username=xxx
   password=xxx
   maxActive=20
   maxIdle=8
   defaultAutoCommit=false
   defaultTransactionIsolation=SERIALIZABLE
   testOnBorrow=true
   validationQuery=select 1/

Please, could somebody show me how to achieve
the same effect in Jetty's configuration?

  


A couple of tips to do the Jetty DataSource JNDI configuration the 'wicket
way' - in code, instead of xml.

Use a datasource implementation like org.apache.commons.dbcp.BasicDataSource

In the Start.java that you get after following the instructions here:
http://wicket.apache.org/quickstart.html

Add the following:

BasicDataSource ds = new BasicDataSource();
ds.setUrl(jdbc:hsqldb:.);
ds.setDriverClassName(org.hsqldb.jdbcDriver);
ds.setUsername(sa);
ds.setPassword();

NamingEntry.setScope(NamingEntry.SCOPE_GLOBAL);
// this line actually registers object in jetty jndi
new Resource(java:/mydatasource, ds);

And you can refer the documentation of Apache DPCP to set properties like
this:

ds.setValidationQuery(SELECT 1);

Thanks,

Peter.

  
In development we are using jetty with a data source from a 
src/main/webapp/WEB-INF/jetty-env.xml. We also deploy to jetty servers 
in production and use the jetty-env.xml. Btw, does anyone know how to 
set the hibernate.dialect via JNDI?


Thanks,

Roman

Thanks, 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





  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at
http://www.Liland.at 

office: +43 (0)463 220-111  | fax: +43 463 220-111 DW 33 
mobil: +43 (0) 699 122 011 28



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



LogoutPage: PageParameters not set after redirecting to LoginPage

2009-05-28 Thread Roman Zechner

hi all,

we are having a strange problem with page parameters. when the user logs 
out we call LogoutPage:

...
PageParameters parameters = new PageParameters();
parameters.put(client, signature);
setResponsePage(LoginPage.class, parameters);


in LoginPage we do:
...
String signature = params.getString(client);   
...

but signature is empty ... any idea how this can happen?

thanks in advance, roman

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



Re: Maven setup

2009-05-06 Thread Roman Zechner

hi,

also check `mvn deploy` - you can use that to export your war with 
scp://, for maven eclipse integration check m2eclipse.
as for lighttpd, i don't know, but i remember there was no ajp connector 
available last time i was searching, let us know if you have some 
experience on that!

oh, and a comparison one day between django and wicket would be cool ... :-)

cheers, roman

Null kühl wrote:

Hi,

Kindly have a look on this webpage, www.ilearnzone.com/wicket.html
It's a video tutorial that explains kicking off with wicket along with maven
+ tomcat/jetty :)
it also explains kicking off without maven.

Regards,
Ahmed M.


On Wed, May 6, 2009 at 4:11 PM, Frank Tegtmeyer 
frank.tegtme...@online-systemhaus.com wrote:

  

Eyal Golan egola...@gmail.com wrote:


Have you checked http://wicket.apache.org/quickstart.html ?
  

Yes I saw it some day but forgot about it. Thanks for
pointing there.

Thanks also to Linda and Steve. All this was very helpful.

Regards, Frank


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





  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



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



Re: Package all CSS and JS

2009-04-09 Thread Roman Zechner

Hi Eduardo!

I remember there was once a discussion here on the mailing list, I think 
part of that was


http://techblog.molindo.at/2008/08/wicket-interface-speed-up-merging-resources-for-fewer-http-requests.html

Roman


Eduardo Nunes wrote:

link href=... / for the css
and
script language=javascript src=... / for the javascripts


On Thu, Apr 9, 2009 at 11:57 AM, Eduardo Nunes esnu...@gmail.com wrote:
  

I think that I didn't explain it right. What I want is that wicket
concatenate all included javascripts into one file. Something like
wicket:link
 link.. javascript1.js /
 link.. javascript2.js /
 link.. javascript3.js /
/wicket:link

Generate just one resource with javacript1.js, javacript2.js and
javacript3.js concatenated. The reason for that is to reduce the
number of requests. I have a project that includes almost 10
javascripts files and around 7 css files, it would be faster if the
browser has to download just 2 files, one for all javascript and
another one for css.

I can do it with a servlet or something like this, but I want a
solution that works inside wicket, that i don't have to change my
source code.

Probably wicket has a piece of source code responsible for the
wicket:head tag, If I could intercept it and get all included
javascripts, remove them from the generated html and include my own
resource with all javascripts concatenated, I would be happy hehehe

Please ask me if you don't understand, I have to improve my english :(

Thanks,
Eduardo S. Nunes

On Thu, Apr 9, 2009 at 11:42 AM, Craig Tataryn crai...@tataryn.net wrote:


On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com wrote:

  

Hi,

 Is there a way to tell wicket to package all referenced javascripts
together, the same for the css? If there isn't this solution yet, can
anyone tell me where should I look for to implement it?



You can put your resources, like css and javascript, directly in your
packages either under src/main/java or src/main/resources and include them
through header inclusions using a ResourceReference

Craig.


  

Thanks,
Eduardo S. Nunes

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




--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger...@hotmail.com, skype: craig.tataryn

  


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

  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



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



Re: AjaxFallbackDefaultDataTable: redirect to specific page

2009-04-07 Thread Roman Zechner

thanks!!

Igor Vaynberg wrote:

new link(edit) {
  onclick() {
  setresponsepage(new editpage(getpage().getpagereference(), getmodel()));
  }
}

class editpage {

  public editpage(pagereference ref, imodel model) {


setresponsepage(ref.getpage());
  }
}

-igor


On Tue, Apr 7, 2009 at 12:12 PM, Roman Zechner roman.zech...@liland.at wrote:
  

how can i make sure to get back to the same page of a
AjaxFallbackDefaultDataTable that i came from after a redirect?
e.g.:
1. i am on page 3 of a table of persons (listpage).
2. i click on a row to edit a person (detailpage).
3. after submitting changes, i redirect to the listpage again, but i land on
page 0 instead of page 3

what would be the best approach?

roman


-
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

  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



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



AjaxFallbackDefaultDataTable: redirect to specific page

2009-04-07 Thread Roman Zechner
how can i make sure to get back to the same page of a 
AjaxFallbackDefaultDataTable that i came from after a redirect?

e.g.:
1. i am on page 3 of a table of persons (listpage).
2. i click on a row to edit a person (detailpage).
3. after submitting changes, i redirect to the listpage again, but i 
land on page 0 instead of page 3


what would be the best approach?

roman


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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Roman Zechner



Daan van Etten wrote:

FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework 
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
 - WicketFX, Spri..
Wow! You are so cool!


Hahahaha!!! Oh glourious future, I await thee :-)))

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende geschreven:


Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote:


Please excuse my EXTREME ignorance, but what exactly does or will the

FX

mean from a Wicket standpoint?  What does it do or allow a developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This information
is intended only for the use of the individual or entity named above.
The authorized recipient of this information is prohibited from

disclosing

this information to any other party unless required to do so by law
or regulation and is required to destroy the information after its

stated

need has been fulfilled. If you are not the intended recipient, you

are

hereby notified that any disclosure, copying, distribution, or action
taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.


-
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



Re: CheckBoxMultipleChoice: change markup from label to span

2009-03-30 Thread Roman Zechner

thanks for the hint!

jcgarciam wrote:

Hi,

I guess the solution would be using a 
http://cwiki.apache.org/WICKET/listview-with-checkboxes.html ListView  in

conjunction with a CheckGroup object in order to achieve what you want.


Roman Zechner | Liland wrote:
  

is there a way to change the markup of CheckBoxMultipleChoice?
CheckBoxMultipleChoice.onComponentTagBody() is final ... I need to 
change the label tag to 


thanks

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






  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



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



Re: best way to add tooltips in wicket

2009-03-26 Thread Roman Zechner

have a look at sweet titles

http://www.dustindiaz.com/sweet-titles/

James Carman wrote:

If you're interested in using static tooltips that are styled, we've
had good luck with overlib.

On Thu, Mar 26, 2009 at 5:34 AM, RoyBatty math...@afjochnick.net wrote:
  

Right, thanks for all the input.

I did try mootips now, and they both work fine. One thing i noticed, though,
was that mootips seemed to glich more than prototips, i.e. i seems more
performance-heavy? Am i imagining this? :) (i'm setting the mootip up as in
the example)

Currently we have no need for ajax-fetched tooltips, but i guess it's good
to use the one that has the functionality.



nino martinez wael wrote:


Yeah there are dozens of ways doing it easy with static tooltips.. But
if you want easy ajax tooltips, mootip are the only way with wicket
right now I believe. Especially because they are truly dynamic.

And im not saying mootip are the best, it was just the only one (at
the time and which I found) which fitted good with wicket ajax.

  

--
View this message in context: 
http://www.nabble.com/best-way-to-add-tooltips-in-wicket-tp22697930p22718604.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





-
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: LocaleDropDown does not switch locale anymore when deployed on server

2009-03-02 Thread Roman Zechner
Solved - at least I found a work around. It was a server issue. We were 
missing de_DE locale files on the system. 
But I still had to explicitly set the system variable LC_ALL to 
de_DE.ISO-8859-1, before restarting tomcat.


Shouldn't the JVM come with full I18N support already? Well, it works, 
but if anyone has an explanation for this behaviour, I'd be happy.


Cheers, Roman


Roman Zechner wrote:

Hi,

we are using the LocaleDropDown component mentioned in Wicket in Action.
While it works on the local machine, it does not when deployed on our 
server.
We need to switch between German and English. German works on my local 
machine,

on the server it doesn't.

Any ideas?

Roman



-
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



LocaleDropDown does not switch locale anymore when deployed on server

2009-02-26 Thread Roman Zechner

Hi,

we are using the LocaleDropDown component mentioned in Wicket in Action.
While it works on the local machine, it does not when deployed on our 
server.
We need to switch between German and English. German works on my local 
machine,

on the server it doesn't.

Any ideas?

Roman



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



Re: Wicket 1.3.5 behind a front-end proxy

2008-11-21 Thread Roman Zechner

Maybe this is related to servlet mapping?

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-WicketServletMapping

Roman

Anton Veretennikov schrieb:

To get Apache 2.2 to proxy around Wicket, I have the following defined:

IfDefine PROXY
   ProxyPass   /
http://localhost:8080/cware/
   ProxyPassReverse/
http://localhost:8080/cware/
   ProxyPassReverseCookieDomainlocalhost   .laccetti.com
   ProxyPassReverseCookiePath  /cware  /
/IfDefine

Nothing special required in the web.xml, Tomcat doesn't know that it is
being proxied, etc.

HTH,

Mike



My configuration is about the same.

ServerAlias wicket.ru
ProxyPass /stats/ !
ProxyPass /webmail/ !
ProxyPass /lxadmin/ !
ProxyPass  /
ajp://localhost:8858/WicketRu/
ProxyPassReverse  /   ajp://localhost:8858/WicketRu/
ProxyPassReverseCookiePath /WicketRu /

Only AJP protocol is different, cookies work OK - domain and path are
set correctly,
session id is not generated again after every GET.

I'll repeat the problem:
Application is WicketRu. It works correctly when accessed through full URL.
Alias is wicket.ru
http://wicket.ru opens. But links don't work.
wicket.ru on the top is a Link with onClick() and
setResponsePage(Index.class).
Click on it shows 404 with ***strange*** ***double WicketRu.

I think something wrong with relative path.
Wicket 1.3.5

Tony.

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

  


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



Re: Hot deployment / code swapping

2008-09-10 Thread Roman Zechner
I am using the maven jetty plugin in development and it works fine for 
me. I don't see why you shouldn't use it as Martijn pointed out?
If there's a need, I can post the required configuration here. I am 
working under WinXP, all my stuff is redeployed after changes have been 
made when working with `cmd`, only if I am working with cygwin, it 
doesn't recognize changes made to files other than .java


Roman

Eyal Golan wrote:

Regarding the embedded jetty, do you know if it is possible to point it to
an external WAR so it will be as if deployed as well?
I looked into Jetty's document but didn't find.

On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

  

The maven jetty plugin is not meant for development, but for quick
demos. Stop trying to use the jetty plugin for something it is not
intended for. The Wicket quickstart project provides a very well
functioning embedded jetty server, which runs like a charm in the
Eclipse debugger (and IDEA and Netbeans debugger) providing everything
Java offers without *any* additional configuration.

Setting up your Wicket project is described in detail in Wicket in
Action's bonus chapter, available from the Manning website
(http://manning.com/dashorst)

Martijn

On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED] wrote:


Hi Martijn,

So this means that the wicket quickstart project does NOT do it out of
  

the


box? Which obviously goes for non-maven-projects too then? That's good to
know, I obviously have been terribly misinformed then...

Even though it will obviously take me some more time to figure out how
  

this


can be achieved, all the more in a project that does not use maven - if
anybody knows a good site regarding to this, i'd be happy to see a link
  

:)


Thanks a lot


Martijn Dashorst wrote:
  

The maven jetty plugin needs to be configured separately. See its
documentation regarding hot deployment.



--
View this message in context:
  

http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html


Sent from the Wicket - User mailing list archive at Nabble.com.


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


  


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

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






  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: [EMAIL PROTECTED]

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



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



Re: Hot deployment / code swapping

2008-09-10 Thread Roman Zechner
I don't know about the time efforts in using your suggested way, but by 
using the maven jetty plugin you only have to configure the project 
once, so each new developer joining the project doesn't have to make any 
configuration on its's IDE.


In that way you always provide kind of a quickstart for your own project :-)

But maybe I should give it a try, I can imagine that development will be 
faster using hotswap.


Roman


Martijn Dashorst wrote:

Because of discussions such as this. I'd like folks to actually use an
IDE and the quickstart as it was intended. We made the quickstart so
that this type of questions don't get asked—saves time, energy and
frustrations on both ends.

mvn jetty:run is nice to quickly test a web project, but not for
development. As you mentioned redeployment— with the embedded jetty in
a debugger redeployment is often not necessary when you use hotswap.
If you haven't used that, you're missing out. With JavaRebel things
are even brighter—no redeployment or restarting of servers (but I
haven't toyed with their latest releases)

Martijn

On Wed, Sep 10, 2008 at 3:53 PM, Roman Zechner [EMAIL PROTECTED] wrote:
  

I am using the maven jetty plugin in development and it works fine for me. I
don't see why you shouldn't use it as Martijn pointed out?
If there's a need, I can post the required configuration here. I am working
under WinXP, all my stuff is redeployed after changes have been made when
working with `cmd`, only if I am working with cygwin, it doesn't recognize
changes made to files other than .java

Roman

Eyal Golan wrote:


Regarding the embedded jetty, do you know if it is possible to point it to
an external WAR so it will be as if deployed as well?
I looked into Jetty's document but didn't find.

On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:


  

The maven jetty plugin is not meant for development, but for quick
demos. Stop trying to use the jetty plugin for something it is not
intended for. The Wicket quickstart project provides a very well
functioning embedded jetty server, which runs like a charm in the
Eclipse debugger (and IDEA and Netbeans debugger) providing everything
Java offers without *any* additional configuration.

Setting up your Wicket project is described in detail in Wicket in
Action's bonus chapter, available from the Manning website
(http://manning.com/dashorst)

Martijn

On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED]
wrote:



Hi Martijn,

So this means that the wicket quickstart project does NOT do it out of

  

the



box? Which obviously goes for non-maven-projects too then? That's good
to
know, I obviously have been terribly misinformed then...

Even though it will obviously take me some more time to figure out how

  

this



can be achieved, all the more in a project that does not use maven - if
anybody knows a good site regarding to this, i'd be happy to see a link

  

:)



Thanks a lot


Martijn Dashorst wrote:

  

The maven jetty plugin needs to be configured separately. See its
documentation regarding hot deployment.




--
View this message in context:

  

http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html



Sent from the Wicket - User mailing list archive at Nabble.com.


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



  

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

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






  

--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: [EMAIL PROTECTED]

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at

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







  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: [EMAIL PROTECTED]

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



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



Re: Hot deployment / code swapping

2008-09-10 Thread Roman Zechner
Sorry, I misinterpreted your previous post. I will check the bonus 
chapters of WiA.


Roman

Martijn Dashorst wrote:

I don't have to configure anything. run the archetype command, import
project into eclipse, right click on Start class select Debug as Java
application and I'm done. I don't know what configuration you are
talking about, but I don't have to meddle with external jetty
configurations, making sure that the resources are copied over etc, or
redeploy on each compile.

Martijn

On Wed, Sep 10, 2008 at 4:38 PM, Roman Zechner [EMAIL PROTECTED] wrote:
  

I don't know about the time efforts in using your suggested way, but by
using the maven jetty plugin you only have to configure the project once, so
each new developer joining the project doesn't have to make any
configuration on its's IDE.

In that way you always provide kind of a quickstart for your own project :-)

But maybe I should give it a try, I can imagine that development will be
faster using hotswap.

Roman


Martijn Dashorst wrote:


Because of discussions such as this. I'd like folks to actually use an
IDE and the quickstart as it was intended. We made the quickstart so
that this type of questions don't get asked—saves time, energy and
frustrations on both ends.

mvn jetty:run is nice to quickly test a web project, but not for
development. As you mentioned redeployment— with the embedded jetty in
a debugger redeployment is often not necessary when you use hotswap.
If you haven't used that, you're missing out. With JavaRebel things
are even brighter—no redeployment or restarting of servers (but I
haven't toyed with their latest releases)

Martijn

On Wed, Sep 10, 2008 at 3:53 PM, Roman Zechner [EMAIL PROTECTED]
wrote:

  

I am using the maven jetty plugin in development and it works fine for
me. I
don't see why you shouldn't use it as Martijn pointed out?
If there's a need, I can post the required configuration here. I am
working
under WinXP, all my stuff is redeployed after changes have been made when
working with `cmd`, only if I am working with cygwin, it doesn't
recognize
changes made to files other than .java

Roman

Eyal Golan wrote:



Regarding the embedded jetty, do you know if it is possible to point it
to
an external WAR so it will be as if deployed as well?
I looked into Jetty's document but didn't find.

On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:



  

The maven jetty plugin is not meant for development, but for quick
demos. Stop trying to use the jetty plugin for something it is not
intended for. The Wicket quickstart project provides a very well
functioning embedded jetty server, which runs like a charm in the
Eclipse debugger (and IDEA and Netbeans debugger) providing everything
Java offers without *any* additional configuration.

Setting up your Wicket project is described in detail in Wicket in
Action's bonus chapter, available from the Manning website
(http://manning.com/dashorst)

Martijn

On Wed, Sep 10, 2008 at 3:05 PM, pixologe [EMAIL PROTECTED]
wrote:




Hi Martijn,

So this means that the wicket quickstart project does NOT do it out of


  

the




box? Which obviously goes for non-maven-projects too then? That's good
to
know, I obviously have been terribly misinformed then...

Even though it will obviously take me some more time to figure out how


  

this




can be achieved, all the more in a project that does not use maven -
if
anybody knows a good site regarding to this, i'd be happy to see a
link


  

:)




Thanks a lot


Martijn Dashorst wrote:


  

The maven jetty plugin needs to be configured separately. See its
documentation regarding hot deployment.





--
View this message in context:


  

http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html




Sent from the Wicket - User mailing list archive at Nabble.com.


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




  

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

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





  

--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: [EMAIL PROTECTED]

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288
http://www.Liland.at

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







  

--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: [EMAIL PROTECTED]

office

Re: Hot deployment / code swapping

2008-09-10 Thread Roman Zechner
Now I am using the embedded jetty server as suggested in the bonus 
chapters of Wicket in Action.
But Spring complains that it is missing a bean dataSource, so I set 
the jetty deployment descriptor with


WebAppContext bb = new WebAppContext(); 
bb.setDefaultsDescriptor(etc/jetty-env.xml);


But it's still not working - any ideas?

Roman

Igor Vaynberg wrote:

wicket does not provide anything in the way of deployment. what it
does in dev mode is monitor any changes to html/properties files and
when they are changed it evicts them from cache so next time you
reload the page you see the changes. obviously wicket does not know
where your source file live, so it can only monitor files in the
classes dir by default. usually your ide copies html/properties to the
right place automatically when you change them so it is nice and
transparent and magical, but that involves using an ide...

-igor

On Wed, Sep 10, 2008 at 3:57 AM, pixologe [EMAIL PROTECTED] wrote:
  

Hi everybody,

I have read in some older messages of this list that wicket by default takes
care of re-deploying changed classes and HTML files, does that still apply?

It does not work for me, not even with a fresh quickstart project. Neither
HTML files nor Java classes are reloaded when they are changed.

Are there any issues with this under certain circumstances (e.g. having
vista ;-)?

What I just did is this:



mvn archetype:create -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4
-DgroupId=com.mycompany -DartifactId=myproject

cd myproject

mvn package

mvn jetty:run

[changed HomePage.class and HomePage.html]



The changes do not have any effect until I restart jetty.

Any hints on this issue are highly appreciated, thanks a lot in advance!
--
View this message in context: 
http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19410295.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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





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

  


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



Groovy + Spring + Wicket

2008-09-08 Thread Roman Zechner
I was courious on how to integrate Groovy in Wicket via Spring. I want 
to trigger a script via onSubmit action. The groovy script should print 
some lines on the console. But the code is never executed (at least it 
seems so).


We are using the mvn jetty plugin, there are no problems, neither during 
startup, nor in running mode. The script lies in target/Lime.groovy, so 
there is no Lime.class.


Roman

If anybody else is interested in that problem, here's the code:


ILime.java:

public interface ILime {
   public void roll();
}
...

Lime.groovy:

class Lime implements ILime {
   void roll() {
   println Some nice text here
   }
}
...


applicationContext.xml:

...
lang:groovy id=lime
   
script-source=classpath:org/liland/webapps/myproject/scripts/Lime.groovy/
  
   bean id=importTool

   class=org.liland.webapps.myproject.pages.contact.ImportTool
   property name=lime ref=lime/
   /bean   
...




ImportDetailPage.java:
...
private class ImportDetailsForm extends Form {
  //calls the script
   private ImportTool importTool;
protected void onSubmit() {
   try {
   importTool.doSth();
   }...
   }
}
...


A helper class that gets the script injected
ImportTool.java:

private ILime lime; //inject this via Spring

public void doSth() {
   out.println(doSth); //shows up at the console
   lime.roll();  //execute groovy script, but does NOT show up at 
the console?

   }

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



Re: Groovy + Spring + Wicket

2008-09-08 Thread Roman Zechner



Julien Graglia wrote:

Le lundi 08 septembre 2008 à 14:41 +0200, Roman Zechner a écrit :
  
I was courious on how to integrate Groovy in Wicket via Spring. I want 
to trigger a script via onSubmit action. The groovy script should print 
some lines on the console. But the code is never executed (at least it 
seems so).



It's a bit off topic, but you could look at Grails (1) and his wicket
plugin (2). Grails use Groovy and Spring. I have just played with the
examples, but it seems cool...

1 :  http://grails.org/
2 : http://www.grails.org/Wicket+Plugin

  
Thank's Julien, I already checked out Grails before, but since our 
project is built on Wicket, this is not an option :-(





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



Re: Making entire row editable in a DataTable

2008-05-07 Thread Roman Zechner
Hm .. maybe you should have a look at the Editable TreeTable to get some 
ideas


http://wicketstuff.org/wicket13/ajax/tree/table/editable

ChuckDeal wrote:

If you have a handle to the Item instance represetning the cell, then you can
do something like

cell.findParent(Item.class)

which will get you the row's Item instance, on which you can call
row.getModel()

FWIW, the inmethod grid is excellent, but it does require pretty big changes
in order to replace an exisiting *complex* DataTable

Chuck


Sathish Gopal wrote:
  

If i need to adopt to this API, then i need to rewrite the entire Page
class. Is there any other solution.

How do i get hold of the rowModel(org.apache.wicket.markup.repeater.Item)
in the DataView when one of the columns is selected. There must be way to
get the rowModel for some event trigger in a column...


Jonathan Locke wrote:


don't know the answer, but just thought you should know about this FYI:

http://inmethod.com/


Sathish Gopal wrote:
  

Hi all,

I've built a DataTable(AjaxFallbackDataTable) to display list of values.
My requirement is that by clicking (Link) one of the coloumns in any
given row should make the row (all the columns) editable.
I've used AjaxEditlabel as cell renderer for all the columns. How to
change the underlying editor of all the column in a specific row?


  



  


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



Re: Sortable(DnD) editable TreeTable

2008-04-21 Thread Roman Zechner
Noone else interested in a similar component? What is the meaning of 
tree.updateTree(target)?
In the code sample below I expect the tree to be reloaded when the 
button is pressed, but nothing happens.

What am I doing wrong?

Cheers, Roman

Roman Zechner wrote:

i am building a variant of matej knopp's cool editable treetable.
i am using jquery for the drag'n drop operations on it's rows.
now if i have my new tree in DOM, how can i submit it back to the server?

the idea is simple:
1. change the DOM of the tree, i.e. change the order of rows
2. submit it via a save button
3. save the new tree on the serverside and update tree on view



form.add(tree)
form.add(new AjaxFallbackButton(save, new ResourceModel(save), 
form) {

   @Override
   protected void onSubmit(AjaxRequestTarget target, Form form) {
   TreeTable treeTable = (TreeTable) 
findParent(TreeTable.class);

   // do some db work
   tree.updateTree(target); //this does nothing? no redraw 
of tree as expected?!

   }
}

thanks,

roman

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



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



Re: Weird Ajax non-English characters encoding problem.

2008-04-11 Thread Roman Zechner

Hi Nils,

in order for AJAX to work properly configure your Tomcat connector with 
URIEncoding=UTF-8 as shown here:

http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html

Roman

Nils Tesdal schrieb:

Hi,

This thread is a few months old now but I have the same problem now... 
Scandinavian characters aren't encoded and decoded in the same way when using 
ajax POST requests and tomcat.

To me the problem seems to be that wicket does not specify the encoding in the 
ajax request. When tomcat receives the request and doesn't find an attached 
encoding, it defaults to ISO-8859-1 (in my case anyway).

If I change the Content-Type header from application/x-www-form-urlencoded to 
application/x-www-form-urlencoded; charset=UTF-8 by patching the wicket-ajax.js file, it works 
for me!

Did anyone find another solution to this?

Nils

-Opprinnelig melding-
Fra: Johan Compagner [mailto:[EMAIL PROTECTED] 
Sendt: 22. oktober 2007 23:00

Til: users@wicket.apache.org
Emne: Re: Weird Ajax non-English characters encoding problem.

is this reproduceable in a simple testcase? (junit)

johan



On 10/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
  

I'm experiencing a similar problem i.e.  I'm able to submit any Latin
encoded characters but when I'm using an AjaxSubmitButton some characters
are not encoded properly. This happens also specifying the right encoding
with:

getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1);


So it appears to be clear that is an ajax encoding problem with wicket.


Looking at the Wicket ajax code I found the following fragment:

   if (t != null) {
   t.open(POST, url, this.async);
   t.onreadystatechange = this.stateChangeCallback.bind(this);
   t.setRequestHeader(Content-Type,
application/x-www-form-urlencoded);
   t.setRequestHeader(Wicket-Ajax, true);
   t.send(body);
   return true;
   } else {
  this.failure();
  return false;
   }


Now, how is defined the content encoding of an ajax request? I was
expecting
something like charset=defined encoding in the ajax request request
header.

Otherwise how the IRequestCycleSettings#setResponseRequestEncoding() will
affect the charset definition in the ajax call?

Thanks,

Paolo


On 10/22/07, Fabio Fioretti [EMAIL PROTECTED] wrote:


Hi Matej and Johan,

thanks for your replies.

I'm using Latin1 because the page I'm talking about is part of a
legacy web application fully encoded in ISO-8859-1. The application
server it runs on is Tomcat 5.5, which defaults to Latin1, so it
shouldn't be a problem.

I tried to set the request/response encoding in the application main
class using:

getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1);

but nothing changed, except that Wicket Ajax Debug now prints:

INFO:
?xml version=1.0
  

encoding=ISO-8859-1?ajax-response/ajax-response


The problem I'm facing seems the same Stefan Lindner faced last year,
whithout apparently finding a solution. I tried everything he tried.
See link:


  

http://www.nabble.com/AjaxSubmitButton-and-Umlauts-with-ISO-8859-1-%28Wicket-2%29-tf2622064.html


I could migrate the whole application to UTF-8, but I would't do that
for a single textarea in a single page... :-) It's the only page that
needs non-English input.


Any suggestion?


Thanks a lot,

Fabio Fioretti - WindoM


On 10/21/07, Matej Knopp [EMAIL PROTECTED] wrote:
  

I don't know tbh. I believe the request body is encoded in UTF-8.
People usually use UTF-8, so no-one was complaining before. Can't you
just use UTF-8? It's much safer than latin1.

-Matej

On 10/20/07, Johan Compagner  [EMAIL PROTECTED] wrote:


are you configuring wicket and you appserver correctly?
in wicket you have to set the encoding you want to use
why not just use utf8?
else matej?
How does the ajax submit work with encoding?
It is still a normal post and how do we interpret it?


On 10/19/07, Fabio Fioretti  [EMAIL PROTECTED] wrote:
  

Hi all,

thanks in advance for your time and suggestions.

I'm building a really simple page made up of a form with a text


area


and a submit button (instance of Button). An


AjaxFormSubmitBehavior


that performs the save operation is added to the button. The


page


is
  

encoded as follows:

meta http-equiv=Content-Type content=text/html;


charset=ISO-8859-1
  

Everything works fine until a user submits a non-English text


(French
  

or Spanish, with characters like íéñ, still supported by the
ISO-8859-1 encoding): all non-English characters are scrambled.

What appears weird to me is that the problem doesn't happen if I


use,
  

for example, a SubmitLink instead of an Ajax-enabled Button.

This makes me point to Ajax as the responsible, and to the fact


that


Wicket uses UTF-8 for requests... but I 

Re: Displaying date as Label.

2008-04-03 Thread Roman Zechner | Liland
use this
DateLabel.forDatePattern(java.lang.String id, IModel model, java.lang.String
datePattern) 

cheers, roman

users@wicket.apache.org wrote: 
 
 Hi All,
 
 I need some help displaying date correctly in Label. I am using a text
 field(and DatePicker) to take date input and storing it in mySQL database.
 But while displying it as a Label I am only seeing time (i.e it always
 shows 12:00 am).The date in database is correct.
 
 Here is how I am doing it.
 
 # For uploading
 TextField uploadDate = new TextField(uploadDate,Date.class);
 uploadDate.add(new DatePicker());
 
 #For displaying(in a ListView)
 
 item.add(new Label(uploadDate ,new
 PropertyModel(item.getModel(),uploadDate )));
 
 
 #Environment:
 Wicket 1.3.2 (also includes joda time)
 MySQL(5.5x)
 
 
 Can someone please help.
 Thanks,
 RG
 -- 
 View this message in context:
http://www.nabble.com/Displaying-date-as-Label.-tp16467546p16467546.html
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
-- 
Liland ...does IT better

Liland IT GmbH
Creative Master
email: [EMAIL PROTECTED]

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 
http://www.Liland.at


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



Re: Modifying inline CSS in head of document

2008-04-03 Thread Roman Zechner | Liland
Thanks Igor, I came up with this solution

public abstract class BasePage extends WebPage() {
int height = .../*get Browser height*/
String headerCss = String.format(style type=\text/css\#leftmenu
{height:%spx}/style, height);
add(new StringHeaderContributor(headerCss));


which isn't free of Javascript either - should have recognized this earlier
*ehem* 

But I saw that there's TextTemplateHeaderContributor for a more Java-like
solution. 

add(TextTemplateHeaderContributor.forCss(new CssTemplate(TextTemplate),
variableModel));

How do i create a TextTemplate to use this? 

Cheers, Roman


users@wicket.apache.org wrote: 
 see IHeaderContributor
 
 -igor
 
 On Thu, Apr 3, 2008 at 12:43 AM, rzechner [EMAIL PROTECTED] wrote:
  I want to resize the height of my pages dynamically, therefore I need to set
  the height of some markup elements dynamically. I don't want to use
  Javascript (although I found a nice solution with jquery).
   Is there a way to add a textblock like the following to the page header?
 
   !--[if lt IE 8]
style type=text/css
#leftmenu{height:400px;} /*this value should is dynamic */
/style
   ![endif]--
 
   whereas the height of #leftmenu is set like this:
 
   public abstract BasePage extends WebPage() {
   ...
   WebClientInfo w = (WebClientInfo)getWebRequestCycle().getClientInfo();
   ClientProperties cp = w.getProperties();
   int minHeight = cp.getBrowserHeight();
   //some imagination now
   addToHeader{
addStyle(#leftmenu, height, minHeight);
   }
 
 
   Thanks,
 
   Roman
 
 
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
-- 
Liland ...does IT better

Liland IT GmbH
Creative Master
email: [EMAIL PROTECTED]

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 
http://www.Liland.at


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