Re: form components within an AccordionPanel

2008-10-14 Thread Nino Saturnino Martinez Vazquez Wael
I forgot to mention, that I do think dojo are being picked up at wicket 
1.4, some guys talked about it on the dev list. I take it you are using 
the 1.3?


Nino Saturnino Martinez Vazquez Wael wrote:



jchappelle wrote:
I am trying to render a form inside a Panel within an AccordionPanel. 
I have
even reduced it to trying to only render a TextArea inside a Panel 
within
it. However, when I click on the title of one of the items it expands 
with

nothing but white space within it.
  
Sounds a little wierd. What I would do would be to try to have a 
simple mock html that used the accordion js and see if I could 
replicate it there. Theres also a chance that the author of 
accordion.js has some hints on this.
The examples for the AccordionPanel only have a Label inside a Panel 
as the

content.

Yeah that's what I needed at the time.

 Is this not possible? I even tried to use the
DojoAccordionContainer but it gave some weird error debug messages that
splattered all over my webpage(I'm not even sure how that happened 
unless it
found a FeedbackPanel or something).   

Im not sure what state dojo are in.
I'm starting to lose faith in many of these wicket-stuff projects. 
PLEASE

HELP!
  
Well some of the wicketstuff projects are not being maintained, AFAIK. 
People are always welcome to maintain them. I saw you wrote a direct 
mail to me i'll reply on the questions you had there.

Thanks,

Josh
  




--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: form components within an AccordionPanel

2008-10-14 Thread Nino Saturnino Martinez Vazquez Wael



jchappelle wrote:

I am trying to render a form inside a Panel within an AccordionPanel. I have
even reduced it to trying to only render a TextArea inside a Panel within
it. However, when I click on the title of one of the items it expands with
nothing but white space within it.
  
Sounds a little wierd. What I would do would be to try to have a simple 
mock html that used the accordion js and see if I could replicate it 
there. Theres also a chance that the author of accordion.js has some 
hints on this.

The examples for the AccordionPanel only have a Label inside a Panel as the
content.

Yeah that's what I needed at the time.

 Is this not possible? I even tried to use the
DojoAccordionContainer but it gave some weird error debug messages that
splattered all over my webpage(I'm not even sure how that happened unless it
found a FeedbackPanel or something). 
  

Im not sure what state dojo are in.

I'm starting to lose faith in many of these wicket-stuff projects. PLEASE
HELP!
  
Well some of the wicketstuff projects are not being maintained, AFAIK. 
People are always welcome to maintain them. I saw you wrote a direct 
mail to me i'll reply on the questions you had there.

Thanks,

Josh
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: right click popup context menu

2008-10-14 Thread Doug Leeper

I just updated from SVN for projects wicketstuff-yui-examples and
wicket-contrib-yui.

Did a mvn eclipse:eclipse on both.

in the wicketstuff-yui-examples, i did a mvn jetty:run

There were no errors and I was able to access the web app and subsequently
the menu2 examples.

As far as your error...not sure.  There has to be some other error that you
are not mentioning.

What other errors are you seeing in eclipse?
-- 
View this message in context: 
http://www.nabble.com/right-click-popup-context-menu-tp15876468p19986080.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: Multiple AjaxFormComponentUpdatingBehaviors

2008-10-14 Thread Timo Rantalaiho
On Wed, 15 Oct 2008, Kai Mütz wrote:
> I have some form components with AjaxFormComponentUpdatingBehavior added. If
> I add another AjaxFormComponentUpdatingBehavior within the onbeforerender()
> method using an IVisitor the original behavior doesn't work reliably
> anymore. Is it possible to add 2 AjaxFormComponentUpdatingBehaviors to the
> same form component, one in constructor, other before rendering?

I think it should be fine if they are bound to different
javascript events, but having two behaviors bound to the 
same event won't work (you'll have to do combining the 
actions in your own code).

What events are your behaviors bound to? 

Best wishes,
Timo


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



Re: why/how would a "shadow" model be updated, rather than my object?

2008-10-14 Thread Timo Rantalaiho
On Tue, 14 Oct 2008, Kirk Is wrote:
> in the form I check the checkboxes and hit OK... the accessor for the
> field is read, but on a NEW instance of my model. It's NOT the same
> old model I've been passing around, nor has anything new been
> constructed or static code called. So on this new model, the accessor
> is called. But back at the onClose callback of the ModalWindow, the
> original model has not been touched.

Could it be that serialising and deserialising your model
causes this?

> How do I diagnose this? What am I missing? Is there some weird cloning
> going on, between the ModalWindow and/or the form, or why is it
> reading from one copy of the model and writing to another?

Have you checked that the equals() implementations of your
modelObjects are OK? By default, setModelObject() does not
change the modelObject if it's equal to the new one.

I'd suggest adding a unit test where the problem is 
reproduced and then changing the use of 
CompoundPropertyModel to handmade models. Something more
verbose but more explicit. Then it'll be easier to see 
what's going on.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



Is there a way to get stateless DDC with onchange notification?

2008-10-14 Thread Ritesh Trivedi

Hi,

Is there a way to get stateless DDC with onchange notifications? Also would
be helpful if someone could explain why the wantOnChangeNotification makes
DDC stateful even if its enclosed within stateless form and in the stateless
bookmarkable page?
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.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]



ModalWindow slow in Firefox3

2008-10-14 Thread xiefei
Anyone else suffer the problem that wicket ModalWindow run slow in Firefox3? 

This never happens in IE6, and Firefox2, as I remember.

We are using 1.4m2











_
一边聊天一边快速搜索,并把结果共享给好友,立刻试试!
http://im.live.cn/Share/18.htm

Re: WebPage constructor

2008-10-14 Thread Igor Vaynberg
what is diskstore have to do with how a bookmarkable url gets processed?

-igor

On Tue, Oct 14, 2008 at 4:09 PM, Ryan Gravener <[EMAIL PROTECTED]>wrote:

> Johan, I don't think a bookmarkable page will always be instantiated
> because
> of the diskpagestore.
>
> Ryan Gravener
> http://twitter.com/ryangravener
>
>
> On Tue, Oct 14, 2008 at 6:56 PM, Johan Compagner <[EMAIL PROTECTED]
> >wrote:
>
> > Only when you have a bookmarkable url (or home page) and you press
> > refresh in the browser you will get a new page.
> >
> > The url you refresh points to an existing page instance and that one
> > is just rendered again, so no page construction is being done then
> >
> > On 10/14/08, jensiator <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi
> > > I have a page that extends webpage, when I hit the browsers refresh
> > button
> > > the constuctor wont run. It only runs when I press the PageLink that
> > point
> > > to it. The constructor has a UUID as input parameter ( MyWebPage(UUID
> id)
> > ).
> > > Is it suppossed to be like that (working with onrender instead at a
> > > refresh). I've been searching the web for something about what to
> expect
> > of
> > > the constuctor invokation but I cant find anything about it.  Please
> > point
> > > me to an basic article about it if there is on.
> > > Jens
> > > --
> > > View this message in context:
> > > http://www.nabble.com/WebPage-constructor-tp19977659p19977659.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: WebPage constructor

2008-10-14 Thread Ryan Gravener
Johan, I don't think a bookmarkable page will always be instantiated because
of the diskpagestore.

Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 14, 2008 at 6:56 PM, Johan Compagner <[EMAIL PROTECTED]>wrote:

> Only when you have a bookmarkable url (or home page) and you press
> refresh in the browser you will get a new page.
>
> The url you refresh points to an existing page instance and that one
> is just rendered again, so no page construction is being done then
>
> On 10/14/08, jensiator <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > I have a page that extends webpage, when I hit the browsers refresh
> button
> > the constuctor wont run. It only runs when I press the PageLink that
> point
> > to it. The constructor has a UUID as input parameter ( MyWebPage(UUID id)
> ).
> > Is it suppossed to be like that (working with onrender instead at a
> > refresh). I've been searching the web for something about what to expect
> of
> > the constuctor invokation but I cant find anything about it.  Please
> point
> > me to an basic article about it if there is on.
> > Jens
> > --
> > View this message in context:
> > http://www.nabble.com/WebPage-constructor-tp19977659p19977659.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: WebPage constructor

2008-10-14 Thread Johan Compagner
Only when you have a bookmarkable url (or home page) and you press
refresh in the browser you will get a new page.

The url you refresh points to an existing page instance and that one
is just rendered again, so no page construction is being done then

On 10/14/08, jensiator <[EMAIL PROTECTED]> wrote:
>
> Hi
> I have a page that extends webpage, when I hit the browsers refresh button
> the constuctor wont run. It only runs when I press the PageLink that point
> to it. The constructor has a UUID as input parameter ( MyWebPage(UUID id) ).
> Is it suppossed to be like that (working with onrender instead at a
> refresh). I've been searching the web for something about what to expect of
> the constuctor invokation but I cant find anything about it.  Please point
> me to an basic article about it if there is on.
> Jens
> --
> View this message in context:
> http://www.nabble.com/WebPage-constructor-tp19977659p19977659.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]



Multiple AjaxFormComponentUpdatingBehaviors

2008-10-14 Thread Kai Mütz
Hi,

I have some form components with AjaxFormComponentUpdatingBehavior added. If
I add another AjaxFormComponentUpdatingBehavior within the onbeforerender()
method using an IVisitor the original behavior doesn't work reliably
anymore. Is it possible to add 2 AjaxFormComponentUpdatingBehaviors to the
same form component, one in constructor, other before rendering?

Thanks in advance, Kai


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



RE: Trouble printing image

2008-10-14 Thread Dane Laverty
I should have said that your class worked great for displaying the
image; it just didn't keep the image name. Well, time to study up on
Serkan's suggestion on Content-Disposition and see what that does.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2008 2:31 PM
To: users@wicket.apache.org
Subject: Re: Trouble printing image

Yeah, sorry about that.  I think the FileUtils class is one of my own,
actually (from work or I'd just give it to you).  I leave it up to the
reader to write the file copy method. :)


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



Re: Trouble printing image

2008-10-14 Thread James Carman
Yeah, sorry about that.  I think the FileUtils class is one of my own,
actually (from work or I'd just give it to you).  I leave it up to the
reader to write the file copy method. :)

On Tue, Oct 14, 2008 at 4:35 PM, Dane Laverty <[EMAIL PROTECTED]> wrote:
> Thanks for the hint. I tried your class with some minor modifications
> (see below -- I commented out two lines and used the Apache FileUtils,
> since I'm not sure which FileUtils class your referenced) but without
> any success. However, while playing with that, I did notice that
> untitled.bmp that IE returns is 4+ MB, as compared to 200 KB for the
> print.png that FireFox returns. I'm not sure what that means, but it
> seems odd to me that the file returned would be browser-specific.
>
> Thanks again,
>
> Dane
>
> Modified FileImageResource class:
>
> public class FileImageResource extends DynamicImageResource
>{
>private static final long serialVersionUID = 1L;
>private final String path;
>
>public FileImageResource( File file, String format )
>{
>super(format);
>this.path = file.getAbsolutePath();
>//setCacheable(true);
>
> //setLastModifiedTime(Time.valueOf(file.lastModified()));
>}
>
>protected byte[] getImageData()
>{
>try {
>return FileUtils.readFileToByteArray(new
> File(path));
>} catch (IOException ioe) {
>logger.error("Trouble reading the image file.",
> ioe);
>return null;
>}
>}
>}
>
> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2008 12:16 PM
> To: users@wicket.apache.org
> Subject: Re: Trouble printing image
>
> Try the FileImageResource class mentioned here (by me :):
>
> http://www.nabble.com/Mount-files-outside-container-td19232069.html
>
>
> -
> 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]



why/how would a "shadow" model be updated, rather than my object?

2008-10-14 Thread Kirk Is
I've spent about a workday and a half trying to debug this and figure
out what's going wrong...

The core problem is: I'm pretty sure I've diagnosed it so that a Form
inside a Page embedded in a ModalWindow pCreativeModel I have is using
a CompudPropertyModel to update a model object... and with logging
debugging I see that it is indeed updating a model object of the right
type, but it's NOT the one I passed into it -- nor are the usual
constructors or static code blocks being called that would indicate a
new one was being made, it's like it's somehow being cloned

To make it concrete, I have a
In a datatable,  CreativeVerifyColumn's populateItem reconstitutes a
AdCreativeModel ...
it then makes a CreativeVerifyLinkPanel that has an AjaxLink that will
show the ModalWindow that it made at creation time,
the ModalWindow's createPage() returns a new CreativeVerifyPanelPage
which is passed the AdCreativeModel,
that page has a form that does form.setModel(new
CompoundPropertyModel(mAdCreativeModel));, and then some checkboxes
that apply to accessors on the AdCreativeModel.

To track the problem, I made a static function on AdCreativeModel that
can be called with an instance of AdCreativeModel...
when the function is called, it A. adds the instance on an ArrayList
and B. tells you if that new instance is == to any of the previous
instances you called the function with.

I then put in calls to that debugger function to A. the constructor of
AdCreativeModel B. for grins, a static code block on AdCreativeModel
C. the getter for one of the relevant properties on the
AdCreativeModel

when the data table is displayed, the static block and the constructor
are called, and the same instance is called to show the value of the
field

clicking on the link to show the modal window, I see the thing getting
passed around is the old instance of the panel - plus that instance
gets read, presumably to let the checkbox in the form get populated
properly

in the form I check the checkboxes and hit OK... the accessor for the
field is read, but on a NEW instance of my model. It's NOT the same
old model I've been passing around, nor has anything new been
constructed or static code called. So on this new model, the accessor
is called. But back at the onClose callback of the ModalWindow, the
original model has not been touched.

How do I diagnose this? What am I missing? Is there some weird cloning
going on, between the ModalWindow and/or the form, or why is it
reading from one copy of the model and writing to another?

Thanks for any suggestions!

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



Need to change the image in AJAX TREE

2008-10-14 Thread newbie_to_wicket

i've to change the Ajax tree images  folder open and folder close with other
images.

can any body let me know once how do we do this by programmatically in
wicket.

thanks
J

-- 
View this message in context: 
http://www.nabble.com/Need-to-change-the-image-in-AJAX-TREE-tp19982032p19982032.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: Stream/download files through portlet

2008-10-14 Thread Rob Sonke
Awesome! I was pretty sure that I tried that too but probably not in 
combination with other changes. I have overridden the onclick like this:


ResourceLink link = new ResourceLink("downloadLink", resource)
   {
 /* (non-Javadoc)
  * @see org.apache.wicket.markup.html.link.ResourceLink#onClick()
  */
 @Override
 public void onClick()
 {
   super.onClick();
   PortletRequestContext ctx = (PortletRequestContext) 
RequestContext.get();

   PortletResponse presp = ctx.getPortletResponse();
   presp.addProperty("Content-Disposition", 
String.format("attachment; filename=\"%s\"", "boe.doc"));

 }
   };

Thanks, that made my day :)

Rob


Serkan Camurcuoglu wrote:

In the PLT.12.1.1 section of jsr 286 it says:

"Response properties can be viewed as header values set for the portal
application. If these header values are intended to be transmitted to the
client they should be set before the response is committed. When setting
headers in the render lifecycle phase portlets should set the header in the
render headers part or simply override the GenericPortlet.doHeaders method
(see PLT.11.1.1.4.3)."

I think you may try:

PortletRequestContext ctx = (PortletRequestContext) RequestContext.get();
PortletResponse presp = ctx.getPortletResponse();
presp.addProperty("header", "value");

this is kind of a hack but it might work..




Rob Sonke wrote:
  

No, too bad. The headers aren't picked up.


Serkan Camurcuoglu wrote:


For the DynamicWebResource case, doesn't overriding setHeaders() in
DynamicWebResource and adding your http header in this method work?

By the way, which portlet container are you working with?




Rob Sonke wrote:
  
  

Hi,

We're using wicket for our portlets now for almost 3/4 year and it's 
great. We're following/try to help with the full implementation of jsr 
286 in wicket too (Thijs and me, see other threads). But I'm having a 
problem now with offering files through a portlet. There are actually 
two options, use the resource phase of jsr286 or use a separate download 
servlet. First option rocks, second option not (if option 1 won't work, 
I'll have to deal with it but I prefer not).


So I'm trying to serve a file through the portlet based on a wicket 
link. A normal link would end up in a actionResponse which will not 
allow you to touch the resourcestream (returning null as the portlet 
specs describe). An ajax link (which uses the resource phase) will end 
up with a lot of binary code in the ajax xml output which will, of 
course, not work.


I tried also adding a DynamicWebResource to a wicket ResourceLink, which 
works actually pretty good except that he's not communicating the 
filename to the brower by setting a header. I tried adding a header to 
the ResourceResponse but that one was not passed to the client too 
(maybe I did that wrong).


Could anyone point me in the right direction or could tell me what I'm 
doing wrong over here?


Regards,
Rob

-
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: Stream/download files through portlet

2008-10-14 Thread Serkan Camurcuoglu

In the PLT.12.1.1 section of jsr 286 it says:

"Response properties can be viewed as header values set for the portal
application. If these header values are intended to be transmitted to the
client they should be set before the response is committed. When setting
headers in the render lifecycle phase portlets should set the header in the
render headers part or simply override the GenericPortlet.doHeaders method
(see PLT.11.1.1.4.3)."

I think you may try:

PortletRequestContext ctx = (PortletRequestContext) RequestContext.get();
PortletResponse presp = ctx.getPortletResponse();
presp.addProperty("header", "value");

this is kind of a hack but it might work..




Rob Sonke wrote:
> 
> No, too bad. The headers aren't picked up.
> 
> 
> Serkan Camurcuoglu wrote:
>> For the DynamicWebResource case, doesn't overriding setHeaders() in
>> DynamicWebResource and adding your http header in this method work?
>>
>> By the way, which portlet container are you working with?
>>
>>
>>
>>
>> Rob Sonke wrote:
>>   
>>> Hi,
>>>
>>> We're using wicket for our portlets now for almost 3/4 year and it's 
>>> great. We're following/try to help with the full implementation of jsr 
>>> 286 in wicket too (Thijs and me, see other threads). But I'm having a 
>>> problem now with offering files through a portlet. There are actually 
>>> two options, use the resource phase of jsr286 or use a separate download 
>>> servlet. First option rocks, second option not (if option 1 won't work, 
>>> I'll have to deal with it but I prefer not).
>>>
>>> So I'm trying to serve a file through the portlet based on a wicket 
>>> link. A normal link would end up in a actionResponse which will not 
>>> allow you to touch the resourcestream (returning null as the portlet 
>>> specs describe). An ajax link (which uses the resource phase) will end 
>>> up with a lot of binary code in the ajax xml output which will, of 
>>> course, not work.
>>>
>>> I tried also adding a DynamicWebResource to a wicket ResourceLink, which 
>>> works actually pretty good except that he's not communicating the 
>>> filename to the brower by setting a header. I tried adding a header to 
>>> the ResourceResponse but that one was not passed to the client too 
>>> (maybe I did that wrong).
>>>
>>> Could anyone point me in the right direction or could tell me what I'm 
>>> doing wrong over here?
>>>
>>> Regards,
>>> Rob
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> 
>>
>>   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Stream-download-files-through-portlet-tp19980617p19981860.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]



Open Modal Dialog at specific position on screen (not center)

2008-10-14 Thread groffhibbitz

Hi, I'm running into a problem where my modal dialog is popping up, but being
covered by a flash component that is on the page.  The z-index seems to have
nothing to do with this, as I can set the z-index of my flash component to
- and z-index of the modal to 20001. All I want to do to solve this is
not pop up the modal dialog in the center of the page (which is where the
flash component is) but instead pop it up right above where the button I
click is that opens it.

Can I call a javascript function to move the modal once it has been shown?
-- 
View this message in context: 
http://www.nabble.com/Open-Modal-Dialog-at-specific-position-on-screen-%28not-center%29-tp19981773p19981773.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: Trouble printing image

2008-10-14 Thread Dane Laverty
Thanks for the hint. I tried your class with some minor modifications
(see below -- I commented out two lines and used the Apache FileUtils,
since I'm not sure which FileUtils class your referenced) but without
any success. However, while playing with that, I did notice that
untitled.bmp that IE returns is 4+ MB, as compared to 200 KB for the
print.png that FireFox returns. I'm not sure what that means, but it
seems odd to me that the file returned would be browser-specific.

Thanks again,

Dane

Modified FileImageResource class:

public class FileImageResource extends DynamicImageResource
{
private static final long serialVersionUID = 1L;
private final String path;

public FileImageResource( File file, String format )
{
super(format);
this.path = file.getAbsolutePath();
//setCacheable(true);

//setLastModifiedTime(Time.valueOf(file.lastModified()));
}

protected byte[] getImageData()
{
try {
return FileUtils.readFileToByteArray(new
File(path));
} catch (IOException ioe) {
logger.error("Trouble reading the image file.",
ioe);
return null;
}
}
}

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2008 12:16 PM
To: users@wicket.apache.org
Subject: Re: Trouble printing image

Try the FileImageResource class mentioned here (by me :):

http://www.nabble.com/Mount-files-outside-container-td19232069.html


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



Re: Stream/download files through portlet

2008-10-14 Thread Rob Sonke

No, too bad. The headers aren't picked up.


Serkan Camurcuoglu wrote:

For the DynamicWebResource case, doesn't overriding setHeaders() in
DynamicWebResource and adding your http header in this method work?

By the way, which portlet container are you working with?




Rob Sonke wrote:
  

Hi,

We're using wicket for our portlets now for almost 3/4 year and it's 
great. We're following/try to help with the full implementation of jsr 
286 in wicket too (Thijs and me, see other threads). But I'm having a 
problem now with offering files through a portlet. There are actually 
two options, use the resource phase of jsr286 or use a separate download 
servlet. First option rocks, second option not (if option 1 won't work, 
I'll have to deal with it but I prefer not).


So I'm trying to serve a file through the portlet based on a wicket 
link. A normal link would end up in a actionResponse which will not 
allow you to touch the resourcestream (returning null as the portlet 
specs describe). An ajax link (which uses the resource phase) will end 
up with a lot of binary code in the ajax xml output which will, of 
course, not work.


I tried also adding a DynamicWebResource to a wicket ResourceLink, which 
works actually pretty good except that he's not communicating the 
filename to the brower by setting a header. I tried adding a header to 
the ResourceResponse but that one was not passed to the client too 
(maybe I did that wrong).


Could anyone point me in the right direction or could tell me what I'm 
doing wrong over here?


Regards,
Rob

-
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: Stream/download files through portlet

2008-10-14 Thread Rob Sonke
Thanks for your answer. I think overriding the setHeaders will end up 
with the same result as with adding the filename through the constructor 
of DynamicWebResource but I'll try it in some minutes.


We're using Liferay as the portal.

Rob


Serkan Camurcuoglu wrote:

For the DynamicWebResource case, doesn't overriding setHeaders() in
DynamicWebResource and adding your http header in this method work?

By the way, which portlet container are you working with?




Rob Sonke wrote:
  

Hi,

We're using wicket for our portlets now for almost 3/4 year and it's 
great. We're following/try to help with the full implementation of jsr 
286 in wicket too (Thijs and me, see other threads). But I'm having a 
problem now with offering files through a portlet. There are actually 
two options, use the resource phase of jsr286 or use a separate download 
servlet. First option rocks, second option not (if option 1 won't work, 
I'll have to deal with it but I prefer not).


So I'm trying to serve a file through the portlet based on a wicket 
link. A normal link would end up in a actionResponse which will not 
allow you to touch the resourcestream (returning null as the portlet 
specs describe). An ajax link (which uses the resource phase) will end 
up with a lot of binary code in the ajax xml output which will, of 
course, not work.


I tried also adding a DynamicWebResource to a wicket ResourceLink, which 
works actually pretty good except that he's not communicating the 
filename to the brower by setting a header. I tried adding a header to 
the ResourceResponse but that one was not passed to the client too 
(maybe I did that wrong).


Could anyone point me in the right direction or could tell me what I'm 
doing wrong over here?


Regards,
Rob

-
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: list of possible message resource keys?

2008-10-14 Thread Jeremy Thomerson
You might just look in Application.properties in the source code to see.

For example:
http://fisheye6.atlassian.com/browse/wicket/trunk/wicket/src/main/java/org/apache/wicket/Application.properties?r=694475


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


On Tue, Oct 14, 2008 at 2:25 PM, dukehoops <[EMAIL PROTECTED]> wrote:

>
> Is there a list of all possible message bundle resource keys that wicket
> 1.3.4 recognizes?
>
> I thought it's: name of class implementing IValidator sans trailing
> "Validator" but then there are "Required" and "LengthValidator" keys so I
> guess not...
>
> thanks!
> -nikita
>
> -
> 
> Nikita Tovstoles
> vside.com
> 
>
> --
> View this message in context:
> http://www.nabble.com/list-of-possible-message-resource-keys--tp19980430p19980430.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: Stream/download files through portlet

2008-10-14 Thread Serkan Camurcuoglu

For the DynamicWebResource case, doesn't overriding setHeaders() in
DynamicWebResource and adding your http header in this method work?

By the way, which portlet container are you working with?




Rob Sonke wrote:
> 
> Hi,
> 
> We're using wicket for our portlets now for almost 3/4 year and it's 
> great. We're following/try to help with the full implementation of jsr 
> 286 in wicket too (Thijs and me, see other threads). But I'm having a 
> problem now with offering files through a portlet. There are actually 
> two options, use the resource phase of jsr286 or use a separate download 
> servlet. First option rocks, second option not (if option 1 won't work, 
> I'll have to deal with it but I prefer not).
> 
> So I'm trying to serve a file through the portlet based on a wicket 
> link. A normal link would end up in a actionResponse which will not 
> allow you to touch the resourcestream (returning null as the portlet 
> specs describe). An ajax link (which uses the resource phase) will end 
> up with a lot of binary code in the ajax xml output which will, of 
> course, not work.
> 
> I tried also adding a DynamicWebResource to a wicket ResourceLink, which 
> works actually pretty good except that he's not communicating the 
> filename to the brower by setting a header. I tried adding a header to 
> the ResourceResponse but that one was not passed to the client too 
> (maybe I did that wrong).
> 
> Could anyone point me in the right direction or could tell me what I'm 
> doing wrong over here?
> 
> Regards,
> Rob
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Stream-download-files-through-portlet-tp19980617p19981070.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]



form components within an AccordionPanel

2008-10-14 Thread jchappelle

I am trying to render a form inside a Panel within an AccordionPanel. I have
even reduced it to trying to only render a TextArea inside a Panel within
it. However, when I click on the title of one of the items it expands with
nothing but white space within it.

The examples for the AccordionPanel only have a Label inside a Panel as the
content. Is this not possible? I even tried to use the
DojoAccordionContainer but it gave some weird error debug messages that
splattered all over my webpage(I'm not even sure how that happened unless it
found a FeedbackPanel or something). 

I'm starting to lose faith in many of these wicket-stuff projects. PLEASE
HELP!

Thanks,

Josh
-- 
View this message in context: 
http://www.nabble.com/form-components-within-an-AccordionPanel-tp19980730p19980730.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: list of possible message resource keys?

2008-10-14 Thread dukehoops

Is it whatever AbstractValidator.resourceKey() returns?



dukehoops wrote:
> 
> Is there a list of all possible message bundle resource keys that wicket
> 1.3.4 recognizes? 
> 
> I thought it's: name of class implementing IValidator sans trailing
> "Validator" but then there are "Required" and "LengthValidator" keys so I
> guess not...
> 
> 
> 
> thanks!
> -nikita
> 


-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/list-of-possible-message-resource-keys--tp19980430p19980686.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]



Stream/download files through portlet

2008-10-14 Thread Rob Sonke

Hi,

We're using wicket for our portlets now for almost 3/4 year and it's 
great. We're following/try to help with the full implementation of jsr 
286 in wicket too (Thijs and me, see other threads). But I'm having a 
problem now with offering files through a portlet. There are actually 
two options, use the resource phase of jsr286 or use a separate download 
servlet. First option rocks, second option not (if option 1 won't work, 
I'll have to deal with it but I prefer not).


So I'm trying to serve a file through the portlet based on a wicket 
link. A normal link would end up in a actionResponse which will not 
allow you to touch the resourcestream (returning null as the portlet 
specs describe). An ajax link (which uses the resource phase) will end 
up with a lot of binary code in the ajax xml output which will, of 
course, not work.


I tried also adding a DynamicWebResource to a wicket ResourceLink, which 
works actually pretty good except that he's not communicating the 
filename to the brower by setting a header. I tried adding a header to 
the ResourceResponse but that one was not passed to the client too 
(maybe I did that wrong).


Could anyone point me in the right direction or could tell me what I'm 
doing wrong over here?


Regards,
Rob

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



list of possible message resource keys?

2008-10-14 Thread dukehoops

Is there a list of all possible message bundle resource keys that wicket
1.3.4 recognizes? 

I thought it's: name of class implementing IValidator sans trailing
"Validator" but then there are "Required" and "LengthValidator" keys so I
guess not...

thanks!
-nikita

-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/list-of-possible-message-resource-keys--tp19980430p19980430.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: Trouble printing image

2008-10-14 Thread Serkan Camurcuoglu

while serving the image resource, setting the Content-Disposition http header
to

inline; filename=x.png

might help, but this is just a guess..





Dane Laverty wrote:
> 
> I'm adding an image to my page with the following code. It works
> correctly, and the image displays fine. However, we are getting reports
> from some IE users that the image will not print. It prints fine for
> most IE users, but there are a handful who can't get it to print. 
> 
>  
> 
> While I don't know the reason, I did notice that when you right-click
> the image and "Save As...", it doesn't have a name. In IE, the Save As
> dialog calls it "untitled.bmp" (in spite of it being a png) and in
> Firefox it's "print.png". Perhaps this is the source of the issue? If
> so, how do you give an image a name when you're adding it as a Resource?
> 
>  
> 
> (For anyone who's interested in looking, you can find the offending
> image at http://foodhandler.org. Log in with username/password
> "guest/guest". Then click the "Print Your Card" button on the navigation
> bar. When you print the page, the only two images that should print are
> the "Thawte 100% Secure" image at the top of the page and the card image
> in the center of the page - the rest are turned off in a print
> stylesheet.)
> 
>  
> 
> PrintPage.java:
> 
>  
> 
> public class PrintPage extends NavigationTemplate
> 
> {
> 
>   public PrintPage()
> 
>   {
> 
> Resource cardImage = getBothCardImageResource();
> 
> add(new NonCachingImage("bothCardImage", cardImage));   
> 
> 
> 
>   }
> 
>  
> 
>   public Resource getBothCardImageResource()
> 
> {
> 
> final BufferedDynamicImageResource resource = new
> BufferedDynamicImageResource();
> 
> BufferedImage image;
> 
> 
> 
> try {
> 
> image = ImageIO.read(((WebApplication)
> Application.get()).getServletContext().getResourceAsStream("/path/to/MyI
> mage.png"));
> 
>   
> 
> Graphics graphics = image.getGraphics();
> 
> ... Do some stuff with the graphics ...
> 
> }
> 
> 
> 
> resource.setImage(image);
> 
> return resource;  
> 
> }
> 
> }
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Trouble-printing-image-tp19980180p19980423.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: Trouble printing image

2008-10-14 Thread James Carman
Try the FileImageResource class mentioned here (by me :):

http://www.nabble.com/Mount-files-outside-container-td19232069.html


On Tue, Oct 14, 2008 at 3:09 PM, Dane Laverty <[EMAIL PROTECTED]> wrote:
> I'm adding an image to my page with the following code. It works
> correctly, and the image displays fine. However, we are getting reports
> from some IE users that the image will not print. It prints fine for
> most IE users, but there are a handful who can't get it to print.
>
>
>
> While I don't know the reason, I did notice that when you right-click
> the image and "Save As...", it doesn't have a name. In IE, the Save As
> dialog calls it "untitled.bmp" (in spite of it being a png) and in
> Firefox it's "print.png". Perhaps this is the source of the issue? If
> so, how do you give an image a name when you're adding it as a Resource?
>
>
>
> (For anyone who's interested in looking, you can find the offending
> image at http://foodhandler.org. Log in with username/password
> "guest/guest". Then click the "Print Your Card" button on the navigation
> bar. When you print the page, the only two images that should print are
> the "Thawte 100% Secure" image at the top of the page and the card image
> in the center of the page - the rest are turned off in a print
> stylesheet.)
>
>
>
> PrintPage.java:
>
>
>
> public class PrintPage extends NavigationTemplate
>
> {
>
>  public PrintPage()
>
>  {
>
>Resource cardImage = getBothCardImageResource();
>
>add(new NonCachingImage("bothCardImage", cardImage));
>
>
>
>  }
>
>
>
>  public Resource getBothCardImageResource()
>
>{
>
>final BufferedDynamicImageResource resource = new
> BufferedDynamicImageResource();
>
>BufferedImage image;
>
>
>
>try {
>
>image = ImageIO.read(((WebApplication)
> Application.get()).getServletContext().getResourceAsStream("/path/to/MyI
> mage.png"));
>
>
>
>Graphics graphics = image.getGraphics();
>
>... Do some stuff with the graphics ...
>
>}
>
>
>
>resource.setImage(image);
>
>return resource;
>
>}
>
> }
>
>

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



Re: errors on the WicketStuff Dojo split container example

2008-10-14 Thread jchappelle

Did someone solve this? I am having the same issue. 

Thanks,

Josh

Fernando Wermus-2 wrote:
> 
> I have the same problem. Did you solve by yourself?
> 
> This is my code an debugging,
> 
> DEBUG: widget ID collision on ID: resumenPartido111
> DEBUG: widget ID collision on ID: detallePartido112
> 
> 
> 
> 
>   
> [accordion]
>   
> 
> 
> 
> public class SolapaPartidos extends Panel {
> 
> private static final long serialVersionUID = 5452141466481309848L;
> 
> public SolapaPartidos(String id) {
> super(id);
> RepeatingView repeating=new RepeatingView("repeating");
> add(repeating);
> 
> WebMarkupContainer item = new WebMarkupContainer(
> repeating.newChildId());
> repeating.add(item);
>  item.add(new Accordion("accordion"));
> }
> }
> 
> 
> 
> 
> 
> [resumenPartido]
> 
> 
> [detallePartido]
> 
> 
> 
> 
> 
> public class Accordion extends Panel {
> private static final long serialVersionUID = -3342221765791589494L;
> 
> public Accordion(String id, InscripcionPartido inscripcion) {
> super(id);
> DojoAccordionContainer container = new
> DojoAccordionContainer("partido");
> 
> container.setHeight("200px");
> container.add(new DojoSimpleContainer("resumenPartido", "Resumen
> del
> partido"));
> container.add(new DojoSimpleContainer("detallePartido", "Detalle
> del
> partido"));
> add(container);
> }
> }
> 
> 
> 
> On Wed, Jan 30, 2008 at 1:43 PM, Wicketter <[EMAIL PROTECTED]>
> wrote:
> 
>>
>> There are errors on this page which displays split container example.
>> Also
>> copying the source code, doesn't do the same thing as example running on
>> the
>> site.
>>
>> Here are the errors displayed:
>>
>> DEBUG: widget ID collision on ID: tab11
>> DEBUG: widget ID collision on ID: tab22
>> DEBUG: widget ID collision on ID: tab33
>> clear | close
>> Wicket Ajax Debug Window (drag me here)
>> WICKET AJAX DEBUG
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
>> locate widget implementation for "panel" in "wicket.widget" registered to
>> namespace "wicket". Developers must specify correct namespaces for all
>> non-Dojo widgets -- will be removed in version: 0.5
>> DEBUG: dojo.widget.Parse: error:Error: Could not locate widget
>> implementation for "panel" in "wicket.widget" registered to namespace
>> "wicket"
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
>> locate widget implementation for "panel" in "wicket.widget" registered to
>> namespace "wicket". Developers must specify correct namespaces for all
>> non-Dojo widgets -- will be removed in version: 0.5
>> DEBUG: dojo.widget.Parse: error:Error: Could not locate widget
>> implementation for "panel" in "wicket.widget" registered to namespace
>> "wicket"
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
>> locate widget implementation for "child" in "wicket.widget" registered to
>> namespace "wicket". Developers must specify correct namespaces for all
>> non-Dojo widgets -- will be removed in version: 0.5
>> DEBUG: dojo.widget.Parse: error:Error: Could not locate widget
>> implementation for "child" in "wicket.widget" registered to namespace
>> "wicket"
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
>> locate widget implementation for "extend" in "wicket.widget" registered
>> to
>> namespace "wicket". Developers must specify correct namespaces for all
>> non-Dojo widgets -- will be removed in version: 0.5
>> DEBUG: dojo.widget.Parse: error:Error: Could not locate widget
>> implementation for "extend" in "wicket.widget" registered to namespace
>> "wicket"
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
>> locate widget implementation for "simpledropdowndatepicker" in "
>> dojo.widget"
>> registered to namespace "dojo". Developers must specify correct
>> namespaces
>> for all non-Dojo widgets -- will be removed in version: 0.5
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
>> locate widget implementation for "panel" in "wicket.widget" registered to
>> namespace "wicket". Developers must specify correct namespaces for all
>> non-Dojo widgets -- will be removed in version: 0.5
>> DEBUG: dojo.widget.Parse: error:Error: Could not locate widget
>> implementation for "panel" in "wicket.widget" registered to namespace
>> "wicket"
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
>> locate widget implementation for "panel" in "wicket.widget" registered to
>> namespace "wicket". Developers must specify correct namespaces for all
>> non-Dojo widgets -- will be removed in version: 0.5
>> DEBUG: dojo.widget.Parse: error:Error: Could not locate widget
>> implementation for "panel" in "wicket.widget" registered to namespace
>> "wicket"
>> DEBUG: DEPRECATED: dojo.widget.Manager.getImpleme

Trouble printing image

2008-10-14 Thread Dane Laverty
I'm adding an image to my page with the following code. It works
correctly, and the image displays fine. However, we are getting reports
from some IE users that the image will not print. It prints fine for
most IE users, but there are a handful who can't get it to print. 

 

While I don't know the reason, I did notice that when you right-click
the image and "Save As...", it doesn't have a name. In IE, the Save As
dialog calls it "untitled.bmp" (in spite of it being a png) and in
Firefox it's "print.png". Perhaps this is the source of the issue? If
so, how do you give an image a name when you're adding it as a Resource?

 

(For anyone who's interested in looking, you can find the offending
image at http://foodhandler.org. Log in with username/password
"guest/guest". Then click the "Print Your Card" button on the navigation
bar. When you print the page, the only two images that should print are
the "Thawte 100% Secure" image at the top of the page and the card image
in the center of the page - the rest are turned off in a print
stylesheet.)

 

PrintPage.java:

 

public class PrintPage extends NavigationTemplate

{

  public PrintPage()

  {

Resource cardImage = getBothCardImageResource();

add(new NonCachingImage("bothCardImage", cardImage));   



  }

 

  public Resource getBothCardImageResource()

{

final BufferedDynamicImageResource resource = new
BufferedDynamicImageResource();

BufferedImage image;



try {

image = ImageIO.read(((WebApplication)
Application.get()).getServletContext().getResourceAsStream("/path/to/MyI
mage.png"));

  

Graphics graphics = image.getGraphics();

... Do some stuff with the graphics ...

}



resource.setImage(image);

return resource;  

}

}



Re: Easiest way to add column totals to a table?

2008-10-14 Thread James Carman
Sorry, I mean addBottomToolbar()

On Tue, Oct 14, 2008 at 1:25 PM, James Carman
<[EMAIL PROTECTED]> wrote:
> Have you tried creating a "toolbar"?  You could call
> setBottomToolbar() on your DataTable.
>
> On Tue, Oct 14, 2008 at 1:21 PM, steve222 <[EMAIL PROTECTED]> wrote:
>>
>> Maybe I did not phrase my original the question well enough to get an answer.
>>
>> I have a simple DataTable containing - let call it sales records.  So, some
>> columns have numbers (eg, sales prices, sales commission, etc).  At the
>> bottom of the table, I need a row showing the of sales prices for all items
>> in the table.
>>
>> I've done something like this in my Panel (this code has been chopped about,
>> so may not be correct - but you get the idea):
>>
>> public class SalesPanel extends PanelBase {
>>
>>private double totalSales = 0.0d;
>>private Label totalSalesLabel = new Label("totalSalesLabel", "");
>>private WebMarkupContainer listContainer = new
>> WebMarkupContainer("listContainer");
>>
>>public SalesPanel (String id) {
>>super(id);
>>
>>listContainer.add(new DataView("sales", dataProvider) {
>>
>> int i = 0;
>>
>> protected void populateItem(final Item item) {
>>
>>SalesItem salesitem = (SalesItem) 
>> item.getModelObject();
>>
>>item.add(new Label("salesref", 
>> String.valueOf(salesitem
>> .getRef(;
>>
>>// add all the other columns here...
>>
>>// increment the total
>>totalSales += salesitem .getSalesPrice();
>>totalSalesLabel.setModel(new Model(totalSales));
>>
>>i++;
>>// if we are on the last row, reset the total to
>> zero so
>>// total does not keep growing when panel is
>> redisplayed
>>// it's on a cached tab
>>if(i == dataProvider.size()){
>>  i = 0;
>>  totalSales = 0;
>>}
>> }
>>});
>>
>>addLabels();
>>add(listContainer);
>>  }
>> }
>>
>>
>> But maybe there is a better way.
>>
>> And maybe a way to do this in an AjaxFallbackDefaultDataTable?
>>
>> Steve
>>
>>
>>
>>
>>
>> steve222 wrote:
>>>
>>> What is the easiest way to get the final row in a table to show the column
>>> totals for numeric values?  No need for paging or sorting - just a simple
>>> table with column totals in the final row.
>>>
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/Easiest-way-to-add-column-totals-to-a-table--tp19927092p19978198.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: Easiest way to add column totals to a table?

2008-10-14 Thread James Carman
Have you tried creating a "toolbar"?  You could call
setBottomToolbar() on your DataTable.

On Tue, Oct 14, 2008 at 1:21 PM, steve222 <[EMAIL PROTECTED]> wrote:
>
> Maybe I did not phrase my original the question well enough to get an answer.
>
> I have a simple DataTable containing - let call it sales records.  So, some
> columns have numbers (eg, sales prices, sales commission, etc).  At the
> bottom of the table, I need a row showing the of sales prices for all items
> in the table.
>
> I've done something like this in my Panel (this code has been chopped about,
> so may not be correct - but you get the idea):
>
> public class SalesPanel extends PanelBase {
>
>private double totalSales = 0.0d;
>private Label totalSalesLabel = new Label("totalSalesLabel", "");
>private WebMarkupContainer listContainer = new
> WebMarkupContainer("listContainer");
>
>public SalesPanel (String id) {
>super(id);
>
>listContainer.add(new DataView("sales", dataProvider) {
>
> int i = 0;
>
> protected void populateItem(final Item item) {
>
>SalesItem salesitem = (SalesItem) 
> item.getModelObject();
>
>item.add(new Label("salesref", String.valueOf(salesitem
> .getRef(;
>
>// add all the other columns here...
>
>// increment the total
>totalSales += salesitem .getSalesPrice();
>totalSalesLabel.setModel(new Model(totalSales));
>
>i++;
>// if we are on the last row, reset the total to
> zero so
>// total does not keep growing when panel is
> redisplayed
>// it's on a cached tab
>if(i == dataProvider.size()){
>  i = 0;
>  totalSales = 0;
>}
> }
>});
>
>addLabels();
>add(listContainer);
>  }
> }
>
>
> But maybe there is a better way.
>
> And maybe a way to do this in an AjaxFallbackDefaultDataTable?
>
> Steve
>
>
>
>
>
> steve222 wrote:
>>
>> What is the easiest way to get the final row in a table to show the column
>> totals for numeric values?  No need for paging or sorting - just a simple
>> table with column totals in the final row.
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Easiest-way-to-add-column-totals-to-a-table--tp19927092p19978198.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: Easiest way to add column totals to a table?

2008-10-14 Thread steve222

Maybe I did not phrase my original the question well enough to get an answer. 

I have a simple DataTable containing - let call it sales records.  So, some
columns have numbers (eg, sales prices, sales commission, etc).  At the
bottom of the table, I need a row showing the of sales prices for all items
in the table.

I've done something like this in my Panel (this code has been chopped about,
so may not be correct - but you get the idea): 

public class SalesPanel extends PanelBase {

private double totalSales = 0.0d;
private Label totalSalesLabel = new Label("totalSalesLabel", "");
private WebMarkupContainer listContainer = new
WebMarkupContainer("listContainer");

public SalesPanel (String id) {
super(id);

listContainer.add(new DataView("sales", dataProvider) {

 int i = 0;

 protected void populateItem(final Item item) {

SalesItem salesitem = (SalesItem) item.getModelObject();

item.add(new Label("salesref", String.valueOf(salesitem
.getRef(;

// add all the other columns here...

// increment the total
totalSales += salesitem .getSalesPrice();
totalSalesLabel.setModel(new Model(totalSales)); 
  
i++; 
// if we are on the last row, reset the total to
zero so 
// total does not keep growing when panel is
redisplayed 
// it's on a cached tab
if(i == dataProvider.size()){ 
  i = 0;
  totalSales = 0;   
}
 }
});

addLabels();
add(listContainer);
  }
}


But maybe there is a better way.  

And maybe a way to do this in an AjaxFallbackDefaultDataTable? 

Steve





steve222 wrote:
> 
> What is the easiest way to get the final row in a table to show the column
> totals for numeric values?  No need for paging or sorting - just a simple
> table with column totals in the final row.  
> 

-- 
View this message in context: 
http://www.nabble.com/Easiest-way-to-add-column-totals-to-a-table--tp19927092p19978198.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]



WebPage constructor

2008-10-14 Thread jensiator

Hi
I have a page that extends webpage, when I hit the browsers refresh button
the constuctor wont run. It only runs when I press the PageLink that point
to it. The constructor has a UUID as input parameter ( MyWebPage(UUID id) ).
Is it suppossed to be like that (working with onrender instead at a
refresh). I've been searching the web for something about what to expect of
the constuctor invokation but I cant find anything about it.  Please point
me to an basic article about it if there is on. 
Jens
-- 
View this message in context: 
http://www.nabble.com/WebPage-constructor-tp19977659p19977659.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: Wicket Security - best practices?

2008-10-14 Thread Les Hazlewood
Question -

I came across the terms Swarm and Wasp a while ago, but didn't see
them mentioned in Wicket In Action in the Security chapter.  I've been
using the book as sort of my starting point for writing JSecurity's
integration.  Are these other things no longer used?

I mentioned in my previous email the interfaces I'm implementing.
Should I be looking at other things as well?

Thanks,

Les

On Tue, Oct 14, 2008 at 11:35 AM, James Carman
<[EMAIL PROTECTED]> wrote:
> It probably shouldn't remain in an apache package, since it's not
> officially an apache project.
>
> On Tue, Oct 14, 2008 at 11:29 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> i dont think any of us have time and energy to take on another core module
>> that we would have to keep in sync with jsecurity.
>>
>> i suggest putting it in wicketstuff first and letting it mature there for a
>> while. we can always reevaluate later.
>>
>> -igor
>>
>> On Tue, Oct 14, 2008 at 7:44 AM, Maarten Bosteels
>> <[EMAIL PROTECTED]>wrote:
>>
>>> Hello Les,
>>>
>>> Great news !
>>> No idea where these files should go.
>>>
>>> I guess wicket-core shouldn't depend on jsecurity and vice versa, right ?
>>> So maybe you could add it to wicket-stuff ?
>>> That's also where the Wicket-Acegi examples are located AFAIK.
>>>
>>> But I have the feeling that the quality and level of maintenance varies
>>> greatly between wicket-stuff projects.
>>>
>>> What do the wicket core devs think ?
>>>
>>> In the meantime it would be super if you could send the files directly to
>>> [EMAIL PROTECTED]
>>>
>>> Thanks,
>>> Maarten
>>>
>>> On Tue, Oct 14, 2008 at 3:01 AM, Les Hazlewood <[EMAIL PROTECTED]
>>> >wrote:
>>>
>>> > Hi Maarten,
>>> >
>>> > So far things are going great - it took almost no time at all to
>>> > integrate the two projects, which I consider a reflection of the good
>>> > design of both architectures ;)
>>> >
>>> > I have a few classes created that basically recreates the SignIn*
>>> > classes in chapter 11 of Wicket In Action to show how to login/logout
>>> > and show/hide links based on a users login state using the JSecurity
>>> > API.  I've already licensed them to the ASF and can put them wherever
>>> > you like.  They're currently in the org.apache.wicket.jsecurity
>>> > namespace, but only as a place holder.  How would you like to receive
>>> > these files?
>>> >
>>> > I'm in the process of finishing the authorization support - JSecurity
>>> > specific implementations of IAuthorizationStrategy
>>> > IUnauthorizedComponentInstantiationListener.  They're pretty slick -
>>> > they look for JSecurity's existing annotations in classes
>>> > (@RequiresAuthentication, @RequiresUser, @RequiresGuest,
>>> > @RequiresRoles, @RequiresPermissions) and allow creation or access
>>> > accordingly.  Pretty nice :)
>>> >
>>> > The one final thing to do is to investigate whether or not I'll need
>>> > to create an ISessionStore implementation to access the JSecurity
>>> > Session API directly.  This allows clustered/distributed-cached
>>> > sessions, single sign on, and heterogeneous client session access.
>>> > That won't take too long, I just have to see what it entails.
>>> >
>>> > Let me know how you'd like to receive the files, and I'll send
>>> > them/place them where you want.  In the meantime, I'm going to finish
>>> > up the Authorization and Session support
>>> >
>>> > Cheers,
>>> >
>>> > Les
>>> >
>>> > On Mon, Oct 13, 2008 at 4:10 PM, Maarten Bosteels
>>> > <[EMAIL PROTECTED]> wrote:
>>> > > Hello Les,
>>> > >
>>> > > On Thu, Sep 25, 2008 at 5:11 PM, Les Hazlewood <[EMAIL PROTECTED]
>>> > >wrote:
>>> > >
>>> > >> Haha, funny you should ask this - I'm doing it now ;)
>>> > >
>>> > >
>>> > > Well, it wasn't pure coincidence: I saw your name appearing on the
>>> wicket
>>> > > mailing-list a few weeks ago and I was kinda hoping for this answer ;-)
>>> > >
>>> > >
>>> > >
>>> > >>  I've recently started
>>> > >> using Wicket for my latest web application, and naturally I wanted to
>>> do
>>> > >> this.  I'll have to do a little write-up when I'm finished with it.
>>> > >
>>> > >
>>> > > Do you have any idea when we can see some of that stuff ?
>>> > >
>>> > >
>>> > >> Any questions that I could help with in particular in the meantime?
>>> > >
>>> > >
>>> > > Not yet, I haven't really looked into it yet.
>>> > >
>>> > > Thanks,
>>> > > Maarten
>>> > >
>>> > >
>>> > >
>>> > >>
>>> > >> Naturally, I would hope that JSecurity would be one of the core
>>> > supported
>>> > >> or
>>> > >> maybe even 'default' security mechansim for Wicket in the future, now
>>> > that
>>> > >> JSecurity is a part of the ASF.  I'll certainly help to that effort if
>>> > it
>>> > >> is
>>> > >> desired!
>>> > >>
>>> > >> Cheers,
>>> > >>
>>> > >> Les
>>> > >> (JSecurity founder)
>>> > >>
>>> > >> On Thu, Sep 25, 2008 at 11:05 AM, Maarten Bosteels
>>> > >> <[EMAIL PROTECTED]>wrote:
>>> > >>
>>> > >> > Hi,
>>> > >> >
>>> > >> > Anyone tried integrating Wicket with JSecurity ?
>>> > >> >
>

Re: How to change field values in a validator?

2008-10-14 Thread Timo Rantalaiho
On Tue, 14 Oct 2008, Matthias Keller wrote:
> Do you propose to use a custom PropertyModel for both with an overridden 
> setObject() method which accesses the RadioGroup and DropDownChoice? 
> Then I'd need a second reallySetObject() method which actually does the 
> setting as both setObject() would have that logic inside arghh...

No, I was thinking of just new IModel() { ...} and putting
whatever logic you need there. If you have the skeleton of 
the nearly-working code to show it would be easier to get to 
the details with that.

Anyway, Igor suggested FormComponentPanel (that I have no 
experience with) so that's probably a good idea.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



Re: A wicket gathering?

2008-10-14 Thread Timo Rantalaiho
On Tue, 14 Oct 2008, [EMAIL PROTECTED] wrote:
> Why not in Brazil? :-)

Now we're getting closer... If it's in Buenos Aires in
December I'll be there. Or can just get together to down a
couple of birras with the local Wicket community :) Rio is
still too far away though...


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



Re: A wicket gathering?

2008-10-14 Thread Johan Compagner
but thats a problem having a shiny laptop with raid 0
because the battery is empty before you know it

So your very slow and tiny laptop will be way better, so no excuses anymore!

On Tue, Oct 14, 2008 at 5:26 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote:

> i dont have a nice shiny laptop with raid 0 like you to take on a plane,
> afraid i will die of boredom.
>
> -igor
>
> On Tue, Oct 14, 2008 at 6:14 AM, Johan Compagner <[EMAIL PROTECTED]
> >wrote:
>
> > i think around San Francisco is the only option then because igor is
> afraid
> > to fly ;)
> >
> > For me: Amsterdam would be perfect :) But somewhere in germany is also no
> > problem.
> >
> > On Tue, Oct 14, 2008 at 7:57 AM, Nino Saturnino Martinez Vazquez Wael <
> > [EMAIL PROTECTED]> wrote:
> >
> > > Hi
> > >
> > > I've been pondering as usually. This time about a wicket gathering, and
> > it
> > > should be something where all could meetup, also from international
> > places.
> > > Ideally all comitters would show up. It should be something that were
> > held
> > > once a year and not in conjunction with something else as I think it
> > would
> > > disturb it. Im not sure where it should be held, we are scattered all
> > over
> > > the world?
> > >
> > >
> > >
> > > What do you guys feel about it?
> > >
> > >
> > > --
> > > -Wicket for love
> > >
> > > Nino Martinez Wael
> > > Java Specialist @ Jayway DK
> > > http://www.jayway.dk
> > > +45 2936 7684
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>


Re: A wicket gathering?

2008-10-14 Thread Craig Tataryn
Hey guys/gals.  I'll be in SF the week of the 20th this month.  Let me  
know if that works!


Craig.

On 14-Oct-08, at 10:26 AM, Igor Vaynberg wrote:

i dont have a nice shiny laptop with raid 0 like you to take on a  
plane,

afraid i will die of boredom.

-igor

On Tue, Oct 14, 2008 at 6:14 AM, Johan Compagner  
<[EMAIL PROTECTED]>wrote:


i think around San Francisco is the only option then because igor  
is afraid

to fly ;)

For me: Amsterdam would be perfect :) But somewhere in germany is  
also no

problem.

On Tue, Oct 14, 2008 at 7:57 AM, Nino Saturnino Martinez Vazquez  
Wael <

[EMAIL PROTECTED]> wrote:


Hi

I've been pondering as usually. This time about a wicket  
gathering, and

it

should be something where all could meetup, also from international

places.
Ideally all comitters would show up. It should be something that  
were

held

once a year and not in conjunction with something else as I think it

would
disturb it. Im not sure where it should be held, we are scattered  
all

over

the world?



What do you guys feel about it?


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684



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







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



Re: Wicket Security - best practices?

2008-10-14 Thread James Carman
It probably shouldn't remain in an apache package, since it's not
officially an apache project.

On Tue, Oct 14, 2008 at 11:29 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> i dont think any of us have time and energy to take on another core module
> that we would have to keep in sync with jsecurity.
>
> i suggest putting it in wicketstuff first and letting it mature there for a
> while. we can always reevaluate later.
>
> -igor
>
> On Tue, Oct 14, 2008 at 7:44 AM, Maarten Bosteels
> <[EMAIL PROTECTED]>wrote:
>
>> Hello Les,
>>
>> Great news !
>> No idea where these files should go.
>>
>> I guess wicket-core shouldn't depend on jsecurity and vice versa, right ?
>> So maybe you could add it to wicket-stuff ?
>> That's also where the Wicket-Acegi examples are located AFAIK.
>>
>> But I have the feeling that the quality and level of maintenance varies
>> greatly between wicket-stuff projects.
>>
>> What do the wicket core devs think ?
>>
>> In the meantime it would be super if you could send the files directly to
>> [EMAIL PROTECTED]
>>
>> Thanks,
>> Maarten
>>
>> On Tue, Oct 14, 2008 at 3:01 AM, Les Hazlewood <[EMAIL PROTECTED]
>> >wrote:
>>
>> > Hi Maarten,
>> >
>> > So far things are going great - it took almost no time at all to
>> > integrate the two projects, which I consider a reflection of the good
>> > design of both architectures ;)
>> >
>> > I have a few classes created that basically recreates the SignIn*
>> > classes in chapter 11 of Wicket In Action to show how to login/logout
>> > and show/hide links based on a users login state using the JSecurity
>> > API.  I've already licensed them to the ASF and can put them wherever
>> > you like.  They're currently in the org.apache.wicket.jsecurity
>> > namespace, but only as a place holder.  How would you like to receive
>> > these files?
>> >
>> > I'm in the process of finishing the authorization support - JSecurity
>> > specific implementations of IAuthorizationStrategy
>> > IUnauthorizedComponentInstantiationListener.  They're pretty slick -
>> > they look for JSecurity's existing annotations in classes
>> > (@RequiresAuthentication, @RequiresUser, @RequiresGuest,
>> > @RequiresRoles, @RequiresPermissions) and allow creation or access
>> > accordingly.  Pretty nice :)
>> >
>> > The one final thing to do is to investigate whether or not I'll need
>> > to create an ISessionStore implementation to access the JSecurity
>> > Session API directly.  This allows clustered/distributed-cached
>> > sessions, single sign on, and heterogeneous client session access.
>> > That won't take too long, I just have to see what it entails.
>> >
>> > Let me know how you'd like to receive the files, and I'll send
>> > them/place them where you want.  In the meantime, I'm going to finish
>> > up the Authorization and Session support
>> >
>> > Cheers,
>> >
>> > Les
>> >
>> > On Mon, Oct 13, 2008 at 4:10 PM, Maarten Bosteels
>> > <[EMAIL PROTECTED]> wrote:
>> > > Hello Les,
>> > >
>> > > On Thu, Sep 25, 2008 at 5:11 PM, Les Hazlewood <[EMAIL PROTECTED]
>> > >wrote:
>> > >
>> > >> Haha, funny you should ask this - I'm doing it now ;)
>> > >
>> > >
>> > > Well, it wasn't pure coincidence: I saw your name appearing on the
>> wicket
>> > > mailing-list a few weeks ago and I was kinda hoping for this answer ;-)
>> > >
>> > >
>> > >
>> > >>  I've recently started
>> > >> using Wicket for my latest web application, and naturally I wanted to
>> do
>> > >> this.  I'll have to do a little write-up when I'm finished with it.
>> > >
>> > >
>> > > Do you have any idea when we can see some of that stuff ?
>> > >
>> > >
>> > >> Any questions that I could help with in particular in the meantime?
>> > >
>> > >
>> > > Not yet, I haven't really looked into it yet.
>> > >
>> > > Thanks,
>> > > Maarten
>> > >
>> > >
>> > >
>> > >>
>> > >> Naturally, I would hope that JSecurity would be one of the core
>> > supported
>> > >> or
>> > >> maybe even 'default' security mechansim for Wicket in the future, now
>> > that
>> > >> JSecurity is a part of the ASF.  I'll certainly help to that effort if
>> > it
>> > >> is
>> > >> desired!
>> > >>
>> > >> Cheers,
>> > >>
>> > >> Les
>> > >> (JSecurity founder)
>> > >>
>> > >> On Thu, Sep 25, 2008 at 11:05 AM, Maarten Bosteels
>> > >> <[EMAIL PROTECTED]>wrote:
>> > >>
>> > >> > Hi,
>> > >> >
>> > >> > Anyone tried integrating Wicket with JSecurity ?
>> > >> >
>> > >> > http://www.jsecurity.org/
>> > >> >
>> > >> > Maarten
>> > >> >
>> > >> > On Thu, Sep 25, 2008 at 4:54 PM, James Carman
>> > >> > <[EMAIL PROTECTED]> wrote:
>> > >> > > You can bridge the gap between Spring Security's default URL-based
>> > >> > > model and the component-based model in Wicket.  That's what we do
>> > here
>> > >> > > at work.  If you want an example, let me know.  I've got one out
>> > there
>> > >> > > on my public example stuff somewhere.  You could try poking around
>> > in
>> > >> > > (I think it's there):
>> > >> > >
>> > >> > > http://svn.carmanconsulting.com/public/wi

Re: Wicket Security - best practices?

2008-10-14 Thread Igor Vaynberg
i dont think any of us have time and energy to take on another core module
that we would have to keep in sync with jsecurity.

i suggest putting it in wicketstuff first and letting it mature there for a
while. we can always reevaluate later.

-igor

On Tue, Oct 14, 2008 at 7:44 AM, Maarten Bosteels
<[EMAIL PROTECTED]>wrote:

> Hello Les,
>
> Great news !
> No idea where these files should go.
>
> I guess wicket-core shouldn't depend on jsecurity and vice versa, right ?
> So maybe you could add it to wicket-stuff ?
> That's also where the Wicket-Acegi examples are located AFAIK.
>
> But I have the feeling that the quality and level of maintenance varies
> greatly between wicket-stuff projects.
>
> What do the wicket core devs think ?
>
> In the meantime it would be super if you could send the files directly to
> [EMAIL PROTECTED]
>
> Thanks,
> Maarten
>
> On Tue, Oct 14, 2008 at 3:01 AM, Les Hazlewood <[EMAIL PROTECTED]
> >wrote:
>
> > Hi Maarten,
> >
> > So far things are going great - it took almost no time at all to
> > integrate the two projects, which I consider a reflection of the good
> > design of both architectures ;)
> >
> > I have a few classes created that basically recreates the SignIn*
> > classes in chapter 11 of Wicket In Action to show how to login/logout
> > and show/hide links based on a users login state using the JSecurity
> > API.  I've already licensed them to the ASF and can put them wherever
> > you like.  They're currently in the org.apache.wicket.jsecurity
> > namespace, but only as a place holder.  How would you like to receive
> > these files?
> >
> > I'm in the process of finishing the authorization support - JSecurity
> > specific implementations of IAuthorizationStrategy
> > IUnauthorizedComponentInstantiationListener.  They're pretty slick -
> > they look for JSecurity's existing annotations in classes
> > (@RequiresAuthentication, @RequiresUser, @RequiresGuest,
> > @RequiresRoles, @RequiresPermissions) and allow creation or access
> > accordingly.  Pretty nice :)
> >
> > The one final thing to do is to investigate whether or not I'll need
> > to create an ISessionStore implementation to access the JSecurity
> > Session API directly.  This allows clustered/distributed-cached
> > sessions, single sign on, and heterogeneous client session access.
> > That won't take too long, I just have to see what it entails.
> >
> > Let me know how you'd like to receive the files, and I'll send
> > them/place them where you want.  In the meantime, I'm going to finish
> > up the Authorization and Session support
> >
> > Cheers,
> >
> > Les
> >
> > On Mon, Oct 13, 2008 at 4:10 PM, Maarten Bosteels
> > <[EMAIL PROTECTED]> wrote:
> > > Hello Les,
> > >
> > > On Thu, Sep 25, 2008 at 5:11 PM, Les Hazlewood <[EMAIL PROTECTED]
> > >wrote:
> > >
> > >> Haha, funny you should ask this - I'm doing it now ;)
> > >
> > >
> > > Well, it wasn't pure coincidence: I saw your name appearing on the
> wicket
> > > mailing-list a few weeks ago and I was kinda hoping for this answer ;-)
> > >
> > >
> > >
> > >>  I've recently started
> > >> using Wicket for my latest web application, and naturally I wanted to
> do
> > >> this.  I'll have to do a little write-up when I'm finished with it.
> > >
> > >
> > > Do you have any idea when we can see some of that stuff ?
> > >
> > >
> > >> Any questions that I could help with in particular in the meantime?
> > >
> > >
> > > Not yet, I haven't really looked into it yet.
> > >
> > > Thanks,
> > > Maarten
> > >
> > >
> > >
> > >>
> > >> Naturally, I would hope that JSecurity would be one of the core
> > supported
> > >> or
> > >> maybe even 'default' security mechansim for Wicket in the future, now
> > that
> > >> JSecurity is a part of the ASF.  I'll certainly help to that effort if
> > it
> > >> is
> > >> desired!
> > >>
> > >> Cheers,
> > >>
> > >> Les
> > >> (JSecurity founder)
> > >>
> > >> On Thu, Sep 25, 2008 at 11:05 AM, Maarten Bosteels
> > >> <[EMAIL PROTECTED]>wrote:
> > >>
> > >> > Hi,
> > >> >
> > >> > Anyone tried integrating Wicket with JSecurity ?
> > >> >
> > >> > http://www.jsecurity.org/
> > >> >
> > >> > Maarten
> > >> >
> > >> > On Thu, Sep 25, 2008 at 4:54 PM, James Carman
> > >> > <[EMAIL PROTECTED]> wrote:
> > >> > > You can bridge the gap between Spring Security's default URL-based
> > >> > > model and the component-based model in Wicket.  That's what we do
> > here
> > >> > > at work.  If you want an example, let me know.  I've got one out
> > there
> > >> > > on my public example stuff somewhere.  You could try poking around
> > in
> > >> > > (I think it's there):
> > >> > >
> > >> > > http://svn.carmanconsulting.com/public/wicket-advanced/trunk
> > >> > >
> > >> > >
> > >> > > On Thu, Sep 25, 2008 at 10:51 AM, Claus Myglegaard Vagner
> > >> > > <[EMAIL PROTECTED]> wrote:
> > >> > >> Hi,
> > >> > >>
> > >> > >> I'm about to start a new project using Wicket and is currently
> > >> examining
> > >> > >> which security framework to apply for. I'm

Re: How to change field values in a validator?

2008-10-14 Thread Igor Vaynberg
wrap this in a formcomponentpanel, that way in convertinput() of the panel
you have all child component's inputs available also via
getconvertedinput().

anothing option, if you are using 1.4 is to wrap this in a panel or a
fragment and use IFormModelListener to push whatever value you want into the
model.

-igor

On Mon, Oct 13, 2008 at 6:43 AM, Matthias Keller
<[EMAIL PROTECTED]>wrote:

> Hi
>
> I've got a custom validator here which needs to dynamically change some
> other input field's value to a new value.
> Here's the scenario with two radios and a pulldown:
> ( ) I don't need anything
> ( ) I need: [ pulldown with options ]
>
> Now if "I need" is selected, everything works as expected, the pulldown
> value gets stored to the model.
> Now if 'I dont need anything' is selected, another value for the pulldown
> needs to be stored in the model. Let's say a marker entry like 'nothing'. I
> can't have 'nothing' directly in the pulldown as it would make no sense (and
> the customer explicitly doesn't want that). So in the validator I need to
> check the status of the radios and if the first option is selected, set the
> pulldown model's value to my custom value, ignoring any possible input
> value.
>
> I tried it with .setModelObject() and .setConvertedInput() but it appears
> that the input fields are initialized again later from the parameters,
> overriding my value...
>
> Is there anything I can do?
>
> Thanks
>
> Matt
>
> --
> [EMAIL PROTECTED]  +41 44 268 83 98
> Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
> http://www.ergon.ch
> __
> e r g o nsmart people - smart software
>
>
>


Re: A wicket gathering?

2008-10-14 Thread Igor Vaynberg
i dont have a nice shiny laptop with raid 0 like you to take on a plane,
afraid i will die of boredom.

-igor

On Tue, Oct 14, 2008 at 6:14 AM, Johan Compagner <[EMAIL PROTECTED]>wrote:

> i think around San Francisco is the only option then because igor is afraid
> to fly ;)
>
> For me: Amsterdam would be perfect :) But somewhere in germany is also no
> problem.
>
> On Tue, Oct 14, 2008 at 7:57 AM, Nino Saturnino Martinez Vazquez Wael <
> [EMAIL PROTECTED]> wrote:
>
> > Hi
> >
> > I've been pondering as usually. This time about a wicket gathering, and
> it
> > should be something where all could meetup, also from international
> places.
> > Ideally all comitters would show up. It should be something that were
> held
> > once a year and not in conjunction with something else as I think it
> would
> > disturb it. Im not sure where it should be held, we are scattered all
> over
> > the world?
> >
> >
> >
> > What do you guys feel about it?
> >
> >
> > --
> > -Wicket for love
> >
> > Nino Martinez Wael
> > Java Specialist @ Jayway DK
> > http://www.jayway.dk
> > +45 2936 7684
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Links with CGI parameters?

2008-10-14 Thread Seven Corners

OK, just to remind you, the problem here is making a LinkTree work within a
frameset, where the links may have CGI parameters.  

Having tried Randy's suggestion, which I think brings me most of the way, I
get a runtime exception, so there's still a little bit to hammer out.  I'm
wondering if the problem is that my page isn't in the PageMap, and if I have
to add it, and if I have to instantiate the page using reflection to add it
to the PageMap.

Here's the exception:

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = nodeComponent, page = , path =
nodeComponent.FrameLabelIconPanel]]
 at org.apache.wicket.Component.getPage(Component.java:1706)
 at org.apache.wicket.Component.urlFor(Component.java:3211)
 ...
 
This occurs in the course of my addComponents() call:

public class FrameLabelIconPanel extends Panel 
{
private static final long serialVersionUID = 1L;

public FrameLabelIconPanel( String id, IModel model, FrameLinkTree tree,
final HorizontalFrameset responsePage )
{
super(id, model);
addComponents(model, tree, responsePage );  
}

/*
 * This fires for the icon
 */
protected void addComponents(IModel model, FrameLinkTree tree)
{
add(newImageComponent("icon", tree, model));
add(newContentComponent("content", tree, model));
}

/*
 * Here's the meat of the problem
 */
protected void addComponents( final IModel model, final FrameLinkTree 
tree,
final HorizontalFrameset responsePage )
{
BaseTree.ILinkCallback callback = new BaseTree.ILinkCallback()
{
private static final long serialVersionUID = 1L;

public void onClick(AjaxRequestTarget target)
{
onNodeLinkClicked(model.getObject(), tree, target);
}
};

MarkupContainer iconContainer = tree.newLink("iconLink", callback);
iconContainer.add(newImageComponent("icon", tree, model));
add( iconContainer );

SystemTreeNodeBean innerModel = ( SystemTreeNodeBean )( (
DefaultMutableTreeNode )model.getObject() ).getUserObject();
SystemTreeNodeBean.SystemNodeType nodeType = 
innerModel.getNodeType();
Class pageClass = 
getPageClass( nodeType
);

MarkupContainer link = null;
PageParameters params = null;
if ( innerModel.hasServiceId() )
{
params = new PageParameters();
params.put( "serviceid", innerModel.getServiceId() );

//> Here's where we crash
String strTargetURL = RequestUtils.toAbsolutePath( urlFor(
pageClass, params ).toString() );
link = tree.newLink( "contentLink", strTargetURL );
}
else
{
// No parameters, works fine
link = tree.newLink("contentLink", responsePage, pageClass );   

}

link.add(newContentComponent("content", tree, model));

add(link);
}

Trace into the Wicket source code and you crash here:

public abstract class Component implements IClusterable, IConverterLocator
{
...
public final  CharSequence urlFor(final Class 
pageClass,
final PageParameters parameters)
{
return getRequestCycle().urlFor(getPage().getPageMap(), 
pageClass,
parameters);
}
}   
 

Seven Corners wrote:
> 
> Well I was really grateful for that.  I've tried both alternatives and
> neither works but I think maybe I just have to fiddle with them a bit. 
> Just getting back to you before the end of the day.
> 
> Thanks for the response.
> 
> 
> 
> Randy Hammelman wrote:
>> 
>> This will probably work for you:
>> 
>> Isn't there a version of setResponsePage that takes a PageParameters
>> object?
>> 
>> setResponsePage(Page.class, pageParameters);
>> 
>> Otherwise, you can construct a url for a page with parameters using the
>> following code:
>> 
>> PageParameters params = new PageParameters();
>> params .put(PARAM_NAME, PARAM_VALUE);
>> String targetURL =
>> RequestUtils.toAbsolutePath(urlFor(YOUR_CLASS.class,params ).toString());
>> 
>> Use a link, such as ExternalLink, that takes a url.
>> 
>> 
>> Hope this helps.
>> 
>> 
>> On Fri, Oct 10, 2008 at 1:39 PM, Seven Corners <[EMAIL PROTECTED]>
>> wrote:
>> 
>>>
>>> I have figured out the considerable gyrations to subclass a LinkTree so
>>> its
>>> leaves contain links that will change the page in another frame within a
>>> frameset, and I'm doing this with regular Links (i.e., href and target
>>> attributes, and setting the response page and the frame target's page
>>> class
>>> from Link.onClick(), as Eelco does in his Frames example):
>>>
>>> public class FrameLin

Re: How to change field values in a validator?

2008-10-14 Thread Matthias Keller

Timo Rantalaiho wrote:

On Tue, 14 Oct 2008, Matthias Keller wrote:
  
What i'd need would be something that's called after all fields have 
converted but before they're stored anywhere... Which I don't think exists.



It does, "stored anywhere" means setObject(Object) on the
model of the FormComponent, and there you can do what you 
need.
  
The problem being, I need some logic, wether one or both of the fields 
in question changed and it needs to be independent of the order of these 
two fields being evaluated.
Do you propose to use a custom PropertyModel for both with an overridden 
setObject() method which accesses the RadioGroup and DropDownChoice? 
Then I'd need a second reallySetObject() method which actually does the 
setting as both setObject() would have that logic inside arghh...


Do you understand my problem? The Problem is, that there are two 
components of which the order in the HTML nor in the classes is NOT 
fixed and which might both change together or also just one. (wicket 
doesn't call setObject() when the selection didn't change)
Converters aren't really meant to be dependent from other fields as you 
never know if the other field even converted its value up to now - order 
matters and can ruin your day then


Nope. For validation of related fields you have IFormValidator,
but I repeat that using validators for this would be a 
kludge :
Kludge or not - it's also just NOT possible as the Form updates every 
component after the validation anyway so whatever I do in a validator 
will be overwritten anyway


Matt

--
[EMAIL PROTECTED]  +41 44 268 83 98
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
http://www.ergon.ch
__
e r g o nsmart people - smart software




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Wicket Security - best practices?

2008-10-14 Thread Maarten Bosteels
Hello Les,

Great news !
No idea where these files should go.

I guess wicket-core shouldn't depend on jsecurity and vice versa, right ?
So maybe you could add it to wicket-stuff ?
That's also where the Wicket-Acegi examples are located AFAIK.

But I have the feeling that the quality and level of maintenance varies
greatly between wicket-stuff projects.

What do the wicket core devs think ?

In the meantime it would be super if you could send the files directly to
[EMAIL PROTECTED]

Thanks,
Maarten

On Tue, Oct 14, 2008 at 3:01 AM, Les Hazlewood <[EMAIL PROTECTED]>wrote:

> Hi Maarten,
>
> So far things are going great - it took almost no time at all to
> integrate the two projects, which I consider a reflection of the good
> design of both architectures ;)
>
> I have a few classes created that basically recreates the SignIn*
> classes in chapter 11 of Wicket In Action to show how to login/logout
> and show/hide links based on a users login state using the JSecurity
> API.  I've already licensed them to the ASF and can put them wherever
> you like.  They're currently in the org.apache.wicket.jsecurity
> namespace, but only as a place holder.  How would you like to receive
> these files?
>
> I'm in the process of finishing the authorization support - JSecurity
> specific implementations of IAuthorizationStrategy
> IUnauthorizedComponentInstantiationListener.  They're pretty slick -
> they look for JSecurity's existing annotations in classes
> (@RequiresAuthentication, @RequiresUser, @RequiresGuest,
> @RequiresRoles, @RequiresPermissions) and allow creation or access
> accordingly.  Pretty nice :)
>
> The one final thing to do is to investigate whether or not I'll need
> to create an ISessionStore implementation to access the JSecurity
> Session API directly.  This allows clustered/distributed-cached
> sessions, single sign on, and heterogeneous client session access.
> That won't take too long, I just have to see what it entails.
>
> Let me know how you'd like to receive the files, and I'll send
> them/place them where you want.  In the meantime, I'm going to finish
> up the Authorization and Session support
>
> Cheers,
>
> Les
>
> On Mon, Oct 13, 2008 at 4:10 PM, Maarten Bosteels
> <[EMAIL PROTECTED]> wrote:
> > Hello Les,
> >
> > On Thu, Sep 25, 2008 at 5:11 PM, Les Hazlewood <[EMAIL PROTECTED]
> >wrote:
> >
> >> Haha, funny you should ask this - I'm doing it now ;)
> >
> >
> > Well, it wasn't pure coincidence: I saw your name appearing on the wicket
> > mailing-list a few weeks ago and I was kinda hoping for this answer ;-)
> >
> >
> >
> >>  I've recently started
> >> using Wicket for my latest web application, and naturally I wanted to do
> >> this.  I'll have to do a little write-up when I'm finished with it.
> >
> >
> > Do you have any idea when we can see some of that stuff ?
> >
> >
> >> Any questions that I could help with in particular in the meantime?
> >
> >
> > Not yet, I haven't really looked into it yet.
> >
> > Thanks,
> > Maarten
> >
> >
> >
> >>
> >> Naturally, I would hope that JSecurity would be one of the core
> supported
> >> or
> >> maybe even 'default' security mechansim for Wicket in the future, now
> that
> >> JSecurity is a part of the ASF.  I'll certainly help to that effort if
> it
> >> is
> >> desired!
> >>
> >> Cheers,
> >>
> >> Les
> >> (JSecurity founder)
> >>
> >> On Thu, Sep 25, 2008 at 11:05 AM, Maarten Bosteels
> >> <[EMAIL PROTECTED]>wrote:
> >>
> >> > Hi,
> >> >
> >> > Anyone tried integrating Wicket with JSecurity ?
> >> >
> >> > http://www.jsecurity.org/
> >> >
> >> > Maarten
> >> >
> >> > On Thu, Sep 25, 2008 at 4:54 PM, James Carman
> >> > <[EMAIL PROTECTED]> wrote:
> >> > > You can bridge the gap between Spring Security's default URL-based
> >> > > model and the component-based model in Wicket.  That's what we do
> here
> >> > > at work.  If you want an example, let me know.  I've got one out
> there
> >> > > on my public example stuff somewhere.  You could try poking around
> in
> >> > > (I think it's there):
> >> > >
> >> > > http://svn.carmanconsulting.com/public/wicket-advanced/trunk
> >> > >
> >> > >
> >> > > On Thu, Sep 25, 2008 at 10:51 AM, Claus Myglegaard Vagner
> >> > > <[EMAIL PROTECTED]> wrote:
> >> > >> Hi,
> >> > >>
> >> > >> I'm about to start a new project using Wicket and is currently
> >> examining
> >> > >> which security framework to apply for. I'm looking for best
> practices
> >> > >> implementing security to a Wicket application.
> >> > >>
> >> > >> Wicket has WASP which Swarm is an implementation of and then there
> is
> >> > >> wicket-auth-roles. Is wicket-auth-roles related to WASP in any way
> or
> >> is
> >> > >> it a completely different security platform for wicket?
> >> > >>
> >> > >> Which security framework will be the future for wicket?
> >> > >>
> >> > >> I am thinking on using Spring Security (prior Acegi) for securing
> the
> >> > >> service layer through aspects. Spring Security has build in
> >> > authentication
> >> > >>

Re: A wicket gathering?

2008-10-14 Thread Michael Sparer

i think i know what you're talking about ... not much talk then, ey? ;-)


Martin Funk-3 wrote:
> 
>>
>> the london guys are already crouching together at google regularly. i´d
>> love frankfurt :)
> 
> Yeah, I wouldn't mind that either :-)
> Though I think Wickets center of gravity on the continent is closer to
> Amsterdam.
> And I'm not sure if Frankfurts places to hold a conference at, are as nice
> as Amsterdams places.
> 
> mf
> 
>>
>>
>> --
>>
>> THOMAS DAILY GmbH
>> Adlerstraße 19
>> 79098 Freiburg
>> Deutschland
>> T  + 49 761 3 85 59 0
>> F  + 49 761 3 85 59 550
>> E  [EMAIL PROTECTED]
>> www.thomas-daily.de
>>
>> Geschäftsführer/Managing Directors:
>> Wendy Thomas, Susanne Larbig
>> Handelsregister Freiburg i.Br., HRB 3947
>>
>> Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
>> kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
>> morgens um 9:00 in Ihrer Mailbox.
>>
>> Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
>> 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach
>> 16:00
>> Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
>> lautet [EMAIL PROTECTED]
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/A-wicket-gathering--tp19967487p19974743.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: linking to a text ResourceReference

2008-10-14 Thread Maarten Bosteels
Hello Ryan,

Would you be so kind to add some more details about your OpenFlashChart
component  ?

* Could you post the html that goes with the OpenFlashChart component ?
* Could you also provide source code of the SWFObject that are you using ?
  Is it based on the http://issues.apache.org/jira/browse/WICKET-309 with
some modifications ?
* Is it using http://code.google.com/p/swfobject/ ?

Thanks in advance,
Maarten


On Thu, Oct 2, 2008 at 1:39 AM, Ryan McKinley <[EMAIL PROTECTED]> wrote:

> Thanks igor!
>
> another message of yours helped too:
>
> http://www.nabble.com/Generate-URL-for-a-Resource-depending-on-component-state-td18941798.html
>
> for the record, here is some code for the next guy searching the
> archives...
>
> public class OpenFlashChart extends Panel implements IResourceListener
> {
>  static final ResourceReference SWF = new ResourceReference(
> OpenFlashChart.class, "open-flash-chart.swf" );
>
>  final WebResource jsonResource;
>  final SWFObject swf;
>
>  public OpenFlashChart(String id, final int width, final int height)
>  {
>this( id, width+"", height+"" );
>  }
>
>  public OpenFlashChart(String id, final String width, final String height)
>  {
>super(id);
>
>final IResourceStream json = new AbstractStringResourceStream(
> "text/plain") {
>  @Override
>  public String getString() {
>return "YOUR STRING HERE...";
>  }
>};
>
>jsonResource = new WebResource() {
>  @Override
>  public IResourceStream getResourceStream() {
>return json;
>  }
>};
>jsonResource.setCacheable(false);
>
>String swfURL = RequestUtils.toAbsolutePath( urlFor( SWF ).toString() );
>swf = new SWFObject( "chart", swfURL, "500", "300" );
>add( swf );
>  }
>
>  @Override
>  protected void onBeforeRender() {
>CharSequence dataPath =
>  RequestCycle.get().urlFor(OpenFlashChart.this,
> IResourceListener.INTERFACE);
>
>String data = RequestUtils.toAbsolutePath( dataPath.toString() );
>
>swf.setFlashvar( "data-file", data );
>swf.setParam( "allowScriptAccess", "sameDomain" );
>
>super.onBeforeRender();
>  }
>
>  /**
>   * Actually handle the request
>   */
>  @Override
>  public void onResourceRequested() {
>jsonResource.onResourceRequested();
>   }
> }
>
>
> On Tue, Sep 30, 2008 at 10:39 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
> > call urlfor(resourcereference)
> >
> > -igor
> >
> > On Tue, Sep 30, 2008 at 6:08 PM, Ryan McKinley <[EMAIL PROTECTED]> wrote:
> >> Hello-
> >>
> >> I know I have seen an example of this somewhere, so i'm feeling kinda
> silly
> >> as I ask for help
> >>
> >> I am trying to integrate Open Flash Charts (OFC) with wicket.  You pass
> OFC
> >> a url containing json to draw a chart.  Something like:
> >>
> >>  
> >>  var so = new SWFObject("/open-flash-chart.swf", "chart", "500", "300",
> "9",
> >> "#FF");
> >>  so.addVariable("data-file", "${TODO -- need to have link to data}" );
> >>  so.addParam("allowScriptAccess", "sameDomain");
> >>  so.write("my_chart");
> >>  
> >>
> >> I know I can use a global mount point, but I'm looking to do something
> >> similar to how JFreeChart works
> >> http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html
> >>
> >> Where you have a Chart object in the Component scope and various actions
> can
> >> manipulate it.
> >>
> >> I can create a WebResource -- but how would I pass the URL to
> javascript?
> >>
> >> Any pointers would be great!
> >> thanks
> >> ryan
> >
> > -
> > 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: A wicket gathering?

2008-10-14 Thread Uwe Schäfer

Martin Funk schrieb:


the london guys are already crouching together at google regularly. i´d
love frankfurt :)



And I'm not sure if Frankfurts places to hold a conference at, are as nice
as Amsterdams places.


okok. amsterdam was really nice.

go amsterdam! ;)




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



Re: Re: Re: A wicket gathering?

2008-10-14 Thread James Carman
I don't know if it's too late, but perhaps you could set up a Wicket
BOF for ApacheCon US.

On Tue, Oct 14, 2008 at 10:19 AM,  <[EMAIL PROTECTED]> wrote:
> By the way, will there be a wicket gathering at ApacheCon US this year?
>
> Who's coming?
>
> On Oct 14, 2008 11:09am, [EMAIL PROTECTED] wrote:
>>
>> Why not in Brazil? :-)
>>
>> Then you all could enjoy summer here in Rio de Janeiro.
>>
>>
>>
>> On Oct 14, 2008 10:22am, Timo Rantalaiho [EMAIL PROTECTED]> wrote:
>> > On Tue, 14 Oct 2008, Johan Compagner wrote:
>> >
>> > > For me: Amsterdam would be perfect :) But somewhere in germany is
>
> also no
>>
>> >
>> > > problem.
>> >
>> >
>> >
>> > Then it could be a part of Apachecon EU in March
>> >
>> >
>> >
>> > http://eu.apachecon.com/c/aceu2009/
>> >
>> >
>> >
>> > PS The call for papers is open for ten more days
>> >
>> >
>> >
>> >
>> >
>> > -
>> >
>> > 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: Re: Re: A wicket gathering?

2008-10-14 Thread bruno . borges

By the way, will there be a wicket gathering at ApacheCon US this year?

Who's coming?

On Oct 14, 2008 11:09am, [EMAIL PROTECTED] wrote:

Why not in Brazil? :-)

Then you all could enjoy summer here in Rio de Janeiro.



On Oct 14, 2008 10:22am, Timo Rantalaiho [EMAIL PROTECTED]> wrote:
> On Tue, 14 Oct 2008, Johan Compagner wrote:
>
> > For me: Amsterdam would be perfect :) But somewhere in germany is  

also no

>
> > problem.
>
>
>
> Then it could be a part of Apachecon EU in March
>
>
>
> http://eu.apachecon.com/c/aceu2009/
>
>
>
> PS The call for papers is open for ten more days
>
>
>
>
>
> -
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


Re: How to change field values in a validator?

2008-10-14 Thread Timo Rantalaiho
On Tue, 14 Oct 2008, Matthias Keller wrote:
> What i'd need would be something that's called after all fields have 
> converted but before they're stored anywhere... Which I don't think exists.

It does, "stored anywhere" means setObject(Object) on the
model of the FormComponent, and there you can do what you 
need.

> Converters aren't really meant to be dependent from other fields as you 
> never know if the other field even converted its value up to now - order 
> matters and can ruin your day then

Nope. For validation of related fields you have IFormValidator,
but I repeat that using validators for this would be a 
kludge :)

Best wishes,
Timo


-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



Re: Re: A wicket gathering?

2008-10-14 Thread bruno . borges

Why not in Brazil? :-)

Then you all could enjoy summer here in Rio de Janeiro.



On Oct 14, 2008 10:22am, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:

On Tue, 14 Oct 2008, Johan Compagner wrote:

> For me: Amsterdam would be perfect :) But somewhere in germany is also  

no


> problem.



Then it could be a part of Apachecon EU in March



http://eu.apachecon.com/c/aceu2009/



PS The call for papers is open for ten more days





-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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





Re: How to change field values in a validator?

2008-10-14 Thread Matthias Keller

Hi Johan

JavaScript is not an option, we need server side processing. I've tried 
it with a converter, but the getConverter() method is only called if 
it's a typed field, else I have to use convertValue()...
But this still doesn't solve my problem as they're called from within 
Form.updateFormComponentModels() which means, the components are only 
just converting now and I cannot know if both fields I need to consider 
have already converted and I won't just add it to the second one in the 
code as it could be rearranged any time...
What i'd need would be something that's called after all fields have 
converted but before they're stored anywhere... Which I don't think exists.
Converters aren't really meant to be dependent from other fields as you 
never know if the other field even converted its value up to now - order 
matters and can ruin your day then


Any other idea? I just can't believe my situation is so uncommon...?!

Thanks

Matt

Johan Compagner wrote:

You have simple Behaviors that can alter values through java script in
the browser and you have converters that converts a value at the
server side, validators are ment for validation of a value that is
converted by a convertor not for changing data.

On 10/13/08, Matthias Keller <[EMAIL PROTECTED]> wrote:
  

Timo Rantalaiho wrote:


On Mon, 13 Oct 2008, Matthias Keller wrote:

  

Here's the scenario with two radios and a pulldown:
( ) I don't need anything
( ) I need: [ pulldown with options ]

Now if "I need" is selected, everything works as expected, the pulldown
value gets stored to the model.
Now if 'I dont need anything' is selected, another value for the
pulldown needs to be stored in the model. Let's say a marker entry like
'nothing'. I can't have 'nothing' directly in the pulldown as it would
make no sense (and the customer explicitly doesn't want that). So in the
validator I need to check the status of the radios and if the first
option is selected, set the pulldown model's value to my custom value,
ignoring any possible input value.



I think that you should do it with ajax and custom models
instead of validators. It seems like a kludge or at least a
strange side effect for a validator to do something like
that.

Best wishes,
Timo

  

Hi Timo

AJAX is not an option, as it is client side.
Another scenario would be: User has to enter some data which needs to be
stored in a certain way. For example a number needs leading zeros or
whatever, it would be good for a validator to a) check that the value is
a number and b) on the fly update the value with leading zeros as needed
- I guess a converter could do the job but I think that's overkill...?
A custom model also is not that easy, at least to my understanding as
the model values come from two different components..

Matt

--
[EMAIL PROTECTED]  +41 44 268 83 98
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
http://www.ergon.ch
__
e r g o nsmart people - smart software






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



--
[EMAIL PROTECTED]  +41 44 268 83 98
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
http://www.ergon.ch
__
e r g o nsmart people - smart software




smime.p7s
Description: S/MIME Cryptographic Signature


Re: A wicket gathering?

2008-10-14 Thread Timo Rantalaiho
On Tue, 14 Oct 2008, Johan Compagner wrote:
> For me: Amsterdam would be perfect :) But somewhere in germany is also no
> problem.

Then it could be a part of Apachecon EU in March

  http://eu.apachecon.com/c/aceu2009/

P.S. The call for papers is open for ten more days


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



Re: A wicket gathering?

2008-10-14 Thread Johan Compagner
i think around San Francisco is the only option then because igor is afraid
to fly ;)

For me: Amsterdam would be perfect :) But somewhere in germany is also no
problem.

On Tue, Oct 14, 2008 at 7:57 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Hi
>
> I've been pondering as usually. This time about a wicket gathering, and it
> should be something where all could meetup, also from international places.
> Ideally all comitters would show up. It should be something that were held
> once a year and not in conjunction with something else as I think it would
> disturb it. Im not sure where it should be held, we are scattered all over
> the world?
>
>
>
> What do you guys feel about it?
>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Two /(Upload)Forms and 2 feedbacks on one page

2008-10-14 Thread Herbert Winter
hello,

it is a pity it is not so simple as that: the page will be rendered
again after submit, so all the object on the page are "new".
But we have a solution on da way, thanks for your input.

2008/10/14 Timm Helbig <[EMAIL PROTECTED]>:
> Wild guess: The same Form (ajaxSimpleUploadForm) for both Filters?
>
> Regards,
> Timm
>
> Am Tuesday 14 October 2008 12:13:59 schrieb Herbert Winter:
>> Now I got no feedbacks with both methods.
>> However when I use the example from
>> http://cwiki.apache.org/WICKET/using-more-than-one-feedbackpanel-per-page.h
>>tml like
>>
>> uploadFeedback.setFilter(new
>> ContainerFeedbackMessageFilter(ajaxSimpleUploadForm));
>> after the upload both forms are visible.
>>
>> when I use feedbackpanels like
>> filter=new ContainerFeedbackMessageFilter(ajaxSimpleUploadForm);
>> uploadFeedback = new FeedbackPanel("imageUploadFeedback", filter);
>>
>> only 1 form is visible after the upload.
>>
>> I do  this calls in the initComponents() methods.
>>
>> 2008/10/14 Stefan Lindner <[EMAIL PROTECTED]>:
>> > Use a FeedbackPanel(final String id, IFeedbackMessageFilter filter)
>> > constructor with a message filter.
>> >
>> > Stefan
>> >
>> > -Ursprüngliche Nachricht-
>> > Von: Herbert Winter [mailto:[EMAIL PROTECTED]
>> > Gesendet: Dienstag, 14. Oktober 2008 11:04
>> > An: users@wicket.apache.org
>> > Betreff: Two /(Upload)Forms and 2 feedbacks on one page
>> >
>> > hello list,
>> >
>> > I have two (Upload)Forms on my page, each with a FeedbackPanel; when I
>> > use one of the forms, both feedbackpanels show the same info.
>> > In the HTML-files, the have different IDs, and each form extends Panel
>> > in a separate class.
>> >
>> > I use 1.4-m3.
>> >
>> > Any idea?
>> >
>> > greetings
>> >
>> > -
>> > 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: newSession(...) being called for every request

2008-10-14 Thread James Carman
I think Wicket could definitely benefit from a revamping of its online
documentation.  It would be nice to have a site similar to the way
Hibernate's is laid out.

On Tue, Oct 14, 2008 at 7:24 AM, jWeekend <[EMAIL PROTECTED]> wrote:
>
> This does come up very often, including at our London Wicket Events and
> courses. Even the most advanced and experienced Wicket developers say things
> could be clearer in this area where information is not as plentiful and at
> such a high level of quality most other Wicket technical matters are usually
> documented at on the Wiki or in Wicket In Action, for example.
>
> There are snippets of helpful material but it is very scattered and usually
> in the context of some other Wicket feature rather than specifically about
> stateless vs stateful pages/components.
>
> http://cwiki.apache.org/WICKET/stateless-pages.html This wiki page  is a
> start, but something (clear definitions, reasons for stateless vs stateful,
> best practices etc) that the core devs can review and back would be
> reassuring.
>
> Regards - Cemal
> http://www.jWeekend.co.uk http://jWeekend.co.uk
>
>
>
>
> jwcarman wrote:
>>
>> Perhaps this one should go on an FAQ somewhere.  We see this question
>> quite often.
>>
>> On Tue, Oct 14, 2008 at 12:25 AM, Craig Tataryn <[EMAIL PROTECTED]>
>> wrote:
>>> Yep, thanks Igor.
>>>
>>> On Mon, Oct 13, 2008 at 11:09 PM, Igor Vaynberg <[EMAIL PROTECTED]>
>>> wrote:
 a stateless page in wicket means that the page does not need to be put
 into
 session. it can be reconstructed from scratch. such pages generally do
 not
 have stateful components (components that provide user with callbacks
 such
 as link and its onclick() or form and its onsubmit()).

 so until a stateful page is hit by the user wicket will not create an
 http
 session. this is an optimization for sites that want to scale out to
 massive
 amounts of users without requiring an http session.

 now since websession plays an important role in request cycle processing
 and
 is itself stored in http session we need to create a new instance on
 every
 request until we are able to reuse the instance by putting it into http
 session.

 makes sense?

 -igor

 On Mon, Oct 13, 2008 at 9:00 PM, Craig Tataryn <[EMAIL PROTECTED]>
 wrote:

> Hi, I created a very simple little Wicket application which consisted
> of one page and the page relied on session information which was to
> persist between requests.  My surprise came when I found that
> newSession(Request request, Response response)  on my WebApplication
> class was being called for every request!  This is the first time I've
> come across this, usually sessions "just work" the way I figure they
> should (that is, stay around until they are expired).
>
> In my investigation as to how to remedy this situation I came across
> this list message:
> http://www.nabble.com/Session-creation-td19123581.html#a19128690
>
> So using "getSession().bind()" worked for me.
>
> What exactly triggers Wicket to say "oh, I should keep sessions around
> instead of creating them for every request".  Martijn seems to
> indicate that if your pages are "statefull" then Sessions will
> persist.  What is meant by "statefull"?  That they set stuff into the
> session?  Or that they have member variables?
>
> I noticed that bind() wasn't mentioned in WiA (first place I looked to
> seek help)  Seems like it would have been an excellent callout item,
> would have helped me anyway :)  Took me a while to find that mail list
> posting, trying various search terms.
>
> --
> Craig Tataryn
> site: http://www.basementcoders.com/
> podcast:http://feeds.feedburner.com/TheBasementCoders
> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
> im: [EMAIL PROTECTED], skype: craig.tataryn
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

>>>
>>>
>>>
>>> --
>>> Craig Tataryn
>>> site: http://www.basementcoders.com/
>>> podcast:http://feeds.feedburner.com/TheBasementCoders
>>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>>> im: [EMAIL PROTECTED], skype: craig.tataryn
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/newSession%28...%29-being-called-for-every-request-tp19966730p19971581.html
> Sent from the Wicket - Us

[Announce] Wicket Usergroup Denmark @ 16 hours tomorrow

2008-10-14 Thread Nino Saturnino Martinez Vazquez Wael

Remember it, and be there..

Go sign up here and see location details:

http://wugdk.eventbrite.com/

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Permissions to commit in wicket-stuff

2008-10-14 Thread Nino Saturnino Martinez Vazquez Wael

you should be in..

Martin Grigorov wrote:

Hi,

Could you give me perms to commit in wicketstuff-jquery(-examples)
projects ?

My SF account name is: martingrigorov

Thanks
martin-g


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

  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: newSession(...) being called for every request

2008-10-14 Thread jWeekend

This does come up very often, including at our London Wicket Events and
courses. Even the most advanced and experienced Wicket developers say things
could be clearer in this area where information is not as plentiful and at
such a high level of quality most other Wicket technical matters are usually
documented at on the Wiki or in Wicket In Action, for example. 

There are snippets of helpful material but it is very scattered and usually
in the context of some other Wicket feature rather than specifically about
stateless vs stateful pages/components. 

http://cwiki.apache.org/WICKET/stateless-pages.html This wiki page  is a
start, but something (clear definitions, reasons for stateless vs stateful,
best practices etc) that the core devs can review and back would be
reassuring.

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




jwcarman wrote:
> 
> Perhaps this one should go on an FAQ somewhere.  We see this question
> quite often.
> 
> On Tue, Oct 14, 2008 at 12:25 AM, Craig Tataryn <[EMAIL PROTECTED]>
> wrote:
>> Yep, thanks Igor.
>>
>> On Mon, Oct 13, 2008 at 11:09 PM, Igor Vaynberg <[EMAIL PROTECTED]>
>> wrote:
>>> a stateless page in wicket means that the page does not need to be put
>>> into
>>> session. it can be reconstructed from scratch. such pages generally do
>>> not
>>> have stateful components (components that provide user with callbacks
>>> such
>>> as link and its onclick() or form and its onsubmit()).
>>>
>>> so until a stateful page is hit by the user wicket will not create an
>>> http
>>> session. this is an optimization for sites that want to scale out to
>>> massive
>>> amounts of users without requiring an http session.
>>>
>>> now since websession plays an important role in request cycle processing
>>> and
>>> is itself stored in http session we need to create a new instance on
>>> every
>>> request until we are able to reuse the instance by putting it into http
>>> session.
>>>
>>> makes sense?
>>>
>>> -igor
>>>
>>> On Mon, Oct 13, 2008 at 9:00 PM, Craig Tataryn <[EMAIL PROTECTED]>
>>> wrote:
>>>
 Hi, I created a very simple little Wicket application which consisted
 of one page and the page relied on session information which was to
 persist between requests.  My surprise came when I found that
 newSession(Request request, Response response)  on my WebApplication
 class was being called for every request!  This is the first time I've
 come across this, usually sessions "just work" the way I figure they
 should (that is, stay around until they are expired).

 In my investigation as to how to remedy this situation I came across
 this list message:
 http://www.nabble.com/Session-creation-td19123581.html#a19128690

 So using "getSession().bind()" worked for me.

 What exactly triggers Wicket to say "oh, I should keep sessions around
 instead of creating them for every request".  Martijn seems to
 indicate that if your pages are "statefull" then Sessions will
 persist.  What is meant by "statefull"?  That they set stuff into the
 session?  Or that they have member variables?

 I noticed that bind() wasn't mentioned in WiA (first place I looked to
 seek help)  Seems like it would have been an excellent callout item,
 would have helped me anyway :)  Took me a while to find that mail list
 posting, trying various search terms.

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

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


>>>
>>
>>
>>
>> --
>> Craig Tataryn
>> site: http://www.basementcoders.com/
>> podcast:http://feeds.feedburner.com/TheBasementCoders
>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>> im: [EMAIL PROTECTED], skype: craig.tataryn
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/newSession%28...%29-being-called-for-every-request-tp19966730p19971581.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: newSession(...) being called for every request

2008-10-14 Thread James Carman
Perhaps this one should go on an FAQ somewhere.  We see this question
quite often.

On Tue, Oct 14, 2008 at 12:25 AM, Craig Tataryn <[EMAIL PROTECTED]> wrote:
> Yep, thanks Igor.
>
> On Mon, Oct 13, 2008 at 11:09 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> a stateless page in wicket means that the page does not need to be put into
>> session. it can be reconstructed from scratch. such pages generally do not
>> have stateful components (components that provide user with callbacks such
>> as link and its onclick() or form and its onsubmit()).
>>
>> so until a stateful page is hit by the user wicket will not create an http
>> session. this is an optimization for sites that want to scale out to massive
>> amounts of users without requiring an http session.
>>
>> now since websession plays an important role in request cycle processing and
>> is itself stored in http session we need to create a new instance on every
>> request until we are able to reuse the instance by putting it into http
>> session.
>>
>> makes sense?
>>
>> -igor
>>
>> On Mon, Oct 13, 2008 at 9:00 PM, Craig Tataryn <[EMAIL PROTECTED]> wrote:
>>
>>> Hi, I created a very simple little Wicket application which consisted
>>> of one page and the page relied on session information which was to
>>> persist between requests.  My surprise came when I found that
>>> newSession(Request request, Response response)  on my WebApplication
>>> class was being called for every request!  This is the first time I've
>>> come across this, usually sessions "just work" the way I figure they
>>> should (that is, stay around until they are expired).
>>>
>>> In my investigation as to how to remedy this situation I came across
>>> this list message:
>>> http://www.nabble.com/Session-creation-td19123581.html#a19128690
>>>
>>> So using "getSession().bind()" worked for me.
>>>
>>> What exactly triggers Wicket to say "oh, I should keep sessions around
>>> instead of creating them for every request".  Martijn seems to
>>> indicate that if your pages are "statefull" then Sessions will
>>> persist.  What is meant by "statefull"?  That they set stuff into the
>>> session?  Or that they have member variables?
>>>
>>> I noticed that bind() wasn't mentioned in WiA (first place I looked to
>>> seek help)  Seems like it would have been an excellent callout item,
>>> would have helped me anyway :)  Took me a while to find that mail list
>>> posting, trying various search terms.
>>>
>>> --
>>> Craig Tataryn
>>> site: http://www.basementcoders.com/
>>> podcast:http://feeds.feedburner.com/TheBasementCoders
>>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>>> im: [EMAIL PROTECTED], skype: craig.tataryn
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>
>
>
> --
> Craig Tataryn
> site: http://www.basementcoders.com/
> podcast:http://feeds.feedburner.com/TheBasementCoders
> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
> im: [EMAIL PROTECTED], skype: craig.tataryn
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Permissions to commit in wicket-stuff

2008-10-14 Thread Martin Grigorov
Hi,

Could you give me perms to commit in wicketstuff-jquery(-examples)
projects ?

My SF account name is: martingrigorov

Thanks
martin-g


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



Re: A wicket gathering?

2008-10-14 Thread Antony Stubbs

Amsterdam +1! :)


Martin Funk-3 wrote:
> 
>>
>> the london guys are already crouching together at google regularly. i´d
>> love frankfurt :)
> 
> Yeah, I wouldn't mind that either :-)
> Though I think Wickets center of gravity on the continent is closer to
> Amsterdam.
> And I'm not sure if Frankfurts places to hold a conference at, are as nice
> as Amsterdams places.
> 
> mf
> 
>>
>>
>> --
>>
>> THOMAS DAILY GmbH
>> Adlerstraße 19
>> 79098 Freiburg
>> Deutschland
>> T  + 49 761 3 85 59 0
>> F  + 49 761 3 85 59 550
>> E  [EMAIL PROTECTED]
>> www.thomas-daily.de
>>
>> Geschäftsführer/Managing Directors:
>> Wendy Thomas, Susanne Larbig
>> Handelsregister Freiburg i.Br., HRB 3947
>>
>> Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
>> kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
>> morgens um 9:00 in Ihrer Mailbox.
>>
>> Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
>> 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach
>> 16:00
>> Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
>> lautet [EMAIL PROTECTED]
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 


-
___

http://stubbisms.wordpress.com http://stubbisms.wordpress.com 
-- 
View this message in context: 
http://www.nabble.com/A-wicket-gathering--tp19967487p19970774.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Two /(Upload)Forms and 2 feedbacks on one page

2008-10-14 Thread Timm Helbig
Wild guess: The same Form (ajaxSimpleUploadForm) for both Filters? 

Regards,
Timm

Am Tuesday 14 October 2008 12:13:59 schrieb Herbert Winter:
> Now I got no feedbacks with both methods.
> However when I use the example from
> http://cwiki.apache.org/WICKET/using-more-than-one-feedbackpanel-per-page.h
>tml like
>
> uploadFeedback.setFilter(new
> ContainerFeedbackMessageFilter(ajaxSimpleUploadForm));
> after the upload both forms are visible.
>
> when I use feedbackpanels like
> filter=new ContainerFeedbackMessageFilter(ajaxSimpleUploadForm);
> uploadFeedback = new FeedbackPanel("imageUploadFeedback", filter);
>
> only 1 form is visible after the upload.
>
> I do  this calls in the initComponents() methods.
>
> 2008/10/14 Stefan Lindner <[EMAIL PROTECTED]>:
> > Use a FeedbackPanel(final String id, IFeedbackMessageFilter filter)
> > constructor with a message filter.
> >
> > Stefan
> >
> > -Ursprüngliche Nachricht-
> > Von: Herbert Winter [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 14. Oktober 2008 11:04
> > An: users@wicket.apache.org
> > Betreff: Two /(Upload)Forms and 2 feedbacks on one page
> >
> > hello list,
> >
> > I have two (Upload)Forms on my page, each with a FeedbackPanel; when I
> > use one of the forms, both feedbackpanels show the same info.
> > In the HTML-files, the have different IDs, and each form extends Panel
> > in a separate class.
> >
> > I use 1.4-m3.
> >
> > Any idea?
> >
> > greetings
> >
> > -
> > 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: A wicket gathering?

2008-10-14 Thread Martin Funk
>
> the london guys are already crouching together at google regularly. i´d
> love frankfurt :)

Yeah, I wouldn't mind that either :-)
Though I think Wickets center of gravity on the continent is closer to
Amsterdam.
And I'm not sure if Frankfurts places to hold a conference at, are as nice
as Amsterdams places.

mf

>
>
> --
>
> THOMAS DAILY GmbH
> Adlerstraße 19
> 79098 Freiburg
> Deutschland
> T  + 49 761 3 85 59 0
> F  + 49 761 3 85 59 550
> E  [EMAIL PROTECTED]
> www.thomas-daily.de
>
> Geschäftsführer/Managing Directors:
> Wendy Thomas, Susanne Larbig
> Handelsregister Freiburg i.Br., HRB 3947
>
> Registrieren Sie sich unter http://morningnews.thomas-daily.de für die
> kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages
> morgens um 9:00 in Ihrer Mailbox.
>
> Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
> 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00
> Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
> lautet [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Two /(Upload)Forms and 2 feedbacks on one page

2008-10-14 Thread Herbert Winter
Now I got no feedbacks with both methods.
However when I use the example from
http://cwiki.apache.org/WICKET/using-more-than-one-feedbackpanel-per-page.html
like

uploadFeedback.setFilter(new
ContainerFeedbackMessageFilter(ajaxSimpleUploadForm));
after the upload both forms are visible.

when I use feedbackpanels like
filter=new ContainerFeedbackMessageFilter(ajaxSimpleUploadForm);
uploadFeedback = new FeedbackPanel("imageUploadFeedback", filter);

only 1 form is visible after the upload.

I do  this calls in the initComponents() methods.



2008/10/14 Stefan Lindner <[EMAIL PROTECTED]>:
> Use a FeedbackPanel(final String id, IFeedbackMessageFilter filter) 
> constructor with a message filter.
>
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Herbert Winter [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 14. Oktober 2008 11:04
> An: users@wicket.apache.org
> Betreff: Two /(Upload)Forms and 2 feedbacks on one page
>
> hello list,
>
> I have two (Upload)Forms on my page, each with a FeedbackPanel; when I
> use one of the forms, both feedbackpanels show the same info.
> In the HTML-files, the have different IDs, and each form extends Panel
> in a separate class.
>
> I use 1.4-m3.
>
> Any idea?
>
> greetings
>
> -
> 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: Two /(Upload)Forms and 2 feedbacks on one page

2008-10-14 Thread Stefan Lindner
Use a FeedbackPanel(final String id, IFeedbackMessageFilter filter) constructor 
with a message filter.

Stefan

-Ursprüngliche Nachricht-
Von: Herbert Winter [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 14. Oktober 2008 11:04
An: users@wicket.apache.org
Betreff: Two /(Upload)Forms and 2 feedbacks on one page

hello list,

I have two (Upload)Forms on my page, each with a FeedbackPanel; when I
use one of the forms, both feedbackpanels show the same info.
In the HTML-files, the have different IDs, and each form extends Panel
in a separate class.

I use 1.4-m3.

Any idea?

greetings

-
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: Two /(Upload)Forms and 2 feedbacks on one page

2008-10-14 Thread Gabriel Bucher

hi herbert,

habe a look at this: 
http://cwiki.apache.org/WICKET/using-more-than-one-feedbackpanel-per-page.html


cheers gabriel

Herbert Winter wrote:

hello list,

I have two (Upload)Forms on my page, each with a FeedbackPanel; when I
use one of the forms, both feedbackpanels show the same info.
In the HTML-files, the have different IDs, and each form extends Panel
in a separate class.

I use 1.4-m3.

Any idea?

greetings

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


!DSPAM:48f46090267217514012533!




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



Two /(Upload)Forms and 2 feedbacks on one page

2008-10-14 Thread Herbert Winter
hello list,

I have two (Upload)Forms on my page, each with a FeedbackPanel; when I
use one of the forms, both feedbackpanels show the same info.
In the HTML-files, the have different IDs, and each form extends Panel
in a separate class.

I use 1.4-m3.

Any idea?

greetings

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



Re: A wicket gathering?

2008-10-14 Thread Uwe Schäfer

marco.behler schrieb:

Wicket Europe -> London/ Frankfurt? => muchos biggos airportos e train
stationes :)


the london guys are already crouching together at google regularly. i´d 
love frankfurt :)


--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



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



Re: A wicket gathering?

2008-10-14 Thread marco.behler

Wicket Europe -> London/ Frankfurt? => muchos biggos airportos e train
stationes :)


Nino.Martinez wrote:
> 
> Hi
> 
> Well could be:) The cheapest flight I could find cost around 678 $...  I 
> wonder what the price are the other way around..
> 
> But I think for me NYC are the shortest trip from Denmark. Although I 
> would like some place warm with big beefs:) There are also the 
> possibility that we have to break it into a EURO and US event..:(
> 
> Ryan Gravener wrote:
>> NYC since all the Europeans can probably afford it :)
>>
>>
>> Ryan Gravener
>> http://twitter.com/ryangravener
>>
>>
>> On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael <
>> [EMAIL PROTECTED]> wrote:
>>
>>   
>>> Hehe, always the names, Jonathan. But yeah something like it..
>>>
>>>
>>> Jonathan Locke wrote:
>>>
>>> 
 Are you proposing Wicketstock?


 Nino.Martinez wrote:


   
> Hi
>
> I've been pondering as usually. This time about a wicket gathering,
> and
> it should be something where all could meetup, also from international
> places. Ideally all comitters would show up. It should be something
> that
> were held once a year and not in conjunction with something else as I
> think
> it would disturb it. Im not sure where it should be held, we are
> scattered
> all over the world?
>
>
>
> What do you guys feel about it?
>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> 

   
>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>> 
>>
>>   
> 
> -- 
> -Wicket for love
> 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-wicket-gathering--tp19967487p19969165.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]



Does Jackrabbit supports Metadata ?

2008-10-14 Thread Nayak Vishal

Hello everyone,

Does Jackrabbit support Metadata ? Have any one experienced any problems
?

Jackrabbit is a complete JCR implementation. Does JCR 170 supports
metadata ?

I am not sure ...Could you please suggest me ? Your views are
appreciated 

Regards
Vishal Nayak

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



Re: Form model update with ajax using AutoCompleteTextField

2008-10-14 Thread kerim bey

Meanwhile I figured out that the getModelObject() of the
AutoCompleteTextField allways gives me null. Also if I selected one choice.


While debugging I noticed it is a string.
That's why I'm iterating through the choice objects to get back the object
represented by the string in the autocomplete and then call setModelObject()
with the one that matches. 
I override convertInput() for this but maybe this is the wrong place? 



-- 
View this message in context: 
http://www.nabble.com/Form-model-update-with-ajax-using-AutoCompleteTextField-tp19954381p19968868.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: Jackrabbit APi thorugh Apache wicket

2008-10-14 Thread Martin Voigt
Hi,

have a look at Igor's brix:

http://code.google.com/p/brix-cms/

It's a wicket CMS that uses JCR and Jackrabbit.

Regards,
Martin

2008/10/13 Nayak Vishal <[EMAIL PROTECTED]>:
>
> Hello everyone,
>
> Is it possible to access Jackrabbit API(talking to Alfresco ) thorugh
> Apache wicket.
>
> Regards
> Vishal
>
> -
> 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: Jackrabbit APi thorugh Apache wicket

2008-10-14 Thread wicket user
i have written some classes to access items in Jackrabbit repository and
as Edmund mentioned it was specific to my node types and repository.

Alternatively you can look at Brix http://code.google.com/p/brix-cms/

Cheers
Dipu



On Mon, Oct 13, 2008 at 4:22 PM, Edmund Urbani <[EMAIL PROTECTED]> wrote:

> Nayak Vishal wrote:
> > Hello everyone,
> >
> > Is it possible to access Jackrabbit API(talking to Alfresco ) thorugh
> > Apache wicket.
> >
> > Regards
> > Vishal
> >
> Well, I don't know of any out-of-the-box components that integrate Wicket
> with
> JCR (or Jackrabbit in particular), but you can always write your own. I
> have
> myself written some Wicket models and data providers to access items in a
> Jackrabbit repository (very specific to my repository and my node types).
> It's
> not too difficult if you're familiar with both Wicket and JCR.
>
> Cheers
>  Edmund
>
> --
> Liland ...does IT better
>
> Liland IT GmbH
> Software Architekt
> email: [EMAIL PROTECTED]
>
> office: +43 (0)463 220-111  | fax: +43 (0)463 220-288
> http://www.Liland.at
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: A wicket gathering?

2008-10-14 Thread Nino Saturnino Martinez Vazquez Wael

Hi

Well could be:) The cheapest flight I could find cost around 678 $...  I 
wonder what the price are the other way around..


But I think for me NYC are the shortest trip from Denmark. Although I 
would like some place warm with big beefs:) There are also the 
possibility that we have to break it into a EURO and US event..:(


Ryan Gravener wrote:

NYC since all the Europeans can probably afford it :)


Ryan Gravener
http://twitter.com/ryangravener


On Tue, Oct 14, 2008 at 2:09 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

  

Hehe, always the names, Jonathan. But yeah something like it..


Jonathan Locke wrote:



Are you proposing Wicketstock?


Nino.Martinez wrote:


  

Hi

I've been pondering as usually. This time about a wicket gathering, and
it should be something where all could meetup, also from international
places. Ideally all comitters would show up. It should be something that
were held once a year and not in conjunction with something else as I think
it would disturb it. Im not sure where it should be held, we are scattered
all over the world?



What do you guys feel about it?


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684



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








  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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