Re: Stateless pages and performance

2008-01-20 Thread Uwe Schäfer

Jonathan Locke schrieb:

hi Jonathan

Until you've got a handle on your scaling problem (and it
probably is that and not a performance problem) and you know what needs to
be tuned, the best policy is probably to just build something simply and
quickly in order to discover if you even have a problem that requires this
solution.
  
talking about scalability, you posted a CachedPanel on your blog once. 
unfortunately it seems to be gone. is this still floating around anywhere?


thx uwe

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



How to redisplay a previous/known page

2008-01-20 Thread dvd
Hello:
in a call back, I'd like to setResponsePage(A Page that had been 
displayed/created already) for example, redisplay the home page without having 
to do things
like setResponsePage(new HomePage(params)), rather, I'd like to retrieved
the HomePage object that has already been created when user accessed it the 
first time. Basically how to locate the page object based on class/link name. 
BTW,  Is it possible to make the page object stateless when using 
setResponsePage(pageObject).  so that pageObject would not be serialized/saved? 
for performance? I read that using setResponsePage(Home.class) would make a 
non-session object of Home, but setResponsePage(new Home(obj)) would make home 
object saved in session.

Re: How to get page URL

2008-01-20 Thread Boon Aik Chew
I'm touched, thanks

On Jan 19, 2008 11:55 PM, Hoover, William [EMAIL PROTECTED] wrote:

 It wasn't ;o) I have been adding them as they come in :o)

 -Original Message-
 From: Boon Aik Chew [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 19, 2008 2:55 AM
 To: users@wicket.apache.org
 Subject: Re: How to get page URL


 I didn't know it's in the WIKI :p

 On Jan 18, 2008 10:02 PM, Hoover, William [EMAIL PROTECTED] wrote:

  Add/Edit if necessary http://cwiki.apache.org/confluence/x/sGw
 
  -Original Message-
  From: Boon Aik Chew [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 18, 2008 8:33 AM
  To: users@wicket.apache.org
  Subject: Re: How to get page URL
 
 
  It worked! Thanks!
 
  On Jan 18, 2008 9:07 PM, Martin Makundi 
  [EMAIL PROTECTED]
  wrote:
 
   And if you want the absolute path, like I did, you can use
  
   RequestUtils.toAbsolutePath(urlFor(xx));
  
   **
   Martin
  
   2008/1/18, Martijn Lindhout [EMAIL PROTECTED]:
getRequestCycle().urlFor(Page)
   
2008/1/18, Boon Aik Chew [EMAIL PROTECTED]:

 For some reason I need to get URL of a page class inside
   WebApplication,
 how
 do I accomplish that?

   
   
   
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




create new model object of a Form from one of its FormComp values??

2008-01-20 Thread infodoc

Hello All,

Have tried to search for this in the forums, but am not having much success
due to the multiple concepts involved.  I apologize in advance for the long
post.

Question: is there a way to, after a Form has been submitted, create a new
model object for that Form, based upon a value of a FormComponent within the
Form, and then update that new Form model object with the values of the
models of the other FormComponents in the Form??

For example, I have a Account editor, used to both create and edit Accounts,
which consists of a Form containing a number of FormComponents, eg., account
name, date created, etc.  For the moment just consider the case of creating
a new Account.  The Account constructor requires the email address of the
person who is to be the admin of the Account.  Internally it converts that
email address to a user object, saves that user to the db, and sets that
user as admin of the Account.  Therefore, one of the FormComponents in the
Account editor is a TextField whose model is the email address of the admin
to provide to the Account constructor.  So far, so good.

I have many editors like the one above for creating/editing other domain
objects, and they work great.  For them I initially set the editor Form
model object to a new instance of the type of object to be edited, and then
update that model object using the models of the FormComponents in that
respective editor.  I understand and am using a homegrown variant of
ICompoundModel without problem.  Again, so far, so good.

The problem: since the Account constructor requires the admin email address,
and that address cannot be determined in advance, I cannot pre-create an
Account to set as a blank model object to initialize the Account editor.  It
is possible I could give a fake admin email address to the Account
constructor, but that would create a fake user in the db, who would then
have to be deleted - I would rather avoid that.

What I had hoped to be able to do is: upon Form submission, get the admin
email address from the TextField (in the Form) which handles that.  Create a
NEW Account using that address (and handling any errors that occur).  Set
the model object of the editor Form as that newly-created account.  Update
that Form model object (new account) using the models of the other
FormComponents, like I do successfully with my editors for other objects.

I have read the docs and reviewed the source code - it seems I need to
insert code to do the above in the chain of calls that flow from Form
submission, after successful validation of FormComponents.  My question is,
exactly where?  My best guess is override the editor Form's
beforeUpdateFormComponentModels method, or perhaps the Form's
updateFormComponentModels method, maybe even the process method?.  Inital
attempts at this have been unsuccessful.

Any and all suggestions/constructive criticism appreciated.  Thank you in
advance for your time.
-- 
View this message in context: 
http://www.nabble.com/create-new-model-object-of-a-Form-from-one-of-its-FormComp-values---tp14983110p14983110.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How to change the style of navigator in PageableViewList

2008-01-20 Thread Michael Sparer

just subclass the pagingnavigator and add a markup that fits your needs ...


Mead Lai-2 wrote:
 
 
 Hi,
 should the navigator of PageableViewList  be individuation,or designe by
 user?the default style is too ugly, just like the example in the wicket
 package: 
   1234...789 ;
 Now, I wanne change the style to be: First Prev  Next  End 
 Showing 1 to 11 of 108 itemsPage:1/11 SumPage:11
  
 And any efficiency PageAble Component, could U recommend for me?
  
 Thanks,
 Mead
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
  
 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/How-to-change-the-style-of-navigator-in-PageableViewList-tp14978321p14983537.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Replace HTML Frameset

2008-01-20 Thread BatiB80

Hi together,

I've a page with a Frameset. In one frame I include a page from another
server. I want to replace the Frameset by something else... - Does anybody
knows how I can do this???

Thanks,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Replace-HTML-Frameset-tp14983298p14983298.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: create new model object of a Form from one of its FormComp values??

2008-01-20 Thread Igor Vaynberg
personally i would map the form to a bean, and then in onsubmit()
transfer those properties to an instance of your domain object.

-igor


On Jan 20, 2008 7:54 AM, infodoc [EMAIL PROTECTED] wrote:

 Hello All,

 Have tried to search for this in the forums, but am not having much success
 due to the multiple concepts involved.  I apologize in advance for the long
 post.

 Question: is there a way to, after a Form has been submitted, create a new
 model object for that Form, based upon a value of a FormComponent within the
 Form, and then update that new Form model object with the values of the
 models of the other FormComponents in the Form??

 For example, I have a Account editor, used to both create and edit Accounts,
 which consists of a Form containing a number of FormComponents, eg., account
 name, date created, etc.  For the moment just consider the case of creating
 a new Account.  The Account constructor requires the email address of the
 person who is to be the admin of the Account.  Internally it converts that
 email address to a user object, saves that user to the db, and sets that
 user as admin of the Account.  Therefore, one of the FormComponents in the
 Account editor is a TextField whose model is the email address of the admin
 to provide to the Account constructor.  So far, so good.

 I have many editors like the one above for creating/editing other domain
 objects, and they work great.  For them I initially set the editor Form
 model object to a new instance of the type of object to be edited, and then
 update that model object using the models of the FormComponents in that
 respective editor.  I understand and am using a homegrown variant of
 ICompoundModel without problem.  Again, so far, so good.

 The problem: since the Account constructor requires the admin email address,
 and that address cannot be determined in advance, I cannot pre-create an
 Account to set as a blank model object to initialize the Account editor.  It
 is possible I could give a fake admin email address to the Account
 constructor, but that would create a fake user in the db, who would then
 have to be deleted - I would rather avoid that.

 What I had hoped to be able to do is: upon Form submission, get the admin
 email address from the TextField (in the Form) which handles that.  Create a
 NEW Account using that address (and handling any errors that occur).  Set
 the model object of the editor Form as that newly-created account.  Update
 that Form model object (new account) using the models of the other
 FormComponents, like I do successfully with my editors for other objects.

 I have read the docs and reviewed the source code - it seems I need to
 insert code to do the above in the chain of calls that flow from Form
 submission, after successful validation of FormComponents.  My question is,
 exactly where?  My best guess is override the editor Form's
 beforeUpdateFormComponentModels method, or perhaps the Form's
 updateFormComponentModels method, maybe even the process method?.  Inital
 attempts at this have been unsuccessful.

 Any and all suggestions/constructive criticism appreciated.  Thank you in
 advance for your time.
 --
 View this message in context: 
 http://www.nabble.com/create-new-model-object-of-a-Form-from-one-of-its-FormComp-values---tp14983110p14983110.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Questions for permission of using the design of wicket-example

2008-01-20 Thread Martijn Dashorst
Hi,
It is great to hear that Wicket is popular in Japan!

With your questions you ask some difficult ones :)

I'll forward your question to the appropriate people within the Apache
foundation. It will take some time to get an answer back.

So this is not a no or a yes answer, but a wait for an answer answer.


If you want to go forward quickly, you could use the design, and change the
logo to something that doesn't have Apache Wicket in it.

Martijn




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


Questions for permission of using the design of wicket-example

2008-01-20 Thread Tsutomu Yano

 Hi,

 Few days ago, we (I and my friends) organize a user group of Wicket  
in Japan(Wicket User Group Japan aka Wicket-JA) and already 80+  
people join with us.


 https://sourceforge.jp/projects/wicket-ja

 We are creating the group-site now (we haven't it yet. only mailing  
lists).


 The wicket framework is so hot now in Japan! We would like to expand  
the number of users in japan by providing wicket-related information  
to our members in japanese language and at some time would like to  
contribute to the Apache Wicket project by sending you some bug-fixing  
or function-expanding code.


 We have some questions to the wicket team. and I could not find out  
the contact address on wicket site. I hope that the members of wicket  
team will read this message...


 Our questions:

 1. We would like to make our pages visually 'wicket-like'. So we  
would like to use the design and background images of your 'wicket- 
example' like http://www.wicketstuff.org/wicket13/captcha/ . May I do  
that?


 2. Can we use your Wicket Logo mark on our site? or is it under any  
kind of protections? If it is possible, we would like to put the logo  
mark on our top page.




 Thank you.


-
Tsutomu YANO
mailto:benbrand at mac.com





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



Required tag types?

2008-01-20 Thread James Carman
Is there any reason that components require that they be applied to
specific tag types in the markup files?  I'm writing a little utility
which calculates at runtime what editor to use based on the property
type (a la Trails).  So, I have no idea what type of tag to use.  I
thought I'd just do this (the actual component is a TextField in this
case):

div wicket:id=editor /

But, I get the following error message:

org.apache.wicket.markup.MarkupException: Component editor must be
applied to a tag of type 'input', not 'div wicket:id=editor' (line
0, column 0)

If I change my markup to:

input type=text wicket:id=editor /

then it works.  But, suppose a certain property requires a more
complicated editor component (maybe rich text, so I'd use something
like FCKEditor).  Would that component be complaining that it's being
applied to an input tag?  Is there any generic way to do this so
that all components will be happy at runtime with the markup?  Is
there any way to relax that restriction?

James

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



Re: Required tag types?

2008-01-20 Thread James Carman
So, the key is to use Fragments?  This is very similar to how we did
it in Trails.  I would like to make this somewhat reusable in other
projects so that they can define their own editors without having to
change this framework code.  I'm somewhat new to Wicket, so maybe I
just don't understand this all yet, but it seems to me like this
framework will only be able to use Fragments defined within the
current markup (the BeanEditPanel.html file).  Is that true?  In
Trails, we had the concept of a component address that  you would
use to locate the editor component you want to use.  So, it could be
defined in another page supplied by the user.  Trails comes with a
default page containing all of its editors as Blocks (similar to a
Fragment).  The default behavior returns components from this page as
the editors for properties.  However, any client application could
define their own editor component blocks on some page and use those
also.

On 1/20/08, Gerolf Seitz [EMAIL PROTECTED] wrote:
 have you seen Al's Bean Editor [0]?
 this might give you a hint in the right direction.

 regards,
   gerolf

 [0] http://herebebeasties.com/2007-08-17/wicket-bean-editor/

 On Jan 20, 2008 10:17 PM, James Carman [EMAIL PROTECTED] wrote:

  Is there any reason that components require that they be applied to
  specific tag types in the markup files?  I'm writing a little utility
  which calculates at runtime what editor to use based on the property
  type (a la Trails).  So, I have no idea what type of tag to use.  I
  thought I'd just do this (the actual component is a TextField in this
  case):
 
  div wicket:id=editor /
 
  But, I get the following error message:
 
  org.apache.wicket.markup.MarkupException: Component editor must be
  applied to a tag of type 'input', not 'div wicket:id=editor' (line
  0, column 0)
 
  If I change my markup to:
 
  input type=text wicket:id=editor /
 
  then it works.  But, suppose a certain property requires a more
  complicated editor component (maybe rich text, so I'd use something
  like FCKEditor).  Would that component be complaining that it's being
  applied to an input tag?  Is there any generic way to do this so
  that all components will be happy at runtime with the markup?  Is
  there any way to relax that restriction?
 
  James
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Required tag types?

2008-01-20 Thread James Carman
The way my framework is set up, I've got a PropertyEditorFactory interface:

public interface PropertyEditorFactory
{
  public Component createPropertyEditor(String componentName, Object
target, PropertyMetadata meta);
}

If I required my factory to return Panel objects instead, where would
the markup for those Panels come from?  Would I have to write my own
Panel extension classes that have the different editor types in them
(TextEditorPanel, BooleanEditorPanel, etc.)?



On 1/20/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
 instead of using fragments you can use panels, which would make the
 editors reusable across projects/pages.

 as far as why the checks are there...

 add(new TextField(foo));
 div wicket:id=foo/

 will end up with

 div wicket:id=foo value=bar/ == not a very useful textbox

 wicket does not mutate markup by default, so it will not mutate div
 tag to input tag.

 it also adds a level of error checking, making sure you add the right
 components to the right places.

 -igor


 On Jan 20, 2008 1:50 PM, James Carman [EMAIL PROTECTED] wrote:
  So, the key is to use Fragments?  This is very similar to how we did
  it in Trails.  I would like to make this somewhat reusable in other
  projects so that they can define their own editors without having to
  change this framework code.  I'm somewhat new to Wicket, so maybe I
  just don't understand this all yet, but it seems to me like this
  framework will only be able to use Fragments defined within the
  current markup (the BeanEditPanel.html file).  Is that true?  In
  Trails, we had the concept of a component address that  you would
  use to locate the editor component you want to use.  So, it could be
  defined in another page supplied by the user.  Trails comes with a
  default page containing all of its editors as Blocks (similar to a
  Fragment).  The default behavior returns components from this page as
  the editors for properties.  However, any client application could
  define their own editor component blocks on some page and use those
  also.
 
 
  On 1/20/08, Gerolf Seitz [EMAIL PROTECTED] wrote:
   have you seen Al's Bean Editor [0]?
   this might give you a hint in the right direction.
  
   regards,
 gerolf
  
   [0] http://herebebeasties.com/2007-08-17/wicket-bean-editor/
  
   On Jan 20, 2008 10:17 PM, James Carman [EMAIL PROTECTED] wrote:
  
Is there any reason that components require that they be applied to
specific tag types in the markup files?  I'm writing a little utility
which calculates at runtime what editor to use based on the property
type (a la Trails).  So, I have no idea what type of tag to use.  I
thought I'd just do this (the actual component is a TextField in this
case):
   
div wicket:id=editor /
   
But, I get the following error message:
   
org.apache.wicket.markup.MarkupException: Component editor must be
applied to a tag of type 'input', not 'div wicket:id=editor' (line
0, column 0)
   
If I change my markup to:
   
input type=text wicket:id=editor /
   
then it works.  But, suppose a certain property requires a more
complicated editor component (maybe rich text, so I'd use something
like FCKEditor).  Would that component be complaining that it's being
applied to an input tag?  Is there any generic way to do this so
that all components will be happy at runtime with the markup?  Is
there any way to relax that restriction?
   
James
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



We are adopting Wicket in our Organization

2008-01-20 Thread robert.mcguinness

As I've stated before in a previous post, I work a for a company that
develops software for the health care industry.  It was a battle between
JSF/Seam and Wicket as the framework of choice for the rewrite of the
company's portal.  After a whitepaper written by a colleague of mine that
compared the two implementations, Wicket was the clear winner. (I also
presented a demo of the Wicket framework to the team a couple months back).

I'd like to thank the authors of the framework for building such a fine
tool.  After years of struts development, developing web applications with
Wicket is a breath of fresh air.  Keep up the fine work.

I'll update this forum with our experience in developing/deploying web apps
using Wicket.

- rm3 
-- 
View this message in context: 
http://www.nabble.com/We-are-adopting-Wicket-in-our-Organization-tp14988751p14988751.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Jboss Portal + Wicket (Portlet)

2008-01-20 Thread Markqt

Hi Süli,

How did you configure PortletResourceURLFactory for JBoss portal? I got the
following error when trying the example:

 Caused by: javax.portlet.PortletException: Portlet RolesAuthApplication is
incorrectly configured. Init parameter PortletResourceURLFactory not
specified, nor as context parameter
org.apache.portals.bridges.common.PortletResourceURLFactory or as property
in org/apache/wicket/protocol/http/portlet/WicketPortlet.properties in the
classpath.
13:57:19,593 ERROR [STDERR] at
org.apache.wicket.protocol.http.portlet.WicketPortlet.init(WicketPortlet.java:153)
13:57:19,593 ERROR [STDERR] at
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359)
13:57:19,593 ERROR [STDERR] at
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233)

Süli Zsolt wrote:
 
 
 
 
 
 
 Hi! 
 
 I have been trying to make Wicket (1.3.0) work with Jboss Portal (Jboss
 4.2.2 and Portal 2.6.1. or 2.6.3.) for 2 weeks. Everything is ok,
 except AJAX calling. (This portlet works like charm on Jetspeed2.) 
 
 So let's see what we know... 
 
 Ajax Request reaches the server, and it gives me a respond too. The
 problem is, that the respond doesn't contain an
 lt;ajax-responsegt;nbsp;element, as this error says (from the WICKET
 AJAX
 DEBUG window) 
 ERROR:
 Errornbsp;whilenbsp;parsingnbsp;response:nbsp;Couldnbsp;notnbsp;findnbsp;rootnbsp;lt;ajax-responsegt;nbsp;element
  
 INFO: Invokingnbsp;post-callnbsp;handler(s)... 
 
 
 
 WicketAjaxGet JS functions has this String as first parameter: 
 http://localhost:8080/portal/portal/default/wickethelloportlet/WicketHelloPortletPortletWindow?action=2amp;_wuview=%2Fwickethelloportlet%2F%3Fwicket%3Ainterface%3D%3A0%3Ac1-link%3A%3AIBehaviorListener%3A0%3Aamp;_ru=true
  
 I debugged JbossPortal, and I saw that the HttpServletRequest has a
 _wuview parameter, but it doesn't appear in the generated
 PortletRequest (as a parameter). (If I call that URL directly from the
 browser, it generates an lt;ajax-responsegt; element and the _wuview
 parameter still exists in the PortletRequest.) So my RequestTarget will
 be [EMAIL PROTECTED]
 pageClass=wicket.test.HomePage, notnbsp;
 org.apache.wicket.request.target.component.listener.BehaviorRequestTarget. 
 
 Does anybody has luck with Wicket + Jboss Portal? What am I doing wrong? 
 Any help would be appreciated! Thx in advance! 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Jboss-Portal-%2B-Wicket-%28Portlet%29-tp14953943p14988555.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: We are adopting Wicket in our Organization

2008-01-20 Thread Igor Vaynberg
it would be great if we could see the whitepaper :)

-igor


On Jan 20, 2008 3:58 PM, robert.mcguinness
[EMAIL PROTECTED] wrote:

 As I've stated before in a previous post, I work a for a company that
 develops software for the health care industry.  It was a battle between
 JSF/Seam and Wicket as the framework of choice for the rewrite of the
 company's portal.  After a whitepaper written by a colleague of mine that
 compared the two implementations, Wicket was the clear winner. (I also
 presented a demo of the Wicket framework to the team a couple months back).

 I'd like to thank the authors of the framework for building such a fine
 tool.  After years of struts development, developing web applications with
 Wicket is a breath of fresh air.  Keep up the fine work.

 I'll update this forum with our experience in developing/deploying web apps
 using Wicket.

 - rm3
 --
 View this message in context: 
 http://www.nabble.com/We-are-adopting-Wicket-in-our-Organization-tp14988751p14988751.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: We are adopting Wicket in our Organization

2008-01-20 Thread robert.mcguinness


igor.vaynberg wrote:
 
 it would be great if we could see the whitepaper :)
 
 -igor
 

I'll see what I can do.

- rm3
-- 
View this message in context: 
http://www.nabble.com/We-are-adopting-Wicket-in-our-Organization-tp14988751p14989916.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How to redisplay a previous/known page

2008-01-20 Thread Timo Rantalaiho
On Sun, 20 Jan 2008, [EMAIL PROTECTED] wrote:
 in a call back, I'd like to setResponsePage(A Page that had been
 displayed/created already) for example, redisplay the home page
 without having to do things like setResponsePage(new
 HomePage(params)), rather, I'd like to retrieved the HomePage object
 that has already been created when user accessed it the first time.
 Basically how to locate the page object based on class/link name. 

Maybe you can just store the reference to the Page object?
Though somehow it would need to be updated if a new instance
is being created.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: Required tag types?

2008-01-20 Thread Igor Vaynberg
they are just regular panels, so the markup can come from anywhere
where the .class file is: your app, or a jar, wherever. and yes you
would have to create a panel per form control.

-igor


On Jan 20, 2008 2:28 PM, James Carman [EMAIL PROTECTED] wrote:
 The way my framework is set up, I've got a PropertyEditorFactory interface:

 public interface PropertyEditorFactory
 {
   public Component createPropertyEditor(String componentName, Object
 target, PropertyMetadata meta);
 }

 If I required my factory to return Panel objects instead, where would
 the markup for those Panels come from?  Would I have to write my own
 Panel extension classes that have the different editor types in them
 (TextEditorPanel, BooleanEditorPanel, etc.)?




 On 1/20/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
  instead of using fragments you can use panels, which would make the
  editors reusable across projects/pages.
 
  as far as why the checks are there...
 
  add(new TextField(foo));
  div wicket:id=foo/
 
  will end up with
 
  div wicket:id=foo value=bar/ == not a very useful textbox
 
  wicket does not mutate markup by default, so it will not mutate div
  tag to input tag.
 
  it also adds a level of error checking, making sure you add the right
  components to the right places.
 
  -igor
 
 
  On Jan 20, 2008 1:50 PM, James Carman [EMAIL PROTECTED] wrote:
   So, the key is to use Fragments?  This is very similar to how we did
   it in Trails.  I would like to make this somewhat reusable in other
   projects so that they can define their own editors without having to
   change this framework code.  I'm somewhat new to Wicket, so maybe I
   just don't understand this all yet, but it seems to me like this
   framework will only be able to use Fragments defined within the
   current markup (the BeanEditPanel.html file).  Is that true?  In
   Trails, we had the concept of a component address that  you would
   use to locate the editor component you want to use.  So, it could be
   defined in another page supplied by the user.  Trails comes with a
   default page containing all of its editors as Blocks (similar to a
   Fragment).  The default behavior returns components from this page as
   the editors for properties.  However, any client application could
   define their own editor component blocks on some page and use those
   also.
  
  
   On 1/20/08, Gerolf Seitz [EMAIL PROTECTED] wrote:
have you seen Al's Bean Editor [0]?
this might give you a hint in the right direction.
   
regards,
  gerolf
   
[0] http://herebebeasties.com/2007-08-17/wicket-bean-editor/
   
On Jan 20, 2008 10:17 PM, James Carman [EMAIL PROTECTED] wrote:
   
 Is there any reason that components require that they be applied to
 specific tag types in the markup files?  I'm writing a little utility
 which calculates at runtime what editor to use based on the property
 type (a la Trails).  So, I have no idea what type of tag to use.  I
 thought I'd just do this (the actual component is a TextField in this
 case):

 div wicket:id=editor /

 But, I get the following error message:

 org.apache.wicket.markup.MarkupException: Component editor must be
 applied to a tag of type 'input', not 'div wicket:id=editor' (line
 0, column 0)

 If I change my markup to:

 input type=text wicket:id=editor /

 then it works.  But, suppose a certain property requires a more
 complicated editor component (maybe rich text, so I'd use something
 like FCKEditor).  Would that component be complaining that it's being
 applied to an input tag?  Is there any generic way to do this so
 that all components will be happy at runtime with the markup?  Is
 there any way to relax that restriction?

 James

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


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

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



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



Re: ListView + reusing Items

2008-01-20 Thread Ned Collyer


Martijn Dashorst wrote:
 
 And according to me you are the first person in a while to encounter such
 a
 thing...
 

Nah, some of us just do workarounds, or begrudgingly add the urgly method
call ;).

I must admit having something so simple like adding components to a list,
and them not working by default is counter intuitive.

Cool, if i have 1 stateful component on the page it works, if i use the
ListView for 2 of them it doesn't.

So.. by default, ListView does not retain state.  I find this bizare
considering the other bits of wicket, and the transparent statefulness. (And
yes, i think it would be horrible to change, just unfortunate it is like
that now and forever)
-- 
View this message in context: 
http://www.nabble.com/ListView-%2B-reusing-Items-tp14918862p14991821.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Security violations and ERROR: filterStart with Tomcat deployment on Debian Etch

2008-01-20 Thread Daniel Walmsley
I blogged this, and Eelco wisely suggested I post it here. This is both a warning and plea for help - what's the best way to configure Tomcat on Debian for Wicket?Was up until 3am last night banging my head against another frustrating go-nowhere issue deploying Wicket on Debian Etch’s default Tomcat5.5.Apparently the latest version (5.5.20-2etch1) has additional security headaches features which prevent wicket from functioning properly out-of-the-box:  * First of all, there’s still an (as-yet-unsolved) mystery around why I couldn’t get Wicket to start up as a filter. Just the mysterious “ERROR: filterStart” which makes me want to feed Tomcat to angry lions. Worked around it by using Wicket in Servlet mode instead.  * Tomcat’s juli.jar can’t access WEB-INF/classes/logging.properties. Fixed (in sledgehammer-like way) by adding “permission java.security.AllPermission;” to /etc/tomcat5.5/policy.d/03catalina.policy, in the Juli section.  * Tomcat security prevents webapps from accessing all sorts of features and methods by default, including wicket.properties, methods inside shipped jars, etc. Not being a Tomcat expert, and trusting the innate security of the server and millions of lines of third party code (i.e. I’m an idiot) I again just popped a java.security.AllPermission; in appropriate spots in /etc/tomcat5.5/policy.d/04webapps.policy. Let the flames commence!If Tomcat was a little more helpful in its error messages, this would never have been so painful. Jetty has always run my Wicket apps without complaint (though I’ve never tried the official Debian Jetty packages - maybe they’re crippleware secure too?).The only reason I use Tomcat at all is the remote management and deployment features, which are well-supported by Cargo. Now that these issues are out of the way (mostly) I can take another few steps towards my dream of a seamless, fire-and-forget, auto-deploying, smoke-tested, pluggable and modular web app deployment system.Any ideas on how to better configure Tomcat?Any ideas on how to get more information about that ERROR: filterStart problem? I'd really like to do things the recommended way, instead of having to use WicketServlet.Cheers,Dan
 Daniel WalmsleyDirector,Firesydee:[EMAIL PROTECTED]m: +61404864141 

Re: Jboss Portal + Wicket (Portlet)

2008-01-20 Thread Süli Zsolt




Hi Markqt,

I followed the instructions I found on this page:
http://cwiki.apache.org/WICKET/portal-howto.html


So my web.xml looks like this:

?xml version="1.0" encoding="ISO-8859-1"?
web-app xmlns=MailScanner has detected a possible fraud attempt from "java.sun.com"  "http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi=MailScanner has detected a possible fraud attempt from "www.w3.org"  "http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation=MailScanner has detected a possible fraud attempt from "java.sun.com"  "http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
     version="2.4"

    display-namewickethelloportlet/display-name

    filter
        filter-namewickethelloportlet/filter-name
    
filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
        init-param
            param-nameapplicationClassName/param-name
           
param-valuewicket.test.WicketApplication/param-value
     /init-param
 /filter
 
 context-param
       
param-nameorg.apache.wicket.detectPortletContext/param-name
        param-valuetrue/param-value
      /context-param
      
    filter-mapping
      filter-namewickethelloportlet/filter-name
        url-pattern/wickethelloportlet/*/url-pattern
        dispatcherREQUEST/dispatcher
        dispatcherINCLUDE/dispatcher
    /filter-mapping

/web-app
---
In the portlet.xml I added these lines

    portlet
       ...
        init-param
            nameServletContextProvider/name
           
valueorg.jboss.portal.bridge.JBossServletContextProvider/value
     /init-param
     
     init-param
            namePortletResourceURLFactory/name
           
valuewicket.tetst.common.JbossPortletResourceURLFactory/value
     /init-param
        ...
    /portlet

And my implementation of PortletResourceURLFactory:

public class JbossPortletResourceURLFactory implements
PortletResourceURLFactory {

    public String createResourceURL( PortletConfig portletConfig,
RenderRequest renderRequest, RenderResponse renderResponse, Map
portletArg ) throws PortletException
    {
    PortletURL url = "" //
- maybe I should use renderResponse.createRenderURL();
    if (portletArg != null) {
        url.setParameters(portletArg);
    }
    return url.toString();
    }

    public String createResourceURL() {
        return null;
    }
}

I hope this helps!

Zsolt Süli

Markqt wrote:

  Hi Süli,

How did you configure PortletResourceURLFactory for JBoss portal? I got the
following error when trying the example:

 Caused by: javax.portlet.PortletException: Portlet RolesAuthApplication is
incorrectly configured. Init parameter PortletResourceURLFactory not
specified, nor as context parameter
org.apache.portals.bridges.common.PortletResourceURLFactory or as property
in org/apache/wicket/protocol/http/portlet/WicketPortlet.properties in the
classpath.
13:57:19,593 ERROR [STDERR] 	at
org.apache.wicket.protocol.http.portlet.WicketPortlet.init(WicketPortlet.java:153)
13:57:19,593 ERROR [STDERR] 	at
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.initPortlet(PortletContainerImpl.java:359)
13:57:19,593 ERROR [STDERR] 	at
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:233)

Süli Zsolt wrote:
  
  




Hi! 

I have been trying to make Wicket (1.3.0) work with Jboss Portal (Jboss
4.2.2 and Portal 2.6.1. or 2.6.3.) for 2 weeks. Everything is ok,
except AJAX calling. (This portlet works like charm on Jetspeed2.) 

So let's see what we know... 

Ajax Request reaches the server, and it gives me a respond too. The
problem is, that the respond doesn't contain an
lt;ajax-responsegt;nbsp;element, as this error says (from the WICKET
AJAX
DEBUG window) 
ERROR:
Errornbsp;whilenbsp;parsingnbsp;response:nbsp;Couldnbsp;notnbsp;findnbsp;rootnbsp;lt;ajax-responsegt;nbsp;element 
INFO: Invokingnbsp;post-callnbsp;handler(s)... 



WicketAjaxGet JS functions has this String as first parameter: 
http://localhost:8080/portal/portal/default/wickethelloportlet/WicketHelloPortletPortletWindow?action=""> 
I debugged JbossPortal, and I saw that the HttpServletRequest has a
_wuview parameter, but it doesn't appear in the generated
PortletRequest (as a parameter). (If I call that URL directly from the
browser, it generates an lt;ajax-responsegt; element and the _wuview
parameter still exists in the PortletRequest.) So my RequestTarget will
be [EMAIL PROTECTED]
pageClass=wicket.test.HomePage, notnbsp;
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget. 

Does anybody has luck with Wicket + Jboss Portal? What am I doing wrong? 
Any help would be appreciated! Thx in advance! 



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