Re: searching for a Rich text editor

2013-12-22 Thread Anton Bessonov

Hello Dirk,

I'm not on the track, but this RTEs are just javascript helper to create 
html documents. What do you see? Do you check that javascript loaded, or 
html be escaped? But in generally, it should just work. Have you see 
some examples from wicketstuff:

https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/tinymce-parent/tinymce-examples/src/main/java/wicket/contrib/examples/tinymce
?

Best Regards

Anton

On 18.11.2013 22:13, Dirk Wichmann wrote:

Hi,

I'm searching for Rich text editor to integrate in my page, but at the
moment nothing seems to work.
Found
 Tynimce
 Wicket-jQuery (Kendo)
 Visural Wicket
and examples, but they dont work with wicket 6.12 maybe.
Have you maybe any hint for me??

Thanks in advance
Cheers
Dirk


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




--
Certified Prince2:2009 Project Manager
Professional Scrum Master I  II
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer

Now that's a test of the character of an organization.
Of the organizations that are attempting to implement
Scrum probably, 30% - 35% will successfully implement it.
- Ken Schwaber



MootipBehaviour Panel Error

2013-05-24 Thread anton
http://apache-wicket.1842946.n4.nabble.com/file/n4659025/photo.png 

  - Unable to find the markup for the component. That may be due to
transparent containers or components implementing IComponentResolver:
[MarkupContainer [Component id = mooTipAjaxPanel]]
org.apache.wicket.WicketRuntimeException: Unable to find the markup for the
component. That may be due to transparent containers or components
implementing IComponentResolver: [MarkupContainer [Component id =
mooTipAjaxPanel]]
at
org.apache.wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:125)
at org.apache.wicket.Component.locateMarkupStream(Component.java:3918)
at org.apache.wicket.Component.renderComponent(Component.java:2621)
at
org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:901)


Any ideas?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MootipBehaviour-Panel-Error-tp4659025.html
Sent from the Users forum 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: Datatable with Column-Label

2013-03-13 Thread anton
and if I have tooltips creator from a library?

example:
add(new Label(Hello, this is tool tip 01) 
.add(new MootipBehaviour( 
This is my tool tip, 
Hello))); 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Datatable-with-Column-Label-tp4657213p4657219.html
Sent from the Users forum 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: TinyMCE.

2013-02-22 Thread anton

I use wicket 1.4.19.

dependency
groupIdorg.wicketstuff/groupId
artifactIdtinymce/artifactId
version1.4.19/version
/dependency

also gives me the same error with visural wicket.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMCE-tp4656649p4656682.html
Sent from the Users forum 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



Add filter serch in datatable sortable

2012-11-16 Thread anton
someone can lend a hand.
I found this example but is for a single datatable.
http://www.javabeat.net/2011/04/displaying-data-using-datatable-in-apache-wicket/
paragraph filtering.

???



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-filter-serch-in-datatable-sortable-tp4653936.html
Sent from the Users forum 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: Small Wicket 6 Auth Example

2012-09-27 Thread Anton Bessonov

Hello Martin,

I removed it from dependency, thank you!

Best regards,

Anton

On 09/27/2012 09:15 AM, Martin Grigorov wrote:

wicket-spring-annot.version1.3.7/wicket-spring-annot.version

^^ This is not really needed.


--
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer
Professional Scrum Master I  II

Now that's a test of the character of an organization.
Of the organizations that are attempting to implement
Scrum probably, 30% - 35% will successfully implement it.
- Ken Schwaber


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



Re: Small Wicket 6 Auth Example

2012-09-26 Thread Anton Bessonov

Hello Wicketeers,

now same example for Wicket 6 and Jetty 8:

https://github.com/Bessonov/wicket-6-example

Best regards,

Anton

On 08/12/2012 08:53 PM, Anton Bessonov wrote:

Hello wicketeers,

I've updated my old small Wicket example to 1.5.7 and pushed it to 
github [1]. It's available under cc-by license (also for commercial 
use, redistributing and so on). Maybe helpful for someone.


Example include:
- i18n
- Hibernate (hsqldb is default and mysql example config is included)
- Authentication (Register/Login/Logout, persistent)
- Simple Authorization (is_user, is_anonymous roles)
- Spring DI
- Standalone application packaging (with Jetty and maven-shade-plugin)
- Good test coverage

Following dependencies are declared:
wicket.version1.5.7/wicket.version
jetty.version6.1.25/jetty.version
slf4j.version1.6.6/slf4j.version
log4j.version1.2.14/log4j.version
hibernate-core-version4.1.5.Final/hibernate-core-version
javassist.version3.9.0.GA/javassist.version
spring.version3.1.2.RELEASE/spring.version
wicket-spring-annot.version1.3.7/wicket-spring-annot.version
junit.version4.8.1/junit.version
commons-codec.version1.4/commons-codec.version
c3p0.version0.9.1.2/c3p0.version
mysql.version5.1.6/mysql.version
hsqldb.version2.2.8/hsqldb.version

Improvements, comments, forks and pull requests are welcome.

[1] https://github.com/Bessonov/wicket-example

Best regards

Anton 


--
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer
Professional Scrum Master I  II

Now that's a test of the character of an organization.
Of the organizations that are attempting to implement
Scrum probably, 30% - 35% will successfully implement it.
- Ken Schwaber



Small Wicket Auth Example

2012-08-12 Thread Anton Bessonov

Hello wicketeers,

I've updated my old small Wicket example to 1.5.7 and pushed it to 
github [1]. It's available under cc-by license (also for commercial use, 
redistributing and so on). Maybe helpful for someone.


Example include:
- i18n
- Hibernate (hsqldb is default and mysql example config is included)
- Authentication (Register/Login/Logout, persistent)
- Simple Authorization (is_user, is_anonymous roles)
- Spring DI
- Standalone application packaging (with Jetty and maven-shade-plugin)
- Good test coverage

Following dependencies are declared:
wicket.version1.5.7/wicket.version
jetty.version6.1.25/jetty.version
slf4j.version1.6.6/slf4j.version
log4j.version1.2.14/log4j.version
hibernate-core-version4.1.5.Final/hibernate-core-version
javassist.version3.9.0.GA/javassist.version
spring.version3.1.2.RELEASE/spring.version
wicket-spring-annot.version1.3.7/wicket-spring-annot.version
junit.version4.8.1/junit.version
commons-codec.version1.4/commons-codec.version
c3p0.version0.9.1.2/c3p0.version
mysql.version5.1.6/mysql.version
hsqldb.version2.2.8/hsqldb.version

Improvements, comments, forks and pull requests are welcome.

[1] https://github.com/Bessonov/wicket-example

Best regards

Anton

--
Oracle Certified Expert, Enterprise JavaBeans Developer
Oracle Certified Professional, Java SE 6 Programmer
Professional Scrum Master I  II



Re: internationalizing page title

2011-02-27 Thread Anton Bessonov

Hello Josh,

have you found any solution?

Best regards,

Anton

Am trying to internationalize the page title. The below snipplet doesnt seem
to work. Where am i going wrong?

head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
 wicket:head
 titlewicket:message key=login-page-title//title
 /wicket:head
/head

regards
Josh




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



Re: TreeTabel and file download

2011-02-23 Thread Anton Bessonov

Hello Martin,

thanks for your reply! You mean override newLink method in 
DefaultAbstractTree?



See DownloadLink.

On Fri, Dec 31, 2010 at 3:19 AM, Anton Bessonovexe...@googlemail.comwrote:


Hello list,

I'm trying to implement small file browser and I use TreeTable.
PropertyTreeColumn shows file names and I can get (newCell -
getTreeTable().getTreeState().isNodeSelected(node)) java.io.File. Now, I'm
need force to download file after click on the file name. Any suggestions?

Thanks,

Anton

-
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 with fest assert

2011-01-21 Thread Anton Bessonov

Of course!

https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html

It must be built in :)


There is a room for improvement in that area.



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



Re: TreeTabel and file download

2010-12-31 Thread Anton Bessonov

I solved it.

new PropertyTreeColumn(new 
ColumnLocation(Alignment.MIDDLE, 8, Unit.PROPORTIONAL),

, userObject.name) {
@Override
public IRenderable newCell(TreeNode node, int level)
{
if 
(getTreeTable().getTreeState().isNodeSelected(node)) {
File f = new PropertyModelFile(node, 
userObject.file).getObject();
ResourceStreamRequestTarget res = new 
ResourceStreamRequestTarget(

new FileResourceStream(f), f.getName());
getRequestCycle().setRequestTarget(res);
return null;
} else {
return super.newCell(node, level);
}
}
}

and

TreeTable tree = new TreeTable(treeTable, createTreeModel(), columns);
tree.setLinkType(TreeTable.LinkType.REGULAR);

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



TreeTabel and file download

2010-12-30 Thread Anton Bessonov

Hello list,

I'm trying to implement small file browser and I use TreeTable. 
PropertyTreeColumn shows file names and I can get (newCell - 
getTreeTable().getTreeState().isNodeSelected(node)) java.io.File. Now, 
I'm need force to download file after click on the file name. Any 
suggestions?


Thanks,

Anton

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



Re: Simple way to show image on WebPage

2010-12-28 Thread Anton Bessonov

Hi Andrea,

thanks for your reply, but this is'nt exactly what I want. ContextImage 
generate stateless path, also not binded to session. What I need is 
cryptic path such as for Link-Component.


Best regards,

Anton
add(new ContextImage(icon, images/imageFileName.jpg)); 



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



Re: Simple way to show image on WebPage

2010-12-28 Thread Anton Bessonov

Hi Martin,

thanks! DynamicImageResource does this!

Best Regards,

Anton


Hi Anton,

you need custom Resource or ResourceReference to load the image.
See
org.apache.wicket.markup.html.image.Image.Image(String, ResourceReference)
org.apache.wicket.markup.html.image.Image.Image(String, Resource)
and different implementations
of org.apache.wicket.markup.html.image.resource.DynamicImageResource

On Tue, Dec 28, 2010 at 7:16 PM, Anton Bessonovexe...@googlemail.comwrote:


Hi Andrea,

thanks for your reply, but this is'nt exactly what I want. ContextImage
generate stateless path, also not binded to session. What I need is cryptic
path such as for Link-Component.

Best regards,

Anton

  add(new ContextImage(icon, images/imageFileName.jpg));

-
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



Simple way to show image on WebPage

2010-12-24 Thread Anton Bessonov

Hello,

I've folder of images such as $PROJECT_ROOT/images/
and in 
$PROJECT_ROOT/src/main/java/org/myproject/myprofile/MyProfilePage.java:


package org.myproject.myprofile;

public class MyProfilePage extends WebPage {
...
  public MyProfilePage() {
...
class MyProfileForm extends Form {
...
  // user.getImagePath() return for example images/1
  add(new Image(myimage, user.getImagePath()));

but it's create 404-link:
http://localhost:8081/myproject/resources/org.myproject.myprofile.MyProfilePage/images/1_de_DE

What is the best way for this, if I need session-binded images?

Thanks!

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



Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov

Hello list,

I'm trying to set checkboxes with junit but without significant success. 
My trouble is to find checkboxes. I've not found any way to access it if 
I use CheckBoxMultipleChoice. With CheckGroup I get access with Visitor


tester.getLastRenderedPage().visitChildren(Check.class, new
IVisitorComponent() {
public Object component(Component component) {

if(component.getDefaultModelObject().equals(TestLabel))

[...]

but it's very ugly way. Any suggestions?

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



Re: Test CheckBoxMultipleChoice or CheckGroup

2010-12-15 Thread Anton Bessonov

Thanks, I will try!


Use getters:

https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html

   



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



Store session in custom datastore

2010-08-24 Thread Anton

Hello!

Can anybody share solution to store session in db or memcache?


Thanks,

Anton

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



Re: Store session in custom datastore

2010-08-24 Thread Anton

Hello Igor,

thanks for advice. I already found [1] and [2], but this is 
server-specific solutions. And here [3] are missing


import com.base.cache.AsyncMemcache;
import com.base.cache.ICache

and DBCache Classes/Interface.

[1] http://github.com/magro/memcached-session-manager/tree
[2] http://github.com/victori/jetty-session-cache
[3] http://letsgetdugg.com/2010/02/07/clustering-wicket-for-fun-and-profit/

im sure if you google for wicket session memcache you will find your answer.

-igor

On Tue, Aug 24, 2010 at 2:05 PM, Anton exe...@googlemail.com wrote:
  



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



Re: Sort column header for PageableListView

2010-08-19 Thread Anton Bessonov

Hi! Like this?
https://cwiki.apache.org/confluence/display/WICKET/Simple+Sortable+DataTable+Example

Best Regards,

Anton

Hi All,

My project is already developed in Wicket framework. In which
PageableListView is used to display number of records with pagination.
Further i have to make this list sortable on clicking its column header.
I could find examples given for DataTable to sort, but can anybody give me
sample code for PageableListView to sort by column header click.

I will be thankful.. 


Deepa.. .
  



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



Re: NoSuchMethodError with custom authorization

2010-08-15 Thread Anton

The problem was in missing dependence:

   dependency
   groupIdorg.apache.wicket/groupId
   artifactIdwicket-auth-roles/artifactId
   version${wicket.version}/version
   /dependency

Hello List,

I'm trying to implement custom authorization, but I get this error 
[1]. Relevant part of code [2] isn't spectacular.

wicket.version1.4.9/wicket.version
JRE: java-6-sun-1.6.0.10

I've googled for this exception, but without any success.

[1] http://pastebin.com/V292Vm7e
[2] http://pastebin.com/BiBQFsGs

Best Regards,

Anton




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



NoSuchMethodError with custom authorization

2010-08-14 Thread Anton

Hello List,

I'm trying to implement custom authorization, but I get this error [1]. 
Relevant part of code [2] isn't spectacular.

wicket.version1.4.9/wicket.version
JRE: java-6-sun-1.6.0.10

I've googled for this exception, but without any success.

[1] http://pastebin.com/V292Vm7e
[2] http://pastebin.com/BiBQFsGs

Best Regards,

Anton

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



Error flushing page

2009-09-11 Thread Anton Komratov
I’m using wicket-1.4.rc4 with Geronimo 2.1.4 (tomcat 6, java ee 5) and
have got the following exception:

2009-09-11 10:10:44,212 ERROR [DiskPageStore] Error flushing page
java.lang.RuntimeException: java.io.FileNotFoundException:
/usr/local/geronimo-tomcat6-javaee5-2.1.4/var/catalina/work/depost/Main-filestore/CDBF71162CAA988157064CA98A5D1CEA/pm-null
(Too many open files)
  at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:103)
  at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.getFileChannel(FileChannelPool.java:170)
  at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore$SessionEntry.savePage(DiskPageStore.java:241)
  at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSaveList(DiskPageStore.java:898)
  at 
org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread.run(DiskPageStore.java:970)
  at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException:
/usr/local/geronimo-tomcat6-javaee5-2.1.4/var/catalina/work/depost/Main-filestore/CDBF71162CAA988157064CA98A5D1CEA/pm-null
(Too many open files)
  at java.io.RandomAccessFile.open(Native Method)
  at java.io.RandomAccessFile.init(RandomAccessFile.java:212)
  at 
org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:98)
  ... 5 more


I did not find solutions in this forum. S-o-s. It happened in production system.

-
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



FeedbackIndicator doesn't work inside RefreshingView

2009-08-04 Thread Anton Komratov
I'm using RefreshingView to show and edit data. I put MinimumValidator to
the TextField in RefreshingView (in method populateItem()).Also I put
FeedbackIndicator for this TextField in RefreshingView (also in method
populateItem()).

MinimumValidator works fine - I'm getting error messages at the
FeedbackPanel. But FeedbackIndicator doesn't work - no any red asterics in
case of invalid value in TextField.
Others FeedbackIndicators at the same pages (for others TextFields outside
of the RefreshingView) work fine.

Any solutions? (I'm using wicket 1.4rc4).

/// Java code fragment:

@Override
*protected void populateItem(final Item item)* {
item.add(new Label(name));
item.add(new Label(surname));
item.add(new Label(city.name));

TextField tfam = new TextField(amount);
tfam.add(new MinimumValidator(1));
item.add(tfam);

*FormComponentFeedbackIndicator amountFlag =
new FormComponentFeedbackIndicator (amountFlag);*
* **amountFlag.setIndicatorFor(tfam);*
*item.add(amountFlag); * }
///

!--  Markup file code fragment   --

*tr wicket:id=simple*
td width=5*span wicket:id=amountFlag/span*/td
tdspan style=width:150px wicket:id=surname/spannbsp;/td
tdspan style=width:75px wicket:id=name/spannbsp;/td
tdspan style=width:75px wicket:id=city.name/spannbsp;/td
tdinput type=text wicket:id=amount style=width:30px
tabindex=3/input/td
*/tr*


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



AjaxFallbackLink problem on Internet Explorer 6

2009-05-12 Thread Marius Anton
Hello,
 I'm using a ListView of links limited to only 5 links, an AjaxFallbackLink 
(showMore) that will remove the limitation, and another AjaxFallbackLink 
(showLess) that will enable the limitation. 
  Works fine on every browser except IE6. On IE6, after the user presses 
showMore link, the list will expand, but the links are frosen(I can see them, 
but 
can not click on them).
  The code looks like this:

    in html:
   span wicket:id=listContainer
 span wicket:id=linksList
 pa href=# wicket:id=linkspan 
wicket:id=displayedLinkName/span/a/p
    /span
 
    p
    span wicket:id=showMoreSpana href=# wicket:id=showMoreLinkspan 
wicket:id=showMore/span/a/span
    span wicket:id=showLessSpana href=# wicket:id=showLessLinkspan 
wicket:id=showLess/span/a/span
   /p
    /span

  in java:
  
    final AjaxFallbackLink showLessLink = new AjaxLink(showLessLink) 
 {
�...@override
 public void onClick(AjaxRequestTarget target) 
  {
  linksList.setViewSize(5);
  showMoreSpan.setVisible(true);
  showLessSpan.setVisible(false);
  target.addComponent(listContainer);
  }
 };
 showLessLink.add(new Label(showLess, less));
 final AjaxFallbackLink showMoreLink = new AjaxLink(showMoreLink) 
  {
�...@override
  public void onClick(AjaxRequestTarget target) 
   {
   linksList.setViewSize(linksList.getList().size());
   showMoreSpan.setVisible(false);
   showLessSpan.setVisible(true);
   target.addComponent(listContainer);
   }
  };
 showMoreLink.add(new Label(showMore, more));
 final WebMarkupContainer showLessSpan = new WebMarkupContainer(showLessSpan);
 showLessSpan.setOutputMarkupId(true);
 showLessSpan.setVisible(false);
 final WebMarkupContainer showMoreSpan = new WebMarkupContainer(showMoreSpan);
 showLessSpan.setOutputMarkupId(true);
 showLessSpan.setVisible(true);
 showLessSpan.add(showLessLink);
 showMoreSpan.add(showMoreLink);
 listContainer.add(showLessSpan);
 listContainer.add(showMoreSpan);

    After the first ajax request(by clicking on showMore link), the 
showLess link is displayed, but frozen. The same results is when I'm using 
AjaxLink.
    I am using wicket 1.4 rc2.
    Can please someone help me?


  

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



  1   2   >