Re: Multi-module applications in Wicket

2009-02-02 Thread Thomas Mäder
What you call modules really sounds like different web applications (in
the java servlet sense). Is there a reason you cannot have multiple WARs?

Thomas

On Sun, Feb 1, 2009 at 2:09 PM, Daniel Lipski daniel.lipski...@gmail.comwrote:


 Hi

 Im working on web application divided into multiple 'modules' and Im
 wondering how to use Wicket in such
 scenario. Because 'module' means a lot, I'll specify what I would like to
 achive:
 1)diffrent home pages for each module
 2)diffrent session classes for each module (WebApplication.newSession)
 3)diffrent authentications (ie. module A - SSO, module B - web form)

 I can imagine two approaches:
 1)one Wicket application 'handling' both modules.But...:
 -because there is one appication I'll have to check logged user in
 WebApplication.newSession  WebApplication.getHomePage and return proper
 session object/home page class. Decision is taken on logged user, so in
 that
 methods Ill have to know which user has logged in. Is it possible to check
 logged user in this methods ? (arent they called before authentication ?)
 The other way is to make a decission not on logged user but on accessed
 Page
 (all pages in moduleA inherit from ModuleAWebPage and pages in moduleB
 inherit from ModuleBWebPage). But I doubt if requested page is avaliable in
 this two methods...
 -module A uses SSO to authenticate user, module B uses usual page, where
 should I choose how to authenticate user ? Which authenticating framework
 should I choose for this purpose ? (auth-roles, WASP ?)

 2)Two Wicket applications each 'handling' one module. Because there are two
 WebApplications there is no problem with determinig which session
 object/home page class return. There is no problem with diffrent
 authentications either.
 But...:
 -Is it possible  ? Can I map WicketFilter few times in web.xml ? I know
 that
 Wicket does a lots internal and I dont know if multiple Wicket 'instances'
 can be run in one classloader. Are there any caveats/limitations when
 multiple Wicket instances work in parell (does Application.get() or other
 static methods still work - I saw that they are implemened with ThreadLocal
 but ...?)
 -How running multiple Wicket instances influences session size and other
 resources ?
 -Ther is a lot of settings (DI, mounting startegies, 'global' converters,
 global resources) that need to be shared beetweend this two modules. For
 majority of them I can make super class for both ModuleAWebApplication and
 ModuleBWebApplication and put common code there, but does moduleA can
 access
 shared by moduleB resources ?
 -It looks a little bit strange for me to create diffrent Wicket Web
 applications for each module. From the 'outside'(servlet container) its
 still one apllication (one war) so there is a little mismatch. Of course
 this is the least siginificant reason but I would like to use proper
 solutions rather then stretch the wrong one.

 For now Im closer to solution 2), but I worry about things which I havnt
 foreseen. Maybe there is general rule/pattern/solution for writing
 multi-module web applciaions ? Im sure its common issue and many of you
 could share some experience.

 Thanks for any help.
 Regards
 Daniel


 --
 View this message in context:
 http://www.nabble.com/Multi-module-applications-in-Wicket-tp21774998p21774998.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




-- 
Thomas Mäder
www.devotek-it.ch


Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Thomas Mäder
Doesn't that sound like session state?

Thomas

On Sun, Feb 1, 2009 at 7:09 PM, Per Newgro per.new...@gmx.ch wrote:

 Hi Uwe,

 until now i can do everything :-). All my experiments with ldm failed so
 far. I have to store the states. But in DB? It's heavyweight for me.
 Maybe i should try a cookie based solution.

 Thanks for your doubts
 Cheers
 Per


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




-- 
Thomas Mäder
www.devotek-it.ch


Re: Graphs, Charts and Wicket

2009-02-02 Thread Maarten Bosteels
Also have a look at
http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html

Maarten

On Thu, Jan 29, 2009 at 2:45 PM, newbieabc newbie...@yahoo.com wrote:


 If you don't mind, could you post your code to display the chart you used?
 I was interested the gradient fill chart they offered, but am really new to
 wicket and didn't understand how to add it in wicket.

 Thanks!


 Jurek Piasek wrote:
 
  I have been using Amcharts
 
  http://www.amcharts.com/
 
  together with SWFObject
 
 http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html
 
  Regards,
  Jurek
 
 
  On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel)
  dyaz...@avaya.comwrote:
 
  Hi all,
 
 
 
  I'd like to put some simple bar graphs, pie graphs and possible line
  graphs into my wicket pages.
 
 
 
  Have any of you used a good framework that you can recommend, that also
  plays nicely with Wicket?
 
 
 
  Thanks!
 
 
 
  -Daniel.
 
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21727142.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: Pageable tree?

2009-02-02 Thread Zhubin Salehi

I have a rootless tree with a large number of nodes on the first level. I
only want to make a first level pageable.

Zhubin


Matej Knopp-2 wrote:
 
 The whole purpose of tree is to structure your data in way that
 doesn't need paging. I never really got the concept of pageable tree.
 How do you know what level you are on second page when your root is on
 first page?
 
 -Matej
 
 On Sat, Jan 31, 2009 at 10:53 AM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
 The inmethod packages might contains such a thing, but I doubt it. See
 wicketstuff svn for the inmethod components.

 Martijn

 On Fri, Jan 30, 2009 at 8:31 PM, Zhubin Salehi zhooz...@yahoo.com
 wrote:

 Hi,

 Is there some kind of pageable tree class in Wicket, or I have to break
 up
 my tree to several smaller trees and put them in a PageableListView?

 Thanks,
 Zhubin
 --
 View this message in context:
 http://www.nabble.com/Pageable-tree--tp21754065p21754065.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





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


 
 -
 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/Pageable-tree--tp21754065p21791193.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



Bug? RenderedDynamicImageResource.render only called once?

2009-02-02 Thread Brill Pappin
Ok, I've tracked down the problem, but don't know how to resolve it  
(I've been playing with it a bit).


the render method is only being called once per session despite the  
cache==false

(RenderedDynamicImageResource. render(Graphics2D)

This doesn't jive with what I understand for the documentation.
Is this a bug or by design?

If its by design, what *should* I be using instead?

- Brill

On 30-Jan-09, at 5:26 PM, Brill Pappin wrote:

I have a RenderedDynamicImageResource thats rendering a barcode,  
however I'm having trouble with it in that it only ever renders one  
image per session.


The resource has been added to:
[Application].getSharedResources().add(
CommonPage.class,
barcodeResource,
null,
null,
new BarcodeImageResource(UnitConv.mm2px(100, 
73), UnitConv
.mm2px(100, 73)));

I have set the resource up as:
setCacheable(false)

and i reset the last modified time when i render as:
setLastModifiedTime(Time.now());

I'm using 1.4-SNAPSHOT

Doe anyone have any idea how I can get this darn thing to return a  
new image on every request


- Brill



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



Re: CSS Arrangement Order

2009-02-02 Thread TH Lim

I tried writing it on the HTML file and using HeaderContributors. Somehow the
CSS file that I included in my HTML or .java file is always place 1st
followed by the libraries / components CSS.


Michael Sparer wrote:
 
 I'd say just write in in there ;-)
 
 Other possiblities are the use of HeaderContributors (see class
 HeaderContributor) also have a look at
 http://techblog.molindo.at/2008/08/wicket-interface-speed-up-merging-resources-for-fewer-http-requests.html
 which might interest you if a lot of your pages/panels come up with their
 own css
 
 regards,
 Michael
 
 
 TH Lim wrote:
 
 Hi,
 
 How do I arrange my CSS declaration order? For example, the current order
 is 
 
 ...
 head
 ... some script tags removed
 link rel=stylesheet type=text/css href=css/style.css /
 link rel=stylesheet type=text/css href=resources/com.acme/box.css
 /
 link rel=stylesheet type=text/css
 href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
 /
 /head
 body
 ...
 
 resources/com.acme/box.css and
 resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
 are CSS included with the libraries / components I used in my web
 application. How do I make my own CSS,css/style.css, to be placed after
 these CSS in head?
 
 Thanks
 
 /lim/
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/CSS-Arrangement-Order-tp21776162p21791475.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



mssql connection problem

2009-02-02 Thread Ashis

Hello all,
   i have problem regarding mssql connection

/*Code Snippet for MSSQL connection***/
public static Connection getSqlConnection() throws SQLException {
   try {
   Context c = new InitialContext();
   DataSource dataSource = (DataSource)
c.lookup(java:/comp/env/jdbc/mssql);
   return dataSource.getConnection();
   } catch (NamingException err) {
   throw new SQLException();
   }
   }

I got a SQLEXCEPTION in getSqlConnection() function:
*javax.naming.NameNotFoundException: cannot create resource instance


/*Code Snippet of context path for MSSQL connection***/  
Resource
   name=jdbc/mssql
   type=net.sourceforge.jtds.jdbcx.JtdsDataSource
   removeAbandoned=true
   removeAbandonedTimeout=60
   maxActive=4
   maxIdle=2
   username=sa
   password=root
   maxWait=5000
   driverClassName=net.sourceforge.jtds.jdbc.Driver
  url=jdbc:jdts:sqlserver://localhost:1433/flight /


How can i remove this sql exception?
Looking forward to your suggestion.
Thank you

-- 
View this message in context: 
http://www.nabble.com/mssql-connection-problem-tp21787078p21787078.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



capture ModalWindow data in Parent page

2009-02-02 Thread wicketworker

Hi,
Could someone please guide me with the below situatuation. I have a parent
page in which i have a hyper link, when i click that i am opening a
Modalwindow in a new page. Is there an example to capture some form data
from that modal window, and upon closing that modal window update the parent
page with the captured data. 

Could some one please tell me if there is any such example?

Thanks in Advance.

-- 
View this message in context: 
http://www.nabble.com/capture-ModalWindow-data-in-Parent-page-tp21792124p21792124.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: Bug? RenderedDynamicImageResource.render only called once?

2009-02-02 Thread Jonas
I think RenderedDynamicImageResource is for images that don't change during
one jvm runtime. The displayed image is basically 'static'.
If you want to change the contents of the image,
extend DynamicImageResource directly instead of RenderedDynamicImageResource,
that should do the trick.

cheers,
Jonas

On Mon, Feb 2, 2009 at 4:08 PM, Brill Pappin br...@pappin.ca wrote:
 Ok, I've tracked down the problem, but don't know how to resolve it (I've
 been playing with it a bit).

 the render method is only being called once per session despite the
 cache==false
 (RenderedDynamicImageResource. render(Graphics2D)

 This doesn't jive with what I understand for the documentation.
 Is this a bug or by design?

 If its by design, what *should* I be using instead?

 - Brill

 On 30-Jan-09, at 5:26 PM, Brill Pappin wrote:

 I have a RenderedDynamicImageResource thats rendering a barcode, however
 I'm having trouble with it in that it only ever renders one image per
 session.

 The resource has been added to:
 [Application].getSharedResources().add(
CommonPage.class,
barcodeResource,
null,
null,
new
 BarcodeImageResource(UnitConv.mm2px(100, 73), UnitConv
.mm2px(100, 73)));

 I have set the resource up as:
 setCacheable(false)

 and i reset the last modified time when i render as:
 setLastModifiedTime(Time.now());

 I'm using 1.4-SNAPSHOT

 Doe anyone have any idea how I can get this darn thing to return a new
 image on every request

 - Brill


 -
 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: Pageable tree?

2009-02-02 Thread Zhubin Salehi

You mean put several trees in a listview or using a single tree and a single
list view? I thought about breaking the original tree into several trees and
put them in a listview, but I don't know how to use a single listview and a
single tree.

Zhubin


igor.vaynberg wrote:
 
 so use two components
 
 [listview][tree]
 
 where listview lets you select roots and refreshes the tree with the
 selected root.
 
 -igor
 
 On Mon, Feb 2, 2009 at 7:04 AM, Zhubin Salehi zhooz...@yahoo.com wrote:

 I have a rootless tree with a large number of nodes on the first level. I
 only want to make a first level pageable.

 Zhubin


 Matej Knopp-2 wrote:

 The whole purpose of tree is to structure your data in way that
 doesn't need paging. I never really got the concept of pageable tree.
 How do you know what level you are on second page when your root is on
 first page?

 -Matej

 On Sat, Jan 31, 2009 at 10:53 AM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
 The inmethod packages might contains such a thing, but I doubt it. See
 wicketstuff svn for the inmethod components.

 Martijn

 On Fri, Jan 30, 2009 at 8:31 PM, Zhubin Salehi zhooz...@yahoo.com
 wrote:

 Hi,

 Is there some kind of pageable tree class in Wicket, or I have to
 break
 up
 my tree to several smaller trees and put them in a PageableListView?

 Thanks,
 Zhubin
 --
 View this message in context:
 http://www.nabble.com/Pageable-tree--tp21754065p21754065.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





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



 -
 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/Pageable-tree--tp21754065p21791193.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Pageable-tree--tp21754065p21792237.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: passing values to own exception pages

2009-02-02 Thread Igor Vaynberg
on requestcycle.onruntimeexception you can redirect to your error page
passing in the exception.

-igor

On Mon, Feb 2, 2009 at 9:03 AM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:
 Hi all,
 I have specified some pages that I would like rendered in place of the
 Wicket exception pages, in deployment mode, like so:
 /* if Session expires, show this error instead */
 getApplicationSettings().setPageExpiredErrorPage(SessionExpiredPage.class);

 /* if internal error occurs, show this page instead */
 getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
 I'm not sure how to get the actual class, cause, stacktrace etc passed into
 the pages though. I'd like to capture it because we have a standardised way
 of presenting the error to the user (and it needs to be emailed etc).

 cheers,
 Steve
 ---
 Steve Swinsburg
 Portal Systems Developer
 Centre for e-Science
 Lancaster University
 Lancaster
 LA1 4YT
 email: s.swinsb...@lancaster.ac.uk
 phone: +44 (0) 1524 594870








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



Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Matej Knopp
Don't use loadabledetachablemodel for this. Forget Wicket model
implementations. Just look at the IModel interface. It has 3 methods,
each of them simple to implement and you get most control of where the
object is pulled from and where it is stored.

-Matej

On Sun, Feb 1, 2009 at 7:09 PM, Per Newgro per.new...@gmx.ch wrote:
 Hi Uwe,

 until now i can do everything :-). All my experiments with ldm failed so
 far. I have to store the states. But in DB? It's heavyweight for me.
 Maybe i should try a cookie based solution.

 Thanks for your doubts
 Cheers
 Per

 -
 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: Contributing to Wicket - Client side form validation

2009-02-02 Thread jWeekend

Jeremy,

Thanks. If the problem can no longer be replicated (OK here now but I
haven't checked if Carl is still experiencing this) I assume that the parent
POMs are in good shape. 

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 


Jeremy Thomerson-5 wrote:
 
 Cemal,
   I didn't have much time to look into it, but didn't see anything real
 obvious in any of the yav poms.  Do you know what's causing the
 dependency?
 
 
 On Mon, Jan 19, 2009 at 11:16 AM, jWeekend
 jweekend_for...@cabouge.comwrote:
 

 Jeremy,

 Since you're digging around in there and if what you wanted to change
 doesn't already fix this, the yav and yav-examples project have
 unnecessary
 dependencies on jmxtools and jms jars (probably from some parent/grand
 parent POM).

 Regards - Cemal
 http://jWeekende.co.uk jWeekend



 Jeremy Thomerson-5 wrote:
 
  Carl,
Would you mind if I made a few minor changes to your pom files to
 make
  this project conform to the standards of the wicketstuff-core projects?
  Things I noticed are:
 
  - yav-parent/yav/pom.xml - artifact ID must be yav rather than
  wicketstuff-yav
  - yav-parent/yav-examples/pom.xml - artifact ID must be yav-examples
  rather than wicketstuff-yav-examples
  - add yav-parent to the modules list in wicketstuff-core/pom.xml
 
  Thank you,
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Sun, Jan 18, 2009 at 7:35 AM, cazoury carl.azo...@zenika.com
 wrote:
 
 
  Hi,
 
  I have finally added the Wicket  Yav Integration into the trunk of
  wicketstuff-core.
 
  There is an exemple application provided to test the actual Wicket
 rules
  that has been converted to Yav
 
  Every feedback is the most welcome and contribution also.
 
  It is a first step, but we can make it evolve maybe as Cemal suggested
 to
  include more advanced validation (like apache validator or Hibernate
  Validator)
 
  Cheers
 
 
 
  Nino Martinez-2 wrote:
  
   ok you should be in...
  
   We take jira and CI later.. Ok?
  
   Happy new year
  
   cazoury wrote:
   Thank you every one for your answers and interests on the project.
  
   I will be very happy for the project to go on Wicketstuff repo.
  
   My nick on sourceforge is : cazoury, I will post that on the dev
 list.
  
   Hopefully everything will be checked in before the end of the week.
  
  
   In terms of the actual validation, have you given any thought yet
 to
  how
   this can be done as DRY as
   possible wrt respecifying (equivalent/similar) validation at
 various
   layers including Wicket's, the ORM's,
   in business rules etc?
  
  
   for the DRY principle we only take into account the validators
 defined
  on
   the form components. Nothing else for the moment. They are some
   Validators
   in Wicket that are not available in YAV and the contrary. Maybe a
 next
   step
   will be to add them on the YAV side so all the default Wicket
  validators
   can
   be taken into account.
  
   But first, the checkin of the code :)
  
   Nino Martinez-2 wrote:
  
   I like to keep my contributions in wicketstuff repo, and I think
 us
   wicketstuffers would be happy to have your project there .. But no
   matter what I think you should contribute the stuff you've done :)
  
   So if you want, just post your sourceforge nick to the dev list to
  get
   write permissions.. And I think your project should go into
  wicketstuff
   core, but jeremy can fill you in on that :)
  
   cazoury wrote:
  
   Hi,
  
   We have been working on a small project to integrate
   http://yav.sourceforge.net/ YAV  library with Wicket. It is
  javascript
   validation purely on the client side. YAV has a LGPL licence and
 is
 
  a
   sourceforge project.
  
   I know that we can use an Ajax Behavior to validate the form with
  the
   validators present on the server side, but this is to respond to
 one
  of
   our
   client needs and also to illustrate how easy it is to integrate
 an
   existing
   javascript library with Wicket.
  
   It has also some nice features like using in the javascript
  validation
   the
   same messages as the ones used by the Wicket application (default
   messages
   and user defined messages)
  
   We would like to contribute, if possible, this code
 (wicket-contrib
  /
   wicket-stuff) if people finds this interesting. But I am not sure
  what
   are
   the different steps for that.
  
   We where thinking making it a sourceforge or googlecode project,
  maybe
   it
   is
   the first step and then I could post the link to it on this
 forum.
  
   Everyone enjoy the last day(s) of this year :)
  
   Carl Azoury
  
  
  
 -
   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, 

Re: passing values to own exception pages

2009-02-02 Thread Steve Swinsburg
thanks igor. does that work for the other types of errors like  
SessionExpired etc? Not sure if I need to capture that one yet though,  
but I will need to redirect with a page ref (url).



cheers,
Steve






On 2 Feb 2009, at 17:05, Igor Vaynberg wrote:


on requestcycle.onruntimeexception you can redirect to your error page
passing in the exception.

-igor

On Mon, Feb 2, 2009 at 9:03 AM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:

Hi all,
I have specified some pages that I would like rendered in place of  
the

Wicket exception pages, in deployment mode, like so:
/* if Session expires, show this error instead */
getApplicationSettings 
().setPageExpiredErrorPage(SessionExpiredPage.class);


/* if internal error occurs, show this page instead */
getApplicationSettings 
().setInternalErrorPage(InternalErrorPage.class);
I'm not sure how to get the actual class, cause, stacktrace etc  
passed into
the pages though. I'd like to capture it because we have a  
standardised way

of presenting the error to the user (and it needs to be emailed etc).

cheers,
Steve
---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT
email: s.swinsb...@lancaster.ac.uk
phone: +44 (0) 1524 594870









-
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


Re: passing values to own exception pages

2009-02-02 Thread Igor Vaynberg
no, for page expired error there is no exception it goes straight to the page

-igor

On Mon, Feb 2, 2009 at 9:13 AM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:
 thanks igor. does that work for the other types of errors like
 SessionExpired etc? Not sure if I need to capture that one yet though, but I
 will need to redirect with a page ref (url).


 cheers,
 Steve






 On 2 Feb 2009, at 17:05, Igor Vaynberg wrote:

 on requestcycle.onruntimeexception you can redirect to your error page
 passing in the exception.

 -igor

 On Mon, Feb 2, 2009 at 9:03 AM, Steve Swinsburg
 s.swinsb...@lancaster.ac.uk wrote:

 Hi all,
 I have specified some pages that I would like rendered in place of the
 Wicket exception pages, in deployment mode, like so:
 /* if Session expires, show this error instead */

 getApplicationSettings().setPageExpiredErrorPage(SessionExpiredPage.class);

 /* if internal error occurs, show this page instead */
 getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
 I'm not sure how to get the actual class, cause, stacktrace etc passed
 into
 the pages though. I'd like to capture it because we have a standardised
 way
 of presenting the error to the user (and it needs to be emailed etc).

 cheers,
 Steve
 ---
 Steve Swinsburg
 Portal Systems Developer
 Centre for e-Science
 Lancaster University
 Lancaster
 LA1 4YT
 email: s.swinsb...@lancaster.ac.uk
 phone: +44 (0) 1524 594870








 -
 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: set mountPath for BookmarkablePageLink

2009-02-02 Thread jWeekend

Sean,

I was looking into this with one of our students last week and also had a
quick chat with Igor about it. You cannot specify which one of your multiple
mount paths a BookmarkablePageLink to your page will render .

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 



Sean Brookes wrote:
 
 I am working on some RESTful navigation and have run across an issue with
 ver 1.3.x.
 
 I would like to specify multiple mountPath names to the same Page class
 eg:
 
 mount(new IndexedParamUrlCodingStrategy(
 internal,Class.forName(com.xyz.unittest.framework.layout.LandingPage)));
 mount(new IndexedParamUrlCodingStrategy(
 external,Class.forName(com.xyz.unittest.framework.layout.LandingPage)));
 mount(new IndexedParamUrlCodingStrategy(
 custom,Class.forName(com.xyz.unittest.framework.layout.LandingPage)));
 
 So that in addition to the indexed set of parameters I can also use the
 mountPath name to configure the page response.
 
 So far so good but the problem is how to specify a particular mountPath
 when creating the BookmarkablePageLink.  Is there there a straightforward
 way to specify the mount path?
 
 I have searched the forum and google and would have thought this would
 have come up as an issue for someone else so maybe I am approaching this
 the wrong way.
 
 I realize I can do this with just the parameters passed to the page but we
 have a diverse set of 'page views' and I would like to minimize the number
 of page classes we have to 'mount'
 
 I have also played around with using the ExternalLink and managing the URL
 construction manually but it feels clunky.
 
 Regards,
 Sean
 
 

-- 
View this message in context: 
http://www.nabble.com/set-mountPath-for-BookmarkablePageLink-tp21700838p21793879.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: London Wicket Event - 4th February @ Google

2009-02-02 Thread jWeekend

With around 47 names registered (41 with confirmed attendance so far) for our 
http://jweekend.com/dev/LWUGReg/ London Wicket Event  on Wednesday evening,
we have only a few places left. 
I can confirm that we are definitely going ahead despite the problems the
snow is causing. The airports should be open again tomorrow and other
transport will hopefully be back to usual service levels.
In the quite unlikely event that Daan or Jan have trouble with their flights
we will have plenty of Wicket topics to cover.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 



jWeekend wrote:
 
 We already have some 35 registered guests (29 confirmed) for our next
 London Wicket Event on the evening of February 4th, at Google (close to
 Victoria station). We have space for 15 more so if you are interested in
 coming  http://jweekend.com/dev/LWUGReg/ register  soon and remember to
 confirm your place.
 
 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend 
 
 
 jWeekend wrote:
 
 Our next London Wicket Event will be on the evening of Wednesday,
 February 4th, at Google. 
 This time we have presentations lined-up from three experienced
 Java/Wicket developers who have been experimenting with Scala and Wicket,
 just for fun, and, in some cases, on commercial development projects
 (yes, there are already Wicket applications built using Scala out there).
 Al's presentation is called Abstraction - you know what to expect!
 Al and I will also run a more concrete, general Wicket QA to wrap things
 up as usual.
 
 We'll be getting in some hot Pizza for around 18:15 and then:
 *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
 *  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala
 With Wicket
 * Dean Phersson-Chapman: Experiences Converting an Existing Wicket
 Application To Scala
 *  http://www.footprint.de Jan Kriesten : Real World Scala and Wicket
 *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
 * Al Maw  Cemal Bayramoglu: General Wicket QA 
 If you're not in a rush to get away join us for the customary visit to a
 local pub straight after the QA.
 
 We're lucky to attract a very good crowd and they say really nice things
 about our events, so if you've never been, you'd most likely enjoy the
 experience.
 
 Full details and registration are at  
 http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register
 early and don't forget to confirm (or cancel) your registration using the
 link in the automated email. 
 
 We'd like to thank Google for generously continuing to host our events.
 
 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21794293.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: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread jWeekend

We've been using: 
xmlns:wicket=http://svn.apache.org/repos/asf/wicket/trunk/wicket/wicket-xhtml1-strict.dtd;.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 



whoover wrote:
 
 ?xml version=1.0 encoding=UTF-8?
 html xmlns=http://www.w3.org/1999/xhtml;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
   xmlns:wicket=http://wicket.apache.org;
   xsi:schemaLocation=http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd
 http://wicket.apache.org;
   xml:lang=en
  head
  titleNew User Registration/title
  /head
  body
  strongEven Newer User Registration Form/strong
  br/br/
  message will be here
  /body
 /html 
 
 -Original Message-
 From: Piller Sébastien [mailto:pi...@hmcrecord.ch] 
 Sent: Monday, February 02, 2009 7:35 AM
 To: users@wicket.apache.org
 Subject: Re: What is the best way to handle Undefined attribute name
 (wicket:id) warnings from Eclipse Ganymede?
 
 Hi,
 
 add the xmlns:wicket definition in html:
 
 html xmlns:wicket
 ...
 
 
 this works fine for me
 
 Kent Larsson a écrit :
 Hi,

 If I have some HTML with Wicket attributes in it:

 html
 head
 titleNew User Registration/title
 /head
 body
 strongEven Newer User Registration Form/strong
 br/br/
 message will be here
 /body
 /html

 I get Undefined attribute name (wicket:id). warning from Eclipse 
 Ganymede from the span... line. What's the best solution to get rid 
 of such warnings? If it's possible having some validation would be nice.

 Best regards, Kent

   
 
 
 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/What-is-the-best-way-to-handle-%22Undefined-attribute-name-%28wicket%3Aid%29%22--warnings-from-Eclipse-Ganymede--tp2179p21794951.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



How to change BookmarkablePageLink Model?

2009-02-02 Thread Major Péter

Hi all,

In my project, i would like to change the link for an image in different 
pages, where the image is in the header (which is in the base class of 
pages).

The code snippet i tried:

//This is my base class for the other pages
public class PageTemplate extends WebPage {

...
//The base class constructor
public PageTemplate(){
WebMarkupContainer headerLabelContainer = new 
WebMarkupContainer(headerLabelContainer);

   add(headerLabelContainer);
//I have to set a default value, so it would be declared for wicket, so 
when i have a page, which i don't want to contain this imagelink, there 
won't be a problem
   headerLabelContainer.add(new BookmarkablePageLink(detailView, 
ShowUser.class)).setVisible(false);

   }
...

public void setHeaderDetailViewLink(Class pageClass, String param) {
   get(headerLabelContainer).setVisible(true);
//this part is what won't work:
   ((WebMarkupContainer) 
get(headerLabelContainer)).get(detailView).setModel(new 
Model(UserHistory.class));
   // i tried also new bookmarkablepagelink(...), but the 
problem is the same, the link is pointing to the pre-declared page...

...
}

The HTML code is:

div class=header wicket:id=headerLabelContainer
a wicket:id=detailView class=btnimg 
src=images/btnDetailView.gif alt=Részletes nézet //a

   /div

So the simple question would be: how to change the bookmarkablepagelink 
model?
The header also has a Label, which changes by pages, with the 
setModel(new Model(new text)); command...

I can't figure out what the problem is.

Regards,
Peter Major

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



Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Lipski

Thanks for your help. I havnt tried this yet becaouse this involves some
refactoring and I wanted to be sure that I'll choose correct solution.



Daniel Stoch-2 wrote:
 
 No, I don't say you need OSGi container, but in more complex
 environments it may be helpful.
 Of course you can, as you wrote, map WicketFilter multiple times and
 this should work - why you didn't try this yet? :)
 
 --
 Daniel
 
 On Mon, Feb 2, 2009 at 12:03 PM, Daniel Lipski
 daniel.lipski...@gmail.com wrote:

 Do I really need OSGi container ?(OSGi is great idea, but I would like to
 keep this simple)
 Why I cant just map WicketFilter multiple times ? I would like to stay
 with
 one war deployed on Tomcat container.


 Daniel Stoch-2 wrote:

 Maybe you should look at OSGi? Then each of your application can be
 defined inside a different bundle and runs on the same JVM. We are
 using such approach in our environment and it works very well. A small
 downside of such solution is that you have to learn what is it and how
 to use OSGi (unless you already know it ;)).

 --
 Daniel
 
 -
 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/Multi-module-applications-in-Wicket-tp21774998p21788104.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



What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Kent Larsson
Hi,

If I have some HTML with Wicket attributes in it:

html
head
titleNew User Registration/title
/head
body
strongEven Newer User Registration Form/strong
br/br/
span wicket:id=messagemessage will be here/span
/body
/html

I get Undefined attribute name (wicket:id). warning from Eclipse Ganymede
from the span... line. What's the best solution to get rid of such
warnings? If it's possible having some validation would be nice.

Best regards, Kent


Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Matej Knopp
Either there or in your session's subclass constructor.

-Matej

On Mon, Feb 2, 2009 at 7:25 PM, Per Newgro per.new...@gmx.ch wrote:
 Thanks Thomas and Matej,

 storing state in session sounds natural in your explanations. It comes into
 my mind, that i could initiate
 the instance in Application.newSession(). Is this the right place for this
 task?
 The the navigational panel could extract an initialized model instance from
 the session.

 Thanks alot for clearing this to me
 Per

 -
 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: How to change BookmarkablePageLink Model?

2009-02-02 Thread jWeekend

Peter,

Create a Panel or Fragment that takes the page you want to link to in its
constructor (or returns it in an abstract getPageToLinkTo() method). This
will contain your BPL (you can still embed your static img tag in the
associated html) and you can set the whole Panel/Fragment to be invisible by
default (or just do it in your template page) and let subclasses
override/set the visibility as required.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 


aldaris wrote:
 
 Hi all,
 
 In my project, i would like to change the link for an image in different 
 pages, where the image is in the header (which is in the base class of 
 pages).
 The code snippet i tried:
 
 //This is my base class for the other pages
 public class PageTemplate extends WebPage {
 
 ...
 //The base class constructor
 public PageTemplate(){
 WebMarkupContainer headerLabelContainer = new 
 WebMarkupContainer(headerLabelContainer);
 add(headerLabelContainer);
 //I have to set a default value, so it would be declared for wicket, so 
 when i have a page, which i don't want to contain this imagelink, there 
 won't be a problem
 headerLabelContainer.add(new BookmarkablePageLink(detailView, 
 ShowUser.class)).setVisible(false);
 }
 ...
 
 public void setHeaderDetailViewLink(Class pageClass, String param) {
 get(headerLabelContainer).setVisible(true);
 //this part is what won't work:
 ((WebMarkupContainer) 
 get(headerLabelContainer)).get(detailView).setModel(new 
 Model(UserHistory.class));
 // i tried also new bookmarkablepagelink(...), but the 
 problem is the same, the link is pointing to the pre-declared page...
 ...
 }
 
 The HTML code is:
 
 div class=header wicket:id=headerLabelContainer
   images/btnDetailView.gif  
 /div
 
 So the simple question would be: how to change the bookmarkablepagelink 
 model?
 The header also has a Label, which changes by pages, with the 
 setModel(new Model(new text)); command...
 I can't figure out what the problem is.
 
 Regards,
 Peter Major
 
 -
 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/How-to-change-BookmarkablePageLink-Model--tp21795106p21795544.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: Google Adsense.

2009-02-02 Thread Nino Martinez

I have no problems neither with 1.3.x or 1.4.x ...

So it might be your page that has incorrect syntax.. You could try both 
the css syntax checker and the html validator from w3c. If you do that 
in conjunction with browsershots.org and a couple of different browsers 
you can get a clear picture if its working or not...


Xhelas wrote:

I have no problem with this using wicket 1.4.rc1. And i never had problem
using previous versions. 
Regards

Alexandre

ej595 wrote:
  

Hi all,
im not sure if anyone else has any experience of using google adsense
within your wicket html, but i seem to be finding that it interferes with
the rendering of the wicket pages. By that i mean, if i include the
adsense code in the html, when wicket renders the page i get this
intermittent 'unable to find component X' error. It seems to be something
to do with the time it takes to retrieve the actual advert and the
rendering of the page via wicket. It never happens on localhost, but once
the war has been deployed to a web environment, the logs are littered with
this error and the html stack traces.

Im not entirely sure what to do other than to remove the ad. Once i remove
the ad, the page is fine. Id appreciate if anyone has any experience in
this area of adsense and wicket.






  



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



Re: better ways to worjk with java script

2009-02-02 Thread Nino Martinez
This is really where you have to decide, what are your needs. Theres 
frameworks for every kind of obscure need.. Some are already integrated 
with wicket so that might be a plus for those but you really have to 
decide on a case by case basis.. And it theres no integration for wicket 
already it only takes a couple of days doing one, depending on complexity...


regards Nino

miro wrote:

I am using wicket and  would also like to use javascript for some of my
custom needs , and looking for suggestions what  framework can help me best
in the sense easy to use and reliable , jqery , dojo or something else
please adviser me what  is the best java script framework 
  



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



Re: new bee jqery or dojo

2009-02-02 Thread Jeremy Thomerson
You might start with some helpful information like what you plan to use it
for.

On Mon, Feb 2, 2009 at 11:06 AM, miro miroconn...@yahoo.com wrote:


 I am a new bee to java script  and   don't know which   one to choose dojo
 or
 jquery or something else , to get started Please advice me, my background
  I
 am   a java developer .
 --
 View this message in context:
 http://www.nabble.com/new-bee-jqery-or-dojo-tp21793590p21793590.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




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


Java EE 6 Platform Draft- Web Profile?

2009-02-02 Thread Hoover, William
Seems like a little wicketization should be in order:
http://www.infoq.com/news/2009/01/java-ee6-draft


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



passing values to own exception pages

2009-02-02 Thread Steve Swinsburg

Hi all,

I have specified some pages that I would like rendered in place of the  
Wicket exception pages, in deployment mode, like so:


/* if Session expires, show this error instead */
getApplicationSettings 
().setPageExpiredErrorPage(SessionExpiredPage.class);


/* if internal error occurs, show this page instead */
getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);

I'm not sure how to get the actual class, cause, stacktrace etc passed  
into the pages though. I'd like to capture it because we have a  
standardised way of presenting the error to the user (and it needs to  
be emailed etc).



cheers,
Steve

---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT

email: s.swinsb...@lancaster.ac.uk
phone: +44 (0) 1524 594870









smime.p7s
Description: S/MIME cryptographic signature


Re: How to personalise HTML content with Wicket ?

2009-02-02 Thread Ernesto Reinaldo Barreiro
Hi Stefan,
All wanted to stress is the fact that there are very few cases where you
will want to generate the HTML by hand... Then what would be the point in
using Wicket? And in this particular case I personally would prefer to use
panels...

Best,

Ernesto

On Mon, Feb 2, 2009 at 12:18 PM, Stefan Lindner lind...@visionet.de wrote:

 Of course! And: why not use wicket's Loop for generating each tr and
 nested Loop for building each td etc. The Examples were just a starting
 point for doing simple things like few text labels spread around the page.

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 2. Februar 2009 12:04
 An: users@wicket.apache.org
 Betreff: Re: How to personalise HTML content with Wicket ?

 For this case why not have table/table  in a panel (or
 fragment) and use it instead of generating the string by hand?  IMHO that
 would be much more clear and consistent with wicket way of doing things...
 Best

 Ernesto

 On Mon, Feb 2, 2009 at 11:47 AM, Stefan Lindner lind...@visionet.de
 wrote:

  Yes, you just have to tell the e.g. Label component not to escapte the
  model's content (label.setExcapteModelStrings(false)) Then the model's
  string is inserted into the HTML output without any further processing.
  You always need a html tag with wicket:id to trigger the output.
 
 
  HTML
  div wicket:id=raw/
 
  Java
  Label l = new Label(raw, table/table);
  l.setEscapeModelStrings(false);
  l.setRenderGodyOnly(true);
  add(l);
 
 
  -Ursprüngliche Nachricht-
  Von: cmoulliard [mailto:cmoulli...@gmail.com]
  Gesendet: Montag, 2. Februar 2009 11:26
  An: users@wicket.apache.org
  Betreff: RE: How to personalise HTML content with Wicket ?
 
 
  Thks.
 
  Can I also use Model to define HTML section containing regular HTML with
  wicket id ?
 
  table
  tdtrtrtr/td
  td wicket id=
  
 
  Additional question : in this case, where content is define dynamically,
  which java class will trigger the wicket tags ?
 
 
  Stefan Lindner wrote:
  
   Several Ways to to this. The easiest way for your example
  
  
   HTML:
   H2H2/
  
   In Java
   ModelString contentModel = new ModelString();
   add(new Label(content, contentModel));
   if (user=='admin'=
  contenModel.setObject(Admin part);
   else if (user == 'anonymous')
  contenModel.setObject(Anonymous part);
  
  
  
  
  
   Or in JAVA
   if (user=='admin'=
  add(new Label(content, (Admin part));
   else if (user == 'anonymous')
  add(new Label(content, (Anonymous part));
  
  
   -Ursprüngliche Nachricht-
   Von: cmoulliard [mailto:cmoulli...@gmail.com]
   Gesendet: Montag, 2. Februar 2009 11:10
   An: users@wicket.apache.org
   Betreff: How to personalise HTML content with Wicket ?
  
  
   Hi,
  
   I would like to know how we can personalize the content with Wicket ?
  
   With framework like Struts, ... it is possible in a JSP page to display
   different HTML contents (let's say personalize content) according to
   conditions (e.g. profile user, ...).
  
   if (user == 'admin')
  
   H2Admin partH2/
  
   if ( user == 'anonymous')
  
   H2Anonymous part/H2
  
   Regards,
  
   Charles
  
  
  
  
   -
   Charles Moulliard
   SOA Architect
  
   My Blog :  http://cmoulliard.blogspot.com/
  http://cmoulliard.blogspot.com/
   --
   View this message in context:
  
 
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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
  
  
  
 
 
  -
  Charles Moulliard
  SOA Architect
 
  My Blog :  http://cmoulliard.blogspot.com/
 http://cmoulliard.blogspot.com/
  --
  View this message in context:
 
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787287.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




Re: new bee jqery or dojo

2009-02-02 Thread miro

Everytime I need java script I search in Google  and more often we see them
behaving differently with different browsers, rather i would like to use 
one of the java script framework  which is easy to learn and more effective 
like write less code etc fully functional ?  I  heard  about dojo , jquery, 
scriptaculous etc ,  now  I need suggestions on what is the best for new bee
, who   is not good at java script but is a java developer , please advice
me.



Jeremy Thomerson-5 wrote:
 
 You might start with some helpful information like what you plan to use it
 for.
 
 On Mon, Feb 2, 2009 at 11:06 AM, miro miroconn...@yahoo.com wrote:
 

 I am a new bee to java script  and   don't know which   one to choose
 dojo
 or
 jquery or something else , to get started Please advice me, my background
  I
 am   a java developer .
 --
 View this message in context:
 http://www.nabble.com/new-bee-jqery-or-dojo-tp21793590p21793590.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


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

-- 
View this message in context: 
http://www.nabble.com/new-bee-jqery-or-dojo-tp21793590p21796043.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 bee jqery or dojo

2009-02-02 Thread Stefan Lindner
In my experience jquery is more rubust and the interference with other 
javascript frameworks is no problem. Scriptacolous for example modifys the 
javascript basic behavior and tends to cause problems for other frameworks.

-Ursprüngliche Nachricht-
Von: miro [mailto:miroconn...@yahoo.com] 
Gesendet: Montag, 2. Februar 2009 20:03
An: users@wicket.apache.org
Betreff: Re: new bee jqery or dojo


Everytime I need java script I search in Google  and more often we see them
behaving differently with different browsers, rather i would like to use 
one of the java script framework  which is easy to learn and more effective 
like write less code etc fully functional ?  I  heard  about dojo , jquery, 
scriptaculous etc ,  now  I need suggestions on what is the best for new bee
, who   is not good at java script but is a java developer , please advice
me.



Jeremy Thomerson-5 wrote:
 
 You might start with some helpful information like what you plan to use it
 for.
 
 On Mon, Feb 2, 2009 at 11:06 AM, miro miroconn...@yahoo.com wrote:
 

 I am a new bee to java script  and   don't know which   one to choose
 dojo
 or
 jquery or something else , to get started Please advice me, my background
  I
 am   a java developer .
 --
 View this message in context:
 http://www.nabble.com/new-bee-jqery-or-dojo-tp21793590p21793590.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


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

-- 
View this message in context: 
http://www.nabble.com/new-bee-jqery-or-dojo-tp21793590p21796043.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



Re: AjaxFallbackDefaultDataTable and AjaxLink

2009-02-02 Thread Mathias P.W Nilsson

Why should it be strange to edit properties for let's say a user in a modal
window?
-- 
View this message in context: 
http://www.nabble.com/AjaxFallbackDefaultDataTable-and-AjaxLink-tp21687636p21797485.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: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread James Carman
You could start by declaring the wicket namespace:

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


On Mon, Feb 2, 2009 at 7:33 AM, Kent Larsson kent.lars...@gmail.com wrote:
 Hi,

 If I have some HTML with Wicket attributes in it:

 html
head
titleNew User Registration/title
/head
body
strongEven Newer User Registration Form/strong
br/br/
span wicket:id=messagemessage will be here/span
/body
 /html

 I get Undefined attribute name (wicket:id). warning from Eclipse Ganymede
 from the span... line. What's the best solution to get rid of such
 warnings? If it's possible having some validation would be nice.

 Best regards, Kent


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



Re: mssql connection problem

2009-02-02 Thread Dipu
this is how my code looks

/**
 * Grab Update SQL Connection
 *
 * @return
 * @throws NamingException
 * @throws SQLException
 * @throws SQLException
 */
public Connection getConnection() throws NamingException, SQLException
{
Context env = (Context) new 
InitialContext().lookup(java:comp/env);
DataSource obj_datasrc = (DataSource) env.lookup(jdbc/);  

return obj_datasrc.getConnection();
}


and this is my context xml looks

Context
Resource name=jdbc/
   auth=Container
   type=javax.sql.DataSource
   maxActive=5
   maxIdle=2
   maxWait=1
   removeAbandoned=true
   removeAbandonedTimeout=60
   logAbandoned=true
   username=xxx
   password=xxx
   driverClassName=net.sourceforge.jtds.jdbc.Driver
   
url=jdbc:jtds:sqlserver://xxx.xxx.xxx.xxx:port;DatabaseName=db_name/
/Context


hope this helps

cheers
dipu

On Mon, Feb 2, 2009 at 10:10 AM, Ashis chettri.as...@gmail.com wrote:

 Hello all,
   i have problem regarding mssql connection

 /*Code Snippet for MSSQL connection***/
 public static Connection getSqlConnection() throws SQLException {
   try {
   Context c = new InitialContext();
   DataSource dataSource = (DataSource)
 c.lookup(java:/comp/env/jdbc/mssql);
   return dataSource.getConnection();
   } catch (NamingException err) {
   throw new SQLException();
   }
   }

 I got a SQLEXCEPTION in getSqlConnection() function:
 *javax.naming.NameNotFoundException: cannot create resource instance


 /*Code Snippet of context path for MSSQL connection***/
 Resource
   name=jdbc/mssql
   type=net.sourceforge.jtds.jdbcx.JtdsDataSource
   removeAbandoned=true
   removeAbandonedTimeout=60
   maxActive=4
   maxIdle=2
   username=sa
   password=root
   maxWait=5000
   driverClassName=net.sourceforge.jtds.jdbc.Driver
  url=jdbc:jdts:sqlserver://localhost:1433/flight /


 How can i remove this sql exception?
 Looking forward to your suggestion.
 Thank you

 --
 View this message in context: 
 http://www.nabble.com/mssql-connection-problem-tp21787078p21787078.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



RE: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Hoover, William
?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:wicket=http://wicket.apache.org;
xsi:schemaLocation=http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd 
http://wicket.apache.org;
xml:lang=en
 head
 titleNew User Registration/title
 /head
 body
 strongEven Newer User Registration Form/strong
 br/br/
 span wicket:id=messagemessage will be here/span
 /body
/html 

-Original Message-
From: Piller Sébastien [mailto:pi...@hmcrecord.ch] 
Sent: Monday, February 02, 2009 7:35 AM
To: users@wicket.apache.org
Subject: Re: What is the best way to handle Undefined attribute name 
(wicket:id) warnings from Eclipse Ganymede?

Hi,

add the xmlns:wicket definition in html:

html xmlns:wicket
...


this works fine for me

Kent Larsson a écrit :
 Hi,

 If I have some HTML with Wicket attributes in it:

 html
 head
 titleNew User Registration/title
 /head
 body
 strongEven Newer User Registration Form/strong
 br/br/
 span wicket:id=messagemessage will be here/span
 /body
 /html

 I get Undefined attribute name (wicket:id). warning from Eclipse 
 Ganymede from the span... line. What's the best solution to get rid 
 of such warnings? If it's possible having some validation would be nice.

 Best regards, Kent

   


-
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 bee jqery or dojo

2009-02-02 Thread Frank Klein Koerkamp
I would use jquery.
With jQuery is good in accessibility(progressive enhanchment),
performance and has a good plugin framework. And because the community
is very large, there is plugin for each problem. They also working
very hard to get 2.0 look and feel. And very easy to integrate with
wicket :).

Verstuurd vanaf mijn iPhone

Op 2 feb 2009 om 20:03 heeft miro miroconn...@yahoo.com het
volgende geschreven:\


 Everytime I need java script I search in Google  and more often we
 see them
 behaving differently with different browsers, rather i would like to
 use
 one of the java script framework  which is easy to learn and more
 effective
 like write less code etc fully functional ?  I  heard  about dojo ,
 jquery,
 scriptaculous etc ,  now  I need suggestions on what is the best for
 new bee
 , who   is not good at java script but is a java developer , please
 advice
 me.



 Jeremy Thomerson-5 wrote:

 You might start with some helpful information like what you plan to
 use it
 for.

 On Mon, Feb 2, 2009 at 11:06 AM, miro miroconn...@yahoo.com wrote:


 I am a new bee to java script  and   don't know which   one to
 choose
 dojo
 or
 jquery or something else , to get started Please advice me, my
 background
 I
 am   a java developer .
 --
 View this message in context:
 http://www.nabble.com/new-bee-jqery-or-dojo-tp21793590p21793590.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




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



 --
 View this message in context: 
 http://www.nabble.com/new-bee-jqery-or-dojo-tp21793590p21796043.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


The information contained in this communication is confidential, intended 
solely for the use of the individual or entity to whom it is addressed and may 
be legally privileged and protected by professional secrecy. Access to this 
message by anyone else is unauthorized. If you are not the intended recipient, 
any disclosure, copying, or distribution of the message, or any action or 
omission taken by you in reliance on it is prohibited and may be unlawful. 
Please immediately contact the sender if you have received this message in 
error. This email does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written agreement 
between the intended recipient and Cordys Holding BV or its subsidiaries. 
Cordys is neither liable for the proper and complete transmission of the 
information contained in this communication nor for any delay in its receipt. 
Cordys does not guarantee that the integrity of this communication has been 
maintained nor that the communication is free of viruses, interceptions or 
interference. If you are not the intended recipient of this communication 
please return the communication to the sender and delete and destroy all copies.

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



Re: capture ModalWindow data in Parent page

2009-02-02 Thread Daan van Etten
Sure! You can for example use an abstract method to post the data back  
to the parent.


A complete example is here:
http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup

 - Daan

Op 2 feb 2009, om 16:53 heeft wicketworker het volgende geschreven:



Hi,
Could someone please guide me with the below situatuation. I have a  
parent

page in which i have a hyper link, when i click that i am opening a
Modalwindow in a new page. Is there an example to capture some form  
data
from that modal window, and upon closing that modal window update  
the parent

page with the captured data.

Could some one please tell me if there is any such example?

Thanks in Advance.

--
View this message in context: 
http://www.nabble.com/capture-ModalWindow-data-in-Parent-page-tp21792124p21792124.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



Re: Multi-module applications in Wicket

2009-02-02 Thread Antoine Angenieux
I've had your exact use case a few month ago. I did just what you 
propose : One War and multiple filter mappings pointing to a different 
Wicket Application in the same web.xml.


Works like a charm !

You still get a separate session for each application, but reuse the 
same underneath layers... and even your standard homegrown wicket 
components spread around your applications.


Hope this help,

Cheers,

Antoine.

Daniel Lipski wrote:

Do I really need OSGi container ?(OSGi is great idea, but I would like to
keep this simple) 
Why I cant just map WicketFilter multiple times ? I would like to stay with

one war deployed on Tomcat container.


Daniel Stoch-2 wrote:

Maybe you should look at OSGi? Then each of your application can be
defined inside a different bundle and runs on the same JVM. We are
using such approach in our environment and it works very well. A small
downside of such solution is that you have to learn what is it and how
to use OSGi (unless you already know it ;)).

--
Daniel

On Mon, Feb 2, 2009 at 10:39 AM, Daniel Lipski
daniel.lipski...@gmail.com wrote:

yes, they use the same service layer and the same caches. Whats more its
easier to deploy  build one war insted of many. Does your question
suggests
that there are problems with few Wicket filters in one webapp ?



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







--
Antoine Angénieux
Associé

Clinigrid
5, avenue Mozart
75016 Paris, France
+336 60 21 09 18
aangeni...@clinigrid.com



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



Re: ModalWindow gotcha!

2009-02-02 Thread Daan van Etten


Op 1 feb 2009, om 21:51 heeft Timo Rantalaiho het volgende geschreven:


On Sun, 18 Jan 2009, Phillip Rhodes wrote:

Declaring the ModalWindow from a panel did not work.  The ModalWindow
would appear, but the ModalWindow contents (a panel) would be  
rendered

within the parent panel after the ModalWindow was closed.
If I declare the ModalWindow in a page, everything was fine.  I can
still invoke the ModalWindow from a panel, all is good.  For now, I  
am

going to declare all my ModalWindows at the page level,and pass these
as constructor arguments to my panels.


This sounds very strange, I think that your problem must
have been elsewhere. Please send a quickstart reproducing
the problem if you're interested in finding out more.

Adding a ModalWindow in a panel should be OK.


I can confirm this... we use ModalWindows all over the place.

- Daan

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



Re: Servlet container authentication in Wicket

2009-02-02 Thread Philipp Daumke

Hi all,

just as a last reminder (before the article is archived;-), is there 
anybody who yould provide me with an example how to user Servlect 
container authentication in Wicket? I followed the example in 
http://cwiki.apache.org/WICKET/servlet-container-authentication.html but 
I get the error mentioned below. Maybe some more configuration in tomcat?


Thank you for your help
Philipp

Hi Timm,

I also tried to add my application name in it (like you proposed), but 
no difference, still doesn't work.


Philipp

http://localhost:5080/j_security_check?j_username=testj_password=test



Shouldn't there be an application named?

http://localhost:5080/MYAPP/j_security_check?j_username=testj_password=test 



Regards,
Timm


Am Sonntag, 1. Februar 2009 23:03:50 schrieb Philipp Daumke:
 

Hi all,

I followed the Servlet Container authentication as described in
http://cwiki.apache.org/WICKET/servlet-container-authentication.html,
but I do not get it working.

At the moment I get an error in firefox when invoking the
redirectToSecurityCheck() method:

http://localhost:5080/j_security_check?j_username=testj_password=test
_The requested resource () is not available.

_I don't even know exactly what j_security_check is and don't find 
too

much on the web. Do I have to configure Tomcat properly?

Below is my full src. MyApp.java and web.xml look like in the example
(see link aboe). Thank you for your help!
Philipp


public final class LoginPage extends WebPage
{
private String username;
private String password;
public LoginPage()
{
redirectToSecurityCheck();
/*if( ( ( MySession )getSession() ).isUserLoggedIn())
{
// redirect to hide username and password from URL after
user is logged in
setRedirect( true );
setResponsePage( Index.class );
}
else
{
redirectToSecurityCheck();
}*/
}

/**
 * Common servlet login workaround
 */
private void redirectToSecurityCheck()
{
final Map parametersMap = ( ( WebRequestCycle
)RequestCycle.get()
).getWebRequest().getHttpServletRequest().getParameterMap();
if( parametersMap.containsKey( username ) 
parametersMap.containsKey( password ) )
{
// getting parameters from POST request
final String userName = ( ( String[] )parametersMap.get(
username ) )[ 0 ];
final String userPassword = ( ( String[] 
)parametersMap.get(

password ) )[ 0 ];

// if POST parameters are ok, redirect them to 
j_security_check

if( ( userName != null )  ( userPassword != null ) )
{
getRequestCycle().setRedirect( false );
getRequestCycle().setRequestTarget(
EmptyRequestTarget.getInstance() );

getResponse().redirect(
/j_security_check?j_username= + userName +
j_password= + userPassword );
}
}
}

public String getUsername() {
return username;
}

public void setUsername(String username) {
this.username = username;
}

public String getPassword() {
return password;
}

public void setPassword(String password) {
this.password = password;
}
}





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

  






--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: dau...@averbis.de

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


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



Re: How to personalise HTML content with Wicket ?

2009-02-02 Thread Ernesto Reinaldo Barreiro
For this case why not have table/table  in a panel (or
fragment) and use it instead of generating the string by hand?  IMHO that
would be much more clear and consistent with wicket way of doing things...
Best

Ernesto

On Mon, Feb 2, 2009 at 11:47 AM, Stefan Lindner lind...@visionet.de wrote:

 Yes, you just have to tell the e.g. Label component not to escapte the
 model's content (label.setExcapteModelStrings(false)) Then the model's
 string is inserted into the HTML output without any further processing.
 You always need a html tag with wicket:id to trigger the output.


 HTML
 div wicket:id=raw/

 Java
 Label l = new Label(raw, table/table);
 l.setEscapeModelStrings(false);
 l.setRenderGodyOnly(true);
 add(l);


 -Ursprüngliche Nachricht-
 Von: cmoulliard [mailto:cmoulli...@gmail.com]
 Gesendet: Montag, 2. Februar 2009 11:26
 An: users@wicket.apache.org
 Betreff: RE: How to personalise HTML content with Wicket ?


 Thks.

 Can I also use Model to define HTML section containing regular HTML with
 wicket id ?

 table
 tdtrtrtr/td
 td wicket id=
 

 Additional question : in this case, where content is define dynamically,
 which java class will trigger the wicket tags ?


 Stefan Lindner wrote:
 
  Several Ways to to this. The easiest way for your example
 
 
  HTML:
  H2H2/
 
  In Java
  ModelString contentModel = new ModelString();
  add(new Label(content, contentModel));
  if (user=='admin'=
 contenModel.setObject(Admin part);
  else if (user == 'anonymous')
 contenModel.setObject(Anonymous part);
 
 
 
 
 
  Or in JAVA
  if (user=='admin'=
 add(new Label(content, (Admin part));
  else if (user == 'anonymous')
 add(new Label(content, (Anonymous part));
 
 
  -Ursprüngliche Nachricht-
  Von: cmoulliard [mailto:cmoulli...@gmail.com]
  Gesendet: Montag, 2. Februar 2009 11:10
  An: users@wicket.apache.org
  Betreff: How to personalise HTML content with Wicket ?
 
 
  Hi,
 
  I would like to know how we can personalize the content with Wicket ?
 
  With framework like Struts, ... it is possible in a JSP page to display
  different HTML contents (let's say personalize content) according to
  conditions (e.g. profile user, ...).
 
  if (user == 'admin')
 
  H2Admin partH2/
 
  if ( user == 'anonymous')
 
  H2Anonymous part/H2
 
  Regards,
 
  Charles
 
 
 
 
  -
  Charles Moulliard
  SOA Architect
 
  My Blog :  http://cmoulliard.blogspot.com/
 http://cmoulliard.blogspot.com/
  --
  View this message in context:
 
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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
 
 
 


 -
 Charles Moulliard
 SOA Architect

 My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
 --
 View this message in context:
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787287.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: Multi-module applications in Wicket

2009-02-02 Thread Daniel Lipski

Do I really need OSGi container ?(OSGi is great idea, but I would like to
keep this simple) 
Why I cant just map WicketFilter multiple times ? I would like to stay with
one war deployed on Tomcat container.


Daniel Stoch-2 wrote:
 
 Maybe you should look at OSGi? Then each of your application can be
 defined inside a different bundle and runs on the same JVM. We are
 using such approach in our environment and it works very well. A small
 downside of such solution is that you have to learn what is it and how
 to use OSGi (unless you already know it ;)).
 
 --
 Daniel
 
 On Mon, Feb 2, 2009 at 10:39 AM, Daniel Lipski
 daniel.lipski...@gmail.com wrote:

 yes, they use the same service layer and the same caches. Whats more its
 easier to deploy  build one war insted of many. Does your question
 suggests
 that there are problems with few Wicket filters in one webapp ?


 
 -
 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/Multi-module-applications-in-Wicket-tp21774998p21787722.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: What are the consequences on sharing panels between pages?

2009-02-02 Thread Thomas Mäder
Well, Wicket has a Session Object. You can create your own subclass and
store stuff in there (WebApplication.newSession(...). If you want to share
state between pages, it's a natural place to put the state. One question you
can ask yourself is: how many instances of that panel would I have? If the
answer is: one per user, the state of the panel is session state. So you
have multiple copies of the panel, but they all store their state into the
session.

Thomas

On Mon, Feb 2, 2009 at 11:22 AM, Newgro per.new...@gmx.ch wrote:


 Hi Thomas,

 can you please explain this a bit. What do you mean by session state. How
 can i use session state in my context?

 Cheers
 Per
 --
 View this message in context:
 http://www.nabble.com/What-are-the-consequences-on-sharing-panels-between-pages--tp21772949p21787239.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




-- 
Thomas Mäder
www.devotek-it.ch


RE: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
Several Ways to to this. The easiest way for your example


HTML:
H2span wicket:id=content/H2/

In Java
ModelString contentModel = new ModelString();
add(new Label(content, contentModel));
if (user=='admin'=
   contenModel.setObject(Admin part);
else if (user == 'anonymous')
   contenModel.setObject(Anonymous part);





Or in JAVA
if (user=='admin'=
   add(new Label(content, (Admin part));
else if (user == 'anonymous')
   add(new Label(content, (Anonymous part));


-Ursprüngliche Nachricht-
Von: cmoulliard [mailto:cmoulli...@gmail.com] 
Gesendet: Montag, 2. Februar 2009 11:10
An: users@wicket.apache.org
Betreff: How to personalise HTML content with Wicket ?


Hi,

I would like to know how we can personalize the content with Wicket ?

With framework like Struts, ... it is possible in a JSP page to display
different HTML contents (let's say personalize content) according to
conditions (e.g. profile user, ...).

if (user == 'admin')

H2Admin partH2/

if ( user == 'anonymous')

H2Anonymous part/H2

Regards,

Charles




-
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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



RE: How to personalise HTML content with Wicket ?

2009-02-02 Thread cmoulliard

Thks.

Can I also use Model to define HTML section containing regular HTML with
wicket id ?

table
tdtrtrtr/td
td wicket id=


Additional question : in this case, where content is define dynamically,
which java class will trigger the wicket tags ?
 

Stefan Lindner wrote:
 
 Several Ways to to this. The easiest way for your example
 
 
 HTML:
 H2H2/
 
 In Java
 ModelString contentModel = new ModelString();
 add(new Label(content, contentModel));
 if (user=='admin'=
contenModel.setObject(Admin part);
 else if (user == 'anonymous')
contenModel.setObject(Anonymous part);
 
 
 
 
 
 Or in JAVA
 if (user=='admin'=
add(new Label(content, (Admin part));
 else if (user == 'anonymous')
add(new Label(content, (Anonymous part));
 
 
 -Ursprüngliche Nachricht-
 Von: cmoulliard [mailto:cmoulli...@gmail.com] 
 Gesendet: Montag, 2. Februar 2009 11:10
 An: users@wicket.apache.org
 Betreff: How to personalise HTML content with Wicket ?
 
 
 Hi,
 
 I would like to know how we can personalize the content with Wicket ?
 
 With framework like Struts, ... it is possible in a JSP page to display
 different HTML contents (let's say personalize content) according to
 conditions (e.g. profile user, ...).
 
 if (user == 'admin')
 
 H2Admin partH2/
 
 if ( user == 'anonymous')
 
 H2Anonymous part/H2
 
 Regards,
 
 Charles
 
 
 
 
 -
 Charles Moulliard
 SOA Architect
 
 My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
 -- 
 View this message in context:
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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
 
 
 


-
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787287.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: Multi-module applications in Wicket

2009-02-02 Thread Daniel Stoch
Maybe you should look at OSGi? Then each of your application can be
defined inside a different bundle and runs on the same JVM. We are
using such approach in our environment and it works very well. A small
downside of such solution is that you have to learn what is it and how
to use OSGi (unless you already know it ;)).

--
Daniel

On Mon, Feb 2, 2009 at 10:39 AM, Daniel Lipski
daniel.lipski...@gmail.com wrote:

 yes, they use the same service layer and the same caches. Whats more its
 easier to deploy  build one war insted of many. Does your question suggests
 that there are problems with few Wicket filters in one webapp ?



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



Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Lipski

yes, they use the same service layer and the same caches. Whats more its
easier to deploy  build one war insted of many. Does your question suggests
that there are problems with few Wicket filters in one webapp ?


Thomas Mäder wrote:
 
 What you call modules really sounds like different web applications (in
 the java servlet sense). Is there a reason you cannot have multiple WARs?
 
 Thomas
 
 On Sun, Feb 1, 2009 at 2:09 PM, Daniel Lipski
 daniel.lipski...@gmail.comwrote:
 

 Hi

 Im working on web application divided into multiple 'modules' and Im
 wondering how to use Wicket in such
 scenario. Because 'module' means a lot, I'll specify what I would like to
 achive:
 1)diffrent home pages for each module
 2)diffrent session classes for each module (WebApplication.newSession)
 3)diffrent authentications (ie. module A - SSO, module B - web form)

 I can imagine two approaches:
 1)one Wicket application 'handling' both modules.But...:
 -because there is one appication I'll have to check logged user in
 WebApplication.newSession  WebApplication.getHomePage and return proper
 session object/home page class. Decision is taken on logged user, so in
 that
 methods Ill have to know which user has logged in. Is it possible to
 check
 logged user in this methods ? (arent they called before authentication ?)
 The other way is to make a decission not on logged user but on accessed
 Page
 (all pages in moduleA inherit from ModuleAWebPage and pages in moduleB
 inherit from ModuleBWebPage). But I doubt if requested page is avaliable
 in
 this two methods...
 -module A uses SSO to authenticate user, module B uses usual page, where
 should I choose how to authenticate user ? Which authenticating framework
 should I choose for this purpose ? (auth-roles, WASP ?)

 2)Two Wicket applications each 'handling' one module. Because there are
 two
 WebApplications there is no problem with determinig which session
 object/home page class return. There is no problem with diffrent
 authentications either.
 But...:
 -Is it possible  ? Can I map WicketFilter few times in web.xml ? I know
 that
 Wicket does a lots internal and I dont know if multiple Wicket
 'instances'
 can be run in one classloader. Are there any caveats/limitations when
 multiple Wicket instances work in parell (does Application.get() or other
 static methods still work - I saw that they are implemened with
 ThreadLocal
 but ...?)
 -How running multiple Wicket instances influences session size and other
 resources ?
 -Ther is a lot of settings (DI, mounting startegies, 'global' converters,
 global resources) that need to be shared beetweend this two modules. For
 majority of them I can make super class for both ModuleAWebApplication
 and
 ModuleBWebApplication and put common code there, but does moduleA can
 access
 shared by moduleB resources ?
 -It looks a little bit strange for me to create diffrent Wicket Web
 applications for each module. From the 'outside'(servlet container) its
 still one apllication (one war) so there is a little mismatch. Of course
 this is the least siginificant reason but I would like to use proper
 solutions rather then stretch the wrong one.

 For now Im closer to solution 2), but I worry about things which I havnt
 foreseen. Maybe there is general rule/pattern/solution for writing
 multi-module web applciaions ? Im sure its common issue and many of you
 could share some experience.

 Thanks for any help.
 Regards
 Daniel


 --
 View this message in context:
 http://www.nabble.com/Multi-module-applications-in-Wicket-tp21774998p21774998.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


 
 
 -- 
 Thomas Mäder
 www.devotek-it.ch
 
 

-- 
View this message in context: 
http://www.nabble.com/Multi-module-applications-in-Wicket-tp21774998p21786663.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: CSS Arrangement Order

2009-02-02 Thread Michael Sparer

I'd say just write in in there ;-)

Other possiblities are the use of HeaderContributors (see class
HeaderContributor) also have a look at
http://techblog.molindo.at/2008/08/wicket-interface-speed-up-merging-resources-for-fewer-http-requests.html
which might interest you if a lot of your pages/panels come up with their
own css

regards,
Michael


TH Lim wrote:
 
 Hi,
 
 How do I arrange my CSS declaration order? For example, the current order
 is 
 
 ...
 head
 ... some script tags removed
 link rel=stylesheet type=text/css href=css/style.css /
 link rel=stylesheet type=text/css href=resources/com.acme/box.css
 /
 link rel=stylesheet type=text/css
 href=resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
 /
 /head
 body
 ...
 
 resources/com.acme/box.css and
 resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css
 are CSS included with the libraries / components I used in my web
 application. How do I make my own CSS,css/style.css, to be placed after
 these CSS in head?
 
 Thanks
 
 /lim/
 
 


-
Michael Sparer
http://techblog.molindo.at
-- 
View this message in context: 
http://www.nabble.com/CSS-Arrangement-Order-tp21776162p21788633.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



AW: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
Of course! And: why not use wicket's Loop for generating each tr and nested 
Loop for building each td etc. The Examples were just a starting point for 
doing simple things like few text labels spread around the page.

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 2. Februar 2009 12:04
An: users@wicket.apache.org
Betreff: Re: How to personalise HTML content with Wicket ?

For this case why not have table/table  in a panel (or
fragment) and use it instead of generating the string by hand?  IMHO that
would be much more clear and consistent with wicket way of doing things...
Best

Ernesto

On Mon, Feb 2, 2009 at 11:47 AM, Stefan Lindner lind...@visionet.de wrote:

 Yes, you just have to tell the e.g. Label component not to escapte the
 model's content (label.setExcapteModelStrings(false)) Then the model's
 string is inserted into the HTML output without any further processing.
 You always need a html tag with wicket:id to trigger the output.


 HTML
 div wicket:id=raw/

 Java
 Label l = new Label(raw, table/table);
 l.setEscapeModelStrings(false);
 l.setRenderGodyOnly(true);
 add(l);


 -Ursprüngliche Nachricht-
 Von: cmoulliard [mailto:cmoulli...@gmail.com]
 Gesendet: Montag, 2. Februar 2009 11:26
 An: users@wicket.apache.org
 Betreff: RE: How to personalise HTML content with Wicket ?


 Thks.

 Can I also use Model to define HTML section containing regular HTML with
 wicket id ?

 table
 tdtrtrtr/td
 td wicket id=
 

 Additional question : in this case, where content is define dynamically,
 which java class will trigger the wicket tags ?


 Stefan Lindner wrote:
 
  Several Ways to to this. The easiest way for your example
 
 
  HTML:
  H2H2/
 
  In Java
  ModelString contentModel = new ModelString();
  add(new Label(content, contentModel));
  if (user=='admin'=
 contenModel.setObject(Admin part);
  else if (user == 'anonymous')
 contenModel.setObject(Anonymous part);
 
 
 
 
 
  Or in JAVA
  if (user=='admin'=
 add(new Label(content, (Admin part));
  else if (user == 'anonymous')
 add(new Label(content, (Anonymous part));
 
 
  -Ursprüngliche Nachricht-
  Von: cmoulliard [mailto:cmoulli...@gmail.com]
  Gesendet: Montag, 2. Februar 2009 11:10
  An: users@wicket.apache.org
  Betreff: How to personalise HTML content with Wicket ?
 
 
  Hi,
 
  I would like to know how we can personalize the content with Wicket ?
 
  With framework like Struts, ... it is possible in a JSP page to display
  different HTML contents (let's say personalize content) according to
  conditions (e.g. profile user, ...).
 
  if (user == 'admin')
 
  H2Admin partH2/
 
  if ( user == 'anonymous')
 
  H2Anonymous part/H2
 
  Regards,
 
  Charles
 
 
 
 
  -
  Charles Moulliard
  SOA Architect
 
  My Blog :  http://cmoulliard.blogspot.com/
 http://cmoulliard.blogspot.com/
  --
  View this message in context:
 
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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
 
 
 


 -
 Charles Moulliard
 SOA Architect

 My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
 --
 View this message in context:
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787287.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



How to personalise HTML content with Wicket ?

2009-02-02 Thread cmoulliard

Hi,

I would like to know how we can personalize the content with Wicket ?

With framework like Struts, ... it is possible in a JSP page to display
different HTML contents (let's say personalize content) according to
conditions (e.g. profile user, ...).

if (user == 'admin')

H2Admin partH2/

if ( user == 'anonymous')

H2Anonymous part/H2

Regards,

Charles




-
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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: Servlet container authentication in Wicket

2009-02-02 Thread James Carman
j_security_check is part of the Servlet Specification section
SRV.12.5.3.1 Login Form Notes (at least for version 2.5).  It did
exist in earlier versions but I've only quoted the latest.

On Sun, Feb 1, 2009 at 5:03 PM, Philipp Daumke dau...@averbis.de wrote:
 Hi all,

 I followed the Servlet Container authentication as described in
 http://cwiki.apache.org/WICKET/servlet-container-authentication.html, but I
 do not get it working.

 At the moment I get an error in firefox when invoking the
 redirectToSecurityCheck() method:

 http://localhost:5080/j_security_check?j_username=testj_password=test
 _The requested resource () is not available.

 _I don't even know exactly what j_security_check is and don't find too
 much on the web. Do I have to configure Tomcat properly?

 Below is my full src. MyApp.java and web.xml look like in the example (see
 link aboe). Thank you for your help!
 Philipp


 public final class LoginPage extends WebPage
 {
   private String username;
   private String password;
   public LoginPage()
   {
   redirectToSecurityCheck();
   /*if( ( ( MySession )getSession() ).isUserLoggedIn())
   {
   // redirect to hide username and password from URL after user is
 logged in
   setRedirect( true );
   setResponsePage( Index.class );
   }
   else
   {
   redirectToSecurityCheck();
   }*/
   }

   /**
* Common servlet login workaround
*/
   private void redirectToSecurityCheck()
   {
   final Map parametersMap = ( ( WebRequestCycle )RequestCycle.get()
 ).getWebRequest().getHttpServletRequest().getParameterMap();
   if( parametersMap.containsKey( username ) 
 parametersMap.containsKey( password ) )
   {
   // getting parameters from POST request
   final String userName = ( ( String[] )parametersMap.get(
 username ) )[ 0 ];
   final String userPassword = ( ( String[] )parametersMap.get(
 password ) )[ 0 ];

   // if POST parameters are ok, redirect them to j_security_check
   if( ( userName != null )  ( userPassword != null ) )
   {
   getRequestCycle().setRedirect( false );
   getRequestCycle().setRequestTarget(
 EmptyRequestTarget.getInstance() );

   getResponse().redirect(
   /j_security_check?j_username= + userName +
 j_password= + userPassword );
   }
   }
   }

   public String getUsername() {
   return username;
   }

   public void setUsername(String username) {
   this.username = username;
   }

   public String getPassword() {
   return password;
   }

   public void setPassword(String password) {
   this.password = password;
   }
 }
 --

 Averbis GmbH
 c/o Klinikum der Albert-Ludwigs-Universität
 Stefan-Meier-Strasse 26
 D-79104 Freiburg

 Fon: +49 (0) 761 - 203 6707
 Fax: +49 (0) 761 - 203 6800
 E-Mail: dau...@averbis.de

 Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
 Sitz der Gesellschaft: Freiburg i. Br.
 AG Freiburg i. Br., HRB 701080


 -
 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



AW: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
My answer was not ment ironically. I understand what you mean I too prefer the 
Panel/Loop way. I just wanted to give a simple answer to a simple question of a 
wicket beginner. I think that Charles has a good starting point now for further 
wicket experiences.

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Montag, 2. Februar 2009 12:31
An: users@wicket.apache.org
Betreff: Re: How to personalise HTML content with Wicket ?

Hi Stefan,
All wanted to stress is the fact that there are very few cases where you
will want to generate the HTML by hand... Then what would be the point in
using Wicket? And in this particular case I personally would prefer to use
panels...

Best,

Ernesto

On Mon, Feb 2, 2009 at 12:18 PM, Stefan Lindner lind...@visionet.de wrote:

 Of course! And: why not use wicket's Loop for generating each tr and
 nested Loop for building each td etc. The Examples were just a starting
 point for doing simple things like few text labels spread around the page.

 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
 Gesendet: Montag, 2. Februar 2009 12:04
 An: users@wicket.apache.org
 Betreff: Re: How to personalise HTML content with Wicket ?

 For this case why not have table/table  in a panel (or
 fragment) and use it instead of generating the string by hand?  IMHO that
 would be much more clear and consistent with wicket way of doing things...
 Best

 Ernesto

 On Mon, Feb 2, 2009 at 11:47 AM, Stefan Lindner lind...@visionet.de
 wrote:

  Yes, you just have to tell the e.g. Label component not to escapte the
  model's content (label.setExcapteModelStrings(false)) Then the model's
  string is inserted into the HTML output without any further processing.
  You always need a html tag with wicket:id to trigger the output.
 
 
  HTML
  div wicket:id=raw/
 
  Java
  Label l = new Label(raw, table/table);
  l.setEscapeModelStrings(false);
  l.setRenderGodyOnly(true);
  add(l);
 
 
  -Ursprüngliche Nachricht-
  Von: cmoulliard [mailto:cmoulli...@gmail.com]
  Gesendet: Montag, 2. Februar 2009 11:26
  An: users@wicket.apache.org
  Betreff: RE: How to personalise HTML content with Wicket ?
 
 
  Thks.
 
  Can I also use Model to define HTML section containing regular HTML with
  wicket id ?
 
  table
  tdtrtrtr/td
  td wicket id=
  
 
  Additional question : in this case, where content is define dynamically,
  which java class will trigger the wicket tags ?
 
 
  Stefan Lindner wrote:
  
   Several Ways to to this. The easiest way for your example
  
  
   HTML:
   H2H2/
  
   In Java
   ModelString contentModel = new ModelString();
   add(new Label(content, contentModel));
   if (user=='admin'=
  contenModel.setObject(Admin part);
   else if (user == 'anonymous')
  contenModel.setObject(Anonymous part);
  
  
  
  
  
   Or in JAVA
   if (user=='admin'=
  add(new Label(content, (Admin part));
   else if (user == 'anonymous')
  add(new Label(content, (Anonymous part));
  
  
   -Ursprüngliche Nachricht-
   Von: cmoulliard [mailto:cmoulli...@gmail.com]
   Gesendet: Montag, 2. Februar 2009 11:10
   An: users@wicket.apache.org
   Betreff: How to personalise HTML content with Wicket ?
  
  
   Hi,
  
   I would like to know how we can personalize the content with Wicket ?
  
   With framework like Struts, ... it is possible in a JSP page to display
   different HTML contents (let's say personalize content) according to
   conditions (e.g. profile user, ...).
  
   if (user == 'admin')
  
   H2Admin partH2/
  
   if ( user == 'anonymous')
  
   H2Anonymous part/H2
  
   Regards,
  
   Charles
  
  
  
  
   -
   Charles Moulliard
   SOA Architect
  
   My Blog :  http://cmoulliard.blogspot.com/
  http://cmoulliard.blogspot.com/
   --
   View this message in context:
  
 
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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
  
  
  
 
 
  -
  Charles Moulliard
  SOA Architect
 
  My Blog :  http://cmoulliard.blogspot.com/
 http://cmoulliard.blogspot.com/
  --
  View this message in context:
 
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787287.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: 

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Stoch
No, I don't say you need OSGi container, but in more complex
environments it may be helpful.
Of course you can, as you wrote, map WicketFilter multiple times and
this should work - why you didn't try this yet? :)

--
Daniel

On Mon, Feb 2, 2009 at 12:03 PM, Daniel Lipski
daniel.lipski...@gmail.com wrote:

 Do I really need OSGi container ?(OSGi is great idea, but I would like to
 keep this simple)
 Why I cant just map WicketFilter multiple times ? I would like to stay with
 one war deployed on Tomcat container.


 Daniel Stoch-2 wrote:

 Maybe you should look at OSGi? Then each of your application can be
 defined inside a different bundle and runs on the same JVM. We are
 using such approach in our environment and it works very well. A small
 downside of such solution is that you have to learn what is it and how
 to use OSGi (unless you already know it ;)).

 --
 Daniel

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



Re: Pageable tree?

2009-02-02 Thread Igor Vaynberg
no, use the listview to only list your roots. when you click on one it
refreshes the tree to the right with that root.

-igor

On Mon, Feb 2, 2009 at 7:59 AM, Zhubin Salehi zhooz...@yahoo.com wrote:

 You mean put several trees in a listview or using a single tree and a single
 list view? I thought about breaking the original tree into several trees and
 put them in a listview, but I don't know how to use a single listview and a
 single tree.

 Zhubin


 igor.vaynberg wrote:

 so use two components

 [listview][tree]

 where listview lets you select roots and refreshes the tree with the
 selected root.

 -igor

 On Mon, Feb 2, 2009 at 7:04 AM, Zhubin Salehi zhooz...@yahoo.com wrote:

 I have a rootless tree with a large number of nodes on the first level. I
 only want to make a first level pageable.

 Zhubin


 Matej Knopp-2 wrote:

 The whole purpose of tree is to structure your data in way that
 doesn't need paging. I never really got the concept of pageable tree.
 How do you know what level you are on second page when your root is on
 first page?

 -Matej

 On Sat, Jan 31, 2009 at 10:53 AM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
 The inmethod packages might contains such a thing, but I doubt it. See
 wicketstuff svn for the inmethod components.

 Martijn

 On Fri, Jan 30, 2009 at 8:31 PM, Zhubin Salehi zhooz...@yahoo.com
 wrote:

 Hi,

 Is there some kind of pageable tree class in Wicket, or I have to
 break
 up
 my tree to several smaller trees and put them in a PageableListView?

 Thanks,
 Zhubin
 --
 View this message in context:
 http://www.nabble.com/Pageable-tree--tp21754065p21754065.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





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



 -
 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/Pageable-tree--tp21754065p21791193.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




 --
 View this message in context: 
 http://www.nabble.com/Pageable-tree--tp21754065p21792237.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



Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Newgro

Hi Thomas,

can you please explain this a bit. What do you mean by session state. How
can i use session state in my context?

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/What-are-the-consequences-on-sharing-panels-between-pages--tp21772949p21787239.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: What are the consequences on sharing panels between pages?

2009-02-02 Thread Matej Knopp
Sharing wicket components between page is a very bad idea. You are
about to open large can of very nasty worms. Just don't do it. Proper
way is to externalize the navigation state from your component and
store it in session. Write couple of detachable models that do that.

-Matej

On Sun, Feb 1, 2009 at 10:08 AM, Per Newgro per.new...@gmx.ch wrote:
 Hi,

 i would like to share (instance reuse) a navigation panel in my page flow. I
 try to achieve that so i can keep the current state of navigation
 components. It's a clone of the windows xp sidebar in system controls.

 But i don't know if sharing is a good idea. I will have many pages. What
 happens if i create a new page, add the navigation panel of one page to the
 next and redirect by using setResponsePage?
 Will the last page be garbage collected? Normally java is only gc if no
 references are present to an object. Is wicket doing it similar?

 Thanks 4 help
 Per

 -
 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: How to personalise HTML content with Wicket ?

2009-02-02 Thread Stefan Lindner
Yes, you just have to tell the e.g. Label component not to escapte the model's 
content (label.setExcapteModelStrings(false)) Then the model's string is 
inserted into the HTML output without any further processing.
You always need a html tag with wicket:id to trigger the output.


HTML
div wicket:id=raw/

Java
Label l = new Label(raw, table/table);
l.setEscapeModelStrings(false);
l.setRenderGodyOnly(true);
add(l);


-Ursprüngliche Nachricht-
Von: cmoulliard [mailto:cmoulli...@gmail.com] 
Gesendet: Montag, 2. Februar 2009 11:26
An: users@wicket.apache.org
Betreff: RE: How to personalise HTML content with Wicket ?


Thks.

Can I also use Model to define HTML section containing regular HTML with
wicket id ?

table
tdtrtrtr/td
td wicket id=


Additional question : in this case, where content is define dynamically,
which java class will trigger the wicket tags ?
 

Stefan Lindner wrote:
 
 Several Ways to to this. The easiest way for your example
 
 
 HTML:
 H2H2/
 
 In Java
 ModelString contentModel = new ModelString();
 add(new Label(content, contentModel));
 if (user=='admin'=
contenModel.setObject(Admin part);
 else if (user == 'anonymous')
contenModel.setObject(Anonymous part);
 
 
 
 
 
 Or in JAVA
 if (user=='admin'=
add(new Label(content, (Admin part));
 else if (user == 'anonymous')
add(new Label(content, (Anonymous part));
 
 
 -Ursprüngliche Nachricht-
 Von: cmoulliard [mailto:cmoulli...@gmail.com] 
 Gesendet: Montag, 2. Februar 2009 11:10
 An: users@wicket.apache.org
 Betreff: How to personalise HTML content with Wicket ?
 
 
 Hi,
 
 I would like to know how we can personalize the content with Wicket ?
 
 With framework like Struts, ... it is possible in a JSP page to display
 different HTML contents (let's say personalize content) according to
 conditions (e.g. profile user, ...).
 
 if (user == 'admin')
 
 H2Admin partH2/
 
 if ( user == 'anonymous')
 
 H2Anonymous part/H2
 
 Regards,
 
 Charles
 
 
 
 
 -
 Charles Moulliard
 SOA Architect
 
 My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
 -- 
 View this message in context:
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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
 
 
 


-
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787287.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: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Piller Sébastien

Hi,

add the xmlns:wicket definition in html:

   html xmlns:wicket
   ...


this works fine for me

Kent Larsson a écrit :

Hi,

If I have some HTML with Wicket attributes in it:

html
head
titleNew User Registration/title
/head
body
strongEven Newer User Registration Form/strong
br/br/
span wicket:id=messagemessage will be here/span
/body
/html

I get Undefined attribute name (wicket:id). warning from Eclipse Ganymede
from the span... line. What's the best solution to get rid of such
warnings? If it's possible having some validation would be nice.

Best regards, Kent

  



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



Re: What are the consequences on sharing panels between pages?

2009-02-02 Thread Per Newgro

Thanks Thomas and Matej,

storing state in session sounds natural in your explanations. It comes 
into my mind, that i could initiate
the instance in Application.newSession(). Is this the right place for 
this task?
The the navigational panel could extract an initialized model instance 
from the session.


Thanks alot for clearing this to me
Per

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



Re: Pageable tree?

2009-02-02 Thread Igor Vaynberg
so use two components

[listview][tree]

where listview lets you select roots and refreshes the tree with the
selected root.

-igor

On Mon, Feb 2, 2009 at 7:04 AM, Zhubin Salehi zhooz...@yahoo.com wrote:

 I have a rootless tree with a large number of nodes on the first level. I
 only want to make a first level pageable.

 Zhubin


 Matej Knopp-2 wrote:

 The whole purpose of tree is to structure your data in way that
 doesn't need paging. I never really got the concept of pageable tree.
 How do you know what level you are on second page when your root is on
 first page?

 -Matej

 On Sat, Jan 31, 2009 at 10:53 AM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
 The inmethod packages might contains such a thing, but I doubt it. See
 wicketstuff svn for the inmethod components.

 Martijn

 On Fri, Jan 30, 2009 at 8:31 PM, Zhubin Salehi zhooz...@yahoo.com
 wrote:

 Hi,

 Is there some kind of pageable tree class in Wicket, or I have to break
 up
 my tree to several smaller trees and put them in a PageableListView?

 Thanks,
 Zhubin
 --
 View this message in context:
 http://www.nabble.com/Pageable-tree--tp21754065p21754065.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





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



 -
 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/Pageable-tree--tp21754065p21791193.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



Re: Wicket-Jasper report

2009-02-02 Thread freak182

Hello,

This is the updated version of wicket-jasper-core-1.3.0.

download:  http://www.nabble.com/file/p21788601/wicket-jasper-core.tgz
wicket-jasper-core.tgz 


freak182 wrote:
 
 Hello,
 
 I made a small utility based on wicket-contrib-jasper. The feature of this
 tools is that the jasper report is now paging using PageableListView or
 QueryDataProvider. And display in embeded pdf format.
 
 Anyone is free to enhance this and distribute.
 
 Thanks.
  http://www.nabble.com/file/p21348858/wicket-jasper.zip wicket-jasper.zip 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Jasper-report-tp21348858p21788601.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: How to personalise HTML content with Wicket ?

2009-02-02 Thread Ernesto Reinaldo Barreiro
Wicket has very powerful means to do skinning... See
http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html

for a start... Besides that you could do all kind of tricks working with
panels and component visibility: depending on conditions show one (hide
one/replace with another) panel. The difference is the logic will be on the
Java side and not in the JSP page...

Best

Ernesto

On Mon, Feb 2, 2009 at 11:09 AM, cmoulliard cmoulli...@gmail.com wrote:


 Hi,

 I would like to know how we can personalize the content with Wicket ?

 With framework like Struts, ... it is possible in a JSP page to display
 different HTML contents (let's say personalize content) according to
 conditions (e.g. profile user, ...).

 if (user == 'admin')

 H2Admin partH2/

 if ( user == 'anonymous')

 H2Anonymous part/H2

 Regards,

 Charles




 -
 Charles Moulliard
 SOA Architect

 My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
 --
 View this message in context:
 http://www.nabble.com/How-to-personalise-HTML-content-with-Wicket---tp21787067p21787067.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




Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Azzeddine Daddah
Hi,
I've two text fields wrapped in a container. What I want to do is to let the
user remove these fields via a link. This is my code which does not work.
The wrapper container stills appear even the link is submitted:

html xmlns:wicket
wicket:panel
div wicket:id=container
input type=text wicket:id=recipeIngredientQty style=width: 15%;
float: left; margin-right: 10px;/
input type=text wicket:id=recipeIngredient style=width: 80%;
margin-bottom: 7px;/
a wicket:id=removeLink[x]/a
/div
/wicket:panel
/html

public class IngredientPanel extends Panel {

/**
 * Creates a new {...@link IngredientPanel}.
 *
 * @param id the panel id; may not be codenull/code
 * @param model the panel model; may not be codenull/code
 */
public IngredientPanel(String id, IModelRecipeIngredient model) {
super(id, model);
RecipeIngredient recipeIngredient = model.getObject();

final WebMarkupContainer container = new
WebMarkupContainer(container, model);
container.setOutputMarkupId(true);
container.add(new RequiredTextFieldString(recipeIngredientQty,
new ModelString(recipeIngredient.getQuantity(;
container.add(new RequiredTextFieldString(recipeIngredient, new
ModelString(recipeIngredient.getIngredient().getName(;
container.add(new AjaxLinkVoid(removeLink) {
@Override
public void onClick(AjaxRequestTarget target) {
remove(container);
}
});
add(container);
}
}

Kind regards,

Hbiloo


Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Timo Rantalaiho
On Mon, 02 Feb 2009, jWeekend wrote:
 We've been using: 
 xmlns:wicket=http://svn.apache.org/repos/asf/wicket/trunk/wicket/wicket-xhtml1-strict.dtd;.

Nowadays there's also

http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd

http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: AjaxFallbackDefaultDataTable and AjaxLink

2009-02-02 Thread Timo Rantalaiho
On Mon, 02 Feb 2009, Mathias P.W Nilsson wrote:
 Why should it be strange to edit properties for let's say a user in a modal
 window?

Not strange from Wicket point of view but from user interface
design point of view:

http://en.wikipedia.org/wiki/Modal_window#Criticisms

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread James Carman
I don't know that I'd point your xmlns at the Apache Subversion
server.  Can't you just use the URL mentioned in the wiki?

On Mon, Feb 2, 2009 at 10:55 PM, Timo Rantalaiho timo.rantala...@ri.fi wrote:
 On Mon, 02 Feb 2009, jWeekend wrote:
 We've been using:
 xmlns:wicket=http://svn.apache.org/repos/asf/wicket/trunk/wicket/wicket-xhtml1-strict.dtd;.

 Nowadays there's also

 http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd

 http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

 -
 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: Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Martin Makundi
Run Wicket in development mode and investigate what happens in the
Wicket Ajax Debug dialog (right bottom corner of your browser).

**
Martin

2009/2/3 Azzeddine Daddah waarhei...@gmail.com:
 Hi,
 I've two text fields wrapped in a container. What I want to do is to let the
 user remove these fields via a link. This is my code which does not work.
 The wrapper container stills appear even the link is submitted:

 html xmlns:wicket
wicket:panel
div wicket:id=container
input type=text wicket:id=recipeIngredientQty style=width: 15%;
 float: left; margin-right: 10px;/
input type=text wicket:id=recipeIngredient style=width: 80%;
 margin-bottom: 7px;/
a wicket:id=removeLink[x]/a
/div
/wicket:panel
 /html

 public class IngredientPanel extends Panel {

/**
 * Creates a new {...@link IngredientPanel}.
 *
 * @param id the panel id; may not be codenull/code
 * @param model the panel model; may not be codenull/code
 */
public IngredientPanel(String id, IModelRecipeIngredient model) {
super(id, model);
RecipeIngredient recipeIngredient = model.getObject();

final WebMarkupContainer container = new
 WebMarkupContainer(container, model);
container.setOutputMarkupId(true);
container.add(new RequiredTextFieldString(recipeIngredientQty,
 new ModelString(recipeIngredient.getQuantity(;
container.add(new RequiredTextFieldString(recipeIngredient, new
 ModelString(recipeIngredient.getIngredient().getName(;
container.add(new AjaxLinkVoid(removeLink) {
@Override
public void onClick(AjaxRequestTarget target) {
remove(container);
}
});
add(container);
}
 }

 Kind regards,

 Hbiloo


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



RE: Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Jeremy Thomerson
A couple of problems:

1 - don't remove it. You should make it invisible (setVisible(false))

2 - you're trying to remove the container from the link, but it was added to 
the panel.  You would have to call IngredientPanel.this.remove (but don't)


Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Martin Makundi martin.maku...@koodaripalvelut.com
Sent: Tuesday, February 03, 2009 12:16 AM
To: users@wicket.apache.org
Subject: Re: Component doesn't disappear when removing it via an ajax link

Run Wicket in development mode and investigate what happens in the
Wicket Ajax Debug dialog (right bottom corner of your browser).

**
Martin

2009/2/3 Azzeddine Daddah waarhei...@gmail.com:
 Hi,
 I've two text fields wrapped in a container. What I want to do is to let the
 user remove these fields via a link. This is my code which does not work.
 The wrapper container stills appear even the link is submitted:

 html xmlns:wicket
wicket:panel
div wicket:id=container
input type=text wicket:id=recipeIngredientQty style=width: 15%;
 float: left; margin-right: 10px;/
input type=text wicket:id=recipeIngredient style=width: 80%;
 margin-bottom: 7px;/
a wicket:id=removeLink[x]/a
/div
/wicket:panel
 /html

 public class IngredientPanel extends Panel {

/**
 * Creates a new {...@link IngredientPanel}.
 *
 * @param id the panel id; may not be codenull/code
 * @param model the panel model; may not be codenull/code
 */
public IngredientPanel(String id, IModelRecipeIngredient model) {
super(id, model);
RecipeIngredient recipeIngredient = model.getObject();

final WebMarkupContainer container = new
 WebMarkupContainer(container, model);
container.setOutputMarkupId(true);
container.add(new RequiredTextFieldString(recipeIngredientQty,
 new ModelString(recipeIngredient.getQuantity(;
container.add(new RequiredTextFieldString(recipeIngredient, new
 ModelString(recipeIngredient.getIngredient().getName(;
container.add(new AjaxLinkVoid(removeLink) {
@Override
public void onClick(AjaxRequestTarget target) {
remove(container);
}
});
add(container);
}
 }

 Kind regards,

 Hbiloo


-
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: Google Maps / GMap2?

2009-02-02 Thread Martin Funk
Hi Fabrizio,

basically this still holds true:
http://www.nabble.com/where-is-wicket-contrib-gmap3-1.3.4-td20063260.html#a20064098

mf

2009/2/2 Fabrizio Giudici fabrizio.giud...@tidalwave.it

 I need to integrate Google Maps in my Wicket application. I searched in the
 Wiki and found GMap2 - but I only see artifacts for Wicket 1.4 Is it
 possible to use it, or some alternative, with Wicket 1.3.x?

 Thanks.

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


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




Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Kent Larsson
On Tue, Feb 3, 2009 at 4:55 AM, Timo Rantalaiho timo.rantala...@ri.fiwrote:

 Nowadays there's also

 http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd

 http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd

 Best wishes, Timo


But those two are exactly the same (same size and same content, only the
file names differ). Why are there two identical files?

Best regards, Kent