Re: Wicket GAE performance

2010-04-09 Thread Anton Veretennikov
I would like to comment that Objectify's documentation is very descriptive
about GAE Datastore - the art of writing good docs.
And i've started to use it very fast, thank you guys!

wicket-gae-template is a nice start point for wicket apps on gae using maven
http://code.google.com/p/wicket-gae-template/


-- Tony

On Thu, Apr 8, 2010 at 11:13 PM, Anton Veretennikov 
anton.veretenni...@gmail.com wrote:

 Very interesting, Jake, thank you, i'll look into it.
 I think i'm solving my problem just trying to modify the status of object
 inside a transaction - at the end it is throwing an exception that it can't
 commit. I'm testing if it really doing what i need.

 -- Tony


 On Wed, Apr 7, 2010 at 8:59 PM, jbrookover jbrooko...@cast.org wrote:


 Finally!  I've found others who are looking into Wicket on GAE.  :)

 Something else to look into, that is frequently mentioned on the GAE/J
 lists
 but not here, is Objectify - a very thin layer over the GAE datastore.  I
 was using JDO, PMF, etc and found Objectify to be a pretty easy switch.
 Also, in the process, I discovered several cases where JDO features were
 not implemented as I thought.  For example, I thought I could use JDO
 transactions to prevent race conditions in a case where two users were
 trying to create identical objects (when I only wanted one).  It turns out
 that may not be the case and I would need to manage the lock/permissions
 myself.

 See:

 http://groups.google.com/group/objectify-appengine/browse_thread/thread/d71889d94ebf8302

 Glad to find other GAE/Wicket users!

 Jake


 intmanch wrote:
 
  Hi all,
 
I've been actively using wicket on GAE for quite a lot of months
 and
  I
  love it, but I've quite serious performance problems. I already checked
  all
  the advices to speed up the performance but still is quite slow
 specially
  for some requests or opening a bookmarkable page. I don't know what to
 do,
  I
  use DataView, that it's quite performant, LoadableDetachableModels
  everywhere, session is ok in size, so I don't know if there is something
 I
  can tune on the RequestCycle servlet?
 
Thanks!
 
 

 --
 View this message in context:
 http://old.nabble.com/Wicket-GAE-performance-tp28118591p28164599.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





Re: Wicket GAE performance

2010-04-08 Thread Anton Veretennikov
Very interesting, Jake, thank you, i'll look into it.
I think i'm solving my problem just trying to modify the status of object
inside a transaction - at the end it is throwing an exception that it can't
commit. I'm testing if it really doing what i need.

-- Tony

On Wed, Apr 7, 2010 at 8:59 PM, jbrookover jbrooko...@cast.org wrote:


 Finally!  I've found others who are looking into Wicket on GAE.  :)

 Something else to look into, that is frequently mentioned on the GAE/J
 lists
 but not here, is Objectify - a very thin layer over the GAE datastore.  I
 was using JDO, PMF, etc and found Objectify to be a pretty easy switch.
 Also, in the process, I discovered several cases where JDO features were
 not implemented as I thought.  For example, I thought I could use JDO
 transactions to prevent race conditions in a case where two users were
 trying to create identical objects (when I only wanted one).  It turns out
 that may not be the case and I would need to manage the lock/permissions
 myself.

 See:

 http://groups.google.com/group/objectify-appengine/browse_thread/thread/d71889d94ebf8302

 Glad to find other GAE/Wicket users!

 Jake


 intmanch wrote:
 
  Hi all,
 
I've been actively using wicket on GAE for quite a lot of months
 and
  I
  love it, but I've quite serious performance problems. I already checked
  all
  the advices to speed up the performance but still is quite slow specially
  for some requests or opening a bookmarkable page. I don't know what to
 do,
  I
  use DataView, that it's quite performant, LoadableDetachableModels
  everywhere, session is ok in size, so I don't know if there is something
 I
  can tune on the RequestCycle servlet?
 
Thanks!
 
 

 --
 View this message in context:
 http://old.nabble.com/Wicket-GAE-performance-tp28118591p28164599.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Wicket GAE performance

2010-04-06 Thread Anton Veretennikov
Thank you very much, Ian, you clarified some things to me.

I'm trying to block some entity got for processing by one session from other
possibly concurrent session.
I know what i would do if it were RDBMS: lock my object with FOR UPDATE,
if success, i would check if status field is still what i assume it must be
and then update it to new status.

But i'm not sure yet how to do this in GAE.

-- Tony

On Tue, Apr 6, 2010 at 12:06 AM, Ian Marshall ianmarshall...@gmail.comwrote:


 Hello Tony,



 Anton Veretennikov wrote:
 
  This is a transaction of every session?
 

 I believe that there is some pooling of at least one of
 PersistenceManager[s] (PM[s]) and Transaction[s] (TX[s]). Nevertheless, the
 code extract I provided will yield a PM and TX unique to the thread (and
 therefore the request too in GAE/J) running that code. Your PM and TX will
 not leak to another request. I believe that the PersistenceManagerFactory
 (PMF) ensures this (if I am wrong, will someone please correct me).



 Anton Veretennikov wrote:
 
  If no, how may i handle this situation:
 
  When one user is accessing a page i must return data from one entity from
  the datastore, then close it from returning to any other users. What can
  be
  done here?
 
 Do you ask here How do I ensure that a user cannot see data 'belonging' to
 another user?

 Of course, your code will controls what data you exchange with the GAE
 datastore, so if it already ensures that some persistent entities are to be
 accessed by a specific user only, then this should continue. A different
 user calling your persistence code will have a different PM and TX; your
 user-specific data exchange should continue to be user-specific.

 Just ensure that the PMF is global to your Wicket application instance (a
 singleton only is required), and that your data exchange code gets, uses
 and
 closes PMs (using this PMF instance) as and when needed. As for
 transactions, the combination of what data exchange you perform, your JDO
 settings, and the GAE/J and DataNucleus documentation will determine
 whether
 you need to use a transaction.

 If I have not addressed your question Tony, would you please be so kind as
 to re-phrase it?

 Regards,

 Ian
 --
 View this message in context:
 http://old.nabble.com/Wicket-GAE-performance-tp28118591p28141583.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Wicket GAE performance

2010-04-04 Thread Anton Veretennikov
Hello, i'm working with GAE too, may i clarify something?

Transaction tx = pm.currentTransaction();

This is a transaction of every session?
If no, how may i handle this situation:

When one user is accessing a page i must return data from one entity from
the datastore, then close it from returning to any other users. What can be
done here?

-- Tony.



On Mon, Apr 5, 2010 at 12:08 AM, Ian Marshall ianmarshall...@gmail.comwrote:


 I have a static initialisation method and two static data members as
 follows:

  public class DataExchange
  {
private static final Object objLockPMF = new Object();
private static volatile PersistenceManagerFactory g_pmf = null;

/**
 * If this class's static singleton
 codePersistenceManagerFactory/code
 * is codenull/code, then construct it in a synchronised block of
 code.
 * @return
 *   This class's static singleton
 codePersistenceManagerFactory/code.
 */
public static PersistenceManagerFactory getPersistenceManagerFactory()
{
  if (g_pmf == null)
synchronized(objLockPMF)
{
  if (g_pmf == null)
  {
loadProperties();// My method which loads the string
 g_sDatabaseMode
g_pmf = JDOHelper.getPersistenceManagerFactory(g_sDatabaseMode);
  }
}

  return g_pmf;
}
  }


 I then call the above static method when my Wicket application initiates by
 creating a queued task which calls this method fairly immediately but
 asynchronously. I ensure that my home page performs no data exchange, so
 creating the PMF does not delay the showing of the first page.

 I also call the above static method at the start of every data exchange.
 There will be nothing to construct unless the queued task has not yet
 finished or GAE has shut the relevant Wicket application instance down. For
 example (which will not be a surprise) when using a transaction:

  PersistenceManager pm =
   DataExchange.getPersistenceManagerFactory().getPersistenceManager();
  Transaction tx = pm.currentTransaction();

  try
  {
tx.begin();

//
// Persistence code
//

tx.commit();
  }
  finally
  {
try
{
  if (tx.isActive())// Because of an exception, say
tx.rollback();
}
finally
{
  pm.close();
}
  }


 Enjoy,

 Ian



 intmanch wrote:
 
  Hi Ian,
 
  Thanks a lot for your response. I use as you PMF, not JPA, that's quite
  simple and easy to use. Can you give me more details (code snippet) about
  the initialization of the PMF? Is there any other point to take into
  consideration for the performance?
 
 --
 View this message in context:
 http://old.nabble.com/Wicket-GAE-performance-tp28118591p28133464.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: WARN BorderBodyResolver

2010-01-09 Thread Anton Veretennikov
Thank you, Igor!!!

On Sat, Jan 9, 2010 at 2:42 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 if you do this

 border.html
 wicket:border
 div wicket:id=foo
 wicket:body/
 /div
 /wicket:border

 notice that the body is inside foo but you add children as
 border.add(bar) so you are creating a mismatch. you need to reparent
 the wicket:body tag. the wicket:body is represented by the
 getbodycontainer, so in your border constructor you need to do:
 foo.add(getbodycontainer())

 -igor

 On Thu, Jan 7, 2010 at 12:31 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Good day,

 I'm a bit confused, can't understand what i really need to do after
 getting this warning:

 Please consider to change your java code to something like:
 c.add(getBodyContainer()); for the component hierarchy to better
 reflect the markup hierarchy. For example, say that you have a border
 class in which you do: 'WebMarkupContainer div = new
 WebMarkupContainer(roundDiv); add(div);' you should now do
 'add(div); div.add(getBodyContainer());'. Please fix this before
 Wicket 1.4

 -- Tony

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



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



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



WARN BorderBodyResolver

2010-01-07 Thread Anton Veretennikov
Good day,

I'm a bit confused, can't understand what i really need to do after
getting this warning:

Please consider to change your java code to something like:
c.add(getBodyContainer()); for the component hierarchy to better
reflect the markup hierarchy. For example, say that you have a border
class in which you do: 'WebMarkupContainer div = new
WebMarkupContainer(roundDiv); add(div);' you should now do
'add(div); div.add(getBodyContainer());'. Please fix this before
Wicket 1.4

-- Tony

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



Re: some questions from newbie[2]

2009-12-15 Thread Anton Veretennikov
 2. does the tag starts with wicket: take arguments or not, if yes, is
 there an ide that support this future. i read the book wicket in action, and
 couldnt see such an example
    if answer no, i suggests below(maybe they are silly for wicket, but i
 see such a feature in asp.net)
     lets prepare such an example
          wicket:panel name=halil age=29/
     in java, wicket:page may correspond to a property model and
 name-and-age fields may be the field names in the class of property model.

This brakes the main wicket's idea to have all code inside Java only.
This is more easy to debug and refactor.

As for IDE support, it is not so needed.
I can say that Netbeans 6.8 cleared a bug from 6.7 version
(https://netbeans.org/bugzilla/show_bug.cgi?id=166842) were wicket
tags were not matched with color. But we need not to forget about
declaring

html
  xmlns=http://www.w3.org/1999/xhtml;
  xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd;
...


for this to work.

-- Tony

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



Re: enclosure changes in 1.4.4

2009-12-13 Thread Anton Veretennikov
Consistency is one of wicket's strengths. My tiny vote for 1.4.4

-- Tony

On Sun, Dec 13, 2009 at 3:35 PM, Girts Ziemelis
girts.zieme...@gmail.com wrote:
 I also liked the behaviour - it made the code shorter, as I did not have to
 mirror the component tree in both then and else branches.
 I guess it is not a big deal, except for the testing headaches - this breaks
 the code at runtime :(
 I now, i know - I should have test cases covering all branches in the form
 :(


 On 12/13/2009 08:14 AM, Douglas Ferguson wrote:

 I did find the behavior handy, but it is easy to work around.

 D/

 On Dec 12, 2009, at 11:12 PM, Igor Vaynberg wrote:



 i think you guys misunderstand.

 i believe what we are talking about here is the requirement for
 presence of components *other* then the component specified by
 enclosure's child attribute.

 essentially if i do this:

 add(new webmarkupcontainer(container).setvisible(false));
 and have this in my markup:
 div wicket:id=containerdiv wicket:id=foo//div

 wicket will not throw an error even though i never added the foo
 component to my component hierarchy because as soon as it determins
 that the container div is not visible it will skip over until the
 closing tag.

 the enclosures, however, as of 1.4.4 *will* throw an error for *any*
 missing child declared inside enclosure's markup *even though* the
 enclosure has been determined as hidden.

 hope this clears it up somewhat

 -igor




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



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



Re: PageParameters an URLEncode

2009-11-26 Thread Anton Veretennikov
I really want to know how to encode-decode params in new PageParamters() calls.

Do I need to use WicketURLEncoder and WicketURLDecoder?
If so, how?

-- Tony

On Tue, Nov 24, 2009 at 1:56 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Hi!

 Sorry for simple question.
 Do we need URLEncode when we use

 new PageParameters(param=value1);

 -- Tony


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



PageParameters an URLEncode

2009-11-23 Thread Anton Veretennikov
Hi!

Sorry for simple question.
Do we need URLEncode when we use

new PageParameters(param=value1);

-- Tony

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



Opera. AjaxSelfUpdatingTimerBehavior inside iframe not rendering

2009-10-30 Thread Anton Veretennikov
Hi,

Anyone encountered that AjaxSelfUpdatingTimerBehavior doesn't update
markup when site is inside iframe on Opera browser?
When outside iframe there is no problem.
And it is floating - some markup is updated fine and when it is more
complex, page become frozen.

Opera versions tested: 9.64, 10.01

-- Tony.

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



Re: Behind proxy

2009-10-23 Thread Anton Veretennikov
Yes, I see, Jeremy. You are lucky! :)

Okey, I run my local Tomcat 6.0.18:

I remove all localhost cookies from my browser, close it, open it
again and enter:
http://localhost:8084/FivePinSite-1.0-SNAPSHOT/

I see JSESSIONID cookie set to localhost and path is
/FivePinSite-1.0-SNAPSHOT. Is it right?

-- Tony


On Fri, Oct 23, 2009 at 1:27 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 You WILL see jsessionid on that server because the cookie path is not the
 path that the server is serving on.  Notice that the URL is
 wickettraining.com/app but when you first view a page on the site, it will
 set a cookie with the jsessionid that is on patch /wickettraining (should be
 /app).

 That's what I was trying to explain earlier.

 Now, look at http://www.texashuntfish.com - after the first page, you will
 not see the jsessionid in the URL any more - because if you notice, the URL
 is /app and the cookie is set on /app.

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



 On Fri, Oct 23, 2009 at 12:19 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 Jeremy, thank you,

 For experiment, guys,
 Open, please, http://www.wickettraining.com and click in sequence these
 links:

 Contact Me and then
 Class Information (format, content, etc)

 If you see jsessionid appended to URL, please, answer:

 [  ] YES
 [  ] NO

 -- Tony


 On Thu, Oct 22, 2009 at 10:09 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
  The problem that makes jsessionid appear is nearly always related to
 cookies
  and cookie paths.  the servlet container will try to set a cookie with
 the
  jsessionid.  If that doesn't work, it will continue adding jsessionid to
 the
  urls.  So, use HttpFox (or similar) to see when the servlet container
 sets a
  cookie with the jsessionid, and pay attention to what path it sets it on.
  Then see if your browser is sending the jsessionid back to the container
 on
  the next request.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Oct 21, 2009 at 9:44 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  1. I checked it with Tomcat 5.5. Problem remained. All my bookmarkable
  links to Home page with parameters contained jsessionid.
 
  2. I got 1.5-SNAPSHOT, compiled, tried, problem remained.
 
  3. I removed lines in WebResponse::encodeURL and
  ServletWebResponse::encodeURL with logic about bug in apache tomcat
  5.5:
 
        �...@override
         public String encodeURL(String url)
         {
                 if (url != null)
                 {
                                 return
  httpServletResponse.encodeURL(url.toString());
                 }
                 return httpServletResponse.encodeURL(url);
          }
 
  and  miracle. jsessionid disappeared!
 
  I don't know may be this workaround for 5.5 is not correct?
 
  -- Tony
 
 
  On Wed, Oct 21, 2009 at 10:02 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
   Strange I have tomcat 5.5 here, it does not have that problem.. Could
 it
  be
   that it's tomcat related?
  
   2009/10/21 Anton Veretennikov anton.veretenni...@gmail.com
  
   Additional info to jsessionid problem:
  
   This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable
 links.
   Glassfish 2.1 seems not appending jsessionid to url even on first
 call
   (I have default settings) so there is no such behaviour.
  
   -- Tony
  
   On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretennikov
   anton.veretenni...@gmail.com wrote:
Thank you, Nino, I'll repeat then,
   
The problem is that all Bookmarkable links continue to have
;jsessionid=... string even after first call. The same time, Ajax
links work (jsessionid is removed) as desired but only if they
 are
not called after any bookmarkable link.
   
Hope somebody have such a problem and solved it. May be this have
nothing to do with proxy.
   
-- Tony.
   
On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks
 are
   just
that, and if session ID were appended they would'nt work..
   
One of my sites are running a beta 1.4 i'll try to upgrade and see
 if
  I
   can
replicate the error. But it might take some time..
   
Im taking this issue back to the wicket list as it may speed up
   responses to
it. So please respond to it there.
   
2009/10/20 Anton Veretennikov anton.veretenni...@gmail.com
   
Nino, seems to me that it has something with
 BookmarkablePageLinks.
  I
use them everywhere except expanding tree links where Ajax is
 used.
Look, when you press on +/- signes of tree, jsessionid
disappears after first click (only in this tree Ajaxed block).
 After
that you can press on bookmarkable links and everything will be
  okey.
   
I tried to remove everything about cookies even Google Analytics
  code,
this changes nothing.
So, may

Re: Behind proxy

2009-10-23 Thread Anton Veretennikov
Why in this localhost case I see jsessionid after I press any
*bookmarkable* link?
Why when I *first* press *non-bookmarable* link, jsessionid disappears?
Why when I press *bookmarkable* link and then non-bookmarkable, I see
jsessionid remains and never removes whatever link I press?
Is it okey, that urlFor for home page returns ./?
Why when I remove workaround from encodeURL everything starts working?

-- Tony

On Fri, Oct 23, 2009 at 2:45 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 Looks like it's right.

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



 On Fri, Oct 23, 2009 at 1:38 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 Yes, I see, Jeremy. You are lucky! :)

 Okey, I run my local Tomcat 6.0.18:

 I remove all localhost cookies from my browser, close it, open it
 again and enter:
 http://localhost:8084/FivePinSite-1.0-SNAPSHOT/

 I see JSESSIONID cookie set to localhost and path is
 /FivePinSite-1.0-SNAPSHOT. Is it right?

 -- Tony


 On Fri, Oct 23, 2009 at 1:27 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
  You WILL see jsessionid on that server because the cookie path is not the
  path that the server is serving on.  Notice that the URL is
  wickettraining.com/app but when you first view a page on the site, it
 will
  set a cookie with the jsessionid that is on patch /wickettraining (should
 be
  /app).
 
  That's what I was trying to explain earlier.
 
  Now, look at http://www.texashuntfish.com - after the first page, you
 will
  not see the jsessionid in the URL any more - because if you notice, the
 URL
  is /app and the cookie is set on /app.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Fri, Oct 23, 2009 at 12:19 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  Jeremy, thank you,
 
  For experiment, guys,
  Open, please, http://www.wickettraining.com and click in sequence these
  links:
 
  Contact Me and then
  Class Information (format, content, etc)
 
  If you see jsessionid appended to URL, please, answer:
 
  [  ] YES
  [  ] NO
 
  -- Tony
 
 
  On Thu, Oct 22, 2009 at 10:09 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
   The problem that makes jsessionid appear is nearly always related to
  cookies
   and cookie paths.  the servlet container will try to set a cookie with
  the
   jsessionid.  If that doesn't work, it will continue adding jsessionid
 to
  the
   urls.  So, use HttpFox (or similar) to see when the servlet container
  sets a
   cookie with the jsessionid, and pay attention to what path it sets it
 on.
   Then see if your browser is sending the jsessionid back to the
 container
  on
   the next request.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Wed, Oct 21, 2009 at 9:44 AM, Anton Veretennikov 
   anton.veretenni...@gmail.com wrote:
  
   1. I checked it with Tomcat 5.5. Problem remained. All my
 bookmarkable
   links to Home page with parameters contained jsessionid.
  
   2. I got 1.5-SNAPSHOT, compiled, tried, problem remained.
  
   3. I removed lines in WebResponse::encodeURL and
   ServletWebResponse::encodeURL with logic about bug in apache tomcat
   5.5:
  
         �...@override
          public String encodeURL(String url)
          {
                  if (url != null)
                  {
                                  return
   httpServletResponse.encodeURL(url.toString());
                  }
                  return httpServletResponse.encodeURL(url);
           }
  
   and  miracle. jsessionid disappeared!
  
   I don't know may be this workaround for 5.5 is not correct?
  
   -- Tony
  
  
   On Wed, Oct 21, 2009 at 10:02 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
Strange I have tomcat 5.5 here, it does not have that problem..
 Could
  it
   be
that it's tomcat related?
   
2009/10/21 Anton Veretennikov anton.veretenni...@gmail.com
   
Additional info to jsessionid problem:
   
This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable
  links.
Glassfish 2.1 seems not appending jsessionid to url even on first
  call
(I have default settings) so there is no such behaviour.
   
-- Tony
   
On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Thank you, Nino, I'll repeat then,

 The problem is that all Bookmarkable links continue to have
 ;jsessionid=... string even after first call. The same time,
 Ajax
 links work (jsessionid is removed) as desired but only if
 they
  are
 not called after any bookmarkable link.

 Hope somebody have such a problem and solved it. May be this
 have
 nothing to do with proxy.

 -- Tony.

 On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 Hmm Anton im not sure, but dont think so..
 BookmarkablePageLinks
  are
just
 that, and if session ID were appended they would'nt work

Re: Behind proxy

2009-10-23 Thread Anton Veretennikov
I added

  @Override
  protected void onBeforeRender() {
super.onBeforeRender();
logger.info(stateless={},isStateless());
  }

to my IndexPage and it returns

INFO  - IndexPage  - stateless=false

-- Tony


On Fri, Oct 23, 2009 at 3:01 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 my guess - stateless pages - like I believe was originally mentioned in the
 original thread.  your bookmarkable pages must also be stateless, which
 means that the session is only temporary

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



 On Fri, Oct 23, 2009 at 1:57 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 Why in this localhost case I see jsessionid after I press any
 *bookmarkable* link?
 Why when I *first* press *non-bookmarable* link, jsessionid disappears?
 Why when I press *bookmarkable* link and then non-bookmarkable, I see
 jsessionid remains and never removes whatever link I press?
 Is it okey, that urlFor for home page returns ./?
 Why when I remove workaround from encodeURL everything starts working?

 -- Tony

 On Fri, Oct 23, 2009 at 2:45 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
  Looks like it's right.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Fri, Oct 23, 2009 at 1:38 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  Yes, I see, Jeremy. You are lucky! :)
 
  Okey, I run my local Tomcat 6.0.18:
 
  I remove all localhost cookies from my browser, close it, open it
  again and enter:
  http://localhost:8084/FivePinSite-1.0-SNAPSHOT/
 
  I see JSESSIONID cookie set to localhost and path is
  /FivePinSite-1.0-SNAPSHOT. Is it right?
 
  -- Tony
 
 
  On Fri, Oct 23, 2009 at 1:27 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
   You WILL see jsessionid on that server because the cookie path is not
 the
   path that the server is serving on.  Notice that the URL is
   wickettraining.com/app but when you first view a page on the site, it
  will
   set a cookie with the jsessionid that is on patch /wickettraining
 (should
  be
   /app).
  
   That's what I was trying to explain earlier.
  
   Now, look at http://www.texashuntfish.com - after the first page, you
  will
   not see the jsessionid in the URL any more - because if you notice,
 the
  URL
   is /app and the cookie is set on /app.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Fri, Oct 23, 2009 at 12:19 AM, Anton Veretennikov 
   anton.veretenni...@gmail.com wrote:
  
   Jeremy, thank you,
  
   For experiment, guys,
   Open, please, http://www.wickettraining.com and click in sequence
 these
   links:
  
   Contact Me and then
   Class Information (format, content, etc)
  
   If you see jsessionid appended to URL, please, answer:
  
   [  ] YES
   [  ] NO
  
   -- Tony
  
  
   On Thu, Oct 22, 2009 at 10:09 PM, Jeremy Thomerson
   jer...@wickettraining.com wrote:
The problem that makes jsessionid appear is nearly always related
 to
   cookies
and cookie paths.  the servlet container will try to set a cookie
 with
   the
jsessionid.  If that doesn't work, it will continue adding
 jsessionid
  to
   the
urls.  So, use HttpFox (or similar) to see when the servlet
 container
   sets a
cookie with the jsessionid, and pay attention to what path it sets
 it
  on.
Then see if your browser is sending the jsessionid back to the
  container
   on
the next request.
   
--
Jeremy Thomerson
http://www.wickettraining.com
   
   
   
On Wed, Oct 21, 2009 at 9:44 AM, Anton Veretennikov 
anton.veretenni...@gmail.com wrote:
   
1. I checked it with Tomcat 5.5. Problem remained. All my
  bookmarkable
links to Home page with parameters contained jsessionid.
   
2. I got 1.5-SNAPSHOT, compiled, tried, problem remained.
   
3. I removed lines in WebResponse::encodeURL and
ServletWebResponse::encodeURL with logic about bug in apache
 tomcat
5.5:
   
      �...@override
       public String encodeURL(String url)
       {
               if (url != null)
               {
                               return
httpServletResponse.encodeURL(url.toString());
               }
               return httpServletResponse.encodeURL(url);
        }
   
and  miracle. jsessionid disappeared!
   
I don't know may be this workaround for 5.5 is not correct?
   
-- Tony
   
   
On Wed, Oct 21, 2009 at 10:02 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Strange I have tomcat 5.5 here, it does not have that problem..
  Could
   it
be
 that it's tomcat related?

 2009/10/21 Anton Veretennikov anton.veretenni...@gmail.com

 Additional info to jsessionid problem:

 This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable
   links.
 Glassfish 2.1 seems not appending jsessionid to url even on
 first
   call
 (I have default settings) so

Re: Behind proxy

2009-10-22 Thread Anton Veretennikov
Jeremy, thank you,

For experiment, guys,
Open, please, http://www.wickettraining.com and click in sequence these links:

Contact Me and then
Class Information (format, content, etc)

If you see jsessionid appended to URL, please, answer:

[  ] YES
[  ] NO

-- Tony


On Thu, Oct 22, 2009 at 10:09 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 The problem that makes jsessionid appear is nearly always related to cookies
 and cookie paths.  the servlet container will try to set a cookie with the
 jsessionid.  If that doesn't work, it will continue adding jsessionid to the
 urls.  So, use HttpFox (or similar) to see when the servlet container sets a
 cookie with the jsessionid, and pay attention to what path it sets it on.
 Then see if your browser is sending the jsessionid back to the container on
 the next request.

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



 On Wed, Oct 21, 2009 at 9:44 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 1. I checked it with Tomcat 5.5. Problem remained. All my bookmarkable
 links to Home page with parameters contained jsessionid.

 2. I got 1.5-SNAPSHOT, compiled, tried, problem remained.

 3. I removed lines in WebResponse::encodeURL and
 ServletWebResponse::encodeURL with logic about bug in apache tomcat
 5.5:

       �...@override
        public String encodeURL(String url)
        {
                if (url != null)
                {
                                return
 httpServletResponse.encodeURL(url.toString());
                }
                return httpServletResponse.encodeURL(url);
         }

 and  miracle. jsessionid disappeared!

 I don't know may be this workaround for 5.5 is not correct?

 -- Tony


 On Wed, Oct 21, 2009 at 10:02 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  Strange I have tomcat 5.5 here, it does not have that problem.. Could it
 be
  that it's tomcat related?
 
  2009/10/21 Anton Veretennikov anton.veretenni...@gmail.com
 
  Additional info to jsessionid problem:
 
  This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable links.
  Glassfish 2.1 seems not appending jsessionid to url even on first call
  (I have default settings) so there is no such behaviour.
 
  -- Tony
 
  On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretennikov
  anton.veretenni...@gmail.com wrote:
   Thank you, Nino, I'll repeat then,
  
   The problem is that all Bookmarkable links continue to have
   ;jsessionid=... string even after first call. The same time, Ajax
   links work (jsessionid is removed) as desired but only if they are
   not called after any bookmarkable link.
  
   Hope somebody have such a problem and solved it. May be this have
   nothing to do with proxy.
  
   -- Tony.
  
   On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
   Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks are
  just
   that, and if session ID were appended they would'nt work..
  
   One of my sites are running a beta 1.4 i'll try to upgrade and see if
 I
  can
   replicate the error. But it might take some time..
  
   Im taking this issue back to the wicket list as it may speed up
  responses to
   it. So please respond to it there.
  
   2009/10/20 Anton Veretennikov anton.veretenni...@gmail.com
  
   Nino, seems to me that it has something with BookmarkablePageLinks.
 I
   use them everywhere except expanding tree links where Ajax is used.
   Look, when you press on +/- signes of tree, jsessionid
   disappears after first click (only in this tree Ajaxed block). After
   that you can press on bookmarkable links and everything will be
 okey.
  
   I tried to remove everything about cookies even Google Analytics
 code,
   this changes nothing.
   So, may be there is something in urlFor, is it possible?
  
   -- Tony
  
  
   On Mon, Oct 19, 2009 at 9:00 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
No problem, please get back and tell if it works now:) im curios.
   
2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
   
I think this may have something with cookies since I try to set
  cookie
treeInfo and sometimes see it is set twice in response. May be
 I'm
doing something wrong with a way how I do this. I'll try to turn
 off
and see if it solves jsessionid problem.
   
Thank you for your help, Nino
   
-- Tony
   
On Mon, Oct 19, 2009 at 5:39 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Hmm, then it not Apache HTTP, very wierd. So maybe it is either
 something
 for the wicket list or the Tomcat one, if you can get them to
 answer.. I
 saw
 that the jesession id were sat so it should work.

 2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com

 The same thing 

 http://72.249.185.124:8080/FivePinSite-1.0-SNAPSHOT/

 very strange...

 On Mon, Oct 19, 2009 at 5:13 PM, nino martinez wael

Re: Behind proxy

2009-10-21 Thread Anton Veretennikov
Thank you, Nino, I'll repeat then,

The problem is that all Bookmarkable links continue to have
;jsessionid=... string even after first call. The same time, Ajax
links work (jsessionid is removed) as desired but only if they are
not called after any bookmarkable link.

Hope somebody have such a problem and solved it. May be this have
nothing to do with proxy.

-- Tony.

On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks are just
 that, and if session ID were appended they would'nt work..

 One of my sites are running a beta 1.4 i'll try to upgrade and see if I can
 replicate the error. But it might take some time..

 Im taking this issue back to the wicket list as it may speed up responses to
 it. So please respond to it there.

 2009/10/20 Anton Veretennikov anton.veretenni...@gmail.com

 Nino, seems to me that it has something with BookmarkablePageLinks. I
 use them everywhere except expanding tree links where Ajax is used.
 Look, when you press on +/- signes of tree, jsessionid
 disappears after first click (only in this tree Ajaxed block). After
 that you can press on bookmarkable links and everything will be okey.

 I tried to remove everything about cookies even Google Analytics code,
 this changes nothing.
 So, may be there is something in urlFor, is it possible?

 -- Tony


 On Mon, Oct 19, 2009 at 9:00 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  No problem, please get back and tell if it works now:) im curios.
 
  2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
 
  I think this may have something with cookies since I try to set cookie
  treeInfo and sometimes see it is set twice in response. May be I'm
  doing something wrong with a way how I do this. I'll try to turn off
  and see if it solves jsessionid problem.
 
  Thank you for your help, Nino
 
  -- Tony
 
  On Mon, Oct 19, 2009 at 5:39 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
   Hmm, then it not Apache HTTP, very wierd. So maybe it is either
   something
   for the wicket list or the Tomcat one, if you can get them to
   answer.. I
   saw
   that the jesession id were sat so it should work.
  
   2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
  
   The same thing 
  
   http://72.249.185.124:8080/FivePinSite-1.0-SNAPSHOT/
  
   very strange...
  
   On Mon, Oct 19, 2009 at 5:13 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
If I were you I would try to take it on the apache http list...
Since
it's
probably that part which are failing.. If you hit the server
directly,
without the proxy does it work then ? If yes it's probably your
rewrite
rule?
   
2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
   
May be I need to open this discussion in a wicket list?
   
On Mon, Oct 19, 2009 at 3:57 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Thank you, Nino,

 All my apps as I can see use the same method and only in one I
 see
 strange things with jsessionid.
 I need to investigate it somehow but don't know from where to
 start
 and how to know that exactly in that point things are going
 wrong.

 -- Tony


 On Sun, Oct 18, 2009 at 7:40 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 One of mine looks like this:

 VirtualHost *:* 
 ServerName wicketgames.ninosbox.thruhere.net
 ServerAlias *.wicketgames.ninosbox.thruhere.net
     ProxyPass / http://10.0.0.2:8180/WicketGames/
     ProxyPassReverse / http://10.0.0.2:8180/WicketGames/
     ProxyPassReverseCookiePath /WicketGames /
    Proxy *
     Order deny,allow
     Allow from all
     /Proxy
 /VirtualHost

 And another:

 VirtualHost *:* 
 ServerName wheresmyevent.com
 ServerAlias www.wheresmyevent.com
     ProxyPass / http://10.0.0.2:8180/socratesTopia/
     ProxyPassReverse / http://10.0.0.2:8180/socratesTopia/
     ProxyPassReverseCookiePath /socratesTopia /
    Proxy *
     Order deny,allow
     Allow from all
     /Proxy
 /VirtualHost

 Your seems similar though, im not familiar with rewrite rules
 though..

 2009/10/17 Anton Veretennikov anton.veretenni...@gmail.com

 Hi, Nino,

 Thank you for your response, I'm using rewrite rules, it's
 true.
 My configuration of virtual host is:

 VirtualHost *:80
  ServerName www.5pin.ru
  ServerAlias 5pin.ru
  ProxyPass / ajp://127.0.0.1:8009/FivePinSite-1.0-SNAPSHOT/
  ProxyPassReverse /
 ajp://127.0.0.1:8009/FivePinSite-1.0-SNAPSHOT/
  ProxyPassReverseCookieDomain    localhost  5pin.ru
  ProxyPassReverseCookiePath /FivePinSite-1.0-SNAPSHOT /
  RewriteEngine  on
  RewriteRule    ^/FivePinSite-1\.0-SNAPSHOT/(.*)$  /$1  [R

Re: Behind proxy

2009-10-21 Thread Anton Veretennikov
Additional info to jsessionid problem:

This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable links.
Glassfish 2.1 seems not appending jsessionid to url even on first call
(I have default settings) so there is no such behaviour.

-- Tony

On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Thank you, Nino, I'll repeat then,

 The problem is that all Bookmarkable links continue to have
 ;jsessionid=... string even after first call. The same time, Ajax
 links work (jsessionid is removed) as desired but only if they are
 not called after any bookmarkable link.

 Hope somebody have such a problem and solved it. May be this have
 nothing to do with proxy.

 -- Tony.

 On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks are just
 that, and if session ID were appended they would'nt work..

 One of my sites are running a beta 1.4 i'll try to upgrade and see if I can
 replicate the error. But it might take some time..

 Im taking this issue back to the wicket list as it may speed up responses to
 it. So please respond to it there.

 2009/10/20 Anton Veretennikov anton.veretenni...@gmail.com

 Nino, seems to me that it has something with BookmarkablePageLinks. I
 use them everywhere except expanding tree links where Ajax is used.
 Look, when you press on +/- signes of tree, jsessionid
 disappears after first click (only in this tree Ajaxed block). After
 that you can press on bookmarkable links and everything will be okey.

 I tried to remove everything about cookies even Google Analytics code,
 this changes nothing.
 So, may be there is something in urlFor, is it possible?

 -- Tony


 On Mon, Oct 19, 2009 at 9:00 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  No problem, please get back and tell if it works now:) im curios.
 
  2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
 
  I think this may have something with cookies since I try to set cookie
  treeInfo and sometimes see it is set twice in response. May be I'm
  doing something wrong with a way how I do this. I'll try to turn off
  and see if it solves jsessionid problem.
 
  Thank you for your help, Nino
 
  -- Tony
 
  On Mon, Oct 19, 2009 at 5:39 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
   Hmm, then it not Apache HTTP, very wierd. So maybe it is either
   something
   for the wicket list or the Tomcat one, if you can get them to
   answer.. I
   saw
   that the jesession id were sat so it should work.
  
   2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
  
   The same thing 
  
   http://72.249.185.124:8080/FivePinSite-1.0-SNAPSHOT/
  
   very strange...
  
   On Mon, Oct 19, 2009 at 5:13 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
If I were you I would try to take it on the apache http list...
Since
it's
probably that part which are failing.. If you hit the server
directly,
without the proxy does it work then ? If yes it's probably your
rewrite
rule?
   
2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
   
May be I need to open this discussion in a wicket list?
   
On Mon, Oct 19, 2009 at 3:57 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Thank you, Nino,

 All my apps as I can see use the same method and only in one I
 see
 strange things with jsessionid.
 I need to investigate it somehow but don't know from where to
 start
 and how to know that exactly in that point things are going
 wrong.

 -- Tony


 On Sun, Oct 18, 2009 at 7:40 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
 One of mine looks like this:

 VirtualHost *:* 
 ServerName wicketgames.ninosbox.thruhere.net
 ServerAlias *.wicketgames.ninosbox.thruhere.net
     ProxyPass / http://10.0.0.2:8180/WicketGames/
     ProxyPassReverse / http://10.0.0.2:8180/WicketGames/
     ProxyPassReverseCookiePath /WicketGames /
    Proxy *
     Order deny,allow
     Allow from all
     /Proxy
 /VirtualHost

 And another:

 VirtualHost *:* 
 ServerName wheresmyevent.com
 ServerAlias www.wheresmyevent.com
     ProxyPass / http://10.0.0.2:8180/socratesTopia/
     ProxyPassReverse / http://10.0.0.2:8180/socratesTopia/
     ProxyPassReverseCookiePath /socratesTopia /
    Proxy *
     Order deny,allow
     Allow from all
     /Proxy
 /VirtualHost

 Your seems similar though, im not familiar with rewrite rules
 though..

 2009/10/17 Anton Veretennikov anton.veretenni...@gmail.com

 Hi, Nino,

 Thank you for your response, I'm using rewrite rules, it's
 true.
 My configuration of virtual host is:

 VirtualHost *:80
  ServerName www.5pin.ru
  ServerAlias 5pin.ru
  ProxyPass

Re: Behind proxy

2009-10-21 Thread Anton Veretennikov
1. I checked it with Tomcat 5.5. Problem remained. All my bookmarkable
links to Home page with parameters contained jsessionid.

2. I got 1.5-SNAPSHOT, compiled, tried, problem remained.

3. I removed lines in WebResponse::encodeURL and
ServletWebResponse::encodeURL with logic about bug in apache tomcat
5.5:

@Override
public String encodeURL(String url)
{
if (url != null)
{
return 
httpServletResponse.encodeURL(url.toString());
}   
return httpServletResponse.encodeURL(url);
 }

and  miracle. jsessionid disappeared!

I don't know may be this workaround for 5.5 is not correct?

-- Tony


On Wed, Oct 21, 2009 at 10:02 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Strange I have tomcat 5.5 here, it does not have that problem.. Could it be
 that it's tomcat related?

 2009/10/21 Anton Veretennikov anton.veretenni...@gmail.com

 Additional info to jsessionid problem:

 This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable links.
 Glassfish 2.1 seems not appending jsessionid to url even on first call
 (I have default settings) so there is no such behaviour.

 -- Tony

 On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
  Thank you, Nino, I'll repeat then,
 
  The problem is that all Bookmarkable links continue to have
  ;jsessionid=... string even after first call. The same time, Ajax
  links work (jsessionid is removed) as desired but only if they are
  not called after any bookmarkable link.
 
  Hope somebody have such a problem and solved it. May be this have
  nothing to do with proxy.
 
  -- Tony.
 
  On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
  Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks are
 just
  that, and if session ID were appended they would'nt work..
 
  One of my sites are running a beta 1.4 i'll try to upgrade and see if I
 can
  replicate the error. But it might take some time..
 
  Im taking this issue back to the wicket list as it may speed up
 responses to
  it. So please respond to it there.
 
  2009/10/20 Anton Veretennikov anton.veretenni...@gmail.com
 
  Nino, seems to me that it has something with BookmarkablePageLinks. I
  use them everywhere except expanding tree links where Ajax is used.
  Look, when you press on +/- signes of tree, jsessionid
  disappears after first click (only in this tree Ajaxed block). After
  that you can press on bookmarkable links and everything will be okey.
 
  I tried to remove everything about cookies even Google Analytics code,
  this changes nothing.
  So, may be there is something in urlFor, is it possible?
 
  -- Tony
 
 
  On Mon, Oct 19, 2009 at 9:00 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
   No problem, please get back and tell if it works now:) im curios.
  
   2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
  
   I think this may have something with cookies since I try to set
 cookie
   treeInfo and sometimes see it is set twice in response. May be I'm
   doing something wrong with a way how I do this. I'll try to turn off
   and see if it solves jsessionid problem.
  
   Thank you for your help, Nino
  
   -- Tony
  
   On Mon, Oct 19, 2009 at 5:39 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
Hmm, then it not Apache HTTP, very wierd. So maybe it is either
something
for the wicket list or the Tomcat one, if you can get them to
answer.. I
saw
that the jesession id were sat so it should work.
   
2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
   
The same thing 
   
http://72.249.185.124:8080/FivePinSite-1.0-SNAPSHOT/
   
very strange...
   
On Mon, Oct 19, 2009 at 5:13 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 If I were you I would try to take it on the apache http list...
 Since
 it's
 probably that part which are failing.. If you hit the server
 directly,
 without the proxy does it work then ? If yes it's probably your
 rewrite
 rule?

 2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com

 May be I need to open this discussion in a wicket list?

 On Mon, Oct 19, 2009 at 3:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
  Thank you, Nino,
 
  All my apps as I can see use the same method and only in one
 I
  see
  strange things with jsessionid.
  I need to investigate it somehow but don't know from where
 to
  start
  and how to know that exactly in that point things are going
  wrong.
 
  -- Tony
 
 
  On Sun, Oct 18, 2009 at 7:40 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
  One of mine looks like this:
 
  VirtualHost *:* 
  ServerName wicketgames.ninosbox.thruhere.net

Really strange markup exception

2009-10-16 Thread Anton Veretennikov
Hello, wicket users and developers,

I need your help, can't find the reason of problem. Tried this with
1.4.1 and 1.4.2 wicket versions.

My class IconImage extends WebMarkupContainer and adds src attribute
to img tag depending on some logic and I use it in several panels.
It works perfectly until I want to use it in this breadcrump markup:

wicket:panel
span wicket:id=breadcrumb
a wicket:id=link
   img wicket:id=icon src= alt= /
   span wicket:id=text/span
/a
span wicket:id=gt img src=.../gtdot.gif alt=gt;/ /span
/span
img src=.../gtdot.gif alt=gt;/
a wicket:id=nameimglink class=noadecoration
img src=.../link.gif alt= title=/
 /a
 a wicket:id=goodLink
img wicket:id=goodIcon src= alt= /
span wicket:id=name/span
 /a
/wicket:panel

Span [wicket:id=breadcrumb] is filled using ListView, here IconImage
is added to [wicket:id=icon], it WORKS here.

But last [wicket:id=goodIcon] throws

org.apache.wicket.markup.MarkupException: Unable to find component
with id 'goodIcon' in [MarkupContainer [Component id = goodLink]]

When I replace IconImage with simple WebMarkupContainer - everything
starts to work.
Even when I make simple extend of WebMarkupContainer without any logic
it throws this exception.

What's the matter?

Best regards,
-- Tony

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



Re: Really strange markup exception

2009-10-16 Thread Anton Veretennikov
Forget it, please, I found my fault after 1 minute!!!
Thank you!

On Fri, Oct 16, 2009 at 4:38 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Hello, wicket users and developers,

 I need your help, can't find the reason of problem. Tried this with
 1.4.1 and 1.4.2 wicket versions.

 My class IconImage extends WebMarkupContainer and adds src attribute
 to img tag depending on some logic and I use it in several panels.
 It works perfectly until I want to use it in this breadcrump markup:

 wicket:panel
    span wicket:id=breadcrumb
        a wicket:id=link
           img wicket:id=icon src= alt= /
           span wicket:id=text/span
        /a
        span wicket:id=gt img src=.../gtdot.gif alt=gt;/ /span
    /span
    img src=.../gtdot.gif alt=gt;/
    a wicket:id=nameimglink class=noadecoration
        img src=.../link.gif alt= title=/
     /a
     a wicket:id=goodLink
        img wicket:id=goodIcon src= alt= /
        span wicket:id=name/span
     /a
 /wicket:panel

 Span [wicket:id=breadcrumb] is filled using ListView, here IconImage
 is added to [wicket:id=icon], it WORKS here.

 But last [wicket:id=goodIcon] throws

 org.apache.wicket.markup.MarkupException: Unable to find component
 with id 'goodIcon' in [MarkupContainer [Component id = goodLink]]

 When I replace IconImage with simple WebMarkupContainer - everything
 starts to work.
 Even when I make simple extend of WebMarkupContainer without any logic
 it throws this exception.

 What's the matter?

 Best regards,
 -- Tony


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



Re: WicketMessage: Error attaching this container for rendering

2009-10-16 Thread Anton Veretennikov
Subtree.java:133 throws java.lang.NullPointerException

-- Tony

On Fri, Oct 16, 2009 at 4:50 PM, ping ping sping_p...@hotmail.com wrote:

 Can i have some brief explanation on what could have possibly caused this to 
 happen?


 WicketMessage: Error attaching this container for rendering: [MarkupContainer 
 [Component id = subtree]]
 Root cause:
 java.lang.NullPointerException
     at wickettree.nested.Subtree$ModelIterator.init(Subtree.java:133)
     at wickettree.nested.Subtree$1.getItemModels(Subtree.java:75)
     at 
 org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:94)
     at 
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:131)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:1061)
     at org.apache.wicket.Component.beforeRender(Component.java:1095)
     at 
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1751)
     at org.apache.wicket.Component.onBeforeRender(Component.java:3863)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:1061)
     at org.apache.wicket.Component.beforeRender(Component.java:1095)
     at 
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1751)
     at org.apache.wicket.Component.onBeforeRender(Component.java:3863)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:1061)
     at org.apache.wicket.Component.beforeRender(Component.java:1095)
     at 
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1751)
     at org.apache.wicket.Component.onBeforeRender(Component.java:3863)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:1061)
     at org.apache.wicket.Component.beforeRender(Component.java:1095)
     at 
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1751)
     at org.apache.wicket.Component.onBeforeRender(Component.java:3863)
     at org.apache.wicket.Page.onBeforeRender(Page.java:1501)
     at 
 com.is.web.sam.role.BaseRoleManagementPage.onBeforeRender(BaseRoleManagementPage.java:239)
     at org.apache.wicket.Component.internalBeforeRender(Component.java:1061)
     at org.apache.wicket.Component.beforeRender(Component.java:1095)
     at org.apache.wicket.Component.prepareForRender(Component.java:2232)
     at org.apache.wicket.Component.prepareForRender(Component.java:2269)
     at org.apache.wicket.Page.renderPage(Page.java:893)
     at 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
     at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
     at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
     at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
     at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
     at com.is.java.common.util.MySecureFilter.doGet(MySecureFilter.java:127)
     at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
     at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at 
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
     at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
     at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     at 
 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
     at 
 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
     at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at 
 org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
     at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
     at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
     at java.lang.Thread.run(Thread.java:595)
 Complete stack:
 

Re: Open Source projects using Wicket

2009-10-16 Thread Anton Veretennikov
Nice app!

If http://www.ehour.nl/ is written using Wicket itself, I see the same
strange ;jsessionid= added to all pages after I upgraded to 1.4.
while navigating and it does not remove. And google started to contain
all links with this attribute. Does anybody knows what's the promlem
is?

-- Tony

On Fri, Oct 16, 2009 at 5:11 PM, Thies Edeling tedel...@gmail.com wrote:
 eHour is using Wicket (1.3, not yet migrated to 1.4). Site at
 http://www.ehour.nl/ with the svn repo at
 http://svn.te-con.nl/repos/ehour/trunk

 Dave B wrote:

 Hi,

 I'm in the process of evaluating Wicket (after an arduous JSF project,
 that has made us re-evaluate our web platform.)

 I've read Wicket in Action and whole bunch of blog and mailing list
 posts, done some proof-of-concept work and am now interested in
 reading source code from a project using Wicket, since I want to see
 Wicket in the wild. I know Artifactory uses Wicket, but their
 Subversion access instructions seem to be out of date.

 Does anyone know of an open source project using Wicket, so that I can
 peruse the source code?

 Many thanks,
 Dave

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





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



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



Re: Open Source projects using Wicket

2009-10-16 Thread Anton Veretennikov
I can't understand what do you mean, Nino?
Cookies are set, I see them in browser.

-- Tony

On Fri, Oct 16, 2009 at 6:04 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 It's the servlet container reverting to url rewrite since it cannot set the
 session cookie..

 2009/10/16 Anton Veretennikov anton.veretenni...@gmail.com

 Nice app!

 If http://www.ehour.nl/ is written using Wicket itself, I see the same
 strange ;jsessionid= added to all pages after I upgraded to 1.4.
 while navigating and it does not remove. And google started to contain
 all links with this attribute. Does anybody knows what's the promlem
 is?

 -- Tony

 On Fri, Oct 16, 2009 at 5:11 PM, Thies Edeling tedel...@gmail.com wrote:
  eHour is using Wicket (1.3, not yet migrated to 1.4). Site at
  http://www.ehour.nl/ with the svn repo at
  http://svn.te-con.nl/repos/ehour/trunk
 
  Dave B wrote:
 
  Hi,
 
  I'm in the process of evaluating Wicket (after an arduous JSF project,
  that has made us re-evaluate our web platform.)
 
  I've read Wicket in Action and whole bunch of blog and mailing list
  posts, done some proof-of-concept work and am now interested in
  reading source code from a project using Wicket, since I want to see
  Wicket in the wild. I know Artifactory uses Wicket, but their
  Subversion access instructions seem to be out of date.
 
  Does anyone know of an open source project using Wicket, so that I can
  peruse the source code?
 
  Many thanks,
  Dave
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




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



Re: Open source Wicket blog

2009-10-14 Thread Anton Veretennikov
I'm interested. This will be definitely something desirable for many
website builders.
I want to assist in developing because I need such functionality in
several sites.

-- Tony

On Wed, Oct 14, 2009 at 2:30 PM, Daniel Frisk dan...@jalbum.net wrote:
 Hi,

 we have developed a blog tool in Wicket for our website. I just wanted to
 see if there is any interest in having that as an open source project?
 The code would have to be adopted for general use and be untangled from some
 dependencies that we don't want to open source, so I just want to check if
 there is any interest before doing the initial work. Not promising anything
 so don't start haunting me, but let me know if you are interested.

 Check it out at:
 http://jalbum.net/blog

 // Daniel
 jalbum.net

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



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



Re: Wicket 1.4.2 Released!

2009-10-10 Thread Anton Veretennikov
Congratulations! This is a great news for all wicket lovers!

-- Tony

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



Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread Anton Veretennikov
For example I use this markup:

script wicket:id=focusScript/script

and associate it with simple class:

public class FocusScript extends Label {

  public FocusScript(String id, String focusFieldMarkupId, boolean selectAll) {
super(id, getFocusScript(focusFieldMarkupId, selectAll));
setEscapeModelStrings(false);
  }

  @Override
  protected void onComponentTag(ComponentTag tag) {
tag.put(language, javascript);
tag.put(type, text/javascript);
super.onComponentTag(tag);
  }

  @Override
  protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {
super.onComponentTagBody(markupStream, openTag);
checkComponentTag(openTag, script);
  }

  public static String getFocusScript(String focusFieldMarkupId,
boolean selectAll) {
return document.getElementById(' + focusFieldMarkupId + ').focus(); +
(selectAll?(document.getElementById(' +
focusFieldMarkupId + ').select()):);
  }


}


On Sat, Oct 10, 2009 at 11:11 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 can you not just use a label whose model is the script.../script string?

 -igor

 On Sat, Oct 10, 2009 at 5:34 AM, Paul Huang paulhuan...@gmail.com wrote:
 Suppose I write my own wicket component called XYZ that have the following
 markup

 wicket:panel
 div wicket:id=id_xxx
 
 /div
 /wicket:panel

 How can I inject some js code into this markup so when it's rendered in a
 page, I got something like

 wicket:panel
 div wicket:id=id_xxx
  script type=text/javascript
     var data=[abc, efg];
     document.write(data[0]);
 /script
 .
 div
 wicket:panel

 You may ask why I dont simply keep the js code into the component markup
 XYZ.html, this is because the value of data variable will be provided by
 the user and is not fixed.


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



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



Re: How to change raw body content of SubmitLink?

2009-10-06 Thread Anton Veretennikov
May be overriding of onComponentTagBody will do your trick:

public class TextLink extends Link {

  public TextLink(String id, IModel model) {
super(id, model);
  }

  @Override
  protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag) {
if (getModelObject()==null) {
  replaceComponentTagBody(markupStream, openTag, );
} else {
  replaceComponentTagBody(markupStream, openTag,
getModelObject().toString());
}
  }
}

On Wed, Oct 7, 2009 at 12:28 PM, Richard Nichols r...@richardnichols.net 
wrote:
 Is there a way to have it added by wicket (see orig. msg)?

 The requirement or content of the span might change if the CSS style
 changes. I'd like to encapsulate that logic as a wicket component if
 possible.

 2009/10/7 Jeremy Thomerson jer...@wickettraining.com:
 Just add the span to your markup in your *.html file.

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



 On Tue, Oct 6, 2009 at 11:20 PM, Richard Nichols r...@visural.com wrote:

 Hi everyone, I'm a new Wicket user and I have (what I hope is) a
 simple question -
 I have a SubmitLink -

 a href=# wicket:id=loginLogin/a
 ...
 add(new SubmitLink(login));

 I want to change the rendered content of the a/a tag such that it is -

 a href=# wicket:id=login onClick= ... (all the regular wicket
 stuff) ...spanLogin/span/a

 i.e. just wrap the raw content of the a tag with span. This is to
 support CSS link styling. Because the CSS requirements might change
 over time, I'd like wicket to add this markup, rather than putting it
 in the HTML.

 I've tried to figure out how to do this from the examples and the
 wicket source, but I feel like I'm missing something obvious...

 cheers,
 Richard.

 --
 Richard Nichols :: http://www.visural.com/ ::
 http://www.richardnichols.net/

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






 --
 Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/

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



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



Re: Sending data to a wicket form through a POST from an external site

2009-08-24 Thread Anton Veretennikov
They mean trigger a form submit somehow as if it was a wicket form
as I understood.

-- Tony

On Tue, Aug 25, 2009 at 12:07 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 give paypal a url to a bookmarkable page, you can retrieve the post
 params from PageParameters.

 -igor

 On Wed, Jan 7, 2009 at 11:19 AM, Rahul Pilanirpil...@navigenics.com wrote:
 I need to get data from an external site via a POST. Is there a way that 
 wicket will trigger a form submit on the posted data? Otherwise I have to 
 handle the params myself. I looked through the forum archives, and previous 
 posts on a similar topic went unreplied.

 Any answer is appreciated.

 - R


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



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



Re: [announce] Wicket 1.4.1

2009-08-20 Thread Anton Veretennikov
Thank you! Great news!

On Thu, Aug 20, 2009 at 10:14 PM, Jeremy
Thomersonjer...@wickettraining.com wrote:
 1.4.1 is now available as source in the releases dir.

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




 On Thu, Aug 20, 2009 at 2:40 AM, Martin Funkmafulaf...@googlemail.com wrote:
 and leave clean underwear

 don't think Martijn is up for another one of this:
 http://www.nabble.com/SVN-URL-for-Wicket-1.4.0-sources--td24803875.html

 mf

 2009/8/20 Igor Vaynberg igor.vaynb...@gmail.com

 Apache Wicket 1.4.1 Released

 The Apache Wicket project is proud to announce the first maintenance
 release of Apache Wicket 1.4.

 Download Apache Wicket 1.4.1
 -
 You can download the release here:
 http://www.apache.org/dyn/closer.cgi/wicket/1.4.1

 Or use this in your Maven pom's to upgrade to the new version:

 dependency
  groupIdorg.apache.wicket/groupId
  artifactIdwicket/artifactId
  version1.4.1/version
 /dependency

 Changes
 -
 The most notable change in this release is the transparent support for
 multipart form submissions via Ajax. Wicket is now smart enough to
 submit a form using a hidden iframe rather then the standard
 XMLHttpRequest if the form contains file upload fields.

 A complete list of changes can be found in our Jira instance[0].

 --

 We thank you for your patience and support.

 The Wicket Team

 [0]
 https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=prioritypid=12310561fixfor=12314113

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




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



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



Re: Firefox, be afraid be very afraid!!!

2009-08-05 Thread Anton Veretennikov
how, how?

On Wed, Aug 5, 2009 at 3:24 PM, Johan Compagnerjcompag...@gmail.com wrote:
 wicket can also do that for you

 On Wed, Aug 5, 2009 at 06:45, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 As I remember, GWT appends some garbage to JS filenames as they change
 to prevent this.

 -- Tony

 On 8/5/09, John Armstrong siber...@siberian.org wrote:
  Install the web developers toolkit plugin for firefox. Its a must if your
  doing front-end web development. Among many many many other features it
 lets
  you do things like easily disable the cache, javascript etc.
  Its a must have IMHO.
 
  J
 
  On Tue, Aug 4, 2009 at 7:41 PM, Igor Vaynberg
  igor.vaynb...@gmail.comwrote:
 
  SHIFT-F5 or SHIFT+clicking the refresh button will bypass the cache
  when reloading the page. i use firefox almost exlucisvely as well and
  had this problem happen sometimes to javascript files.
 
  -igor
 
  On Tue, Aug 4, 2009 at 7:31 PM, Ben Tilfordbentilf...@gmail.com
 wrote:
   It's not Wicket or Firefox its the caching settings (probably on the
   server). If the cached resources aren't expired the browser is
 supposed
  to
   use what it has cached.
  
   Best to set the far future expires to something really short or 0 in
   development.
  
   On Tue, Aug 4, 2009 at 10:17 PM, Jeremy Thomerson 
  jer...@wickettraining.com
   wrote:
  
   Strange - I use FF almost exclusively and have never had this
 problem.
    Did you use something like HttpFox or TamperData to look at the
   headers and see if the expiry headers were coming back correctly?
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
  
   On Tue, Aug 4, 2009 at 9:12 PM, Steve Tarltonstarl...@gmail.com
  wrote:
I just spent the better half of a day WASTED because I use Firefox
for
testing my Wicket development. For the life of me, I couldn't
 figure
  out
   why
I couldn't get a simple data picker to center. I wouldn't call
 myself
  an
expert at html so I doubted myself. Turns out that Firefox decided
  that
there is no need to update changes if there is something in cache
 --
   WTF!!!
It wasn't until I got so fed up I tried Internet Explorer and saw
that
   what
I was doing was working all along. I exited Firefox and restarted
it
   and
still not working. It wasn't until I went in and cleared my
 private
   cache
and then visited my app again that it did what it was suppose to
 do.
I
  of
course poked around in Firefox to turn that !...@#$%! cache off but
 the
  only
thing I found was a setting that would automatically flush it when
 I
exited (not closed) Firefox. I will probably still use it for
normal
surfing but unless there is a way to stop it from not updating my
html
changes, I will NOT be useing it for Wicket development!
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

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




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



Re: Firefox, be afraid be very afraid!!!

2009-08-05 Thread Anton Veretennikov
I love wicket :)

On Wed, Aug 5, 2009 at 3:40 PM, Matej Knoppmatej.kn...@gmail.com wrote:
 Application.getResourceSettings().setAddLastModifiedTimeToResourceReferenceUrl(true);

 -Matej

 On Wed, Aug 5, 2009 at 9:35 AM, Anton
 Veretennikovanton.veretenni...@gmail.com wrote:
 how, how?

 On Wed, Aug 5, 2009 at 3:24 PM, Johan Compagnerjcompag...@gmail.com wrote:
 wicket can also do that for you

 On Wed, Aug 5, 2009 at 06:45, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 As I remember, GWT appends some garbage to JS filenames as they change
 to prevent this.

 -- Tony

 On 8/5/09, John Armstrong siber...@siberian.org wrote:
  Install the web developers toolkit plugin for firefox. Its a must if your
  doing front-end web development. Among many many many other features it
 lets
  you do things like easily disable the cache, javascript etc.
  Its a must have IMHO.
 
  J
 
  On Tue, Aug 4, 2009 at 7:41 PM, Igor Vaynberg
  igor.vaynb...@gmail.comwrote:
 
  SHIFT-F5 or SHIFT+clicking the refresh button will bypass the cache
  when reloading the page. i use firefox almost exlucisvely as well and
  had this problem happen sometimes to javascript files.
 
  -igor
 
  On Tue, Aug 4, 2009 at 7:31 PM, Ben Tilfordbentilf...@gmail.com
 wrote:
   It's not Wicket or Firefox its the caching settings (probably on the
   server). If the cached resources aren't expired the browser is
 supposed
  to
   use what it has cached.
  
   Best to set the far future expires to something really short or 0 in
   development.
  
   On Tue, Aug 4, 2009 at 10:17 PM, Jeremy Thomerson 
  jer...@wickettraining.com
   wrote:
  
   Strange - I use FF almost exclusively and have never had this
 problem.
    Did you use something like HttpFox or TamperData to look at the
   headers and see if the expiry headers were coming back correctly?
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
  
   On Tue, Aug 4, 2009 at 9:12 PM, Steve Tarltonstarl...@gmail.com
  wrote:
I just spent the better half of a day WASTED because I use Firefox
for
testing my Wicket development. For the life of me, I couldn't
 figure
  out
   why
I couldn't get a simple data picker to center. I wouldn't call
 myself
  an
expert at html so I doubted myself. Turns out that Firefox decided
  that
there is no need to update changes if there is something in cache
 --
   WTF!!!
It wasn't until I got so fed up I tried Internet Explorer and saw
that
   what
I was doing was working all along. I exited Firefox and restarted
it
   and
still not working. It wasn't until I went in and cleared my
 private
   cache
and then visited my app again that it did what it was suppose to
 do.
I
  of
course poked around in Firefox to turn that !...@#$%! cache off but
 the
  only
thing I found was a setting that would automatically flush it when
 I
exited (not closed) Firefox. I will probably still use it for
normal
surfing but unless there is a way to stop it from not updating my
html
changes, I will NOT be useing it for Wicket development!
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

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




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



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



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



Re: Firefox, be afraid be very afraid!!!

2009-08-04 Thread Anton Veretennikov
As I remember, GWT appends some garbage to JS filenames as they change
to prevent this.

-- Tony

On 8/5/09, John Armstrong siber...@siberian.org wrote:
 Install the web developers toolkit plugin for firefox. Its a must if your
 doing front-end web development. Among many many many other features it lets
 you do things like easily disable the cache, javascript etc.
 Its a must have IMHO.

 J

 On Tue, Aug 4, 2009 at 7:41 PM, Igor Vaynberg
 igor.vaynb...@gmail.comwrote:

 SHIFT-F5 or SHIFT+clicking the refresh button will bypass the cache
 when reloading the page. i use firefox almost exlucisvely as well and
 had this problem happen sometimes to javascript files.

 -igor

 On Tue, Aug 4, 2009 at 7:31 PM, Ben Tilfordbentilf...@gmail.com wrote:
  It's not Wicket or Firefox its the caching settings (probably on the
  server). If the cached resources aren't expired the browser is supposed
 to
  use what it has cached.
 
  Best to set the far future expires to something really short or 0 in
  development.
 
  On Tue, Aug 4, 2009 at 10:17 PM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:
 
  Strange - I use FF almost exclusively and have never had this problem.
   Did you use something like HttpFox or TamperData to look at the
  headers and see if the expiry headers were coming back correctly?
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Tue, Aug 4, 2009 at 9:12 PM, Steve Tarltonstarl...@gmail.com
 wrote:
   I just spent the better half of a day WASTED because I use Firefox
   for
   testing my Wicket development. For the life of me, I couldn't figure
 out
  why
   I couldn't get a simple data picker to center. I wouldn't call myself
 an
   expert at html so I doubted myself. Turns out that Firefox decided
 that
   there is no need to update changes if there is something in cache --
  WTF!!!
   It wasn't until I got so fed up I tried Internet Explorer and saw
   that
  what
   I was doing was working all along. I exited Firefox and restarted
   it
  and
   still not working. It wasn't until I went in and cleared my private
  cache
   and then visited my app again that it did what it was suppose to do.
   I
 of
   course poked around in Firefox to turn that !...@#$%! cache off but the
 only
   thing I found was a setting that would automatically flush it when I
   exited (not closed) Firefox. I will probably still use it for
   normal
   surfing but unless there is a way to stop it from not updating my
   html
   changes, I will NOT be useing it for Wicket development!
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

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




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



Re: jWicket -- jQuery with Wicket integration

2009-07-22 Thread Anton Veretennikov
May I ask about wicketstuff-jquery's future?

-- Tony

On Wed, Jul 22, 2009 at 3:09 AM, Stefan Lindnerlind...@visionet.de wrote:
 Yes! Fixed. Now it's 
 http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3.7/WicketJQueryDemo.war


 -Ursprüngliche Nachricht-
 Von: satar [mailto:starl...@gmail.com]
 Gesendet: Dienstag, 21. Juli 2009 20:27
 An: users@wicket.apache.org
 Betreff: Re: jWicket -- jQuery with Wicket integration


 Just an FYI, the link to the WicketJQueryDemo.war on
 http://subversion.visionet.de/project/WicketJQuery/wiki; is broke. I think
 it should be:

 http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3.6/WicketJQueryDemo.war

 instead its:

 http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3./WicketJQueryDemo.war
 --
 View this message in context: 
 http://www.nabble.com/jWicketjQuery-with-Wicket-integration-tp24584280p24593132.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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



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



Re: jWicket -- jQuery with Wicket integration

2009-07-22 Thread Anton Veretennikov
I mean,

1. What are things in other jQuery integrations that are not already
done in wicketstuff-jquery?
2. When I move to wicket 1.4-rcX, what version I need to use of
wicketstuff-jquery? (I mean conflicts of versions)
3. What are statuses of all different integrations?

-- Tony


On Wed, Jul 22, 2009 at 9:57 PM, Martijn
Dashorstmartijn.dasho...@gmail.com wrote:
 What about it?

 On Wed, Jul 22, 2009 at 2:41 PM, Anton
 Veretennikovanton.veretenni...@gmail.com wrote:
 May I ask about wicketstuff-jquery's future?

 -- Tony

 On Wed, Jul 22, 2009 at 3:09 AM, Stefan Lindnerlind...@visionet.de wrote:
 Yes! Fixed. Now it's 
 http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3.7/WicketJQueryDemo.war


 -Ursprüngliche Nachricht-
 Von: satar [mailto:starl...@gmail.com]
 Gesendet: Dienstag, 21. Juli 2009 20:27
 An: users@wicket.apache.org
 Betreff: Re: jWicket -- jQuery with Wicket integration


 Just an FYI, the link to the WicketJQueryDemo.war on
 http://subversion.visionet.de/project/WicketJQuery/wiki; is broke. I think
 it should be:

 http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3.6/WicketJQueryDemo.war

 instead its:

 http://subversion.visionet.de/project/WicketJQuery/browser/tags/0.3./WicketJQueryDemo.war
 --
 View this message in context: 
 http://www.nabble.com/jWicketjQuery-with-Wicket-integration-tp24584280p24593132.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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



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





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

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



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



Re: border setVisible false

2009-07-19 Thread Anton Veretennikov
If isVisible of border returns false it will definitely hide all it's children.
Paste your code, please.

On Mon, Jul 20, 2009 at 3:44 AM, Fernando
Wermusfernando.wer...@gmail.com wrote:
 Hi all,
     I thought the correct behavior for a border that its visibility is set
 to false, it would be not to decorate the component that it is wrapped.
 If this is not the expected behavior, which component could  achieve it?



 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus


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



Re: border vs Link.setBeforeDisabledLink

2009-07-19 Thread Anton Veretennikov
The code of a constructor is executed only once, so after
setVisible(true) it will not be called again for other isTitle value
(this is not a model). Simply override isVisible of your border. It
will be called each time page is going to be rendered.

-- Tony

On Mon, Jul 20, 2009 at 6:27 AM, Fernando
Wermusfernando.wer...@gmail.com wrote:
 Hi all,

     My use case consists in show a text as a title or as a link.

 I tried to solve this with a border

 boolean isTitle=true;


 H2Border border=new H2Border(border);
 Link link=new Link(link);
 H2border.add(link);
 link.setEnable(!isTitle);
 H2border.setVisible(isTitle);
 add(H2border);

 Because I thougth that,

 a invisible border doesn't make invisible its children. This is reasonable
 because a border is a decorator.

 Like I couldn't find out a way to set invisible the border but the link, I
 finally use method setBeforeDisabledLink which works because I am using a
 Link.

 Anyway, I would like to use a Border instead of this methods with the skill
 to make unvisible the border but not its children.

 How can I achieve this?


 Thanks in advance

 ps: I looked at border.setTransparentResolver(true) without any result.

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus


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



Re: How to LDM refreshed after submit?

2009-07-19 Thread Anton Veretennikov
If you provide methods for updating underlying objects that hold data
in object setters, this must be sufficient. Or may be you forgot about
Feedback messages. If validation goes wrong, setters will not be
called.
Paste your code, please.

On Mon, Jul 20, 2009 at 6:05 AM, Mauro Cianciomaurocian...@gmail.com wrote:
 Hi wicketers!

  The question is the subject of this mail. I have a form with some fields
 and
 I want to those fields being updated after the form submit. All fields share
 the same Loadable Detachable Model.

  The issue is that the LDM is loaded before onSubmit() and i have no chance
 to update the model.

 Any ideas?
 Thanks in advance,
 --
 Mauro Ciancio


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



Re: border vs Link.setBeforeDisabledLink

2009-07-19 Thread Anton Veretennikov
isVisible, not setVisible

H2Border border=new H2Border(border) {
  @Override
  public boolean isVisible() {
 return ...
  }
};

Be aware it may be called several times during page rendering (look JavaDoc).

-- Tony

On Mon, Jul 20, 2009 at 10:48 AM, Fernando
Wermusfernando.wer...@gmail.com wrote:
 I cannot override it, it is final

 On Sun, Jul 19, 2009 at 7:37 PM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 The code of a constructor is executed only once, so after
 setVisible(true) it will not be called again for other isTitle value
 (this is not a model). Simply override isVisible of your border. It
 will be called each time page is going to be rendered.

 -- Tony

 On Mon, Jul 20, 2009 at 6:27 AM, Fernando
 Wermusfernando.wer...@gmail.com wrote:
  Hi all,
 
      My use case consists in show a text as a title or as a link.
 
  I tried to solve this with a border
 
  boolean isTitle=true;
 
 
  H2Border border=new H2Border(border);
  Link link=new Link(link);
  H2border.add(link);
  link.setEnable(!isTitle);
  H2border.setVisible(isTitle);
  add(H2border);
 
  Because I thougth that,
 
  a invisible border doesn't make invisible its children. This is
 reasonable
  because a border is a decorator.
 
  Like I couldn't find out a way to set invisible the border but the link,
 I
  finally use method setBeforeDisabledLink which works because I am using a
  Link.
 
  Anyway, I would like to use a Border instead of this methods with the
 skill
  to make unvisible the border but not its children.
 
  How can I achieve this?
 
 
  Thanks in advance
 
  ps: I looked at border.setTransparentResolver(true) without any result.
 
  --
  Fernando Wermus.
 
  www.linkedin.com/in/fernandowermus
 

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




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus


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



Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-17 Thread Anton Veretennikov
Thank you, Igor and Russell,

As almost everything is working as expected with RewriteRule, why
AjaxFormSubmitBehavior is not working? I see that new additional
redirect appears in logs. Context name is added to URLs when they are
constructed in urlFor?
If so, is it technically possible to recognize it and [optionally with
some setting] remove context name from URLs being constructed inside
wicket itself?

-- Tony

On Fri, Jul 17, 2009 at 6:07 PM, Russell
Simpkinsrussellsimpk...@hotmail.com wrote:

 Actually,
 If you sub domain your apps, then they can all be ROOT.war e.g. 
 app1.myhost.com vs myhost.com/app1 - look at doing virtual hosts in tomcat if 
 interested.
 Russ

 Date: Fri, 17 Jul 2009 13:29:35 +0800
 Subject: Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server
 From: anton.veretenni...@gmail.com
 To: users@wicket.apache.org

 Igor, I have several applications working on one server. They can't
 all be ROOT.war.

 -- Tony

 On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynbergigor.vaynb...@gmail.com 
 wrote:
  rename it to ROOT.war
 
  -igor
 
  On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  Thank you, Igor, for your suggestion.
 
  I need full hiding of app name. Renaming still creates additional path
  in url like http://sitename.com/AppName/
 
  May be there exists other way or my URL Rewriting is not correct:
 
  VirtualHost *:80
   ServerName www.sitename.com
   ServerAlias sitename.com
   ProxyPass / ajp://127.0.0.1:8009/AppName/
   ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
   ProxyPassReverseCookieDomain    localhost  sitename.com
   ProxyPassReverseCookiePath /AppName /
   RewriteEngine  on
   RewriteRule    ^/AppName/(.*)$  /$1  [R]
  /VirtualHost
 
  -- Tony
 
  On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynbergigor.vaynb...@gmail.com
  wrote:
   just rename your war to something else before deploying it.
  
   -igor
  
   On Thu, Jul 16, 2009 at 8:25 AM, Anton
   Veretennikovanton.veretenni...@gmail.com wrote:
   Hello, wicket users and developers,
  
   This is a problem I can't work out myself, I need your help.
  
   In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
   works as expected.
   But in production I try to hide application name (let's say,
   AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
  
   Logs show that somehow application name bobs up when I create a link
   with AjaxFormSubmitBehavior.
   This can be seen from httpd logs (302 status):
  
   xx.22.151.6 - - [16/Jul/2009:14:14:30 +] GET
   /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1 302 312
   http://sitename.com/?wicket:interface=:0:4:::; Mozilla/5.0 (Windows;
   U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
  
   And from catched calls using HttpFox:
  
   GET     302     Redirect to:
   http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
  http://sitename.com
  
  /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
   (Status-Line)   HTTP/1.1 302 Moved Temporarily
   GET     302     Redirect to:
   http://sitename.com/?wicket:interface=:0:3:::
  http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
   (Status-Line)   HTTP/1.1 302 Found
  
   How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
   Other Ajax stuff seems working without problem.
  
   Wicket is 1.4-rc7
  
   --Tony
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

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


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

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



Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Hello, wicket users and developers,

This is a problem I can't work out myself, I need your help.

In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
works as expected.
But in production I try to hide application name (let's say,
AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.

Logs show that somehow application name bobs up when I create a link
with AjaxFormSubmitBehavior.
This can be seen from httpd logs (302 status):

xx.22.151.6 - - [16/Jul/2009:14:14:30 +] GET
/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1 302 312
http://sitename.com/?wicket:interface=:0:4:::; Mozilla/5.0 (Windows;
U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6

And from catched calls using HttpFox:

GET 302 Redirect to:
http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::   
http://sitename.com
/?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
(Status-Line)   HTTP/1.1 302 Moved Temporarily
GET 302 Redirect to:
http://sitename.com/?wicket:interface=:0:3:::   
http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
(Status-Line)   HTTP/1.1 302 Found

How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
Other Ajax stuff seems working without problem.

Wicket is 1.4-rc7

--Tony

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



Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Thank you, Igor, for your suggestion.

I need full hiding of app name. Renaming still creates additional path
in url like http://sitename.com/AppName/

May be there exists other way or my URL Rewriting is not correct:

VirtualHost *:80
  ServerName www.sitename.com
  ServerAlias sitename.com
  ProxyPass / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverseCookieDomainlocalhost  sitename.com
  ProxyPassReverseCookiePath /AppName /
  RewriteEngine  on
  RewriteRule^/AppName/(.*)$  /$1  [R]
/VirtualHost

-- Tony

On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 just rename your war to something else before deploying it.

 -igor

 On Thu, Jul 16, 2009 at 8:25 AM, Anton
 Veretennikovanton.veretenni...@gmail.com wrote:
 Hello, wicket users and developers,

 This is a problem I can't work out myself, I need your help.

 In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
 works as expected.
 But in production I try to hide application name (let's say,
 AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.

 Logs show that somehow application name bobs up when I create a link
 with AjaxFormSubmitBehavior.
 This can be seen from httpd logs (302 status):

 xx.22.151.6 - - [16/Jul/2009:14:14:30 +] GET
 /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1 302 312
 http://sitename.com/?wicket:interface=:0:4:::; Mozilla/5.0 (Windows;
 U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6

 And from catched calls using HttpFox:

 GET     302     Redirect to:
 http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::   
 http://sitename.com
 /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
 (Status-Line)   HTTP/1.1 302 Moved Temporarily
 GET     302     Redirect to:
 http://sitename.com/?wicket:interface=:0:3:::   
 http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
 (Status-Line)   HTTP/1.1 302 Found

 How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
 Other Ajax stuff seems working without problem.

 Wicket is 1.4-rc7

 --Tony

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



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



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



Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-16 Thread Anton Veretennikov
Igor, I have several applications working on one server. They can't
all be ROOT.war.

-- Tony

On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 rename it to ROOT.war

 -igor

 On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 Thank you, Igor, for your suggestion.

 I need full hiding of app name. Renaming still creates additional path
 in url like http://sitename.com/AppName/

 May be there exists other way or my URL Rewriting is not correct:

 VirtualHost *:80
  ServerName www.sitename.com
  ServerAlias sitename.com
  ProxyPass / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverseCookieDomain    localhost  sitename.com
  ProxyPassReverseCookiePath /AppName /
  RewriteEngine  on
  RewriteRule    ^/AppName/(.*)$  /$1  [R]
 /VirtualHost

 -- Tony

 On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynbergigor.vaynb...@gmail.com
 wrote:
  just rename your war to something else before deploying it.
 
  -igor
 
  On Thu, Jul 16, 2009 at 8:25 AM, Anton
  Veretennikovanton.veretenni...@gmail.com wrote:
  Hello, wicket users and developers,
 
  This is a problem I can't work out myself, I need your help.
 
  In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
  works as expected.
  But in production I try to hide application name (let's say,
  AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
 
  Logs show that somehow application name bobs up when I create a link
  with AjaxFormSubmitBehavior.
  This can be seen from httpd logs (302 status):
 
  xx.22.151.6 - - [16/Jul/2009:14:14:30 +] GET
  /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1 302 312
  http://sitename.com/?wicket:interface=:0:4:::; Mozilla/5.0 (Windows;
  U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
 
  And from catched calls using HttpFox:
 
  GET     302     Redirect to:
  http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
 http://sitename.com
 
 /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
  (Status-Line)   HTTP/1.1 302 Moved Temporarily
  GET     302     Redirect to:
  http://sitename.com/?wicket:interface=:0:3:::
 http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
  (Status-Line)   HTTP/1.1 302 Found
 
  How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
  Other Ajax stuff seems working without problem.
 
  Wicket is 1.4-rc7
 
  --Tony
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




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



Submiting a form to external page with SubmitLink

2009-07-10 Thread Anton Veretennikov
Hello, wicket users and developers,

I need to post a form to external page and open it in a new window.

I found an advice to use a simple WebMarkupContainer instead of a form here:
http://markmail.org/message/hpim6m4fyb56kzi5#query:Wicket%20how%20to%20redirect%20with%20POST+page:1+mid:ghuhk35lqosmpswp+state:results

But I want to submit this form via SubmitLink.

Of course, as I don't have a form in SubmitLink constructor it produces only:
a href=# onclick

How to implement this? I'm asking your help on my problem.

Thank you very much.

-- Tony

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



Re: Submiting a form to external page with SubmitLink

2009-07-10 Thread Anton Veretennikov
Honestly, I tried it :) but it didn't work

Thank you.

On Fri, Jul 10, 2009 at 10:50 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 you can subclass form, override oncomponenttag and change the value of
 the action attribute to point to the external page.

 -igor

 On Fri, Jul 10, 2009 at 3:17 AM, Anton
 Veretennikovanton.veretenni...@gmail.com wrote:
 Hello, wicket users and developers,

 I need to post a form to external page and open it in a new window.

 I found an advice to use a simple WebMarkupContainer instead of a form here:
 http://markmail.org/message/hpim6m4fyb56kzi5#query:Wicket%20how%20to%20redirect%20with%20POST+page:1+mid:ghuhk35lqosmpswp+state:results

 But I want to submit this form via SubmitLink.

 Of course, as I don't have a form in SubmitLink constructor it produces only:
 a href=# onclick

 How to implement this? I'm asking your help on my problem.

 Thank you very much.

 -- Tony

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



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



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



Re: Wicket behind proxy (AJP)

2009-07-04 Thread Anton Veretennikov
Sergey,

RewriteRule is not a magic. I checked seveal methods but this one is
at least working.

But if you have only one application, you can replace ROOT app with it
then configuration will be:

#for ROOT app:
VirtualHost *:80
  ServerName www.sitename.ru
  ServerAlias sitename.ru
  ProxyPass / ajp://127.0.0.1:8009/
  ProxyPassReverse / ajp://127.0.0.1:8009/
/VirtualHost

-- Tony

On Sat, Jul 4, 2009 at 2:59 PM, Sergey
Podatelevbrightnesslev...@gmail.com wrote:
 Thanks for all the feedback.
 I see that there is no pure solution by far, I have to try either
 with Tomcat's virtual server's or with the RewriteRule.

 Anton, I wish I could, but unfortunately, I've almost no spare time these 
 days.
 Also, I'm far from being a Wicket expert, you can clarify this by
 looking up questions I've been asking in this list (:

 On Fri, Jul 3, 2009 at 5:19 PM, Anton
 Veretennikovanton.veretenni...@gmail.com wrote:
 Hello, Sergey,

 May be this is not a nice solution, but I could solve this problem
 only by using RewriteRule as follows:

 VirtualHost *:80
  ServerName www.sitename.ru
  ServerAlias sitename.ru
  ProxyPass / ajp://127.0.0.1:8009/SiteApp-1.0-SNAPSHOT/
  ProxyPassReverse / ajp://127.0.0.1:8009/SiteApp-1.0-SNAPSHOT/
  ProxyPassReverseCookieDomain    localhost  sitename.ru
  ProxyPassReverseCookiePath /SiteApp-1.0-SNAPSHOT /
  RewriteEngine  on
  RewriteRule    ^/SiteApp-1\.0-SNAPSHOT/(.*)$  /$1  [R]
 /VirtualHost

 -- Tony

 P.S. By the way if you are Russian and have time to help me with
 wicket.ru site I would appreciate it.






 On Fri, Jul 3, 2009 at 3:41 PM, Marc Endemli...@e-beyond.de wrote:
 Hello Sergey,

 I had the same problems  but I solved them using the virtual-host-feature of
 tomcat.

 After that the ProxyPass looks very easy:
 VirtualHost...
 ...
 ProxyPass / ajp://localhost/
 ...
 /VirtualHost

 yours

 marc

 Sergey Podatelev schrieb:

 Hello,

 I know this question had already been asked here, but I still couldn't
 get it working on my side.
 What I'm trying to achieve, is a configuration of Wicket running as
 filter on Tomcat with an Apache host as a frontend. Particular problem
 is with the context path.

 Here's my configuration:
 Tomcat's server.xml:

 ...
 Connector port=8099 protocol=AJP/1.3 redirectPort=8443
 enableLookups=false /
 ...

 Apache's sites-enabled/mysite:

 ...
 VirtualHost 127.0.0.1:80
  ServerName mysite
  IfModule mod_proxy.c
    ProxyRequests Off
    Proxy *
      Order deny,allow
      Deny from all
      Allow from localhost
    /Proxy

    ProxyPass        / http://localhost:8084/Mysite/
    ProxyPassReverse / http://localhost:8084/Mysite/

    # this doesn't work
    #ProxyPass        / ajp://localhost:8099/Mysite/
    #ProxyPassReverse / ajp://localhost:8099/Mysite/

    # this doesn't work either
    #ProxyPass        / ajp://localhost:8099/Mysite/
    #ProxyPassReverse / http://localhost:8084/Mysite/

    ProxyPassReverseCookiePath /Mysite /
  /IfModule
 /VirtualHost
 ...

 The only way I got it working with (almost) no issues is the first
 one, where both ProxyPass and ProxyPassReverse directives use HTTP
 protocol.
 If I try AJP for both, or, as was stated somewhere in the mailing list
 here, HTTP for ProxyPassReverse and AJP for ProxyPass.

 The specific problem is when I access http://mysite/, some Wicket
 requests work fine, some, however, are pointing to
 http://mysite/Mysite/ (this, for instance, happens when I do
 setResponsePage(Page.class, pageParameters). At first, this doesn't
 seem to affect anything, but I have Infinite Redirect Loop error on
 404 page, which is mounted the way it's described on Wicket's wiki.

 I'm not sure, whose problem is this, Wicket's or AJP's.
 I'm sure someone had similar issues and got them solved, I'd really
 appreciate any comments.




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



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





 --
 sp

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



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



Re: Wicket behind proxy (AJP)

2009-07-03 Thread Anton Veretennikov
Hello, Sergey,

May be this is not a nice solution, but I could solve this problem
only by using RewriteRule as follows:

VirtualHost *:80
  ServerName www.sitename.ru
  ServerAlias sitename.ru
  ProxyPass / ajp://127.0.0.1:8009/SiteApp-1.0-SNAPSHOT/
  ProxyPassReverse / ajp://127.0.0.1:8009/SiteApp-1.0-SNAPSHOT/
  ProxyPassReverseCookieDomainlocalhost  sitename.ru
  ProxyPassReverseCookiePath /SiteApp-1.0-SNAPSHOT /
  RewriteEngine  on
  RewriteRule^/SiteApp-1\.0-SNAPSHOT/(.*)$  /$1  [R]
/VirtualHost

-- Tony

P.S. By the way if you are Russian and have time to help me with
wicket.ru site I would appreciate it.






On Fri, Jul 3, 2009 at 3:41 PM, Marc Endemli...@e-beyond.de wrote:
 Hello Sergey,

 I had the same problems  but I solved them using the virtual-host-feature of
 tomcat.

 After that the ProxyPass looks very easy:
 VirtualHost...
 ...
 ProxyPass / ajp://localhost/
 ...
 /VirtualHost

 yours

 marc

 Sergey Podatelev schrieb:

 Hello,

 I know this question had already been asked here, but I still couldn't
 get it working on my side.
 What I'm trying to achieve, is a configuration of Wicket running as
 filter on Tomcat with an Apache host as a frontend. Particular problem
 is with the context path.

 Here's my configuration:
 Tomcat's server.xml:

 ...
 Connector port=8099 protocol=AJP/1.3 redirectPort=8443
 enableLookups=false /
 ...

 Apache's sites-enabled/mysite:

 ...
 VirtualHost 127.0.0.1:80
  ServerName mysite
  IfModule mod_proxy.c
    ProxyRequests Off
    Proxy *
      Order deny,allow
      Deny from all
      Allow from localhost
    /Proxy

    ProxyPass        / http://localhost:8084/Mysite/
    ProxyPassReverse / http://localhost:8084/Mysite/

    # this doesn't work
    #ProxyPass        / ajp://localhost:8099/Mysite/
    #ProxyPassReverse / ajp://localhost:8099/Mysite/

    # this doesn't work either
    #ProxyPass        / ajp://localhost:8099/Mysite/
    #ProxyPassReverse / http://localhost:8084/Mysite/

    ProxyPassReverseCookiePath /Mysite /
  /IfModule
 /VirtualHost
 ...

 The only way I got it working with (almost) no issues is the first
 one, where both ProxyPass and ProxyPassReverse directives use HTTP
 protocol.
 If I try AJP for both, or, as was stated somewhere in the mailing list
 here, HTTP for ProxyPassReverse and AJP for ProxyPass.

 The specific problem is when I access http://mysite/, some Wicket
 requests work fine, some, however, are pointing to
 http://mysite/Mysite/ (this, for instance, happens when I do
 setResponsePage(Page.class, pageParameters). At first, this doesn't
 seem to affect anything, but I have Infinite Redirect Loop error on
 404 page, which is mounted the way it's described on Wicket's wiki.

 I'm not sure, whose problem is this, Wicket's or AJP's.
 I'm sure someone had similar issues and got them solved, I'd really
 appreciate any comments.




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



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



Re: DefaultDataTable loses pagination after filtering

2009-04-28 Thread Anton Veretennikov
I use 1.4-SNAPSHOT and

repository
  idwicket-snaps/id
  urlhttp://wicketstuff.org/maven/repository/url
  snapshots
  /snapshots
  releases
  /releases
/repository


On Tue, Apr 28, 2009 at 11:06 PM, Jason Rosenberg jbrosenb...@gmail.com wrote:

 Great,

 When do we expect 1.4-rc3 to be available (that's the fixed version,
 according to the jira listed there)

 Thanks,

 Jason



 Anton Veretennikov wrote:

 If I'm true, this was solved.
 https://issues.apache.org/jira/browse/WICKET-2175

 On Tue, Apr 28, 2009 at 8:25 AM, Jason Rosenberg jbrosenb...@gmail.com
 wrote:

 If it matters, I forgot to mention, I'm using wicket 1.4-rc2

 Jason



 Jason Rosenberg wrote:

 Hi,

 I have an issue with the DefaultDataTable, and I'm wondering if this is
 something that I should expect to be supported, or not.

 (I've found the same problem with the AjaxFallbackDefaultDataTable)

 I implemented filtering, with the FilterToolbar, and made a few of the
 columns use TextFilteredPropertyColumn

 I set things up roughly similar to the wicket-stuff phone book
 example

 One thing I've noticed, is that if I have enough elements in the table,
 to
 force pagination initially, and then I enter filtered text in the
 toolbar
 to
 reduce the number of data items, such that there's only one page of
 data,
 when I then subsequently clear the filter, the full data gets restored
 to
 the data table, except that the top widgets for navigating the
 pagination
 don't display.

 In other words, the pagination navigation links at top right (e.g.  
 1
 2
 3 ) go away when the filtering removes the need for paginationbut
 then clearing the filter does not restore that top toolbar

 Thoughts?

 Thanks,

 Jason



 --
 View this message in context:
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23267903.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23279021.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Strange maven warning

2009-04-27 Thread Anton Veretennikov
Hello all,

Strange warning I began to see last time:

[WARNING] POM for
'org.apache.wicket:wicket-extensions:pom:1.4-SNAPSHOT:compile' is
invalid. It will be ignored for artifact resolution. Reason: Failed to
validate POM for project org.apache.wicket:wicket-extensions at
Artifact [org.apache.wicket:wicket-extensions:pom:1.4-SNAPSHOT:compile]
[surefire:test]

What it can be?

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



Re: DefaultDataTable loses pagination after filtering

2009-04-27 Thread Anton Veretennikov
If I'm true, this was solved.
https://issues.apache.org/jira/browse/WICKET-2175

On Tue, Apr 28, 2009 at 8:25 AM, Jason Rosenberg jbrosenb...@gmail.com wrote:

 If it matters, I forgot to mention, I'm using wicket 1.4-rc2

 Jason



 Jason Rosenberg wrote:

 Hi,

 I have an issue with the DefaultDataTable, and I'm wondering if this is
 something that I should expect to be supported, or not.

 (I've found the same problem with the AjaxFallbackDefaultDataTable)

 I implemented filtering, with the FilterToolbar, and made a few of the
 columns use TextFilteredPropertyColumn

 I set things up roughly similar to the wicket-stuff phone book example

 One thing I've noticed, is that if I have enough elements in the table, to
 force pagination initially, and then I enter filtered text in the toolbar
 to
 reduce the number of data items, such that there's only one page of data,
 when I then subsequently clear the filter, the full data gets restored to
 the data table, except that the top widgets for navigating the pagination
 don't display.

 In other words, the pagination navigation links at top right (e.g.   1
 2
 3 ) go away when the filtering removes the need for paginationbut
 then clearing the filter does not restore that top toolbar

 Thoughts?

 Thanks,

 Jason



 --
 View this message in context: 
 http://www.nabble.com/DefaultDataTable-loses-pagination-after-filtering-tp23267884p23267903.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



AbstractColumn's getSortProperty()

2009-04-23 Thread Anton Veretennikov
Hi, Wicket community

While working with AbstractColumn I found that overriding
getSortProperty() does not make column sortable until isSortable() is
not overrided also.

AbstractColumn::isSortable() is looking like now:

public boolean isSortable()
{
return sortProperty != null;
}

May be changing it to return getSortProperty() != null; will solve
this problem?

-- Tony

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



jQuery query for all Ajax-enabled links

2009-04-23 Thread Anton Veretennikov
Hi, all wicket users,

I hope somebody knows.
What is the jQuery filter for all wicket Ajax-enabled links?

Wicket version is 1.4-SNAPSHOT.

-- Tony.

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



Re: simple Link

2009-03-29 Thread Anton Veretennikov
http://www.nabble.com/Link-text-td13585396.html

On Sun, Mar 29, 2009 at 2:28 PM, Khlystov Alexandr
allex.khlys...@gmail.com wrote:

 I've googled a bit words wicket textlink and found only
 http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg08875.html,
 with your Igor comments.

 But there is no answer to my question. Is there a way without span, in a
 tag to set a caption via Link ( or inheriters) ? Because this doesn't work

 /| add(new Link(loginLink, new Model(new caption)) {|/

 Igor Vaynberg пишет:

 also you can google textlink.

 -igor

 On Sat, Mar 28, 2009 at 12:10 PM, Martin Makundi
 martin.maku...@koodaripalvelut.com wrote:


 Is this what you want:

 a href=# wicket:id=loginLink
 wicket:message=title:login_link_tooltipwicket:message
 key=login_caption_property//a

 **
 Martin

 2009/3/28 Khlystov Alexandr ITR a...@ovservice.org:


 I want to create java code for simple button, and to override caption
 from
 html:

      a href=# wicket:id=loginLinkloginLink caption/a

 How it should look like withou span?

 --
 Khlystov Alexandr


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




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




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





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



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



Re: FeedbackPanel.isVisible override

2009-03-29 Thread Anton Veretennikov
anyMessage();

On Sun, Mar 29, 2009 at 1:56 PM, Luther Baker lutherba...@gmail.com wrote:
 I am using the built-in functionality of the FeedbackPanel and I'd like to
 tweak it just a bit.

 I have some default padding/margin setup for that div ... and so even empty,
 it takes up some space on my page. I'd like to hide it altogether if no
 errors are present.

 Is there a well-known function I can call from my override of
 FeedbackPanel.isVisible() to tell me if Validation failed?

 Or - is there a more appropriate answer here to effectually do the same
 thing?

 -Luther


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



Re: using jquery with wicket

2009-03-19 Thread Anton Veretennikov
As you told about blockUI.
There is Jquery integration from WicketStuff.
You need to add

dependency
groupIdorg.wicketstuff/groupId
artifactIdwicketstuff-jquery/artifactId
version1.4-SNAPSHOT/version
/dependency

to your pom.xml


Then create behaviour that will add JavaScript on demand:

public class BlockerBehaviour extends JQueryBehavior {
private static final ResourceReference BLOCKUI_JS = new
CompressedResourceReference(BlockerBehaviour.class,
jquery.blockUI.js);

@Override protected CharSequence getOnReadyScript() {
return null;
}

@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascriptReference(getBlockUIJs());
}

private ResourceReference getBlockUIJs() {
return BLOCKUI_JS;
}

}

add jquery.blockUI.js to resources for BlockerBehaviour class to locate it

and then

add this behaviour to panel or page where you like to have it.

and use it something like:

ajaxFallbackLink.add(new SimpleAttributeAppender(onclick,
$.blockUI({ message: null, overlayCSS: {opacity: '0.1'} }), ;));

and to unblock:

  @Override
  protected void onAjaxUpdate(AjaxRequestTarget target) {
super.onAjaxUpdate(target);
target.appendJavascript($.unblockUI(););
  }


-- Tony


On Thu, Mar 19, 2009 at 7:26 PM, fachhoch fachh...@gmail.com wrote:

 please suggest me on what changes should i make to Veil component in
 wicketstuff-minis to  use it as a mask or block my page ?

 igor.vaynberg wrote:

 see the Veil component in wicketstuff-minis project, that should give
 you all the clues you need.

 -ig

 On Tue, Mar 17, 2009 at 12:57 PM, fachhoch fachh...@gmail.com wrote:

 I want to use jquery block  plugin    to block my page for ajax requests
  ,
 please help me with some tutorials   how to integrate wicket and jquery.
 url for jquery block plugin
 http://www.malsup.com/jquery/block/#demos

 the script  provided by jquery to block page is   $.blockUI();   now
 please
 suggest me how to call this through wicket
 --
 View this message in context:
 http://www.nabble.com/using-jquery---with-wicket-tp22566645p22566645.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




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


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



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



Re: newSession() not being called

2009-03-19 Thread Anton Veretennikov
May be your web.xml have wrong WicketApplication attached?

filter
filter-namewicket.FILTERNAME/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-value*YOUR 
WicketApplication/param-value
/init-param
init-param
  param-nameconfiguration/param-name
  param-valuedeployment/param-value
/init-param
/filter


On Thu, Mar 19, 2009 at 6:42 PM, Johan Compagner jcompag...@gmail.com wrote:
 which one do you override?

 On Wed, Mar 18, 2009 at 18:42, Edwin Ansicodd erik.g.hau...@gmail.comwrote:


 have a SpringWebApplication with overridden newSession, but for some reason
 newSession is not being called.  Have closed browsers and started new
 browsers, authenticating, but newSession in the WebApplication is not being
 called.

 What does this mean?  Anyone have any ideas what might be wrong?
 --
 View this message in context:
 http://www.nabble.com/newSession%28%29-not-being-called-tp22584600p22584600.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: using jquery with wicket

2009-03-19 Thread Anton Veretennikov
I'm a novice. It will be good to be added automatically to all ajax
links like suggested on blockUI site:

$().ajaxStart($.blockUI).ajaxStop($.unblockUI);

   @Override protected CharSequence getOnReadyScript() {
   return $().ajaxStart($.blockUI).ajaxStop($.unblockUI);
   }

But this is not working (because this is a jQuery Ajax detection function)

So, for now (as a novice) I simply add to any AjaxLink that need to
start blocking on onclick event

add(new SimpleAttributeAppender(onclick,
$.blockUI({ message: null, overlayCSS: {opacity: '0.1'} }), ;));

(it may be converted to a class of course)

and unblock on any component that will be returned in Ajax response
(added to target)

If you know better approach, please, let me know.

-- Tony.





On Thu, Mar 19, 2009 at 9:31 PM, fachhoch fachh...@gmail.com wrote:

 This is great explanation thank you , I am looking more  to create
 something like
 org.apache.wicket.extensions.ajax.markup.html.WicketAjaxIndicatorAppender  .
 I am trying to do  something like    IndicatingAjaxLink  to
 AjaxFallbackDefaultDataTable   and trying follow whats in
 IndicatingAjaxLink




 and  here is what i did to your code

 public class BlockerBehaviour extends JQueryBehavior {

        private static final ResourceReference BLOCKUI_JS = new
 CompressedResourceReference(BlockerBehaviour.class, jquery.blockUI.js);



       �...@override protected CharSequence getOnReadyScript() {
            return null;
        }

       �...@override
        public void renderHead(IHeaderResponse response) {
                super.renderHead(response);
                response.renderJavascriptReference(getBlockUIJs());
        }

        private ResourceReference getBlockUIJs() {
                return BLOCKUI_JS;
        }

        public String getMarkupId()
        {
                return getComponent().getMarkupId();
        }

 }
 just added the method
 public String getMarkupId()
        {
                return getComponent().getMarkupId();
        }

 now not sure where to add this $.blockUI({ message: null, overlayCSS:
 {opacity: '0.1'} }), ;));

 and   $.unblockUI();




 Anton Veretennikov wrote:

 As you told about blockUI.
 There is Jquery integration from WicketStuff.
 You need to add

     dependency
             groupIdorg.wicketstuff/groupId
             artifactIdwicketstuff-jquery/artifactId
             version1.4-SNAPSHOT/version
         /dependency

 to your pom.xml


 Then create behaviour that will add JavaScript on demand:

 public class BlockerBehaviour extends JQueryBehavior {
       private static final ResourceReference BLOCKUI_JS = new
 CompressedResourceReference(BlockerBehaviour.class,
 jquery.blockUI.js);

       @Override protected CharSequence getOnReadyScript() {
             return null;
       }

       @Override
       public void renderHead(IHeaderResponse response) {
               super.renderHead(response);
               response.renderJavascriptReference(getBlockUIJs());
       }

       private ResourceReference getBlockUIJs() {
               return BLOCKUI_JS;
       }

 }

 add jquery.blockUI.js to resources for BlockerBehaviour class to locate it

 and then

 add this behaviour to panel or page where you like to have it.

 and use it something like:

 ajaxFallbackLink.add(new SimpleAttributeAppender(onclick,
 $.blockUI({ message: null, overlayCSS: {opacity: '0.1'} }), ;));

 and to unblock:

       @Override
       protected void onAjaxUpdate(AjaxRequestTarget target) {
         super.onAjaxUpdate(target);
         target.appendJavascript($.unblockUI(););
       }


 -- Tony


 On Thu, Mar 19, 2009 at 7:26 PM, fachhoch fachh...@gmail.com wrote:

 please suggest me on what changes should i make to Veil component in
 wicketstuff-minis to  use it as a mask or block my page ?

 igor.vaynberg wrote:

 see the Veil component in wicketstuff-minis project, that should give
 you all the clues you need.

 -ig

 On Tue, Mar 17, 2009 at 12:57 PM, fachhoch fachh...@gmail.com wrote:

 I want to use jquery block  plugin    to block my page for ajax
 requests
  ,
 please help me with some tutorials   how to integrate wicket and
 jquery.
 url for jquery block plugin
 http://www.malsup.com/jquery/block/#demos

 the script  provided by jquery to block page is   $.blockUI();   now
 please
 suggest me how to call this through wicket
 --
 View this message in context:
 http://www.nabble.com/using-jquery---with-wicket-tp22566645p22566645.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http

Re: Dynamic Tabbedpanel Page

2009-03-19 Thread Anton Veretennikov
All tabs may be instances of the same class.
If you can make it universal - make a loop of your fields (and of
markup) and provide a model for them that will look for exact fields
for values.

-- Tony

On Thu, Mar 19, 2009 at 9:34 PM, dyolf.knip manig...@gmail.com wrote:

 HI,
 I have a object with many properties(fields) which i want to display in my
 page. I want to organize them in tabs for clarity i look the examples for
 Tabbed Panel but they all are too static. If you want to add new tab you
 have to add pageName$panelName mark-up file for each new tab. What is the
 best way to develop my page so the adding of new fields in each tab and new
 tabs to be as dynamically as possible.
 --
 View this message in context: 
 http://www.nabble.com/Dynamic-Tabbedpanel-Page-tp22601006p22601006.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Wicket:enclosure does not work with navigation toolbar of data table

2009-03-19 Thread Anton Veretennikov
wicket:enclosure must have child attribute to know which child
component to ask about visibility?
Example:

wicket:enclosure child=name
trthFirst/thtd wicket:id=first/td/tr
trthLast/thtd wicket:id=last/td/tr
/wicket:enclosure

-- Tony

On Thu, Mar 19, 2009 at 4:04 PM, Leszek Gawron lgaw...@apache.org wrote:
 Robin Shine wrote:

 Hi All,
 It seems that the navigation toolbar of data table component can not be
 displayed if there is a link on the page surrounded with the
 wicket:enclosure tag. Here is my very simple test case:

 TestPage.html:

 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8/
 /head
 body
 wicket:enclosurea wicket:id=linklink/a/wicket:enclosure
 table wicket:id=data/table
 /body
 /html

 TestPage.java:

 package test;

 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;

 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable;
 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.NavigationToolbar;
 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.link.Link;
 import org.apache.wicket.markup.repeater.Item;
 import org.apache.wicket.markup.repeater.data.IDataProvider;
 import org.apache.wicket.model.IModel;
 import org.apache.wicket.model.Model;

 public class TestPage extends WebPage {    public TestPage() {
 add(new Link(link) {
 @Override
 public void onClick() {
 }           �...@override
 public boolean isVisible() {
 return false;
 }
 });
 AbstractColumn[] columns = new AbstractColumn[]{
 new AbstractColumn(new Model(value)) {
 public void populateItem(Item cellItem, String componentId, IModel
 rowModel) {
 cellItem.add(new Label(componentId, rowModel.getObject().toString()));
 }                    },
 };
 IDataProvider dataProvider = new IDataProvider() {
 public Iterator iterator(int first, int count) {
 ListString values = new ArrayListString();
 for (int i=0; icount; i++)
 values.add(String.valueOf(i + first));
 return values.iterator();
 }
 public int size() {
 return 100;
 }
 public IModel model(Object object) {
 return new Model((Serializable) object);
 }
 public void detach() {
 }
 };
 DataTable dataTable = new DataTable(data, columns, dataProvider, 10);
 dataTable.addBottomToolbar(new NavigationToolbar(dataTable));
 add(dataTable);
 }
 }

 Add this page to a wicket application, then mount and navigate to the
 page:
 The navigation toolbar of the data table is not displayed. However if the
 wicket:enclosure tag is removed from the template, the toobar then
 displays correctly.
 Is this a bug? Or is there anything obvious I missed?

 I stumbled upon exactly the same poblem. The only thing I can tell you: you
 don't need wicket:enclosure in your case. Simply remove the tag and as
 Link.isVisible returns false it will not be rendered.

 If you put anything else apart from link/ into wicket:enclosure you should
 see correct behavior.

 This probably IS a bug. File a JIRA request for that.

 --
 Leszek Gawron

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



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



Re: Wicket:enclosure does not work with navigation toolbar of data table

2009-03-19 Thread Anton Veretennikov
Thank you for the tip!
I thought that wicket was confused what to hide.

-- Tony

On Fri, Mar 20, 2009 at 7:19 AM, Robin Shine ro...@pmease.com wrote:
 Hi Anton,

 The enclosure tag does not need to have a child attribute if there is only 
 one child enclosed. OTOH, the problem remains the same even if you add the 
 child attribute.

 Regards
 Robin

 --- On Thu, 3/19/09, Anton Veretennikov anton.veretenni...@gmail.com wrote:

 From: Anton Veretennikov anton.veretenni...@gmail.com
 Subject: Re: Wicket:enclosure does not work with navigation toolbar of data  
 table
 To: users@wicket.apache.org
 Date: Thursday, March 19, 2009, 11:09 PM

 wicket:enclosure must have child attribute to know which child
 component to ask about visibility?
 Example:

         wicket:enclosure child=name
             trthFirst/thtd wicket:id=first/td/tr
             trthLast/thtd wicket:id=last/td/tr
         /wicket:enclosure

 -- Tony

 On Thu, Mar 19, 2009 at 4:04 PM, Leszek Gawron lgaw...@apache.org wrote:
 Robin Shine wrote:

 Hi All,
 It seems that the navigation toolbar of data table component can not be
 displayed if there is a link on the page surrounded with the
 wicket:enclosure tag. Here is my very simple test case:

 TestPage.html:

 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8/
 /head
 body
 wicket:enclosurea wicket:id=linklink/a/wicket:enclosure
 table wicket:id=data/table
 /body
 /html

 TestPage.java:

 package test;

 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;

 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable;
 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.NavigationToolbar;
 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.link.Link;
 import org.apache.wicket.markup.repeater.Item;
 import org.apache.wicket.markup.repeater.data.IDataProvider;
 import org.apache.wicket.model.IModel;
 import org.apache.wicket.model.Model;

 public class TestPage extends WebPage {    public TestPage() {
 add(new Link(link) {
 @Override
 public void onClick() {
 }           �...@override
 public boolean isVisible() {
 return false;
 }
 });
 AbstractColumn[] columns = new AbstractColumn[]{
 new AbstractColumn(new Model(value)) {
 public void populateItem(Item cellItem, String componentId, IModel
 rowModel) {
 cellItem.add(new Label(componentId, rowModel.getObject().toString()));
 }                    },
 };
 IDataProvider dataProvider = new IDataProvider() {
 public Iterator iterator(int first, int count) {
 ListString values = new ArrayListString();
 for (int i=0; icount; i++)
 values.add(String.valueOf(i + first));
 return values.iterator();
 }
 public int size() {
 return 100;
 }
 public IModel model(Object object) {
 return new Model((Serializable) object);
 }
 public void detach() {
 }
 };
 DataTable dataTable = new DataTable(data, columns, dataProvider, 10);
 dataTable.addBottomToolbar(new NavigationToolbar(dataTable));
 add(dataTable);
 }
 }

 Add this page to a wicket application, then mount and navigate to the
 page:
 The navigation toolbar of the data table is not displayed. However if the
 wicket:enclosure tag is removed from the template, the toobar then
 displays correctly.
 Is this a bug? Or is there anything obvious I missed?

 I stumbled upon exactly the same poblem. The only thing I can tell you: you
 don't need wicket:enclosure in your case. Simply remove the tag and as
 Link.isVisible returns false it will not be rendered.

 If you put anything else apart from link/ into wicket:enclosure you should
 see correct behavior.

 This probably IS a bug. File a JIRA request for that.

 --
 Leszek Gawron

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



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



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



Re: setRowsPerPage with AjaxFallbackDefaultDataTable

2009-03-17 Thread Anton Veretennikov
Replacing onBeforeRender() in NavigationToolbar to

  @Override
  public boolean isVisible() {
return table.getPageCount()1;
  }

works well.
Do I need to open issue?


On Mon, Mar 16, 2009 at 4:57 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 It is AjaxFallbackDefaultDataTable from wicket-extensions 1.4-SNAPSHOT.
 Table refreshes fully with toolbar inside it, table has id of course.

 NavigationToolbar (base for AjaxNavigationToolbar) seems to have

       �...@override
        protected void onBeforeRender()
        {
                setVisible(table.getPageCount()  1);
                super.onBeforeRender();
        }

 But I think it will never fire after it becomes invisible.

 On Mon, Mar 16, 2009 at 4:36 PM, Linda van der Pal
 lvd...@heritageagenturen.nl wrote:
 Hmm, is the topbar a separate component? If so you'll simply have to add it
 to the target as well.

 Anton Veretennikov wrote:

 Thank you, Linda.
 I don't hide it. It hides itself. I suppose it must show itself again
 if rowsCount  rowsPerPage.

 -- Tony.

 On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal
 lvd...@heritageagenturen.nl wrote:


 When you hide the top bar, do you also set setOutputMarkupPlaceholderTag
 to
 true? (If not, the Ajax-code can't find the component anymore.)

 Linda

 Anton Veretennikov wrote:


 Good day!

 My impression about AjaxFallbackDefaultDataTable is - fantastic!
 Thank you, Igor!

 I'm implementing small Ajax panel that changes amount of rows shown.
 It looks like standart 20 40 60 80 ...
 Everything is working but:
 Once top bar with navigation   1 2 3 4   hides (when amount of
 rows is less then rowsPerPage) it never shows itself again.
 What I do in a AjaxLink onClick is:

             if (dataTable != null) {
               dataTable.setRowsPerPage(getCurrentCount());
               target.addComponent(dataTable);
             }

 What I need to do to inform topbar about changes in rows?


 -- Tony

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

  


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database:
 270.11.15/2003 - Release Date: 03/15/09 14:07:00




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




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


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database:
 270.11.15/2003 - Release Date: 03/15/09 14:07:00




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




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



Re: setRowsPerPage with AjaxFallbackDefaultDataTable

2009-03-16 Thread Anton Veretennikov
Thank you, Linda.
I don't hide it. It hides itself. I suppose it must show itself again
if rowsCount  rowsPerPage.

-- Tony.

On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal
lvd...@heritageagenturen.nl wrote:
 When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to
 true? (If not, the Ajax-code can't find the component anymore.)

 Linda

 Anton Veretennikov wrote:

 Good day!

 My impression about AjaxFallbackDefaultDataTable is - fantastic!
 Thank you, Igor!

 I'm implementing small Ajax panel that changes amount of rows shown.
 It looks like standart 20 40 60 80 ...
 Everything is working but:
 Once top bar with navigation   1 2 3 4   hides (when amount of
 rows is less then rowsPerPage) it never shows itself again.
 What I do in a AjaxLink onClick is:

              if (dataTable != null) {
                dataTable.setRowsPerPage(getCurrentCount());
                target.addComponent(dataTable);
              }

 What I need to do to inform topbar about changes in rows?


 -- Tony

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


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database:
 270.11.15/2003 - Release Date: 03/15/09 14:07:00




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



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



Re: setRowsPerPage with AjaxFallbackDefaultDataTable

2009-03-16 Thread Anton Veretennikov
It is AjaxFallbackDefaultDataTable from wicket-extensions 1.4-SNAPSHOT.
Table refreshes fully with toolbar inside it, table has id of course.

NavigationToolbar (base for AjaxNavigationToolbar) seems to have

@Override
protected void onBeforeRender()
{
setVisible(table.getPageCount()  1);
super.onBeforeRender();
}

But I think it will never fire after it becomes invisible.

On Mon, Mar 16, 2009 at 4:36 PM, Linda van der Pal
lvd...@heritageagenturen.nl wrote:
 Hmm, is the topbar a separate component? If so you'll simply have to add it
 to the target as well.

 Anton Veretennikov wrote:

 Thank you, Linda.
 I don't hide it. It hides itself. I suppose it must show itself again
 if rowsCount  rowsPerPage.

 -- Tony.

 On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal
 lvd...@heritageagenturen.nl wrote:


 When you hide the top bar, do you also set setOutputMarkupPlaceholderTag
 to
 true? (If not, the Ajax-code can't find the component anymore.)

 Linda

 Anton Veretennikov wrote:


 Good day!

 My impression about AjaxFallbackDefaultDataTable is - fantastic!
 Thank you, Igor!

 I'm implementing small Ajax panel that changes amount of rows shown.
 It looks like standart 20 40 60 80 ...
 Everything is working but:
 Once top bar with navigation   1 2 3 4   hides (when amount of
 rows is less then rowsPerPage) it never shows itself again.
 What I do in a AjaxLink onClick is:

             if (dataTable != null) {
               dataTable.setRowsPerPage(getCurrentCount());
               target.addComponent(dataTable);
             }

 What I need to do to inform topbar about changes in rows?


 -- Tony

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

  


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database:
 270.11.15/2003 - Release Date: 03/15/09 14:07:00




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




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


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database:
 270.11.15/2003 - Release Date: 03/15/09 14:07:00




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



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



setRowsPerPage with AjaxFallbackDefaultDataTable

2009-03-15 Thread Anton Veretennikov
Good day!

My impression about AjaxFallbackDefaultDataTable is - fantastic!
Thank you, Igor!

I'm implementing small Ajax panel that changes amount of rows shown.
It looks like standart 20 40 60 80 ...
Everything is working but:
Once top bar with navigation   1 2 3 4   hides (when amount of
rows is less then rowsPerPage) it never shows itself again.
What I do in a AjaxLink onClick is:

  if (dataTable != null) {
dataTable.setRowsPerPage(getCurrentCount());
target.addComponent(dataTable);
  }

What I need to do to inform topbar about changes in rows?


-- Tony

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



Re: Why are we top-posting...

2009-03-15 Thread Anton Veretennikov
Those who receive first part of e-mail through sms message are very
thankful if valuable part is on top.

On Sun, Mar 15, 2009 at 5:35 PM, Johan Compagner jcompag...@gmail.com wrote:
 I vote for top or interleaved, dont bottom post thats the most horrible one

 On 14/03/2009, taha siddiqi tawushaf...@gmail.com wrote:
 Hi,

 The story goes like this...

 Once I was brave enough to take on linux-kernal programming and joined
 a mailing list. My first post brought me a link which was not an
 answer to
 my question but an advice and today I feel we all need to look at it

 http://www.caliburn.nl/topposting.html

 Every time I try to read an archived mail to solve my problem I have
 to scroll the page up and down... Why don't we bottom-post to make our
 mails more readable and future proof

 HUMBLE REQUEST
 taha

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



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



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



Re: log4j

2009-03-09 Thread Anton Veretennikov
slf4j is used as a layer and log4j by default is contained in pom.xml if you
use Wicket quickstart.

You can add it manualy:
dependency
  groupIdorg.slf4j/groupId
  artifactIdslf4j-log4j12/artifactId
  version1.4.2/version
/dependency
dependency
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
  version1.2.14/version
/dependency


slf4j usage:


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SomeClass {

  private static final Logger logger =
LoggerFactory.getLogger(SomeClass.class);
  ...
  logger.debug(One value: {}, var0);
  logger.debug(Two values: {}, {}, var0, var1);
  logger.debug(Three values: {}, {}, {}, new Object[] {var0, var1, var2});

}


On Tue, Mar 10, 2009 at 12:25 PM, srinivas.r...@sifycorp.com wrote:

 Hi,

 How to integrate log4j with wicket.

 Regards,
 Srinivasa Raju CH.


 Get your world in your inbox!

 Mail, widgets, documents, spreadsheets, organizer and much more with your
 Sifymail WIYI id!
 Log on to http://www.sify.com


 ** DISCLAIMER **
 Information contained and transmitted by this E-MAIL is proprietary to
 Sify Limited and is intended for use only by the individual or entity to
 which it is addressed, and may contain information that is privileged,
 confidential or exempt from disclosure under applicable law. If this is a
 forwarded message, the content of this E-MAIL may not have been sent with
 the authority of the Company. If you are not the intended recipient, an
 agent of the intended recipient or a  person responsible for delivering the
 information to the named recipient,  you are notified that any use,
 distribution, transmission, printing, copying or dissemination of this
 information in any way or in any manner is strictly prohibited. If you have
 received this communication in error, please delete this mail  notify us
 immediately at ad...@sifycorp.com



Re: localization and session expiration

2009-03-06 Thread Anton Veretennikov
If cookie is already set, get it and use, if no then set it as browser's
getLocale() and save to cookie.

To get cookies:

Cookie[] cookies =
((WebRequest)getRequestCycle().getRequest()).getCookies();
if (cookies!=null) {
for (int i = 0; i  cookies.length; i++) {
  Cookie cookie = cookies[i];
  ...
}
}

To set cookie:

Cookie cookie = new Cookie(language, selectedLanguage);
cookie.setMaxAge(2678400); //31 день
((WebResponse) getRequestCycle().getResponse()).addCookie(cookie);

-- Tony

On Fri, Mar 6, 2009 at 7:26 PM, Jonas barney...@gmail.com wrote:

 No need to use spring for that, the locale of a WebSession is
 initialized from ServletRequest#getLocale()
 by default, which is based on the Accept-Language header.

 On Fri, Mar 6, 2009 at 12:57 PM, Leszek Gawron lgaw...@apache.org wrote:
  Anton Veretennikov wrote:
 
  May be cookie?
 
  You can also try to extract the locale used by user in the browser from
  request header:
 
 
 http://www.acegisecurity.org/guide/springsecurity.html#concurrent-sessions
 
  GET /guide/springsecurity.html HTTP/1.1
  Host: www.acegisecurity.org
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6)
  Gecko/2009011913 Firefox/3.0.6
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: pl,en;q=0.7,en-us;q=0.3
 
^
 
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 300
  Connection: keep-alive
  Referer: http://www.acooke.org/cute/SessionLim0.html
  If-Modified-Since: Tue, 15 Apr 2008 17:18:26 GMT
  If-None-Match: 28002-5ba09-44aec96961c80
  Cache-Control: max-age=0
 
  HTTP/1.x 304 Not Modified
  Date: Fri, 06 Mar 2009 11:52:59 GMT
  Server: Apache/2.2.8 (EL)
  Connection: close
  Etag: 28002-5ba09-44aec96961c80
 
  Spring can resolve locale for you in a flexible manner:
 
 
 http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/web/servlet/LocaleResolver.html
 
  in your case:
 
 
 http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/web/servlet/i18n/AcceptHeaderLocaleResolver.html
 
  To integrate wicket with spring in this context override
  WebApplication.newSession:
 
  @Override
  public Session newSession( Request request, Response response ) {
 return new WebSession( request ) {
 @Override
 public Locale getLocale() {
 return LocaleContextHolder.getLocale();
 }
 };
  }
 
 
  --
  Leszek Gawron
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




Re: localization and session expiration

2009-03-05 Thread Anton Veretennikov
May be cookie?

On Fri, Mar 6, 2009 at 12:20 PM, ElSe els...@mail.ru wrote:


 Hello!

 I have a question: in my application there are several locales and the user
 can choose locale on the fly. Locale is stored in the session and all is ok
 while the session exists. But! When the session is expired the application
 must say user about this and it does - using default locale. It is
 unpleasant - from the user's point of view the application changes locale
 by
 its own will. Is there any workaraound for such situation? The only thought
 that I have is to add locale parameter to every url but it is so ugly...

 Best regards,
 Elena.
 --
 View this message in context:
 http://www.nabble.com/localization-and-session-expiration-tp22366384p22366384.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Question re: style and variation

2009-03-03 Thread Anton Veretennikov
String getFileNameTemplate() {
  return 
fileName([styleName][_variationName])[language[_territory][.codese...@modifier]];
}


On Wed, Mar 4, 2009 at 11:47 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 but there is a special rule about the _ prefix to indicate a
 variation, where as a simple empty bracket is easy - its always
 consistent [style][variation][locale]. just my two cents.

 personally i never had to use variations myself, but there were
 threads in the past about them, so i guess someone somewhere is using
 them.

 -igor

 On Tue, Mar 3, 2009 at 8:44 PM, jWeekend jweekend_for...@cabouge.com wrote:

 Igor,

 I'd say your

 HomePage[style_variation]_US_en.html that way a style only version can be
 HomePage[style]_US_en.html and variation only would be
 HomePage[_variation]_US_en.html we can then forbid the use of _ in style and
 variation names. 

 is the best option (so far). There are no special rules or empty brakets
 unless you choose to use Wicket specific features (style and variation).
 And, it somehow looks less ugly than some of the other suggestions,
 especially mine!

 Thanks for the example use-case; I expect someone, somewhere out there is
 making good use of variations.

 Regards - Cemal
 http://jWeekend.com jWeekend




 igor.vaynberg wrote:

 i dont like the fact that there is now a -, (, ), and _ in the name

 i can live with something like HomePage()(variation)_US_en.html vs

 HomePage()(variation)(US_en)

 maybe even simpler would be do

 HomePage[style_variation]_US_en.html

 that way a style only version can be HomePage[style]_US_en.html

 and variation only would be HomePage[_variation]_US_en.html

 we can then forbid the use of _ in style and variation names.

 its a little more complex but avoids an empty [] or () to indicate
 variation only markup.

 I still think that HomePage[][variation][US_en].html does look cleaner
 and simpler then

 HomePage[][variation]_US_en.html or HomePage[_variation]_US_en.html

 because in HomePage[][variation][US_en] you only have to know [] as
 separators.


 the usecases for variations vary. suppose your application is divided
 in two frames and the user can select the color scheme for both.
 having a single value for style wont work here, it has to be per
 component.

 -igor

 On Tue, Mar 3, 2009 at 7:18 PM, jWeekend jweekend_for...@cabouge.com
 wrote:

 Igor,

 In Java, variant is the least significant component(s) of a locale:
 lang_COUNTRY_variant  .

 Wicket adds style and variation (right?) so maybe only these components
 of
 the filename should have a special marker. That way, some level of
 consistentcy is maintained and the Wicket specific style  variation are
 clearly identifiable.
 So, for example, HomePage-aStyle(aVariation)_th_TH_TH.html   - in this
 example you'd need to double check that dash and the parenthesis can be
 used
 in file names on all relevant filesystems (you could even make the
 markers
 configurable I suppose in Application#init and/or using system properties
 ...). Of course it's not pretty; at the end of the day, your stuck with
 character strings so you can't stop people confusing themselves (and
 maybe
 Wicket too) with funky file names using these special characters.

 The javadoc says: Whereas Styles are Session (user) specific, variations
 are
 component specific. E.g. if the Style is ocean and the Variation is
 NorthSea, than the resources are given the names suffixed with
 _ocean_NorthSea.

 Is there a standard use-case where the solution involves using variation
 (that's in keeping with the original intent)?

 Regards - Cemal
 http://jWeekend.com jWeekend


 igor.vaynberg wrote:

 yeah, not to mention it might get quiet ugly

 mypanel_style.html
 mypanel_style__variant.html
 mypanel_style__variant___locale.html

 mypanel__variant.html

 mypanel___locale.html

 markup(locale)(style)(variant) might work and is simpler

 mypanel(en_us).html

 mypanel(en_us)()(variant).html

 but sure looks ugly... :)

 not sure which one is better

 -igor


 On Mon, Mar 2, 2009 at 11:30 PM, Ned Collyer ned.coll...@gmail.com
 wrote:

 Yep :).

 I at least 1 thought on this matter.

 Currently, I have a webapp module - which will have my components in
 it,
 and my components variants.

 I have pushed all i18n into properties files - which is working thus
 far.

 I allow the clients to customise their HTML from another folder - ie,
 someplace on the filesystem outside of the war.

 The lookup for html files for me .. should be

 custom dir - myPanel_myVariant_myStyle.html
 webapp.war - myPanel_myVariant_myStyle.html
 custom dir - myPanel_myVariant.html
 webapp.war - myPanel_myVariant.html
 custom dir - myPanel_myStyle.html
 webapp.war - myPanel_myStyle.html
 custom dir - myPanel.html
 webapp.war - myPanel.html

 I have a similar thing in place for properties files - and the result
 is
 actually a merge of the properties between filesystem and classpath.

 So many ways to skin a cat.  If only we could skin this cat 

Re: Question re: style and variation

2009-03-03 Thread Anton Veretennikov
per each component?

On Wed, Mar 4, 2009 at 11:52 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 we cannot make this overridable because it breaks encapsulation.

 imagine you write a table component that includes styles and
 variations. i then want to use it in my app where i have overwritten
 this syntax, now my app wont pick up your styles and variations.

 so we need to come up with something simple that everyone can agree on.

 -igor

 On Tue, Mar 3, 2009 at 8:48 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 String getFileNameTemplate() {
  return 
 fileName([styleName][_variationName])[language[_territory][.codese...@modifier]];
 }


 On Wed, Mar 4, 2009 at 11:47 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 but there is a special rule about the _ prefix to indicate a
 variation, where as a simple empty bracket is easy - its always
 consistent [style][variation][locale]. just my two cents.

 personally i never had to use variations myself, but there were
 threads in the past about them, so i guess someone somewhere is using
 them.

 -igor

 On Tue, Mar 3, 2009 at 8:44 PM, jWeekend jweekend_for...@cabouge.com 
 wrote:

 Igor,

 I'd say your

 HomePage[style_variation]_US_en.html that way a style only version can be
 HomePage[style]_US_en.html and variation only would be
 HomePage[_variation]_US_en.html we can then forbid the use of _ in style 
 and
 variation names. 

 is the best option (so far). There are no special rules or empty brakets
 unless you choose to use Wicket specific features (style and variation).
 And, it somehow looks less ugly than some of the other suggestions,
 especially mine!

 Thanks for the example use-case; I expect someone, somewhere out there is
 making good use of variations.

 Regards - Cemal
 http://jWeekend.com jWeekend




 igor.vaynberg wrote:

 i dont like the fact that there is now a -, (, ), and _ in the name

 i can live with something like HomePage()(variation)_US_en.html vs

 HomePage()(variation)(US_en)

 maybe even simpler would be do

 HomePage[style_variation]_US_en.html

 that way a style only version can be HomePage[style]_US_en.html

 and variation only would be HomePage[_variation]_US_en.html

 we can then forbid the use of _ in style and variation names.

 its a little more complex but avoids an empty [] or () to indicate
 variation only markup.

 I still think that HomePage[][variation][US_en].html does look cleaner
 and simpler then

 HomePage[][variation]_US_en.html or HomePage[_variation]_US_en.html

 because in HomePage[][variation][US_en] you only have to know [] as
 separators.


 the usecases for variations vary. suppose your application is divided
 in two frames and the user can select the color scheme for both.
 having a single value for style wont work here, it has to be per
 component.

 -igor

 On Tue, Mar 3, 2009 at 7:18 PM, jWeekend jweekend_for...@cabouge.com
 wrote:

 Igor,

 In Java, variant is the least significant component(s) of a locale:
 lang_COUNTRY_variant  .

 Wicket adds style and variation (right?) so maybe only these components
 of
 the filename should have a special marker. That way, some level of
 consistentcy is maintained and the Wicket specific style  variation are
 clearly identifiable.
 So, for example, HomePage-aStyle(aVariation)_th_TH_TH.html   - in this
 example you'd need to double check that dash and the parenthesis can be
 used
 in file names on all relevant filesystems (you could even make the
 markers
 configurable I suppose in Application#init and/or using system properties
 ...). Of course it's not pretty; at the end of the day, your stuck with
 character strings so you can't stop people confusing themselves (and
 maybe
 Wicket too) with funky file names using these special characters.

 The javadoc says: Whereas Styles are Session (user) specific, variations
 are
 component specific. E.g. if the Style is ocean and the Variation is
 NorthSea, than the resources are given the names suffixed with
 _ocean_NorthSea.

 Is there a standard use-case where the solution involves using variation
 (that's in keeping with the original intent)?

 Regards - Cemal
 http://jWeekend.com jWeekend


 igor.vaynberg wrote:

 yeah, not to mention it might get quiet ugly

 mypanel_style.html
 mypanel_style__variant.html
 mypanel_style__variant___locale.html

 mypanel__variant.html

 mypanel___locale.html

 markup(locale)(style)(variant) might work and is simpler

 mypanel(en_us).html

 mypanel(en_us)()(variant).html

 but sure looks ugly... :)

 not sure which one is better

 -igor


 On Mon, Mar 2, 2009 at 11:30 PM, Ned Collyer ned.coll...@gmail.com
 wrote:

 Yep :).

 I at least 1 thought on this matter.

 Currently, I have a webapp module - which will have my components in
 it,
 and my components variants.

 I have pushed all i18n into properties files - which is working thus
 far.

 I allow the clients to customise their HTML from another folder - ie,
 someplace on the filesystem outside of the war

Re: Question re: style and variation

2009-03-03 Thread Anton Veretennikov
extend common base component?

On Wed, Mar 4, 2009 at 11:56 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 that would be extremely tedious if you want to override it for all
 components in your application :)

 -igor

 On Tue, Mar 3, 2009 at 8:54 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 per each component?

 On Wed, Mar 4, 2009 at 11:52 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 we cannot make this overridable because it breaks encapsulation.

 imagine you write a table component that includes styles and
 variations. i then want to use it in my app where i have overwritten
 this syntax, now my app wont pick up your styles and variations.

 so we need to come up with something simple that everyone can agree on.

 -igor

 On Tue, Mar 3, 2009 at 8:48 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 String getFileNameTemplate() {
  return 
 fileName([styleName][_variationName])[language[_territory][.codese...@modifier]];
 }


 On Wed, Mar 4, 2009 at 11:47 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 but there is a special rule about the _ prefix to indicate a
 variation, where as a simple empty bracket is easy - its always
 consistent [style][variation][locale]. just my two cents.

 personally i never had to use variations myself, but there were
 threads in the past about them, so i guess someone somewhere is using
 them.

 -igor

 On Tue, Mar 3, 2009 at 8:44 PM, jWeekend jweekend_for...@cabouge.com 
 wrote:

 Igor,

 I'd say your

 HomePage[style_variation]_US_en.html that way a style only version can 
 be
 HomePage[style]_US_en.html and variation only would be
 HomePage[_variation]_US_en.html we can then forbid the use of _ in style 
 and
 variation names. 

 is the best option (so far). There are no special rules or empty brakets
 unless you choose to use Wicket specific features (style and variation).
 And, it somehow looks less ugly than some of the other suggestions,
 especially mine!

 Thanks for the example use-case; I expect someone, somewhere out there is
 making good use of variations.

 Regards - Cemal
 http://jWeekend.com jWeekend




 igor.vaynberg wrote:

 i dont like the fact that there is now a -, (, ), and _ in the name

 i can live with something like HomePage()(variation)_US_en.html vs

 HomePage()(variation)(US_en)

 maybe even simpler would be do

 HomePage[style_variation]_US_en.html

 that way a style only version can be HomePage[style]_US_en.html

 and variation only would be HomePage[_variation]_US_en.html

 we can then forbid the use of _ in style and variation names.

 its a little more complex but avoids an empty [] or () to indicate
 variation only markup.

 I still think that HomePage[][variation][US_en].html does look cleaner
 and simpler then

 HomePage[][variation]_US_en.html or HomePage[_variation]_US_en.html

 because in HomePage[][variation][US_en] you only have to know [] as
 separators.


 the usecases for variations vary. suppose your application is divided
 in two frames and the user can select the color scheme for both.
 having a single value for style wont work here, it has to be per
 component.

 -igor

 On Tue, Mar 3, 2009 at 7:18 PM, jWeekend jweekend_for...@cabouge.com
 wrote:

 Igor,

 In Java, variant is the least significant component(s) of a locale:
 lang_COUNTRY_variant  .

 Wicket adds style and variation (right?) so maybe only these components
 of
 the filename should have a special marker. That way, some level of
 consistentcy is maintained and the Wicket specific style  variation 
 are
 clearly identifiable.
 So, for example, HomePage-aStyle(aVariation)_th_TH_TH.html   - in this
 example you'd need to double check that dash and the parenthesis can be
 used
 in file names on all relevant filesystems (you could even make the
 markers
 configurable I suppose in Application#init and/or using system 
 properties
 ...). Of course it's not pretty; at the end of the day, your stuck with
 character strings so you can't stop people confusing themselves (and
 maybe
 Wicket too) with funky file names using these special characters.

 The javadoc says: Whereas Styles are Session (user) specific, 
 variations
 are
 component specific. E.g. if the Style is ocean and the Variation is
 NorthSea, than the resources are given the names suffixed with
 _ocean_NorthSea.

 Is there a standard use-case where the solution involves using 
 variation
 (that's in keeping with the original intent)?

 Regards - Cemal
 http://jWeekend.com jWeekend


 igor.vaynberg wrote:

 yeah, not to mention it might get quiet ugly

 mypanel_style.html
 mypanel_style__variant.html
 mypanel_style__variant___locale.html

 mypanel__variant.html

 mypanel___locale.html

 markup(locale)(style)(variant) might work and is simpler

 mypanel(en_us).html

 mypanel(en_us)()(variant).html

 but sure looks ugly... :)

 not sure which one is better

 -igor


 On Mon, Mar 2, 2009 at 11:30 PM, Ned Collyer ned.coll...@gmail.com
 wrote:

 Yep :).

 I at least 1

Re: Question re: style and variation

2009-03-03 Thread Anton Veretennikov
Only if someone needs to implement other file name policy and at the
same time don't want to copy  paste.
My mite only: this is encapsulating AND flexible but...difficult to code.

On Wed, Mar 4, 2009 at 12:01 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 for every panel, textfield, label, tabbedpanel, etc, etc, etc?

 -igor

 On Tue, Mar 3, 2009 at 8:58 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 extend common base component?

 On Wed, Mar 4, 2009 at 11:56 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 that would be extremely tedious if you want to override it for all
 components in your application :)

 -igor

 On Tue, Mar 3, 2009 at 8:54 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 per each component?

 On Wed, Mar 4, 2009 at 11:52 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 we cannot make this overridable because it breaks encapsulation.

 imagine you write a table component that includes styles and
 variations. i then want to use it in my app where i have overwritten
 this syntax, now my app wont pick up your styles and variations.

 so we need to come up with something simple that everyone can agree on.

 -igor

 On Tue, Mar 3, 2009 at 8:48 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 String getFileNameTemplate() {
  return 
 fileName([styleName][_variationName])[language[_territory][.codese...@modifier]];
 }


 On Wed, Mar 4, 2009 at 11:47 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 but there is a special rule about the _ prefix to indicate a
 variation, where as a simple empty bracket is easy - its always
 consistent [style][variation][locale]. just my two cents.

 personally i never had to use variations myself, but there were
 threads in the past about them, so i guess someone somewhere is using
 them.

 -igor

 On Tue, Mar 3, 2009 at 8:44 PM, jWeekend jweekend_for...@cabouge.com 
 wrote:

 Igor,

 I'd say your

 HomePage[style_variation]_US_en.html that way a style only version 
 can be
 HomePage[style]_US_en.html and variation only would be
 HomePage[_variation]_US_en.html we can then forbid the use of _ in 
 style and
 variation names. 

 is the best option (so far). There are no special rules or empty 
 brakets
 unless you choose to use Wicket specific features (style and 
 variation).
 And, it somehow looks less ugly than some of the other suggestions,
 especially mine!

 Thanks for the example use-case; I expect someone, somewhere out there 
 is
 making good use of variations.

 Regards - Cemal
 http://jWeekend.com jWeekend




 igor.vaynberg wrote:

 i dont like the fact that there is now a -, (, ), and _ in the name

 i can live with something like HomePage()(variation)_US_en.html vs

 HomePage()(variation)(US_en)

 maybe even simpler would be do

 HomePage[style_variation]_US_en.html

 that way a style only version can be HomePage[style]_US_en.html

 and variation only would be HomePage[_variation]_US_en.html

 we can then forbid the use of _ in style and variation names.

 its a little more complex but avoids an empty [] or () to indicate
 variation only markup.

 I still think that HomePage[][variation][US_en].html does look cleaner
 and simpler then

 HomePage[][variation]_US_en.html or HomePage[_variation]_US_en.html

 because in HomePage[][variation][US_en] you only have to know [] as
 separators.


 the usecases for variations vary. suppose your application is divided
 in two frames and the user can select the color scheme for both.
 having a single value for style wont work here, it has to be per
 component.

 -igor

 On Tue, Mar 3, 2009 at 7:18 PM, jWeekend jweekend_for...@cabouge.com
 wrote:

 Igor,

 In Java, variant is the least significant component(s) of a locale:
 lang_COUNTRY_variant  .

 Wicket adds style and variation (right?) so maybe only these 
 components
 of
 the filename should have a special marker. That way, some level of
 consistentcy is maintained and the Wicket specific style  variation 
 are
 clearly identifiable.
 So, for example, HomePage-aStyle(aVariation)_th_TH_TH.html   - in 
 this
 example you'd need to double check that dash and the parenthesis can 
 be
 used
 in file names on all relevant filesystems (you could even make the
 markers
 configurable I suppose in Application#init and/or using system 
 properties
 ...). Of course it's not pretty; at the end of the day, your stuck 
 with
 character strings so you can't stop people confusing themselves (and
 maybe
 Wicket too) with funky file names using these special characters.

 The javadoc says: Whereas Styles are Session (user) specific, 
 variations
 are
 component specific. E.g. if the Style is ocean and the Variation is
 NorthSea, than the resources are given the names suffixed with
 _ocean_NorthSea.

 Is there a standard use-case where the solution involves using 
 variation
 (that's in keeping with the original intent)?

 Regards - Cemal
 http://jWeekend.com jWeekend


 igor.vaynberg wrote:

 yeah, not to mention it might

Re: 1.4 RC2 multiple forms within a border

2009-03-02 Thread Anton Veretennikov
16 hours ago: 
http://www.nabble.com/Multiple-Forms-in-A-Border-tp22252817p22273577.html

On Mon, Mar 2, 2009 at 5:44 PM, Ron Meyers
christ...@armstrongconsulting.net wrote:

 I'm having a page contained in a border. Both the border and the  pages
 contain forms (adjacent not nested forms). This worked perfectly with 1.4
 RC1, now with RC2 aparantly a submit in one form causes the models of both
 forms to be updated with the values of the submitted form.

 Does anybody else experience this behavior?
 --
 View this message in context: 
 http://www.nabble.com/1.4-RC2---multiple-forms-within-a-border-tp22285838p22285838.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Switching between markup files for borders

2009-03-02 Thread Anton Veretennikov
Done.
I'm not sure although that I'm not doing something wrong.
https://issues.apache.org/jira/browse/WICKET-2136

On Mon, Mar 2, 2009 at 9:54 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 I would think you would be better off attaching this to a JIRA.

 On Mon, Mar 2, 2009 at 3:00 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 Quickstart is attached.
 Tested with last 1.4-SNAPSHOT.

 On Sun, Mar 1, 2009 at 12:29 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
  Hmm. Strange things I see with image paths in my borders with variants.
  My page is mounted like:
 
  mountBookmarkablePage(/getFrame, OrderPaymentPage.class);
 
  So, when I reach my theme with:
 
  .../getFrame?theme=white
  - everything is alright.
 
  But asking it with:
 
  .../getFrame/theme/white
  - and my border images are touching server with
  .../getFrame/theme/images/bar/white/t.gif address.
  So, as there is no images there, 404 Not Found is returned for them.
  They must be .../images/bar/white/t.gif
 
  Quickstart?
 
 
  On Thu, Feb 26, 2009 at 2:52 PM, Anton Veretennikov
  anton.veretenni...@gmail.com wrote:
  Igor, I did it already :)
  Jeremy suggests another approach - with no variations.
 
  On Thu, Feb 26, 2009 at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
  return new roundedcornerborder(...) { string getvariation() { return
  black; }};
 
  -igor
 
  On Wed, Feb 25, 2009 at 11:45 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
  Bummer - knew it couldn't be as easy as it looked.  :)  I don't
 suppose it's
  something you could do like this, then?
 
  Border.html
  td class=foo
 
  main_white.css
  TD.foo { background-image: (/url/whiteimages/bar.jpg); }
 
  main_black.css
  TD.foo { background-image: (/url/blackimages/bar.jpg); }
 
  As to performance, not sure I understood the question, but selecting
 the
  themed borders rather than normal borders doesn't slow anything
 down.  Is
  that what you meant?
 
 
  On Thu, Feb 26, 2009 at 1:15 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  It will be better of course, Jeremy.
 
  My borders have differences not only in css but in images in table
  cells. Images are taken from other folders depending on theme name.
  Yes, I know, rounded corners can be made with pure css. But my war
  with browsers is endless.
 
  I thought about some variable that could be replaces with exact name
  of theme in html part. But onComponentTagBody is final in Border
  class. And I'm far from Wicket guru.
 
  Another question is performance. When borders are many on a page
 their
  customazation is time consuming. Am I right?
 
 
 
  On Thu, Feb 26, 2009 at 1:54 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
   Obviously I have nothing other than the name of your file to base
 this
   thought on, but I'll throw it out there anyway
  
   If the only difference between the two is color, just use localized
 /
  themed
   css files and use a single HTML file.  This will save you a ton of
 code
   duplication over having MyBorder_white, MyPanel_white, etc.
  
   Maybe you already are, but I couldn't bare to see what appears to
 be pain
   and suffering without at least trying to help.  :)
  
   On Wed, Feb 25, 2009 at 10:13 AM, Anton Veretennikov 
   anton.veretenni...@gmail.com wrote:
  
   Hi!
  
   I have a problem with theme support for borders.
   I want to exchange real markup of border depending on theme name,
 for
   example:
  
   RoundedCornerBorder_black.html
   RoundedCornerBorder_white.html
  
   How to do this in Wicket?
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

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




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


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



Another borders scenario

2009-03-02 Thread Anton Veretennikov
Hello!

I'm again with borders. May be I'm not using them right...
Is everything okey with this mix of border and child:


Block.html:
wicket:panel
  div wicket:id=border
wicket:child /
  /div
/wicket:panel

Block.java (extends Panel)
   add(new RoundedCornersPanelGrey(border));


ChildBlock.html:
wicket:extend
  a wicket:id=linklink/a
/wicket:extend

ChildBlock.java (extends Block)
   add(new Link(link)

It doesn't work with border in Block (can't find component).
It works only without border or with border in ChildBlock around a.

-- Tony.

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



Re: Another borders scenario

2009-03-02 Thread Anton Veretennikov
The only way I found is to hold reference to added border inside to be
extended class and to do

getBorder().add(new Link(link));

in child constructor.

May be there exists better approach?

On Mon, Mar 2, 2009 at 11:41 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Hello!

 I'm again with borders. May be I'm not using them right...
 Is everything okey with this mix of border and child:

 
 Block.html:
    wicket:panel
      div wicket:id=border
        wicket:child /
      /div
    /wicket:panel
 
 Block.java (extends Panel)
   add(new RoundedCornersPanelGrey(border));

 
 ChildBlock.html:
    wicket:extend
      a wicket:id=linklink/a
    /wicket:extend
 
 ChildBlock.java (extends Block)
   add(new Link(link)

 It doesn't work with border in Block (can't find component).
 It works only without border or with border in ChildBlock around a.

 -- Tony.


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



Re: Switching between markup files for borders

2009-02-28 Thread Anton Veretennikov
Hmm. Strange things I see with image paths in my borders with variants.
My page is mounted like:

mountBookmarkablePage(/getFrame, OrderPaymentPage.class);

So, when I reach my theme with:

.../getFrame?theme=white
- everything is alright.

But asking it with:

.../getFrame/theme/white
- and my border images are touching server with
.../getFrame/theme/images/bar/white/t.gif address.
So, as there is no images there, 404 Not Found is returned for them.
They must be .../images/bar/white/t.gif

Quickstart?


On Thu, Feb 26, 2009 at 2:52 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Igor, I did it already :)
 Jeremy suggests another approach - with no variations.

 On Thu, Feb 26, 2009 at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 return new roundedcornerborder(...) { string getvariation() { return
 black; }};

 -igor

 On Wed, Feb 25, 2009 at 11:45 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
 Bummer - knew it couldn't be as easy as it looked.  :)  I don't suppose it's
 something you could do like this, then?

 Border.html
 td class=foo

 main_white.css
 TD.foo { background-image: (/url/whiteimages/bar.jpg); }

 main_black.css
 TD.foo { background-image: (/url/blackimages/bar.jpg); }

 As to performance, not sure I understood the question, but selecting the
 themed borders rather than normal borders doesn't slow anything down.  Is
 that what you meant?


 On Thu, Feb 26, 2009 at 1:15 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 It will be better of course, Jeremy.

 My borders have differences not only in css but in images in table
 cells. Images are taken from other folders depending on theme name.
 Yes, I know, rounded corners can be made with pure css. But my war
 with browsers is endless.

 I thought about some variable that could be replaces with exact name
 of theme in html part. But onComponentTagBody is final in Border
 class. And I'm far from Wicket guru.

 Another question is performance. When borders are many on a page their
 customazation is time consuming. Am I right?



 On Thu, Feb 26, 2009 at 1:54 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
  Obviously I have nothing other than the name of your file to base this
  thought on, but I'll throw it out there anyway
 
  If the only difference between the two is color, just use localized /
 themed
  css files and use a single HTML file.  This will save you a ton of code
  duplication over having MyBorder_white, MyPanel_white, etc.
 
  Maybe you already are, but I couldn't bare to see what appears to be pain
  and suffering without at least trying to help.  :)
 
  On Wed, Feb 25, 2009 at 10:13 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  Hi!
 
  I have a problem with theme support for borders.
  I want to exchange real markup of border depending on theme name, for
  example:
 
  RoundedCornerBorder_black.html
  RoundedCornerBorder_white.html
 
  How to do this in Wicket?
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 

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




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


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




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



Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Hi!

I have a problem with theme support for borders.
I want to exchange real markup of border depending on theme name, for example:

RoundedCornerBorder_black.html
RoundedCornerBorder_white.html

How to do this in Wicket?

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



Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Thank you very much!

On Thu, Feb 26, 2009 at 12:19 AM, Michael Sparer michael.spa...@gmx.at wrote:


 http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-LocaleandStyle

 regards


 Anton Veretennikov wrote:

 Hi!

 I have a problem with theme support for borders.
 I want to exchange real markup of border depending on theme name, for
 example:

 RoundedCornerBorder_black.html
 RoundedCornerBorder_white.html

 How to do this in Wicket?

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





 -
 Michael Sparer
 http://techblog.molindo.at
 --
 View this message in context: 
 http://www.nabble.com/Switching-between-markup-files-for-borders-tp22206100p22207458.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Quickstart for jar

2009-02-25 Thread Anton Veretennikov
Hi,

Do we have jar quickstart with resources filter added by default?

-- Tony.

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



Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
It will be better of course, Jeremy.

My borders have differences not only in css but in images in table
cells. Images are taken from other folders depending on theme name.
Yes, I know, rounded corners can be made with pure css. But my war
with browsers is endless.

I thought about some variable that could be replaces with exact name
of theme in html part. But onComponentTagBody is final in Border
class. And I'm far from Wicket guru.

Another question is performance. When borders are many on a page their
customazation is time consuming. Am I right?



On Thu, Feb 26, 2009 at 1:54 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 Obviously I have nothing other than the name of your file to base this
 thought on, but I'll throw it out there anyway

 If the only difference between the two is color, just use localized / themed
 css files and use a single HTML file.  This will save you a ton of code
 duplication over having MyBorder_white, MyPanel_white, etc.

 Maybe you already are, but I couldn't bare to see what appears to be pain
 and suffering without at least trying to help.  :)

 On Wed, Feb 25, 2009 at 10:13 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 Hi!

 I have a problem with theme support for borders.
 I want to exchange real markup of border depending on theme name, for
 example:

 RoundedCornerBorder_black.html
 RoundedCornerBorder_white.html

 How to do this in Wicket?

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




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


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



Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Igor, I did it already :)
Jeremy suggests another approach - with no variations.

On Thu, Feb 26, 2009 at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 return new roundedcornerborder(...) { string getvariation() { return
 black; }};

 -igor

 On Wed, Feb 25, 2009 at 11:45 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
 Bummer - knew it couldn't be as easy as it looked.  :)  I don't suppose it's
 something you could do like this, then?

 Border.html
 td class=foo

 main_white.css
 TD.foo { background-image: (/url/whiteimages/bar.jpg); }

 main_black.css
 TD.foo { background-image: (/url/blackimages/bar.jpg); }

 As to performance, not sure I understood the question, but selecting the
 themed borders rather than normal borders doesn't slow anything down.  Is
 that what you meant?


 On Thu, Feb 26, 2009 at 1:15 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 It will be better of course, Jeremy.

 My borders have differences not only in css but in images in table
 cells. Images are taken from other folders depending on theme name.
 Yes, I know, rounded corners can be made with pure css. But my war
 with browsers is endless.

 I thought about some variable that could be replaces with exact name
 of theme in html part. But onComponentTagBody is final in Border
 class. And I'm far from Wicket guru.

 Another question is performance. When borders are many on a page their
 customazation is time consuming. Am I right?



 On Thu, Feb 26, 2009 at 1:54 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
  Obviously I have nothing other than the name of your file to base this
  thought on, but I'll throw it out there anyway
 
  If the only difference between the two is color, just use localized /
 themed
  css files and use a single HTML file.  This will save you a ton of code
  duplication over having MyBorder_white, MyPanel_white, etc.
 
  Maybe you already are, but I couldn't bare to see what appears to be pain
  and suffering without at least trying to help.  :)
 
  On Wed, Feb 25, 2009 at 10:13 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  Hi!
 
  I have a problem with theme support for borders.
  I want to exchange real markup of border depending on theme name, for
  example:
 
  RoundedCornerBorder_black.html
  RoundedCornerBorder_white.html
 
  How to do this in Wicket?
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 

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




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


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



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



What happens with AjaxSelfUpdatingTimerBehavior on slow response

2009-02-22 Thread Anton Veretennikov
Hello, wicket users,

Seems to me that AjaxSelfUpdatingTimerBehavior works great on my dev
machine but does not on remote server.
Firebug shows only count of requests and no reponses.
So may be this happens when response is too late and new request is started?
I wonder of variant that will wait for response for some period of time.

-- Tony

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



Re: What happens with AjaxSelfUpdatingTimerBehavior on slow response

2009-02-22 Thread Anton Veretennikov
Excuse me, it works!
My test was invalid.

On Mon, Feb 23, 2009 at 1:10 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Hello, wicket users,

 Seems to me that AjaxSelfUpdatingTimerBehavior works great on my dev
 machine but does not on remote server.
 Firebug shows only count of requests and no reponses.
 So may be this happens when response is too late and new request is started?
 I wonder of variant that will wait for response for some period of time.

 -- Tony


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



Re: Ways to fully disable back button

2009-02-20 Thread Anton Veretennikov
Thank you for your time, Martijn.

I found at last wiki page about this.
http://cwiki.apache.org/WICKET/browser-back-forward.html
Hope it is actual.

-- Tony

On Fri, Feb 20, 2009 at 3:31 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
 See the gmail interface: they have an undo button when you delete or
 mark a message as spam. They provide a feedback message with a link
 that allows the user to undo the operation.

 2 messages have been marked as spam (_undo_)

 Martijn

 On Fri, Feb 20, 2009 at 8:39 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Really, my question is as old as browser :)

 The more correct subject is Rules to make Wicket app back-button-aware.

 For example if user presses add or remove button and she wants to
 undo it by pressing back button.
 What to do if:
 1. I can make undo for these operations?
 2. I can't make undo? How to show user some info or what can be done?

 -- Tony


 On Fri, Feb 20, 2009 at 2:04 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
 you can't. use google to see why.

 Martijn

 On Fri, Feb 20, 2009 at 6:02 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, wicket users,

 I would like to know how to write wicket links so that it will not be
 possible to return back.

 Thank you.

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





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

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



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





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

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



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



Ways to fully disable back button

2009-02-19 Thread Anton Veretennikov
Hello, wicket users,

I would like to know how to write wicket links so that it will not be
possible to return back.

Thank you.

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



Re: Ways to fully disable back button

2009-02-19 Thread Anton Veretennikov
Really, my question is as old as browser :)

The more correct subject is Rules to make Wicket app back-button-aware.

For example if user presses add or remove button and she wants to
undo it by pressing back button.
What to do if:
1. I can make undo for these operations?
2. I can't make undo? How to show user some info or what can be done?

-- Tony


On Fri, Feb 20, 2009 at 2:04 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
 you can't. use google to see why.

 Martijn

 On Fri, Feb 20, 2009 at 6:02 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, wicket users,

 I would like to know how to write wicket links so that it will not be
 possible to return back.

 Thank you.

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





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

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



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



Re: Effects library in Wicket

2009-02-16 Thread Anton Veretennikov
Also look at other JQuery integrations with Wicket:
http://code.google.com/p/wickext/
and
http://code.google.com/p/jquery4wicket/
From one of postings on wickext forum I saw they plan to merge.

-- Tony

On Mon, Feb 16, 2009 at 9:12 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 See some of the JS integrations in:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/

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

 On Sun, Feb 15, 2009 at 8:04 PM, Azzeddine Daddah waarhei...@gmail.comwrote:

 Hi Wicket users,
 Is there any effects library integrated in Wicket? In the Wicket examples
 they just use the reference of the javascript files in the head of the page
 and then append the javascript causing the effect to the component like:
 target.appendJavascript(new Effect.Highlight($(' + c2.getMarkupId() +
 ')););

 Regards,
 Hbiloo



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



ComponentPropertyModel inside some border

2009-02-15 Thread Anton Veretennikov
Hello, Wicket users,

Please, help me to find the difference between theese two
ComponentPropertyModel's (inside some Panel):

add(new Label(currencyPayed, new
ComponentPropertyModelString(currentPriceSumCurrency)));

and this (inside some border):

border.add(new Label(currencyPayed, new
ComponentPropertyModelString(currentPriceSumCurrency)));



I ask because the second one brings me to this exception:

WicketMessage: Exception in rendering component: [Component id = currencyPayed]

Root cause:

java.lang.NullPointerException
at 
org.apache.wicket.model.ComponentPropertyModel$AssignmentWrapper.getObject(ComponentPropertyModel.java:105)
at org.apache.wicket.Component.getDefaultModelObject(Component.java:1627)
at 
org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1649)
at org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:114)
at org.apache.wicket.Component.renderComponent(Component.java:2596)
at org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62)
at org.apache.wicket.Component.render(Component.java:2421)
at 
org.apache.wicket.markup.html.border.Border$BorderBodyContainer.resolve(Border.java:398)


Thank you!

-- Tony

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



Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
Igor,

Excuse me, but I really don't understand.
I'm asking about how to show Wicket error page. I thought that
throwing WicketRuntimeException will result in showing it.

But I get SERVER error page. I attached an image to clarify matters.

And error below is seen in Tomcat output, not in Wicket error page:

ERROR - WicketFilter   - closing the buffer error
java.lang.IllegalStateException: getOutputStream() has already been
called for this response


On Wed, Feb 11, 2009 at 5:20 AM, Marcelo Morales
marcelomorales.n...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 the status code and the error page are orthogonal. you should still
 see the standard error page, its just that it is returned with status
 500.
 ... with a proper browser (a cent)
 --
 Marcelo Morales

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



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

Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
I don't have custom error page.
Link to image: 
http://img3.imageshack.us/img3/2244/bb476f8ece2116133419587ba3.gif

On Wed, Feb 11, 2009 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 your attachment got stripped, but i can imagine what it looks like.

 all runtime exceptions, wicket or not, are handled in the same way -
 redirect to the error page.

 do you have a custom error page? if you do - if your error page has an
 error then what you describe might happen.

 -igor

 On Wed, Feb 11, 2009 at 6:49 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Igor,

 Excuse me, but I really don't understand.
 I'm asking about how to show Wicket error page. I thought that
 throwing WicketRuntimeException will result in showing it.

 But I get SERVER error page. I attached an image to clarify matters.

 And error below is seen in Tomcat output, not in Wicket error page:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
 

 On Wed, Feb 11, 2009 at 5:20 AM, Marcelo Morales
 marcelomorales.n...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 the status code and the error page are orthogonal. you should still
 see the standard error page, its just that it is returned with status
 500.
 ... with a proper browser (a cent)
 --
 Marcelo Morales

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




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


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



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



Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
Thank you all for usefull tips!

-- Tony

On Thu, Feb 12, 2009 at 1:51 AM, walnutmon justin.m.boy...@gmail.com wrote:


 getApplicationSettings().setInternalErrorPage(UniversalErrorPage.class);
 getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);


 Anton Veretennikov wrote:

 I don't have custom error page.
 Link to image:
 http://img3.imageshack.us/img3/2244/bb476f8ece2116133419587ba3.gif

 On Wed, Feb 11, 2009 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 your attachment got stripped, but i can imagine what it looks like.

 all runtime exceptions, wicket or not, are handled in the same way -
 redirect to the error page.

 do you have a custom error page? if you do - if your error page has an
 error then what you describe might happen.

 -igor

 On Wed, Feb 11, 2009 at 6:49 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Igor,

 Excuse me, but I really don't understand.
 I'm asking about how to show Wicket error page. I thought that
 throwing WicketRuntimeException will result in showing it.

 But I get SERVER error page. I attached an image to clarify matters.

 And error below is seen in Tomcat output, not in Wicket error page:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
 

 On Wed, Feb 11, 2009 at 5:20 AM, Marcelo Morales
 marcelomorales.n...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg
 igor.vaynb...@gmail.com wrote:
 the status code and the error page are orthogonal. you should still
 see the standard error page, its just that it is returned with status
 500.
 ... with a proper browser (a cent)
 --
 Marcelo Morales

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




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


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



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




 --
 View this message in context: 
 http://www.nabble.com/How-to-handle-this-exception-properly-tp21929220p21959762.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
 should be fine, you can throw any kind of runtime exception you want.

 -igor

Igor, thank you for answer.

Did you mean that HTTP Status 500 error I get is not what it must be?
It's a bug or what? I can make jira if it is so.

-- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

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



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



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



Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
I get it.

On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 do you get 500 or do you not?

 -igor

 On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 should be fine, you can throw any kind of runtime exception you want.

 -igor

 Igor, thank you for answer.

 Did you mean that HTTP Status 500 error I get is not what it must be?
 It's a bug or what? I can make jira if it is so.

 -- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + 
 ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at 
 org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

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



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



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



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



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



Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
How to get standart Error page then instead of this error?

 considering 5xx codes are server-related failures i would say it is correct.

 -igor

 On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 I get it.

 On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 do you get 500 or do you not?

 -igor

 On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 should be fine, you can throw any kind of runtime exception you want.

 -igor

 Igor, thank you for answer.

 Did you mean that HTTP Status 500 error I get is not what it must be?
 It's a bug or what? I can make jira if it is so.

 -- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + 
 ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at 
 org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

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



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



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



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



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



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



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



How to handle this exception properly

2009-02-09 Thread Anton Veretennikov
Hello, all wicket users!

I receive HTTP Status 500 error in this situation:

I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


The problem is when this first catch is reached (because encoding
desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

is thrown I see HTTP Status 500 error with this:

ERROR - WicketFilter   - closing the buffer error
java.lang.IllegalStateException: getOutputStream() has already been
called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

I would like to know is it proper to throw WicketRuntimeException in
such situation.
For example I want to show standart Wicket Error page.

Thank you very much.

-- Tony

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



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

2009-02-04 Thread Anton Veretennikov
I mean when wicket attributes and tags are stripped for production,
please, remove this namespace too.

On Wed, Feb 4, 2009 at 3:36 PM, Timo Rantalaiho timo.rantala...@ri.fi wrote:
 On Wed, 04 Feb 2009, Anton Veretennikov wrote:
 Please, don't forget to remove it when mode is DEPLOYMENT.

 What do you mean?

 Best wishes,
 Timo

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

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



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



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

2009-02-03 Thread Anton Veretennikov
Please, don't forget to remove it when mode is DEPLOYMENT.

On Wed, Feb 4, 2009 at 8:29 AM, James Carman
jcar...@carmanconsulting.com wrote:
 Ahhh, that's right.  The archetype is released with wicket.  DUH! :)


 On Tue, Feb 3, 2009 at 8:17 PM, jWeekend jweekend_for...@cabouge.com wrote:

 James,

 The version of Wicket that you'll find in your generated QuickStart's POM is
 dictated by the archetype version you specify (eg -DarchetypeVersion=1.3.5).
 The chosen version of the archetype will have the right xmlns in its
 \archetype-resources\src\main\java\HomePage.html, right?

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




 James Carman-3 wrote:

 You'd need to make sure the DTD matches what version of Wicket they
 chose, wouldn't you?

 On Tue, Feb 3, 2009 at 5:33 PM, jWeekend jweekend_for...@cabouge.com
 wrote:

 Timo,

 It's very simple change to the archetype:
 just replace the html open tag

 with

 html
 xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd;

 in \archetype-resources\src\main\java\HomePage.html

 The question is, is there any reason why we wouldn't want to do this?
 I've raised  https://issues.apache.org/jira/browse/WICKET-2074 the Jira
 issue  anyway.

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



 Timo Rantalaiho wrote:

 On Tue, 03 Feb 2009, jWeekend wrote:
 Is there a reason why the Wicket archetype doesn't add the appropriate
 namespace in HomePage.html? Do you want a Jira issue raised for this?

 Yep, preferably with a patch and/or instructions of how
 exactly it should be -- I for one don't know much about this
 XML stuff :)

 Cheers,
 Timo

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

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




 --
 View this message in context:
 http://www.nabble.com/What-is-the-best-way-to-handle-%22Undefined-attribute-name-%28wicket%3Aid%29%22--warnings-from-Eclipse-Ganymede--tp2179p21820419.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/What-is-the-best-way-to-handle-%22Undefined-attribute-name-%28wicket%3Aid%29%22--warnings-from-Eclipse-Ganymede--tp2179p21822673.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



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



Re: Feedback Panel

2009-01-30 Thread Anton Veretennikov
This is a simple Panel (without filtering) that can be used instead of
FeedbackPanel.
It shows itself is any session messages are available. As any Panel it
has it's own html.

public class MyFeedbackPanel extends Panel {

  public MyFeedbackPanel(String id) {
super(id);
IModelListFeedbackMessage messageListModel = new
AbstractReadOnlyModelListFeedbackMessage() {
  @Override
  public ListFeedbackMessage getObject() {
return Session.get().getFeedbackMessages().messages(null);
//return Session.get().getFeedbackMessages().messages(new
ErrorLevelFeedbackMessageFilter(FeedbackMessage.ERROR));
  }
};
ListViewFeedbackMessage list=new
ListViewFeedbackMessage(list, messageListModel) {
  @Override
  protected void populateItem(ListItemFeedbackMessage item) {
FeedbackMessage message=item.getModelObject();
if (message.isError()) {
  item.add(new ExternalImage(image, images/att_red.gif));
} else if (message.isInfo()) {
  item.add(new ExternalImage(image, images/att_gold.gif));
} else {
  item.add(new ExternalImage(image, images/att_grey.gif));
}
item.add(new Label(text,new PropertyModel(message,message)));
message.markRendered();
  }
};
add(list);
//new FeedbackPanel(id)
  }

  @Override
  public boolean isVisible() {
return Session.get().getFeedbackMessages().size()0;
  }

}


On Fri, Jan 30, 2009 at 8:08 PM, Daniel Ferreira Castro
dfcas...@gmail.com wrote:
 No bullets att all will fit the case :)

 On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten e.vanoos...@grons.nlwrote:

 Well, I am assuming you want either a numbered list, or no bullets at all.
 If you want something else, you are on your own (copy paste FeedbackPanel
 and tweak the copy).

 Look at the Wicket examples to see some CSS customization.

 Regards,
   Erik.



 Erik van Oosten wrote:

 Again, change it with css.

Erik.

 Daniel Ferreira Castro wrote:

 And if I don´t wanna a unumbered list to be as the presentation of the
 errors and messages?  How to do this?

 On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy 
 francisco.tre...@gmail.com wrote:



 for example, in your css:

 ul .feedbackul {
   list-style-type: none;
   font-size: 0.7em;
   border-top: 1px dashed #BCBAAC;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

 li .feedbackPanelERROR {
   color: red;
   font-size: 1em;
   margin-left: 6px;
   margin-bottom: 20px;
   padding: 0;
   width: 90%;
   }

 francisco

 On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten e.vanoos...@grons.nl
 wrote:


 The HTML that is rendered by FeedBackPanel provides enough styling that


 you


 can do this with CSS.

 Regards,
  Erik.


 Daniel Ferreira Castro wrote:


 Hi,

 I am looking around internet but I still haven´t found what I am


 looking


 for - (Bono, do not sue me)

 I would like to customize a Feedback Panel in a way that error
 messages
 are
 displayed as Red, info as Green and Warn as Yellow (I will need to


 change


 the background of this panel to make it confortable for the eyes also)
  and,
 if possible, when a success message is printed an check icon displays
 by
 its
 side (This is probably using border, but I am not sure).

 How to do this?




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



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




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










 --

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



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




 --
 Two rules to succeed in life:
 1 - don´t tell people everything you know.
 
 We shall go on to the end.
 We shall fight in France
 We shall fightover the seas and oceans.
 We shall fight with growing confidence and growing strength in the air.
 We shall defend our island whatever the cost may be
 We shall fight on beaches, we shall fight on the landing grounds,
 We shall fight in the fields and in the streets,
 We shall fight on the hills.
 We shall never surrender.
 Winston Churchill


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



Re: Frozen error form object

2009-01-28 Thread Anton Veretennikov
It works! Thank you.

On Wed, Jan 28, 2009 at 2:38 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 you need to wire your events. listpanel can have an abstract onclicked();
 editpanel can have a method called inputchanged() which calls 
 form.clearinput()
 your listpanel can then look like this:

 add(new listpanel() { onclicked() { editpanel.inputchanged(); }}):

 that way everything is still nicely encapsulated, but accessible.

 -igor

 On Tue, Jan 27, 2009 at 11:35 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Thank you very much, Igor

 This really works.
 I think that it will be nice not to keep reference to a form by the way.
 So I tried to make override of onBeforeRender() but...

 Seems that getModelObject() every time returns just clicked object not
 the one editing-continued.
 Is there any method to know it? The problem will be solved clearly.

 Tony



 On Wed, Jan 28, 2009 at 1:27 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 if the form is in invalid state and you want to reuse the same
 instance of it you have to call Form#clearInput()

 -igor

 On Tue, Jan 27, 2009 at 8:06 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 I'm still with this problem... and created Test App for this.

 When required field is empty and error message is shown, pressing on
 other links does not change the form.

 Please, help me, I'm stuck here.

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


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



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



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



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



Re: Convert a null Model to a custom string rather than

2009-01-28 Thread Anton Veretennikov
But it throws Internal Error (not in feedback) when conversion
error rises on this line:

mNestedModel.setObject(object);

So it will be nice to correct it somehow..


Example of error on BigDecimal:

ERROR - RequestCycle   - Cannot parse '2.5' using format
java.text.decimalfor...@674dc
org.apache.wicket.util.convert.ConversionException: Cannot parse '2.5'
using format java.text.decimalfor...@674dc
at 
org.apache.wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:78)
at 
org.apache.wicket.util.convert.converters.AbstractConverter.parse(AbstractConverter.java:58)
at 
org.apache.wicket.util.convert.converters.AbstractNumberConverter.parse(AbstractNumberConverter.java:80)
at 
org.apache.wicket.util.convert.converters.BigDecimalConverter.convertToObject(BigDecimalConverter.java:43)
at 
org.apache.wicket.util.convert.converters.BigDecimalConverter.convertToObject(BigDecimalConverter.java:28)
at 
org.apache.wicket.util.lang.PropertyResolverConverter.convert(PropertyResolverConverter.java:68)
at 
org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1082)
at 
org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:582)
at 
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)
at 
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)
at 
common.component.DefaultWhenNullModel.setObject(DefaultWhenNullModel.java:41)


On Wed, Jan 28, 2009 at 11:51 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Not very nice but works (Jeremy Thomerson's variant with setObject changes):

 public class DefaultWhenNullModelT implements IModelT {

  private static final long serialVersionUID = 1L;
  private final IModelT mNestedModel;
  private final T mDefaultValue;

  public DefaultWhenNullModel(IModelT nestedModel, T defaultValue) {
mNestedModel = nestedModel;
mDefaultValue = defaultValue;
  }

  public T getObject() {
T val = mNestedModel.getObject();
return val == null ? mDefaultValue : val;
  }

  public void setObject(T object) {
if (object!=null  object.equals(mDefaultValue)) {
  mNestedModel.setObject(null);
} else {
  mNestedModel.setObject(object);
}
  }

  public void detach() {
mNestedModel.detach();
  }
 }


 Usage:
form.add(new TextField(value,
new DefaultWhenNullModel(new
 PropertyModel(getSomeModel(),value), Enter a value)

));




 On Wed, Jan 28, 2009 at 5:16 AM, nate roe phl...@gmail.com wrote:
 Actually, I don't think that this will work for me.

 The behavior that I want is to display a special string when the model is
 null.  However, I still want the model to be null.

 My custom converter converts a special keyword to a null model.  I want also
 to convert a new model to a special keyword for display.

 On Tue, Jan 27, 2009 at 11:46 AM, nate roe phl...@gmail.com wrote:

 Excellent, thanks for writing that one up!


 On Tue, Jan 27, 2009 at 11:41 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 This has come up quite a bit here on the user list.

 See the first example on this page:

 http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/


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

 On Tue, Jan 27, 2009 at 1:38 PM, nate roe phl...@gmail.com wrote:

  I'm using Wicket v1.3.4.
 
  I would like to create a kind of TextField that converts a null model
 value
  to a custom string rather than an empty string.  Unfortunately, the
  converter is not run when the model object is null, and it looks like
  Component.getModelObjectAsString(...) is hard-coded to return  when
 the
  model is null.
 
  Is there some way I can overcome this without modifying the Wicket
 source?
 
  Thanks,
  Nate Roe
 






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



  1   2   >