Re: How to speed up a page that uses data from a slow webservice

2009-07-14 Thread Igor Vaynberg
in onbeforerender of the page you can execute the 7 calls you will
need in parallel and cache the data in fields.

if you want your page to feel more resposive you can present the user
with a busy indicator and using ajax feed back status messages or a
progressbar, once you have the data redirect to a page that presents
it.

-igor

On Mon, Jul 13, 2009 at 10:53 PM, Martin Tilmam.ti...@func.nl wrote:
 Hi all,

 I have a page and it's a bit slow and I want to speed it up, but don't
 know a proper solution.

 The case:

 I have a page that contains 5 components showing different data
 retrieved from a webservice. Each webservice call takes about 1 second.
 Besides that I have 2 buttons who's visibility is based on data from
 also the same slow webservice. In total there are 7 calls taking about 7
 seconds to finish and to render the page.

 I could cache the data, but that will only work the second time. I was
 thinking about a way to preload the data and maybe use different threads
 so the calls don't have to wait for each other...


 Any ideays?

 Martin



 -
 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: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-14 Thread Igor Vaynberg
add it as a dependency in the pom file.

-igor

2009/7/13 彭光裕 rolandp...@cht.com.tw:
 I have learned how to make a quickstart.
 But for simulating this problem, tinymce-1.4-SNAPSHOT.jar should be included 
 into classpath.

 My question is how to include tinymce-1.4-SNAPSHOT.jar in maven.
 to avoid the exception below:
 java.lang.NoClassDefFoundError: 
 wicket/contrib/tinymce/settings/TinyMCESettings

 I'm just a newbie for maven, so please someone can teach me how to do this, 
 thank you.

 Roland.

 -Original Message-

 Sent: Monday, July 13, 2009 11:27 AM
 To: users@wicket.apache.org
 Subject: Dropdownchoice missing (only when the page with Tinymce component) 
 while scrolling the vertical scroll bar

 I find my Dropdownchoice missing while scrolling the vertical scroll bar.

 After I look into the codes and compare with other web pages,
 I find the dropdownchoice component only dispeared with Tinymce component in 
 the same page.

 Both Dropdownchoice and Timymce can work well without a small length web page.
 But when the length of web page large enough and the vertical scroll bar 
 showup , the strange thing happend.
 When I move the vertical scroll bar, the Dropdownchoice gets dispeared.

 I have removed all the CSS used in my web page,so I'm so sure this problem is 
 lead by Tinymce CSS.

 Does anyone find this strange condition happend?and how do you resolve this 
 problem? thanks.






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



Re: Wicket-Scala extensions

2009-07-14 Thread Jan Kriesten

Hi Antony,

great to see Scala and Wicket getting more popular. :-)

I've been using them together quite a while now and am convinced that there are
lots of benefits in it!

I created a dynamic component (like wicket:component which isn't officially
supported) which also works with Ajax. There's also a 'VarModel' which is
similar to your Fodel. You'll find the sources here:
http://www.footprint.de/fcc/2008/11/some-wicket-scala/

I also use Scala's mixin capabilities to abstract layout information out of the
pages/components. E.g. to define cell styles of datatable columns or to format
cell output, I have something like:

  trait Centered[T] extends IStyledColumn[T] {
abstract override def getCssClass: String = {
  val style = super.getCssClass

  if( style==null ) columnCentered
  else style +   + columnCentered
}
  }

  trait DateFormat[T] extends PropertyColumn[T] {
override protected def createLabelModel( embeddedModel: IModel[T] ):
IModel[_] = {
  val m = super.createLabelModel( embeddedModel )
  m.getObject match {
case dt: DateTime = VarModel( dt.toString( dateFormatter.withLocale(
getLocale ) ) )
case _ = m
  }
}
  }

To create/apply a cell to use this style I just have to apply this trait:

val col1 = new PropertyColumn[M]( new Model( Date ), COL_DATE, reg_date )
with Centered[M] with DateFormat[M]


Scala's just great to abstract more between logic and layout.

Best regards, --- Jan.



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



Re: How to speed up a page that uses data from a slow webservice

2009-07-14 Thread Alex Objelean

What about using AjaxLazyLoadPanel? Another solution could be: when page is
loaded, call from javascript a callback which will initiate an ajax call
responsible for updating each component. I did something similar, but using
other technologies (struts + dwr)... I think there could be similar approach
also with wicket.

Alex Objelean


Martin Tilma wrote:
 
 Hi all,
 
 I have a page and it's a bit slow and I want to speed it up, but don't
 know a proper solution.
 
 The case:
 
 I have a page that contains 5 components showing different data
 retrieved from a webservice. Each webservice call takes about 1 second.
 Besides that I have 2 buttons who's visibility is based on data from
 also the same slow webservice. In total there are 7 calls taking about 7
 seconds to finish and to render the page.
 
 I could cache the data, but that will only work the second time. I was
 thinking about a way to preload the data and maybe use different threads
 so the calls don't have to wait for each other...
 
 
 Any ideays?
 
 Martin
 
 
 
 -
 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-speed-up-a-page-that-uses-data-from-a-slow-webservice-tp24474082p24475195.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket-Scala extensions

2009-07-14 Thread Antony Stubbs

omgosh - http://www.footprint.de/fcc/2009/02/london-wicket-presentation/
I've met you! haha. h... Isn't the internet nutty?!

On 14/07/2009, at 7:14 PM, Jan Kriesten wrote:



Hi Antony,

great to see Scala and Wicket getting more popular. :-)

I've been using them together quite a while now and am convinced  
that there are

lots of benefits in it!

I created a dynamic component (like wicket:component which isn't  
officially
supported) which also works with Ajax. There's also a 'VarModel'  
which is

similar to your Fodel. You'll find the sources here:
http://www.footprint.de/fcc/2008/11/some-wicket-scala/

I also use Scala's mixin capabilities to abstract layout information  
out of the
pages/components. E.g. to define cell styles of datatable columns or  
to format

cell output, I have something like:

 trait Centered[T] extends IStyledColumn[T] {
   abstract override def getCssClass: String = {
 val style = super.getCssClass

 if( style==null ) columnCentered
 else style +   + columnCentered
   }
 }

 trait DateFormat[T] extends PropertyColumn[T] {
   override protected def createLabelModel( embeddedModel:  
IModel[T] ):

IModel[_] = {
 val m = super.createLabelModel( embeddedModel )
 m.getObject match {
   case dt: DateTime =  
VarModel( dt.toString( dateFormatter.withLocale(

getLocale ) ) )
   case _ = m
 }
   }
 }

To create/apply a cell to use this style I just have to apply this  
trait:


val col1 = new PropertyColumn[M]( new Model( Date ), COL_DATE,  
reg_date )

with Centered[M] with DateFormat[M]


Scala's just great to abstract more between logic and layout.

Best regards, --- Jan.



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

2009-07-14 Thread Sam Stainsby
Not yet, but I can make it available if there is interest.

Antony Stubbs wrote:
 Just a quick note, is the source available for all this?
 
 all I see is svn checkout
 file:///home/sam/work/svn_repository/uniscala/trunk uniscala
 on http://uniscala.net/source-repository.html
 
 On 14/07/2009, at 12:46 PM, Sam Stainsby wrote:
 
 On Tue, 14 Jul 2009 11:38:33 +1200, Antony Stubbs wrote:

 I'm very interested in people's suggestions of otherways of taking
 advantage of Scala to make Wicket programming easier.

 We are using Scala and Wicket intensively (and the DB4O object database
 as well). One thing we are working on is Wicket form generation, which
 touches on ideas that are similar to those you have discussed.

 This is what we can do today: consider this domain class:

 class MyRectangle(var width:Int, var height:Int) extends Serializable {
  def area:Double = width*height
 }

 we can then do:

 class MyRectangleSchema extends SimpleFieldsSchema[MyRectangle](
  ReadWriteFieldSchema(width, _.width, _.width = _:Int),
  ReadWriteFieldSchema(height, _.height, _.height = _:Int),
  ReadOnlyFieldSchema(area, _.area)
 )

 Above we are defining the accessors and mutators for each field except
 the last which just has an accessor. We could probably use introspection
 to make this much more succinct, and will likely provide this as an
 option at some stage. As you see we don't use the JavaBeans conventions
 as we find they are not very scala-ish, and so fully automatic
 introspection is problematic.

 Creating a rectangle and schema first:

 val rectangle = new MyRectangle(width, height)
 val schema = new MyRectangleSchema()

 we use a 'builder' object to create Wicket components:

 val builder = new ViewBuilder { }

 We can then create a simple 'view' thus:

 builder.createView(panel1, schema, rectangle)

 and a simple form like this:

 builder.createFormView(panel2, schema, rectangle,
  new Button(submit) {
override def onSubmit = // .. do something ...
  }
 )

 Note that the above is completely type-safe. You can also mix and match
 fields from different schemas, and create schemas for aggregate objects
 by embedding (sub-)schemas inside other schemas. Builders can be
 overridden to provider custom components for any fields that need them.

 This part of the project is still half-formed and fairly raw and
 undocumented. Really only text fields are catered for. The javadoc is
 here:

 http://uniscala.net/uniscala-view/scaladocs/index.html
 http://uniscala.net/uniscala-view-wicket/scaladocs/index.html

 and is part of a larger project:

 http://uniscala.net/

 Apologies for lack of cross-linking between modules in the scaladoc - I
 haven't worked out how to do this yet.


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

 


-- 
Sam Stainsby  -  Managing Director
Sustainable Software Pty Ltd
open knowledge :: social conscience
ABN: 32 117 186 286
WWW: http://sustainablesoftware.com.au/
E-mail:  s...@sustainablesoftware.com.au
Jabber:  sjstain...@jabber.org
Tel/Fax: +61 7 3289 5491Mobile: +61 405 380 844

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



Re: Can one avoid the pagmap name in the url

2009-07-14 Thread okrohne

Hi,

if I could force to use the pagemap name (e.g. igramed) in the the iframed
pages (and in those urls) which extends also a different Template then the
pages
on the main website would use the default pagemap and the pagemap name would
not be displayed in
the url. Right?  Is there a way to achieve this with wicket 1.4 ? 

Thanks for any approaches,
Oliver



igor.vaynberg wrote:
 
 not sure if storing in a cookie would work easily. we would still have
 to keep the cookie name somewhere...and so you are back to adding that
 to the url.
 
 i think in 1.5 what we can do is make the page id unique across all
 pagemaps and keep the mapping in session. not sure how easy that would
 be to implement in 1.4.
 
 -igor
 
 On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohneokro...@yahoo.de wrote:
 Hi,

 I turned on the option Automatic Multi Window Support and now if I open
 some
 windows / tabs I see the pagemap name in the url like
 /?wicket:pageMapName=wicket-3.
 After each link I click the pagemap name changes even in the same window,
 I wonder if
 this is correct ?

 Is there any way that the pagemap does not appear in the url?
 Could it be stored in a cookie?

 A part of my website is displayed in an iframe on some customer pages. If
 a user opens pages
 in the iframe and then switches to the main website possibly in a
 different window then sometimes
 I got PageExpiredException .
 Is there a way to force all iframed pages to use a different pagemap
 without displaying the pagemap name
 in the url on the main (non iframed) website?


 Thanks for any hints,

 Oliver



 
 -
 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/Can-one-avoid-the-pagmap-name-in-the-url-tp24460046p24476690.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



Portlet

2009-07-14 Thread David Skuben
Hello


Re: how to get some data from servlet

2009-07-14 Thread Altuğ B . Altıntaş
Also I have a problem like yours.

Servlet session and Wicket's session are different so you are getting nul.
Just debug your application and you will see that they have different
session Id's.

I tried to use WicketSessionFilter but it doesn't work.

I am using wicket 1.3.5.

Cheers...

Altug.

2009/6/23 danisevsky danisev...@gmail.com

 hello, I am using MyMultiFileUploadServlet for uploading files and in some
 wicket component I need find out how many files was uploaded.
 I was trying to set this number to the HttpSession in
 MyMultiFileUploadServlet and get it in the component:

HttpSession httpSession = ((WebRequest)
 getRequest()).getHttpServletRequest()
.getSession();
 String count = httpSession
.getAttribute(filesCount);

 but count is always null. Is there any way how to get some data from
 servlet? Thanks




-- 
Altuğ.


Wicket1.4 Portlet simple example

2009-07-14 Thread Michal Velecky
Hello,

 im new in wicket portlets. Please, can you help me to crate or post a 
link to some easy example of wicket(1/4x) portlet(JSR-286) that contains 
just portlet.xml, web.xml, one application class and one or two pages?

I would be very gratefull,
Thank you very much

Michal V.

Re: Can one avoid the pagmap name in the url

2009-07-14 Thread Johan Compagner
we already have session unique pageid's:

getApplication().getSessionSettings().isPageIdUniquePerSession()

Then you dont have to have pagemap or enable the multi window support
You only need that if you really want to now that users uses different tabs.
Wicket doesnt really need it anymore then
Because it will find the pages in the diskstore by there id's just fine (as
long as your diskstore is large enough for the default pagemap)

johan



On Mon, Jul 13, 2009 at 19:07, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 not sure if storing in a cookie would work easily. we would still have
 to keep the cookie name somewhere...and so you are back to adding that
 to the url.

 i think in 1.5 what we can do is make the page id unique across all
 pagemaps and keep the mapping in session. not sure how easy that would
 be to implement in 1.4.

 -igor

 On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohneokro...@yahoo.de wrote:
  Hi,
 
  I turned on the option Automatic Multi Window Support and now if I open
 some
  windows / tabs I see the pagemap name in the url like
 /?wicket:pageMapName=wicket-3.
  After each link I click the pagemap name changes even in the same window,
 I wonder if
  this is correct ?
 
  Is there any way that the pagemap does not appear in the url?
  Could it be stored in a cookie?
 
  A part of my website is displayed in an iframe on some customer pages. If
 a user opens pages
  in the iframe and then switches to the main website possibly in a
 different window then sometimes
  I got PageExpiredException .
  Is there a way to force all iframed pages to use a different pagemap
 without displaying the pagemap name
  in the url on the main (non iframed) website?
 
 
  Thanks for any hints,
 
  Oliver
 
 
 

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




Re: Wicket1.4 Portlet simple example

2009-07-14 Thread Pierre Goupil
Hello,

Which portal do you use. If it's eXo, I can send you a portlet. If it's not,
I'm afraid I can't help.

Regards,

Pierre



On Tue, Jul 14, 2009 at 12:49 PM, Michal Velecky michal.vele...@posam.skwrote:

 Hello,

  im new in wicket portlets. Please, can you help me to crate or post a
 link to some easy example of wicket(1/4x) portlet(JSR-286) that contains
 just portlet.xml, web.xml, one application class and one or two pages?

 I would be very gratefull,
 Thank you very much

 Michal V.




-- 
Sans amis était le grand maître des mondes,
Eprouvait manque, ce pour quoi il créa les esprits,
Miroirs bienveillants de sa béatitude.
Mais au vrai, il ne trouva aucun égal,
Du calice du royaume total des âmes
Ecume jusqu'à lui l'infinité.

(Schiller, l'amitié)


Re: Wizard help

2009-07-14 Thread Steve Olara
Hello All,
 
Am new to wickets and trying to learn a few things. To do that am trying to 
build a web application that a user can post a exam and a responder can answer 
that exam. So far I have managed to Post a set of questions for a exam into the 
database. my problem is how to answer those questions.
 
A single exam can have 3 different question types Objectives, short answers and 
phrase match. Each of this have different forms of interface for responding to 
it. If there were only 3 questions, one of each type I would just have 3 Wizard 
Steps, but the number of questions can vary depending on the exam. I would like 
to reuse the steps for each question type when needed (Have only 3 predefined 
steps).
 
Can someone guide me on this or point me to a thread that can do the same.
 
A suggestion of an alternate solution is also welcome.
 
Thanks
 
Stephen


  

what is wicket

2009-07-14 Thread Gerald Fernando
Hello Friends,
Am Gerald, new to wicket.
can anyone say about wicket and advantages over other technologies
it is very useful to my next step.
please help me

ThanksRegards,
Gerald A


Re: what is wicket

2009-07-14 Thread Erik van Oosten

Hello Gerald,

You can find much of this kind of information on http://wicket.apache.org.

Regards,
Erik.


On Tue, 14 Jul 2009 18:21:16 +0530, Gerald Fernando
gerald.anto.ferna...@gmail.com wrote:
 Hello Friends,
 Am Gerald, new to wicket.
 can anyone say about wicket and advantages over other technologies
 it is very useful to my next step.
 please help me
 
 ThanksRegards,
 Gerald A

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



Re: what is wicket

2009-07-14 Thread francisco treacy
Well... comparing to what other technologies? There are plenty of
resources on the net. Just use your favourite search engine.

You may want to start with this:
http://ptrthomas.wordpress.com/2007/05/14/a-wicket-user-tries-jsf/

Francisco

2009/7/14 Gerald Fernando gerald.anto.ferna...@gmail.com:
 Hello Friends,
 Am Gerald, new to wicket.
 can anyone say about wicket and advantages over other technologies
 it is very useful to my next step.
 please help me

 ThanksRegards,
 Gerald A


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



Re: what is wicket

2009-07-14 Thread Linda van der Pal

Have a look at the documentation: http://wicket.apache.org/introduction.html

Linda

Gerald Fernando wrote:

Hello Friends,
Am Gerald, new to wicket.
can anyone say about wicket and advantages over other technologies
it is very useful to my next step.
please help me

ThanksRegards,
Gerald A

  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.13.13/2237 - Release Date: 07/14/09 05:56:00


  



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



RE: what is wicket

2009-07-14 Thread Craig McIlwee
This is probably a good starting point:
http://wicket.apache.org/introduction.html

Craig

-Original Message-
From: Gerald Fernando [mailto:gerald.anto.ferna...@gmail.com]
Sent: Tuesday, July 14, 2009 8:51 AM
To: users@wicket.apache.org
Subject: what is wicket

Hello Friends,
Am Gerald, new to wicket.
can anyone say about wicket and advantages over other technologies
it is very useful to my next step.
please help me

ThanksRegards,
Gerald A



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



Re: what is wicket

2009-07-14 Thread Christopher L Merrill

Gerald Fernando wrote:

Hello Friends,
Am Gerald, new to wicket.
can anyone say about wicket and advantages over other technologies
it is very useful to my next step.
please help me


http://lmgtfy.com/?q=wicket+advantages

--
 -
Chris Merrill   |  Web Performance, Inc.
ch...@webperformance.com|  http://webperformance.com
919-433-1762|  919-845-7601

Website Load Testing and Stress Testing Software  Services
 -

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



Re: Wicket1.4 Portlet simple example

2009-07-14 Thread michal.velecky

Hi,
i'm using JBoss or Liferay of Glassfish, but anything would help, send me
youre portlet to michal.vele...@posam.sk please

If there is any example of any portlet listed above, send me that example on
my mail also

many thanks
-- 
View this message in context: 
http://www.nabble.com/Wicket1.4-Portlet--simple-example-tp24477258p24479995.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: Wicket1.4 Portlet simple example

2009-07-14 Thread Pierre Goupil
I'm afraid my project won't help since it uses filters  listeners specific
to eXo. But for Liferay you may have a look at here :

http://www.liferay.com/web/guest/community/forums/-/message_boards/message/1127568

Feel free to ask me questions here or in private if you have any problems.
For me, having Wicket work in an eXo portlet was a hard work (as said in
various Wicket places, since eXo portlet 2.0 implementation is incomplete)
so if I can save you effort, don't hesitate.

Regards,

Pierre



On Tue, Jul 14, 2009 at 4:00 PM, michal.velecky michal.vele...@posam.skwrote:


 Hi,
 i'm using JBoss or Liferay of Glassfish, but anything would help, send me
 youre portlet to michal.vele...@posam.sk please

 If there is any example of any portlet listed above, send me that example
 on
 my mail also

 many thanks
 --
 View this message in context:
 http://www.nabble.com/Wicket1.4-Portlet--simple-example-tp24477258p24479995.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




-- 
Sans amis était le grand maître des mondes,
Eprouvait manque, ce pour quoi il créa les esprits,
Miroirs bienveillants de sa béatitude.
Mais au vrai, il ne trouva aucun égal,
Du calice du royaume total des âmes
Ecume jusqu'à lui l'infinité.

(Schiller, l'amitié)


Re: Wizard help

2009-07-14 Thread John Armstrong
I haven't had time to nice it up but here is a class that does this.
Its a wizard that interviews the user based on pre-configured
questions in the database. There are 3 'types' of questions in this
app I wrote earlier this year (Text Field, Text Area and File) and
there can be any number of each type in each defined interview
process. The app was a website configuration engine essentially. The
user would select a template and the template would have
'Configuration Definitions' associated with it. The app would ask the
user for each of these defs what their answer was.

This example has all of the ugly data access stuff so you should get a
good idea how I pull the data in and add it to the model. This is not
shrinkwrap but just an example.

This is ugly but it should give you the idea:

MetadataWizard---
/*
 *
 */
package mypackage.wicket;

import org.apache.cayenne.DataObjectUtils;
import org.apache.cayenne.ObjectContext;
import org.apache.cayenne.exp.Expression;
import org.apache.cayenne.exp.ExpressionFactory;
import org.apache.cayenne.query.SelectQuery;
import org.apache.wicket.extensions.wizard.Wizard;
import org.apache.wicket.extensions.wizard.WizardModel;

import mypackage.cayenne.Template;

import org.apache.wicket.model.CompoundPropertyModel;

import util.SymLink;

// TODO: Auto-generated Javadoc
/**
 * The Class MetadataWizard is a wizard responsible for interviewing
the user during site configuration
 */
public class MetadataWizard extends Wizard {

/** The template. */
Template theTemplate;

/**
 * Instantiates a new metadata wizard.
 *
 * @param id
 *the id
 * @param theTemplateIn
 *the the template in
 */
public MetadataWizard(String id, Template theTemplateIn){
super(id, false);
theTemplate = theTemplateIn;

setModel(new CompoundPropertyModel(theTemplate));
WizardModel model = new WizardModel();

// We need to put a model on this that is the config DEFs value 
for this user
mypackage.cayenne.Account theAccount = 
MySession.get().getUser();
ObjectContext context = theAccount.getObjectContext();

for (mypackage.cayenne.ConfigurationDef configDefinition :
theTemplate.getConfigurationDefArray()) {

// Get this data element from the users data list
Expression qual = ExpressionFactory.likeIgnoreCaseExp(

mypackage.cayenne.ConfigurationData.TO_ACCOUNT_PROPERTY, theAccount)
.andExp(

ExpressionFactory.likeIgnoreCaseExp(

mypackage.cayenne.ConfigurationData.TO_CONFIGURATION_DEF_PROPERTY,

configDefinition));

SelectQuery query = new
SelectQuery(mypackage.cayenne.ConfigurationData.class, qual);
java.util.List defList = context.performQuery(query);
mypackage.cayenne.ConfigurationData data = null;

// If an element exists assign it so we can pass it to 
our
PropertyModel for population
// If it does not exist then create a new one, map it 
into the
account/template
if(defList.size()0){
data = 
(mypackage.cayenne.ConfigurationData)defList.get(0);
} else {
data = (mypackage.cayenne.ConfigurationData)
context.newObject(mypackage.cayenne.ConfigurationData.class);
data.setToAccount(theAccount);
data.setToConfigurationDef(configDefinition);
}

if(configDefinition.getElementtype().equals(string)){
model.add(new TextStep(configDefinition, data));
} 
if(configDefinition.getElementtype().equals(textarea)){
model.add(new TextAreaStep(configDefinition, 
data));
} else 
if(configDefinition.getElementtype().equals(file)){
model.add(new FileStep(configDefinition, data));
}
}
init(model);
}

/**
 * On cancel.
 *
 * @see org.apache.wicket.extensions.wizard.Wizard#onCancel()
 */
@Override
public void onCancel()
{
setResponsePage(mypackage.wicket.MyPage.class);
}


/**
 * On finish.
 *
 * @see 

Re: Can one avoid the pagmap name in the url

2009-07-14 Thread okrohne

Hi,

does the setting getApplication().getSessionSettings() changes the 
behavior regarding memory/disk space requirements ?

Can you please explain what this setting achieves?

Thanks,
Oliver

 
I already have this option turned on, 

jcompagner-2 wrote:
 
 we already have session unique pageid's:
 
 getApplication().getSessionSettings().isPageIdUniquePerSession()
 
 Then you dont have to have pagemap or enable the multi window support
 You only need that if you really want to now that users uses different
 tabs.
 Wicket doesnt really need it anymore then
 Because it will find the pages in the diskstore by there id's just fine
 (as
 long as your diskstore is large enough for the default pagemap)
 
 johan
 
 
 
 On Mon, Jul 13, 2009 at 19:07, Igor Vaynberg
 igor.vaynb...@gmail.comwrote:
 
 not sure if storing in a cookie would work easily. we would still have
 to keep the cookie name somewhere...and so you are back to adding that
 to the url.

 i think in 1.5 what we can do is make the page id unique across all
 pagemaps and keep the mapping in session. not sure how easy that would
 be to implement in 1.4.

 -igor

 On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohneokro...@yahoo.de wrote:
  Hi,
 
  I turned on the option Automatic Multi Window Support and now if I open
 some
  windows / tabs I see the pagemap name in the url like
 /?wicket:pageMapName=wicket-3.
  After each link I click the pagemap name changes even in the same
 window,
 I wonder if
  this is correct ?
 
  Is there any way that the pagemap does not appear in the url?
  Could it be stored in a cookie?
 
  A part of my website is displayed in an iframe on some customer pages.
 If
 a user opens pages
  in the iframe and then switches to the main website possibly in a
 different window then sometimes
  I got PageExpiredException .
  Is there a way to force all iframed pages to use a different pagemap
 without displaying the pagemap name
  in the url on the main (non iframed) website?
 
 
  Thanks for any hints,
 
  Oliver
 
 
 

 -
 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/Can-one-avoid-the-pagmap-name-in-the-url-tp24460046p24481066.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: Dynamic links in inmethod DataGrid

2009-07-14 Thread James Carman
The wicket:id attributes can be useful during development.  They're
automatically stripped in deployment mode.  You might also want to
turn on the setting that tells Wicket to spit out the component path.

On Mon, Jul 13, 2009 at 5:55 PM, satarstarl...@gmail.com wrote:

 James, is this similar to calling
 getMarkupSettings().setStripWicketTags(boolean), which I am doing in the
 application init for my app? I saw that in some example somewhere during my
 reading and wondered why would you want to ever include wicket id's in the
 generated html? Is there any good reason one my want the tags in the
 rendered HTML?
 --
 View this message in context: 
 http://www.nabble.com/Dynamic-links-in-inmethod-DataGrid-tp24424621p24470121.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: Wizard help

2009-07-14 Thread Steve Olara
Thanks a great bunch John, will go through it.
 
Stephen

--- On Tue, 14/7/09, John Armstrong siber...@siberian.org wrote:


From: John Armstrong siber...@siberian.org
Subject: Re: Wizard help
To: users@wicket.apache.org
Date: Tuesday, 14 July, 2009, 5:43 PM


I haven't had time to nice it up but here is a class that does this.
Its a wizard that interviews the user based on pre-configured
questions in the database. There are 3 'types' of questions in this
app I wrote earlier this year (Text Field, Text Area and File) and
there can be any number of each type in each defined interview
process. The app was a website configuration engine essentially. The
user would select a template and the template would have
'Configuration Definitions' associated with it. The app would ask the
user for each of these defs what their answer was.

This example has all of the ugly data access stuff so you should get a
good idea how I pull the data in and add it to the model. This is not
shrinkwrap but just an example.

This is ugly but it should give you the idea:

MetadataWizard---
/*
*
*/
package mypackage.wicket;

import org.apache.cayenne.DataObjectUtils;
import org.apache.cayenne.ObjectContext;
import org.apache.cayenne.exp.Expression;
import org.apache.cayenne.exp.ExpressionFactory;
import org.apache.cayenne.query.SelectQuery;
import org.apache.wicket.extensions.wizard.Wizard;
import org.apache.wicket.extensions.wizard.WizardModel;

import mypackage.cayenne.Template;

import org.apache.wicket.model.CompoundPropertyModel;

import util.SymLink;

// TODO: Auto-generated Javadoc
/**
* The Class MetadataWizard is a wizard responsible for interviewing
the user during site configuration
*/
public class MetadataWizard extends Wizard {
    
    /** The template. */
    Template theTemplate;
    
    /**
 * Instantiates a new metadata wizard.
 *
 * @param id
 *            the id
 * @param theTemplateIn
 *            the the template in
 */
    public MetadataWizard(String id, Template theTemplateIn){
        super(id, false);
        theTemplate = theTemplateIn;
        
        setModel(new CompoundPropertyModel(theTemplate));
        WizardModel model = new WizardModel();
        
        // We need to put a model on this that is the config DEFs value for 
this user
        mypackage.cayenne.Account theAccount = MySession.get().getUser();
        ObjectContext context = theAccount.getObjectContext();
        
        for (mypackage.cayenne.ConfigurationDef configDefinition :
theTemplate.getConfigurationDefArray()) {
            
            // Get this data element from the users data list
            Expression qual = ExpressionFactory.likeIgnoreCaseExp(
                    mypackage.cayenne.ConfigurationData.TO_ACCOUNT_PROPERTY, 
theAccount)
                    .andExp(
                            ExpressionFactory.likeIgnoreCaseExp(
                                    
mypackage.cayenne.ConfigurationData.TO_CONFIGURATION_DEF_PROPERTY,
                                    configDefinition));

            SelectQuery query = new
SelectQuery(mypackage.cayenne.ConfigurationData.class, qual);
            java.util.List defList = context.performQuery(query);
            mypackage.cayenne.ConfigurationData data = null;
            
            // If an element exists assign it so we can pass it to our
PropertyModel for population
            // If it does not exist then create a new one, map it into the
account/template
            if(defList.size()0){
                data = (mypackage.cayenne.ConfigurationData)defList.get(0);
            } else {
                data = (mypackage.cayenne.ConfigurationData)
context.newObject(mypackage.cayenne.ConfigurationData.class);
                data.setToAccount(theAccount);
                data.setToConfigurationDef(configDefinition);
            }
        
            if(configDefinition.getElementtype().equals(string)){
                model.add(new TextStep(configDefinition, data));
            } if(configDefinition.getElementtype().equals(textarea)){
                model.add(new TextAreaStep(configDefinition, data));
            } else if(configDefinition.getElementtype().equals(file)){
                model.add(new FileStep(configDefinition, data));
            }
        }
        init(model);
    }
    
    /**
 * On cancel.
 *
 * @see org.apache.wicket.extensions.wizard.Wizard#onCancel()
 */
    @Override
    public void onCancel()
    {
        setResponsePage(mypackage.wicket.MyPage.class);
    }


    /**
 * On finish.
 *
 * @see org.apache.wicket.extensions.wizard.Wizard#onFinish()
 */
    @Override
    public void onFinish()
    {
        // Commit meta data
        util.Settings settings = new util.Settings();
        MySession.get().getUser().setToTemplate(theTemplate);
        MySession.get().getUser().getObjectContext().commitChanges();

        // Send them on their way
        

Re: Problem with AjaxFallbackDefaultDataTable in 1.4-SNAPSHOT wicket-1.4-20090709.154646-550.jar [SEC=UNCLASSIFIED]

2009-07-14 Thread James Carman
There's a built-in component for toggling check boxes in a check group.

On Mon, Jul 13, 2009 at 7:04 PM, michelle.bh...@health.gov.au wrote:
 Hello.

 I'm attempting a simple AjaxFallbackDefaultDataTable with using
 1.4-SNAPSHOT and the wicket-1.4-20090709.154646-550.jar and
 wicket-extensions-1.4-20090709.154646-542.jar files.

 I get the following error:
 WicketMessage: Unable to find component with id 'label' in
 [MarkupContainer [Component id = header]]. This means that you declared
 wicket:id=label in your markup, but that you either did not add the
 component to your page at all, or that the hierarchy does not match.
 [markup =
 jar:file:/D:/bin/geronimo-jetty6-javaee5-2.1.4/repository/au/gov/doha/DataTable/1.0-SNAPSHOT/DataTable-1.0-SNAPSHOT.war/WEB-INF/lib/wicket-extensions-1.4-SNAPSHOT.jar!/org/apache/wicket/extensions/markup/html/repeater/data/table/HeadersToolbar.html
 !--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the License); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
        http://www.apache.org/licenses/LICENSE-2.0
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an AS IS BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 --
 wicket:panel
                 tr class=headers
                                 span wicket:id=headers
                                                 th
 wicket:id=headerspan wicket:id=label[header-label]/span/th
                                 /span
                 /tr
 /wicket:panel, index = 6, current = 'span wicket:id=label' (line 20,
 column 27)]

 The only change I've done from the example given at
 http://www.wicket-library.com/wicket-examples/repeater/ is a column:
                checked = new
 AbstractColumnCheckedApplicationProcessDetails(new
 ModelString(Select)) {
                       �...@override
                        public void populateItem(
  ItemICellPopulatorCheckedApplicationProcessDetails cellItem,
                                String componentId,
                                IModelCheckedApplicationProcessDetails
 model)
                        {
                                cellItem.add(new
 CheckBoxPanel(componentId, model));
                        }

                       �...@override
                        public Component getHeader(String componentId) {
                                // select option
                                AjaxCheckBox checkBox = new
 AjaxCheckBox(SelectAll, new PropertyModel(this, selectAll)) {
                                        // checkbox provides 'check all'
 or 'check none' functionality
                                       �...@override
                                        protected void
 onUpdate(AjaxRequestTarget target) {
 // how do we access the items within a datatable?
 //                                              Iterator iter =
 table.getItems();
 //                                              table.modelChanging();
 //                                              while(iter.hasNext()) {
 //
 ((CheckedApplicationProcessDetails)((Item)iter.next()).getModelObject()).setChecked(ListFundingTenders.this.selectAll);
 //                                              }
 //                                              table.modelChanged();
 //                                              checkBoxChanged();
  target.addComponent(table);
                                        }
                                };
                                return checkBox;
                        }
                };
                columns.add(checked);

 Basically I want a column with a check box for each row, and a
 select-all/select-none checkbox for the header.   I fail to see how this
 could cause the error given above.

 Is the error message a bug in the snapshot?  Or am I somehow causing it?

 __
 Important: This transmission is intended only for the use of the addressee 
 and may contain confidential or legally privileged information.  If you are 
 not the intended recipient, you are notified that any use or dissemination of 
 this communication is strictly prohibited.  If you receive this transmission 
 in error please notify the author immediately and delete all copies of this 
 transmission.


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



Re: how to get some data from servlet

2009-07-14 Thread Igor Vaynberg
that doesnt make any sense. all things within the webapp share the
session. you guys are welcome to create a quickstart that replicates
this.

-igor

On Tue, Jul 14, 2009 at 3:47 AM, Altuğ B. Altıntaşalt...@gmail.com wrote:
 Also I have a problem like yours.

 Servlet session and Wicket's session are different so you are getting nul.
 Just debug your application and you will see that they have different
 session Id's.

 I tried to use WicketSessionFilter but it doesn't work.

 I am using wicket 1.3.5.

 Cheers...

 Altug.

 2009/6/23 danisevsky danisev...@gmail.com

 hello, I am using MyMultiFileUploadServlet for uploading files and in some
 wicket component I need find out how many files was uploaded.
 I was trying to set this number to the HttpSession in
 MyMultiFileUploadServlet and get it in the component:

                    HttpSession httpSession = ((WebRequest)
 getRequest()).getHttpServletRequest()
                            .getSession();
 String count = httpSession
                            .getAttribute(filesCount);

 but count is always null. Is there any way how to get some data from
 servlet? Thanks




 --
 Altuğ.


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



RE: Odd behavior

2009-07-14 Thread Russell Simpkins

Thanks Igor.
I was using add() to add properties that were already set - if I really wanted 
to do that, I think I should be using put() instead.
Russ

 From: igor.vaynb...@gmail.com
 Date: Mon, 13 Jul 2009 20:43:56 -0700
 Subject: Re: Odd behavior
 To: users@wicket.apache.org
 
 its not a reference to a string, its a reference to a string *array*,
 notice the [ in the beginning. can happen if you add the same key
 twice to the valuemap - it will create an array.
 
 -igor
 
 On Mon, Jul 13, 2009 at 7:43 PM, Russell
 Simpkinsrussellsimpk...@hotmail.com wrote:
 
  All,
  Every now and then my for ends up displaying
  [Ljava.lang.String;@7cd46bea
 
  instead of displaying my string value. There is no rhyme or reason, just 
  going back and forth through my application and eventually I see that value 
  dumped out in lieu of my actual string value.
 
 
  ValueMap properties;add(new RequiredTextField(toStreetAddress1, new 
  PropertyModel(properties, toStreetAddress1)));
  The properties ValueMap is getting populated on posts and held during the 
  session. Where should I look first to figure out why only sometimes do I 
  see the reference of the string instead of the string value.
  Thanks,
  Russ
  _
  Hotmail® has ever-growing storage! Don’t worry about storage limits.
  http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Wicket in Websphere 6.1

2009-07-14 Thread Subramanian Murali
Hi,

I am using wicket 1.3 in websphere 6.1.
And i am trying to use Wicket filter in my application but it doesn't seem
to work.
Anyways, wicket servlet is working absolutely fine.
And also i find in the old mailing lists that wicket filter should work fine
in websphere 6.1.

http://www.nabble.com/Does-anyone-develop-Wicket-app-using-IRAD-and-Websphere-to12263560.html#a12264952

Is anybody else facing the problem with wicket filter in websphere 6.1? And
is there any solution to fix the same.

Thanks.


Ajax Panal update pattern?

2009-07-14 Thread John Armstrong
Hi Wicketeers,
   I've just started into using Ajax in my Wicket apps and somehow
ended up using a specific pattern. My question is Is this pattern the
Wicket Way and if not, what is the Wicket Way.

   Situation:
   The pages I am ajax enabling consist of many panels. Some panels
have navigational elements that need to trigger changes in other
panels at different levels of the heirachy.

   The Pattern
   My pattern is to pass down the webpage to subsequent panels as
required. At the mainpage level I have a swap routine for each panel
that needs change via ajax.

   My code ends up looking like this :

   public class PublicBasePage extends WebPage {
public PublicBasePage(){
PublicLeftNavPanel publicLeftNavPanel = new
PublicLeftNavPanel(publicleftnavpanel,this);
add(publicLeftNavPanel);
...
...
}
void swapMainContent(Panel thePanel,AjaxRequestTarget target){
thePanel.setOutputMarkupId(true);
centerBox.replaceWith(thePanel);
if (target != null) {
  target.addComponent(thePanel);
}
centerBox = thePanel;
}
... More of these swaps for each element in the page that is
ajaxified. Could be abstracted a bit more
... I also have a version that works for the non-ajax
case so it falls back cleanly
}

--
public class PublicLeftNavPanel extends Panel {
public PublicLeftNavPanel(String id, final PublicBasePage 
mainPage){
super(id);
AjaxFallbackLink residentialLink =  new 
AjaxFallbackLink(residential) {
@Override
public void onClick(AjaxRequestTarget target) {
mainPage.swapMainContent(new
PublicResidentialMainPanel(centerbox),target);
}
};
residentialLink.setAutoEnable(true);
add(residentialLink);
... More of these ajaxlinks for each link element in 
the navigation bar
}
}

So, what is happening is the navigation panel calls back into the
webpage to do the swap required in lower level panels that live in
different branches of the tree.

It works but doesn't feel right and in all my googling I could not
find a clear answer on specifically what to do when you have
disconnected panels and one panel needs to trigger an update in the
other one. I imagine its obvious so my apologies.

I did find a link to Loose coupling
(http://techblog.molindo.at/2008/09/wicket-loose-coupling-of-componens-for-ajax-updates.html)
but that seemed a bit of a ways to go to accomplish the task (although
very elegant).

Thanks for setting me straight before I go too far with this,
John-

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



Re: Wicket in Websphere 6.1

2009-07-14 Thread shetc

http://cwiki.apache.org/WICKET/websphere.html#Websphere-WicketServletratherthanWicketFilter
-- 
View this message in context: 
http://www.nabble.com/Wicket-in-Websphere-6.1-tp24483372p24483879.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



debug mode

2009-07-14 Thread John Ipson
Hello,

Has anyone ever run across extremely slow debug mode in wicket/eclipse 
integration?

Eclipse 3.4
Wicket 1.4

When choosing Run as..., the application is very fast.
When choosing Debug as...  the application is 20 times slower.

I watch each jar get loaded into the application at a very slow rate.

I've run the application in Jetty and JBoss, so I believe it is a wicket thing. 
 I wonder if there is a setting in wicket.

Thanks,
John


Re: debug mode

2009-07-14 Thread Igor Vaynberg
i use wicket and eclipse+debug every day and i have never experienced
something like this. the app runs a little slower in debug mode, most
times unnoticeably so.

-igor

On Tue, Jul 14, 2009 at 10:15 AM, John Ipsonjohn_ip...@yahoo.com wrote:
 Hello,

 Has anyone ever run across extremely slow debug mode in wicket/eclipse 
 integration?

 Eclipse 3.4
 Wicket 1.4

 When choosing Run as..., the application is very fast.
 When choosing Debug as...  the application is 20 times slower.

 I watch each jar get loaded into the application at a very slow rate.

 I've run the application in Jetty and JBoss, so I believe it is a wicket 
 thing.  I wonder if there is a setting in wicket.

 Thanks,
 John


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



Re: Can one avoid the pagmap name in the url

2009-07-14 Thread Johan Compagner
no it doesnt.

if you make sure that the pageid is unique across the session
then you dont need pagemaps. And you can hold everything in 1 pagemap.

And if you do that then make sure then all he pages go into 1 pagemap
then make sure that:

*

public
* DiskPageStore(*int* maxSizePerPagemap, *int* maxSizePerSession,
*int*fileChannelPoolCapacity)the
maxSizePerPagemap is large enough for you (default 10MB)

On Tue, Jul 14, 2009 at 16:45, okrohne okro...@yahoo.de wrote:


 Hi,

 does the setting getApplication().getSessionSettings() changes the
 behavior regarding memory/disk space requirements ?

 Can you please explain what this setting achieves?

 Thanks,
 Oliver


 I already have this option turned on,

 jcompagner-2 wrote:
 
  we already have session unique pageid's:
 
  getApplication().getSessionSettings().isPageIdUniquePerSession()
 
  Then you dont have to have pagemap or enable the multi window support
  You only need that if you really want to now that users uses different
  tabs.
  Wicket doesnt really need it anymore then
  Because it will find the pages in the diskstore by there id's just fine
  (as
  long as your diskstore is large enough for the default pagemap)
 
  johan
 
 
 
  On Mon, Jul 13, 2009 at 19:07, Igor Vaynberg
  igor.vaynb...@gmail.comwrote:
 
  not sure if storing in a cookie would work easily. we would still have
  to keep the cookie name somewhere...and so you are back to adding that
  to the url.
 
  i think in 1.5 what we can do is make the page id unique across all
  pagemaps and keep the mapping in session. not sure how easy that would
  be to implement in 1.4.
 
  -igor
 
  On Mon, Jul 13, 2009 at 4:30 AM, Oliver Krohneokro...@yahoo.de wrote:
   Hi,
  
   I turned on the option Automatic Multi Window Support and now if I
 open
  some
   windows / tabs I see the pagemap name in the url like
  /?wicket:pageMapName=wicket-3.
   After each link I click the pagemap name changes even in the same
  window,
  I wonder if
   this is correct ?
  
   Is there any way that the pagemap does not appear in the url?
   Could it be stored in a cookie?
  
   A part of my website is displayed in an iframe on some customer pages.
  If
  a user opens pages
   in the iframe and then switches to the main website possibly in a
  different window then sometimes
   I got PageExpiredException .
   Is there a way to force all iframed pages to use a different pagemap
  without displaying the pagemap name
   in the url on the main (non iframed) website?
  
  
   Thanks for any hints,
  
   Oliver
  
  
  
 
  -
  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/Can-one-avoid-the-pagmap-name-in-the-url-tp24460046p24481066.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: Javascript Header Contribution via Ajax

2009-07-14 Thread Matej Knopp
If the javascript is evaluated that means it's added to page. What
exactly is the difference here? And why can't you give it id? (id is
used to filter out duplicate javascripts).

What does the javascript look like?

-Matej

On Mon, Jul 13, 2009 at 9:28 PM, Joel Hillhil...@michigan.gov wrote:
 I have a custom behavior that contributes Javascript to the header.  In order 
 to prevent collisions with other components that may also be using that 
 behavior, I include it using TextTemplateHeaderContributor.  Like so:

 public class CustomBehavior extends AbstractBehavior {

  private Component component;

  . . .

 �...@override
  public void bind(Component component) {
    this.component = component
    component.setOutputMarkupId(true);

    . . .

    component.add(TextTemplateHeaderContributor.forJavaScript(getClass(), 
 javascriptSource.js, variables));
  }

 }


 This works great, unless I add this behavior to a component that gets added 
 to the page as part of an Ajax request.  In that case, the Javascript does 
 not get added to the page, so when the component looks up the Javascript it 
 needs to function, it's not there.

 I'm not sure if this is related to 
 https://issues.apache.org/jira/browse/WICKET-618 or not, but that bug was 
 resolved 'Won't Fix'.

 I tried tracing through the Ajax code, and if I understand it properly, the 
 issue seems to come down to line 1445 of wicket-ajax.js:

 1441    var text = Wicket.DOM.serializeNodeChildren(node);
 1442
 1443    var id = node.getAttribute(id);
 1444
 1445    if (typeof(id) == string  id.length  0) {
 1446      // add javascript to document head
 1447      Wicket.Head.addJavascript(text, id);
 1448    } else {
 1449      try {
 1450        eval(text);
 1451      } catch (e) {
 1452        Wicket.Log.error(e);
 1453      }
 1454    }


 It would appear that because the script tag generated by 
 TextTemplateHeaderContributor does not contain an 'id' attribute, the 
 javascript is not rendered on the page.  (However it is still evaluated, via 
 line 1450, which explains why when I added an alert() call to my javascript 
 file, it got executed.  Imagine my initial confusion.)

 Is this expected behavior?  A bug?  Is there a workaround?  Am I even 
 interpreting the issue correctly?  If I were using a static Javascript file, 
 I think there are calls I can use to include an 'id' attribute, and I may 
 have to rewrite my javascript so I can make it static (if possible).

 Picking up on suggestions I read on the mailing list archives, I also tried:

  public void renderHead(IHeaderResponse response) {
    
 response.renderOnDomReadyJavascript(TextTemplateHeaderContributor.forJavaScript(getClass(),
  popupBehavior.js, variables).toString());
  }

 and:

  public void onRendered(Component component) {
    if(RequestCycle.get().getRequestTarget() instanceof AjaxRequestTarget) {
      AjaxRequestTarget target = (AjaxRequestTarget) 
 RequestCycle.get().getRequestTarget();
      
 target.appendJavascript(TextTemplateHeaderContributor.forJavaScript(getClass(),
  popupBehavior.js, variables).toString());
    }
  }

 Neither alternative worked.  At this point I'm not even sure they make sense, 
 but I tried them before I had dug in and (hopefully) traced down the problem.

 Thank you for any help that anyone can provide on this issue.

 Joel


 -
 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: Page expired after rc6?

2009-07-14 Thread Igor Vaynberg
this should be fixed in rc7 - which should be in the maven repo and
most mirrors by now.

-igor

On Tue, Jul 14, 2009 at 10:58 AM, Martin
Makundimartin.maku...@koodaripalvelut.com wrote:
 Hi!

 I have been getting lots of these from our production site since
 installing 1.4-rc6? Any idea what it might be?

 2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]
 org.apache.wicket.protocol.http.request.InvalidUrlException:
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]


 Is it something in Wicket or just a strange user? Why only now and why
 does it come up very often?

 **
 Martin

 -
 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: Page expired after rc6?

2009-07-14 Thread Martin Makundi
Is there a jira issue? I would like to know what it does for the victims ...

**
Martin

2009/7/14 Igor Vaynberg igor.vaynb...@gmail.com:
 this should be fixed in rc7 - which should be in the maven repo and
 most mirrors by now.

 -igor

 On Tue, Jul 14, 2009 at 10:58 AM, Martin
 Makundimartin.maku...@koodaripalvelut.com wrote:
 Hi!

 I have been getting lots of these from our production site since
 installing 1.4-rc6? Any idea what it might be?

 2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]
 org.apache.wicket.protocol.http.request.InvalidUrlException:
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]


 Is it something in Wicket or just a strange user? Why only now and why
 does it come up very often?

 **
 Martin

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



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



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



Re: Page expired after rc6?

2009-07-14 Thread Major Péter

It's on here:
http://repo1.maven.org/maven2
And it does fixes the pageexpired problem.

Peter

2009-07-14 20:00 keltezéssel, Igor Vaynberg írta:

this should be fixed in rc7 - which should be in the maven repo and
most mirrors by now.

-igor

On Tue, Jul 14, 2009 at 10:58 AM, Martin
Makundimartin.maku...@koodaripalvelut.com  wrote:

Hi!

I have been getting lots of these from our production site since
installing 1.4-rc6? Any idea what it might be?

2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=0,versionNumber=2]
org.apache.wicket.protocol.http.request.InvalidUrlException:
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=0,versionNumber=2]


Is it something in Wicket or just a strange user? Why only now and why
does it come up very often?

**
Martin


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



Re: Page expired after rc6?

2009-07-14 Thread Major Péter

Most likely this is it:
http://issues.apache.org/jira/browse/WICKET-2346

Peter

2009-07-14 20:11 keltezéssel, Martin Makundi írta:

Is there a jira issue? I would like to know what it does for the victims ...

**
Martin

2009/7/14 Igor Vaynbergigor.vaynb...@gmail.com:

this should be fixed in rc7 - which should be in the maven repo and
most mirrors by now.

-igor

On Tue, Jul 14, 2009 at 10:58 AM, Martin
Makundimartin.maku...@koodaripalvelut.com  wrote:

Hi!

I have been getting lots of these from our production site since
installing 1.4-rc6? Any idea what it might be?

2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=0,versionNumber=2]
org.apache.wicket.protocol.http.request.InvalidUrlException:
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=0,versionNumber=2]


Is it something in Wicket or just a strange user? Why only now and why
does it come up very often?

**
Martin

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



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




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




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



Re: Page expired after rc6?

2009-07-14 Thread Martin Makundi
 http://issues.apache.org/jira/browse/WICKET-2346

That does not sound like it...

I mean I was getting page expired for no good reason unbelievably
often for it to be caused by human error.

I upgraded to rc7, let's see what happens. True, rc4 was working fine before.

**
Martin

2009/7/14 Major Péter majorpe...@sch.bme.hu:
 Most likely this is it:
 http://issues.apache.org/jira/browse/WICKET-2346

 Peter

 2009-07-14 20:11 keltezéssel, Martin Makundi írta:

 Is there a jira issue? I would like to know what it does for the victims
 ...

 **
 Martin

 2009/7/14 Igor Vaynbergigor.vaynb...@gmail.com:

 this should be fixed in rc7 - which should be in the maven repo and
 most mirrors by now.

 -igor

 On Tue, Jul 14, 2009 at 10:58 AM, Martin
 Makundimartin.maku...@koodaripalvelut.com  wrote:

 Hi!

 I have been getting lots of these from our production site since
 installing 1.4-rc6? Any idea what it might be?

 2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]
 org.apache.wicket.protocol.http.request.InvalidUrlException:
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]


 Is it something in Wicket or just a strange user? Why only now and why
 does it come up very often?

 **
 Martin

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


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



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



 -
 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



Dynamically generated background image

2009-07-14 Thread Filippo Bonsignori

Hi all,
I would like to be able to set the background of a given div using a 
BufferedDynamicImageResource: I tryed using the urlFor() method from 
RequestCycle but without success (urlFor needs a ResourceReference and I 
have just a Resource).


Thnx in advance for any help.


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



Re: Javascript Header Contribution via Ajax

2009-07-14 Thread hillj2

Then perhaps I'm not understanding the code in wicket-ajax.js properly.  If
you refer to code I copied into my first post, it appears that if the script
tag has an id attribute, then wicket-ajax.js calls
Wicket.Head.addJavascript() -- which I assume is what renders it on the page
-- but if it doesn't have an ID it calls eval() -- which wouldn't render it
to the page, but WOULD cause an alert() call in the javascript to be
executed.

If I could give it an ID, I would, but it's not a component and the script
tag is added by TextTemplateHeaderContributor (specifically through
JavaScriptTemplate).  I suppose I could wrap my own solution that would
allow for the inclusion of an ID.  I do understand that the ID is being used
to prevent duplicate javascript.

My Javascript isn't vary complex, basically it's in the form:

var ${var1} = default_value;
var ${var2} = default_value;
. . .

function ${function1}() {
  . . .
}

function ${function2}() {
  . . .
}

. . .

I know the javascript file isn't the problem, because it works fine for
components that are part of the initial page render.  Just not for
components added via ajax.

I think I'm either going to rewrite my javascript so that I no longer need
to do variable replacement, therefore all instances of my custom behavior
can use the same static file without interfering with each other, or extend
TextTemplateHeaderContributor so I can include an ID on the script tag that
gets wrapped around my javascript.

Joel



Matej Knopp-2 wrote:
 
 If the javascript is evaluated that means it's added to page. What
 exactly is the difference here? And why can't you give it id? (id is
 used to filter out duplicate javascripts).
 
 What does the javascript look like?
 
 -Matej
 
 On Mon, Jul 13, 2009 at 9:28 PM, Joel Hillhil...@michigan.gov wrote:
 I have a custom behavior that contributes Javascript to the header.  In
 order to prevent collisions with other components that may also be using
 that behavior, I include it using TextTemplateHeaderContributor.  Like
 so:

 public class CustomBehavior extends AbstractBehavior {

  private Component component;

  . . .

 �...@override
  public void bind(Component component) {
    this.component = component
    component.setOutputMarkupId(true);

    . . .

    component.add(TextTemplateHeaderContributor.forJavaScript(getClass(),
 javascriptSource.js, variables));
  }

 }


 This works great, unless I add this behavior to a component that gets
 added to the page as part of an Ajax request.  In that case, the
 Javascript does not get added to the page, so when the component looks up
 the Javascript it needs to function, it's not there.

 I'm not sure if this is related to
 https://issues.apache.org/jira/browse/WICKET-618 or not, but that bug was
 resolved 'Won't Fix'.

 I tried tracing through the Ajax code, and if I understand it properly,
 the issue seems to come down to line 1445 of wicket-ajax.js:

 1441    var text = Wicket.DOM.serializeNodeChildren(node);
 1442
 1443    var id = node.getAttribute(id);
 1444
 1445    if (typeof(id) == string  id.length  0) {
 1446      // add javascript to document head
 1447      Wicket.Head.addJavascript(text, id);
 1448    } else {
 1449      try {
 1450        eval(text);
 1451      } catch (e) {
 1452        Wicket.Log.error(e);
 1453      }
 1454    }


 It would appear that because the script tag generated by
 TextTemplateHeaderContributor does not contain an 'id' attribute, the
 javascript is not rendered on the page.  (However it is still evaluated,
 via line 1450, which explains why when I added an alert() call to my
 javascript file, it got executed.  Imagine my initial confusion.)

 Is this expected behavior?  A bug?  Is there a workaround?  Am I even
 interpreting the issue correctly?  If I were using a static Javascript
 file, I think there are calls I can use to include an 'id' attribute, and
 I may have to rewrite my javascript so I can make it static (if
 possible).

 Picking up on suggestions I read on the mailing list archives, I also
 tried:

  public void renderHead(IHeaderResponse response) {
  
  response.renderOnDomReadyJavascript(TextTemplateHeaderContributor.forJavaScript(getClass(),
 popupBehavior.js, variables).toString());
  }

 and:

  public void onRendered(Component component) {
    if(RequestCycle.get().getRequestTarget() instanceof AjaxRequestTarget)
 {
      AjaxRequestTarget target = (AjaxRequestTarget)
 RequestCycle.get().getRequestTarget();
    
  target.appendJavascript(TextTemplateHeaderContributor.forJavaScript(getClass(),
 popupBehavior.js, variables).toString());
    }
  }

 Neither alternative worked.  At this point I'm not even sure they make
 sense, but I tried them before I had dug in and (hopefully) traced down
 the problem.

 Thank you for any help that anyone can provide on this issue.

 Joel


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

Re: Page expired after rc6?

2009-07-14 Thread Major Péter

Did you used

getPageSettings().setAutomaticMultiWindowSupport(false);

in your application.java#init method?
This could lower the number of PEE's.

Peter

2009-07-14 20:22 keltezéssel, Martin Makundi írta:

http://issues.apache.org/jira/browse/WICKET-2346


That does not sound like it...

I mean I was getting page expired for no good reason unbelievably
often for it to be caused by human error.

I upgraded to rc7, let's see what happens. True, rc4 was working fine before.

**
Martin

2009/7/14 Major Pétermajorpe...@sch.bme.hu:

Most likely this is it:
http://issues.apache.org/jira/browse/WICKET-2346

Peter

2009-07-14 20:11 keltezéssel, Martin Makundi írta:

Is there a jira issue? I would like to know what it does for the victims
...

**
Martin

2009/7/14 Igor Vaynbergigor.vaynb...@gmail.com:

this should be fixed in rc7 - which should be in the maven repo and
most mirrors by now.

-igor

On Tue, Jul 14, 2009 at 10:58 AM, Martin
Makundimartin.maku...@koodaripalvelut.comwrote:

Hi!

I have been getting lots of these from our production site since
installing 1.4-rc6? Any idea what it might be?

2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=0,versionNumber=2]
org.apache.wicket.protocol.http.request.InvalidUrlException:
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=0,versionNumber=2]


Is it something in Wicket or just a strange user? Why only now and why
does it come up very often?

**
Martin


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



Re: Page expired after rc6?

2009-07-14 Thread Igor Vaynberg
this is also done automatically by the diskstore.

-igor

2009/7/14 Major Péter majorpe...@sch.bme.hu:
 Did you used

 getPageSettings().setAutomaticMultiWindowSupport(false);

 in your application.java#init method?
 This could lower the number of PEE's.

 Peter

 2009-07-14 20:22 keltezéssel, Martin Makundi írta:

 http://issues.apache.org/jira/browse/WICKET-2346

 That does not sound like it...

 I mean I was getting page expired for no good reason unbelievably
 often for it to be caused by human error.

 I upgraded to rc7, let's see what happens. True, rc4 was working fine
 before.

 **
 Martin

 2009/7/14 Major Pétermajorpe...@sch.bme.hu:

 Most likely this is it:
 http://issues.apache.org/jira/browse/WICKET-2346

 Peter

 2009-07-14 20:11 keltezéssel, Martin Makundi írta:

 Is there a jira issue? I would like to know what it does for the victims
 ...

 **
 Martin

 2009/7/14 Igor Vaynbergigor.vaynb...@gmail.com:

 this should be fixed in rc7 - which should be in the maven repo and
 most mirrors by now.

 -igor

 On Tue, Jul 14, 2009 at 10:58 AM, Martin
 Makundimartin.maku...@koodaripalvelut.com    wrote:

 Hi!

 I have been getting lots of these from our production site since
 installing 1.4-rc6? Any idea what it might be?

 2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]
 org.apache.wicket.protocol.http.request.InvalidUrlException:
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]


 Is it something in Wicket or just a strange user? Why only now and why
 does it come up very often?

 **
 Martin

 -
 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: Dynamically generated background image

2009-07-14 Thread Jeremy Thomerson
You could mount the resource in your application init method and use
the name that you mount it for the resource reference.

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




On Tue, Jul 14, 2009 at 1:21 PM, Filippo
Bonsignorifilippo.bonsign...@logobject.ch wrote:
 Hi all,
 I would like to be able to set the background of a given div using a
 BufferedDynamicImageResource: I tryed using the urlFor() method from
 RequestCycle but without success (urlFor needs a ResourceReference and I
 have just a Resource).

 Thnx in advance for any help.


 -
 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



Parameter names

2009-07-14 Thread Rodolfo Cartas
Hi all! We've developed a small wicket application that has been
deployed in our intranet and will soon be deployed to our extranet.
Our network uses a reverse proxy that applies checks on page
parameters and so on. Each parameter must be either registered with
the network administrator or contain a special prefix to pass the
proxy check. We're wondering if there is any mechanism in wicket that
would allow us to add prefixes to form input names and related
variables before html rendering and to strip them out before page
processing. It would definitely save loads of work!

Thank you all,

Rodolfo

-- 
Rodolfo Cartas
rodolfocar...@gmail.com
http://www.flickr.com/photos/rodolfocartas

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



Re: Portlet

2009-07-14 Thread Jeremy Thomerson
Hola
salut
goedendag
alô
ございます

http://www.wikihow.com/Say-Hello-in-Different-Languages

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




On Tue, Jul 14, 2009 at 5:28 AM, David Skubendavid.sku...@gmail.com wrote:
 Hello


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



Re: Parameter names

2009-07-14 Thread Igor Vaynberg
see Form#getInputNamePrefix()

-igor

On Tue, Jul 14, 2009 at 1:22 PM, Rodolfo Cartasrodolfocar...@gmail.com wrote:
 Hi all! We've developed a small wicket application that has been
 deployed in our intranet and will soon be deployed to our extranet.
 Our network uses a reverse proxy that applies checks on page
 parameters and so on. Each parameter must be either registered with
 the network administrator or contain a special prefix to pass the
 proxy check. We're wondering if there is any mechanism in wicket that
 would allow us to add prefixes to form input names and related
 variables before html rendering and to strip them out before page
 processing. It would definitely save loads of work!

 Thank you all,

 Rodolfo

 --
 Rodolfo Cartas
 rodolfocar...@gmail.com
 http://www.flickr.com/photos/rodolfocartas

 -
 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



PagingNavigation

2009-07-14 Thread Jeff Palmer
I'm wondering what the recommended way is to display a dynamically  
generated paged list of items. The list of items is retrieved from a  
database based on what is selected from a DropDownChoice. Any  
suggestions and / or examples on a good way to implement this?


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



Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-14 Thread rolandpeng

thanks igor,

I have added dependency below into pom.xml
dependency
  groupIdorg.wicketstuff/groupId
  artifactIdtinymce/artifactId
  version1.4-SNAPSHOT/version
/dependency

but after execute 'maven package',I got error below:
--
Project ID: null:tinymce:jar:null

Reason: Cannot find parent: org.wicketstuff:tinymce-parent for project:
null:tin
ymce:jar:null for project null:tinymce:jar:null
--
I have referred to the pom.xml in
wicket-stuff\trunk\wicketstuff-core\tinymce-parent\tinymce-examples
as the attachment.
Could you please give me more hints to add the correct dependency?thanks.

By the way,I found the key problem issued in my original post.
That's any ajaxbehavior component(ajaxlink for example) will lead
DropdownChoice compoent missing while scrolling vertical bar.
After I moved all the ajaxbehavior component (or replace to non-ajaxbehavior
component,submitlink,for example) in the webpage,then the DropdownChoice
works fine.

I will make a quickstart to simulate this strange situation,but at first I
need to know how to include tinymce.jar into my pom.xml . thanks again.

roland.


igor.vaynberg wrote:
 
 add it as a dependency in the pom file.
 
 -igor
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
http://www.nabble.com/file/p24490974/pom.xml pom.xml 
-- 
View this message in context: 
http://www.nabble.com/Dropdownchoice-missing-%28only-when-the-page-with-Tinymce-component%29-while-scrolling-the-vertical-scroll-bar-tp24455751p24490974.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: PagingNavigation

2009-07-14 Thread Igor Vaynberg
wicketstuff.org/wicket13/repeater

see dataview and datatable examples.

-igor

On Tue, Jul 14, 2009 at 6:47 PM, Jeff Palmerjpalmer1...@mchsi.com wrote:
 I'm wondering what the recommended way is to display a dynamically generated
 paged list of items. The list of items is retrieved from a database based on
 what is selected from a DropDownChoice. Any suggestions and / or examples on
 a good way to implement this?

 -
 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: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-14 Thread Igor Vaynberg
you have to add wicketstuff maven2 repo to the pom, and if that does
not contain the snapshot you have to check out all the sources of
tinymce and mvn install so the artifacts go into your local repo.

-igor

On Tue, Jul 14, 2009 at 7:35 PM, rolandpengrolandp...@cht.com.tw wrote:

 thanks igor,

 I have added dependency below into pom.xml
 dependency
  groupIdorg.wicketstuff/groupId
  artifactIdtinymce/artifactId
  version1.4-SNAPSHOT/version
 /dependency

 but after execute 'maven package',I got error below:
 --
 Project ID: null:tinymce:jar:null

 Reason: Cannot find parent: org.wicketstuff:tinymce-parent for project:
 null:tin
 ymce:jar:null for project null:tinymce:jar:null
 --
 I have referred to the pom.xml in
 wicket-stuff\trunk\wicketstuff-core\tinymce-parent\tinymce-examples
 as the attachment.
 Could you please give me more hints to add the correct dependency?thanks.

 By the way,I found the key problem issued in my original post.
 That's any ajaxbehavior component(ajaxlink for example) will lead
 DropdownChoice compoent missing while scrolling vertical bar.
 After I moved all the ajaxbehavior component (or replace to non-ajaxbehavior
 component,submitlink,for example) in the webpage,then the DropdownChoice
 works fine.

 I will make a quickstart to simulate this strange situation,but at first I
 need to know how to include tinymce.jar into my pom.xml . thanks again.

 roland.


 igor.vaynberg wrote:

 add it as a dependency in the pom file.

 -igor

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



 http://www.nabble.com/file/p24490974/pom.xml pom.xml
 --
 View this message in context: 
 http://www.nabble.com/Dropdownchoice-missing-%28only-when-the-page-with-Tinymce-component%29-while-scrolling-the-vertical-scroll-bar-tp24455751p24490974.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: Page expired after rc6?

2009-07-14 Thread Martin Makundi
No. But I mean there was so many PEE:s that they could not have been
human induced.

Anyways, let's see how rc7 works.

**
Martin

2009/7/14 Major Péter majorpe...@sch.bme.hu:
 Did you used

 getPageSettings().setAutomaticMultiWindowSupport(false);

 in your application.java#init method?
 This could lower the number of PEE's.

 Peter

 2009-07-14 20:22 keltezéssel, Martin Makundi írta:

 http://issues.apache.org/jira/browse/WICKET-2346

 That does not sound like it...

 I mean I was getting page expired for no good reason unbelievably
 often for it to be caused by human error.

 I upgraded to rc7, let's see what happens. True, rc4 was working fine
 before.

 **
 Martin

 2009/7/14 Major Pétermajorpe...@sch.bme.hu:

 Most likely this is it:
 http://issues.apache.org/jira/browse/WICKET-2346

 Peter

 2009-07-14 20:11 keltezéssel, Martin Makundi írta:

 Is there a jira issue? I would like to know what it does for the victims
 ...

 **
 Martin

 2009/7/14 Igor Vaynbergigor.vaynb...@gmail.com:

 this should be fixed in rc7 - which should be in the maven repo and
 most mirrors by now.

 -igor

 On Tue, Jul 14, 2009 at 10:58 AM, Martin
 Makundimartin.maku...@koodaripalvelut.com    wrote:

 Hi!

 I have been getting lots of these from our production site since
 installing 1.4-rc6? Any idea what it might be?

 2009-07-14 20:08:30,879 28612050 [btpool0-108] ERROR RequestCycle  -
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]
 org.apache.wicket.protocol.http.request.InvalidUrlException:
 org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
 rendered page in session
 [pagemap=null,componentPath=0,versionNumber=2]


 Is it something in Wicket or just a strange user? Why only now and why
 does it come up very often?

 **
 Martin

 -
 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: Rewrite page parameter to Login_page when session's expired

2009-07-14 Thread glooorrryyy

where would I got the page parameter if the url is becoming something like
this:

http://localhost:8080/eventmanager/app/?wicket:interface=:0:loginForm::IFormSubmitListener::


igor.vaynberg wrote:
 
 the page is gone - thats why its expired. if the parameters are still
 on the url you can get those by retrieving them from webrequest.
 
 -igor
 
 On Sun, Jul 12, 2009 at 8:28 PM, glooorrryyyglo_sari...@yahoo.com wrote:

 I want to get the page parameter from an expired_page...
 Is it possible?


 Mathias Nilsson wrote:

 The application class


 --
 View this message in context:
 http://www.nabble.com/Rewrite-page-parameter-to-Login_page-when-session%27s-expired-tp24403797p24455752.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/Rewrite-page-parameter-to-Login_page-when-session%27s-expired-tp24403797p24491596.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