Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Eyal Golan
Stephen,
I need this the same reason James needs it.
We generate an image (a JFreeChart image) and we want it to have the same
background color as the one specified in the CSS file.


Eyal Golan
[EMAIL PROTECTED]

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

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


On Sun, Nov 16, 2008 at 4:09 PM, James Carman <[EMAIL PROTECTED]>wrote:

> I have the same sort of need in my application.  I need to do an
> "overlay" on an existing image using the same colors that are defined
> in a CSS document.  I guess I could dynamically generate the CSS, but
> I have no idea how to go about that. :)
>
> On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
> <[EMAIL PROTECTED]> wrote:
> >
> > What do you need it for? Why can't you just make another class with just
> the attribute in it and AttributeAppender that in?
> >
> >
> >
> > -Original Message-
> > From: egolan74 [mailto:[EMAIL PROTECTED]
> > Sent: Sun 11/16/2008 10:42 AM
> > To: users@wicket.apache.org
> > Subject: RE: Reading an attribute that is set in a CSS file as a class
> >
> >
> >
> >
> > Steve Swinsburg-2 wrote:
> >>
> >> On your component attach an AttributeAppender or AttributeModifier, set
> >> the "class" attribute to be the name of your class. Done :)
> >>
> >
> > Thanks Steve but this is not what I meant.
> > Adding a class as an attribute to a component is a pretty basic stuff.
> >
> > What I want is, getting a value of an attribute of a class in a CSS file.
> >
> > -
> > Eyal Golan
> > [EMAIL PROTECTED]
> >
> > Visit:  http://jvdrums.sourceforge.net/ JVDrums
> > LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
> > --
> > View this message in context:
> http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Firefox 2.0.0.18

2008-11-17 Thread Cristi Manole
Hello,

Thank you for your replies.

The wicket versions I'm using for the applications are 1.3.0beta4, 1.3.1,
1.3.2. I know all of them are pretty old but so are the deployed
applications. I have no wicket console available - I cannot put the
applications in debug mode as those are already in production. No  errors
are being displayed by firefox. It just doesn't work.

I tried the link given by jWeekend and it works so I suspect theres a
conflict with 2.0.0.18 the wicket versions I was using.

Sorry for the lame way I asked the question yesterday but it was already
very late here...

Cristi Manole

On Mon, Nov 17, 2008 at 1:44 AM, jWeekend <[EMAIL PROTECTED]>wrote:

>
> Cristi,
>
> We have just upgraded to 2.0.0.18 on one of our machines and all the AJAX
> on
> http://jweekend.com/dev/BookingPage/ this page  works fine.
> Try that link and if it fails to work check Tools/Options/Content to ensure
> JavaScript is enabled.
>
> Regards - Cemal
> http://www.jWeekend.co.uk http://jWeekend.co.uk
>
>
>
> Cristi Manole wrote:
> >
> > Hello,
> >
> > Since Firefox automatically updated to 2.0.0.18 every ajax I had in the
> > application (for instance ajax link / button) stopped working if it
> didn't
> > have fallback.
> >
> > The applications I have are all in production so this is very annoying.
> In
> > Internet Explorer all work.
> >
> > Did anybody else experience this? Is there a workaround?
> >
> > Thank you,
> > Cristi Manole
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Firefox-2.0.0.18-tp20531316p20531584.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Loosing page parameters after submit

2008-11-17 Thread Enes Fazli
Hello everybody,

following situation:

I have a comment panel with a form and a paging navigator to show the
comments. I implemented a own version of the PagingNavigator which uses
BookmarkablePageLinks for navigation links. Now, if i use this panel in a
page that has this url *http://localhost/sample//test/* the link to the
second page of the PagingNavigator has a url according to that *
http://localhost/sample//test/?commentspage=2*

If I now submit a comment the url to the second page of the PagingNavigator
changes to: *https://localhost:8443/sample/?commentspage=2

*My workaround at the moment is to set the response page in the form's
submit to the sample page with it's parameters. But I would have to do it
for every submitting panel in that page. I hope someone can give me a hint
on to why I lose the page parameters on submit.*
*
*For the sake of completeness:*
The page in which the Panel is embedded is mounted with a custom
UrlCodingStrategy which is a non versioned HybridUrlCodingStrategy extended
with the possibility to add mixed parameters.

I already tried other UrlCodingStrategies but that changed nothing.

Thanks,

Enes


Re: Page references and serialization

2008-11-17 Thread Johan Compagner
this is exactly how we want it to happen.

On Sun, Nov 16, 2008 at 9:24 PM, Mikko Pukki <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I tried to recreate similar situation where Page A has a link to PageB
> and PageB holds a reference to PageA. I got similar result with as
> Cristiano.
> though I only tried Wicket 1.3.5.
>
> PageA is serialized twice and pageId, versionNumber and ajaxVersionNumber
> are same with two instances of PageA (I put a breakpoint and checked
> contents
> of List "pages" on DiskPageStore line 961). Field "data" was also
> identical.
>
> Also on line 246:
> channel.write(ByteBuffer.wrap(page.getData()), window.getFilePartOffset());
>
> PageA is written to channel twice with identical content.
>
>
> Hope this helps.
>
> Regards,
> Mikko Pukki
>
> -Original Message-
> From: Johan Compagner [mailto:[EMAIL PROTECTED]
> Sent: 14. marraskuuta 2008 21:10
> To: users@wicket.apache.org
> Subject: Re: Page references and serialization
>
> >Doesnt have to be  a bug, (it could be a new version of page a) but
> >besides that dont we have a sliding window in the pagemap, so if page
> >a is touched shouldnt it get its own new place in the file (more 2 the
> >top) so that it doesnt get overwritten later on to early?
> >
> >On 11/14/08, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >> That would be a bug then. What wicket version are you using?
> >>
> >> -Matej
> >>
> >> On Fri, Nov 14, 2008 at 4:11 PM, Cristiano Kliemann
> >> <[EMAIL PROTECTED]> wrote:
> >>> Martijn,
> >>>
> >>> I'm pretty sure it is serializing PageA again. I've put some
> breakpoints
> >>> to
> >>> confirm it (at DiskPageStore.PageSavingThread.run()). Also, the growt
> rate
> >>> of the page store indicates that.
> >>>
> >>< The test I've run:
> >>>
> >>> PageA has one simple link (to do some stuff and go to PageB) and a byte
> >>> array with 25KB.
> >>> PageB has another link (to go back to PageA instance), the reference to
> >>> PageA and a byte array of 10KB.
> >>>
> >>> After PageA is first serialized, the page store goes from nothing to
> about
> >>> 27KB. When PageB is serialized, it goes to about 64KB, a 37KB
> difference.
> >>>
> >>> Testing the same thing but letting the reference to PageA null makes a
> lot
> >>> of difference. When PageB is serialized, the page strore it grows from
> >>> 27KB
> >>> to just 38KB (a 11KB difference).
> >>>
> >>> -Cristiano
> >>>
> >>>
> >>> 2008/11/14 Martijn Dashorst <[EMAIL PROTECTED]>
> >>>
>  iirc Wicket serialization is smart enough to discover that PageA
>  should not be serialized as part of PageB, but instead will replace it
>  with a reference to PageA's serialized instance.
> 
>  Martijn
> 
>  On Fri, Nov 14, 2008 at 7:15 AM, Igor Vaynberg <
> [EMAIL PROTECTED]>
>  wrote:
>  > if you are using 1.4rc1 there is no need to pass page references
>  > anymore. see Page#getPageId() and requestcycle.urlfor(pageid)
>  >
>  > -igor
>  >
>  > On Thu, Nov 13, 2008 at 6:20 PM, Cristiano Kliemann
>  > <[EMAIL PROTECTED]> wrote:
>  >> Hi!
>  >>
>  >> Some questions about Wicket serialization...
>  >>
>  >> Let's say I have two pages, A and B, and page B holds a reference
> to
>  page A.
>  >> First, an instance of page A is rendered and gets serialized by
>  >> Wicket.
>  Then
>  >> the user clicks on a button that creates an instance of page B,
> sets a
>  >> reference to the current page A and executes setCurrentPage using
> page
>  >> B
>  as
>  >> the response page, like the following:
>  >>
>  >> PageB b = new PageB();
>  >> b.setPageA(this);
>  >> setResponsePage(b);
>  >>
>  >> The first question is: when the page B gets serialized, Wicket
>  serializes
>  >> the instance of page A again, right? If several of my pages need to
>  >> hold
>  >> references to other pages, the page store gets very big. I know
> that
>  Wicket
>  >> must serialize the same instance again because one of its
> attributes
>  might
>  >> have been changed.
>  >>
>  >> In my application, sometimes I need to hold references to the page
>  >> that
>  >> originated certain operations. Later, the user has the option to go
>  >> back
>  to
>  >> that page. The 'problem' is that the originated page gets
> serialized
>  >> all
>  the
>  >> time, and I don't need that. It gets worse when I have a chain of
>  >> references.
>  >>
>  >> So, another question is: what's the best way to reference another
> page
>  >> without serializing it again? I know I can hold the page's page
> map,
>  >> id
>  and
>  >> version and get the instance on demand. Is it a good solution? Is
>  >> there
>  >> someting ready for that?
>  >>
>  >> Thanks
>  >> Cristiano
>  >>
>  >
>  >
> -
>  > To unsubscribe, e-m

AW: Simple GET based stateless form

2008-11-17 Thread Stefan Lindner
In the onSubmit method of your form place something like


PageParameters p = new PageParameters();
// add your search parameters here
getRequestCycle().setRequestTarget(new 
RedirectRequestTarget(urlFor(MySearchResults.class, p).toString()));

Try out http://www.ai-online.info/abstracts/RefresherCourse, search for 
something and see the url to decide if you are looking for my solution. Thanks 
to Igor for the initial hint.

-Ursprüngliche Nachricht-
Von: Vinayak Borkar [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 17. November 2008 08:47
An: users@wicket.apache.org
Betreff: Simple GET based stateless form

Hi,

I am trying to create a simple GET based stateless form to implement 
search. My code is broken up into two parts
1. A SearchPanel component that renders the form containing the text field
2. A SearchPage that renders the search results.

The search page also has the SearchPanel component embedded in it so it 
would show a text field for the user to search again.

The SearchPage page is mounted using the mountBookmarkablePage() call, 
so the URL for the search page is great the first time someone does a 
search.

However, if a search is performed a second time from the form on the 
SearchPage, the URL for the new serach page has a bunch of extra wicket 
specific attributes.

How do I make the URL seen in the second search as clean as the first?
I am using wicket 1.4-m3

Thanks,
Vinayak

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


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



Re: Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-17 Thread Ernesto Reinaldo Barreiro
Hi Graeme,
I don't know if what follows is the best way...   but when I export a file
on my applications sometimes I want to display a progress bar to give users
some feed back... I have done the following:


public abstract class DefaultExportPanel extends Panel {

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

private AbstractExportDialogButton button;
 private WebMarkupContainer progress;
 /**
 * @param id
 */
public DefaultExportPanel(String id, AbstractExportDialogButton button) {
super(id);
this.button = button;
setOutputMarkupId(true);
}
 @Override
protected void onBeforeRender() {
if(!this.button.getExportTask().isFinished()) {
for(Object behavior : getBehaviors()) {
if(behavior instanceof AjaxSelfUpdatingTimerBehavior) {
remove((AjaxSelfUpdatingTimerBehavior)behavior);
}
}
add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)));
progress = new ProgressReportPanel("progress",
DefaultExportPanel.this.button.getExportTask().getProgressReporter());
addOrReplace(progress);
 } else {
for(Object behavior : getBehaviors()) {
if(behavior instanceof AjaxSelfUpdatingTimerBehavior) {
remove((AjaxSelfUpdatingTimerBehavior)behavior);
}
}
add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(100)));
progress = new DownLoadExportPanel("progress",
this.button.getExportTask().getFile()) {
 private static final long serialVersionUID = 1L;

@Override
public String getContentType() {
return DefaultExportPanel.this.getContentType();
}
 @Override
public String getMessage() {
return DefaultExportPanel.this.getDowloadMessage();
}
};
progress.setOutputMarkupId(true);
addOrReplace(progress);
}
super.onBeforeRender();
}
 public abstract String getContentType();
 public abstract String getDowloadMessage();

}

and the corresponding markup:








 
 
 



The part:

add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(100)));
progress = new DownLoadExportPanel("progress",
this.button.getExportTask().getFile()) {
 private static final long serialVersionUID = 1L;

@Override
public String getContentType() {
return DefaultExportPanel.this.getContentType();
}
 @Override
public String getMessage() {
return DefaultExportPanel.this.getDowloadMessage();
}
};
progress.setOutputMarkupId(true);

after removing the behaviors I had to add it because otherwise I would get
an exception when using  IE... I know this works, or is working  for me with
the snapshot of 1.4.X  branch I use, but I'm not sure if its the best way to
achieve this...

Best,

Ernesto

On Sun, Nov 16, 2008 at 10:54 PM, Graeme Knight <[EMAIL PROTECTED]>wrote:

>
> Oh. I'm wondering: https://issues.apache.org/jira/browse/WICKET-1525
>
> Perhaps there is another way?
>
>
> Graeme Knight wrote:
> >
> > Maybe I'm trying to do something silly. Is there an alternative?
> >
> >
> > Graeme Knight wrote:
> >>
> >> Hi.
> >>
> >> What's the best way of achieving this effect:
> >>
> >> 1) Button is pressed to start a process.
> >> 2) Updating of various panels contained within a WebMarkupContainer
> >> occurs on a 5 second period.
> >> 3) Process stops and updating of WebMarkupContainer also stops.
> >>
> >> I understand the use of AjaxSelfUpdatingTimerBehavior - this really is a
> >> question of the best way to add/remove from the WebMarkupContainer on
> >> demand, or enable/disable on demand.
> >>
> >> Any thoughts most welcome.
> >>
> >> Rgds, Graeme.
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Adding-Removing-a-AjaxSelfUpdatingTimerBehavior...-tp20520576p20530559.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: AW: Simple GET based stateless form

2008-11-17 Thread Vinayak Borkar

Stefan,

What I see on your site is exactly the behaviour I wish to have. 
However, using the code you pasted, still gives me this as the end of my 
URL, the second time.


searchForm1_hf_0=&..%2F..%2F..%2Fsearch%2Fwicket%3Ainterface%2F%3A0%3Asearch-bar%3AsearchForm%3A%3AIFormSubmitListener%3A%3A%2F=&query=jboss&%3Asubmit=Submit+Query

I wonder what I am doing wrong.

Thanks,
Vinayak

Stefan Lindner wrote:

In the onSubmit method of your form place something like


PageParameters p = new PageParameters();
// add your search parameters here
getRequestCycle().setRequestTarget(new 
RedirectRequestTarget(urlFor(MySearchResults.class, p).toString()));

Try out http://www.ai-online.info/abstracts/RefresherCourse, search for 
something and see the url to decide if you are looking for my solution. Thanks 
to Igor for the initial hint.

-Ursprüngliche Nachricht-
Von: Vinayak Borkar [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 17. November 2008 08:47

An: users@wicket.apache.org
Betreff: Simple GET based stateless form

Hi,

I am trying to create a simple GET based stateless form to implement 
search. My code is broken up into two parts

1. A SearchPanel component that renders the form containing the text field
2. A SearchPage that renders the search results.

The search page also has the SearchPanel component embedded in it so it 
would show a text field for the user to search again.


The SearchPage page is mounted using the mountBookmarkablePage() call, 
so the URL for the search page is great the first time someone does a 
search.


However, if a search is performed a second time from the form on the 
SearchPage, the URL for the new serach page has a bunch of extra wicket 
specific attributes.


How do I make the URL seen in the second search as clean as the first?
I am using wicket 1.4-m3

Thanks,
Vinayak

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


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





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



Re: Simple GET based stateless form

2008-11-17 Thread Johan Compagner
dont use a wicket form
But only have the form inside your html not as a component
And configure that form to just do a get to the url it is on
Then url must be mounted/bookmarked

The page must then have a PageParameters constructor where you read your
parameters from

johan


On Mon, Nov 17, 2008 at 8:46 AM, Vinayak Borkar <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I am trying to create a simple GET based stateless form to implement
> search. My code is broken up into two parts
> 1. A SearchPanel component that renders the form containing the text field
> 2. A SearchPage that renders the search results.
>
> The search page also has the SearchPanel component embedded in it so it
> would show a text field for the user to search again.
>
> The SearchPage page is mounted using the mountBookmarkablePage() call, so
> the URL for the search page is great the first time someone does a search.
>
> However, if a search is performed a second time from the form on the
> SearchPage, the URL for the new serach page has a bunch of extra wicket
> specific attributes.
>
> How do I make the URL seen in the second search as clean as the first?
> I am using wicket 1.4-m3
>
> Thanks,
> Vinayak
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Getting Panel body content

2008-11-17 Thread jensiator

Hi
I've created a Panel that I would like to act as a AjaxLink in the markup. I
would like to be able to add a  tag in the body content of
the panel and get hold of it in the panel java code before the body content
is replaced. Can this be done?
Jens
-- 
View this message in context: 
http://www.nabble.com/Getting-Panel-body-content-tp20536289p20536289.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem with Crypted URL

2008-11-17 Thread Johan Compagner
i guess this is because we now use sessionid as the seed for the encryption
of the urls

So when a session times out and that user makes another request to it we
cant decrypt it anymore because
another seed is used.

I already changed the handling of that in trunk so that now a page expired
is thrown when that happens.


On Mon, Nov 17, 2008 at 5:21 AM, Andrew Berman <[EMAIL PROTECTED]> wrote:

> I upgraded from 1.3.4 to 1.3.5 and now I am seeing this error all over the
> place in my log files..
>
> [ERROR] 21:44:24 CryptedUrlWebRequestCodingStrategy - Invalid URL:
>
> foo/?x=kSQEmQImbZiH47lvkBIVh0gnXDVDx7-UQqHufLUVx5IVu10xEJYI8UXQ2B0gQCTDdAzJ7rUByXI
> org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
> '�$^D�^B&m���o�^R^U�H'\5Cǿ�B��|�^Uǒ^U�]1^P�^H�E��^] @$�t^L��^A�r'
>at
>
> org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
>at
>
> org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
>at
>
> org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:250)
>at
>
> org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
>at org.apache.wicket.Request.getRequestParameters(Request.java:171)
>at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
>at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>at
> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
>
> Anyone have any ideas what in the world is causing the jibberish?  I am
> using JDK 6 and Wicket 1.3.5.
>
> Thanks,
>
> Andrew
>


Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Steve Swinsburg
I understand you need to match some attributes, but I don't understand  
why the CSS can't just have an extra class containing the attributes  
you need. Where does the CSS come from? Is it fixed or does it change  
a lot, ie via user specified/uploaded skins etc?


cheers,
Steve





On 17 Nov 2008, at 08:21, Eyal Golan wrote:


Stephen,
I need this the same reason James needs it.
We generate an image (a JFreeChart image) and we want it to have the  
same

background color as the one specified in the CSS file.


Eyal Golan
[EMAIL PROTECTED]

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

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



On Sun, Nov 16, 2008 at 4:09 PM, James Carman <[EMAIL PROTECTED] 
>wrote:



I have the same sort of need in my application.  I need to do an
"overlay" on an existing image using the same colors that are defined
in a CSS document.  I guess I could dynamically generate the CSS, but
I have no idea how to go about that. :)

On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
<[EMAIL PROTECTED]> wrote:


What do you need it for? Why can't you just make another class  
with just

the attribute in it and AttributeAppender that in?




-Original Message-
From: egolan74 [mailto:[EMAIL PROTECTED]
Sent: Sun 11/16/2008 10:42 AM
To: users@wicket.apache.org
Subject: RE: Reading an attribute that is set in a CSS file as a  
class





Steve Swinsburg-2 wrote:


On your component attach an AttributeAppender or  
AttributeModifier, set

the "class" attribute to be the name of your class. Done :)



Thanks Steve but this is not what I meant.
Adding a class as an attribute to a component is a pretty basic  
stuff.


What I want is, getting a value of an attribute of a class in a  
CSS file.


-
Eyal Golan
[EMAIL PROTECTED]

Visit:  http://jvdrums.sourceforge.net/ JVDrums
LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
--
View this message in context:

http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html

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


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




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



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






smime.p7s
Description: S/MIME cryptographic signature


Re: AW: Simple GET based stateless form

2008-11-17 Thread FakeBoy

Hi,
I have also some problem with stateless form in wicket 1.4-m3. I still don't
know where is the problem.
My prob is described in
http://www.nabble.com/StatelessForm-in-Bookmarkable-Page-problem-to19430608.html#a19430608

Dave



Vinayak Borkar wrote:
> 
> Stefan,
> 
> What I see on your site is exactly the behaviour I wish to have. 
> However, using the code you pasted, still gives me this as the end of my 
> URL, the second time.
> 
> searchForm1_hf_0=&..%2F..%2F..%2Fsearch%2Fwicket%3Ainterface%2F%3A0%3Asearch-bar%3AsearchForm%3A%3AIFormSubmitListener%3A%3A%2F=&query=jboss&%3Asubmit=Submit+Query
> 
> I wonder what I am doing wrong.
> 
> Thanks,
> Vinayak
> 
> Stefan Lindner wrote:
>> In the onSubmit method of your form place something like
>> 
>> 
>>  PageParameters p = new PageParameters();
>>  // add your search parameters here
>>  getRequestCycle().setRequestTarget(new
>> RedirectRequestTarget(urlFor(MySearchResults.class, p).toString()));
>> 
>> Try out http://www.ai-online.info/abstracts/RefresherCourse, search for
>> something and see the url to decide if you are looking for my solution.
>> Thanks to Igor for the initial hint.
>> 
>> -Ursprüngliche Nachricht-
>> Von: Vinayak Borkar [mailto:[EMAIL PROTECTED] 
>> Gesendet: Montag, 17. November 2008 08:47
>> An: users@wicket.apache.org
>> Betreff: Simple GET based stateless form
>> 
>> Hi,
>> 
>> I am trying to create a simple GET based stateless form to implement 
>> search. My code is broken up into two parts
>> 1. A SearchPanel component that renders the form containing the text
>> field
>> 2. A SearchPage that renders the search results.
>> 
>> The search page also has the SearchPanel component embedded in it so it 
>> would show a text field for the user to search again.
>> 
>> The SearchPage page is mounted using the mountBookmarkablePage() call, 
>> so the URL for the search page is great the first time someone does a 
>> search.
>> 
>> However, if a search is performed a second time from the form on the 
>> SearchPage, the URL for the new serach page has a bunch of extra wicket 
>> specific attributes.
>> 
>> How do I make the URL seen in the second search as clean as the first?
>> I am using wicket 1.4-m3
>> 
>> Thanks,
>> Vinayak
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Simple-GET-based-stateless-form-tp20535056p20536810.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Ernesto Reinaldo Barreiro
Why don't you just generate the CSS or parse it if that's not possible...
With the  former approach you will have the color before hand, with the
latter you will have to locate it "somewhere" on the CSS. So, what is the
best solution will  depend on how you manage CSS on your application...
Best,

Ernesto

On Mon, Nov 17, 2008 at 9:21 AM, Eyal Golan <[EMAIL PROTECTED]> wrote:

> Stephen,
> I need this the same reason James needs it.
> We generate an image (a JFreeChart image) and we want it to have the same
> background color as the one specified in the CSS file.
>
>
> Eyal Golan
> [EMAIL PROTECTED]
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>
>
> On Sun, Nov 16, 2008 at 4:09 PM, James Carman <[EMAIL PROTECTED]
> >wrote:
>
> > I have the same sort of need in my application.  I need to do an
> > "overlay" on an existing image using the same colors that are defined
> > in a CSS document.  I guess I could dynamically generate the CSS, but
> > I have no idea how to go about that. :)
> >
> > On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > What do you need it for? Why can't you just make another class with
> just
> > the attribute in it and AttributeAppender that in?
> > >
> > >
> > >
> > > -Original Message-
> > > From: egolan74 [mailto:[EMAIL PROTECTED]
> > > Sent: Sun 11/16/2008 10:42 AM
> > > To: users@wicket.apache.org
> > > Subject: RE: Reading an attribute that is set in a CSS file as a class
> > >
> > >
> > >
> > >
> > > Steve Swinsburg-2 wrote:
> > >>
> > >> On your component attach an AttributeAppender or AttributeModifier,
> set
> > >> the "class" attribute to be the name of your class. Done :)
> > >>
> > >
> > > Thanks Steve but this is not what I meant.
> > > Adding a class as an attribute to a component is a pretty basic stuff.
> > >
> > > What I want is, getting a value of an attribute of a class in a CSS
> file.
> > >
> > > -
> > > Eyal Golan
> > > [EMAIL PROTECTED]
> > >
> > > Visit:  http://jvdrums.sourceforge.net/ JVDrums
> > > LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
> > > --
> > > View this message in context:
> >
> http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Bugs in wicket

2008-11-17 Thread jensiator

Cant find a bug number.  Heres the url.
http://wicketstuff.org/jira/browse/WSCAL-4
Jens


Please can you give us the bug number (Wicket-) so we can vote for this
bug and follow it?

Regards.


jensiator wrote:
> 
> I've reported it to wicket JIRA.
> Jens
> 
> 
> TahitianGabriel wrote:
>> 
>> Yes it seems to have a bug with datepicker in ModalWindows with IE7
>> (works with firefox 3).
>> In file calendar-min.js line : this.oDomContainer.innerHTML=B.join("\n")
>> I think that "innerHTML" property is readonly in IE7.
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bugs-in-wicket-tp20377171p20537047.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread James Carman
We're going to go with the "generate the CSS" route.  I'm going to
implement that today.  If you want me to send you some code after I'm
done, I can do that.

On Mon, Nov 17, 2008 at 5:27 AM, Ernesto Reinaldo Barreiro
<[EMAIL PROTECTED]> wrote:
> Why don't you just generate the CSS or parse it if that's not possible...
> With the  former approach you will have the color before hand, with the
> latter you will have to locate it "somewhere" on the CSS. So, what is the
> best solution will  depend on how you manage CSS on your application...
> Best,
>
> Ernesto
>
> On Mon, Nov 17, 2008 at 9:21 AM, Eyal Golan <[EMAIL PROTECTED]> wrote:
>
>> Stephen,
>> I need this the same reason James needs it.
>> We generate an image (a JFreeChart image) and we want it to have the same
>> background color as the one specified in the CSS file.
>>
>>
>> Eyal Golan
>> [EMAIL PROTECTED]
>>
>> Visit: http://jvdrums.sourceforge.net/
>> LinkedIn: http://www.linkedin.com/in/egolan74
>>
>> P  Save a tree. Please don't print this e-mail unless it's really necessary
>>
>>
>> On Sun, Nov 16, 2008 at 4:09 PM, James Carman <[EMAIL PROTECTED]
>> >wrote:
>>
>> > I have the same sort of need in my application.  I need to do an
>> > "overlay" on an existing image using the same colors that are defined
>> > in a CSS document.  I guess I could dynamically generate the CSS, but
>> > I have no idea how to go about that. :)
>> >
>> > On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
>> > <[EMAIL PROTECTED]> wrote:
>> > >
>> > > What do you need it for? Why can't you just make another class with
>> just
>> > the attribute in it and AttributeAppender that in?
>> > >
>> > >
>> > >
>> > > -Original Message-
>> > > From: egolan74 [mailto:[EMAIL PROTECTED]
>> > > Sent: Sun 11/16/2008 10:42 AM
>> > > To: users@wicket.apache.org
>> > > Subject: RE: Reading an attribute that is set in a CSS file as a class
>> > >
>> > >
>> > >
>> > >
>> > > Steve Swinsburg-2 wrote:
>> > >>
>> > >> On your component attach an AttributeAppender or AttributeModifier,
>> set
>> > >> the "class" attribute to be the name of your class. Done :)
>> > >>
>> > >
>> > > Thanks Steve but this is not what I meant.
>> > > Adding a class as an attribute to a component is a pretty basic stuff.
>> > >
>> > > What I want is, getting a value of an attribute of a class in a CSS
>> file.
>> > >
>> > > -
>> > > Eyal Golan
>> > > [EMAIL PROTECTED]
>> > >
>> > > Visit:  http://jvdrums.sourceforge.net/ JVDrums
>> > > LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
>> > > --
>> > > View this message in context:
>> >
>> http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
>> > > Sent from the Wicket - User mailing list archive at Nabble.com.
>> > >
>> > >
>> > > -
>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> > >
>> > >
>> > >
>> > > -
>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>

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



Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Eyal Golan
James,
Yes, I would like you to send an example of this route.
It looks as this is what I need.

thanks


Eyal Golan
[EMAIL PROTECTED]

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

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


On Mon, Nov 17, 2008 at 1:20 PM, James Carman <[EMAIL PROTECTED]>wrote:

> We're going to go with the "generate the CSS" route.  I'm going to
> implement that today.  If you want me to send you some code after I'm
> done, I can do that.
>
> On Mon, Nov 17, 2008 at 5:27 AM, Ernesto Reinaldo Barreiro
> <[EMAIL PROTECTED]> wrote:
> > Why don't you just generate the CSS or parse it if that's not possible...
> > With the  former approach you will have the color before hand, with the
> > latter you will have to locate it "somewhere" on the CSS. So, what is the
> > best solution will  depend on how you manage CSS on your application...
> > Best,
> >
> > Ernesto
> >
> > On Mon, Nov 17, 2008 at 9:21 AM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> >
> >> Stephen,
> >> I need this the same reason James needs it.
> >> We generate an image (a JFreeChart image) and we want it to have the
> same
> >> background color as the one specified in the CSS file.
> >>
> >>
> >> Eyal Golan
> >> [EMAIL PROTECTED]
> >>
> >> Visit: http://jvdrums.sourceforge.net/
> >> LinkedIn: http://www.linkedin.com/in/egolan74
> >>
> >> P  Save a tree. Please don't print this e-mail unless it's really
> necessary
> >>
> >>
> >> On Sun, Nov 16, 2008 at 4:09 PM, James Carman <
> [EMAIL PROTECTED]
> >> >wrote:
> >>
> >> > I have the same sort of need in my application.  I need to do an
> >> > "overlay" on an existing image using the same colors that are defined
> >> > in a CSS document.  I guess I could dynamically generate the CSS, but
> >> > I have no idea how to go about that. :)
> >> >
> >> > On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
> >> > <[EMAIL PROTECTED]> wrote:
> >> > >
> >> > > What do you need it for? Why can't you just make another class with
> >> just
> >> > the attribute in it and AttributeAppender that in?
> >> > >
> >> > >
> >> > >
> >> > > -Original Message-
> >> > > From: egolan74 [mailto:[EMAIL PROTECTED]
> >> > > Sent: Sun 11/16/2008 10:42 AM
> >> > > To: users@wicket.apache.org
> >> > > Subject: RE: Reading an attribute that is set in a CSS file as a
> class
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > Steve Swinsburg-2 wrote:
> >> > >>
> >> > >> On your component attach an AttributeAppender or AttributeModifier,
> >> set
> >> > >> the "class" attribute to be the name of your class. Done :)
> >> > >>
> >> > >
> >> > > Thanks Steve but this is not what I meant.
> >> > > Adding a class as an attribute to a component is a pretty basic
> stuff.
> >> > >
> >> > > What I want is, getting a value of an attribute of a class in a CSS
> >> file.
> >> > >
> >> > > -
> >> > > Eyal Golan
> >> > > [EMAIL PROTECTED]
> >> > >
> >> > > Visit:  http://jvdrums.sourceforge.net/ JVDrums
> >> > > LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
> >> > > --
> >> > > View this message in context:
> >> >
> >>
> http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
> >> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> >> > >
> >> > >
> >> > >
> -
> >> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> -
> >> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >> > >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread Ernesto Reinaldo Barreiro
Tanks James! At the moment I do not need that code myself but maybe it could
be useful to others...
Best,

Ernesto

On Mon, Nov 17, 2008 at 12:20 PM, James Carman
<[EMAIL PROTECTED]>wrote:

> We're going to go with the "generate the CSS" route.  I'm going to
> implement that today.  If you want me to send you some code after I'm
> done, I can do that.
>
> On Mon, Nov 17, 2008 at 5:27 AM, Ernesto Reinaldo Barreiro
> <[EMAIL PROTECTED]> wrote:
> > Why don't you just generate the CSS or parse it if that's not possible...
> > With the  former approach you will have the color before hand, with the
> > latter you will have to locate it "somewhere" on the CSS. So, what is the
> > best solution will  depend on how you manage CSS on your application...
> > Best,
> >
> > Ernesto
> >
> > On Mon, Nov 17, 2008 at 9:21 AM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> >
> >> Stephen,
> >> I need this the same reason James needs it.
> >> We generate an image (a JFreeChart image) and we want it to have the
> same
> >> background color as the one specified in the CSS file.
> >>
> >>
> >> Eyal Golan
> >> [EMAIL PROTECTED]
> >>
> >> Visit: http://jvdrums.sourceforge.net/
> >> LinkedIn: http://www.linkedin.com/in/egolan74
> >>
> >> P  Save a tree. Please don't print this e-mail unless it's really
> necessary
> >>
> >>
> >> On Sun, Nov 16, 2008 at 4:09 PM, James Carman <
> [EMAIL PROTECTED]
> >> >wrote:
> >>
> >> > I have the same sort of need in my application.  I need to do an
> >> > "overlay" on an existing image using the same colors that are defined
> >> > in a CSS document.  I guess I could dynamically generate the CSS, but
> >> > I have no idea how to go about that. :)
> >> >
> >> > On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
> >> > <[EMAIL PROTECTED]> wrote:
> >> > >
> >> > > What do you need it for? Why can't you just make another class with
> >> just
> >> > the attribute in it and AttributeAppender that in?
> >> > >
> >> > >
> >> > >
> >> > > -Original Message-
> >> > > From: egolan74 [mailto:[EMAIL PROTECTED]
> >> > > Sent: Sun 11/16/2008 10:42 AM
> >> > > To: users@wicket.apache.org
> >> > > Subject: RE: Reading an attribute that is set in a CSS file as a
> class
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > Steve Swinsburg-2 wrote:
> >> > >>
> >> > >> On your component attach an AttributeAppender or AttributeModifier,
> >> set
> >> > >> the "class" attribute to be the name of your class. Done :)
> >> > >>
> >> > >
> >> > > Thanks Steve but this is not what I meant.
> >> > > Adding a class as an attribute to a component is a pretty basic
> stuff.
> >> > >
> >> > > What I want is, getting a value of an attribute of a class in a CSS
> >> file.
> >> > >
> >> > > -
> >> > > Eyal Golan
> >> > > [EMAIL PROTECTED]
> >> > >
> >> > > Visit:  http://jvdrums.sourceforge.net/ JVDrums
> >> > > LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
> >> > > --
> >> > > View this message in context:
> >> >
> >>
> http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
> >> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> >> > >
> >> > >
> >> > >
> -
> >> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> -
> >> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >> > >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Reading an attribute that is set in a CSS file as a class

2008-11-17 Thread James Carman
Perhaps if it's that beneficial to folks, I'll put a wiki page out
there in the "how to" section.

On Mon, Nov 17, 2008 at 6:40 AM, Ernesto Reinaldo Barreiro
<[EMAIL PROTECTED]> wrote:
> Tanks James! At the moment I do not need that code myself but maybe it could
> be useful to others...
> Best,
>
> Ernesto
>
> On Mon, Nov 17, 2008 at 12:20 PM, James Carman
> <[EMAIL PROTECTED]>wrote:
>
>> We're going to go with the "generate the CSS" route.  I'm going to
>> implement that today.  If you want me to send you some code after I'm
>> done, I can do that.
>>
>> On Mon, Nov 17, 2008 at 5:27 AM, Ernesto Reinaldo Barreiro
>> <[EMAIL PROTECTED]> wrote:
>> > Why don't you just generate the CSS or parse it if that's not possible...
>> > With the  former approach you will have the color before hand, with the
>> > latter you will have to locate it "somewhere" on the CSS. So, what is the
>> > best solution will  depend on how you manage CSS on your application...
>> > Best,
>> >
>> > Ernesto
>> >
>> > On Mon, Nov 17, 2008 at 9:21 AM, Eyal Golan <[EMAIL PROTECTED]> wrote:
>> >
>> >> Stephen,
>> >> I need this the same reason James needs it.
>> >> We generate an image (a JFreeChart image) and we want it to have the
>> same
>> >> background color as the one specified in the CSS file.
>> >>
>> >>
>> >> Eyal Golan
>> >> [EMAIL PROTECTED]
>> >>
>> >> Visit: http://jvdrums.sourceforge.net/
>> >> LinkedIn: http://www.linkedin.com/in/egolan74
>> >>
>> >> P  Save a tree. Please don't print this e-mail unless it's really
>> necessary
>> >>
>> >>
>> >> On Sun, Nov 16, 2008 at 4:09 PM, James Carman <
>> [EMAIL PROTECTED]
>> >> >wrote:
>> >>
>> >> > I have the same sort of need in my application.  I need to do an
>> >> > "overlay" on an existing image using the same colors that are defined
>> >> > in a CSS document.  I guess I could dynamically generate the CSS, but
>> >> > I have no idea how to go about that. :)
>> >> >
>> >> > On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
>> >> > <[EMAIL PROTECTED]> wrote:
>> >> > >
>> >> > > What do you need it for? Why can't you just make another class with
>> >> just
>> >> > the attribute in it and AttributeAppender that in?
>> >> > >
>> >> > >
>> >> > >
>> >> > > -Original Message-
>> >> > > From: egolan74 [mailto:[EMAIL PROTECTED]
>> >> > > Sent: Sun 11/16/2008 10:42 AM
>> >> > > To: users@wicket.apache.org
>> >> > > Subject: RE: Reading an attribute that is set in a CSS file as a
>> class
>> >> > >
>> >> > >
>> >> > >
>> >> > >
>> >> > > Steve Swinsburg-2 wrote:
>> >> > >>
>> >> > >> On your component attach an AttributeAppender or AttributeModifier,
>> >> set
>> >> > >> the "class" attribute to be the name of your class. Done :)
>> >> > >>
>> >> > >
>> >> > > Thanks Steve but this is not what I meant.
>> >> > > Adding a class as an attribute to a component is a pretty basic
>> stuff.
>> >> > >
>> >> > > What I want is, getting a value of an attribute of a class in a CSS
>> >> file.
>> >> > >
>> >> > > -
>> >> > > Eyal Golan
>> >> > > [EMAIL PROTECTED]
>> >> > >
>> >> > > Visit:  http://jvdrums.sourceforge.net/ JVDrums
>> >> > > LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
>> >> > > --
>> >> > > View this message in context:
>> >> >
>> >>
>> http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
>> >> > > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >> > >
>> >> > >
>> >> > >
>> -
>> >> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> > >
>> >> > >
>> >> > >
>> >> > >
>> >> > >
>> -
>> >> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> > >
>> >> >
>> >> > -
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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



Session / Application : where to put a component

2008-11-17 Thread Eyal Golan
Our application has a base page and we use markup inheritance.
In the base page we have a headerWe call it HeaderPanel.
HeaderPanel has MainTabsPanel, which consists with the menu links.

The situation now is that for each page, the HeaderPanel and MainTabsPanel
are constructed in each page (because of the markup inheritance).
This is what we have in the base page constructor:
HeaderPanel headerPanel = new HeaderPanel("headerPanel", this);
And this is in the HeaderPanel constructor:
add(new MainTabsPanel("mainTabs"));

For some reasons I want the MainTabsPanel to be constructed only once.

So, instead of adding using new, I want something like:
add(mySession.getMainTabsPanel());
or
add(myApplication.getMainTabsPanel());

Which one is better or is there even something better than this?



Eyal Golan
[EMAIL PROTECTED]

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

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


Wicket 1.4 Generics, DefaultDataTable and ChoiceFilteredPropertyColumn

2008-11-17 Thread Dylan Schell

When trying to use the DefaultDataTable in combination i'm running into what I 
think is a "bug" in the generification of ChoiceFilteredPropertyColumn,

DefaultDataTable is parameterized with type  and the constructor expects 
IColumn for it's column types. if I try to parameterize 
ChoiceFilteredPropertyColumn with type  the elements I can choose from also 
have to be of that same type. Should ChoiceFilteredPropertyColumn be 
parameterized with 2 types? one for the column, one for the choice elements?



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



Re: Session / Application : where to put a component

2008-11-17 Thread Martijn Dashorst
Don't share components across requests or even pages. You can't do that.

Martijn

On Mon, Nov 17, 2008 at 1:50 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> Our application has a base page and we use markup inheritance.
> In the base page we have a headerWe call it HeaderPanel.
> HeaderPanel has MainTabsPanel, which consists with the menu links.
>
> The situation now is that for each page, the HeaderPanel and MainTabsPanel
> are constructed in each page (because of the markup inheritance).
> This is what we have in the base page constructor:
> HeaderPanel headerPanel = new HeaderPanel("headerPanel", this);
> And this is in the HeaderPanel constructor:
> add(new MainTabsPanel("mainTabs"));
>
> For some reasons I want the MainTabsPanel to be constructed only once.
>
> So, instead of adding using new, I want something like:
> add(mySession.getMainTabsPanel());
> or
> add(myApplication.getMainTabsPanel());
>
> Which one is better or is there even something better than this?
>
>
>
> Eyal Golan
> [EMAIL PROTECTED]
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>



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

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



Re: Unable to load Wicket app in hosting provider

2008-11-17 Thread moraleslos

I gave two things a shot and they both don't work.

1) I changed my context root of my Wicket application to /xyz (instead of
the default /) and I put an index.html file in my root that looks like this:




XYZ
http://www.xyz.com/xyz";>



The site reads my index.html properly and redirects, but redirects to a 404
error page.

2) I uploaded the entire wicket_in_action_0.9 war file under the context
root /wicket_in_action.  When I type www.xyz.com/wicket_in_action, I get a
404 because it tries to redirect me to www.xyz.com/wicket_in_action/app
(which is correct since the default index.html file uses the same refresh
technique but to /app which does not exist).  Now if I type in this
directly: http://www.xyz.com/wicket_in_action/home, I also get a 404 error.  

>From the above, it seems to me that the Java hosting site's Tomcat is not
able to load any Wicket-based app probably due to not being able to
understand and/or load the Wicket filter defined in the web.xml file. 
Regardless if I have a static default page (index.html) that redirects to a
Wicket URL will not work.  

Any other ideas I may try out before giving up?  Thanks!

-los


igor.vaynberg wrote:
> 
> you just need a file named index.html in your /xyz dir
> 
> -igor
> 
> On Sun, Nov 16, 2008 at 5:01 PM, moraleslos <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi,
>>
>> Thanks for the reply.  I'm a bit confused on how to write the index.html.
>> So, let's say my godaddy directory structure looks like this:
>>
>> /
>> /xyz
>> /xyz/WEB-INF
>> /xyz/WEB-INF/web.xml
>> /xyz/WEB-INF/classes/com/xyz/Index.html
>> /xyz/WEB-INF/classes/com/xyz/Index.class
>> ...
>>
>> In my web.xml looks like this:
>>
>> >version="2.4"
>>xmlns="http://java.sun.com/xml/ns/j2ee";
>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>>
>>xyz
>>
>>configuration
>>deployment
>>
>>
>>wicket.xyz
>>   
>> org.apache.wicket.protocol.http.WicketFilter
>>
>>applicationClassName
>>com.xyz.XyzApplication
>>
>>
>>
>>wicket.xyz
>>/*
>>
>> 
>>
>>
>> So how do I write the index.html that's going to be in the root directory
>> to
>> invoke Wicket's Index.html under /xyz/WEB-INF/classes/com/xyz/Index.html?
>> Thanks!
>>
>> -los
>>
>>
>> Martijn Dashorst wrote:
>>>
>>> so your wicket filter would service all requests going to:
>>>
>>> http://godaddy.com/myapplication/app
>>>
>>> or, you could still keep the filter mapping to /* but redirect to your
>>> mounted homepage with mount name "home" or something similar.
>>>
>>> Martijn
>>>
>>> On Mon, Nov 17, 2008 at 1:40 AM, Martijn Dashorst
>>> <[EMAIL PROTECTED]> wrote:
 mount the wicket filter under context root app and tell the index.html
 to redirect to that url with a pragma header.

 Martijn

 On Mon, Nov 17, 2008 at 1:10 AM, moraleslos <[EMAIL PROTECTED]>
 wrote:
>
> Ok,
>
> Finally talked to someone at GoDaddy who gave me some advice.  With
> their
> Java hosting, it seems that they force Tomcat to look for a default
> file
> (e.g. index.html) at the root directory.  Since I don't have one (all
> of
> my
> files are under WEB-INF/classes/...), I get the 403 error.
>
> Now here's the question.  How do I write up a default index.html file
> and
> place this in the root directory such that it will "start" up the
> Wicket
> filter in the web.xml file and run the Wicket application
> appropriately?
> Again, my actual Index.html, and hence it's Index.class, is packaged
> under
> the WEB-INF/classes/... directory.  Thanks!
>
> -los
>
>
>
> Erik van Oosten wrote:
>>
>> Maybe this helps. I've found that you need to start Tomcat from a
>> directory that is writable for the user you are using (no idea why
>> though). Besides the application log, you should also check Tomcat's
>> log
>> files.
>>
>> Good luck,
>> Erik.
>>
>> moraleslos wrote:
>>> Hi,
>>>
>>> I'm running into an issue where my Wicket-based application will
>>> absolutely
>>> not load in the shared hosting environment.  I'm trying out
>>> GoDaddy's
>>> Java
>>> Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same
>>> setup
>>> on
>>> my box and deploying my Wicket 1.3.4-based application works
>>
>> --
>> Erik van Oosten
>> http://www.day-to-day-stuff.blogspot.com/
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>

Re: Session / Application : where to put a component

2008-11-17 Thread Eyal Golan
OK.
Thanks,
I'll see if I can do it differently.


Eyal Golan
[EMAIL PROTECTED]

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

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


On Mon, Nov 17, 2008 at 3:31 PM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

> Don't share components across requests or even pages. You can't do that.
>
> Martijn
>
> On Mon, Nov 17, 2008 at 1:50 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> > Our application has a base page and we use markup inheritance.
> > In the base page we have a headerWe call it HeaderPanel.
> > HeaderPanel has MainTabsPanel, which consists with the menu links.
> >
> > The situation now is that for each page, the HeaderPanel and
> MainTabsPanel
> > are constructed in each page (because of the markup inheritance).
> > This is what we have in the base page constructor:
> > HeaderPanel headerPanel = new HeaderPanel("headerPanel", this);
> > And this is in the HeaderPanel constructor:
> > add(new MainTabsPanel("mainTabs"));
> >
> > For some reasons I want the MainTabsPanel to be constructed only once.
> >
> > So, instead of adding using new, I want something like:
> > add(mySession.getMainTabsPanel());
> > or
> > add(myApplication.getMainTabsPanel());
> >
> > Which one is better or is there even something better than this?
> >
> >
> >
> > Eyal Golan
> > [EMAIL PROTECTED]
> >
> > Visit: http://jvdrums.sourceforge.net/
> > LinkedIn: http://www.linkedin.com/in/egolan74
> >
> > P  Save a tree. Please don't print this e-mail unless it's really
> necessary
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-17 Thread Graeme Knight

Hi.

Thanks for that. I was worried about removing behaviors - but thanks for the
information.

I'm going to look at how easy it is to change time on an
AjaxSelfUpdatingTimerBehavior?

I need a poll anyway so I am thinking of polling once every five minutes and
then when the refresh is occurring I can poll evey 5 seconds, then when
finished - back to five minutes...

Cheers, Graeme.


reiern70 wrote:
> 
> Hi Graeme,
> I don't know if what follows is the best way...   but when I export a file
> on my applications sometimes I want to display a progress bar to give
> users
> some feed back... I have done the following:
> 
> 
> public abstract class DefaultExportPanel extends Panel {
> 
> /**
>  *
>  */
> private static final long serialVersionUID = 1L;
> 
> private AbstractExportDialogButton button;
>  private WebMarkupContainer progress;
>  /**
>  * @param id
>  */
> public DefaultExportPanel(String id, AbstractExportDialogButton button) {
> super(id);
> this.button = button;
> setOutputMarkupId(true);
> }
>  @Override
> protected void onBeforeRender() {
> if(!this.button.getExportTask().isFinished()) {
> for(Object behavior : getBehaviors()) {
> if(behavior instanceof AjaxSelfUpdatingTimerBehavior) {
> remove((AjaxSelfUpdatingTimerBehavior)behavior);
> }
> }
> add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)));
> progress = new ProgressReportPanel("progress",
> DefaultExportPanel.this.button.getExportTask().getProgressReporter());
> addOrReplace(progress);
>  } else {
> for(Object behavior : getBehaviors()) {
> if(behavior instanceof AjaxSelfUpdatingTimerBehavior) {
> remove((AjaxSelfUpdatingTimerBehavior)behavior);
> }
> }
> add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(100)));
> progress = new DownLoadExportPanel("progress",
> this.button.getExportTask().getFile()) {
>  private static final long serialVersionUID = 1L;
> 
> @Override
> public String getContentType() {
> return DefaultExportPanel.this.getContentType();
> }
>  @Override
> public String getMessage() {
> return DefaultExportPanel.this.getDowloadMessage();
> }
> };
> progress.setOutputMarkupId(true);
> addOrReplace(progress);
> }
> super.onBeforeRender();
> }
>  public abstract String getContentType();
>  public abstract String getDowloadMessage();
> 
> }
> 
> and the corresponding markup:
> 
> 
> 
> 
> 
> 
> 
> 
>  
>  
>  
> 
> 
> 
> The part:
> 
> add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(100)));
> progress = new DownLoadExportPanel("progress",
> this.button.getExportTask().getFile()) {
>  private static final long serialVersionUID = 1L;
> 
> @Override
> public String getContentType() {
> return DefaultExportPanel.this.getContentType();
> }
>  @Override
> public String getMessage() {
> return DefaultExportPanel.this.getDowloadMessage();
> }
> };
> progress.setOutputMarkupId(true);
> 
> after removing the behaviors I had to add it because otherwise I would get
> an exception when using  IE... I know this works, or is working  for me
> with
> the snapshot of 1.4.X  branch I use, but I'm not sure if its the best way
> to
> achieve this...
> 
> Best,
> 
> Ernesto
> 
> On Sun, Nov 16, 2008 at 10:54 PM, Graeme Knight
> <[EMAIL PROTECTED]>wrote:
> 
>>
>> Oh. I'm wondering: https://issues.apache.org/jira/browse/WICKET-1525
>>
>> Perhaps there is another way?
>>
>>
>> Graeme Knight wrote:
>> >
>> > Maybe I'm trying to do something silly. Is there an alternative?
>> >
>> >
>> > Graeme Knight wrote:
>> >>
>> >> Hi.
>> >>
>> >> What's the best way of achieving this effect:
>> >>
>> >> 1) Button is pressed to start a process.
>> >> 2) Updating of various panels contained within a WebMarkupContainer
>> >> occurs on a 5 second period.
>> >> 3) Process stops and updating of WebMarkupContainer also stops.
>> >>
>> >> I understand the use of AjaxSelfUpdatingTimerBehavior - this really is
>> a
>> >> question of the best way to add/remove from the WebMarkupContainer on
>> >> demand, or enable/disable on demand.
>> >>
>> >> Any thoughts most welcome.
>> >>
>> >> Rgds, Graeme.
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Adding-Removing-a-AjaxSelfUpdatingTimerBehavior...-tp20520576p20530559.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Adding-Removing-a-AjaxSelfUpdatingTimerBehavior...-tp20520576p20539844.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem with Crypted URL

2008-11-17 Thread francisco treacy
something _similar_ happens in my logs.

ERROR 2008-11-17 14:16:49,170 [http-8080-Processor17] Invalid URL
org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
'[EMAIL PROTECTED]'
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:256)
at 
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
at org.apache.wicket.Request.getRequestParameters(Request.java:172)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1227)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:497)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:420)

(...)

Caused by: javax.crypto.BadPaddingException: Given final block not
properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_ab.b(DashoA13*..)
at 
com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at org.apache.wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:101)
at 
org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:141)
... 27 more

but apparently doesn't cause any trouble in the app (eg. no visible
stacktrace or expired page). so i'm just curious.

in this app wicket is 1.4-SNAPSHOT (august 26) (because of a
dependency). will try to switch to rc1 see what i get.

> I already changed the handling of that in trunk so that now a page expired
> is thrown when that happens.

johan when did you exactly change that?  does it also impact my issue?

thanks

francisco



On Mon, Nov 17, 2008 at 10:39 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> i guess this is because we now use sessionid as the seed for the encryption
> of the urls
>
> So when a session times out and that user makes another request to it we
> cant decrypt it anymore because
> another seed is used.
>
> I already changed the handling of that in trunk so that now a page expired
> is thrown when that happens.
>
>
> On Mon, Nov 17, 2008 at 5:21 AM, Andrew Berman <[EMAIL PROTECTED]> wrote:
>
>> I upgraded from 1.3.4 to 1.3.5 and now I am seeing this error all over the
>> place in my log files..
>>
>> [ERROR] 21:44:24 CryptedUrlWebRequestCodingStrategy - Invalid URL:
>>
>> foo/?x=kSQEmQImbZiH47lvkBIVh0gnXDVDx7-UQqHufLUVx5IVu10xEJYI8UXQ2B0gQCTDdAzJ7rUByXI
>> org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
>> '�$^D�^B&m���o�^R^U�H'\5Cǿ�B��|�^Uǒ^U�]1^P�^H�E��^] @$�t^L��^A�r'
>>at
>>
>> org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
>>at
>>
>> org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
>>at
>>
>> org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:250)
>>at
>>
>> org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
>>at org.apache.wicket.Request.getRequestParameters(Request.java:171)
>>at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
>>at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>>at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>>at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>>at
>> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
>>
>> Anyone have any ideas what in the world is causing the jibberish?  I am
>> using JDK 6 and Wicket 1.3.5.
>>
>> Thanks,
>>
>> Andrew
>>
>


Re: Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-17 Thread Ernesto Reinaldo Barreiro
Hi Graeme,

On Mon, Nov 17, 2008 at 2:58 PM, Graeme Knight <[EMAIL PROTECTED]> wrote:

>
> Hi.
>
> Thanks for that. I was worried about removing behaviors - but thanks for
> the
> information.


You are welcome!


>
>
> I'm going to look at how easy it is to change time on an
> AjaxSelfUpdatingTimerBehavior?
>

I don't remember if I have tried that. I remember I tried removing
the AjaxSelfUpdatingTimerBehavior and then got some error on IE (was sending
back a request to the non-existing behavior). So I started playing with it
till I discovered that recreating the behavior and putting a long refreshing
time "fixed" this (100 seconds was long enough for me because the content
fetch from the server was small enough, but maybe I should make it
bigger;-). So,  there should be a better solution... as this looks like a
"hack".  I didn't spend much time investigating what was going on wrong...



> I need a poll anyway so I am thinking of polling once every five minutes
> and
> then when the refresh is occurring I can poll evey 5 seconds, then when
> finished - back to five minutes...
>
> Cheers, Graeme.
>
>
Cheers,

Ernesto


> reiern70 wrote:
> >
> > Hi Graeme,
> > I don't know if what follows is the best way...   but when I export a
> file
> > on my applications sometimes I want to display a progress bar to give
> > users
> > some feed back... I have done the following:
> >
> >
> > public abstract class DefaultExportPanel extends Panel {
> >
> > /**
> >  *
> >  */
> > private static final long serialVersionUID = 1L;
> >
> > private AbstractExportDialogButton button;
> >  private WebMarkupContainer progress;
> >  /**
> >  * @param id
> >  */
> > public DefaultExportPanel(String id, AbstractExportDialogButton button) {
> > super(id);
> > this.button = button;
> > setOutputMarkupId(true);
> > }
> >  @Override
> > protected void onBeforeRender() {
> > if(!this.button.getExportTask().isFinished()) {
> > for(Object behavior : getBehaviors()) {
> > if(behavior instanceof AjaxSelfUpdatingTimerBehavior) {
> > remove((AjaxSelfUpdatingTimerBehavior)behavior);
> > }
> > }
> > add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)));
> > progress = new ProgressReportPanel("progress",
> > DefaultExportPanel.this.button.getExportTask().getProgressReporter());
> > addOrReplace(progress);
> >  } else {
> > for(Object behavior : getBehaviors()) {
> > if(behavior instanceof AjaxSelfUpdatingTimerBehavior) {
> > remove((AjaxSelfUpdatingTimerBehavior)behavior);
> > }
> > }
> > add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(100)));
> > progress = new DownLoadExportPanel("progress",
> > this.button.getExportTask().getFile()) {
> >  private static final long serialVersionUID = 1L;
> >
> > @Override
> > public String getContentType() {
> > return DefaultExportPanel.this.getContentType();
> > }
> >  @Override
> > public String getMessage() {
> > return DefaultExportPanel.this.getDowloadMessage();
> > }
> > };
> > progress.setOutputMarkupId(true);
> > addOrReplace(progress);
> > }
> > super.onBeforeRender();
> > }
> >  public abstract String getContentType();
> >  public abstract String getDowloadMessage();
> >
> > }
> >
> > and the corresponding markup:
> >
> > 
> > 
> > 
> >
> > 
> > 
> > 
> >  
> >  
> >  
> > 
> > 
> >
> > The part:
> >
> > add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(100)));
> > progress = new DownLoadExportPanel("progress",
> > this.button.getExportTask().getFile()) {
> >  private static final long serialVersionUID = 1L;
> >
> > @Override
> > public String getContentType() {
> > return DefaultExportPanel.this.getContentType();
> > }
> >  @Override
> > public String getMessage() {
> > return DefaultExportPanel.this.getDowloadMessage();
> > }
> > };
> > progress.setOutputMarkupId(true);
> >
> > after removing the behaviors I had to add it because otherwise I would
> get
> > an exception when using  IE... I know this works, or is working  for me
> > with
> > the snapshot of 1.4.X  branch I use, but I'm not sure if its the best way
> > to
> > achieve this...
> >
> > Best,
> >
> > Ernesto
> >
> > On Sun, Nov 16, 2008 at 10:54 PM, Graeme Knight
> > <[EMAIL PROTECTED]>wrote:
> >
> >>
> >> Oh. I'm wondering: https://issues.apache.org/jira/browse/WICKET-1525
> >>
> >> Perhaps there is another way?
> >>
> >>
> >> Graeme Knight wrote:
> >> >
> >> > Maybe I'm trying to do something silly. Is there an alternative?
> >> >
> >> >
> >> > Graeme Knight wrote:
> >> >>
> >> >> Hi.
> >> >>
> >> >> What's the best way of achieving this effect:
> >> >>
> >> >> 1) Button is pressed to start a process.
> >> >> 2) Updating of various panels contained within a WebMarkupContainer
> >> >> occurs on a 5 second period.
> >> >> 3) Process stops and updating of WebMarkupContainer also stops.
> >> >>
> >> >> I understand the use of AjaxSelfUpdatingTimerBehavior - this really
> is
> >> a
> >> >> question of the best way to add/remove from the WebMarkupContainer 

Re: Unable to load Wicket app in hosting provider

2008-11-17 Thread Igor Vaynberg
there is always the wicket servlet you can use instead of the filter.

-igor

On Mon, Nov 17, 2008 at 5:41 AM, moraleslos <[EMAIL PROTECTED]> wrote:
>
> I gave two things a shot and they both don't work.
>
> 1) I changed my context root of my Wicket application to /xyz (instead of
> the default /) and I put an index.html file in my root that looks like this:
>
> 
> 
> 
> XYZ
> http://www.xyz.com/xyz";>
> 
> 
>
> The site reads my index.html properly and redirects, but redirects to a 404
> error page.
>
> 2) I uploaded the entire wicket_in_action_0.9 war file under the context
> root /wicket_in_action.  When I type www.xyz.com/wicket_in_action, I get a
> 404 because it tries to redirect me to www.xyz.com/wicket_in_action/app
> (which is correct since the default index.html file uses the same refresh
> technique but to /app which does not exist).  Now if I type in this
> directly: http://www.xyz.com/wicket_in_action/home, I also get a 404 error.
>
> From the above, it seems to me that the Java hosting site's Tomcat is not
> able to load any Wicket-based app probably due to not being able to
> understand and/or load the Wicket filter defined in the web.xml file.
> Regardless if I have a static default page (index.html) that redirects to a
> Wicket URL will not work.
>
> Any other ideas I may try out before giving up?  Thanks!
>
> -los
>
>
> igor.vaynberg wrote:
>>
>> you just need a file named index.html in your /xyz dir
>>
>> -igor
>>
>> On Sun, Nov 16, 2008 at 5:01 PM, moraleslos <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi,
>>>
>>> Thanks for the reply.  I'm a bit confused on how to write the index.html.
>>> So, let's say my godaddy directory structure looks like this:
>>>
>>> /
>>> /xyz
>>> /xyz/WEB-INF
>>> /xyz/WEB-INF/web.xml
>>> /xyz/WEB-INF/classes/com/xyz/Index.html
>>> /xyz/WEB-INF/classes/com/xyz/Index.class
>>> ...
>>>
>>> In my web.xml looks like this:
>>>
>>> >>version="2.4"
>>>xmlns="http://java.sun.com/xml/ns/j2ee";
>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>>>
>>>xyz
>>>
>>>configuration
>>>deployment
>>>
>>>
>>>wicket.xyz
>>>
>>> org.apache.wicket.protocol.http.WicketFilter
>>>
>>>applicationClassName
>>>com.xyz.XyzApplication
>>>
>>>
>>>
>>>wicket.xyz
>>>/*
>>>
>>> 
>>>
>>>
>>> So how do I write the index.html that's going to be in the root directory
>>> to
>>> invoke Wicket's Index.html under /xyz/WEB-INF/classes/com/xyz/Index.html?
>>> Thanks!
>>>
>>> -los
>>>
>>>
>>> Martijn Dashorst wrote:

 so your wicket filter would service all requests going to:

 http://godaddy.com/myapplication/app

 or, you could still keep the filter mapping to /* but redirect to your
 mounted homepage with mount name "home" or something similar.

 Martijn

 On Mon, Nov 17, 2008 at 1:40 AM, Martijn Dashorst
 <[EMAIL PROTECTED]> wrote:
> mount the wicket filter under context root app and tell the index.html
> to redirect to that url with a pragma header.
>
> Martijn
>
> On Mon, Nov 17, 2008 at 1:10 AM, moraleslos <[EMAIL PROTECTED]>
> wrote:
>>
>> Ok,
>>
>> Finally talked to someone at GoDaddy who gave me some advice.  With
>> their
>> Java hosting, it seems that they force Tomcat to look for a default
>> file
>> (e.g. index.html) at the root directory.  Since I don't have one (all
>> of
>> my
>> files are under WEB-INF/classes/...), I get the 403 error.
>>
>> Now here's the question.  How do I write up a default index.html file
>> and
>> place this in the root directory such that it will "start" up the
>> Wicket
>> filter in the web.xml file and run the Wicket application
>> appropriately?
>> Again, my actual Index.html, and hence it's Index.class, is packaged
>> under
>> the WEB-INF/classes/... directory.  Thanks!
>>
>> -los
>>
>>
>>
>> Erik van Oosten wrote:
>>>
>>> Maybe this helps. I've found that you need to start Tomcat from a
>>> directory that is writable for the user you are using (no idea why
>>> though). Besides the application log, you should also check Tomcat's
>>> log
>>> files.
>>>
>>> Good luck,
>>> Erik.
>>>
>>> moraleslos wrote:
 Hi,

 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out
 GoDaddy's
 Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same
 setup
 on
 my box and deploying my Wicket 1.3.4-based applicat

Re: Wicket 1.4 Generics, DefaultDataTable and ChoiceFilteredPropertyColumn

2008-11-17 Thread Igor Vaynberg
please open a jira issue.

-igor

On Mon, Nov 17, 2008 at 4:44 AM, Dylan Schell <[EMAIL PROTECTED]> wrote:
>
> When trying to use the DefaultDataTable in combination i'm running into what 
> I think is a "bug" in the generification of ChoiceFilteredPropertyColumn,
>
> DefaultDataTable is parameterized with type  and the constructor expects 
> IColumn for it's column types. if I try to parameterize 
> ChoiceFilteredPropertyColumn with type  the elements I can choose from 
> also have to be of that same type. Should ChoiceFilteredPropertyColumn be 
> parameterized with 2 types? one for the column, one for the choice elements?
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Getting Panel body content

2008-11-17 Thread Igor Vaynberg
instead of wicket:message add a label and whatever model you want.
that gives you full control over the text.

-igor

On Mon, Nov 17, 2008 at 1:34 AM, jensiator <[EMAIL PROTECTED]> wrote:
>
> Hi
> I've created a Panel that I would like to act as a AjaxLink in the markup. I
> would like to be able to add a  tag in the body content of
> the panel and get hold of it in the panel java code before the body content
> is replaced. Can this be done?
> Jens
> --
> View this message in context: 
> http://www.nabble.com/Getting-Panel-body-content-tp20536289p20536289.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Getting Panel body content

2008-11-17 Thread Jim Pinkham
Jens,

You could try using a Label instead and process the msg=getString("msgkey")
in it's model.

-- Jim.

On Mon, Nov 17, 2008 at 4:34 AM, jensiator <[EMAIL PROTECTED]> wrote:

>
> Hi
> I've created a Panel that I would like to act as a AjaxLink in the markup.
> I
> would like to be able to add a  tag in the body content of
> the panel and get hold of it in the panel java code before the body content
> is replaced. Can this be done?
> Jens
> --
> View this message in context:
> http://www.nabble.com/Getting-Panel-body-content-tp20536289p20536289.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Page references and serialization

2008-11-17 Thread Matej Knopp
Not really
if PageA refrences PageB, and PageB references pageA
then during serialization of PageA we should detect circular reference
and only serialize PageA once. Also PageA serialization data should
only contain placeholder of PageB, not the pageB itself.

-Matej

On Mon, Nov 17, 2008 at 9:45 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> this is exactly how we want it to happen.
>
> On Sun, Nov 16, 2008 at 9:24 PM, Mikko Pukki <[EMAIL PROTECTED]>wrote:
>
>> Hi,
>>
>> I tried to recreate similar situation where Page A has a link to PageB
>> and PageB holds a reference to PageA. I got similar result with as
>> Cristiano.
>> though I only tried Wicket 1.3.5.
>>
>> PageA is serialized twice and pageId, versionNumber and ajaxVersionNumber
>> are same with two instances of PageA (I put a breakpoint and checked
>> contents
>> of List "pages" on DiskPageStore line 961). Field "data" was also
>> identical.
>>
>> Also on line 246:
>> channel.write(ByteBuffer.wrap(page.getData()), window.getFilePartOffset());
>>
>> PageA is written to channel twice with identical content.
>>
>>
>> Hope this helps.
>>
>> Regards,
>> Mikko Pukki
>>
>> -Original Message-
>> From: Johan Compagner [mailto:[EMAIL PROTECTED]
>> Sent: 14. marraskuuta 2008 21:10
>> To: users@wicket.apache.org
>> Subject: Re: Page references and serialization
>>
>> >Doesnt have to be  a bug, (it could be a new version of page a) but
>> >besides that dont we have a sliding window in the pagemap, so if page
>> >a is touched shouldnt it get its own new place in the file (more 2 the
>> >top) so that it doesnt get overwritten later on to early?
>> >
>> >On 11/14/08, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> >> That would be a bug then. What wicket version are you using?
>> >>
>> >> -Matej
>> >>
>> >> On Fri, Nov 14, 2008 at 4:11 PM, Cristiano Kliemann
>> >> <[EMAIL PROTECTED]> wrote:
>> >>> Martijn,
>> >>>
>> >>> I'm pretty sure it is serializing PageA again. I've put some
>> breakpoints
>> >>> to
>> >>> confirm it (at DiskPageStore.PageSavingThread.run()). Also, the growt
>> rate
>> >>> of the page store indicates that.
>> >>>
>> >>< The test I've run:
>> >>>
>> >>> PageA has one simple link (to do some stuff and go to PageB) and a byte
>> >>> array with 25KB.
>> >>> PageB has another link (to go back to PageA instance), the reference to
>> >>> PageA and a byte array of 10KB.
>> >>>
>> >>> After PageA is first serialized, the page store goes from nothing to
>> about
>> >>> 27KB. When PageB is serialized, it goes to about 64KB, a 37KB
>> difference.
>> >>>
>> >>> Testing the same thing but letting the reference to PageA null makes a
>> lot
>> >>> of difference. When PageB is serialized, the page strore it grows from
>> >>> 27KB
>> >>> to just 38KB (a 11KB difference).
>> >>>
>> >>> -Cristiano
>> >>>
>> >>>
>> >>> 2008/11/14 Martijn Dashorst <[EMAIL PROTECTED]>
>> >>>
>>  iirc Wicket serialization is smart enough to discover that PageA
>>  should not be serialized as part of PageB, but instead will replace it
>>  with a reference to PageA's serialized instance.
>> 
>>  Martijn
>> 
>>  On Fri, Nov 14, 2008 at 7:15 AM, Igor Vaynberg <
>> [EMAIL PROTECTED]>
>>  wrote:
>>  > if you are using 1.4rc1 there is no need to pass page references
>>  > anymore. see Page#getPageId() and requestcycle.urlfor(pageid)
>>  >
>>  > -igor
>>  >
>>  > On Thu, Nov 13, 2008 at 6:20 PM, Cristiano Kliemann
>>  > <[EMAIL PROTECTED]> wrote:
>>  >> Hi!
>>  >>
>>  >> Some questions about Wicket serialization...
>>  >>
>>  >> Let's say I have two pages, A and B, and page B holds a reference
>> to
>>  page A.
>>  >> First, an instance of page A is rendered and gets serialized by
>>  >> Wicket.
>>  Then
>>  >> the user clicks on a button that creates an instance of page B,
>> sets a
>>  >> reference to the current page A and executes setCurrentPage using
>> page
>>  >> B
>>  as
>>  >> the response page, like the following:
>>  >>
>>  >> PageB b = new PageB();
>>  >> b.setPageA(this);
>>  >> setResponsePage(b);
>>  >>
>>  >> The first question is: when the page B gets serialized, Wicket
>>  serializes
>>  >> the instance of page A again, right? If several of my pages need to
>>  >> hold
>>  >> references to other pages, the page store gets very big. I know
>> that
>>  Wicket
>>  >> must serialize the same instance again because one of its
>> attributes
>>  might
>>  >> have been changed.
>>  >>
>>  >> In my application, sometimes I need to hold references to the page
>>  >> that
>>  >> originated certain operations. Later, the user has the option to go
>>  >> back
>>  to
>>  >> that page. The 'problem' is that the originated page gets
>> serialized
>>  >> all
>>  the
>>  >> time, and I don't need that. It gets worse when I have a chain of
>>  >> references.
>>  >>
>> 

Re: Problem with Crypted URL

2008-11-17 Thread Johan Compagner
>
>
>
> > I already changed the handling of that in trunk so that now a page
> expired
> > is thrown when that happens.
>
> johan when did you exactly change that?  does it also impact my issue?


dont know exactly but it is in M1 and the current trunk of 1.3


You dont have it yet if you are on august code

it doesnt really affect, because if you dont use crypted you would get a
page expired because if an encrypted
url cant be decrypted because of a new session then the page cant be found
either when it was not encrypted

Except maybe the stateless forms.. i think we need to look at that a bit


johan


Use a Model as object for AjaxEditableLabel

2008-11-17 Thread Daniele Dellafiore
Hi all.

AjaxEditableLabel wants that the object has the setter for the
property to allow the switch to Text Editor.
If I use a Model it works while reading value but does not switch to
text editor, I suppose couse it does not found the setter.

Wicket have a mechanism in PropertyModel accessors that allow to
bypass the modelObject if is of a Model class and go looking for the
property in the undelying class.
Is possible to obtain the same mechanism also on the AjaxEditable* family?

Thanks.

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: Loosing page parameters after submit

2008-11-17 Thread Igor Vaynberg
your complaint is not that you are losing page parameters, but that
you are losing the url. thats just how wicket works...

-igor

On Mon, Nov 17, 2008 at 12:40 AM, Enes Fazli <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> following situation:
>
> I have a comment panel with a form and a paging navigator to show the
> comments. I implemented a own version of the PagingNavigator which uses
> BookmarkablePageLinks for navigation links. Now, if i use this panel in a
> page that has this url *http://localhost/sample//test/* the link to the
> second page of the PagingNavigator has a url according to that *
> http://localhost/sample//test/?commentspage=2*
>
> If I now submit a comment the url to the second page of the PagingNavigator
> changes to: *https://localhost:8443/sample/?commentspage=2
>
> *My workaround at the moment is to set the response page in the form's
> submit to the sample page with it's parameters. But I would have to do it
> for every submitting panel in that page. I hope someone can give me a hint
> on to why I lose the page parameters on submit.*
> *
> *For the sake of completeness:*
> The page in which the Panel is embedded is mounted with a custom
> UrlCodingStrategy which is a non versioned HybridUrlCodingStrategy extended
> with the possibility to add mixed parameters.
>
> I already tried other UrlCodingStrategies but that changed nothing.
>
> Thanks,
>
> Enes
>

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



Re: mounts and resources

2008-11-17 Thread Craig Tataryn
Sorry, for the late response.  The premise is there are two sections  
to the site.  There is the "static section" which lives at / and the  
dynamic section that lives at /foo (controlled by wicket).  Normally  
you would just tell the container to mount the webapp to /foo and call  
it a day, but unfortunately there are two pages of .html that need to  
have some wicket and *logically* they belong in the root, not in foo.   
The rest of the root files are completely static and dished up  
directly by apache.


It's desirable to keep those two dynamic pages in / and thus have all  
their links relative to /.  My friend thought (as did I) he could do  
that by mounting the wicket webapp to / and using WebApplication's  
mount() to mount the two root pages to /PageName.html, and the rest of  
the pages from the app to /foo/PageName.html.  I know it looks like a  
bit of a screwed up situation, but it's a more of a logical thing for  
the designers (how the site is layed out logically).  The two of the  
pages really do belong in /, the rest of the site under /foo.


To answer your question, when he uses wicket to mount foo/ 
HomePage.html, inside the page there is a link to myimage.jpg"/> that gets rewritten to ../images/myimage.jpg, which is  
undesirable from his perspective.


Craig.

On 11-Nov-08, at 10:05 PM, Johan Compagner wrote:


I think that is what happens.
If pages are mounted we will fix the images so that they are not
screwed up because of the mount. What is ecactly in the html? I guess
../images/xxx right?

On 11/11/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

wicket should be rewriting static urls for you so it should work
transparently. what usecase exactly does not work?

-igor

On Mon, Nov 10, 2008 at 5:22 PM, Craig Tataryn  
<[EMAIL PROTECTED]> wrote:

If one were to mount a page like so:

mount(new
QueryStringUrlCodingStrategy("foo/HomePage.html",HomePage.class));

How would you go about having it so resources referenced in  
HomePage.html

are relative to foo/ and not /?  So if there was an src="images/myimage.jpg" /> inside HomePage.html, currently the  
server

would
get a request for /images/myimage.jpg, whereas  
the

goal
is to have it requested as /foo/images/ 
myimage.jpg.


Thought  would do the trick, but it didn't seem  
to.



Craig.

--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: [EMAIL PROTECTED], skype: craig.tataryn


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




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




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



--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: [EMAIL PROTECTED], skype: craig.tataryn


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



Two wicket apps

2008-11-17 Thread Anatoly Kupriyanov
I have two wicket apps: main site and admin site. I want to use them
both from one web.xml
I made:

wicket

org.apache.wicket.protocol.http.WicketFilter


applicationFactoryClassName


org.apache.wicket.spring.SpringWebApplicationFactory



applicationBean
wicketApplication




wicketAdmin

org.apache.wicket.protocol.http.WicketFilter


applicationFactoryClassName


org.apache.wicket.spring.SpringWebApplicationFactory



applicationBean
wicketAdminApplication


...

wicketAdmin
/admin/*


wicket
/*


all works fine, except mounted pages. In admin application I'll do
mountBookmarkablePage("thePage",  ThePage.class) and I get wicket 404
error: NOT_FOUND RequestURI=/site/admin/thePage. As I understand, the
wicket "mounter" expects the page mounted on "admin/thePage", but not
just "thePage". What can I do to avoid explicit url-pattern mapping
part in mounted page url?

-- 
WBR, kan.

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



Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-17 Thread dukehoops

Timo,

Thanks for your reply. But shouldn't the headers I listed disable caching
already? Re-pasting below:
Here are A's initial response headers:
Server Apache-Coyote/1.1
Cache-Control no-cache, max-age=0, must-revalidate
Pragma no-cache
Content-Type text/html;charset=UTF-8
Content-Language en-US
Content-Length 13209 


Timo Rantalaiho wrote:
> 
> On Fri, 14 Nov 2008, dukehoops wrote:
>> -user clicks browser back button and lands on A without server being hit
>> at
>> all.
>> 
>> At this point I expected browser to issue GET /A and A's onBeforeRender
>> to
>> run. is my expectation correct? If not, what is the expected behavior.
>> 
>> The reason for my question, is that I want to prevent user from
>> "back"-ing
>> to A once on B. So I wanted to use A's onBeforeRender to evaluate state
>> and
>> redirect someplace else. If my expectation above is incorrect, could
>> someone
>> suggest a better approach?
> 
> That behaviour depends on the browser caching behaviour. 
> Some brosers on some settings get page A from their cache, 
> in which case the server is not being hit.
> 
> You might get it to work by adding non-caching HTTP headers
> on page A.
> 
> Best wishes,
> Timo
> 
> -- 
> Timo Rantalaiho   
> Reaktor Innovations Oyhttp://www.ri.fi/ >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/browser-back-button---shouldn%27t-onBeforeRender%28%29-execute--tp20508047p20544691.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Two wicket apps

2008-11-17 Thread Igor Vaynberg
you have to tell the admin filter where it is mounted. see
wicket-examples - each example is a separate app and there mounts work
fine.

-igor

On Mon, Nov 17, 2008 at 9:41 AM, Anatoly Kupriyanov <[EMAIL PROTECTED]> wrote:
> I have two wicket apps: main site and admin site. I want to use them
> both from one web.xml
> I made:
>
>wicket
>
>org.apache.wicket.protocol.http.WicketFilter
>
>
>applicationFactoryClassName
>
>
> org.apache.wicket.spring.SpringWebApplicationFactory
>
>
>
>applicationBean
>wicketApplication
>
>
>
>
>wicketAdmin
>
>org.apache.wicket.protocol.http.WicketFilter
>
>
>applicationFactoryClassName
>
>
> org.apache.wicket.spring.SpringWebApplicationFactory
>
>
>
>applicationBean
>wicketAdminApplication
>
>
> ...
>
>wicketAdmin
>/admin/*
>
>
>wicket
>/*
>
>
> all works fine, except mounted pages. In admin application I'll do
> mountBookmarkablePage("thePage",  ThePage.class) and I get wicket 404
> error: NOT_FOUND RequestURI=/site/admin/thePage. As I understand, the
> wicket "mounter" expects the page mounted on "admin/thePage", but not
> just "thePage". What can I do to avoid explicit url-pattern mapping
> part in mounted page url?
>
> --
> WBR, kan.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Bugs in wicket

2008-11-17 Thread TahitianGabriel

OK, thank you.
I was looking for it in the  wicket jira (not wicketstuff) :
http://issues.apache.org/jira/browse/WICKET.

I guess it's the right place to post it anyway...



jensiator wrote:
> 
> Cant find a bug number.  Heres the url.
> http://wicketstuff.org/jira/browse/WSCAL-4
> Jens
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bugs-in-wicket-tp20377171p20545182.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



wicket:link modify tags

2008-11-17 Thread DVD
Hello:


  


wicket replace 

Re: wicket:link modify tags

2008-11-17 Thread Igor Vaynberg
use a bookmarkablepagelink instead

-igor

On Mon, Nov 17, 2008 at 10:41 AM, DVD <[EMAIL PROTECTED]> wrote:
> Hello:
>
> 
>  
> 
>
> wicket replace  use getMarkupsetting.setDefaultDis  would not help.
>
> Would it be possible now to tell wicket not to modify/replace any tags/attrs 
> except
> href?
>
> This has been a headache for web designers to figure out what to do for the 
> changed tags.
>
> Thanks

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



RES: wicket:link modify tags

2008-11-17 Thread Bruno Cesar Borges
If wicket:link become smarter, people will ask for more and more features, and 
at the end, we will have a Tag Library... :-)

So please, if wicket:link doesn't assist you, go for Bookmarkable Links.

Cheers,
Bruno

-Mensagem original-
De: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 17 de novembro de 2008 16:48
Para: users@wicket.apache.org
Assunto: Re: wicket:link modify tags


use a bookmarkablepagelink instead

-igor

On Mon, Nov 17, 2008 at 10:41 AM, DVD <[EMAIL PROTECTED]> wrote:
> Hello:
>
> 
>  
> 
>
> wicket replace  use getMarkupsetting.setDefaultDis  would not help.
>
> Would it be possible now to tell wicket not to modify/replace any tags/attrs 
> except
> href?
>
> This has been a headache for web designers to figure out what to do for the 
> changed tags.
>
> Thanks

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

***
"Atenção: Esta mensagem foi enviada para uso exclusivo do(s) destinatários(s) 
acima identificado(s),
podendo conter informações e/ou documentos confidencias/privilegiados e seu 
sigilo é protegido por 
lei. Caso você tenha recebido por engano, por favor, informe o remetente e 
apague-a de seu sistema.
Notificamos que é proibido por lei a sua retenção, disseminação, distribuição, 
cópia ou uso sem 
expressa autorização do remetente. Opiniões pessoais do remetente não refletem, 
necessariamente, 
o ponto de vista da CETIP, o qual é divulgado somente por pessoas autorizadas."


"Warning: This message was sent for exclusive use of the addressees above 
identified, possibly 
containing information and or privileged/confidential documents whose content 
is protected by law. 
In case you have mistakenly received it, please notify the sender and delete it 
from your system. 
Be noticed that the law forbids the retention, dissemination, distribution, 
copy or use without 
express authorization from the sender. Personal opinions of the sender do not 
necessarily reflect 
CETIP's point of view, which is only divulged by authorized personnel."
***


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



Re: wicket:link modify tags

2008-11-17 Thread DVD
I understand. But there are so many such links which are what the 
wicket:link is for.
All that takes is for the autolink processing NOT to do extra modification 
of
the element except href, which is what autolink is supposed to behave (and 
only).
The extra replacement is nice to have but in many cases I have seen, it 
often
results in unexpected issues since people would expect it to only convert 
the href.



- Original Message - 
From: "Igor Vaynberg" <[EMAIL PROTECTED]>

To: 
Sent: Monday, November 17, 2008 1:48 PM
Subject: Re: wicket:link modify tags



use a bookmarkablepagelink instead

-igor

On Mon, Nov 17, 2008 at 10:41 AM, DVD <[EMAIL PROTECTED]> wrote:

Hello:


 


wicket replace Would it be possible now to tell wicket not to modify/replace any 
tags/attrs except

href?

This has been a headache for web designers to figure out what to do for 
the changed tags.


Thanks


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





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



Re: wicket:link modify tags

2008-11-17 Thread DVD

What I meant is for wicket:link NOT to be smarter, only convert the href.

BTW, I also encounter  that wicket:link would not work as it 
does seem to

to know anything about it.

- Original Message - 
From: "Bruno Cesar Borges" <[EMAIL PROTECTED]>

To: 
Sent: Monday, November 17, 2008 1:53 PM
Subject: RES: wicket:link modify tags


If wicket:link become smarter, people will ask for more and more features, 
and at the end, we will have a Tag Library... :-)


So please, if wicket:link doesn't assist you, go for Bookmarkable Links.

Cheers,
Bruno

-Mensagem original-
De: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 17 de novembro de 2008 16:48
Para: users@wicket.apache.org
Assunto: Re: wicket:link modify tags


use a bookmarkablepagelink instead

-igor

On Mon, Nov 17, 2008 at 10:41 AM, DVD <[EMAIL PROTECTED]> wrote:

Hello:


 


wicket replace Would it be possible now to tell wicket not to modify/replace any 
tags/attrs except

href?

This has been a headache for web designers to figure out what to do for 
the changed tags.


Thanks


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

***
"Atenção: Esta mensagem foi enviada para uso exclusivo do(s) 
destinatários(s) acima identificado(s),
podendo conter informações e/ou documentos confidencias/privilegiados e seu 
sigilo é protegido por
lei. Caso você tenha recebido por engano, por favor, informe o remetente e 
apague-a de seu sistema.
Notificamos que é proibido por lei a sua retenção, disseminação, 
distribuição, cópia ou uso sem
expressa autorização do remetente. Opiniões pessoais do remetente não 
refletem, necessariamente,
o ponto de vista da CETIP, o qual é divulgado somente por pessoas 
autorizadas."



"Warning: This message was sent for exclusive use of the addressees above 
identified, possibly
containing information and or privileged/confidential documents whose 
content is protected by law.
In case you have mistakenly received it, please notify the sender and delete 
it from your system.
Be noticed that the law forbids the retention, dissemination, distribution, 
copy or use without
express authorization from the sender. Personal opinions of the sender do 
not necessarily reflect

CETIP's point of view, which is only divulged by authorized personnel."
***


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



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



Re: Firefox 2.0.0.18

2008-11-17 Thread Cristi Manole
Hello,

In case somebody else hits the same wall, I wanna say that in my case it was
because of the RealPlayer Browser Record Plugin. Disabling / uninstalling it
on the client machines fixed things. (my applications were used in an
intranet).

Have a great day,
Cristi Manole

On Mon, Nov 17, 2008 at 10:25 AM, Cristi Manole <[EMAIL PROTECTED]>wrote:

> Hello,
>
> Thank you for your replies.
>
> The wicket versions I'm using for the applications are 1.3.0beta4, 1.3.1,
> 1.3.2. I know all of them are pretty old but so are the deployed
> applications. I have no wicket console available - I cannot put the
> applications in debug mode as those are already in production. No  errors
> are being displayed by firefox. It just doesn't work.
>
> I tried the link given by jWeekend and it works so I suspect theres a
> conflict with 2.0.0.18 the wicket versions I was using.
>
> Sorry for the lame way I asked the question yesterday but it was already
> very late here...
>
> Cristi Manole
>
>
> On Mon, Nov 17, 2008 at 1:44 AM, jWeekend <[EMAIL PROTECTED]>wrote:
>
>>
>> Cristi,
>>
>> We have just upgraded to 2.0.0.18 on one of our machines and all the AJAX
>> on
>> http://jweekend.com/dev/BookingPage/ this page  works fine.
>> Try that link and if it fails to work check Tools/Options/Content to
>> ensure
>> JavaScript is enabled.
>>
>> Regards - Cemal
>> http://www.jWeekend.co.uk http://jWeekend.co.uk
>>
>>
>>
>> Cristi Manole wrote:
>> >
>> > Hello,
>> >
>> > Since Firefox automatically updated to 2.0.0.18 every ajax I had in the
>> > application (for instance ajax link / button) stopped working if it
>> didn't
>> > have fallback.
>> >
>> > The applications I have are all in production so this is very annoying.
>> In
>> > Internet Explorer all work.
>> >
>> > Did anybody else experience this? Is there a workaround?
>> >
>> > Thank you,
>> > Cristi Manole
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Firefox-2.0.0.18-tp20531316p20531584.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


overLIB Integration...

2008-11-17 Thread James Carman
Would anyone be interested in a Wicket/overLIB integration library?
I've written one for work and wouldn't mind sharing it with folks.  It
makes it very easy to add overLIB stuff to components, using
behaviors...

component.add(new OverlibBehavior("This is my tooltip
text").sticky().forceClose().delay(250));

This would create a tooltip with the specified text that is "sticky"
and has to be closed.  It wouldn't show up for 250 milliseconds.  If
anyone's interested, I can put it in wicketstuff.

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



Re: overLIB Integration...

2008-11-17 Thread Marc Ende
Hi,

imho this would be a nice feature.

What about the mentioned constructor is it still
OverlibBehavior(String) or do you plan also
a OverlibBehavior(IModel)? It would be nice to
have such a constructor when the contents should
be loaded from a model.

Marc

James Carman schrieb:
> Would anyone be interested in a Wicket/overLIB integration library?
> I've written one for work and wouldn't mind sharing it with folks.  It
> makes it very easy to add overLIB stuff to components, using
> behaviors...
> 
> component.add(new OverlibBehavior("This is my tooltip
> text").sticky().forceClose().delay(250));
> 
> This would create a tooltip with the specified text that is "sticky"
> and has to be closed.  It wouldn't show up for 250 milliseconds.  If
> anyone's interested, I can put it in wicketstuff.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




signature.asc
Description: OpenPGP digital signature


Re: overLIB Integration...

2008-11-17 Thread Jeremy Thomerson
I also like the idea and would use it.

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

On Mon, Nov 17, 2008 at 3:58 PM, Marc Ende <[EMAIL PROTECTED]> wrote:

> Hi,
>
> imho this would be a nice feature.
>
> What about the mentioned constructor is it still
> OverlibBehavior(String) or do you plan also
> a OverlibBehavior(IModel)? It would be nice to
> have such a constructor when the contents should
> be loaded from a model.
>
> Marc
>
> James Carman schrieb:
>  > Would anyone be interested in a Wicket/overLIB integration library?
> > I've written one for work and wouldn't mind sharing it with folks.  It
> > makes it very easy to add overLIB stuff to components, using
> > behaviors...
> >
> > component.add(new OverlibBehavior("This is my tooltip
> > text").sticky().forceClose().delay(250));
> >
> > This would create a tooltip with the specified text that is "sticky"
> > and has to be closed.  It wouldn't show up for 250 milliseconds.  If
> > anyone's interested, I can put it in wicketstuff.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>


swarm & wicket 1.4

2008-11-17 Thread Marc Ende
Hi,

currently I'm using swarm securing some webpages build on wicket.
Now, that's wicket 1.4 is getting nearer, I would like to know if
there is something planned with swarm for wicket 1.4.

Do you know if it's compatible or is there a new release needed?

yours

Marc




signature.asc
Description: OpenPGP digital signature


Page Map File Sizes.

2008-11-17 Thread Graeme Knight

Hi. I hope this appropriate for this forum.

I am writing a fairly heavy AJAX rich application with two pages - A login
page and a work page. I was interested in progress so far regarding
serialized page state, so I tracked the size of my page map file as I
clicked around the application. Below is the size change in the file for my
single user. I would like to know if this is as expected as I have no
metrics from any other place - perhaps you have experience.

Each value is the size of the page file in kilobytes after each click of a
link:

5.9
25.5
49.3
71.9
95.7
116.4
140.2  < so I see my page map file is growing as I assumed
it would.

My file therefore changed by the following amount each click, indicating
that my page is around the 22 kilobyte mark:

19.6
23.8
22.6
23.8
20.7
23.8

Does this sound about right? Is there something wrong with the growth of the
file? Is it excessive? 

When does the file cleanup?

Thanks for any input, Graeme.
-- 
View this message in context: 
http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20551680.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: overLIB Integration...

2008-11-17 Thread James Carman
On Mon, Nov 17, 2008 at 4:58 PM, Marc Ende <[EMAIL PROTECTED]> wrote:
> Hi,
>
> imho this would be a nice feature.
>
> What about the mentioned constructor is it still
> OverlibBehavior(String) or do you plan also
> a OverlibBehavior(IModel)? It would be nice to
> have such a constructor when the contents should
> be loaded from a model.

Great idea!  In our application (where I need it right now), we didn't
need to use models, but I can see how this would be a "wickety" way to
do it.  I'll incorporate it.  I'll try to get something up on
wicketstuff soon.  Glad to hear that it would be useful to other
folks.

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



Re: Page Map File Sizes.

2008-11-17 Thread Graeme Knight

I guess I can answer my own question:

So let's say our page is 50k. We have 1000 users on a server. With each user
having 100 click throughs before cleanup.

So I figure roughly (51200x100) * 1000 = 5,120,000,000

So 1000 users clicking 100 times each on a 50k page will take up 5 GB of
space.

The above scenario is pretty far fetched!

Does anyone know how page cleanup occurs?

Thanks, Graeme.


Graeme Knight wrote:
> 
> Hi. I hope this appropriate for this forum.
> 
> I am writing a fairly heavy AJAX rich application with two pages - A login
> page and a work page. I was interested in progress so far regarding
> serialized page state, so I tracked the size of my page map file as I
> clicked around the application. Below is the size change in the file for
> my single user. I would like to know if this is as expected as I have no
> metrics from any other place - perhaps you have experience.
> 
> Each value is the size of the page file in kilobytes after each click of a
> link:
> 
> 5.9
> 25.5
> 49.3
> 71.9
> 95.7
> 116.4
> 140.2  < so I see my page map file is growing as I assumed
> it would.
> 
> My file therefore changed by the following amount each click, indicating
> that my page is around the 22 kilobyte mark:
> 
> 19.6
> 23.8
> 22.6
> 23.8
> 20.7
> 23.8
> 
> Does this sound about right? Is there something wrong with the growth of
> the file? Is it excessive? 
> 
> When does the file cleanup?
> 
> Thanks for any input, Graeme.
> 

-- 
View this message in context: 
http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552286.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-17 Thread Ilja
Igor,I tried to make a quickstart but the latest wicket version available in
any of the quickstart downloads is 1.2.
Is there a quickstart for  rc1 somewhere?
I would try to make it work but work doesn't leave me a lot of time...
Ilja

On Sun, Nov 16, 2008 at 10:18 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:

> there are two ways to do this:
> a) there is wicket-quickstart project in svn which you can customize and
> zip.
> b) use maven. download and install maven, go to wicket.apache.org and
> find the quickstart page which will gen the command line necessary to
> let maven build the project. if this is the first time you run maven
> it might take a good while because it has to download a ton of
> dependencies.
>
> -igor
>
> On Sun, Nov 16, 2008 at 10:07 PM, Ilja <[EMAIL PROTECTED]> wrote:
> > Yeah... like I said before, I don't use Maven and you're probably talking
> > about a Maven QuickStart? Is that right?Can you give a few pointers on
> how
> > to do a QuickStart?
> > Is there anything on the web?
> > ilja
> >
> > On Sun, Nov 16, 2008 at 9:51 PM, Igor Vaynberg <[EMAIL PROTECTED]
> >wrote:
> >
> >> i guess then we need more info. if you can create a quickstart that
> >> would be optimal.
> >>
> >> -igor
> >>
> >> On Sun, Nov 16, 2008 at 9:28 PM, Ilja <[EMAIL PROTECTED]>
> wrote:
> >> > Igor, rc1 gives me the exact same problem m3 gave me...
> >> >
> >> > On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg <
> [EMAIL PROTECTED]
> >> >wrote:
> >> >
> >> >> rc1 is out, why dont you try with that.
> >> >>
> >> >> -igor
> >> >>
> >> >> On Sun, Nov 16, 2008 at 5:23 PM, Ilja <[EMAIL PROTECTED]>
> >> wrote:
> >> >> > P.S.By "my problem is solved" I mean, obviously, that I'll stick
> with
> >> m2
> >> >> for
> >> >> > the time being.
> >> >> > Didn't mean to sound like that is ideal, or that I'm not concerned
> >> that
> >> >> the
> >> >> > problem appears in m3.
> >> >> > Let me know if I can do anything to help out with that.
> >> >> > Cheers,
> >> >> > ilja
> >> >> >
> >> >> > On Sun, Nov 16, 2008 at 5:15 PM, Ilja <[EMAIL PROTECTED]>
> >> >> wrote:
> >> >> >
> >> >> >> You guys will want to know this:
> >> >> >> I figured that perhaps the problem lies with Wicket1.4-m3.
> >> >> >> So I swapped it out for Wicket1.4-m2.
> >> >> >> I did not change my code at all. I didn't change anything else.
> All I
> >> >> did
> >> >> >> was swap out the two Wicket versions.
> >> >> >>
> >> >> >> After I switched to Wicket1.4-m2, the page worked fine.
> >> >> >> The page is now not being re-constructed at every request and
> keeps
> >> >> state
> >> >> >> as expected.
> >> >> >>
> >> >> >> So, my problem is solved, but do you guys still want me to send
> you
> >> more
> >> >> >> info?
> >> >> >> I could switch back to m3 and send to the URLs that are being
> >> generated
> >> >> >> (Igor and Jeremy asked for that).
> >> >> >> I could still try and add a link to the page under m3 and see if
> that
> >> >> would
> >> >> >> make a difference (Igor asked for that).
> >> >> >>
> >> >> >> Jeremy's question about accidentally constructing the page myself
> or
> >> >> >> redirecting to it from my onSubmit() method has, I believe,
> answered
> >> >> itself
> >> >> >> (no to both).
> >> >> >>
> >> >> >> jWeekend, I assume you're talking about a Maven Quick Start - I
> don't
> >> >> use
> >> >> >> Maven (I know, I know, I should) but if that's something that can
> be
> >> >> done
> >> >> >> quickly and for which you could give me a pointer or two, I can
> try
> >> to
> >> >> do
> >> >> >> it. If you're still interested, that is.
> >> >> >>
> >> >> >> Let me know.
> >> >> >>
> >> >> >> Thanks to each of you for the help, I appreciate it!
> >> >> >>
> >> >> >> ilja
> >> >> >>
> >> >> >> On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson <
> >> >> >> [EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >>> Put a breakpoint in your constructor (sounds like you already
> have)
> >> and
> >> >> >>> see what's calling it. Is it possible that you're constructing
> the
> >> page
> >> >> >>> yourself (accidentally for a page link or something)?
> >> >> >>>
> >> >> >>> Also - what's the URL after you submit the form?  Are you
> >> redirecting
> >> >> to
> >> >> >>> the page in your onSubmit?
> >> >> >>>
> >> >> >>>
> >> >> >>> Jeremy Thomerson
> >> >> >>> http://www.wickettraining.com
> >> >> >>> -- sent from a wireless device
> >> >> >>>
> >> >> >>>
> >> >> >>> -Original Message-
> >> >> >>> From: Ilja <[EMAIL PROTECTED]>
> >> >> >>> Sent: Sunday, November 16, 2008 2:06 PM
> >> >> >>> To: users@wicket.apache.org
> >> >> >>> Subject: Re: Why is my page stateless, and how do I make it
> >> stateful?
> >> >> >>> (using Wicket 1.4-m3)
> >> >> >>>
> >> >> >>> Hi Igor, thanks for the response.
> >> >> >>> No, I don't mean when I press the refresh button. Here's exactly
> >> what
> >> >> >>> happens:
> >> >> >>>
> >> >> >>> - I type the URL into my browser. In my debugger, I can see that
> a
> >> new
> >> >> >>> page
> >> >> >>> is constructed (the page c

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-17 Thread Jeremy Thomerson
I wrote a tutorial today on how to create a quickstart.  See if this helps:
http://www.jeremythomerson.com/blog/2008/11/17/wicket-quickstart-tutorial

-- 
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Nov 17, 2008 at 8:41 PM, Ilja <[EMAIL PROTECTED]> wrote:

> Igor,I tried to make a quickstart but the latest wicket version available
> in
> any of the quickstart downloads is 1.2.
> Is there a quickstart for  rc1 somewhere?
> I would try to make it work but work doesn't leave me a lot of time...
> Ilja
>
> On Sun, Nov 16, 2008 at 10:18 PM, Igor Vaynberg <[EMAIL PROTECTED]
> >wrote:
>
> > there are two ways to do this:
> > a) there is wicket-quickstart project in svn which you can customize and
> > zip.
> > b) use maven. download and install maven, go to wicket.apache.org and
> > find the quickstart page which will gen the command line necessary to
> > let maven build the project. if this is the first time you run maven
> > it might take a good while because it has to download a ton of
> > dependencies.
> >
> > -igor
> >
> > On Sun, Nov 16, 2008 at 10:07 PM, Ilja <[EMAIL PROTECTED]>
> wrote:
> > > Yeah... like I said before, I don't use Maven and you're probably
> talking
> > > about a Maven QuickStart? Is that right?Can you give a few pointers on
> > how
> > > to do a QuickStart?
> > > Is there anything on the web?
> > > ilja
> > >
> > > On Sun, Nov 16, 2008 at 9:51 PM, Igor Vaynberg <
> [EMAIL PROTECTED]
> > >wrote:
> > >
> > >> i guess then we need more info. if you can create a quickstart that
> > >> would be optimal.
> > >>
> > >> -igor
> > >>
> > >> On Sun, Nov 16, 2008 at 9:28 PM, Ilja <[EMAIL PROTECTED]>
> > wrote:
> > >> > Igor, rc1 gives me the exact same problem m3 gave me...
> > >> >
> > >> > On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg <
> > [EMAIL PROTECTED]
> > >> >wrote:
> > >> >
> > >> >> rc1 is out, why dont you try with that.
> > >> >>
> > >> >> -igor
> > >> >>
> > >> >> On Sun, Nov 16, 2008 at 5:23 PM, Ilja <[EMAIL PROTECTED]>
> > >> wrote:
> > >> >> > P.S.By  "my problem is solved" I mean,
> obviously, that I'll stick
> > with
> > >> m2
> > >> >> for
> > >> >> > the time being.
> > >> >> > Didn't mean to sound like that is ideal, or that I'm not
> concerned
> > >> that
> > >> >> the
> > >> >> > problem appears in m3.
> > >> >> > Let me know if I can do anything to help out with that.
> > >> >> > Cheers,
> > >> >> > ilja
> > >> >> >
> > >> >> > On Sun, Nov 16, 2008 at 5:15 PM, Ilja <
> [EMAIL PROTECTED]>
> > >> >> wrote:
> > >> >> >
> > >> >> >> You guys will want to know this:
> > >> >> >> I figured that perhaps the problem lies with Wicket1.4-m3.
> > >> >> >> So I swapped it out for Wicket1.4-m2.
> > >> >> >> I did not change my code at all. I didn't change anything else.
> > All I
> > >> >> did
> > >> >> >> was swap out the two Wicket versions.
> > >> >> >>
> > >> >> >> After I switched to Wicket1.4-m2, the page worked fine.
> > >> >> >> The page is now not being re-constructed at every request and
> > keeps
> > >> >> state
> > >> >> >> as expected.
> > >> >> >>
> > >> >> >> So, my problem is solved, but do you guys still want me to send
> > you
> > >> more
> > >> >> >> info?
> > >> >> >> I could switch back to m3 and send to the URLs that are being
> > >> generated
> > >> >> >> (Igor and Jeremy asked for that).
> > >> >> >> I could still try and add a link to the page under m3 and see if
> > that
> > >> >> would
> > >> >> >> make a difference (Igor asked for that).
> > >> >> >>
> > >> >> >> Jeremy's question about accidentally constructing the page
> myself
> > or
> > >> >> >> redirecting to it from my onSubmit() method has, I believe,
> > answered
> > >> >> itself
> > >> >> >> (no to both).
> > >> >> >>
> > >> >> >> jWeekend, I assume you're talking about a Maven Quick Start - I
> > don't
> > >> >> use
> > >> >> >> Maven (I know, I know, I should) but if that's something that
> can
> > be
> > >> >> done
> > >> >> >> quickly and for which you could give me a pointer or two, I can
> > try
> > >> to
> > >> >> do
> > >> >> >> it. If you're still interested, that is.
> > >> >> >>
> > >> >> >> Let me know.
> > >> >> >>
> > >> >> >> Thanks to each of you for the help, I appreciate it!
> > >> >> >>
> > >> >> >> ilja
> > >> >> >>
> > >> >> >> On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson <
> > >> >> >> [EMAIL PROTECTED]> wrote:
> > >> >> >>
> > >> >> >>> Put a breakpoint in your constructor (sounds like you already
> > have)
> > >> and
> > >> >> >>> see what's calling it. Is it possible that you're constructing
> > the
> > >> page
> > >> >> >>> yourself (accidentally for a page link or something)?
> > >> >> >>>
> > >> >> >>> Also - what's the URL after you submit the form?  Are you
> > >> redirecting
> > >> >> to
> > >> >> >>> the page in your onSubmit?
> > >> >> >>>
> > >> >> >>>
> > >> >> >>> Jeremy Thomerson
> > >> >> >>> http://www.wickettraining.com
> > >> >> >>> -- sent from a wireless device
> > >> >> >>>
> > >> >> >>>
> > >> >> >>> -Original Message-

Re: Page Map File Sizes.

2008-11-17 Thread Matej Knopp
Hi,

the maximal file size of each pagemap file is configurable.

-Matej

On Tue, Nov 18, 2008 at 3:06 AM, Graeme Knight <[EMAIL PROTECTED]> wrote:
>
> I guess I can answer my own question:
>
> So let's say our page is 50k. We have 1000 users on a server. With each user
> having 100 click throughs before cleanup.
>
> So I figure roughly (51200x100) * 1000 = 5,120,000,000
>
> So 1000 users clicking 100 times each on a 50k page will take up 5 GB of
> space.
>
> The above scenario is pretty far fetched!
>
> Does anyone know how page cleanup occurs?
>
> Thanks, Graeme.
>
>
> Graeme Knight wrote:
>>
>> Hi. I hope this appropriate for this forum.
>>
>> I am writing a fairly heavy AJAX rich application with two pages - A login
>> page and a work page. I was interested in progress so far regarding
>> serialized page state, so I tracked the size of my page map file as I
>> clicked around the application. Below is the size change in the file for
>> my single user. I would like to know if this is as expected as I have no
>> metrics from any other place - perhaps you have experience.
>>
>> Each value is the size of the page file in kilobytes after each click of a
>> link:
>>
>> 5.9
>> 25.5
>> 49.3
>> 71.9
>> 95.7
>> 116.4
>> 140.2  < so I see my page map file is growing as I assumed
>> it would.
>>
>> My file therefore changed by the following amount each click, indicating
>> that my page is around the 22 kilobyte mark:
>>
>> 19.6
>> 23.8
>> 22.6
>> 23.8
>> 20.7
>> 23.8
>>
>> Does this sound about right? Is there something wrong with the growth of
>> the file? Is it excessive?
>>
>> When does the file cleanup?
>>
>> Thanks for any input, Graeme.
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552286.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Page Map File Sizes.

2008-11-17 Thread Graeme Knight

Thanks Matej!

That's awesome! I will look into it!

Regards, Graeme.


Matej Knopp-2 wrote:
> 
> Hi,
> 
> the maximal file size of each pagemap file is configurable.
> 
> -Matej
> 
> On Tue, Nov 18, 2008 at 3:06 AM, Graeme Knight <[EMAIL PROTECTED]>
> wrote:
>>
>> I guess I can answer my own question:
>>
>> So let's say our page is 50k. We have 1000 users on a server. With each
>> user
>> having 100 click throughs before cleanup.
>>
>> So I figure roughly (51200x100) * 1000 = 5,120,000,000
>>
>> So 1000 users clicking 100 times each on a 50k page will take up 5 GB of
>> space.
>>
>> The above scenario is pretty far fetched!
>>
>> Does anyone know how page cleanup occurs?
>>
>> Thanks, Graeme.
>>
>>
>> Graeme Knight wrote:
>>>
>>> Hi. I hope this appropriate for this forum.
>>>
>>> I am writing a fairly heavy AJAX rich application with two pages - A
>>> login
>>> page and a work page. I was interested in progress so far regarding
>>> serialized page state, so I tracked the size of my page map file as I
>>> clicked around the application. Below is the size change in the file for
>>> my single user. I would like to know if this is as expected as I have no
>>> metrics from any other place - perhaps you have experience.
>>>
>>> Each value is the size of the page file in kilobytes after each click of
>>> a
>>> link:
>>>
>>> 5.9
>>> 25.5
>>> 49.3
>>> 71.9
>>> 95.7
>>> 116.4
>>> 140.2  < so I see my page map file is growing as I
>>> assumed
>>> it would.
>>>
>>> My file therefore changed by the following amount each click, indicating
>>> that my page is around the 22 kilobyte mark:
>>>
>>> 19.6
>>> 23.8
>>> 22.6
>>> 23.8
>>> 20.7
>>> 23.8
>>>
>>> Does this sound about right? Is there something wrong with the growth of
>>> the file? Is it excessive?
>>>
>>> When does the file cleanup?
>>>
>>> Thanks for any input, Graeme.
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552286.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552886.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Page Map File Sizes.

2008-11-17 Thread Matej Knopp
Look at DiskPageStore constructor. But i think the defaults should be
sane enough for you usecase. Although 1000 concurrent users would IMHO
require quite a beefy server, on which 5gb pagestore should not be
problematic.

-Matej

On Tue, Nov 18, 2008 at 4:16 AM, Graeme Knight <[EMAIL PROTECTED]> wrote:
>
> Thanks Matej!
>
> That's awesome! I will look into it!
>
> Regards, Graeme.
>
>
> Matej Knopp-2 wrote:
>>
>> Hi,
>>
>> the maximal file size of each pagemap file is configurable.
>>
>> -Matej
>>
>> On Tue, Nov 18, 2008 at 3:06 AM, Graeme Knight <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> I guess I can answer my own question:
>>>
>>> So let's say our page is 50k. We have 1000 users on a server. With each
>>> user
>>> having 100 click throughs before cleanup.
>>>
>>> So I figure roughly (51200x100) * 1000 = 5,120,000,000
>>>
>>> So 1000 users clicking 100 times each on a 50k page will take up 5 GB of
>>> space.
>>>
>>> The above scenario is pretty far fetched!
>>>
>>> Does anyone know how page cleanup occurs?
>>>
>>> Thanks, Graeme.
>>>
>>>
>>> Graeme Knight wrote:

 Hi. I hope this appropriate for this forum.

 I am writing a fairly heavy AJAX rich application with two pages - A
 login
 page and a work page. I was interested in progress so far regarding
 serialized page state, so I tracked the size of my page map file as I
 clicked around the application. Below is the size change in the file for
 my single user. I would like to know if this is as expected as I have no
 metrics from any other place - perhaps you have experience.

 Each value is the size of the page file in kilobytes after each click of
 a
 link:

 5.9
 25.5
 49.3
 71.9
 95.7
 116.4
 140.2  < so I see my page map file is growing as I
 assumed
 it would.

 My file therefore changed by the following amount each click, indicating
 that my page is around the 22 kilobyte mark:

 19.6
 23.8
 22.6
 23.8
 20.7
 23.8

 Does this sound about right? Is there something wrong with the growth of
 the file? Is it excessive?

 When does the file cleanup?

 Thanks for any input, Graeme.

>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552286.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552886.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Page Map File Sizes.

2008-11-17 Thread Graeme Knight

I think you are right! Thanks once again!


Matej Knopp-2 wrote:
> 
> Look at DiskPageStore constructor. But i think the defaults should be
> sane enough for you usecase. Although 1000 concurrent users would IMHO
> require quite a beefy server, on which 5gb pagestore should not be
> problematic.
> 
> -Matej
> 
> On Tue, Nov 18, 2008 at 4:16 AM, Graeme Knight <[EMAIL PROTECTED]>
> wrote:
>>
>> Thanks Matej!
>>
>> That's awesome! I will look into it!
>>
>> Regards, Graeme.
>>
>>
>> Matej Knopp-2 wrote:
>>>
>>> Hi,
>>>
>>> the maximal file size of each pagemap file is configurable.
>>>
>>> -Matej
>>>
>>> On Tue, Nov 18, 2008 at 3:06 AM, Graeme Knight <[EMAIL PROTECTED]>
>>> wrote:

 I guess I can answer my own question:

 So let's say our page is 50k. We have 1000 users on a server. With each
 user
 having 100 click throughs before cleanup.

 So I figure roughly (51200x100) * 1000 = 5,120,000,000

 So 1000 users clicking 100 times each on a 50k page will take up 5 GB
 of
 space.

 The above scenario is pretty far fetched!

 Does anyone know how page cleanup occurs?

 Thanks, Graeme.


 Graeme Knight wrote:
>
> Hi. I hope this appropriate for this forum.
>
> I am writing a fairly heavy AJAX rich application with two pages - A
> login
> page and a work page. I was interested in progress so far regarding
> serialized page state, so I tracked the size of my page map file as I
> clicked around the application. Below is the size change in the file
> for
> my single user. I would like to know if this is as expected as I have
> no
> metrics from any other place - perhaps you have experience.
>
> Each value is the size of the page file in kilobytes after each click
> of
> a
> link:
>
> 5.9
> 25.5
> 49.3
> 71.9
> 95.7
> 116.4
> 140.2  < so I see my page map file is growing as I
> assumed
> it would.
>
> My file therefore changed by the following amount each click,
> indicating
> that my page is around the 22 kilobyte mark:
>
> 19.6
> 23.8
> 22.6
> 23.8
> 20.7
> 23.8
>
> Does this sound about right? Is there something wrong with the growth
> of
> the file? Is it excessive?
>
> When does the file cleanup?
>
> Thanks for any input, Graeme.
>

 --
 View this message in context:
 http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552286.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552886.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Page-Map-File-Sizes.-tp20551680p20552976.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-17 Thread jWeekend

Ilja,

I assumed that most people are using Quickstart - I find it very handy.
Take a look at  http://wicket.apache.org/quickstart.html this  or 
http://herebebeasties.com/2007-10-07/wicket-quickstart/ Al's screencast 
(which predates the command line generator).
It takes 2 minutes (plus dependency download time) to make your fully
functional skeleton Wicket project.
Remember to keep your example app as simple as possible - with just enough
functionality to demonstrate the issue you're facing.

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


Ilja-8 wrote:
> 
> Igor,I tried to make a quickstart but the latest wicket version available
> in
> any of the quickstart downloads is 1.2.
> Is there a quickstart for  rc1 somewhere?
> I would try to make it work but work doesn't leave me a lot of time...
> Ilja
> 
> On Sun, Nov 16, 2008 at 10:18 PM, Igor Vaynberg
> <[EMAIL PROTECTED]>wrote:
> 
>> there are two ways to do this:
>> a) there is wicket-quickstart project in svn which you can customize and
>> zip.
>> b) use maven. download and install maven, go to wicket.apache.org and
>> find the quickstart page which will gen the command line necessary to
>> let maven build the project. if this is the first time you run maven
>> it might take a good while because it has to download a ton of
>> dependencies.
>>
>> -igor
>>
>> On Sun, Nov 16, 2008 at 10:07 PM, Ilja <[EMAIL PROTECTED]>
>> wrote:
>> > Yeah... like I said before, I don't use Maven and you're probably
>> talking
>> > about a Maven QuickStart? Is that right?Can you give a few pointers on
>> how
>> > to do a QuickStart?
>> > Is there anything on the web?
>> > ilja
>> >
>> > On Sun, Nov 16, 2008 at 9:51 PM, Igor Vaynberg <[EMAIL PROTECTED]
>> >wrote:
>> >
>> >> i guess then we need more info. if you can create a quickstart that
>> >> would be optimal.
>> >>
>> >> -igor
>> >>
>> >> On Sun, Nov 16, 2008 at 9:28 PM, Ilja <[EMAIL PROTECTED]>
>> wrote:
>> >> > Igor, rc1 gives me the exact same problem m3 gave me...
>> >> >
>> >> > On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg <
>> [EMAIL PROTECTED]
>> >> >wrote:
>> >> >
>> >> >> rc1 is out, why dont you try with that.
>> >> >>
>> >> >> -igor
>> >> >>
>> >> >> On Sun, Nov 16, 2008 at 5:23 PM, Ilja <[EMAIL PROTECTED]>
>> >> wrote:
>> >> >> > P.S.By "my problem is solved" I mean, obviously, that I'll stick
>> with
>> >> m2
>> >> >> for
>> >> >> > the time being.
>> >> >> > Didn't mean to sound like that is ideal, or that I'm not
>> concerned
>> >> that
>> >> >> the
>> >> >> > problem appears in m3.
>> >> >> > Let me know if I can do anything to help out with that.
>> >> >> > Cheers,
>> >> >> > ilja
>> >> >> >
>> >> >> > On Sun, Nov 16, 2008 at 5:15 PM, Ilja
>> <[EMAIL PROTECTED]>
>> >> >> wrote:
>> >> >> >
>> >> >> >> You guys will want to know this:
>> >> >> >> I figured that perhaps the problem lies with Wicket1.4-m3.
>> >> >> >> So I swapped it out for Wicket1.4-m2.
>> >> >> >> I did not change my code at all. I didn't change anything else.
>> All I
>> >> >> did
>> >> >> >> was swap out the two Wicket versions.
>> >> >> >>
>> >> >> >> After I switched to Wicket1.4-m2, the page worked fine.
>> >> >> >> The page is now not being re-constructed at every request and
>> keeps
>> >> >> state
>> >> >> >> as expected.
>> >> >> >>
>> >> >> >> So, my problem is solved, but do you guys still want me to send
>> you
>> >> more
>> >> >> >> info?
>> >> >> >> I could switch back to m3 and send to the URLs that are being
>> >> generated
>> >> >> >> (Igor and Jeremy asked for that).
>> >> >> >> I could still try and add a link to the page under m3 and see if
>> that
>> >> >> would
>> >> >> >> make a difference (Igor asked for that).
>> >> >> >>
>> >> >> >> Jeremy's question about accidentally constructing the page
>> myself
>> or
>> >> >> >> redirecting to it from my onSubmit() method has, I believe,
>> answered
>> >> >> itself
>> >> >> >> (no to both).
>> >> >> >>
>> >> >> >> jWeekend, I assume you're talking about a Maven Quick Start - I
>> don't
>> >> >> use
>> >> >> >> Maven (I know, I know, I should) but if that's something that
>> can
>> be
>> >> >> done
>> >> >> >> quickly and for which you could give me a pointer or two, I can
>> try
>> >> to
>> >> >> do
>> >> >> >> it. If you're still interested, that is.
>> >> >> >>
>> >> >> >> Let me know.
>> >> >> >>
>> >> >> >> Thanks to each of you for the help, I appreciate it!
>> >> >> >>
>> >> >> >> ilja
>> >> >> >>
>> >> >> >> On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson <
>> >> >> >> [EMAIL PROTECTED]> wrote:
>> >> >> >>
>> >> >> >>> Put a breakpoint in your constructor (sounds like you already
>> have)
>> >> and
>> >> >> >>> see what's calling it. Is it possible that you're constructing
>> the
>> >> page
>> >> >> >>> yourself (accidentally for a page link or something)?
>> >> >> >>>
>> >> >> >>> Also - what's the URL after you submit the form?  Are you
>> >> redirecting
>> >> >> to
>> >> >> >>> the page in your onSubmit?
>> >> >> >>>
>> >> >> >>>
>> >> >>

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-17 Thread Ilja
I made a Quickstart, but I can't reproduce the problem... a I'll
play around with it.
Ilja

On Mon, Nov 17, 2008 at 7:47 PM, jWeekend <[EMAIL PROTECTED]>wrote:

>
> Ilja,
>
> I assumed that most people are using Quickstart - I find it very handy.
> Take a look at  http://wicket.apache.org/quickstart.html this  or
> http://herebebeasties.com/2007-10-07/wicket-quickstart/ Al's screencast
> (which predates the command line generator).
> It takes 2 minutes (plus dependency download time) to make your fully
> functional skeleton Wicket project.
> Remember to keep your example app as simple as possible - with just enough
> functionality to demonstrate the issue you're facing.
>
> Regards - Cemal
> http://www.jWeekend.co.uk http://jWeekend.co.uk
>
>
> Ilja-8 wrote:
> >
> > Igor,I tried to make a quickstart but the latest wicket version available
> > in
> > any of the quickstart downloads is 1.2.
> > Is there a quickstart for  rc1 somewhere?
> > I would try to make it work but work doesn't leave me a lot of time...
> > Ilja
> >
> > On Sun, Nov 16, 2008 at 10:18 PM, Igor Vaynberg
> > <[EMAIL PROTECTED]>wrote:
> >
> >> there are two ways to do this:
> >> a) there is wicket-quickstart project in svn which you can customize and
> >> zip.
> >> b) use maven. download and install maven, go to wicket.apache.org and
> >> find the quickstart page which will gen the command line necessary to
> >> let maven build the project. if this is the first time you run maven
> >> it might take a good while because it has to download a ton of
> >> dependencies.
> >>
> >> -igor
> >>
> >> On Sun, Nov 16, 2008 at 10:07 PM, Ilja <[EMAIL PROTECTED]>
> >> wrote:
> >> > Yeah... like I said before, I don't use Maven and you're probably
> >> talking
> >> > about a Maven QuickStart? Is that right?Can you give a few pointers on
> >> how
> >> > to do a QuickStart?
> >> > Is there anything on the web?
> >> > ilja
> >> >
> >> > On Sun, Nov 16, 2008 at 9:51 PM, Igor Vaynberg <
> [EMAIL PROTECTED]
> >> >wrote:
> >> >
> >> >> i guess then we need more info. if you can create a quickstart that
> >> >> would be optimal.
> >> >>
> >> >> -igor
> >> >>
> >> >> On Sun, Nov 16, 2008 at 9:28 PM, Ilja <[EMAIL PROTECTED]>
> >> wrote:
> >> >> > Igor, rc1 gives me the exact same problem m3 gave me...
> >> >> >
> >> >> > On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg <
> >> [EMAIL PROTECTED]
> >> >> >wrote:
> >> >> >
> >> >> >> rc1 is out, why dont you try with that.
> >> >> >>
> >> >> >> -igor
> >> >> >>
> >> >> >> On Sun, Nov 16, 2008 at 5:23 PM, Ilja <[EMAIL PROTECTED]
> >
> >> >> wrote:
> >> >> >> > P.S.By "my problem is solved" I mean, obviously, that I'll
> stick
> >> with
> >> >> m2
> >> >> >> for
> >> >> >> > the time being.
> >> >> >> > Didn't mean to sound like that is ideal, or that I'm not
> >> concerned
> >> >> that
> >> >> >> the
> >> >> >> > problem appears in m3.
> >> >> >> > Let me know if I can do anything to help out with that.
> >> >> >> > Cheers,
> >> >> >> > ilja
> >> >> >> >
> >> >> >> > On Sun, Nov 16, 2008 at 5:15 PM, Ilja
> >> <[EMAIL PROTECTED]>
> >> >> >> wrote:
> >> >> >> >
> >> >> >> >> You guys will want to know this:
> >> >> >> >> I figured that perhaps the problem lies with Wicket1.4-m3.
> >> >> >> >> So I swapped it out for Wicket1.4-m2.
> >> >> >> >> I did not change my code at all. I didn't change anything else.
> >> All I
> >> >> >> did
> >> >> >> >> was swap out the two Wicket versions.
> >> >> >> >>
> >> >> >> >> After I switched to Wicket1.4-m2, the page worked fine.
> >> >> >> >> The page is now not being re-constructed at every request and
> >> keeps
> >> >> >> state
> >> >> >> >> as expected.
> >> >> >> >>
> >> >> >> >> So, my problem is solved, but do you guys still want me to send
> >> you
> >> >> more
> >> >> >> >> info?
> >> >> >> >> I could switch back to m3 and send to the URLs that are being
> >> >> generated
> >> >> >> >> (Igor and Jeremy asked for that).
> >> >> >> >> I could still try and add a link to the page under m3 and see
> if
> >> that
> >> >> >> would
> >> >> >> >> make a difference (Igor asked for that).
> >> >> >> >>
> >> >> >> >> Jeremy's question about accidentally constructing the page
> >> myself
> >> or
> >> >> >> >> redirecting to it from my onSubmit() method has, I believe,
> >> answered
> >> >> >> itself
> >> >> >> >> (no to both).
> >> >> >> >>
> >> >> >> >> jWeekend, I assume you're talking about a Maven Quick Start - I
> >> don't
> >> >> >> use
> >> >> >> >> Maven (I know, I know, I should) but if that's something that
> >> can
> >> be
> >> >> >> done
> >> >> >> >> quickly and for which you could give me a pointer or two, I can
> >> try
> >> >> to
> >> >> >> do
> >> >> >> >> it. If you're still interested, that is.
> >> >> >> >>
> >> >> >> >> Let me know.
> >> >> >> >>
> >> >> >> >> Thanks to each of you for the help, I appreciate it!
> >> >> >> >>
> >> >> >> >> ilja
> >> >> >> >>
> >> >> >> >> On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson <
> >> >> >> >> [EMAIL PROTECTED]> wrote:

Re: Getting Panel body content

2008-11-17 Thread jensiator

Yes that is what I have done and after your comments I'll keep on doing that. 
The panel is a ConfirmButton. It contains a AjaxLink and a ModalWindow. When
pressing the button the modal will popup and ask for a confirmation and then
a the buttonpanel's abstract method onconfirmation will fire. The panels
constuctor is somethig like this: 
ConfirmButtonPanel(String pId,String pButtonLabelResourceKey,String
pModalTitleKey,String pModalMessageKey,DialogButtons.OKCANCEL). 

It works well but is it possible to do something like this only extending
AjaxLink? Because of the modalwindow I need to add a  in the markup somewhere and AjaxLink dont have any
markup beacuse its a component. Is it possibly to dynamically add a div with
wicket:id in the markupstream?
Jens Alenius


igor.vaynberg wrote:
> 
> instead of wicket:message add a label and whatever model you want.
> that gives you full control over the text.
> 
> -igor
> 
> On Mon, Nov 17, 2008 at 1:34 AM, jensiator <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi
>> I've created a Panel that I would like to act as a AjaxLink in the
>> markup. I
>> would like to be able to add a  tag in the body content
>> of
>> the panel and get hold of it in the panel java code before the body
>> content
>> is replaced. Can this be done?
>> Jens
>> --
>> View this message in context:
>> http://www.nabble.com/Getting-Panel-body-content-tp20536289p20536289.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-Panel-body-content-tp20536289p20554735.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Bugs in wicket

2008-11-17 Thread jensiator

oops. Missed that... 
I'll post there as well
Jens


TahitianGabriel wrote:
> 
> OK, thank you.
> I was looking for it in the  wicket jira (not wicketstuff) :
> http://issues.apache.org/jira/browse/WICKET.
> 
> I guess it's the right place to post it anyway...
> 
> 
> 
> jensiator wrote:
>> 
>> Cant find a bug number.  Heres the url.
>> http://wicketstuff.org/jira/browse/WSCAL-4
>> Jens
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bugs-in-wicket-tp20377171p20554803.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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