Re: [Wicket-user] How to change the html tag?

2007-07-13 Thread Juergen Donnerstag
This has been fixed in 1.3. Which version are you using?

Juergen

On 7/13/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * mperham:
 
  I have a Wicket application which supports 10 different languages.  We need
  to dynamically add the current locale tag to the html tag like this:
 
  html ... xml:lang=en-US
 
  Using the standard WebMarkupContainer + AttributeModifier does not work; it
  seems to be very difficult to change content outside of the standard body
  content.  Does anyone know how to add a dynamic attribute to the html tag?

 I would probably register a custom IMarkupFilter rather than
 using a Component.
 --
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Is it possible to test Wicket templates out-of-container?

2007-07-12 Thread Juergen Donnerstag
On 7/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 On 7/12/07, mraible [EMAIL PROTECTED] wrote:
 
 
  Is it possible to expire the page cache with JMX? Or even better, expire
  individual pages from the cache with JMX?

 i dont think so, but i also dont think it will be very difficult to
 implement. we already have a jmx bean here [1], so all thats needed is to
 just plugin that feature. the thing im not sure yet is how public the
 markupcache api is, so we might have to tweak that somewhat. an rfe or a
 patch are welcome.


Yes, not difficult to implement. Though the current MarkupCache
default implementation by purpose is simple, it provides plenty of
extension points for users to implement whatever they need. Until now,
very little requests have been raised for improved functionality.

You may replace the underlying hashmap which currently is used. Using
some more sophisticated cache may provide expiration etc.

Since it is possible for each component to configure (or get) its
cache key, each component is able to remove its markup from the cache.

Juergen

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] What is AutoLinkResolver and why this error

2007-07-11 Thread Juergen Donnerstag
could please check it against 1.3 trunk. ALR has been changed in 1.3
quite a lot.

It seems that you are using the very same Panel instance more than
once. What happens if you remove img and add e.g. a Label. Do you
get a similar exception?

Juergen

On 7/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 ok the error goes away when i remove the img.../ and i am using wicket
 1.2.4



 On 7/11/07, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
  From the javadoc
 
  /**
  * The AutoLinkResolver is responsible to handle automatic link resolution.
 Tags
  * are marked autolink by the MarkupParser for all tags with href
 attribute,
  * such as anchor and link tags with no explicit wicket id. E.g. lt;a
  * href=Home.htmlgt;
  * p
  * If href points to a *.html file, a BookmarkablePageLink will
 automatically be
  * created, except for absolut paths, where an ExternalLink is created.
  * p
  * If href points to a *.html file, it resolves the given URL by searching
 for a
  * page class, either relative or absolute, specified by the href attribute
 of
  * the tag. If relative the href URL must be relative to the package
 containing
  * the associated page. An exception is thrown if no Page class was found.
  * p
  * If href is no *.html file a static reference to the resource is created.
 
  Does the exception go away when you remove img .. from the markup?
 
  Which wicket version are you using?
 
  you are not using the panel (the same of instance of the panel) more
  than once, do you?
 
  Juergen
 
 
  On 7/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   when the markup is like this,
  
   wicket:panel
   div style=height:250px;
   img src=images/default_logo.png width=152 height=61 /br
 /
   strongWorker Solutions Limited /strong
   br /
   ul style=padding-left:1px; margin:0; list-style:none;
   li1000 Resumes/li
   li23 Open Vacancies/li
   li12 Closed Vacancies/li
   li100 Unreviewed Resumes/li
   li90 Reviewed Resumes/li
   li10 Invitations /li
   /ul
   /div
   a wicket:id=logoutLog out/a
   /wicket:panel
  
   it throws this error
  
   and when its like this
   wicket:panel
  
   a wicket:id=logoutLog out/a
   /wicket:panel
  
   it works fine
  
  
  
   On 7/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   
   
I did something like this on the homapage class
   
   
signInPanel = new MemberSignInPanel(loginFrame);
add(signInPanel);
loggedInPanel = new
   AfterSignPanel(loggedInFrame);
add(loggedInPanel);
   
if (isSignedIn()) {
signInPanel.setVisible(false);
loggedInPanel.setVisible (true);
} else {
signInPanel.setVisible(true);
loggedInPanel.setVisible(false);
}
   
andwhat could cause this even though their is no component with
 the
   same id in the markup. What is AutoLinkResolver?
   
   
WicketMessage: The component [MarkupContainer [Component id =
 _autolink_6,
   page = com.nairanet.project.newhome.NewHomePage, path =
  
 1:_body:_autolink_6.AutoLinkResolver$AutolinkExternalLink,
   isVisible = true, isVersioned = true]] has the same wicket:id as another
   component already added at the same level
   
Root cause:
   
wicket.markup.MarkupException : The component [MarkupContainer
 [Component
   id = _autolink_6, page =
 com.nairanet.nelx.project.NewHomePage, path =
  
 1:_body:_autolink_6.AutoLinkResolver$AutolinkExternalLink,
   isVisible = true, isVersioned = true]] has the same wicket:id as another
   component already added at the same level
at wicket.Page.componentRendered(Page.java:940)
at wicket.Component.rendered(Component.java:1762)
at wicket.Component.render(Component.java :1541)
at
 wicket.MarkupContainer.renderNext(MarkupContainer.java
   :1334)
at
  
 wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
at
   wicket.MarkupContainer.onComponentTagBody
 (MarkupContainer.java:917)
at wicket.Component.renderComponent(Component.java
 :1719)
at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
at wicket.Component.render(Component.java :1533)
at
  
 wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
at wicket.MarkupContainer.renderAll
   (MarkupContainer.java:9
   
   
  
  
  
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] What is AutoLinkResolver and why this error

2007-07-10 Thread Juergen Donnerstag
From the javadoc

/**
 * The AutoLinkResolver is responsible to handle automatic link resolution. Tags
 * are marked autolink by the MarkupParser for all tags with href attribute,
 * such as anchor and link tags with no explicit wicket id. E.g. lt;a
 * href=Home.htmlgt;
 * p
 * If href points to a *.html file, a BookmarkablePageLink will automatically be
 * created, except for absolut paths, where an ExternalLink is created.
 * p
 * If href points to a *.html file, it resolves the given URL by searching for a
 * page class, either relative or absolute, specified by the href attribute of
 * the tag. If relative the href URL must be relative to the package containing
 * the associated page. An exception is thrown if no Page class was found.
 * p
 * If href is no *.html file a static reference to the resource is created.

Does the exception go away when you remove img .. from the markup?

Which wicket version are you using?

you are not using the panel (the same of instance of the panel) more
than once, do you?

Juergen


On 7/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 when the markup is like this,

 wicket:panel
 div style=height:250px;
 img src=images/default_logo.png width=152 height=61 /br /
 strongWorker Solutions Limited /strong
 br /
 ul style=padding-left:1px; margin:0; list-style:none;
 li1000 Resumes/li
 li23 Open Vacancies/li
 li12 Closed Vacancies/li
 li100 Unreviewed Resumes/li
 li90 Reviewed Resumes/li
 li10 Invitations /li
 /ul
 /div
 a wicket:id=logoutLog out/a
 /wicket:panel

 it throws this error

 and when its like this
 wicket:panel

 a wicket:id=logoutLog out/a
 /wicket:panel

 it works fine



 On 7/11/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 
 
  I did something like this on the homapage class
 
 
  signInPanel = new MemberSignInPanel(loginFrame);
  add(signInPanel);
  loggedInPanel = new
 AfterSignPanel(loggedInFrame);
  add(loggedInPanel);
 
  if (isSignedIn()) {
  signInPanel.setVisible(false);
  loggedInPanel.setVisible (true);
  } else {
  signInPanel.setVisible(true);
  loggedInPanel.setVisible(false);
  }
 
  andwhat could cause this even though their is no component with the
 same id in the markup. What is AutoLinkResolver?
 
 
  WicketMessage: The component [MarkupContainer [Component id = _autolink_6,
 page = com.nairanet.project.newhome.NewHomePage, path =
 1:_body:_autolink_6.AutoLinkResolver$AutolinkExternalLink,
 isVisible = true, isVersioned = true]] has the same wicket:id as another
 component already added at the same level
 
  Root cause:
 
  wicket.markup.MarkupException: The component [MarkupContainer [Component
 id = _autolink_6, page = com.nairanet.nelx.project.NewHomePage, path =
 1:_body:_autolink_6.AutoLinkResolver$AutolinkExternalLink,
 isVisible = true, isVersioned = true]] has the same wicket:id as another
 component already added at the same level
  at wicket.Page.componentRendered(Page.java:940)
  at wicket.Component.rendered(Component.java:1762)
  at wicket.Component.render(Component.java:1541)
  at wicket.MarkupContainer.renderNext(MarkupContainer.java
 :1334)
  at
 wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
  at
 wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)
  at wicket.Component.renderComponent(Component.java :1719)
  at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
  at wicket.Component.render(Component.java:1533)
  at
 wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
  at wicket.MarkupContainer.renderAll
 (MarkupContainer.java:9
 
 




 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ugrade from wicket 1.2.4 to 1.3.0

2007-07-10 Thread Juergen Donnerstag
wicket wiki is good source for information:
http://cwiki.apache.org/WICKET/migrate-13.html

Juergen

On 7/11/07, kenixwong [EMAIL PROTECTED] wrote:

 hi,

 any impact if i ugrade from wicket 1.2.4 to 1.3.0? Is that only replace the
 1) wicket-auth-roles-1.3.0-beta2.jar
 2) wicket-extensions-1.3.0-beta2.jar

 will it effect the jetty also ? Currently i was using the jetty-6.0.1.
 Any additional jar file are need ?

 Thanks
 --
 View this message in context: 
 http://www.nabble.com/ugrade-from-wicket-1.2.4-to-1.3.0-tf4059626.html#a11533484
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] MarkupException using a fragment with a TabbedPanel

2007-07-09 Thread Juergen Donnerstag
Provided I'm not mistaken there is a jira issue for it and it has
already been fixed in 1.3 trunk. It won't get fixed in 1.2.x.

https://issues.apache.org/jira/browse/WICKET-721

Juergen

On 7/10/07, mperham [EMAIL PROTECTED] wrote:

 Any progress on this?  I just hit this bug this afternoon and it forces us to
 use labels.  We are currently using 1.2.5.  Please post a JIRA issue so I
 can watch it.


 igor.vaynberg wrote:
 
  On 7/3/07, Huergo Perez [EMAIL PROTECTED] wrote:
 
   Hi All,
 
  I just grabbed Wicket 1.3.0-beta2 and tried to reproduce this problem.
  The
  problem still occurs.
 
  I managed to isolate it to a simple use case (see the attachments for
  Java
  code and HTML - ZIP attachments get filtered out, so I'm sending the
  files
  as is). It looks like it doesn't have anything to do with a TabbedPanel.
  Instead it looks like fragments do not play nicely with wicket:message
  tags.
 
 
  could you open a jira issue and upload the files there?
 
  -igor
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/MarkupException-using-a-fragment-with-a-TabbedPanel-tf3889709.html#a11511533
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] resource key priority

2007-07-08 Thread Juergen Donnerstag
According to the source code your observation is correct. I've no good
reason why we implemented it this way.

Juergen

// Walk the component hierarchy down from page to the component
for (int i = searchStack.size() - 1; (i = 0)  (string == 
null); i--)
{
Class clazz = (Class)searchStack.get(i);

// First check if a property with the 'key' provided by 
the
// user is available.
string = loadStringResource(clazz, key, locale, style);

// If not, prepend the component relativ path to the key
if ((string == null)  (prefix != null)  
(prefix.length()  0))
{
string = loadStringResource(clazz, prefix + '.' 
+ key, locale, style);

}
}


On 7/8/07, Kent Tong [EMAIL PROTECTED] wrote:
 Hi,

 Just wondering why an unqualified resource key should take priority
 over a qualified one? eg, in a properties file:

 Required=The ${label} is missing!
 form.username.Required=You must provide your name!

 The first entry will take priority, while common intuition is that
 the first one is the default and the second one is overriding it.

 Thanks!



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Fwd: Re: html wicket:id=html CSS]

2007-06-24 Thread Juergen Donnerstag
I added my comment to the other thread obviously discussing the very
same topic.

Juergen

On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote:
 I also think this would be a good solution.

 -Matej

 On 6/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  On 6/23/07, Matej Knopp [EMAIL PROTECTED] wrote:
   Modifying the tag (onComponentTag) and rendering header contribution
   (renderHead) are two different thing. While onComponentTag on a
   behavior attached to page won't work (for reasons as you stated),
   there is no reason why renderHead shouldn't work as well.
  
   -Matej
 
  attach the page to html tag and the entire ibehavior should make sense i
  think.
 
  -igor
 
 
 
  
   On 6/23/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
Jan,
   
the problem is that though you can attach attribute modifier (that is
what HeaderContributor is as well) to a Page (or WebPage), it'll not
work. WebPage doesn't have a tag. Since there is no tag, the attribute
modifier are not invoked, hence the nothing gets added to the header
section.
   
Solution: you simply must attach HeaderContributor.forCss to any other
of your components (e.g. html in your code)
   
In order to prevent such errors, Wicket should detect (if not prevent)
that attribute modifiers are added to WebPage. I've no idea right now
how to make it a compile error, but we certainly can make it a runtime
exception.
   
Juergen
   
On 6/22/07, Jan Kriesten  [EMAIL PROTECTED] wrote:

 copy to the list, as sourceforge doesn't allow zip-attachments atm.


  Original Message 
 Subject: Re: [Wicket-user] html wicket:id=html  CSS
 Date: Fri, 22 Jun 2007 08:53:23 +0200
 From: Jan Kriesten  [EMAIL PROTECTED]


 Hi Juergen,

  I'll try my best to find some spare time to do it. Hopefully over
  the weekend.

 much appreciated, thank you! :-)

 I attached a zip-file containing the example.

 Best regards, --- Jan.




  -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
  -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot add CSS to web page?

2007-06-24 Thread Juergen Donnerstag
All behaviors are invoked from Component.onComponentTag(). When a web
page renders it does not call onComponentTag() for the page, as the
page has no associated markup tag.

That means, though you can do add(HeaderContributor.forCss()) (assume
you are adding to a page) nothing will happen. The CSS will not be
added to the head section and you will not get any warning etc..
Instead you may use any other component on your page.

I agree that throwing an exception is not the preferred solution, but
at least it give users a hint that they are doing something that
currently doesn't work. I thought this is better than nothing while we
could discuss a much better solution for the problem.

Using html:
- means we need to create yet another auto-component (automatically
assign a wicket:id; automatically create an associated
WebMarkupContainer - which will need some special behavior to be
invisible/transparent for users - and of course at runtime you need to
execute it. We already had discusions on how to reduce the number of
auto components.
- do we need to change all relevant WebPage methods to refer to that
component? Or only for adding behaviors (e.g.
getHtmlComponent().add(behavior). By sometime referring to that that
html component and sometimes not, are we not creating yet another
inconsistency (or magic).

I was thinking of using the body component which already is
automatically created. BUT it only make sense for HeaderContributors.
html make more sense for AMs which realy modify an attribute (e.g.
lang).

I know onComponentTag doesn't make sense, but that's IMHO not valid
reason to forbid header contribution as well.

I agree but would be a suitable technical solution:
E.g. keep throwing an exception for IBhavior and implement
public void WebPage.add(HeaderContributor contrib)
{
getBodyContainer().add(contrib)
}

lets discuss the pros and cons of all alternatives in order to find
the best solution for Wicket and all its users.

Juergen

On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Arrgh. Discard my previous reply. This is wrong. Why shouldn't I be
 able to do header contribution on behavior attached to a page? This
 doesn't make sense!

 I know onComponentTag doesn't make sense, but that's IMHO not valid
 reason to forbid header contribution as well.

 -Matej


 On 6/24/07, Jonathan Locke [EMAIL PROTECTED] wrote:
 
  my code which does this:
 
  add(HeaderContributor.forCss(CSS));
 
  now throws the following exception.  my web page needs to contribute CSS to
  the header.  i'm wondering, why can't i do it this way anymore (it seems
  like WebPage is a component like any other and my code did work fine before
  this exception)? and what's the best alternative? thanks!
 
  Caused by: org.apache.wicket.WicketRuntimeException: You can not
  attach behaviors onto WebPages. Web pages do require a markup file but no
  specific tag to attach the page to. This is why behaviors such as
  HeaderContributor for example don't work if attached to a WebPage. Please
  attach the behavior to any other of your components.
 
 
 
 
  --
  View this message in context: 
  http://www.nabble.com/cannot-add-CSS-to-web-page--tf3970619.html#a11270671
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Fwd: Re: html wicket:id=html CSS]

2007-06-24 Thread Juergen Donnerstag
yes, this a valid comment. The html component is causing the
problem. The header contribution code has obviously been designed in a
way that it expects to be the very first contribution to the pages
output markup. With the html component it no longer is, since the
html tag must be rendered first and than, sometimes later, the
head section.

Though the most obvious approach doesn't right now, it is not a show
stopper for you, since you can add the HeaderContributor to any other
component of your page (except the page) and it'll work, correct?

Juergen

On 6/24/07, Jan Kriesten [EMAIL PROTECTED] wrote:

 hi juergen,

  I added my comment to the other thread obviously discussing the very
  same topic.

 yes, have seen that. what i still don't understand is, why did it work when
 there was no wicket:id in the html? only the wicket:id broke 
 header-contribution.

 regards, --- jan.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot add CSS to web page?

2007-06-24 Thread Juergen Donnerstag
Jan - in the other thread - quite rightly pointed out that
HeaderContribution does work on pages. It only does not work if a
component is attached to html. What makes html different is that
it must partially be rendered befor the head section. Why exactly a
component starts rendering before the head tag causes the problem I
don't know yet.

Juergen

On 6/24/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 All behaviors are invoked from Component.onComponentTag(). When a web
 page renders it does not call onComponentTag() for the page, as the
 page as no associated markup tag.

 That means, though you can do add(HeaderContributor.forCss()) (assume
 you are adding to a page) nothing will happen. The CSS will not be
 added to the head section and you will not get any warning etc..
 Instead you may use any other component on your page.

 I agree that throwing an exception is not the preferred solution, but
 at least it give users a hint that they are doing something that
 currently doesn't work. I thought this is better than nothing while we
 could discuss a much better solution for the problem.

 Using html:
 - means we need to create yet another auto-component (automatically
 assign a wicket:id; automatically create an associated
 WebMarkupContainer - which will need some special behavior to be
 invisible/transparent for users - and of course at runtime you need to
 execute it. We already had discusions on how to reduce the number of
 auto components.
 - do we need to change all relevant WebPage methods to refer to that
 component? Or only for adding behaviors (e.g.
 getHtmlComponent().add(behavior). By sometime referring to that that
 html component and sometimes not, are we not creating yet another
 inconsistency (or magic).

 I was thinking of using the body component which already is
 automatically created. BUT it only make sense for HeaderContributors.
 html make more sense for AMs which realy modify an attribute (e.g.
 lang).

 I know onComponentTag doesn't make sense, but that's IMHO not valid
 reason to forbid header contribution as well.

 I agree but would be a suitable technical solution:
 E.g. keep throwing an exception for IBhavior and implement
 public void WebPage.add(HeaderContributor contrib)
 {
 getBodyContainer().add(contrib)
 }

 lets discuss the pros and cons of all alternatives in order to find
 the best solution for Wicket and all its users.

 Juergen

 On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote:
  Arrgh. Discard my previous reply. This is wrong. Why shouldn't I be
  able to do header contribution on behavior attached to a page? This
  doesn't make sense!
 
  I know onComponentTag doesn't make sense, but that's IMHO not valid
  reason to forbid header contribution as well.
 
  -Matej
 
 
  On 6/24/07, Jonathan Locke [EMAIL PROTECTED] wrote:
  
   my code which does this:
  
   add(HeaderContributor.forCss(CSS));
  
   now throws the following exception.  my web page needs to contribute CSS 
   to
   the header.  i'm wondering, why can't i do it this way anymore (it seems
   like WebPage is a component like any other and my code did work fine 
   before
   this exception)? and what's the best alternative? thanks!
  
   Caused by: org.apache.wicket.WicketRuntimeException: You can not
   attach behaviors onto WebPages. Web pages do require a markup file but no
   specific tag to attach the page to. This is why behaviors such as
   HeaderContributor for example don't work if attached to a WebPage. Please
   attach the behavior to any other of your components.
  
  
  
  
   --
   View this message in context: 
   http://www.nabble.com/cannot-add-CSS-to-web-page--tf3970619.html#a11270671
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http

Re: [Wicket-user] html wicket:id=html CSS]

2007-06-24 Thread Juergen Donnerstag
On 6/24/07, Jan Kriesten [EMAIL PROTECTED] wrote:

 hi juergen,

  yes, this a valid comment. The html component is causing the
  problem. The header contribution code has obviously been designed in a
  way that it expects to be the very first contribution to the pages
  output markup. With the html component it no longer is, since the
  html tag must be rendered first and than, sometimes later, the
  head section.

 i understand. so, wouldn't it be the easiest way to change the behavior of the
 HeaderContributors to automatically do a

 getBodyContainer().add( new HeaderContributor.forCSS() )?

this would be a possible solution for adding header contributions to
WebPages only. But I'm not in favor of such magic. The exceptions to
a rule you have the more difficult it gets to understand a product and
even worse, the more effort you have to spend to explain it and to
maintain the code.


 this could be tricky since the HeaderContributors are static as far as i've 
 seen.

  Though the most obvious approach doesn't right now, it is not a show
  stopper for you, since you can add the HeaderContributor to any other
  component of your page (except the page) and it'll work, correct?

 not quite, my main problem isn't right now that my css don't get added to the
 header, but the css for wicket-components like
 org.apache.wicket.markup.html.tree.LinkTree


I've reverted the change to WebPage, so it should work.
And I think a found the reason why HtmlHeaderContainer didn't work as
expected. I changed that too, all junit tests are still fine. I'll
committ it in a minute.

Juergen

 best regards, --- jan.



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot add CSS to web page?

2007-06-24 Thread Juergen Donnerstag
please see the other thread

Juergen

On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote:
 But add(HeaderContributor.forCss()) does not modify component tag. It
 affects header contribution. Header contribution and component tag
 modifications are two different things.

 page.add(HeaderContributor.forCss()) works as long as we don't have
 that check that throws exception when you add behavior to page.

 -Matej

 On 6/24/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  Jan - in the other thread - quite rightly pointed out that
  HeaderContribution does work on pages. It only does not work if a
  component is attached to html. What makes html different is that
  it must partially be rendered befor the head section. Why exactly a
  component starts rendering before the head tag causes the problem I
  don't know yet.
 
  Juergen
 
  On 6/24/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   All behaviors are invoked from Component.onComponentTag(). When a web
   page renders it does not call onComponentTag() for the page, as the
   page as no associated markup tag.
  
   That means, though you can do add(HeaderContributor.forCss()) (assume
   you are adding to a page) nothing will happen. The CSS will not be
   added to the head section and you will not get any warning etc..
   Instead you may use any other component on your page.
  
   I agree that throwing an exception is not the preferred solution, but
   at least it give users a hint that they are doing something that
   currently doesn't work. I thought this is better than nothing while we
   could discuss a much better solution for the problem.
  
   Using html:
   - means we need to create yet another auto-component (automatically
   assign a wicket:id; automatically create an associated
   WebMarkupContainer - which will need some special behavior to be
   invisible/transparent for users - and of course at runtime you need to
   execute it. We already had discusions on how to reduce the number of
   auto components.
   - do we need to change all relevant WebPage methods to refer to that
   component? Or only for adding behaviors (e.g.
   getHtmlComponent().add(behavior). By sometime referring to that that
   html component and sometimes not, are we not creating yet another
   inconsistency (or magic).
  
   I was thinking of using the body component which already is
   automatically created. BUT it only make sense for HeaderContributors.
   html make more sense for AMs which realy modify an attribute (e.g.
   lang).
  
   I know onComponentTag doesn't make sense, but that's IMHO not valid
   reason to forbid header contribution as well.
  
   I agree but would be a suitable technical solution:
   E.g. keep throwing an exception for IBhavior and implement
   public void WebPage.add(HeaderContributor contrib)
   {
   getBodyContainer().add(contrib)
   }
  
   lets discuss the pros and cons of all alternatives in order to find
   the best solution for Wicket and all its users.
  
   Juergen
  
   On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote:
Arrgh. Discard my previous reply. This is wrong. Why shouldn't I be
able to do header contribution on behavior attached to a page? This
doesn't make sense!
   
I know onComponentTag doesn't make sense, but that's IMHO not valid
reason to forbid header contribution as well.
   
-Matej
   
   
On 6/24/07, Jonathan Locke [EMAIL PROTECTED] wrote:

 my code which does this:

 add(HeaderContributor.forCss(CSS));

 now throws the following exception.  my web page needs to contribute 
 CSS to
 the header.  i'm wondering, why can't i do it this way anymore (it 
 seems
 like WebPage is a component like any other and my code did work fine 
 before
 this exception)? and what's the best alternative? thanks!

 Caused by: org.apache.wicket.WicketRuntimeException: You can 
 not
 attach behaviors onto WebPages. Web pages do require a markup file 
 but no
 specific tag to attach the page to. This is why behaviors such as
 HeaderContributor for example don't work if attached to a WebPage. 
 Please
 attach the behavior to any other of your components.




 --
 View this message in context: 
 http://www.nabble.com/cannot-add-CSS-to-web-page--tf3970619.html#a11270671
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] setBorderBodyContainer in 1.3

2007-06-23 Thread Juergen Donnerstag
I asked the infrastructure group already. Unfortunately without
success. The reason being that both are in use (even if it is some
very old issue I raised in other project some years ago and which is
closed already). But I give it another try.

Juergen

On 6/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 juergen, there are two of you in jira, which makes it hard to assign issues.
 do you think you can work it out with asf infrastructure group to remove the
 account you no longer use?

 -igor



  On 6/21/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  This feature has not yet been backported to 1.3 the reason being that
  we first need to backport all of the markup fragment/render changes.
  That will not happen in 1.3.
 
  yes, open a jira issue please.
 
  Juergen
 
  On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   open a jira issue please
  
   -igor
  
  
  
   On 6/21/07, Alberto Bueno  [EMAIL PROTECTED] wrote:
This problem was solved in the 2.0 version, but I don't how we can
implement a solution in version 1.3...
Because it's a very tipical situation if you are using borders...
Waiting responses... :)
   
 Sorry if I'm mistaken, but I think this is related to an issue that
 I
   posted
 about here:

  
 http://www.nabble.com/Borders-Containing-Embedded-Components-tf3776704.html#a10679274
 previous post .

 I'm afraid that post didn't get any response, and I never solved it
 on
   my
 own...

 Severian.

   
   
   
  
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Fwd: Re: html wicket:id=html CSS]

2007-06-23 Thread Juergen Donnerstag
Jan,

the problem is that though you can attach attribute modifier (that is
what HeaderContributor is as well) to a Page (or WebPage), it'll not
work. WebPage doesn't have a tag. Since there is no tag, the attribute
modifier are not invoked, hence the nothing gets added to the header
section.

Solution: you simply must attach HeaderContributor.forCss to any other
of your components (e.g. html in your code)

In order to prevent such errors, Wicket should detect (if not prevent)
that attribute modifiers are added to WebPage. I've no idea right now
how to make it a compile error, but we certainly can make it a runtime
exception.

Juergen

On 6/22/07, Jan Kriesten [EMAIL PROTECTED] wrote:

 copy to the list, as sourceforge doesn't allow zip-attachments atm.


  Original Message 
 Subject: Re: [Wicket-user] html wicket:id=html  CSS
 Date: Fri, 22 Jun 2007 08:53:23 +0200
 From: Jan Kriesten [EMAIL PROTECTED]


 Hi Juergen,

  I'll try my best to find some spare time to do it. Hopefully over the 
  weekend.

 much appreciated, thank you! :-)

 I attached a zip-file containing the example.

 Best regards, --- Jan.



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setBorderBodyContainer in 1.3

2007-06-23 Thread Juergen Donnerstag
please keep the jdonnerstag for wicket. thanks

Juergen

On 6/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 On 6/23/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  I asked the infrastructure group already. Unfortunately without
  success. The reason being that both are in use (even if it is some
  very old issue I raised in other project some years ago and which is
  closed already). But I give it another try.

 ok i think i figured out what to do. we cannot delete your account because
 of fk constraints. but what i can do is remove wicket-developers group from
 one of them and then it will not be assignable to wicket issues. which one
 do you want me to remove the group from?

 username: jdonnerstag
 username: juergen.donnerstag [at] eds [dot] com

 -igor

 
  Juergen
 
  On 6/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   juergen, there are two of you in jira, which makes it hard to assign
 issues.
   do you think you can work it out with asf infrastructure group to remove
 the
   account you no longer use?
  
   -igor
  
  
  
On 6/21/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
This feature has not yet been backported to 1.3 the reason being that
we first need to backport all of the markup fragment/render changes.
That will not happen in 1.3.
   
yes, open a jira issue please.
   
Juergen
   
On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 open a jira issue please

 -igor



 On 6/21/07, Alberto Bueno  [EMAIL PROTECTED] wrote:
  This problem was solved in the 2.0 version, but I don't how we can
  implement a solution in version 1.3...
  Because it's a very tipical situation if you are using borders...
  Waiting responses... :)
 
   Sorry if I'm mistaken, but I think this is related to an issue
 that
   I
 posted
   about here:
  

  
 http://www.nabble.com/Borders-Containing-Embedded-Components-tf3776704.html#a10679274
   previous post .
  
   I'm afraid that post didn't get any response, and I never solved
 it
   on
 my
   own...
  
   Severian.
  
 
 
 

  
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 



  
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   
  
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2

Re: [Wicket-user] html wicket:id=html CSS

2007-06-22 Thread Juergen Donnerstag
I'll try my best to find some spare time to do it. Hopefully over the weekend.

I already tried to open your tar.gz with Winzip 10, unfortunately
winzip only comes up with an error. Could you please either zip them
or send them to me separately. Thanks.

Juergen

On 6/21/07, Jan Kriesten [EMAIL PROTECTED] wrote:

 hi,

 could someone verify that the given code doesn't work for him, too?

 i'm lost a bit in this matter.

 thanks!

 best regards, --- jan.



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setBorderBodyContainer in 1.3

2007-06-22 Thread Juergen Donnerstag
This feature has not yet been backported to 1.3 the reason being that
we first need to backport all of the markup fragment/render changes.
That will not happen in 1.3.

yes, open a jira issue please.

Juergen

On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 open a jira issue please

 -igor



 On 6/21/07, Alberto Bueno [EMAIL PROTECTED] wrote:
  This problem was solved in the 2.0 version, but I don't how we can
  implement a solution in version 1.3...
  Because it's a very tipical situation if you are using borders...
  Waiting responses... :)
 
   Sorry if I'm mistaken, but I think this is related to an issue that I
 posted
   about here:
  
 http://www.nabble.com/Borders-Containing-Embedded-Components-tf3776704.html#a10679274
   previous post .
  
   I'm afraid that post didn't get any response, and I never solved it on
 my
   own...
  
   Severian.
  
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] html wicket:id=html CSS

2007-06-19 Thread Juergen Donnerstag
Please see the jira issue. I was not able to reproduce it with the
latest 1.3 trunk. SimplePageTest_13 at least shows that header
contributions seems to work ok. If you could modify this test and
proof your point, that would be very helpful.

Juergen

On 6/19/07, Jan Kriesten [EMAIL PROTECTED] wrote:

 Hi,

 I'm not sure, I remember something that has been said about giving html an 
 id
 and problems with HeaderContributors:

 If I give the html a wicket:id to modify the 'lang'-attribute, it seems that
 wicket isn't able to handle contributions to the header correctly any more (in
 my case it broke the css for a tree).

 Is there any way to work around this issue, yet?

 Best regards, --- Jan.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] html wicket:id=html CSS

2007-06-19 Thread Juergen Donnerstag
 Java
public SimplePage_13()
{
//  Component header = new WebMarkupContainer(html);
Component header = new AjaxLink(html, new Model(test))
{
private static final long serialVersionUID = 1L;

public void onClick(AjaxRequestTarget target)
{
}
};
header.add(new AttributeModifier(lang, new Model(de)));
add(header);
}

--- markup

? xml version= 1.0 encoding =UTF-8 ?
! DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

html wicket:id=html xmlns:wicket
xmlns=http://www.w3.org/1999/xhtml; xmlns:lang=[current language]
lang=[current language]
  body
  /body
/html

--- output
? xml version= 1.0 encoding =UTF-8 ?
! DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

html lang=de wicket:id=html xmlns:wicket=
xmlns=http://www.w3.org/1999/xhtml; xmlns:lang=[current language]
onclick=var 
wcall=wicketAjaxGet('?wicket:interface=:0:html::IBehaviorListener:0:',
function() { }.bind(this), function() { }.bind(this));return !wcall;
id=html0
  headscript type=text/javascript
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script
script type=text/javascript
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js/script
script type=text/javascript
id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
wicketAjaxDebugEnable=true;
/*--]]*//script

script type=text/javascript
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script
/headbody
  /body
/html


Please correct me if I'm wrong, but AjaxLink add various css files to
the header.

Juergen

On 6/19/07, Jan Kriesten [EMAIL PROTECTED] wrote:

 hi juergen,

 just looked at SimplePage_13.[html|java] - there is no
 HeaderContributor.forCss(css) which couldn't work...

 the modifiers for the html-attributes do work, that's not the problem. maybe
 you missed the point?

 best regards, --- jan.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] turning off markup validation

2007-06-08 Thread Juergen Donnerstag
ok understood. And isn't it than a typical Border situation? Please
take a look at Border and  MarkupComponentBorder and the respective
javadoc and junit tests to see how they work.

Juergen

On 6/8/07, Vit Rozkovec [EMAIL PROTECTED] wrote:
 Actually I do, sometime the conditional text is there (when there are
 subitems for current item), for all the rest the visibility of span is
 set to false.


 Vitek

 Juergen Donnerstag wrote:
  Why do you need the fragments at all? The fragments body is a constant
  text, correct? You don't change it, you don't change the visibility.
 
  Juergen
 
  On 6/7/07, Ví­t Rozkovec [EMAIL PROTECTED] wrote:
 
  Good day,
  one more issue - is there some way how to turn of markup validation?
  In my template I am using this:
 
  
 wicket:panel
 span wicket:id=outerConditionalStart/span
 ul
 li wicket:id=liItem
 a href=# wicket:id=link
 span wicket:id=linkText[text odkazu]/span
 span wicket:id=innerConditionalStart/span
 /a
 span wicket:id=innerConditionalEnd/span
 span wicket:id=subItemInsertPoint/span
 /li
 /ul
 span wicket:id=outerConditionalEnd/span
 /wicket:panel
 
  wicket:fragment wicket:id=outerConditionalStart
  !--[if lte IE 6]tabletrtd![endif]--
  /wicket:fragment
 
  wicket:fragment wicket:id=outerConditionalEnd
  !--[if lte IE 6]/td/tr/table/a![endif]--
  /wicket:fragment
 
  wicket:fragment wicket:id=innerConditionalStart
  !--[if IE 7]!--
  /wicket:fragment
 
  wicket:fragment wicket:id=innerConditionalEnd
  !--![endif]--
  /wicket:fragment
  
 
  The problem is that wicket complains about using fragments this way with
  message:
 
  WicketMessage: Tag 'td' (line 20, column 30) has a mismatched close
  tag at '/wicket:fragment' (line 21, column 1)
 
 
  My purpose is to first initialize a menu tree and then traversing whole
  tree, generating drop-down menu with the structure which can be seen here:
  http://www.cssplay.co.uk/menus/css/final_drop.txt
  The whole working menu can bee seen here:
  http://www.cssplay.co.uk/menus/final_drop.html
 
  What solution can be for my problem?
  Or does wicket has natively some support for creating dropdown menus? I
  was unable to find.
  Thanks for any help.
  Regards Vitek
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] turning off markup validation

2007-06-07 Thread Juergen Donnerstag
Why do you need the fragments at all? The fragments body is a constant
text, correct? You don't change it, you don't change the visibility.

Juergen

On 6/7/07, Ví­t Rozkovec [EMAIL PROTECTED] wrote:
 Good day,
 one more issue - is there some way how to turn of markup validation?
 In my template I am using this:

 
wicket:panel
span wicket:id=outerConditionalStart/span
ul
li wicket:id=liItem
a href=# wicket:id=link
span wicket:id=linkText[text odkazu]/span
span wicket:id=innerConditionalStart/span
/a
span wicket:id=innerConditionalEnd/span
span wicket:id=subItemInsertPoint/span
/li
/ul
span wicket:id=outerConditionalEnd/span
/wicket:panel

 wicket:fragment wicket:id=outerConditionalStart
 !--[if lte IE 6]tabletrtd![endif]--
 /wicket:fragment

 wicket:fragment wicket:id=outerConditionalEnd
 !--[if lte IE 6]/td/tr/table/a![endif]--
 /wicket:fragment

 wicket:fragment wicket:id=innerConditionalStart
 !--[if IE 7]!--
 /wicket:fragment

 wicket:fragment wicket:id=innerConditionalEnd
 !--![endif]--
 /wicket:fragment
 

 The problem is that wicket complains about using fragments this way with
 message:

 WicketMessage: Tag 'td' (line 20, column 30) has a mismatched close
 tag at '/wicket:fragment' (line 21, column 1)


 My purpose is to first initialize a menu tree and then traversing whole
 tree, generating drop-down menu with the structure which can be seen here:
 http://www.cssplay.co.uk/menus/css/final_drop.txt
 The whole working menu can bee seen here:
 http://www.cssplay.co.uk/menus/final_drop.html

 What solution can be for my problem?
 Or does wicket has natively some support for creating dropdown menus? I
 was unable to find.
 Thanks for any help.
 Regards Vitek

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket did not make the grade.

2007-06-05 Thread Juergen Donnerstag
This is not very difficult to implement. The displaytag example in
wicket-examples used to have it and it was based on ListView. But I
think we removed it since Repeater/DataView etc from wicket-extension
is more flexible and elegant and our preferred approach for most table
type implementation. I have no doubts that a customized component can
be developed which uses Labels as a default for each cell still giving
you the option to use any other component if the default (Label)
should ot be used.

Juergen.

On 6/5/07, Florian Hehlen [EMAIL PROTECTED] wrote:
 HI all,

 I am sad to announce that my company did not choose to use wicket after
 comparison with struts 2. :-(

 One criticism that came out as we were looking at Wicket code was that
 there seems to be a need to write a lot of Java code in a ListView for
 such things as displaying a table. Although I did not see this issue as
 out-weighing all the benefits, many of my colleagues did.

 Is there any plan or push or hidden feature that allows for a bean to be
 directly mapped to a template without having to declare new Label(...)
 for each field in the ListView. I think this would be a great win for
 Wicket if adding those low-level components was only necessary when one
 wants to add special handling, formating, validation, etc.

 thanks,
 Florian.

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket:message for attributes?

2007-06-05 Thread Juergen Donnerstag
Please see the javadoc for WicketMessageTagHandler

Juergen

On 6/5/07, Jonathan Locke [EMAIL PROTECTED] wrote:

 Is there something like wicket:message for localizing attributes like title
 tooltips?  I looked on the WIKI but there wasn't anything there.

 --
 View this message in context: 
 http://www.nabble.com/wicket%3Amessage-for-attributes--tf3874468.html#a10978311
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Making custom MessageResolver

2007-06-04 Thread Juergen Donnerstag
The current implementation in 1.3 trunk does
setEscapeModelString(false) (see WicketMessageResolver(line 130)

I haven't yet understood why you want to add either the Label and/or
the Link via the IComponentResolver? Why not make the Link a std
component like
a wicket:id=myLink href=# onclick=popup();
and use setVisible(boolean) to either switch it on or off depending
the user status.

Juergen

On 6/4/07, Murat Yücel [EMAIL PROTECTED] wrote:
 Hi All

 I have currently made a custom message resolver using the IComponentResolver
 interface.
 The reason i have made this is because it is not possible
 setEscapeModelString(false) for
 the wicket:message tag.

 Well now i have another issue. If someone logon to my application as text
 administrator then
 instead of a Label a Link with a label should be shown.

 Example (no rights)
 spanThis is a text/span

 Example 2 (text admin)
 a href=# onclick=popup();spanThis is a text/span/a

 The link should include PopupSettings and in the popup it should be able to
 change the text
 in the database. This way the business can change texts without me getting
 involved :)...

 The popup part is not a issue. I just have problems with both adding a Link
 and a Label in a
 Custom Message Resolver.

 Hope that you can help

 Kind regards

 /Murat Yücel


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom Message Resolver

2007-06-02 Thread Juergen Donnerstag
The namespace of the attribute? You are right, there is no special
methof for it.You need to check that the attribute name starts with
your own namespace.

Juergen

On 5/21/07, Scott Sauyet [EMAIL PROTECTED] wrote:
 I wrote:
  I see the experimental class WicketMessageTagHandler and note that it's
  disabled by default.  If I were to mimic this class for my own custom
  filter, is there any way I could go about registering it without hacking
  into MarkupParser?  Or is there some simpler way to do this?

 Okay, I'm getting there.  I managed to do this with code in my
 Application init() that looks like this:

  getMarkupSettings().setMarkupParserFactory(new
  IMarkupParserFactory() {
  public MarkupParser newMarkupParser() {
  return new MarkupParser(new XmlPullParser()) {
  public void initFilterChain() {
  appendMarkupFilter(new MyMarkupFilter());
  }
  };
  }
  });

 This will do almost everything I want.  But I'm really considering
 replacing the namespace prefix wicket with something else.  I copied
 much code from WicketMessageTagHandler, but that has a little TODO
 that reads

  /** TODO Post 1.2: General: Namespace should not be a constant */
  [ ... ] String WICKET_MESSAGE_ATTRIBUTE_NAME = wicket:message;

 I would like to get hold of the namespace prefix in use during the call
 to nextTag() in my implementation of IMarkupFilter, but there doesn't
 seem to be any way to get it there.  Am I missing something simple?

 As always, thanks,

-- Scott


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RepeatingView/ Container behaviour

2007-06-02 Thread Juergen Donnerstag
Wich wicket version did you use for your test? I remember I fixed a
similar bug a few week ago. I don't remember the details though.

Juergen

On 5/28/07, Korbinian Bachl [EMAIL PROTECTED] wrote:

 Hi Eelco,

 tried it, but this seems to go more buggy than before:

 if I use
 wicket:container wicket:id=header

 he complains about no end-tag, if i do

 wicket:container wicket:id=header / he renders, but puts out:

 panelcontent
   /wicket:container

 (yes , he doesnt print out the wicket:container open tag but a close tag
 afterwards !)

 which seems even bader than an empty div/div set as /wicket:container
 is completely invalid :(



  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag
  von Eelco Hillenius
  Gesendet: Montag, 28. Mai 2007 15:58
  An: wicket-user@lists.sourceforge.net
  Betreff: Re: [Wicket-user] RepeatingView/ Container behaviour
 
  What about using:
 
  wicket:container wicket:id=header
 
  Eelco
 
  On 5/28/07, Korbinian Bachl [EMAIL PROTECTED] wrote:
  
   Hello,
  
   ive come to a problem I dont know how to solve. I use a BasePage in
   wich i have 2 RepeatingViews in wich i then put components (dynamic
   way at runtime
   - i dont know what component will be in)
  
   div wicket:id=header
   wicket:header container
   /div
  
   div wicket:id=content
   wicket:content container
   /div
  
   and they work alright - however, i allways get the div
  spans around
  
   divHeaderComponent1/divdivHeaderComponent2/div
  
   - I tried to get rid of them by using
   header = new RepeatingView(header);
   header.setRenderBodyOnly(true);
   add(header);
  
   but the setRenderBodyOnly(true) seems to be ignored... I
  then thought
   i could use a WebMarkupcontainer but this then has no .newChildId
   function and would require me to know the ID of a component, wich i
   dont know as its dynamic;
  
   So how can i get rid of these divs while having the rest of the
   RepeatingView behaviour?
  
  
  
  
  --
   --- This SF.net email is sponsored by DB2 Express Download
  DB2 Express
   C - the FREE version of DB2 express and take control of
  your XML. No
   limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  --
  ---
  This SF.net email is sponsored by DB2 Express Download DB2
  Express C - the FREE version of DB2 express and take control
  of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom Message Resolver

2007-05-17 Thread Juergen Donnerstag
Wicket is very flexible and modular. You can write your own
MyWicketMessageResolver and register it with the application. How to
do it? Just see how WicketMessageResolver is registered. It is realy
simple.

I don't see how IComponentResolver can help you, but may I missed the point.

Looking at Localizer and how it works to find a property value might
help you as well.

Juergen

On 5/17/07, Scott Sauyet [EMAIL PROTECTED] wrote:
 I did warn you [1] I'd be back!  :-)

 It looks like I will be using Wicket for my next project, but I ran into
 an interesting little issue that I'm not sure how to solve.  How can I
 allow templates that have something like wicket:message's included but
 with my own custom resolver?

 The application will have multiple deployments, and each customer will
 be able to tweak the look and feel of the output.  Most of that will be
 handled by CSS changes and choices of several pre-built HTML templates.
   But there will also be a need for certain sections of the templates to
 be customizable to allow what is essentially free-form data including
 arbitrary name-value pairs.  There will be real logic involved in
 looking up the dynamic value for each name, and I can't simply stick the
 data in properties file.

 Since each installation will only serve one language, i18n will not be
 an issue, so I might be able to do this by replacing the
 WicketMessageResolver with a custom implementation.  Or I could add my
 own IComponentResolver.  But are there extension points that would let
 me do either of these, or will I have to hack up my own version of
 Wicket just for this?

 Or, even better, is there something already in place that would simply
 let me hook in a custom means of resolving either the message key or my
 own construct?

-- Scott

 [1] http://tinyurl.com/2jqy48


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-16 Thread Juergen Donnerstag
The modification watcher should only test the last modifed time. I
thought these issues have been fixed, haven't they?

Juergen

On 5/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 is the modification watcher what causes file handles to be left open? how do
 you expect that to be enabled in production?

 -igor



 On 5/16/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
  * Juergen Donnerstag:
 
   This is  true, but  I understand  Chris has  a general  need for
   markup  reloading  in  production  as  well  (though  I
  haven't
   understood   yet  how   Chris  creates   the  markup   files  at
   runtime). Or did  I misunderstand  that? And though  disabled in
   deployment mode by default, he  could enable it for his specific
   application.
 
  Indeed, ModificationWatcher  acting on previously not  found files
  should be done only in development mode by default, and Chris will
  just have to enable it for his deployment.
 
  Cheers,
  --
   Jean-Baptiste Quenot
  aka  John Banana   Qwerty
  http://caraldi.com/jbq/
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Juergen Donnerstag
I hoping to be able to modify MarkupCache.loadMarkupAndWatchForChanges
in a way that it not only checks if existing files have changed but
also that not-found entries are checked by ModificationWatcher.

Juergen

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 im not so sure we should address it.

 everytime you request a page wicket performs a fallback-search

 you say you want page A, variation B. then wicket has to look for

 A_EN_US_B -- not found
 A_EN_B -- not found
 A_B -- found

 in case of markup inheritance this is also done for parents

 that is 3 lookups just for a variation. what you are saying is you do not
 want to cache not-found, then that means this search lookup will be
 performed every time you render a page, which will slow down the hell out of
 the application.

 if we can find a way to do this nicely, then fine. but we cannot do what
 devmode does and monitor the files becuase that leaves file handles open, so
 there needs to be another way.

 furthermore, this is not typical of every application out there, in fact it
 is quiet atypical. given that, i think chris should implement his own markup
 finding using IResourceStreamLocator. i assume he knows when he adds a new
 variation, so that event can work in conjunction with his own
 iresourcestream to evict some lookup path from the markup.

 maybe really all we need to add is markupcache.clear(class), and then chris
 can call that when he adds a new variation. also he can probably make all
 this happen by implementing IMarkupCacheKeyProvider on components for which
 he adds variations.

 just some food for thought

 -igor



 On 5/15/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
  * Chris Colman:
 
   It has no  problem finding the ones that are  there when the web
   app is started. It's just that it only looks once at startup. If
   I add a new one after the web app has started it never finds it.
 
  Indeed  this is  a known  problem, but  surprisingly never  fixed.
  Igor mentions it  is done like this by design,  but I think you've
  got a perfectly valid usecase that Wicket should address.
  --
   Jean-Baptiste Quenot
  aka  John Banana   Qwerty
  http://caraldi.com/jbq/
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Juergen Donnerstag
This is true, but I understand Chris has a general need for markup
reloading in production as well (though I haven't understood yet how
Chris creates the markup files at runtime). Or did I misunderstand
that? And though disabled in deployment mode by default, he could
enable it for his specific application.

Juergen

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 but the modification watcher is disabled in deployment mode, so this is a
 fix only in dev mode?

 -igor



 On 5/15/07, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
 
  I hoping to be able to modify
 MarkupCache.loadMarkupAndWatchForChanges
  in a way that it not only checks if existing files have changed but
  also that not-found entries are checked by ModificationWatcher.
 
  Juergen
 
  On 5/15/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   im not so sure we should address it.
  
   everytime you request a page wicket performs a fallback-search
  
   you say you want page A, variation B. then wicket has to look for
  
   A_EN_US_B -- not found
   A_EN_B -- not found
   A_B -- found
  
   in case of markup inheritance this is also done for parents
  
   that is 3 lookups just for a variation. what you are saying is you do
 not
   want to cache not-found, then that means this search lookup will be
   performed every time you render a page, which will slow down the hell
 out of
   the application.
  
   if we can find a way to do this nicely, then fine. but we cannot do what
   devmode does and monitor the files becuase that leaves file handles
 open, so
   there needs to be another way.
  
   furthermore, this is not typical of every application out there, in fact
 it
   is quiet atypical. given that, i think chris should implement his own
 markup
   finding using IResourceStreamLocator. i assume he knows when he adds a
 new
   variation, so that event can work in conjunction with his own
   iresourcestream to evict some lookup path from the markup.
  
   maybe really all we need to add is markupcache.clear(class), and then
 chris
   can call that when he adds a new variation. also he can probably make
 all
   this happen by implementing IMarkupCacheKeyProvider on components for
 which
   he adds variations.
  
   just some food for thought
  
   -igor
  
  
  
   On 5/15/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
* Chris Colman:
   
 It has no  problem finding the ones that are  there when the web
 app is started. It's just that it only looks once at startup. If
 I add a new one after the web app has started it never finds it.
   
Indeed  this is  a known  problem, but  surprisingly never  fixed.
Igor mentions it  is done like this by design,  but I think you've
got a perfectly valid usecase that Wicket should address.
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/
   
   
  
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your

Re: [Wicket-user] Autolinkresolver within Panel code

2007-05-14 Thread Juergen Donnerstag
Mind you to create a jira bug report as well. it will help us not to
forget things. Thanks.

Juergen

On 5/14/07, Rüdiger Schulz [EMAIL PROTECTED] wrote:
 I uploaded a quickstart here:

 http://www.2rue.de/wicket/wicket-quickstart-autolink.tar.gz

 In fact, I think the problem would occurr even without using base- and
 childpages. It's just that the error message on the child page
 displays the combined markup.

 .rue

 2007/5/14, Juergen Donnerstag [EMAIL PROTECTED]:
  A quickstart would be great
 
  -Juergen
 
  On 5/14/07, Rüdiger Schulz [EMAIL PROTECTED] wrote:
   Hello,
  
   I am currently migrating my application from 1.2 to 1.3 Snapshot. So
   far this went very well. But now I have a little problem:
  
   All my pages are subclassed from a common basepage. That page has a
   Panel with login information and some links. On the basepage-markup,
   the html of the panel is copied to enable an offline preview for my
   webdesigner (he can work on the templates from within Dreamweaver).
   The links have a href attribute, so that offline navigation is
   possible.
  
   This worked well in 1.2. In 1.3, I get a markup error at the start of the 
   link:
  
   org.apache.wicket.markup.MarkupException: Expected close tag for div
   id=loginInfoPanel0 wicket:id=loginInfoPanel
  
   The page being reported to have a problem is the subpage (!).
  
   Now when I remove the href from the links in the basepage (!), all
   pages render fine, although the links are still there in the
   subpage-markups, though outside of wicket:extend.
  
   So, in this case it was not that big of a deal, but I think this
   problem might come again. I think it has something to do with
   Autolinkresolver trying to generate new links in places where he
   shouldn't. Is it possible to disable this?
  
   Should I file a JIRA for this, maybe with a little quickstart? Or am I
   expecting too much here anyway? I had a similar problem with
   reproducing panel code to the base page in 1.2 - so where was that
   current version of this wicket:preview JavaScript again ;-)
  
  
   --
   greetings from Berlin,
  
   Rüdiger Schulz
  
   www.2rue.de
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 greetings from Berlin,

 Rüdiger Schulz

 www.2rue.de

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Autolinkresolver within Panel code

2007-05-13 Thread Juergen Donnerstag
A quickstart would be great

-Juergen

On 5/14/07, Rüdiger Schulz [EMAIL PROTECTED] wrote:
 Hello,

 I am currently migrating my application from 1.2 to 1.3 Snapshot. So
 far this went very well. But now I have a little problem:

 All my pages are subclassed from a common basepage. That page has a
 Panel with login information and some links. On the basepage-markup,
 the html of the panel is copied to enable an offline preview for my
 webdesigner (he can work on the templates from within Dreamweaver).
 The links have a href attribute, so that offline navigation is
 possible.

 This worked well in 1.2. In 1.3, I get a markup error at the start of the 
 link:

 org.apache.wicket.markup.MarkupException: Expected close tag for div
 id=loginInfoPanel0 wicket:id=loginInfoPanel

 The page being reported to have a problem is the subpage (!).

 Now when I remove the href from the links in the basepage (!), all
 pages render fine, although the links are still there in the
 subpage-markups, though outside of wicket:extend.

 So, in this case it was not that big of a deal, but I think this
 problem might come again. I think it has something to do with
 Autolinkresolver trying to generate new links in places where he
 shouldn't. Is it possible to disable this?

 Should I file a JIRA for this, maybe with a little quickstart? Or am I
 expecting too much here anyway? I had a similar problem with
 reproducing panel code to the base page in 1.2 - so where was that
 current version of this wicket:preview JavaScript again ;-)


 --
 greetings from Berlin,

 Rüdiger Schulz

 www.2rue.de

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Formatting non-html templates

2007-04-27 Thread Juergen Donnerstag
 tag wicket:id=test-labeltest/tag

 wicket will output this:

 tagtest/tag


and now component.setRenderBodyOnly(true)

Juergen

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Formatting non-html templates

2007-04-26 Thread Juergen Donnerstag
You know that you can remove all tag from output, do you? To remove
wicket:xx is simply a matter of settings and all other tags (e.g.
span wicket:id=..) can be removed by subclassing onComponentTag
and not output anything.

Juergen

On 4/27/07, David Leangen [EMAIL PROTECTED] wrote:
 Just to be sure we're talking about the same thing here... ;-)

   I have overridden Page with PlainTextPage that outputs text/plain.
 
  Hmmm. Does that work? Wicket still needs tags to operate...

 Since there's so much nice stuff already available through Wicket and
 my Wicket framework is already all set up, I was thinking of using
 Wicket to provide access to text-only resources (and eventually others,
 too).

 For example, I want to read in some page parameters and, based on those
 parameters, directly return a page of mime-type text/plain with some
 strictly text-only output (i.e. no tags).

 In other words, this is accessed directly from the outside as a url,
 preferably mounted as a nice/pretty url.


   I'm wondering: what's the best way to be able to add the plain-text
   equivalent of panels to my template?
 
  Resources. See for instance TextTemplate and friend.

 I took a quick look... but aren't resources used internally by wicket
 for embedding into an html page? If so, it doesn't sound like this would
 work for what I'm intending...

 Or maybe I just don't see how to access the resource via a url to
 accomplish what I'm after.


 Cheers,
 Dave




 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Export to CSV encoding problem

2007-04-16 Thread Juergen Donnerstag
Unlike XML, CSV files don't have a tag or any other option to tell
which encoding the characters are. Hence Word, Excel etc are assuing
the encoding is equal to you computers default encoding (CP1259 in
Germany). Some programms are more intelligent than others and
recognize if certain byte codes are not allowed within the assumed
charset and than ask you (e.g. WORD). You need to output the CSV file
with the encoding you are using on your computer.

Juergen

On 4/16/07, LongkerDandy [EMAIL PROTECTED] wrote:
 Hi

 I'm try to export a table to CSV format;
 Following the example from wicket.examples.displaytag.export, most
 things goes well, except the encooding.
 It seems that when I export it to the CSV or XLS format, the Excel don't
 know what encoding my file used.
 All the Chinese characters in CSV and XLS are crap, and when exports to
 XML it works well with the browser at UTF-8 encoding.
 Plus, when I use WORD to open my CSV files, it asked me to choose the
 encoding, and with UTF-8, it just fine.

 So I think the Excel may not know the encoding by himself,
 I wondered if there is a way to let him know.

 I tried this

 response.setCharacterEncoding(UTF-8);

 while reponse is WebResponse.
 But no luck.

 Any idea to fix that?

 Regards
 LongkerDandy

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] localized resource property file - fallback to default?

2007-04-08 Thread Juergen Donnerstag
Wicket does not only fall back to the default. It iterates over a long
list of property filenames which are created from the component tree,
locale, style and variation.

Juergen

On 4/8/07, Wilko Hische [EMAIL PROTECTED] wrote:

 Hi Erik,

 Wicket does fall back to the default *file* but what about the case where
 you have one (or more) large properties file(s) for your default language
 and you want to create a variation in which you want to change just a few
 words for instance to make them more domain specific?
 In that case I would like a way to override just those few domain specific
 terms, ie an additional .properties file for that variation containing only
 the deviating terms instead of a copy of the original with just a few
 changes. Is there a wicket way to implement that?

 Regards,

 Wilko



 Erik van Oosten wrote:
 
  It already does work like that.
  http://cwiki.apache.org/WICKET/i18n-and-resource-bundles.html
 
  Regards,
   Erik.
 
 
  dukejansen wrote:
  Right now, if I have a localized property file (e.g.
  Welcome_de.properties),
  it seems I must have all resource keys defined in it.
 
  I would prefer to have the localizer be smart enough to fallback to the
  default properties file (e.g. Welcome.properties) if a property is not
  present in the localized property file.
 
  This would make it possible to add properties to the system and not have
  to
  translate them all immediately - let it fall back to the default language
  until someone gets around to translating it.
 
  Does Wicket have this easily configurable, or do I need to roll my own
  resource resolvers or other classes for this purpose?
 
 
  --
  Erik van Oosten
  http://day-to-day-stuff.blogspot.com/
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/localized-resource-property-file---fallback-to-default--tf3493032.html#a9891947
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using Border without wicket:border and wicket:body tags?

2007-04-08 Thread Juergen Donnerstag
There are always possibilities. Take a look at the Border.java
component to implement the functionalities and if you find a way how
to do it, I'm certainly interested. And if you find a way to make the
Border.java code more easy, I'm even more interested. However since by
stripping wicket tags and attrs the html output can be made completly
(x)html compliant, there is no real need for it, IMO. Thus my interest
is in finding more simple ways of implementing it.

Juergen

On 4/8/07, Thomas Singer [EMAIL PROTECTED] wrote:
 Don't you see a possibility, that I can write some (!) code with
 reasonable effort (e.g. OwnBorder) which just takes the wicket:id and
 avoids the non-HTML tags? My first experiments with OwnFragment give me
 some hope.

 Tom


 On Sun, 08 Apr 2007 17:47:37 +0200, Martijn Dashorst
 [EMAIL PROTECTED] wrote:

  No,
 
  But you can tell wicket not to render the wicket tags (default for
  deployment mode). This will strip the tags from the final markup.
 
  Martijn
 
  On 4/8/07, Thomas Singer [EMAIL PROTECTED] wrote:
  I want to keep my templates be clean HTML (except the wicket:id). Is it
  possible to use the Border feature without wicket:border and wicket:body
  tags using wicket:ids instead (similar to the Fragment component)?
 
  Tom

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] localized resource property file - fallback to default?

2007-04-08 Thread Juergen Donnerstag
Please take alook at Localizer and IStringResourceStreamLocator (?
hopefully I got it right). Localizer basically iterates of all
locators registers with Settings. Hence, you write and add as many new
locators as you like.

Juergen

On 4/8/07, Wilko Hische [EMAIL PROTECTED] wrote:


 I do understand this, but that is not really my question. Let's assume all
 my keys are in an application scoped property file MyApplication.properties,
 where MyApplication.java extends the WebApplication. Let this file contain a
 large amount of keys. Now some customer of ours comes along and insists on
 the use of specific terminology for a few of the keys. I think the Wicket
 approach would be to create a variant of MyApplication.properties,
 MyApplication_customer.properties? But then I have to copy *all* keys, not
 only the few that will have another translation. Because if I don't provide
 the other keys as well Wicket will follow the tree upwards to
 WebApplication.properties, and of course will not find them. In other words,
 defaults are looked for on a higher level, not sideways as well. But maybe
 there is another way to tackle this case? Because now I would be stuck with
 maintaining files that are almost identical.

 Wilko


 Juergen Donnerstag wrote:
 
  Wicket does not only fall back to the default. It iterates over a long
  list of property filenames which are created from the component tree,
  locale, style and variation.
 
  Juergen
 
  On 4/8/07, Wilko Hische [EMAIL PROTECTED] wrote:
 
  Hi Erik,
 
  Wicket does fall back to the default *file* but what about the case where
  you have one (or more) large properties file(s) for your default language
  and you want to create a variation in which you want to change just a few
  words for instance to make them more domain specific?
  In that case I would like a way to override just those few domain
  specific
  terms, ie an additional .properties file for that variation containing
  only
  the deviating terms instead of a copy of the original with just a few
  changes. Is there a wicket way to implement that?
 
  Regards,
 
  Wilko
 
 
 
  Erik van Oosten wrote:
  
   It already does work like that.
   http://cwiki.apache.org/WICKET/i18n-and-resource-bundles.html
  
   Regards,
Erik.
  
  
   dukejansen wrote:
   Right now, if I have a localized property file (e.g.
   Welcome_de.properties),
   it seems I must have all resource keys defined in it.
  
   I would prefer to have the localizer be smart enough to fallback to
  the
   default properties file (e.g. Welcome.properties) if a property is not
   present in the localized property file.
  
   This would make it possible to add properties to the system and not
  have
   to
   translate them all immediately - let it fall back to the default
  language
   until someone gets around to translating it.
  
   Does Wicket have this easily configurable, or do I need to roll my own
   resource resolvers or other classes for this purpose?
  
  
   --
   Erik van Oosten
   http://day-to-day-stuff.blogspot.com/
  
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
   your
   opinions on IT  business topics through brief surveys-and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
  http://www.nabble.com/localized-resource-property-file---fallback-to-default--tf3493032.html#a9891947
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/localized-resource-property-file---fallback

Re: [Wicket-user] locale filtering

2007-03-25 Thread Juergen Donnerstag
I'm not aware of any better way. It sounds reasonable simple to me.

Juergen

On 3/25/07, Kent Tong [EMAIL PROTECTED] wrote:
 Hi,

 If a given web app only supports say English (default) and French but the
 browser prefers German the most, then the getLocale() on the request will
 return German and that will be stored into the wicket session. The result
 is that all built-in components will output messages in German, while the
 messages output by the app itself will be in English.

 A solution is that Wicket should note that German is not a supported locale
 and thus will store English into the session. Currently it seems that the
 only way to do it is to override WebApplication.newWebRequest() to return
 a subclass of ServletWebRequest that performs this kind of locale filtering.

 Is there any better way?

 Thanks.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Reverting the constructor change of 2.0

2007-03-10 Thread Juergen Donnerstag
I didn't have much time in the recent to actually work on apps based
on Wicket, neither 1.x not 2.x. Thus I have no experience wih either
and no preference regarding the constructor change. I go with what the
experts decide.

In 2.x there two more changes which have not yet been backported into 1.3
- Localizer
- markup loading based on fragments

I don't thnk there is any magic involved in backporting both, it just
needs some doing and extensive testing.

Juergen

On 3/10/07, Matej Knopp [EMAIL PROTECTED] wrote:
 c) as well, except I don't think it's that good idea to release a beta
 before that. It certainly ain't beta if we expect the code to change
 that significantly. So imho either call it alpha or release it
 afterwards we commit the changes.

 -Matej

 Eelco Hillenius wrote:
  Hi,
 
  It looks like the discussion around reverting the constructor change
  that we did for 2.0 has cooled down. This email is not a vote yet, but
  a summary of opinions so far[1]. Those of you Wicket committers who
  didn't have your say yet (Juergen, Frank, Gwyn, Janne, Jan, Ate), I
  consider that an OK for reverting. If not, please reply to the thread.
  Juergen, you have been working on 2.0 quite a bit. Can you please
  state your opinion, and can you tell us whether there are more
  functional differences between 1.3 and 2.0 other than the constructor
  change, Java 5 features, the attach/ detach change and improved models
  and validators?[2]
 
  I think so far we can safely say reverting is supported broadly. At
  least, of the people who reacted, most stated they actually preferred
  add over the new constructor, and those who were either neutral or had
  a slight preference for the new constructor would still support
  reverting as that would keep the momentum for the project going.
 
  So, it looks like this may happen. But we'll vote about that in a few
  days. Before we do that, we have to reach consensus on the package
  we'll vote on. We have some different - and strong - opinions[3] so we
  need to find a way to bridge that. Here are what I think the different
  opinions:
 
  a) focus on stabilizing 1.3 first, meanwhile keep supporting 2.0
  (though only for bugfixes). 1.4 will be the release with backports of
  the currently missing 2.0 features, and 1.5 will be 1.4 + the Java 5
  features (including generics).
 
  b) as a) but rather than developing 1.3 up to a final release, freeze
  asap (only fix bugs) and start on 1.4
 
  c) put all backports except for the Java 5 features in 1.3 after the
  beta1 release (which we agreed upon doing this weekend). 1.4 will be
  for the Java 5 features, and the branch should be started as soon as
  1.3 is feature complete.
 
  Maybe the most constructive way to gather opinions here is to first
  let people plainly state what they prefer before we enter discussion
  mode. So, please state what package you think is the best idea (or
  introduce d if you want), and why.
 
  Cheers,
 
  Eelco
 
  [1] 
  http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9350505
  http://www.nabble.com/Re%3A-IMPORTANT%3A-your-opinion-on-the-constructor-tf3359229.html#a9344068
  [2] http://www.nabble.com/State-1.3--features-tf3376983.html
  [3] 
  http://www.nabble.com/VOTE%3A-backporting-wicket-2.0-model-change-to-1.3-tf3364601.html
  http://www.nabble.com/roadmap-tf3366743.html
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WicketTester message resolution

2007-03-08 Thread Juergen Donnerstag
You are using 1.2.x? To me it sounds like a bug that WicketTester or
MockWebApplication does not look into the application properties file
as a normal Application does. We should simply look at the config of
normal application and copy the one line of config into WicketTester.

Juergen

On 3/7/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * Dmitry Kandalov:
 
 
  Jean-Baptiste Quenot-3 wrote:
  
   Nice code snippet, would you  mind opening an issue, and providing
   your sample code as attachment?
 
  Sure, https://issues.apache.org/jira/browse/WICKET-368

 Thanks!

  Could you please also take a look at
  https://issues.apache.org/jira/browse/WICKET-258 :)

 Yes, it's on my TODO list, I'll do it if no one beats me.
 --
 Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RequestCycle ThreadLocal

2007-03-02 Thread Juergen Donnerstag
Why Do you want to create a Page in a separate thread? I floading the
page take a long time, it usually is the model data which takes the
time. Move loading the data into a separate thread if really
necessary.

Juergen

On 3/2/07, Robert . [EMAIL PROTECTED] wrote:
 Hi,

 I am using Wicket 1.2.5
 I am trying to create a page in a different thread and get a Wicket
 exception caused by the fact that the RequestCycle is not available in the
 current thread.
 Can not set the attribute. No RequestCycle available
 Is there a way that I can associate a request cycle on a thread?
 I see similar API calls for Session and Application, but nothing for
 RequestCycle.

 Robert


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] there is no way to preprocess raw markup in wicket 1.1?

2007-02-19 Thread Juergen Donnerstag
search for IMarkupFilter

Juergen

On 2/19/07, wouvlfe [EMAIL PROTECTED] wrote:

 oops, should have been more clear about what i want to do
 i want to be able to preprocess some of the tags (that do not have wicket
 ids) in the markup and modify them if necessary

 example:
 modify the original tag:
 /a/b/c

 to the tag:
 /e/f

 that is, change the static paths in certain scenarios

 is there a way this can be done through wicket?
 (i dont want to add a 50 different wicket tags for 50 different static
 resources in my markup file. So I would need to do this without wicket tags)

 i think Igor pointed me to IMarkupFilter but that didnt help me accomplish
 what I want.
 The filters dont seem to allow me to modify raw markup.
 dont know why but wicket LOVES to make classes and methods final.
 so there is no way i can use polymorphism to extend functionalities of
 wicket's base classes

 vk



 Timo Rantalaiho wrote:
 
  On Mon, 19 Feb 2007, wouvlfe wrote:
  I simply want to be able to modify the values of some static paths in the
  raw html markup
 
  it seems that there is no way to do it in wicket 1.1 ??
  i started by looking into markup filters
  when i wrote my own markup parser, i couldnt find a way to replace
  portions
  of the raw html
 
  It would help to know more specifically what you are trying
  to achieve.
 
  But if you want to change URLs to static resources, you
  might be better off providing a custom resource locator
 
 
  http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
 
  or if paths are produced by wicket components, tweaking your
  own versions of the components.
 
  - Timo
 
  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/there-is-no-way-to-preprocess-raw-markup-in-wicket-1.1--tf3251667.html#a9040495
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] VOTE on wicket:component

2007-02-15 Thread Juergen Donnerstag
wicket:container is available for 2.x.

Juergen

On 2/14/07, Rüdiger Schulz [EMAIL PROTECTED] wrote:
 Jonathan Locke schrieb:

   [X] Delete this unimportant and generally unsupported feature
   [ ] Keep wicket:component, but define its limits, document it on the wiki
  as fully supported and commit to supporting it in the future

 and a +1 for wicket:pseudo / wicket:container as well ;)

 Greetings,

 Rüdiger

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] VOTE on wicket:component

2007-02-13 Thread Juergen Donnerstag
 [X] Delete this unimportant and generally unsupported feature

Juergen

On 2/13/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 Our Wiki describes the wicket:component tag as follows:

 wicket:component - Creates a Wicket component on the fly. Needs a class
 attribute. Though this has been in wicket for a long time, it is still kind
 of an unsupported feature, as most of the core developers believe that this
 may lead to misuse of the framework. Before heavily relying on this feature,
 you might want to contact the user list to discuss alternative strategies.

 It's unclear to me that anyone is using this.  The utility is limited and
 unimportant.  And for anyone creating tooling support for wicket, this will
 be a tripping point.  I can't see any good reason to keep this feature as it
 is a way to instantiate a component in the markup and might server as the
 beginning of a bunch of requests to add component configuration or other
 code logic where we should only have nice clean markup.

 VOTE:

  [ ] Delete this unimportant and generally unsupported feature
  [ ] Keep wicket:component, but define its limits, document it on the wiki
 as fully supported and commit to supporting it in the future



 --
 View this message in context: 
 http://www.nabble.com/VOTE-on-wicket%3Acomponent-tf3221780.html#a8948008
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using own localizer

2007-02-01 Thread Juergen Donnerstag
Localizer is meant to be a realy thin layer mainly providing easy to
use access helpers. Flexibility is meant to come from
ResourceStreamLocators and ResourceStreamFinder. In 1.x the
searchStack is still part of Localizer. In 2.x it has been moved into
the ResourceStreamFactory (used to be ResourceStreamLocator) and can
be augmented/replaced. Your only choice in 1.x to speed it up is via
caching the value in your Component, though you will loose automatic
properties reloading in development mode than. Another question would
be: are you sure it is a performance issue and needs to be tackled?
Profilers haven't identified it being a problem, except for
DropDownList (Null values), but that has been solved a long time ago.

Juergen

On 2/1/07, Juha Alatalo [EMAIL PROTECTED] wrote:
 Hi,

 is there some way of using own Localizer in WebApplication? I found out
 that in version 1.1 there was setLocalizer() method in Application, but
 I couldn't find such anymore anywhere.

 In quite many cases the path used in Localizer.visitResourceLoaders() is
 realy long and there is done too many useless
 loader.loadStringResource() calls. This is starting to have a
 significant impact in loading times. I would like to change getString
 call of a component so that 'final List searchStack' is null when
 finally calling localicer.visitResourceLoaders().

 - Juha Alatalo

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cd app site is down

2007-01-28 Thread Juergen Donnerstag
It is not down for me.

Juergen

On 1/28/07, Johan Compagner [EMAIL PROTECTED] wrote:
 can we easily also build the examples automatic and host them on wicket
 stuff server?

 johan



 On 1/28/07, nilo.de.roock  [EMAIL PROTECTED] wrote:
 
  don't know who maintains the site but it is down...
 
  http://www.wicket-library.com/wicket-contrib-examples/
 
  javax.servlet.ServletException: Servlet.init() for servlet cdapp threw
  exception
 
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 
  - nilo
  --
  View this message in context:
 http://www.nabble.com/-Wicket-user--cd-app-site-is-down-tf3130890.html#a8674896
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Groovy integration? Scripting languages

2007-01-26 Thread Juergen Donnerstag
More wasnt need to integrate Groovy. Why does everything need tons of classes?
I know for sure that an example existed in one of the example projects.

Juergen

On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:

 Is it correct that the groovy integration contribution consists of
 - GroovyClassResolver.java
 - GroovyWarClassLoader.java ?
 You think it still works... no testset, I suppose. What else is there
 besides some code?
 Thanks
 - nilo


 Eelco Hillenius wrote:
 
  I think it should still work. You can report bugs if you find them
  (preferably fixing them if you can). If there is interest (you) we can
  at least take a quick look in case problems arise, but there is a fair
  chance this integration project still just works.
 
  Eelco
 
 
  On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:
 
  I won't mind investing time to acquire in-depth Wicket source knowledge,
  but
  I am not sure yet if I feel the same way about Groovy. I 'll have a look
  at
  the Wicket-Groovy integration source over the weekend first. I'll get
  back
  on this.
  - nilo de roock
 
 
  Martijn Dashorst wrote:
  
   Nobody is maintaining it. So you can step up and integrate Groovy 1.0
   into wicket 1.2, 1.x or 2.x (or any combination of that).
  
   Grooyv interest is pretty low here, but might catch up if someone goes
   the extra mile to revitalize the integration.
  
   Martijn
  
   On 1/26/07, nilo.de.roock [EMAIL PROTECTED] wrote:
  
   I was hoping to be able to use Groovy ( or any other scripting
  language )
   with Wicket but I just read...
  
... End of line. until someone actually uses it, this project will
  not
   be
   supported any further. It is here to proove that it can be done. If
  you
   want
   to use and support it, send an email about it to one of the mailing
   lists.
   ...
  
   on the Wicket-stuff site.
  
   So Groovy is no longer supported? ( Yes, I can read..., but ) just
  want
   to
   make sure. I did a Groovy project and really liked the language.
  
   -nilo de roock
  
  
   --
   View this message in context:
  
  http://www.nabble.com/-Wicket-user--Groovy-integration--Scripting-languages-tf3121629.html#a8648966
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
  share
   your
   opinions on IT  business topics through brief surveys - and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
   --
   Vote for Wicket at the
   http://www.thebeststuffintheworld.com/vote_for/wicket
   Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
   http://wicketframework.org
  
  
  -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
   your
   opinions on IT  business topics through brief surveys - and earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
  http://www.nabble.com/-Wicket-user--Groovy-integration--Scripting-languages-tf3121629.html#a8650014
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/-Wicket-user--Groovy-integration--Scripting-languages-tf3121629.html#a8660120
 Sent from the Wicket - User mailing list archive 

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-22 Thread Juergen Donnerstag
Just renaming doesn't work. ResourceStreamFactory implements Wickets
default implementation. I guess you forgot to call super.locate(...)
in your factory?

regards
Juergen

On 1/22/07, Otan [EMAIL PROTECTED] wrote:
 Let me further explain the trouble that I'm struggling...

 When I was still using ResourceStreamLocator, everything works fine. The I
 just renamed ResourceStreamLocator to ResourceStreamFactory because it seems
 that that's the only change to do in my part. Just renaming didn't work. I
 did a necessary modification on my CustomResourceFactory according to what's
 in the wicket examples but still getting the same error (see my original
 post).

 I don't know what I'm doing wrong. The following debug message is all I got:

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 DEBUG wicket.util.resource.UrlResourceStream - cannot
 convert url:
 jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html
 to file (URI scheme is not file), falling back to the inputstream for
 polling

 ERROR wicket.RequestCycle - Markup of type 'html' for component
 'packedge.HomePage' not found. Enable debug messages for
 wicket.util.resource to get a list of all filenames tried: ... (trimmed)

 Thanks for any help.

 By the way, I think Jonathan is right that instead of the locate() method,
 it's nicer to be named newXXX()

 On 14/01/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  Please see CustomResourceStreamFactory in the custom resource loading
  examples for how it works, or OsgiResourceStreamFactory as another
  example. You simply extend ResourceStreamFactory, subclass the
  appropriate locate() method (you usually must not forget to call
  super.locate()) and register your factory with the resource settings.
  Thats it.
 
  Just out of curiosity, what are you using it for? How and why did you
  change/extend the default behavior?
 
  Juergen
 
  On 1/14/07, Otan [EMAIL PROTECTED] wrote:
   having my code refactored to use ResourceStreamFactory (from using
   ResourceStreamLocator before), my program no longer works and I now
 receive
   a MarkupNotFoundException. Could someone clarify to me how is the proper
 use
   of ResourceStreamFactory and what new things to understand regarding
 custom
   markup loading.
  
   Thanks.
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys - and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] MissingResourceException

2007-01-15 Thread Juergen Donnerstag
Which wicket version are you using? You are not running out of open
files, do you? Are you running the application in development or
deployment mode?

Juergen

On 1/15/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 I always get this exception after a while of running my wicket
 application. It works on redeployment but suddenly just starts showing
 this exception after somedays of running

 WicketMessage: Exception in rendering component: [Component id =
 heading, page = com.nairanet.nelx.HomePage, path =
 0:advert1:heading.Label, isVisible = true, isVersioned = true]

 Root cause:

 java.util.MissingResourceException: Unable to find resource:
 panel_post_cv_heading for component: advert1
 at wicket.Localizer.getString(Localizer.java:262)
 at wicket.Localizer.getString(Localizer.java:121)
 at wicket.model.StringResourceModel.getString(StringResourceModel.java:403)
 at wicket.model.StringResourceModel.toString(StringResourceModel.java:464)
 at java.lang.String.valueOf(String.java:2615)
 at java.lang.StringBuffer.append(StringBuffer.java:220)
 at 
 wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java:108)
 at wicket.Component.getModelObject(Component.java:990)
 at wicket.Component.getModelObjectAsString(Component.java:1005)
 at wicket.markup.html.basic.Label.onComponentTagBody(Label.java:113)
 at wicket.Component.renderComponent(Component.java:1719)
 at wicket.markup.html.WebComponent.onRender(WebComponent.java:61)
 at wicket.Component.render(Component.java:1533)
 at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
 at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
 at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:571)
 at wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:108)
 at wicket.Component.renderComponent(Component.java:1719)
 at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
 at wicket.Component.render(Component.java:1533)



 --

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Juergen Donnerstag
Which version are you using?

Juergen

On 1/15/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 We are hosting a project based on wicket and we have done a series of test
 deployments that seem to work very fine. However we did an upgrade and we
 are consistently getting this error.

 any idea as to why this happens. Code runs fine on localhost machine

 B


 Root cause:

 java.lang.NullPointerException
 at
 wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
 at
 wicket.markup.MarkupParser.readAndParse(MarkupParser.java
 :196)
 at
 wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
 at
 wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
 at wicket.markup.MarkupCache.getMarkup(MarkupCache.java
 :198)
 at
 wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
 at
 wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
 at wicket.markup.html.WebPage.commonInit(WebPage.java :235)
 at wicket.markup.html.WebPage.init(WebPage.java:120)
 at com.nairanet.nelx.HomePage.init(HomePage.java:55)
 at
 java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)





 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Juergen Donnerstag
Why is the exception swallowed? Finally doesnt swallow it.

Juergen

On 1/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
 do you have a quickstart?
 can you see what version do you use? (390 is not a code line in the code i
 am now looking at)

 But looking at the code around that line:

 try
 {
 this.xmlReader = new XmlReader(
 new BufferedInputStream(resource.getInputStream(),
 4000), encoding);
 this.input = new FullyBufferedReader(this.xmlReader);
 }
 finally
 {
 resource.close();
 this.xmlReader.close();  this is 390 i guess
 }

 then this seems a bit wrong yes..
 If there is a problem constructing the XmlReader then that exception is
 swallowed and a null pointer is generated
 will fix this.

 johan

 On 1/15/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 
  We are hosting a project based on wicket and we have done a series of test
 deployments that seem to work very fine. However we did an upgrade and we
 are consistently getting this error.
 
  any idea as to why this happens. Code runs fine on localhost machine
 
  B
 
 
  Root cause:
 
  java.lang.NullPointerException
  at
 wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
  at
 wicket.markup.MarkupParser.readAndParse(MarkupParser.java
 :196)
  at
 wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
  at
 wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
  at wicket.markup.MarkupCache.getMarkup(MarkupCache.java
 :198)
  at
 wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
  at
 wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
  at wicket.markup.html.WebPage.commonInit(WebPage.java
 :235)
  at wicket.markup.html.WebPage.init(WebPage.java:120)
  at com.nairanet.nelx.HomePage.init(HomePage.java:55)
  at
 java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  at java.lang.Class.newInstance0(Class.java:350)
  at java.lang.Class.newInstance(Class.java:303)
 
 
 
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Exceptions

2007-01-15 Thread Juergen Donnerstag
sounds like the reached limit of open-file issue. Should be solved
in the latest versions 1.2 and 2.x versions as far as I know.

Juergen

On 1/15/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 also, even though the project is being tested on the internet, I am still in
 development mode (which i suppose is default, if not set at all) . it runs
 fine on localhost but the behaviour seems to appear once we try accessing
 the application from the internet. works without errors for a session but
 seems to throw this errors when other session users try to access it







 On 1/15/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  version 1.2.3
 
 
 
  On 1/15/07, Johan Compagner  [EMAIL PROTECTED] wrote:
   because xmlReader == null
   and then a null pointer is thrown. instead of the original exception
 that was created somewhere
   in the construction of xmlReader.. (thats why it is still null)
  
   johan
  
  
  
  
   On 1/15/07, Juergen Donnerstag [EMAIL PROTECTED]  wrote:
Why is the exception swallowed? Finally doesnt swallow it.
   
Juergen
   
On 1/15/07, Johan Compagner  [EMAIL PROTECTED] wrote:
 do you have a quickstart?
 can you see what version do you use? (390 is not a code line in the
 code i
 am now looking at)

 But looking at the code around that line:

 try
 {
 this.xmlReader = new XmlReader(
 new
 BufferedInputStream(resource.getInputStream(),
 4000), encoding);
 this.input = new FullyBufferedReader(this.xmlReader);
 }
 finally
 {
 resource.close();
 this.xmlReader.close();  this is 390 i guess
 }

 then this seems a bit wrong yes..
 If there is a problem constructing the XmlReader then that exception
 is
 swallowed and a null pointer is generated
 will fix this.

 johan

 On 1/15/07, Ayodeji Aladejebi  [EMAIL PROTECTED] wrote:
 
  We are hosting a project based on wicket and we have done a series
 of test
 deployments that seem to work very fine. However we did an upgrade
 and we
 are consistently getting this error.
 
  any idea as to why this happens. Code runs fine on localhost
 machine
 
  B
 
 
  Root cause:
 
  java.lang.NullPointerException
  at

 wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
  at

 wicket.markup.MarkupParser.readAndParse(MarkupParser.java
 :196)
  at

 wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
  at

 wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
  at wicket.markup.MarkupCache.getMarkup
 (MarkupCache.java
 :198)
  at

 wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
  at

 wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
  at
 wicket.markup.html.WebPage.commonInit(WebPage.java
 :235)
  at wicket.markup.html.WebPage.init(WebPage.java:120)
  at com.nairanet.nelx.HomePage.init(HomePage.java :55)
  at

 java.lang.reflect.Constructor.newInstance(Constructor.java:494)
  at java.lang.Class.newInstance0(Class.java:350)
  at java.lang.Class.newInstance(Class.java:303)
 
 
 
 
 
 

 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
 your
  opinions on IT  business topics through brief surveys - and earn
 cash
 

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
 opinions on IT  business topics through brief surveys - and earn
 cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

 https://lists.sourceforge.net/lists/listinfo/wicket-user



   
   
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
 share your
opinions on IT  business topics through brief surveys - and earn cash
   
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user

Re: [Wicket-user] skandinavian characters encoding lost...

2007-01-15 Thread Juergen Donnerstag
http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html

Juergen

On 1/15/07, Nino Wael [EMAIL PROTECTED] wrote:
 Actually I also remember asking about this before, hmm...

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten
 Sent: 15. januar 2007 15:43
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] skandinavian characters encoding lost...

 No, that's not it.
 I vaguely remember that Tomcat needs a setting in its configuration
 files before it will serve UTF-8 content. Otherwise it will silently
 convert it to ISO8859-1.

 Erik.


 Martijn Dashorst wrote:
  Perhaps this:
  http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html
 
  found through: http://woogle.billen.dk/search/q/tomcat%20encoding
 
  Martijn
 
  On 1/15/07, Erik van Oosten [EMAIL PROTECTED] wrote:
 
  Well according to Johan its only for POSTs that Tomcat can be a problem.
  I just tried for at least 10 minutes to find a reference to the exact
  thing Tomcat does wrong, and I am sure it was on the Wicket Wiki at some
  point, but I can not find it anymore.
 
  If someone can find it, or put it back on the Wicket Wiki, that would be
  great.
 
  Cheers,
  Erik.
 

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Juergen Donnerstag
Please see CustomResourceStreamFactory in the custom resource loading
examples for how it works, or OsgiResourceStreamFactory as another
example. You simply extend ResourceStreamFactory, subclass the
appropriate locate() method (you usually must not forget to call
super.locate()) and register your factory with the resource settings.
Thats it.

Just out of curiosity, what are you using it for? How and why did you
change/extend the default behavior?

Juergen

On 1/14/07, Otan [EMAIL PROTECTED] wrote:
 having my code refactored to use ResourceStreamFactory (from using
 ResourceStreamLocator before), my program no longer works and I now receive
 a MarkupNotFoundException. Could someone clarify to me how is the proper use
 of ResourceStreamFactory and what new things to understand regarding custom
 markup loading.

 Thanks.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Juergen Donnerstag
May be. The reason why I didnt change it is because we are still
searching for the resource by iterating over (component hierarchy),
class hierarchy, style, variation, locale and sometime extensions and
only if the find the resource we create a resource stream for it. Not
sure which I like better newResourceStream() or locate(). Should, from
a convention point of view, all factories should have newXXX methods?
Or maybe I shouldnt have changed the class name from xxxLocator to
xxxFactory.

Juergen

On 1/14/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 juergen, if it's a factory, shouldn't it be newResourceStream?


 Juergen Donnerstag wrote:
 
  Please see CustomResourceStreamFactory in the custom resource loading
  examples for how it works, or OsgiResourceStreamFactory as another
  example. You simply extend ResourceStreamFactory, subclass the
  appropriate locate() method (you usually must not forget to call
  super.locate()) and register your factory with the resource settings.
  Thats it.
 
  Just out of curiosity, what are you using it for? How and why did you
  change/extend the default behavior?
 
  Juergen
 
  On 1/14/07, Otan [EMAIL PROTECTED] wrote:
  having my code refactored to use ResourceStreamFactory (from using
  ResourceStreamLocator before), my program no longer works and I now
  receive
  a MarkupNotFoundException. Could someone clarify to me how is the proper
  use
  of ResourceStreamFactory and what new things to understand regarding
  custom
  markup loading.
 
  Thanks.
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
  your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8359551
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AbstractStringResourceStream content type bug

2007-01-06 Thread Juergen Donnerstag
The contenttype of the _markup_ resource stream is not used for
rendering the output. In fact, content type for _markup_ resource
streams is not used at all. Please use WebPage.configureResponse() on
how to change the output content type.

Juergen

On 1/5/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
 I'm building a class that implements the IMarkupResourceStreamProvidor
 interface and I'm using the AbstractStringResourceStream like so:

 public IResourceStream
 getMarkupResourceStream(MarkupContainer container, Class?
 extends MarkupContainer containerClass) {
 final String feedOutput = renderFeed();
 return new
 AbstractStringResourceStream(application/xml;
 charset=UTF-8) {
 @Override
 protected String getString() {
 return feedOutput;
 }
 public long length() {
 return feedOutput.length();
 }
 };
 }


 I'm passing in the content type, but the page always renders as text/html.
 is this a bug, or am I doing something incorrect?

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Unexpected RuntimeException

2006-12-23 Thread Juergen Donnerstag
I don't think it is the jar alone, I'm using jar as well and I don't
get the exception. But I think you asked the right question: What is
causing the xmlReader object to be null? Obviously iit happens while
closeing the parser, which means that it started parsing (with a
none-null parser object) and than ...

Which version of Wicket are you using?

Juergen


On 12/23/06, August Detlefsen [EMAIL PROTECTED] wrote:

  I figured out how to setup logging it was easy. I was trying to load the
 markup HTML from a jar file:

  12-22 12:18:32 [DEBUG] [UrlResourceStream] - cannot convert url:
 jar:file:/export/webapps/mycompany.com/web/ROOT/WEB-INF/lib/com.mycompany.newscomments.jar!/com/mycompany/newscomments/CommentHomePage.html
 to file (URI is not hierarchical), falling back to the inputstream for
 polling
  12-22 12:18:32 [DEBUG] [MarkupCache] - Loading markup from
 jar:file:/export/webapps/mycompany.com/web/ROOT/WEB-INF/lib/com.mycompany.newscomments.jar!/com/mycompany/newscomments/CommentHomePage.html
  12-22 12:18:33 [ERROR] [RequestCycle] -
  java.lang.NullPointerException
  at
 wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
  at
 wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196)
  at
 wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:279)
  at
 wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
  at
 wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198)
  at
 wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:106)
  at
 wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
  at
 wicket.markup.html.WebPage.commonInit(WebPage.java:235)
  at wicket.markup.html.WebPage.init(WebPage.java:120)
  at
 com.mycompany.newscomments.CommentHomePage.init(CommentHomePage.java:27)
  ...

  Once I moved the markup file out of the jar and into WEB-INF/classes, the
 problem went away. Is there any way to keep them in the jar file without
 getting this error?

  -August




  Johan Compagner wrote:

 can you check for us why that is null in your case?
 All those exceptions are logged just make sure you have the right
 logging.properties

 johan



 On 12/22/06, August Detlefsen [EMAIL PROTECTED] wrote:
  I am getting a NullPointerException when I try to visit the home page of
  my web application. Root cause:
 
  java.lang.NullPointerException
  at
 wicket.markup.parser.XmlPullParser.parse(XmlPullParser.java:390)
  at
 wicket.markup.MarkupParser.readAndParse(MarkupParser.java:196)
  at wicket.markup.MarkupCache.loadMarkup
 (MarkupCache.java:279)
  at
 
 wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:354)
  at
 wicket.markup.MarkupCache.getMarkup(MarkupCache.java:198)
  at wicket.markup.MarkupCache.getMarkupStream(
 MarkupCache.java:106)
  at
 
 wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
  at
 wicket.markup.html.WebPage.commonInit(WebPage.java:235)
  at wicket.markup.html.WebPage.init(WebPage.java :120)
  at
 
 com.mycompany.newscomments.CommentHomePage.init(CommentHomePage.java:27)
  ...
 
  I traced it back to the parse method in XmlPullParser, specifically
  where the xmlReader is closed in the finally block:
 
  finally
 {
 resource.close();
 this.xmlReader.close();
 }
 
  I think this exception can be avoided by changing:
 
 this.xmlReader.close ();
 
  to:
 
 if (this.xmlReader != null) this.xmlReader.close();
 
  However, what is causing the xmlReader object to be null?
 
  Is there a way to redirect these errors to a log file instead of
  displaying them on screen?
 
  Thanks,
  August
 
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys - and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


  --
 August Detlefsen
 CEO/Web Application Architect
 CodeMagi, Inc.
 510-368-4489 tel
 510-336-9434 fax
 http://www.codemagi.com

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





Re: [Wicket-user] Associating markup

2006-12-11 Thread Juergen Donnerstag
wicket:component is not realy supported and it is not working at all
in 2.0 (yet). Doesn't javadoc mention that it is experimental?

Juergen

On 12/11/06, Matthijs Wensveen [EMAIL PROTECTED] wrote:
 Hi,
 I'm trying to create a generic Form component with its own markup. I was
 under the impression that this would be possible using the
 wicket:component tag.
 An example:

 MyPage.html
 htmlbody
And here is the form:
form wicket:id=myForm
   design mode html
/form
 /body/html

 MyPage.java

 //.. leave out uninteresting stuff until constructor
 public MyPage() {
add(new MyForm(myForm));
 }

 MyForm.html
 htmlbody
wicket:component
   h1wicket:id=formTitleh1
   input type=submit value=submit
/wicket:component
 /body/html

 MyForm.java
 class MyForm extends Form {
 public MyForm() {
add(new Label(formTitle, The Form));
 }
 }

 This does not seem to work however. What am I doing wrong?

 Thanks in advance,

 --
 Matthijs Wensveen
 Func. Internet Integration
 W http://www.func.nl
 T +31 20 423
 F +31 20 4223500


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Who knows what happen to wicket Library ?

2006-11-27 Thread Juergen Donnerstag
It's up again. Sorry.

Juergen

On 11/27/06, JFC [EMAIL PROTECTED] wrote:

 http://www.wicket-library.com/

 It seems this website is crashed?


 JFC Hsieh



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] 1 app, 2 HomePages. 1 public, 1 logged-in

2006-11-24 Thread Juergen Donnerstag
Please don't use the sourceforge list anymore. We migrated to apache.

On 11/25/06, Robert McClay [EMAIL PROTECTED] wrote:
 I have an app that has a public section and a logged-in section. If the
 session expires for a logged-in user, I'd like to direct him to the
 login. If a page expires for a public user, I'd like to direct him to
 the / page. Any thoughts on how to handle this efficently? One easy
 way would be to break the app into 2 apps, 2 separate WicketServlets,
 each with its own HomePage defined, but that may use too many resources
 just to accomplish this.



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where can I find source package of wicket?

2006-11-23 Thread Juergen Donnerstag
http://wicket.sourceforge.net/source-repository.html

On 11/24/06, Carfield Yim [EMAIL PROTECTED] wrote:
 There is only binary package at
 http://sourceforge.net/project/showfiles.php?group_id=119783 , just
 wonder where can I find source package?

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about XML processing in wicket

2006-11-23 Thread Juergen Donnerstag
And what do want to achieve? What is the input markup and what your
expected output markup?

Juergen

On 11/24/06, Carfield Yim [EMAIL PROTECTED] wrote:
 Just wonder can I fill the wicket template directly from xml tag, say
 I have an xml like

 body
   tag1value1/tag1
   tag2value2/tag2
 /body

 Can I have wicket template like

 html
 body
Tag1 is wicket:xml wicket:id=body:tag1/wicket:xml
Tag2 is wicket:xml wicket:id=body:tag2/wicket:xml
 /body
 /html

 Is there any support of this in wicket? Or I support to use XSLT
 inside wicket for this case? I've take a look of
 XsltTransfomerBehavior and XsltOutputTransformerContainer but I am not
 sure how to use this.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
Please take a look at the examples. They are usually a good source for
informaton. As far as I can tell, in Wicket you don't need it, at
least I didn't.

Juergen

On 11/19/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * Carfield Yim:

  Astheuserwill   deploytheapplicationwith
  difference  web  application  name,  like  http://host1/app1  or
  http://host2/app2. The  URL  will  be  /app1/images/icon.jpg  or
  /app2/images/icon.jpg  .  How  can  I  set  the  image  path  to
  something  like $baseurl/images/icon.jpg  ?  I've  try to  setup
  base  href=/baseurl at  head but  the rendered  HTML don't
  contain that elements.

 I  have the  same  problem and  Wicket does  not  seem to  address
 that.   Seems   like  we  have   to  use  a  template   for  that,
 like   wicket.extensions.util.resource.TextTemplate   to   replace
 $contextPath

 You don't  need to specify  the full  URL with host  name however,
 using an absolute path is sufficient.
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
ApplicationSettings.getContextPath() and PrependContextPathHandler

Juergen

On 11/19/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * Juergen Donnerstag:

  Please  take a  look at  the examples. They  are usually  a good
  source for informaton. As far as I can tell, in Wicket you don't
  need it, at least I didn't.

 It works in the general case if you use relative paths, for
 example: img src=images/empty.gif

 But if you use WebApplication.mount(), those links cease to
 reference the proper resource as in this case we need an absolute
 path, and thus referencing the context path.
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Just wonder how everybody manage the image path when using wicket?

2006-11-19 Thread Juergen Donnerstag
That is added by default

Juergen

On 11/19/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * Juergen Donnerstag:

  ApplicationSettings.getContextPath() and PrependContextPathHandler

 Thanks Juergen,

 PrependContextPathHandler  seems to  be  what we  are looking  for
 indeed.  But  what does it mean  «This is a markup  inline filter
 which by  default is added  to the  list of markup  filters.»  It
 suggests that I don't have to do  anything to use it, but the next
 sentence indicates how to use it...
 --
  Jean-Baptiste Quenot
 aka  John Banana Qwerty
 http://caraldi.com/jbq/

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Why add(IBehavior) is final?

2006-11-11 Thread Juergen Donnerstag
Please change javadoc as well if you remove final (describe in short
the use case). In general I'm very very careful in opening things up.

Juergen

On 11/10/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yeah. Erik, I see your point for the general case, but Alberto's case
 - which I have myself sometimes too - is that you only use a panel
 because you have to, but you want the user to view your component as
 one of it's embedded elements (in his case the TextField). I think
 that's a valid case.

 So, if there are no objections, I'll remove that final later today.

 Eelco


 On 11/10/06, Alberto Bueno [EMAIL PROTECTED] wrote:
 
 
   In my case, I have created a TextField component, that is a panel that
  contains internally a TextField wicket component. Now, if I add the method
  addToField, the user will have two methods:
 
   TextField.add(IBehavior behavior)
   TextField.addToField(IBehavior behavior)
 
   I think that this case will be more confused than if I have only one
  method:
 
   TextField.add(IBehavior behavior){
   textField.add(behavior);
   }
 
   I don't want to add any behavior in the panel,  I only want to add
  behaviors in the field. Why do I have to create another method, that it will
  be more confused for the user?
 
   This is the same situation that when we use the IAlternateParent. We add
  the component in a component, but the real parent is another...
 
 
 
 
   I am definitely /not/ against removing final, but it is not going to
  work (not in general that is).
 
  Alberto's defense is that the user thinks he is working with a field,
  while in reality he is working with a panel. I assume that Alberto is
  using a panel because he wants some extra functionality around the
  field, say a button or a link. Anyway, now the user adds some behavior,
  say 'new SimpleAttributeModifier(style,
  background-color: #d91)'.
  Now in the described setup only the field will get the new background,
  while the user probably also wanted to color the whitespace around it.
  As a user I would find this pretty confusing.
 
  In short: there is no way of hiding the fact that the component you are
  offering to a user is a composite, if you also want the user to have
  access to the inner components.
 
  So my solution would be to either expose the inner field through a
  getter, or write the addToField method that was discussed earlier.
 
  Regards,
   Erik.
 
 
 
  Eelco Hillenius schreef:
 
 
   I could definitively live with removing final there. And maybe some
  other methods too.
 
  Anyone against removing final from add(IBehavior)?
 
  Eelco
 
 
  On 11/9/06, Alberto Bueno [EMAIL PROTECTED] wrote:
 
 
 
   Hi,
  now I have this solution, but I don't like it for you reasons:
 
  - Now I have two methods to add a Behavior: add(IBehavior) and
  addToField(IBehavior), and for the users can be confuse.
  - I want to have a transparent component. The user doesn't have to know
  that he is working with a panel. This is working with a field. If I have:
 
  MyField extends Panel{
   public MyField(MarkupContainer parent, String id){
   super(parent, id);
 
   new TextField(this, myField);
   }
  }
 
  For the user, MyField is a form Component, and if he add a new Behavior,
  the user thinks that the behavior is for the field, not for the panel.
 
  This is the idea...
 
 
 
 
 
   Why don't you write in your panel: void addToField(Behavior b) {...}?
  There is no need to corrupt the meaning of Wicket methods ;)
 
  Regards,
   Erik.
 
 
  Alberto Bueno schreef:
 
 
 
 
   Hi,
 
  I want to overwrite the add(IBehavior) method of the component, but this
  method is final.
  I want to use the same idea of AlternateParent when we add a new component.
  I have a panel, and I want to add a behavior in the panel, but the
  behavior is used in a field
  component that is in the panel.
 
  I don't want to say:
  panel.get(myField).add(new MyBehavior());
 
  I want to say:
 
  panel.add(new MyBehavior());
 
  and in the add() method of the panel say:
 
   public Component add(final IBehavior behavior)
   {
   get(myField).add(behavior);
   }
 
  Any idea to implement this functionality?
 
  Thanks
 
 
 
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM 

Re: [Wicket-user] Can I tell the application use UTF-8 without change servlet container?

2006-11-09 Thread Juergen Donnerstag
Wicket default is UTF-8. The problem is that e.g. Tomcat _requires_
some specific configuration as well. Wicket can do anything about it.

Juergen

On 11/9/06, Carfield Yim [EMAIL PROTECTED] wrote:
 Hi, I would like to use UTF-8 whatever the servlet container setup, so
 that I don't need to change that per installation of my application.

 I've take a look of
 http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg19662.html
 but that doesn't really look related.

 In past I will just create a new PrintWriter like - new
 PrintWriter(new OutputStreamWriter(response.getoutputstream(),
 Charsets.utf8()), true);

 and work on that PrintWriter, can I do similar thing in wicket?

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] mapping application to /

2006-11-05 Thread Juergen Donnerstag
There is no need to use /*. In fact it is the least favourable
solution. Take a look at the examples.

Juergen

On 11/5/06, ryan mckinley [EMAIL PROTECTED] wrote:

 I'm trying to build my first real app using wicket and am looking for advice
 on how to structure it.  I expect it will have moderately heavy traffic but
 most things can be cached with a simple ehcache Filter.

 The issue i see is that if i want to have wicket generated content on the
 root page, i need to map the application servlet to:
  url-pattern/*/url-pattern

 But if i do that, it looks like all the static content has to go through
 wicket too.  Is there any way to have the web server directly serve content
 under: /static/*?

 Alternatively i guess i could map multiple application to deeper paths, but
 that seems like a bad idea.

 I've read that 2.0 will switch to a filter model, what is the best practice
 until then?

 thanks


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] mapping application to /

2006-11-05 Thread Juergen Donnerstag
On 11/5/06, ryan mckinley [EMAIL PROTECTED] wrote:

 The examples have a static /index.html and multiple apps defined at
 /helloworld, /echo, etc each one has its own session (if i understand
 correctly)


In case of the examples index.html is registered in web.xml as the welcome page
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
and allows you to easily select any of the example applications.
A session is created by the servlet container per user (not per
application) and can be used to stored eg user information. Because a
session is a per user object, it is available for the various pages
which make up your application.

 I'd like to have wicket style templates on index.html and share session
 attributes across the sub pages (specifically user authentication)

 Do i need to map an Application to index.html also?

 thanks

 (i apologize if this is super basic)



 On 11/5/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  There is no need to use /*. In fact it is the least favourable
  solution. Take a look at the examples.
 
  Juergen
 
  On 11/5/06, ryan mckinley [EMAIL PROTECTED] wrote:
  
   I'm trying to build my first real app using wicket and am looking for
 advice
   on how to structure it.  I expect it will have moderately heavy traffic
 but
   most things can be cached with a simple ehcache Filter.
  
   The issue i see is that if i want to have wicket generated content on
 the
   root page, i need to map the application servlet to:
url-pattern/*/url-pattern
  
   But if i do that, it looks like all the static content has to go through
   wicket too.  Is there any way to have the web server directly serve
 content
   under: /static/*?
  
   Alternatively i guess i could map multiple application to deeper paths,
 but
   that seems like a bad idea.
  
   I've read that 2.0 will switch to a filter model, what is the best
 practice
   until then?
  
   thanks
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BodyContributor?

2006-11-05 Thread Juergen Donnerstag
getPage().getBodyContainer().addXXX to add AttributeModifiers.

If your Panel markup requires to contribute to body onload or onunload
than simply add a body tag to the panel markup including the attrs.
They'll be copied to the pages body tag.

And wicket:head in a panels markup can be used if the Panel requires
to contribute to the pages header head.

Provided I understand you correct, none of these solves your problem
of adding js right behind body and right before /body. If've never
realy tried it but it should be sufficient to add
new MyHtmlBodyContainer(this, BodyOnLoadHandler.BODY_ID);
setBodyContainer(new BodyContainer(this, 
BodyOnLoadHandler.BODY_ID));
to your pages constructor. With
public class MyHtmlBodyContainer extends HtmlBodyContainer

Though I not sure it is available in 1.2.X. Wich version are you using?

Juergen

On 11/5/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
 Hello everybody,

 is it possible to add to the body tag with a behaviour or something similar?

 I have one type of pages which needs some javascript included at the
 beginning of body and again right before /body. All of my pages
 share a common parent class (providing the general layout etc. for all
 subpages), so in the markup of the sub-page I can only write new HTML in
 the wicket:extend part.

 I see there is a way to do this for the head, but I have found nothing
 about body. I looked at the source how these work, but I don't think
 this can be easily applied to body (The functionality comes from
 implementing IHeaderContributor, not from IBehavior, right?).

 To say it shortly: the classes in wicket.extensions.util.resource work
 fine, but I don't know how to apply one to the body  :)


 Any hints are welcome...


 greetings,

 Rüdiger Schulz


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BodyContributor?

2006-11-05 Thread Juergen Donnerstag
That is all what is needed

public class EmailPage extends WebPage
{
private static final long serialVersionUID = 1L;

/**
 * Construct
 *
 */
public EmailPage()
{
new MyHtmlBodyContainer(this, BodyOnLoadHandler.BODY_ID);
}

/**
 *
 */
public static class MyHtmlBodyContainer extends HtmlBodyContainer
{
private static final long serialVersionUID = 1L;

/**
 * Construct
 *
 * @see Component#Component(MarkupContainer,String)
 */
public MyHtmlBodyContainer(MarkupContainer parent, final String 
id)
{
super(parent, id);
}

@Override
protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
{
getResponse().write(Something after the body open 
tag);
super.onComponentTagBody(markupStream, openTag);
getResponse().write(Something before the body close 
tag);
}
}
}

Juergen

On 11/5/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 getPage().getBodyContainer().addXXX to add AttributeModifiers.

 If your Panel markup requires to contribute to body onload or onunload
 than simply add a body tag to the panel markup including the attrs.
 They'll be copied to the pages body tag.

 And wicket:head in a panels markup can be used if the Panel requires
 to contribute to the pages header head.

 Provided I understand you correct, none of these solves your problem
 of adding js right behind body and right before /body. If've never
 realy tried it but it should be sufficient to add
 new MyHtmlBodyContainer(this, BodyOnLoadHandler.BODY_ID);
 setBodyContainer(new BodyContainer(this, 
 BodyOnLoadHandler.BODY_ID));
 to your pages constructor. With
 public class MyHtmlBodyContainer extends HtmlBodyContainer

 Though I not sure it is available in 1.2.X. Wich version are you using?

 Juergen

 On 11/5/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
  Hello everybody,
 
  is it possible to add to the body tag with a behaviour or something similar?
 
  I have one type of pages which needs some javascript included at the
  beginning of body and again right before /body. All of my pages
  share a common parent class (providing the general layout etc. for all
  subpages), so in the markup of the sub-page I can only write new HTML in
  the wicket:extend part.
 
  I see there is a way to do this for the head, but I have found nothing
  about body. I looked at the source how these work, but I don't think
  this can be easily applied to body (The functionality comes from
  implementing IHeaderContributor, not from IBehavior, right?).
 
  To say it shortly: the classes in wicket.extensions.util.resource work
  fine, but I don't know how to apply one to the body  :)
 
 
  Any hints are welcome...
 
 
  greetings,
 
  Rüdiger Schulz
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Hosting?

2006-11-03 Thread Juergen Donnerstag
There is no specific requirement which Wicket imposes on the provider.
Use any provider you like. wicket-library is hosted at Kattare, which
works well. No real problems so far.

Juergen

On 11/3/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
 What wicket friendly hosting providers would people recommend?

 -js

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Programmatically/Dynamically change html

2006-11-02 Thread Juergen Donnerstag
The question is how flexible you want to be. If the Components such as
Label, Link etc stay the same and only the html markup changes, than
you might use Component.setVariation(). It is similar to Locale and
Style but it is a per component setting. The markup file name than
become myComponent_myVariation.html.

Juergen

On 11/2/06, Shams Mahmood [EMAIL PROTECTED] wrote:
 Thanx

 I check it out and post here if I get any ideas.

 Shams

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Erik van
 Oosten
 Sent: Thursday, November 02, 2006 4:43 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Programmatically/Dynamically change html

 Hmm. I remember that more people asked for generated templates. Don't
 remember an answer though.

 Perhaps you can investigate the class
 WebMarkupContainerWithAssociatedMarkup or its super classes to see how
 Wicket loads the templates.

 Good luck,
   Erik.


 Shams Mahmood schreef:
  I actually wanted to change the html source dynamically
  Rather than writing different panel which would limit all my variations
 
  :)
 
  Shams
 
 

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Live wicket examples demo

2006-10-31 Thread Juergen Donnerstag
I put a cron job in place to restart tomcat everyday. This is because
some examples data can be changed by users and the restart resets
these data. No other reason.

Juergen

On 10/31/06, Ryan [EMAIL PROTECTED] wrote:
 I am still curious as to why the application server stops responding
 from time to time... Perhaps gremlins. =)

 Ryan

 On 10/30/06, Johan Compagner [EMAIL PROTECTED] wrote:
  yes it seems to be a browser with no javascript or something like that
  (the fallback was clicked on and onClick(ajaxtarget) doesn't seem to check
  for null
 
 
  On 10/30/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   From catalina.log: looks like a bug in the example
  
   wicket.WicketRuntimeException: Method onLinkClicked of interface
  wicket.markup.h
   tml.link.ILinkListener targeted at component [MarkupContainer [Component
  id = li
   nk, page = wicket.examples.source.SourcesPage, path =
  0:filespanel:file:1:link.S
   ourcesPage$FilesBrowser$1$1, isVisible = true, isVersioned = true]] threw
  an exc
   eption
   at wicket.RequestListenerInterface.invoke
  (RequestListenerInterface.java:
   174)
   at
  wicket.request.target.component.listener.ListenerInterfaceRequestTarg
   et.processEvents(ListenerInterfaceRequestTarget.java:74)
   at
  wicket.request.compound.DefaultEventProcessorStrategy.processEvents
  (D
   efaultEventProcessorStrategy.java:65)
   at
  wicket.request.compound.AbstractCompoundRequestCycleProcessor.process
   Events(AbstractCompoundRequestCycleProcessor.java:57)
   at wicket.RequestCycle.doProcessEventsAndRespond
  (RequestCycle.java:852)
   at
  wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
   at wicket.RequestCycle.step(RequestCycle.java:966)
   at wicket.RequestCycle.steps(RequestCycle.java :1040)
   at wicket.RequestCycle.request(RequestCycle.java:454)
   at
  wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
   icationFilterChain.java:252)
   at
  org.apache.catalina.core.ApplicationFilterChain.doFilter
  (ApplicationF
   ilterChain.java:173)
   at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
   alve.java:213)
   .
   at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
  (ThreadP
   ool.java:684)
   at java.lang.Thread.run(Thread.java:595)
   Caused by: java.lang.reflect.InvocationTargetException
   at
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
   at java.lang.reflect.Method.invoke (Method.java:585)
   at
  wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:
   163)
   ... 25 more
   Caused by: java.lang.NullPointerException
   at
  wicket.examples.source.SourcesPage$FilesBrowser$1$1.onClick
  (SourcesPa
   ge.java:361)
   at
  wicket.ajax.markup.html.AjaxFallbackLink.onClick(AjaxFallbackLink.jav
   a:91)
   at
  wicket.markup.html.link.Link.onLinkClicked(Link.java:254)
   ... 30 more
  
  
   On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i meant the part where he asked if it was wicket's fault :)
   
   
-igor
   
On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
 I haven't seen any other user mentioning outages. Though Kattare is
 not perfect they provide good support and fast support and it is for
 free.

 Juergen

 On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  juergen you didnt asnwer the second part of the question :)
 
  -igor
 
 
 
  On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] 
  wrote:
   Thanks for pointing out, I'm not monitoring it every day I must
  admit.
   Unfortunately I've no access right now, but will fix it in 2-3
  hrs.
  
   Juergen
  
   On 10/30/06, Ryan [EMAIL PROTECTED] wrote:
I am evaluating the wicket framework for a new project and so
  far I
have been very impressed with the quality of the project (and
especially so when considering how far it has come in the last
year).
   
Over the past week I have been referring to the live wicket demo
application only to find it is down with a 502 Proxy Error. Is
this
a symptom of a bad hosting environment or do the wicket examples
  mis
behave and take down the server?
   
Ryan

Re: [Wicket-user] Live wicket examples demo

2006-10-30 Thread Juergen Donnerstag
Thanks for pointing out, I'm not monitoring it every day I must admit.
Unfortunately I've no access right now, but will fix it in 2-3 hrs.

Juergen

On 10/30/06, Ryan [EMAIL PROTECTED] wrote:
 I am evaluating the wicket framework for a new project and so far I
 have been very impressed with the quality of the project (and
 especially so when considering how far it has come in the last year).

 Over the past week I have been referring to the live wicket demo
 application only to find it is down with a 502 Proxy Error. Is this
 a symptom of a bad hosting environment or do the wicket examples mis
 behave and take down the server?

 Ryan

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Removal of the final attribute for WebRequestCodingStrategy.urlPrefix(RequestCycle)

2006-10-30 Thread Juergen Donnerstag
Only my 2c. OSGI is a framework which we want to support
out-of-the-box. IMO we should rather check whether I our current
implementation make sense or whether it is inconsistent. I want to
remove final from urlPrefix only if realy necessary. Removing final
sound to me like a workaround for an isue rather than solving the real
problem.

Juergen

On 10/30/06, Benjamin Podszun [EMAIL PROTECTED] wrote:
 Hi there.

 I'd like to vote/ask for the change in my subject:

 WebRequestCodingStrategy.urlPrefix() should be non-final.

 It would help me a lot in my current setup. For all those that are
 interested in the background story:

 I'm running wicket in an OSGI environment which provides the OSGI http
 bundle/service. I can registerServlet(/path, myservlet), but I cannot
 explicitly specify a context.
 At first I registered the wicket app at /somePath - but that doesn't
 work out too well, because all relative links are mangled to include a
 leading / by wicket, so image/some.gif ends up as /image/some.gif.
 This means that the setup given above only works if I register a static
 file handler at / - which I'd love not to do.

 Trying to trick wicket into understanding my setup involved mounting the
 wicket servlet at /somePath/app and the static file handler at
 /somePath/. This failed again, because all files still had the wrong
 prefix and ended up at /. Using
 getApplicationSettings().setContextPath(/somePath) seemed to work: All
 static files are now prepended with /somePath and work. Unfortunately
 dynamic resources won't work anymore. The links to a dynamic image
 resource are now /somePath/somePath/app?wicket:interface...
 Basically the /somePath/ is twice in there and I tracked the problem
 back to the aforementioned urlPrefix method, which computes and caches
 the prefix for resources as getApplicationSettings().getContextPath()
 and request.getServletPath() - the former is now set to /somePath for
 me, the latter evaluates to /somePath/app.
 I could fix that rather easily by extending WebRequestCodingStrategy
 and overriding urlPrefix(..), but since that method is final I'd need to
 copy the complete implementation. Which is error-prone again.

 So - is there any reason why this method has to be final?

 Regards,
 Ben

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Live wicket examples demo

2006-10-30 Thread Juergen Donnerstag
I haven't seen any other user mentioning outages. Though Kattare is
not perfect they provide good support and fast support and it is for
free.

Juergen

On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 juergen you didnt asnwer the second part of the question :)

 -igor



 On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
  Thanks for pointing out, I'm not monitoring it every day I must admit.
  Unfortunately I've no access right now, but will fix it in 2-3 hrs.
 
  Juergen
 
  On 10/30/06, Ryan [EMAIL PROTECTED] wrote:
   I am evaluating the wicket framework for a new project and so far I
   have been very impressed with the quality of the project (and
   especially so when considering how far it has come in the last year).
  
   Over the past week I have been referring to the live wicket demo
   application only to find it is down with a 502 Proxy Error. Is this
   a symptom of a bad hosting environment or do the wicket examples mis
   behave and take down the server?
  
   Ryan
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
 easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Live wicket examples demo

2006-10-30 Thread Juergen Donnerstag
It is up again

Juergen

On 10/30/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 I haven't seen any other user mentioning outages. Though Kattare is
 not perfect they provide good support and fast support and it is for
 free.

 Juergen

 On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  juergen you didnt asnwer the second part of the question :)
 
  -igor
 
 
 
  On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
   Thanks for pointing out, I'm not monitoring it every day I must admit.
   Unfortunately I've no access right now, but will fix it in 2-3 hrs.
  
   Juergen
  
   On 10/30/06, Ryan [EMAIL PROTECTED] wrote:
I am evaluating the wicket framework for a new project and so far I
have been very impressed with the quality of the project (and
especially so when considering how far it has come in the last year).
   
Over the past week I have been referring to the live wicket demo
application only to find it is down with a 502 Proxy Error. Is this
a symptom of a bad hosting environment or do the wicket examples mis
behave and take down the server?
   
Ryan
   
   
  -
Using Tomcat but need to do more? Need to support web services,
  security?
Get stuff done quickly with pre-integrated technology to make your job
  easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
   
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  -
   Using Tomcat but need to do more? Need to support web services, security?
   Get stuff done quickly with pre-integrated technology to make your job
  easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Live wicket examples demo

2006-10-30 Thread Juergen Donnerstag
From catalina.log: looks like a bug in the example

wicket.WicketRuntimeException: Method onLinkClicked of interface wicket.markup.h
tml.link.ILinkListener targeted at component [MarkupContainer [Component id = li
nk, page = wicket.examples.source.SourcesPage, path = 0:filespanel:file:1:link.S
ourcesPage$FilesBrowser$1$1, isVisible = true, isVersioned = true]] threw an exc
eption
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:
174)
at wicket.request.target.component.listener.ListenerInterfaceRequestTarg
et.processEvents(ListenerInterfaceRequestTarget.java:74)
at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(D
efaultEventProcessorStrategy.java:65)
at wicket.request.compound.AbstractCompoundRequestCycleProcessor.process
Events(AbstractCompoundRequestCycleProcessor.java:57)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
at wicket.RequestCycle.step(RequestCycle.java:966)
at wicket.RequestCycle.steps(RequestCycle.java:1040)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
.
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:
163)
... 25 more
Caused by: java.lang.NullPointerException
at wicket.examples.source.SourcesPage$FilesBrowser$1$1.onClick(SourcesPa
ge.java:361)
at wicket.ajax.markup.html.AjaxFallbackLink.onClick(AjaxFallbackLink.jav
a:91)
at wicket.markup.html.link.Link.onLinkClicked(Link.java:254)
... 30 more


On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i meant the part where he asked if it was wicket's fault :)


 -igor

 On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
  I haven't seen any other user mentioning outages. Though Kattare is
  not perfect they provide good support and fast support and it is for
  free.
 
  Juergen
 
  On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   juergen you didnt asnwer the second part of the question :)
  
   -igor
  
  
  
   On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
Thanks for pointing out, I'm not monitoring it every day I must admit.
Unfortunately I've no access right now, but will fix it in 2-3 hrs.
   
Juergen
   
On 10/30/06, Ryan [EMAIL PROTECTED] wrote:
 I am evaluating the wicket framework for a new project and so far I
 have been very impressed with the quality of the project (and
 especially so when considering how far it has come in the last
 year).

 Over the past week I have been referring to the live wicket demo
 application only to find it is down with a 502 Proxy Error. Is
 this
 a symptom of a bad hosting environment or do the wicket examples mis
 behave and take down the server?

 Ryan


  
 -
 Using Tomcat but need to do more? Need to support web services,
   security?
 Get stuff done quickly with pre-integrated technology to make your
 job
   easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo

  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
  
 -
Using Tomcat but need to do more? Need to support web services,
 security?
Get stuff done quickly with pre-integrated technology to make your job
   easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
   
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

Re: [Wicket-user] how to get as string the page's rendered markup

2006-10-28 Thread Juergen Donnerstag
I guess you want it for debugging purpposes? There are lots of tools
out there which allow you to monitor the traffic. Fiddler e.g. is such
a tool (open source)

Juergen

On 10/28/06, Otan [EMAIL PROTECTED] wrote:
 I want to save into a file the wicket page's renderded markup before it
 respond to the user's request. Can someone give me a hint how to do this?
 Thanks.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket tracking/ controlling

2006-10-28 Thread Juergen Donnerstag
It is not better and not worse with Wicket, each web app framework has
the same issue here. Just the details are different.

Have a look at RequestLogger.java

Juergen

On 10/28/06, Korbinian Bachl [EMAIL PROTECTED] wrote:
 Hi,

 im not sure how to adress this thing with wicket: if you make a website you
 want to see where your visitor goes, what he does - usually by examining the
 webservers logfile by looking at the URLs - however this wont work in
 wicket.

 How could this be solved ? - how can we track  trace our visitors ? Does
 anyone know a existing solution (maybe open-source) that integrates very
 easy with wicket ? (perhaps so easy that putting it onto a BasePage is
 nearly enough ?)

 Best Regards,

 Korbinian

 PS: i would be happy if this could be done without using the session


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket tracking/ controlling

2006-10-28 Thread Juergen Donnerstag
When you go to the example, there is this little red (i) in the top
left corner. It'll open a page with all the information maintained by
RequestLogger.

IResponseFilter and it is implementations might be an option/starting
point for you as well.

While re-reading your mail, I'm not sure it is what you ask for. What
information do you get from other web apps in the webservers log which
you don't get for Wicket apps? Your example given, the visitors, can
be retrieved, no difference. Time to respond, who, when etc, no
difference. What you  won't get is the Page and wicket specific
information of course.

I'm not aware of any wiki entry or so, but I might not be up-to-date on that.

A base page, as you suggested, might be a good starting point, as many
relevant information are available. Though events (submit, etc.) must
be logged differently.

Juergen

On 10/28/06, Korbinian Bachl [EMAIL PROTECTED] wrote:
 you cant point me to any article about that ? - i looked at the java-docs
 for 1.2 branch but didnt understand how this leads to a hook for tracking.

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag
  von Juergen Donnerstag
  Gesendet: Samstag, 28. Oktober 2006 10:33
  An: wicket-user@lists.sourceforge.net
  Betreff: Re: [Wicket-user] wicket  tracking/ controlling
 
  It is not better and not worse with Wicket, each web app
  framework has the same issue here. Just the details are different.
 
  Have a look at RequestLogger.java
 
  Juergen
 
  On 10/28/06, Korbinian Bachl [EMAIL PROTECTED] wrote:
   Hi,
  
   im not sure how to adress this thing with wicket: if you make a
   website you want to see where your visitor goes, what he does -
   usually by examining the webservers logfile by looking at
  the URLs -
   however this wont work in wicket.
  
   How could this be solved ? - how can we track  trace our
  visitors ?
   Does anyone know a existing solution (maybe open-source) that
   integrates very easy with wicket ? (perhaps so easy that putting it
   onto a BasePage is nearly enough ?)
  
   Best Regards,
  
   Korbinian
  
   PS: i would be happy if this could be done without using the session
  
  
  
  --
   --- Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to
  make your job
   easier Download IBM WebSphere Application Server v.1.0.1 based on
   Apache Geronimo
  
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=1216
   42 ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  --
  ---
  Using Tomcat but need to do more? Need to support web
  services, security?
  Get stuff done quickly with pre-integrated technology to make
  your job easier Download IBM WebSphere Application Server
  v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057;
 dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to get as string the page's rendered markup

2006-10-28 Thread Juergen Donnerstag
See WicketTestCase. Most of our junit tests are based on that principle


/**
 * Use code-Dwicket.replace.expected.results=true/code to
 * automatically replace the expected output file.
 *
 * @param pageClass
 * @param filename
 * @throws Exception
 */
protected void executeTest(final Class? extends Page pageClass,
final String filename)
throws Exception
{
System.out.println(===  + pageClass.getName() +  ===);

String document = accessPage(pageClass).getDocument();

// Validate the document
assertTrue(DiffUtil.validatePage(document, this.getClass(), 
filename));
}

/**
 * Simulates a bookmarkable page access from the browser
 *
 * @param pageClass
 * @return mock servlet response
 * @throws Exception
 */
protected MockHttpServletResponse accessPage(final Class? extends
Page pageClass)
throws Exception
{
application.setHomePage(pageClass);

// Do the processing
application.setupRequestAndResponse();
application.processRequestCycle();

assertEquals(pageClass, 
application.getLastRenderedPage().getClass());
return application.getServletResponse();
}

Juergen

On 10/28/06, Otan [EMAIL PROTECTED] wrote:
 No, it's not for debugging purpose. Here is the use case: I'm building a
 wicket application which purpose is to be an engine that produces static
 HTMLs. These HTML files are actually static version of my dynamic and
 templated wicket pages, and they will sit in my website for the world to
 access, in place of dynamic wicket pages.

 But I have no idea how to get the HTML source that a wicket page renders.


 On 28/10/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
  I guess you want it for debugging purpposes? There are lots of tools
  out there which allow you to monitor the traffic. Fiddler e.g. is such
  a tool (open source)
 
  Juergen
 
  On 10/28/06, Otan [EMAIL PROTECTED] wrote:
   I want to save into a file the wicket page's renderded markup before it
   respond to the user's request. Can someone give me a hint how to do
 this?
   Thanks.
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket tracking/ controlling

2006-10-28 Thread Juergen Donnerstag
Each and every wicket-example
(http://www.wicket-library.com/wicket-examples/helloworld) has a
little icon for information in the top left.

We do have classical URLs if you use bookmarkable pages in your links
only (and this is not different from other web apps; same
limitations). And when you look at wicket-library.com you'll see links
to two such webstats (which are limited but free).

If you don't want to limit yourself to bookmarkable pages because it
is the old worlds model, than you have to do some work yourself
until someone comes up with a solution/patch (but that is the same
with JSF, Tapestry, Echo2, GWT, ...). IResponseFilter and BasePage are
probably the way the start than.

Juergen

On 10/28/06, Korbinian Bachl [EMAIL PROTECTED] wrote:
 What example do you mean ? - i only found the javadoc
 http://wicket.sourceforge.net/apidocs/wicket/protocol/http/RequestLogger.htm
 l so far...

 what i mean is following: imagine you have a page that sells/ adverts
 something  - now you want to know how many visitors you have, on what pages
 (what params) they are, how many are doing certain actions or giving up and
 on what stage... in classical way, the webserver creates a log where he puts
 the URLs, time, IP etc. in which then can be examined by trackingsoftware
 like e.g: NetTracker, Webstat etc. - but they wont work with wicket as we
 have no classical URLs

 hope you now understand what i mean

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag
  von Juergen Donnerstag
  Gesendet: Samstag, 28. Oktober 2006 11:13
  An: wicket-user@lists.sourceforge.net
  Betreff: Re: [Wicket-user] wicket  tracking/ controlling
 
  When you go to the example, there is this little red (i) in
  the top left corner. It'll open a page with all the
  information maintained by RequestLogger.
 
  IResponseFilter and it is implementations might be an
  option/starting point for you as well.
 
  While re-reading your mail, I'm not sure it is what you ask
  for. What information do you get from other web apps in the
  webservers log which you don't get for Wicket apps? Your
  example given, the visitors, can be retrieved, no difference.
  Time to respond, who, when etc, no difference. What you
  won't get is the Page and wicket specific information of course.
 
  I'm not aware of any wiki entry or so, but I might not be
  up-to-date on that.
 
  A base page, as you suggested, might be a good starting
  point, as many relevant information are available. Though
  events (submit, etc.) must be logged differently.
 
  Juergen
 
  On 10/28/06, Korbinian Bachl [EMAIL PROTECTED] wrote:
   you cant point me to any article about that ? - i looked at the
   java-docs for 1.2 branch but didnt understand how this
  leads to a hook for tracking.
  
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Juergen Donnerstag
Gesendet: Samstag, 28. Oktober 2006 10:33
An: wicket-user@lists.sourceforge.net
Betreff: Re: [Wicket-user] wicket  tracking/ controlling
   
It is not better and not worse with Wicket, each web app
  framework
has the same issue here. Just the details are different.
   
Have a look at RequestLogger.java
   
Juergen
   
On 10/28/06, Korbinian Bachl [EMAIL PROTECTED] wrote:
 Hi,

 im not sure how to adress this thing with wicket: if you make a
 website you want to see where your visitor goes, what he does -
 usually by examining the webservers logfile by looking at
the URLs -
 however this wont work in wicket.

 How could this be solved ? - how can we track  trace our
visitors ?
 Does anyone know a existing solution (maybe open-source) that
 integrates very easy with wicket ? (perhaps so easy
  that putting
 it onto a BasePage is nearly enough ?)

 Best Regards,

 Korbinian

 PS: i would be happy if this could be done without using the
 session



   
  
--
 --- Using Tomcat but need to do more? Need to support web
 services, security?
 Get stuff done quickly with pre-integrated technology to
make your job
 easier Download IBM WebSphere Application Server
  v.1.0.1 based on
 Apache Geronimo

   
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=12
16
 42 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
--
---
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to
  make your
job easier Download IBM WebSphere Application Server
v.1.0.1 based on Apache Geronimo
http

Re: [Wicket-user] component internally generating AND binding wicket markup?

2006-10-26 Thread Juergen Donnerstag
In V2.0 it will be possible by subclassing getMarkupFragment(String
id). Don't think it'll be easy in 1.2

Juergen

On 10/26/06, Wouter Huijnink [EMAIL PROTECTED] wrote:
 Hi list,

 We have a domain class containing an XML string that needs to be
 transformed to XHTML, but we'd like to have a 2-phase transformation: an
 XSLT to generate wicket markup, and then a parsing and binding of this
 generated markup, using BookmarkablePageLink and other wicket components.

 Is it possible to inject new markup elements into the wicket page
 representation, and bind these new elements to Component instances?

 ___
 In more detail:
 We want to display a domain class that has an XML string as one of its
 members:

 public class DomainClass {
   private String title;
   private String introText;
   private String xml;

   ...
 }

 In order to properly display a DomainClass on a page, the xml needs to
 be transformed to XHTML. However, this XHTML is supposed to contain
 links to wicket pages that will have to be built by the transforming
 component, as we don't want the XSLT to contain hard-coded links.

 XML:
 e:text
e:p
e:asset src=happy-user.png/
/e:p
e:p
   Videbam enim plenam ecclesiam, et alius sic ibat, alius autem
 sic. mihi autem displicebat, quod agebam in saeculo, et oneri mihi erat
 valde, non iam  inflammantibus cupiditatibus, ut solebant, spe honoris
 et e:keyword-ref keyword-id=moneypecuniae/e:keyword-refpecuniae ad
 tolerandam illam servitutem tam gravem. iam enim me illa non
 delectabant, prae  ulcedine tua et decore domus tuae, quam dilexi;
/e:p
 /e:text

 the wicket markup for displaying a DomainClass would be
 div wicket:id=domainClassOutput
span wicket:id=title class=titledomainClassTitle/spanbr /
span wicket:id=intro class=introdomainClassIntroText/spanbr /
span wicket:id=formattedText
 class=textdomainClassText/spanbr /
 /div

 The endresult we want for the XML transformation is:
 p
img src=http://myserver/_img/happy-user.png; alt=happy user /
 /p
 p
   Videbam enim plenam ecclesiam, et alius sic ibat, alius autem
 sic. mihi autem displicebat, quod agebam in saeculo, et oneri mihi erat
 valde, non iam  inflammantibus cupiditatibus, ut solebant, spe honoris
 et a
 href=http://myserver/app/mountedBookmarkablePage/keyword/money;pecuniae/a
 ad tolerandam illam servitutem tam gravem. iam enim me illa non
 delectabant, prae  ulcedine tua et decore domus tuae, quam dilexi;
 p

 The easy way would be to use 1 XSLT, generating the above XHTML
 directly, using hardcoded URLs for images and internal links. We'd
 really prefer to use wicket components instead of hard coded links,
 though - so we'd need an intermediate, dynamic wicket markup like this:

 p
img wicket:id=dynamicImage1 /
 /p
 p
   Videbam enim plenam ecclesiam, et alius sic ibat, alius autem
 sic. mihi autem displicebat, quod agebam in saeculo, et oneri mihi erat
 valde, non iam  inflammantibus cupiditatibus, ut solebant, spe honoris
 et a wicket:id=dynamicLink1pecuniae/a ad tolerandam illam
 servitutem tam gravem. iam enim me illa non delectabant, prae  ulcedine
 tua et decore domus tuae, quam dilexi;
 p

 which can be bound in the code by doing something like this:

 [for each image that was found in the parsed xml]
 WebMarkupContainer webMarkupContainer = new
 WebMarkupContainer(dynamicImgId);
 webMarkupContainer.add(new AttributeModifier(src, true, new
 Model(getImagePath(imageName;
 this.add(webMarkupContainer);

 [for each keyword reference that was found in the parsed xml]
 BookmarkablePageLink link = new BookmarkablePageLink(dynamicLinkId,
 KeywordPage.class);
 this.add(link);


 Any suggestions as to how to accomplish this?

 Regards,
 Wouter

 --
 Wouter Huijnink
 Func. Internet Integration
 W http://www.func.nl
 T +31 20 423
 F +31 20 4223500


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] embed src ... /

2006-10-26 Thread Juergen Donnerstag
embed.setVisible(false)

Juergen

On 10/26/06, Michael Welter [EMAIL PROTECTED] wrote:
 I have an html table with several columns.  One column is an audio
 recording:

  tr wicket:id=responses class=even
tdembed wicket:id=recording type=audio/x-wav src=
 height=50 width=100 autostart=false//td
tdspan wicket:id=titleTitle/span/td
tdspan wicket:id=descriptionDescription/span/td
tdspan wicket:id=textText/span/td
  /tr

 In some instances there is no audio recording.  With no recording I send
 Label(recording,), and this results in the display of the QuickTime
 logo with a question mark (the src tag is empty).

 Is there some way to manipulate the html in the case of no recording?  I
 would like to be able to remove the embed / tag altogether and just
 have an empty td/ cell.

 Thanks



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] varying the presentation of a Panel...

2006-10-26 Thread Juergen Donnerstag
exactly, style is a per session setting whereas variation is a per
component setting.

Juergen

On 10/26/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
 I forgot this:

 to switch styles, use Session.setStyle().

 Pierre-Yves

 Pierre-Yves Saumont a écrit :
  Use styles. You can have several templates with different extensions,
  for example loginPanel_liquid.html and loginPanel_icy.html.
 
  Then, when you switch style from liquid to icy, Wicket will
  automatically select the appropriate template.
 
  Pierre-Yves
 
  Erik Brakkee a écrit :
  Hi,
 
 
  In many cases, it is useful to define an application wide Panel for
  commonly recurring parts of the user interface. Nevertheless, sometimes,
  it is necessary to vary only the presentation of a Panel.
 
  As far as I understand it, the Panel is always associated with one html
  template with the same name as the panel.
 
  Hence, my question is how I can easily vary the html template for a
  specific instance of a panel without changing it application wide. Most
  easy would be sometihing like this:
 
  // with the default HTML template
  Panel p = new Panel();
 
  // with a template different from the default.
  Panel p = new Panel();
  p.setTemplate(xyz.html); // with a class path resource
  InputStream is = ...; p.setTemplate(is); // with a template in an input
  stream.
 
  Is something like this already possible?
 
  Cheers
Erik
 
 
  
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
  
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cookies

2006-10-19 Thread Juergen Donnerstag
Depends on what exactly you want to do.
FormComponent.setPersisent(true) will save the forms value in a
cookie and load it into the same FormComponent when the user reloads
the page (login page: rememberMe). This approach doesnt require any
cookie knowledge from users. If you need some thing else than get the
servlet response object and handle the cookie yourself. No magic about
it.

Juergen

On 10/19/06, Scott Swank [EMAIL PROTECTED] wrote:
 I've searched the wiki  email list to no avail.  Does Wicket provide
 any APIs for manipulating cookies?

 Thanks once again.


 --
 Scott Swank
 reformed mathematician

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket-user Digest, Vol 5, Issue 173

2006-10-18 Thread Juergen Donnerstag
And of course make sure that your browser does not request the
information in ISO-8859-1 formatting.

Juergen

On 10/18/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 UTF-8 is default for Wicket. The issue is usually with Tomcat and
 Oracle settings. Please search the mail archive for information on how
 to set-up tomcat properly. For Oracle you might have to read there
 docs.

 Juergen

 On 10/18/06, ketan gote [EMAIL PROTECTED] wrote:
  hello
  friends
 
  does wicket support UTF-8 setting by default,
  but it doesn't work in oracle application server .
  and also on tomcat?
 
  WebResponse webres = (WebResponse )getResponse();
  HttpServletResponse hsr = webres.getServletHttpResponse();
  Systsem.out.println(**+hsr.getCharacterEncoding())
  this prints ISO-8859-1
  can this be set to UTF-8 default.
  so wicket becoming big issue
 
  regard's
 
  ketan d.gote
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Move to Apache: Namespace?

2006-10-17 Thread Juergen Donnerstag
The reason why this is relevant is because we determine the namespace
from this statement. Meaning
xmlns:wicket=http://wicket.sourceforge.net/ is our current default.
But xmlns:xxx=http://wicket.sourceforge.net/ will change Wickets
namespace to xxx. So instead of wicket:id you can write xxx:id. But
be carefull, that hasn't been fully tested. In that sense
xmlns:wicket=http://www.wicketframework.org; has no effect on Wicket
whatsoever and xmlns:xxx=http://www.wicketframework.org; will not
change the namespace. But I agree we should change the url to
http://www.wicketframework.org. And yes, that change would go in 2.0
only

Juergen

On 10/16/06, Upayavira [EMAIL PROTECTED] wrote:
 Frank Bille wrote:
  I normally use xmlns:wicket=http://www.wicketframework.org; and IMHO it
  will stay the same.
 
  Frank
 
 
  On 10/16/06, * Stefan Lindner* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  This question is currently not so very imnportant but, for XHTML
  users, will the
  xmlns:wicket=http://wicket.sourceforge.net/
 
  wicket namespace change too?

 If it does, it will change with a major version - 2.0 or 3.0, not a
 minor version, I would say.

 Regards, Upayavira


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] display border conditionally

2006-10-13 Thread Juergen Donnerstag
setRenderBodyOnly() can be used to change the behavior. But it only
prevent the component from writing the open and close tag. The box
html markup associated with BoxBorder will not be disabled this way.

Juergen

On 10/13/06, Bondarenko, Oleg [EMAIL PROTECTED] wrote:
 Is it possible to change Border rendering dynamically?

 E.g. take the wicket.markup.html.border.BoxBorder, I want the body of the 
 border to display always, but the border itself only on some condition.

 I think if I could overwrite Component.getRenderBodyOnly() that would be it, 
 but unfortunately this method is final ;-(



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ICryptFactory Uses

2006-10-13 Thread Juergen Donnerstag
Yes exactly. Reason being that URLs as well as cookies are limited to
base64 chars. Please do not use the crypt factory for storing
application password in your database or whereever as the interface
asks for encryption _and_ decryption (synchronous algorithms)

Juergen

On 10/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i believe we first encode using the crypto algorithm given a key you
 specify, and then base64 the result so it can be put into the url


 -Igor


 On 10/13/06, craigdd [EMAIL PROTECTED] wrote:
 
  It is great that wicket provides this functionality out of the box...props
 to
  the wicket development team.
 
  So am I correct in seeing that the
 CryptedUrlWebRequestCodingStrategy is
  using base64 to encode and decode the URL string?
 
  So getting back to the ICryptFactory interface, is this just a convenient
  way to provide a utility to the application has a whole for encrypting
  things?
 
 
 
  Johan Compagner wrote:
  
   no use CryptedUrlWebRequestCodingStrategy for that.
  
   johan
  
  
   On 10/13/06, craigdd [EMAIL PROTECTED] wrote:
  
  
   So are you saying that by implementing the ICryptFactory interface that
   URLs
   will also be encrypted?
  
  
  
   igor.vaynberg wrote:
   
it is used to retrieve crypto algorithms whenever we need to encrypt
something - which isnt very often. wicket has support for encrypting
   urls
so
that is one place where it is used.
   
generally you can find all places in code where it is used by asking
   your
IDE to find references to it.
   
   
-Igor
   
   
On 10/13/06, craigdd  [EMAIL PROTECTED] wrote:
   
   
In looking at the JavaDoc I noticed the ICryptFactory interface that
   can
be
implemented and added to the security settings of a wicket
 application
object.
   
I'm a little confuses as to what this is used for, does anyone have
   any
infor on this interface or how they are utilizing it?
--
View this message in context:
   
 http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6800168
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
  
 -
Using Tomcat but need to do more? Need to support web services,
   security?
Get stuff done quickly with pre-integrated technology to make your
 job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
   
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
  
 -
Using Tomcat but need to do more? Need to support web services,
   security?
Get stuff done quickly with pre-integrated technology to make your
 job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
   
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
   --
   View this message in context:
  
 http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6800792
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  --
  View this message in context:
 http://www.nabble.com/ICryptFactory-Uses-tf2438588.html#a6801708
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services, 

Re: [Wicket-user] display border conditionally

2006-10-13 Thread Juergen Donnerstag
What is the use case? Why do you want to do it?

No way might not be correct, may be not a simple one. Which version
are you using?

Juergen

On 10/13/06, Bondarenko, Oleg [EMAIL PROTECTED] wrote:
 ok, Juergen, my guess was wrong then. But does it mean there is no way to 
 dynamically disable the border markup and render only the border body? 
 Schade. ;)

 thanks anyway
 Oleg

 -Original Message-
 From:   [EMAIL PROTECTED] on behalf of Juergen Donnerstag
 Sent:   Fri 10/13/2006 10:01 PM
 To: wicket-user@lists.sourceforge.net
 Cc:
 Subject:Re: [Wicket-user] display border conditionally

 setRenderBodyOnly() can be used to change the behavior. But it only
 prevent the component from writing the open and close tag. The box
 html markup associated with BoxBorder will not be disabled this way.

 Juergen

 On 10/13/06, Bondarenko, Oleg [EMAIL PROTECTED] wrote:
  Is it possible to change Border rendering dynamically?
 
  E.g. take the wicket.markup.html.border.BoxBorder, I want the body of the 
  border to display always, but the border itself only on some condition.
 
  I think if I could overwrite Component.getRenderBodyOnly() that would be 
  it, but unfortunately this method is final ;-(
 
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HtmlHandler 1.2.2 - missing tags that does not require a close tag

2006-10-12 Thread Juergen Donnerstag
Forbidden end tags? Isn't it more like the end tag is standard for
all tags and allowing some very few tags to omit the end tag is just
because of designer laziness? Besides, but that is me, I'd suggest
everyone trying to be XHTML compliant (and XHTML requires the close
tags).

Juergen

On 10/12/06, Niels Bo [EMAIL PROTECTED] wrote:
 Hi

 Please add the COL tag to the doesNotRequireCloseTag list in
 HtmlHandler.

 Also the PARAM and AREA tags are missing and probably some others.
 A method to add such tags would be nice and better than having to use
 forbidden end tags
 as a workaround.

 Niels
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HtmlHandler 1.2.2 - missing tags that does notrequire a close tag

2006-10-12 Thread Juergen Donnerstag
You may use Wickets parser to convert the files into proper XHTML,
that is add the closing tags.

Juergen

On 10/12/06, Che Schneider [EMAIL PROTECTED] wrote:
 Hey Juergen,

 I totally agree with you that Wicket should 'force' you to write xhtml
 compliant code. Maybe that will teach those lazy html-designers... ;)
 Niels, in my opinion you you should maybe consider changing your code to
 be xhtml compliant. Not only is it s much more readable, it is also
 _much_ easier to parse - for browsers and any other interpreter:
 I am currently working on a project where people have been writing
 complex and nothing-compliant html code like I have never seen before.
 Now over 15% of the whole request time goes into _rendering the page in
 the browser_!
 It is ridiculous...

 Che





  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Niels Bo
  Sent: Thursday, October 12, 2006 3:54 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] HtmlHandler 1.2.2 - missing tags
  that does notrequire a close tag
 
  I was reading the COL definition from here:
  http://www.w3.org/TR/html4/struct/tables.html#edef-COL
  where it says end tag forbidden.
  Therefore removed it from the markup - and got problemes.
  XHTML I didn't think about.
 
  Niels
 
  2006/10/12, Juergen Donnerstag [EMAIL PROTECTED]:
 
Forbidden end tags? Isn't it more like the end tag is
  standard for
all tags and allowing some very few tags to omit the
  end tag is just
because of designer laziness? Besides, but that is me,
  I'd suggest
everyone trying to be XHTML compliant (and XHTML
  requires the close
tags).
 
Juergen
 
On 10/12/06, Niels Bo  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]  wrote:
 Hi

 Please add the COL tag to the
  doesNotRequireCloseTag list in
 HtmlHandler.

 Also the PARAM and AREA tags are missing and
  probably some others.
 A method to add such tags would be nice and better
  than having to use
 forbidden end tags
 as a workaround.

 Niels

  --
  ---
 Using Tomcat but need to do more? Need to support web
  services, security?
 Get stuff done quickly with pre-integrated technology
  to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1
  based on Apache Geronimo

  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057;
  dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  https://lists.sourceforge.net/lists/listinfo/wicket-user
  https://lists.sourceforge.net/lists/listinfo/wicket-user



 
 
  --
  ---
Using Tomcat but need to do more? Need to support web
  services, security?
Get stuff done quickly with pre-integrated technology
  to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based
  on Apache Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057;
  dat=121642
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057
  dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with FormBorder and not visible components (in trunk)

2006-10-10 Thread Juergen Donnerstag
I understand, but what most developers do instead of searching for the
component, actually because it makes refactoring easier, is to keep a
reference of that child-component. Eg. instead of
formBorder = new FormBorder(parent, formBorder)
formBorder.setBorderBodyContainer(formBorder)
new TextField(formBorder, myInput, ...)
...
TextField input = formBorder.get(.:myInput)

they do
formBorder = new FormBorder(parent, formBorder)
formBorder.setBorderBodyContainer(formBorder)
this.input = new TextField(formBorder, myInput, ...)
...
getMyTextField()
{
   return this.input;
}

No more trouble with refactoring and for users which have to use your
component mch easier to understand.

Juergen

On 10/9/06, Alberto Bueno [EMAIL PROTECTED] wrote:
 Yes, this method can be used,
 but imagine that I create my own FormBorder, that other people will use
 to create different forms.
 These developers can add content to this FormBorder, and they will add
 this content in the FormBorder
 component.

 Border formBorder = new FormBorder(this, border);
 TextField textfield = new TextFieldString(formBorder,name, new 
 PropertyModelString(properties, name));


 These developers don't have to know that the components have been added
 in the form component, because
 they are adding the components in the FormBorder component. How the
 FormBorder works internally is not
 important for these developers. They only have to know that they are
 adding components to the FormBorder.
 For this reason, If they want to search the textfield component, they
 only have to search this component
 in the FormBorder component.

 It's only an idea that would be nice to have in your framework, and
 probably will be interesting for the
 developers that they use this functionality. ;)




  getBodyContainer() already exists
 
  Juergen
 
  On 10/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  we can add border.getBodyContainer() to make it easier to find the body
  container.
 
  a couple of notes on wicket 2.0 in general.
 
  because of constructor change and the need for IAlternateParentProvider you
  can no longer assume that
 
  Container c=new Container(...);
  Label l=new Label(c);
 
  l.getParent()==c
 
  that is simply the nature of the beast. if you need to get a hold of l 
  after
  you added it to c later, then keep a reference, dont depend on the id.
 
  same thing is with models because of the way they wrap each other
 
  IModel model=getModel();
  Labe l=new Label();
  l.setModel(model);
 
  you cannot depend on
 
  model==l.getModel()
 
  because if model was assignment aware it wouldve generated a wrapper of
  itself in setModel() call.
 
  -Igor
 
 
 
 
  On 10/9/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 
  On 10/9/06, Alberto Bueno [EMAIL PROTECTED]  wrote:
 
  Yes, now the ways to find the child into the border are the ways that
  you say, but I think that the
  way would have to be transparent, like when we add a new child:
 
  TextField textfield = new TextFieldString(formBorder, name,
  new PropertyModelString(
properties, name));
 
 
  not quite. Remember that in case of FormBorder you  must call
  Border.setBorderBodyContainer(parent). Hence, it is not completely
  transparent.
 
 
  In that case, I really don't know where the textfield is added.
 
  call Component.getPath()
 
 
  Only
  internally the textfield is added in the body container.
  For the same reason, when I want to search a child, I don't have to know
  where is exactly this child...
  I think that in this case, I only have to know that the textfield has
 
  been
 
  added in a formborder, and I have to go to search this field in the
 
  formBorder.
 
  In this case, the get() method of the formBorder have to know internally
 
  where is the
 
  children, depending of the body container.
 
  I think this is a good idea to implement for components that implements
 
  IAlternateParent...
 
  You see the nasty point about this is that we would have to maintain
  two parent per component. The real one and the user one.
  Give me some time to think about it.
 
  Juergen
 
 
 
 
 
  Because FormBorder puts a form _around_ the wicket:body tag, the
  name component gets added to the body container. The body container
  id is border.getId() + Body. Hence
  get( border.form.borderBody.name) or
  border.getBodyContainer().get(name) or
  formBorder.get(borderBody.name)
 
  Juergen
 
  On 10/9/06, Alberto Bueno  [EMAIL PROTECTED] wrote:
 
 
  Hi Juergen Donnerstag
 
  Thanks for you patience. ;)
 
  The problem has been fixed with the changes that we have added to the
  trunk.
  Now I have another question.
  In the example BoxBorderTextPage_7 we add a TextField in the
 
  FormBorder.
 
  After that,
  If I want to find this component into the FormBorder component, I
 
  cannot
 
  find it.
 
 public BoxBorderTestPage_7()
 {
 Border formBorder = new FormBorder(this, border);
 
 TextField textfield = new TextFieldString

Re: [Wicket-user] Problem with FormBorder and not visible components (in trunk)

2006-10-09 Thread Juergen Donnerstag
I extened BoxBorderTestPage_7 to click the link and to validate the
output of the second render as well. The problem should be fixed.

Juergen

On 10/7/06, Alberto Bueno [EMAIL PROTECTED] wrote:
 Hi Juergen Donnerstag,

 The example BoxBorderTestPage_7 runs correctly because you only render
 the page only one time. The problem is if
 you have to reload the page again, because TextField has been removed in
 the first rendering and the markup
 doesn't find this component in the second rendering.
 I don't know how to simulate the situation in a test case, but if you
 check the example that I wrote,
 you will see the problem:

 MyBorderPage.html

 div wicket:id=border
 label wicket:id=span
 test
 /label
 /div
 a wicket:id=linklink/a


 MyBorderPage.java

 FormBorder border = new FormBorder(this, border);

 Label span = new Label(border, span,testt);
 span.setVisible(false);

 new Link(this, link){

 @Override
 public void onClick() {
 String p =;

 }

 };


  I've copied BoxBorderTestPage_3 into BoxBorderTestPage_7 and made the
  change you suggested. It is working properly. The textield is no
  longer printed.
 
  Juergen
 
  On 10/6/06, Alberto Bueno [EMAIL PROTECTED] wrote:
 
  you have the the test case:
 
  public class BoxBorderTestPage_3 extends WebPage
  {
  private static final long serialVersionUID = 1L;
 
  private final ValueMap properties = new ValueMap();
 
  /**
   * Construct.
   *
   *
   */
  public BoxBorderTestPage_3()
  {
  Border formBorder = new FormBorder(this, border);
 
 new TextFieldString(formBorder, name, new
  PropertyModelString(properties, name));
  }
  }
 
  That runs correctly.
 
  But if you change TextField component to setVisible(false):
 
  TextField textfield = new TextFieldString(formBorder, name,
  new PropertyModelString(properties, name));
  textfield.setVisible(false);
 
  Then the case has an error, because in the
  DiffUtil.validatePage(document, this.getClass(), filename) the component
  doesn't exists.
  (Because has been removed by the page when it check if the autocomponent
  contain not visible component to remove).
 
 
 
 
 
 
  This is V2 svn trunk? Could you please create a test case (see
  src/test) for me which makes is much easier to follow up. Thanks
 
  Juergen
 
  On 10/6/06, Alberto Bueno [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  the problem is when I want to add in a FormBorder a component with
  setVisible(false), because  this component
  is removed in the first rendering, and in the next rendering the
  component is not found.
  This is a simple example:
 
  MyBorderPage.html
 
  div wicket:id=border
label wicket:id=span
test
 /label
  /div
  a wicket:id=linklink/a
 
 
  MyBorderPage.java
 
  FormBorder border = new FormBorder(this, border);
 
 Label span = new Label(border, span,testt);
 span.setVisible(false);
 
 new Link(this, link){
 
 @Override
 public void onClick() {
 String p =;
 
 }
 
 };
 
  When I click the link, I have the error:
 
  Unable to find component with id 'span' in [MarkupContainer
  [Component id = auto-body, page = 
  com.isencia.paging.wicket.MyBorderPage,
  path = 8:border:myForm:auto-body.Border$BorderBody, isVisible = true,
  isVersioned = true]].
 
 
  Do you know any solution to solve this problem, or is a bug?
 
  Thanks
 
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share 
  your
  opinions on IT  business topics through brief surveys -- and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share 
  your
  opinions on IT  business topics through brief surveys -- and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share 
  your
  opinions on IT  business topics through brief surveys -- and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket

Re: [Wicket-user] Help

2006-10-09 Thread Juergen Donnerstag
Please search the mailing list. I remember I've seen users talking
about it and referring to GIS/GPS apps developed with Wicket. We are
more than happy to add a GIS/GPS apps to our example if someone
provides the code.

Juergen

On 10/9/06, ketan gote [EMAIL PROTECTED] wrote:
 hello
 freinds

 we are implementingGIS and GPS project , is it possible in wicket .
 if yes ?
 then why wicket is not providing any related stuff or example related to it
 watind for rep

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  1   2   3   4   5   6   7   8   9   10   >