Re: [Wicket-user] Regarding onchange DropDown

2007-07-12 Thread Igor Vaynberg

On 7/12/07, Edi <[EMAIL PROTECTED]> wrote:



Hi!

I have one drop down like

textboxtextarea

in the above case, I have 2 items, 1.textbox 2.textarea.

If I select textbox, text box should be displayed below the combo box. If
I
select textarea, textarea should be displayed but textbox should be hided.

If I did not select anything, both textbox and textarea should be hided.

I have done using javascript. But I don't know how it is in Wicket?




simplest way to do this would be to add two wicket HiddenFields - one for
value of textbox and one for textarea, and then link them to the ones you
created in the javascript.

-igor

I am newbie. So please give me your suggestions.



Thanking You.


Regards,
Edi

--
View this message in context:
http://www.nabble.com/Regarding-onchange-DropDown-tf4072549.html#a11574089
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] Regarding onchange DropDown

2007-07-12 Thread Edi

Hi!

I have one drop down like

textboxtextarea

in the above case, I have 2 items, 1.textbox 2.textarea.

If I select textbox, text box should be displayed below the combo box. If I
select textarea, textarea should be displayed but textbox should be hided.

If I did not select anything, both textbox and textarea should be hided. 

I have done using javascript. But I don't know how it is in Wicket?

I am newbie. So please give me your suggestions.

Thanking You.

Regards,
Edi

-- 
View this message in context: 
http://www.nabble.com/Regarding-onchange-DropDown-tf4072549.html#a11574089
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] using images in wicket

2007-07-12 Thread Igor Vaynberg

On 7/12/07, verbal evasion <[EMAIL PROTECTED]> wrote:


thank you for the response igor, you are helpful as always. this may be a
totally stupid question, but i am using wicket.* but there seems to be
another org.apache.wicket.* and the ContextImage is only in that version?
why are there two different versions? i am getting my wicket and
wicket-extensions from maven1.x

 

wicket
wicket
 1.2.6
true


wicket
wicket-extensions
1.2.6
true




1.2.6 is hosted at sf.net and is in wicket.*

wicket moved to apache - which requires the package to be
org.apache.wicket.*

version 1.3 will be the first apache release - so 1.3 beta and snapshots are
in org.apache.wicket.*

ContextImage only exists in 1.3 version, in 1.2.6 you can use
servletresponse to reconstruct the absolute path yourself.

-igor





thanks,


verbal

On 7/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> then use ContextImage component
>
> -igor
>
>
> On 7/12/07, verbal < [EMAIL PROTECTED]> wrote:
> >
> >
> > I want to do it dynamically though. As in based on some logic, display
> > 1 of n files.
> >
> > Thanks,
> >
> > verbal
> >
> > On Jul 12, 2007, at 7:13 PM, "Igor Vaynberg" < [EMAIL PROTECTED]>
> > wrote:
> >
> > On 7/12/07, verbal evasion <  <[EMAIL PROTECTED]>
> > [EMAIL PROTECTED]> wrote:
> > >
> > > actually, doing url.getContent() doesnt seem to work. can someone
> > > please help me out?
> >
> >
> > in your markup just do  wicket will rewrite
> > that url to be context-relative so /mycotnext/img/foo.gif which will map to
> > webapp/img/foo.gif
> >
> > -igor
> >
> >
> >
> > thanks,
> > >
> > > verbal
> > >
> > > On 7/12/07, verbal evasion <  <[EMAIL PROTECTED]>
> > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > so i realized that i probably just want to access the image via a
> > > > URL. the question now is i cant seem to access it with a relative page. 
do
> > > > you think i should just URL.getContent() and then save it in my
> > > > WebApplication? seems weird, but whatever i guess. i would still like to
> > > > find out how to figure out the "header" of the URL from the current 
running
> > > > context.
> > > >
> > > > thanks,
> > > >
> > > > verbal
> > > >
> > > > On 7/12/07, verbal evasion <  <[EMAIL PROTECTED]>
> > > > [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > i am deploying my web application (including website using
> > > > > wicket) in an ear. there are files in the ear under the webapp/img 
directory
> > > > > and i would like to load them to use with Image and ImageMap. I dont 
know
> > > > > how to specify the path. i do not want to use the absolute FS path. i 
would
> > > > > like to specify the path relative to the webapp directory so i can 
just do
> > > > > like "/img/mypicture.png". i dont know how to do that. i can read the 
image
> > > > > from a database by using a Resource and overriding getResourceStream 
or use
> > > > > an image resource and overwrite getImageData, but what's the best way 
to
> > > > > load an image file thats in the ear? maybe this isnt such a wicket 
question
> > > > > but more of an ear question. thanks for the help anyway.
> > > > >
> > > > > verbal
> > > > >
> > > >
> > > >
> > >
> > >
> > > -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > >  
> > > Wicket-user@lists.sourceforge.net
> > >  
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> >
> > ___
> > Wicket-user mailing list
> >  Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --

[Wicket-user] How to apply sth. like setStripWicketTags() to a single component ?

2007-07-12 Thread rc.china

We know that there is IMarkupSetting.setStripWicketTags(), but it seems that
it is a global setting. I want to apply sth. like setStripWicketTags() to a
single component(for example: Panel/Fragment/Page), could I ? How ?

Thanks!

-- 
View this message in context: 
http://www.nabble.com/How-to-apply-sth.-like-setStripWicketTags%28%29-to-a-single-component---tf4072473.html#a11573810
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

2007-07-12 Thread Eelco Hillenius
> Is it possible to expire the page cache with JMX? Or even better, expire
> individual pages from the cache with JMX?

You can clear the markup cache. See ApplicationMBean#clearMarkupCache
(mx Application/ApplicationSettings).

You can't do it for individual markup files, and tbh I don't think it
would be that useful. You'd first have to find a way to conveniently
selected from hundreds to thousands of markup files.

Eelco

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


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

2007-07-12 Thread Juergen Donnerstag
On 7/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 7/12/07, mraible <[EMAIL PROTECTED]> wrote:
> >
> >
> > Is it possible to expire the page cache with JMX? Or even better, expire
> > individual pages from the cache with JMX?
>
> i dont think so, but i also dont think it will be very difficult to
> implement. we already have a jmx bean here [1], so all thats needed is to
> just plugin that feature. the thing im not sure yet is how public the
> markupcache api is, so we might have to tweak that somewhat. an rfe or a
> patch are welcome.
>

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

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

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

Juergen

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


Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion

thank you for the response igor, you are helpful as always. this may be a
totally stupid question, but i am using wicket.* but there seems to be
another org.apache.wicket.* and the ContextImage is only in that version?
why are there two different versions? i am getting my wicket and
wicket-extensions from maven1.x


   
   wicket
   wicket
   1.2.6
   true
   
   
   wicket
   wicket-extensions
   1.2.6
   true
   

thanks,

verbal

On 7/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


then use ContextImage component

-igor


On 7/12/07, verbal <[EMAIL PROTECTED]> wrote:
>
>
> I want to do it dynamically though. As in based on some logic, display 1
> of n files.
>
> Thanks,
>
> verbal
>
> On Jul 12, 2007, at 7:13 PM, "Igor Vaynberg" < [EMAIL PROTECTED]>
> wrote:
>
> On 7/12/07, verbal evasion < <[EMAIL PROTECTED]>
> [EMAIL PROTECTED]> wrote:
> >
> > actually, doing url.getContent() doesnt seem to work. can someone
> > please help me out?
>
>
> in your markup just do  wicket will rewrite that
> url to be context-relative so /mycotnext/img/foo.gif which will map to
> webapp/img/foo.gif
>
> -igor
>
>
>
> thanks,
> >
> > verbal
> >
> > On 7/12/07, verbal evasion < <[EMAIL PROTECTED]>
> > [EMAIL PROTECTED]> wrote:
> > >
> > > so i realized that i probably just want to access the image via a
> > > URL. the question now is i cant seem to access it with a relative page. do
> > > you think i should just URL.getContent() and then save it in my
> > > WebApplication? seems weird, but whatever i guess. i would still like to
> > > find out how to figure out the "header" of the URL from the current 
running
> > > context.
> > >
> > > thanks,
> > >
> > > verbal
> > >
> > > On 7/12/07, verbal evasion < <[EMAIL PROTECTED]>
> > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > i am deploying my web application (including website using wicket)
> > > > in an ear. there are files in the ear under the webapp/img directory 
and i
> > > > would like to load them to use with Image and ImageMap. I dont know how 
to
> > > > specify the path. i do not want to use the absolute FS path. i would 
like to
> > > > specify the path relative to the webapp directory so i can just do like
> > > > "/img/mypicture.png". i dont know how to do that. i can read the image 
from
> > > > a database by using a Resource and overriding getResourceStream or use 
an
> > > > image resource and overwrite getImageData, but what's the best way to 
load
> > > > an image file thats in the ear? maybe this isnt such a wicket question 
but
> > > > more of an ear question. thanks for the help anyway.
> > > >
> > > > verbal
> > > >
> > >
> > >
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> >  Wicket-user@lists.sourceforge.net
> >  
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

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


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

Re: [Wicket-user] using images in wicket

2007-07-12 Thread Igor Vaynberg

then use ContextImage component

-igor


On 7/12/07, verbal <[EMAIL PROTECTED]> wrote:



I want to do it dynamically though. As in based on some logic, display 1
of n files.

Thanks,

verbal

On Jul 12, 2007, at 7:13 PM, "Igor Vaynberg" <[EMAIL PROTECTED]>
wrote:

On 7/12/07, verbal evasion < <[EMAIL PROTECTED]>
[EMAIL PROTECTED]> wrote:
>
> actually, doing url.getContent() doesnt seem to work. can someone please
> help me out?


in your markup just do  wicket will rewrite that
url to be context-relative so /mycotnext/img/foo.gif which will map to
webapp/img/foo.gif

-igor



thanks,
>
> verbal
>
> On 7/12/07, verbal evasion < <[EMAIL PROTECTED]>
> [EMAIL PROTECTED]> wrote:
> >
> > so i realized that i probably just want to access the image via a URL.
> > the question now is i cant seem to access it with a relative page. do you
> > think i should just URL.getContent() and then save it in my
> > WebApplication? seems weird, but whatever i guess. i would still like to
> > find out how to figure out the "header" of the URL from the current running
> > context.
> >
> > thanks,
> >
> > verbal
> >
> > On 7/12/07, verbal evasion < <[EMAIL PROTECTED]>
> > [EMAIL PROTECTED]> wrote:
> > >
> > > i am deploying my web application (including website using wicket)
> > > in an ear. there are files in the ear under the webapp/img directory and i
> > > would like to load them to use with Image and ImageMap. I dont know how to
> > > specify the path. i do not want to use the absolute FS path. i would like 
to
> > > specify the path relative to the webapp directory so i can just do like
> > > "/img/mypicture.png". i dont know how to do that. i can read the image 
from
> > > a database by using a Resource and overriding getResourceStream or use an
> > > image resource and overwrite getImageData, but what's the best way to load
> > > an image file thats in the ear? maybe this isnt such a wicket question but
> > > more of an ear question. thanks for the help anyway.
> > >
> > > verbal
> > >
> >
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> 
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>  
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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


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


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


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

2007-07-12 Thread Igor Vaynberg

On 7/12/07, mraible <[EMAIL PROTECTED]> wrote:




Is it possible to expire the page cache with JMX? Or even better, expire
individual pages from the cache with JMX?



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

[1]
http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.5/wicket-jmx/

-igor





Thanks,


Matt
--
View this message in context:
http://www.nabble.com/Is-it-possible-to-test-Wicket-templates-out-of-container--tf4071714.html#a11572349
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


[Wicket-user] Pass value of the selected item from DataView to the modal window

2007-07-12 Thread angela

Hi all,

I have a TableViewPage, which has a modal window and the Ajax Link.

The modal window is used to edit item from DataView. 
How do i pass value of the selected item from DataView to the modal window?

Anyone can help me? 
Thanks for spending time to read my codes here. :)
I'm using wicket version 1.2.4

Below is my partial codes:

public class TableViewPage extends CommonPage{

public TableViewPage(){ 

final ModalWindow templateModal;
add(templateModal = new ModalWindow("templateModal"));

templateModal.setPageMapName("templateModal");
templateModal.setCookieName("templateModal");
templateModal.setResizable(false);
templateModal.setTitle("Edit Template");
templateModal.setOutputMarkupId(true); 


templateModal.setPageCreator(new ModalWindow.PageCreator()
{
public Page createPage()
{   
return new TemplateModalPage(TableViewPage.this, 
templateModal);
}
});


dataView = new DataView("table", dataProvider)
{   

private static final long serialVersionUID = 1L;

@Override
protected void populateItem(final Item item) {
item.add(new AjaxLink("showTemplateLink", 
item.getModel())
{
public void onClick(AjaxRequestTarget 
target)
{   
Notification obj = 
(Notification)getParent().getModelObject();
// here i would like to pass 
the obj value to modal window, how do i
achieve this?
templateModal.show(target);


}
});
}
}
dataView.setOutputMarkupId(true); 
add(dataView);  
}
}

this is my partial codes of TemplateModalPage:

public class TemplateModalPage extends WebPage{

public TemplateModalPage(TableViewPage tableViewPage, ModalWindow
templateModal){
add(new TemplateForm("templateForm", tableViewPage));
}

private class EmailTemplateForm extends Form{
private AjaxSubmitButton submitButton;
private AjaxSubmitButton cancelButton;
private TextField templateTextField;

public EmailTemplateForm(String id, final TableViewPage 
tableViewPage) {
super(id);

CompoundPropertyModel model = new 
CompoundPropertyModel(this);
setModel(model);

templateTextField = new TextField("template");
add(templateTextField);

   //here i suppose to get the templateId (from
DataView) before i update the latest changes to the table...

submitButton = new AjaxSubmitButton("submitButton", 
this){
@Override
protected void onSubmit(AjaxRequestTarget 
target, Form form) {

try {

TemplateManager.getInstance().updateTemplate(persistence, aTransient);

} catch (Exception e) {

e.printStackTrace();
error(e.getMessage());
}
ModalWindow.close(target);
}
}
add(submitButton);
}
}
}

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Pass-value-of-the-selected-item-from-DataView-to-the-modal-window-tf4072118.html#a11572811
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Ryan Sonnek

I haven't seen anything on JPA annotations.  Last I heard, they were in
"draft" or "review".  Are they actually available now, and if so, who's
using them?

On 7/12/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:



Thanks Al, I look forward to the post.

-Craig


Al Maw wrote:
>
> Craig Lenzen wrote:
>> Sorry, I was a little confused, I thought this project was using the
JPA
>> annotations for validation.  Instead you are actually using the
hibernate
>> validator project annotations.  Which means the @Column annotation
would
>> be
>> pretty hard to use..:)
>
> :-)
>
> I have JPA annotation integration working. It's really very easy. Will
> post some stuff on my blog about it later.
>
> Al
> --
> herebebeasties.com
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11572215
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-07-12 Thread Ballist1c

Absolute Genius thanks for covering this!!! you guys have saved me alot
of time :)



Matej Knopp-2 wrote:
> 
> As far as I know id is a property of DOMElement, so there should be no
> need to call setAttribute.
> 
> -Matej
> 
> On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
>> On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
>> > On 6/24/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> >
>> > > There's nothing javascript heavy on this :)
>> > >
>> > > You add new item like this:
>> > > String id = rv.newChildId();
>> > > Item item = rv.newItem(id, index, model);
>> > > rv.populateItem(item);
>> > > rv.add(item);
>> > >
>> > > (where rv is the refreshing view. Some of the methods might be
>> > > protected, so you will need to subclass the view, but you have to do
>> > > it anyway, as you need to implement populateItem);
>> > >
>> > > after you call rv.add(item) you can call item.getMarkupId();
>> > >
>> > > Creating DOM in javascript is simple:
>> > >
>> > > var div = document.createElement("div");
>> > > refreshingViewContiner.appendChild(div);
>> > > div.id = 
>> >
>>
>> One more thing Matej - last line above you meant div.setAttribute('id',
>> ) right?  Or is there some js foo I should know about?
>>
>> >
>> >
>> > > -Matej
>> >
>> >
>> > Just as I was thinking Wicket was not so perfect for Ajax...
>> >
>> > It works!  Thanks Matej :)  I really did need that guidance on
>> constructing and adding new item to RefreshingView.  And of course now I
>> get
>> why ListView would not have worked.
>> >
>> >
>> >
>> > > On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
>> > > > On 6/24/07, Timo Rantalaiho < [EMAIL PROTECTED]> wrote:
>> > > > > On Sun, 24 Jun 2007, Peter Thomas wrote:
>> > > > > > I haven't used repeaters that much, but would newItem() be the
>> right way
>> > > > to
>> > > > > > create a new Item?  Anyway, I am now stuck because to ensure
>> that
>> the id
>> > > > of
>> > > > > > the DOM element is same as the newly created item, I have to
>> call
>> > > > > > getMarkupId() on the item then I get the exception "This
>> component
>> is
>> > > > not
>> > > > > > (yet) coupled to a page"  Help!
>> > > > >
>> > > > > Are you sure it's going to be a problem to update the whole
>> > > > > Repeater? Because if not, your whole work of dynamic DOM
>> > > > > appending might turn out to be premature optimisation.
>> > > >
>> > > > Agreed, I'm now curious to see how far I can get, and I may not
>> actually use
>> > > > a javascript heavy approach in the end.  Also I've created a decent
>> size app
>> > > > using only ListView (including a custom datatable with pagination)
>> and
>> am
>> > > > curious to know what the other repeaters ( e.g. RefreshingView)
>> have
>> to
>> > > > offer.
>> > > >
>> > > > Also searching Nabble I see that someone else had some success, not
>> sure if
>> > > > this is the same approach:
>> > > >
>> http://www.nabble.com/treetable-with-table-markup-tf3557655.html#a9974461
>> > > >
>> > > > > Maybe you can override getMarkupId() for your item components
>> > > > > to return e.g. "myId" + domainObject.getdId ()" or something
>> > > > > such.
>> > > > >
>> > > > > (Btw, now that we're on it, all-numeric ids that repeaters
>> > > > > produce by default are invalid HTML. Maybe I should file a
>> > > > > Jira issue about that.)
>> > > > >
>> > > > > - Timo
>> > > > >
>> > > > > --
>> > > > > Timo Rantalaiho
>> > > > > Reaktor Innovations Oyhttp://www.ri.fi/ >
>> > > > >
>> > > > >
>> > > >
>> -
>> > > > > This SF.net email is sponsored by DB2 Express
>> > > > > Download DB2 Express C - the FREE version of DB2 express and take
>> > > > > control of your XML. No limits. Just data. Click to get it now.
>> > > > > http://sourceforge.net/powerbar/db2/
>> > > > > ___
>> > > > > Wicket-user mailing list
>> > > > > Wicket-user@lists.sourceforge.net
>> > > > >
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> > > > >
>> > > >
>> > > >
>> > > >
>> -
>> > > > This SF.net email is sponsored by DB2 Express
>> > > > Download DB2 Express C - the FREE version of DB2 express and take
>> > > > control of your XML. No limits. Just data. Click to get it now.
>> > > > http://sourceforge.net/powerbar/db2/
>> > > > ___
>> > > > Wicket-user mailing list
>> > > > Wicket-user@lists.sourceforge.net
>> > > >
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> > > >
>> > > >
>> > >
>> > >
>> -
>> > > This SF.net email is sponsored by DB2 Express
>> > > Download DB2 Express C - the FREE version of DB2 express and take
>> > > control of your XML. No limits. Just data. Click to get it now.
>> > > http://sourceforge.net/powerbar/db2/
>> > > _

Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal


I want to do it dynamically though. As in based on some logic, display  
1 of n files.


Thanks,

verbal

On Jul 12, 2007, at 7:13 PM, "Igor Vaynberg" <[EMAIL PROTECTED]>  
wrote:



On 7/12/07, verbal evasion <[EMAIL PROTECTED]> wrote:
actually, doing url.getContent() doesnt seem to work. can someone  
please help me out?


in your markup just do  wicket will rewrite  
that url to be context-relative so /mycotnext/img/foo.gif which will  
map to webapp/img/foo.gif


-igor



thanks,

verbal

On 7/12/07, verbal evasion < [EMAIL PROTECTED]> wrote:
so i realized that i probably just want to access the image via a  
URL. the question now is i cant seem to access it with a relative  
page. do you think i should just URL.getContent() and then save it  
in my WebApplication? seems weird, but whatever i guess. i would  
still like to find out how to figure out the "header" of the URL  
from the current running context.


thanks,

verbal


On 7/12/07, verbal evasion < [EMAIL PROTECTED]> wrote:
i am deploying my web application (including website using wicket)  
in an ear. there are files in the ear under the webapp/img directory  
and i would like to load them to use with Image and ImageMap. I dont  
know how to specify the path. i do not want to use the absolute FS  
path. i would like to specify the path relative to the webapp  
directory so i can just do like "/img/mypicture.png". i dont know  
how to do that. i can read the image from a database by using a  
Resource and overriding getResourceStream or use an image resource  
and overwrite getImageData, but what's the best way to load an image  
file thats in the ear? maybe this isnt such a wicket question but  
more of an ear question. thanks for the help anyway.


verbal



--- 
--

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


--- 
--

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


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

2007-07-12 Thread mraible



igor.vaynberg wrote:
> 
> like eelco said, in devel mode this is the default for markup only. if you
> want class reloading there is a reloadingwicketfilter, or whatever its
> called. in production reloading templates is rarely necessary. for cases
> that require them there are a few solutions: you can do what eelco said
> and
> implement your own markup cache which will change globally how all
> template
> caching works, if you have a requierment where only certain
> pages/components
> need to be reloaded while the app is  deployed you can let them implement
> imarkupcachekeyprovider and override the cache key.
> 
> -igor
> 
> 

Is it possible to expire the page cache with JMX? Or even better, expire
individual pages from the cache with JMX?

Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-test-Wicket-templates-out-of-container--tf4071714.html#a11572349
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

2007-07-12 Thread Igor Vaynberg

On 7/12/07, mraible <[EMAIL PROTECTED]> wrote:



Is it possible to use Tapestry's parser in tests to verify that template
syntax is correct?



probably yes, wicket also has a pullparser implementation you can use, or
any other html parser. our tests compare string buffer of httpservletrequest
to a prerendered string which isnt ideal, but works for us.

I'd like to run tests (like you do when doing a JSP pre-compile) to verify

syntax w/o having to start the app and find out at runtime.



yeah, see how our tests work.

Also, is it possible to adjust Wicket's template caching strategy? In other

words, is it possible to make it like JSP where there's a timestamp check
to
see if a page has been updated?


I realize I can turn off page caching, but does that make Wicket slower than

a JSP-based solution? Can I provide my own implementation (or configure
the
existing one) to check every 2 minutes?



like eelco said, in devel mode this is the default for markup only. if you
want class reloading there is a reloadingwicketfilter, or whatever its
called. in production reloading templates is rarely necessary. for cases
that require them there are a few solutions: you can do what eelco said and
implement your own markup cache which will change globally how all template
caching works, if you have a requierment where only certain pages/components
need to be reloaded while the app is  deployed you can let them implement
imarkupcachekeyprovider and override the cache key.

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


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

2007-07-12 Thread mraible



Eelco Hillenius wrote:
> 
>> Is it possible to use Tapestry's parser in tests to verify that template
>> syntax is correct?
> 
> Certainly not Tapestry's; it's a different syntax :)
> 

Doh! That's what I get for asking the same question on the Facelets and
Tapestry lists. I was bound to screw up somewhere. ;-)

Matt

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-test-Wicket-templates-out-of-container--tf4071714.html#a11572219
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] using images in wicket

2007-07-12 Thread Igor Vaynberg

On 7/12/07, verbal evasion <[EMAIL PROTECTED]> wrote:


actually, doing url.getContent() doesnt seem to work. can someone please
help me out?



in your markup just do  wicket will rewrite that url
to be context-relative so /mycotnext/img/foo.gif which will map to
webapp/img/foo.gif

-igor



thanks,


verbal

On 7/12/07, verbal evasion < [EMAIL PROTECTED]> wrote:
>
> so i realized that i probably just want to access the image via a URL.
> the question now is i cant seem to access it with a relative page. do you
> think i should just URL.getContent() and then save it in my
> WebApplication? seems weird, but whatever i guess. i would still like to
> find out how to figure out the "header" of the URL from the current running
> context.
>
> thanks,
>
> verbal
>
> On 7/12/07, verbal evasion < [EMAIL PROTECTED]> wrote:
> >
> > i am deploying my web application (including website using wicket) in
> > an ear. there are files in the ear under the webapp/img directory and i
> > would like to load them to use with Image and ImageMap. I dont know how to
> > specify the path. i do not want to use the absolute FS path. i would like to
> > specify the path relative to the webapp directory so i can just do like
> > "/img/mypicture.png". i dont know how to do that. i can read the image from
> > a database by using a Resource and overriding getResourceStream or use an
> > image resource and overwrite getImageData, but what's the best way to load
> > an image file thats in the ear? maybe this isnt such a wicket question but
> > more of an ear question. thanks for the help anyway.
> >
> > verbal
> >
>
>

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


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


Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Craig Lenzen

Thanks Al, I look forward to the post.

-Craig


Al Maw wrote:
> 
> Craig Lenzen wrote:
>> Sorry, I was a little confused, I thought this project was using the JPA
>> annotations for validation.  Instead you are actually using the hibernate
>> validator project annotations.  Which means the @Column annotation would
>> be
>> pretty hard to use..:)
> 
> :-)
> 
> I have JPA annotation integration working. It's really very easy. Will
> post some stuff on my blog about it later.
> 
> Al
> --
> herebebeasties.com
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11572215
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

2007-07-12 Thread Eelco Hillenius
> Is it possible to use Tapestry's parser in tests to verify that template
> syntax is correct?

Certainly not Tapestry's; it's a different syntax :)

> I'd like to run tests (like you do when doing a JSP pre-compile) to verify
> syntax w/o having to start the app and find out at runtime.

I think your best bet is just to write test cases. I can imagine a
tool that simply checks only the syntax of tempatles without
validating them against the runtime component hiearchy. You can open a
feature request if you want.

> Also, is it possible to adjust Wicket's template caching strategy? In other
> words, is it possible to make it like JSP where there's a timestamp check to
> see if a page has been updated?
>
> I realize I can turn off page caching, but does that make Wicket slower than
> a JSP-based solution? Can I provide my own implementation (or configure the
> existing one) to check every 2 minutes?

In fact, it works the other way around. Caching is the default, but in
development mode (not recommended for deployments) every markupfile is
registered with a modification watcher, which by default works by
polling whether files are changed (in which case it will trigger
loading the new markup). The logic for this is in MarkupCache, which
implements IMarkupCache, for which you can supply a custom
implementation if you want (getMarkupSettings#setMarkupCache). This
would be a last resort though, as typically the defaults should work
fine.

Eelco

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


Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion

actually, doing url.getContent() doesnt seem to work. can someone please
help me out?

thanks,

verbal

On 7/12/07, verbal evasion <[EMAIL PROTECTED]> wrote:


so i realized that i probably just want to access the image via a URL. the
question now is i cant seem to access it with a relative page. do you think
i should just URL.getContent() and then save it in my WebApplication?
seems weird, but whatever i guess. i would still like to find out how to
figure out the "header" of the URL from the current running context.

thanks,

verbal

On 7/12/07, verbal evasion <[EMAIL PROTECTED]> wrote:
>
> i am deploying my web application (including website using wicket) in an
> ear. there are files in the ear under the webapp/img directory and i would
> like to load them to use with Image and ImageMap. I dont know how to specify
> the path. i do not want to use the absolute FS path. i would like to specify
> the path relative to the webapp directory so i can just do like
> "/img/mypicture.png". i dont know how to do that. i can read the image from
> a database by using a Resource and overriding getResourceStream or use an
> image resource and overwrite getImageData, but what's the best way to load
> an image file thats in the ear? maybe this isnt such a wicket question but
> more of an ear question. thanks for the help anyway.
>
> verbal
>


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


[Wicket-user] RepeatingView Class API

2007-07-12 Thread Ballist1c

Hey guys,

Ive been reading the apidoc for RepeatingView, and there is one thing that
is completely throwing me off.

As taken from the API


http://wicket.sourceforge.net/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/RepeatingView.html


It says " A repeater view that renders all of its children, using its body
markup, in the order they were added."

Example:

Java:

 RepeatingView view = new RepeatingView("repeater");
 view.add(new Label("1", "hello"));
 view.add(new Label("2", "goodbye"));
 view.add(new Label("3", "good morning"));

Yet the code yields, according to the APIdoc 

 Yields:

  goodbyehellogood morning

I was under the impression it would be
hellogoodbyegood morning??
 
 
-- 
View this message in context: 
http://www.nabble.com/RepeatingView-Class-API-tf4071880.html#a11572096
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion

so i realized that i probably just want to access the image via a URL. the
question now is i cant seem to access it with a relative page. do you think
i should just URL.getContent() and then save it in my WebApplication? seems
weird, but whatever i guess. i would still like to find out how to figure
out the "header" of the URL from the current running context.

thanks,

verbal

On 7/12/07, verbal evasion <[EMAIL PROTECTED]> wrote:


i am deploying my web application (including website using wicket) in an
ear. there are files in the ear under the webapp/img directory and i would
like to load them to use with Image and ImageMap. I dont know how to specify
the path. i do not want to use the absolute FS path. i would like to specify
the path relative to the webapp directory so i can just do like
"/img/mypicture.png". i dont know how to do that. i can read the image from
a database by using a Resource and overriding getResourceStream or use an
image resource and overwrite getImageData, but what's the best way to load
an image file thats in the ear? maybe this isnt such a wicket question but
more of an ear question. thanks for the help anyway.

verbal

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


[Wicket-user] using images in wicket

2007-07-12 Thread verbal evasion

i am deploying my web application (including website using wicket) in an
ear. there are files in the ear under the webapp/img directory and i would
like to load them to use with Image and ImageMap. I dont know how to specify
the path. i do not want to use the absolute FS path. i would like to specify
the path relative to the webapp directory so i can just do like
"/img/mypicture.png". i dont know how to do that. i can read the image from
a database by using a Resource and overriding getResourceStream or use an
image resource and overwrite getImageData, but what's the best way to load
an image file thats in the ear? maybe this isnt such a wicket question but
more of an ear question. thanks for the help anyway.

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


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

2007-07-12 Thread mraible

Is it possible to use Tapestry's parser in tests to verify that template
syntax is correct? 

I'd like to run tests (like you do when doing a JSP pre-compile) to verify
syntax w/o having to start the app and find out at runtime. 

Also, is it possible to adjust Wicket's template caching strategy? In other
words, is it possible to make it like JSP where there's a timestamp check to
see if a page has been updated? 

I realize I can turn off page caching, but does that make Wicket slower than
a JSP-based solution? Can I provide my own implementation (or configure the
existing one) to check every 2 minutes? 

Thanks, 

Matt
-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-test-Wicket-templates-out-of-container--tf4071714.html#a11571536
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Al Maw
Craig Lenzen wrote:
> Sorry, I was a little confused, I thought this project was using the JPA
> annotations for validation.  Instead you are actually using the hibernate
> validator project annotations.  Which means the @Column annotation would be
> pretty hard to use..:)

:-)

I have JPA annotation integration working. It's really very easy. Will
post some stuff on my blog about it later.

Al
--
herebebeasties.com

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


Re: [Wicket-user] How to control where HTML files are loaded from in 1.3?

2007-07-12 Thread David Rosenstrauch
David Rosenstrauch wrote:
> http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
> 
> "I needed a way to load up HTML files that are all inside the same 
> directory. That directory happened to be /WEB-INF/html. Essentially, I 
> needed to chop off the fully qualified class name and turn 
> com/example/wicket/app/HomePage.html into simply 
> /WEB-INF/html/HomePage.html"
> 
> There's perfect instructions on how to do this in 1.2 (see the bottom of 
> that page).  But that code broker upon upgrading to 1.3.

> Anyone have any idea how this code should be updated for 1.3?

NM ... I think I fixed it myself.

I updated the wiki page accordingly.  Maybe someone can proofread it for 
me pls?

Tnx,

DR

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


Re: [Wicket-user] How to control where HTML files are loaded from in 1.3?

2007-07-12 Thread Scott Swank
I believe that it's something like this (we're still on 1.2.6 here at work).

getResourceSettings().addResourceFolder("/WEB-INF/html");



On 7/12/07, David Rosenstrauch <[EMAIL PROTECTED]> wrote:
> Hi.  Wicket newbie here - and loving the framework.  Great work!
>
> I started tinkering with it a few weeks ago, and wrote some code, but
> then realized that I probably ought to switch to use v1.3.  Running into
> some conversion problems, though.  Specifically, I used the approach
> described here:
>
> http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
>
> "I needed a way to load up HTML files that are all inside the same
> directory. That directory happened to be /WEB-INF/html. Essentially, I
> needed to chop off the fully qualified class name and turn
> com/example/wicket/app/HomePage.html into simply
> /WEB-INF/html/HomePage.html"
>
> There's perfect instructions on how to do this in 1.2 (see the bottom of
> that page).  But that code broker upon upgrading to 1.3.  Specifically,
> the CompoundResourceStreamLocator class appears to no longer exist.  In
> addition, the IResourceFinder.find method now appears to take 2 parms
> (Class and String) whereas it previously only took a String.
>
> Anyone have any idea how this code should be updated for 1.3?
>
> TIA,
>
> DR
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Scott Swank
reformed mathematician

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


Re: [Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Igor Vaynberg

On 7/12/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:


Hi,

When debugging my application which uses a TabbedPanel, I realized that
one tab was unnecessarily instanciated. After some investigation the reason
is simply because I call setSelectedTab based on the parameters of my page,
but since the instanciation of a TabbedPanel call setSelectedTab(0), the
first tab is always instanciated, even though I don't need to render it.

Do anyone know a workaround for this?



i guess tabbedpanel will have to be rewritten to call setactivettab(0) in
onattach if no explicit call has been made. patch is welcome

-igor



Xavier


--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] Intermittent serialization error

2007-07-12 Thread Johan Compagner
use the default serialization for now, if you know why it happens then
please make a test case for this.

On 7/12/07, Russell Morrisey <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using wicket 1.3.0 SNAPSHOT, and I'm encountering intermittent errors
> in console on my pages. I can't seem to determine a reproducible test case
> for this issue, so I'm not sure how to isolate the problem any further.
> Please let me know if you have any suggestions on what to look for.
>
> In the initial setup of my application, I'm setting
> Objects.setObjectStreamFactory(new
> org.apache.wicket.util.io.WicketObjectStreamFactory());
>
> When I hit the page I'm working on to debug some AJAX behavior on the
> page, I sometimes get a serialization error in the log. It looks like it's
> trying to serialize the Hibernate session on the page. The session is on
> the page to enable extended Hibernate sessions. I tried switching to
> JDK-based serialization (per the suggestion in the exception message), and
> got a different error; I'll post that in a separate e-mail to cut down on
> the length.
>
> Here's the log of the error with wicket serialization:
>
> 11:23:58,209 ERROR Objects:1113 - Error serializing object class
> com.csc.aims.specchange.wicket.SpecChangePage [object=[Page class =
>
> com.csc.aims.specchange.wicket.SpecChangePage, id = 4, version = 0]]
> org.apache.wicket.util.io.WicketSerializeableException: Error writing
> fields for com.csc.aims.specchange.wicket.SpecChangePage
> NOTE: if you feel Wicket is at fault with this exception, please report to
> the mailing list. You can switch to JDK based serialization by
>
> calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new
> IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
>
> method of your application
> at
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:806)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
> at
> org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1103)
> at
> org.apache.wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:741)
> at
> org.apache.wicket.protocol.http.FilePageStore.access$800(FilePageStore.java:58)
> at
> org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:261)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at
> org.apache.wicket.util.io.ClassStreamHandler.invokeWriteMethod(ClassStreamHandler.java:471)
> at
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:777)
> ... 6 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.wicket.util.io.ClassStreamHandler.invokeWriteMethod(ClassStreamHandler.java:459)
> ... 7 more
> Caused by: org.apache.wicket.util.io.WicketSerializeableException: Error
> writing fields for org.hibernate.impl.SessionImpl
> pageState->com.csc.aims.specchange.wicket.SpecChangePageState->conversationSession
> NOTE: if you feel Wicket is at fault with this exception, please report to
> the mailing list. You can switch to JDK based serialization by
>
> calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new
> IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
>
> method of your application
> at
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:806)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
> at
> org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:863)
> at
> org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:388)
> at
> org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
> at
> org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:863)
> at
> org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:388)
> at
> org.apache.wicket.util.io.WicketObjectOutputStream.defaultWriteObject(WicketObjectOutputStream.java:465)
> at
> org.apache.wicket.protocol.http.FilePageStore$PageSerializer.serializePage(FilePageStore.java:870)
> at org.apache.wicket.Page.writeObject(Page.java:1293)
> ... 12 mo

Re: [Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Erik van Oosten

Xavier,

Just an idea, I am not sure this would work: do not use the first tab, and
switch to the second tab (index 1) if you do not have the parameter.

Regards,
Erik.


Xavier Hanin wrote:
> 
> When debugging my application which uses a TabbedPanel, I realized that
> one
> tab was unnecessarily instanciated. After some investigation the reason is
> simply because I call setSelectedTab based on the parameters of my page,
> but
> since the instanciation of a TabbedPanel call setSelectedTab(0), the first
> tab is always instanciated, even though I don't need to render it.
> 
> Do anyone know a workaround for this?
> 

-- 
View this message in context: 
http://www.nabble.com/TabbedPanel-tabs-instanciation-tf4070193.html#a11567857
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Can I show and hide a form using javascript & still do form processing on the server ?

2007-07-12 Thread Igor Vaynberg

On 7/12/07, atul singh <[EMAIL PROTECTED]> wrote:


Hi,
I want to show and hide forms using javascript, but this will not have
components on the server.How do I process the form on the server.
What is the reccomended way to do this??
Do I have to make a server call for this?(Based on my experience I feel
ajax is the way supported in wicket, but i dont want it that way)
Thanks
atul




make your form action point to a bookmarkable page. give that page a
(PageParameters params) constructor, and you can pull form values out of
there

-igor


-

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


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


[Wicket-user] Can I show and hide a form using javascript & still do form processing on the server ?

2007-07-12 Thread atul singh

Hi,
I want to show and hide forms using javascript, but this will not have
components on the server.How do I process the form on the server.
What is the reccomended way to do this??
Do I have to make a server call for this?(Based on my experience I feel ajax
is the way supported in wicket, but i dont want it that way)
Thanks
atul
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Craig Lenzen

Sorry, I was a little confused, I thought this project was using the JPA
annotations for validation.  Instead you are actually using the hibernate
validator project annotations.  Which means the @Column annotation would be
pretty hard to use..:)

-Craig


Ryan Sonnek-2 wrote:
> 
> I'm not familiar with the @Column annotation.  If you have any info on how
> it works, I'd be happy to add support in.
> 
> Even better, the code to add new annotation support is drop dead simple.
> let me know if have a solution and I can commit it.
> http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/main/java/org/wicketstuff/hibernate/annotation/HibernateAnnotationComponentConfigurator.java
> 
>   put(NotNull.class, new HibernateAnnotationConfig() {
>   public void onAnnotatedComponent(Annotation annotation,
> FormComponent component) {
>   component.setRequired(true);
>   }
>   });
>   put(Length.class, new HibernateAnnotationConfig() {
>   public void onAnnotatedComponent(Annotation annotation,
> FormComponent component) {
>   int max = ((Length)annotation).max();
>   component.add(new 
> AttributeModifier("maxlength", new
> Model(Integer.toString(max;
>   
> component.add(StringValidator.maximumLength(max));
>   }
>   });
> 
> 
> On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
>>
>>
>> Fair enough Ryan, but one question for you.
>>
>> Does this only work with the @Length and @NotNull annotations or does it
>> also work with the attributes of the @Column annotation (nullable and
>> length)?
>>
>> Thanks
>> Craig
>>
>>
>> Ryan Sonnek-2 wrote:
>> >
>> > I may be biased, but i'm using these annotations on a production/live
>> site
>> > and they've made my life easier.  no more hibernate exceptions bubbling
>> up
>> > to the screen because a field was left blank.
>> >
>> > On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Has anyone made heavy use of this project yet?  Any issues or
>> concerns?
>> >>
>> >> -Craig
>> >>
>> >>
>> >> igor.vaynberg wrote:
>> >> >
>> >> >
>> >>
>> http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/
>> >> >
>> >> > -igor
>> >> >
>> >> >
>> >> > On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >> Unless I was dreaming this the other night I swear someone
>> announced
>> >> that
>> >> >> they created a wicket stuff project that added form validation
>> based
>> >> on
>> >> >> JPA
>> >> >> annotations of a domain model?  Was I dreaming, if not I can't seem
>> to
>> >> >> find
>> >> >> the project in wicket stuff.
>> >> >>
>> >> >> Thanks
>> >> >> Craig
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11549413
>> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> >>
>> -
>> >> >> This SF.net email is sponsored by DB2 Express
>> >> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> >> control of your XML. No limits. Just data. Click to get it now.
>> >> >> http://sourceforge.net/powerbar/db2/
>> >> >> ___
>> >> >> Wicket-user mailing list
>> >> >> Wicket-user@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> >>
>> >> >
>> >> >
>> >>
>> -
>> >> > This SF.net email is sponsored by DB2 Express
>> >> > Download DB2 Express C - the FREE version of DB2 express and take
>> >> > control of your XML. No limits. Just data. Click to get it now.
>> >> > http://sourceforge.net/powerbar/db2/
>> >> > ___
>> >> > Wicket-user mailing list
>> >> > Wicket-user@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11550269
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -
>> >> This SF.net email is sponsored by DB2 Express
>> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> control of your XML. No limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> --

Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Ryan Sonnek

I'm not familiar with the @Column annotation.  If you have any info on how
it works, I'd be happy to add support in.

Even better, the code to add new annotation support is drop dead simple.
let me know if have a solution and I can commit it.
http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/main/java/org/wicketstuff/hibernate/annotation/HibernateAnnotationComponentConfigurator.java

put(NotNull.class, new HibernateAnnotationConfig() {
public void onAnnotatedComponent(Annotation annotation,
FormComponent component) {
component.setRequired(true);
}
});
put(Length.class, new HibernateAnnotationConfig() {
public void onAnnotatedComponent(Annotation annotation,
FormComponent component) {
int max = ((Length)annotation).max();
component.add(new 
AttributeModifier("maxlength", new
Model(Integer.toString(max;

component.add(StringValidator.maximumLength(max));
}
});


On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:



Fair enough Ryan, but one question for you.

Does this only work with the @Length and @NotNull annotations or does it
also work with the attributes of the @Column annotation (nullable and
length)?

Thanks
Craig


Ryan Sonnek-2 wrote:
>
> I may be biased, but i'm using these annotations on a production/live
site
> and they've made my life easier.  no more hibernate exceptions bubbling
up
> to the screen because a field was left blank.
>
> On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
>>
>>
>> Has anyone made heavy use of this project yet?  Any issues or concerns?
>>
>> -Craig
>>
>>
>> igor.vaynberg wrote:
>> >
>> >
>>
http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/
>> >
>> > -igor
>> >
>> >
>> > On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Unless I was dreaming this the other night I swear someone announced
>> that
>> >> they created a wicket stuff project that added form validation based
>> on
>> >> JPA
>> >> annotations of a domain model?  Was I dreaming, if not I can't seem
to
>> >> find
>> >> the project in wicket stuff.
>> >>
>> >> Thanks
>> >> Craig
>> >> --
>> >> View this message in context:
>> >>
>>
http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11549413
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>>
-
>> >> This SF.net email is sponsored by DB2 Express
>> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> control of your XML. No limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>>
-
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11550269
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11552674
Sent from the Wicket - User mailing list archive at Nabble.com.


--

[Wicket-user] How to control where HTML files are loaded from in 1.3?

2007-07-12 Thread David Rosenstrauch
Hi.  Wicket newbie here - and loving the framework.  Great work!

I started tinkering with it a few weeks ago, and wrote some code, but 
then realized that I probably ought to switch to use v1.3.  Running into 
some conversion problems, though.  Specifically, I used the approach 
described here:

http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html

"I needed a way to load up HTML files that are all inside the same 
directory. That directory happened to be /WEB-INF/html. Essentially, I 
needed to chop off the fully qualified class name and turn 
com/example/wicket/app/HomePage.html into simply 
/WEB-INF/html/HomePage.html"

There's perfect instructions on how to do this in 1.2 (see the bottom of 
that page).  But that code broker upon upgrading to 1.3.  Specifically, 
the CompoundResourceStreamLocator class appears to no longer exist.  In 
addition, the IResourceFinder.find method now appears to take 2 parms 
(Class and String) whereas it previously only took a String.

Anyone have any idea how this code should be updated for 1.3?

TIA,

DR

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


[Wicket-user] Autocomplete Question (igor?)

2007-07-12 Thread Francisco Diaz Trepat - gmail

Hi all, I wanted to see if I could add an autocomplete that displays a
little table (3 columns).

It is a simple locations table that shows a ZIPCODE a Provine/City and a
Canton/Kanton (CH) field. I already have it working with the default
IAutoCompleteRenderer, that renders an Unordered list:


  8032 Neumünster ZH
   etc...


I tried my own renderer putting a table on the renderHeader method. Then the
TableRow and TableData elements in the render. And finally a the end of
Table element in the renderFooter method.

This worked fine for look and feel but I lost the selection up and down
behavior. And also the Click selecting behavior that put the innerHtml on
the textfield as says in the documentation if no textvalue was available. I
put the textvalue on the  and also I tried to put it in
the  element.

Can some one help me out a bit?


Regards,

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


[Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Xavier Hanin

Hi,

When debugging my application which uses a TabbedPanel, I realized that one
tab was unnecessarily instanciated. After some investigation the reason is
simply because I call setSelectedTab based on the parameters of my page, but
since the instanciation of a TabbedPanel call setSelectedTab(0), the first
tab is always instanciated, even though I don't need to render it.

Do anyone know a workaround for this?

Xavier

--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Intermittent serialization error

2007-07-12 Thread Russell Morrisey
Hi,

I'm using wicket 1.3.0 SNAPSHOT, and I'm encountering intermittent errors 
in console on my pages. I can't seem to determine a reproducible test case 
for this issue, so I'm not sure how to isolate the problem any further. 
Please let me know if you have any suggestions on what to look for.

In the initial setup of my application, I'm setting
Objects.setObjectStreamFactory(new 
org.apache.wicket.util.io.WicketObjectStreamFactory());

When I hit the page I'm working on to debug some AJAX behavior on the 
page, I sometimes get a serialization error in the log. It looks like it's 
trying to serialize the Hibernate session on the page. The session is on 
the page to enable extended Hibernate sessions. I tried switching to 
JDK-based serialization (per the suggestion in the exception message), and 
got a different error; I'll post that in a separate e-mail to cut down on 
the length.

Here's the log of the error with wicket serialization:

11:23:58,209 ERROR Objects:1113 - Error serializing object class 
com.csc.aims.specchange.wicket.SpecChangePage [object=[Page class = 

com.csc.aims.specchange.wicket.SpecChangePage, id = 4, version = 0]]
org.apache.wicket.util.io.WicketSerializeableException: Error writing 
fields for com.csc.aims.specchange.wicket.SpecChangePage
NOTE: if you feel Wicket is at fault with this exception, please report to 
the mailing list. You can switch to JDK based serialization by 

calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new 
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init 

method of your application
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:806)
at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at 
org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1103)
at 
org.apache.wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:741)
at 
org.apache.wicket.protocol.http.FilePageStore.access$800(FilePageStore.java:58)
at 
org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:261)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
at 
org.apache.wicket.util.io.ClassStreamHandler.invokeWriteMethod(ClassStreamHandler.java:471)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:777)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.wicket.util.io.ClassStreamHandler.invokeWriteMethod(ClassStreamHandler.java:459)
... 7 more
Caused by: org.apache.wicket.util.io.WicketSerializeableException: Error 
writing fields for org.hibernate.impl.SessionImpl
pageState->com.csc.aims.specchange.wicket.SpecChangePageState->conversationSession
NOTE: if you feel Wicket is at fault with this exception, please report to 
the mailing list. You can switch to JDK based serialization by 

calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new 
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init 

method of your application
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:806)
at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:863)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:388)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779)
at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at 
org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:863)
at 
org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:388)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.defaultWriteObject(WicketObjectOutputStream.java:465)
at 
org.apache.wicket.protocol.http.FilePageStore$PageSerializer.serializePage(FilePageStore.java:870)
at org.apache.wicket.Page.writeObject(Page.java:1293)
... 12 more
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
at 
org.apache.wicket.util.io.ClassStreamHandler.invokeWriteMethod(ClassStreamHandler.java:471)
at 
org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.j

Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
add(state.buildYourComponent("someWicketId"));

On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote:
>
>
>
> can you elaborate how it relates to wicket?
>
>  Scott Swank wrote on 07/12/07 19:22:
>
>
>  May I suggest the "state pattern" :).
>
> public class Yours
> {
>  private YourState state;
>
>  public Foo someMethod()
>  {
>  return state.getFoo();
>  }
>
>  etc.
>
> }
>
> http://en.wikipedia.org/wiki/State_pattern
>
> On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>
>
>
> Say I have some entity E, and it can have states A,B,C. now, for each state,
> I render the entity a bit differently (showing more or less information,
> changing colors). The page is comprised of many, sometimes nested (in
> panels) components. What is the best way to achieve those variations, other
> than sprinkling 'if (state == S)' statements when creating the components?
>
>
>
>
> One way could be to allow variations ala xslt on the template html based on
> the state (remove a div, change color of a label etc.). But this changes the
> structure of the page, and may make wicket issue errors (no matching markup
> for component).
>
>
>
>
> I would like to hear what others have to say about this issue
>
>
>
>
> Thank you,
>
> Ittay
>
>
>
> --
>  Ittay Dror
>  Chief Architect,
>  R&D, Qlusters Inc.
>  Web: qlusters.com
>  Email: [EMAIL PROTECTED]
>  Phone: +972-3-6081994
>
>  openQRM - Data Center Provisioning
>  --
>  I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get
> your own at http://www.freedom-to-tinker.com
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
>
>
>
> --
>  Ittay Dror
>  Chief Architect,
>  R&D, Qlusters Inc.
>  Web: qlusters.com
>  Email: [EMAIL PROTECTED]
>  Phone: +972-3-6081994
>
>  openQRM - Data Center Provisioning
>  --
>  I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get
> your own at http://www.freedom-to-tinker.com
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


-- 
Scott Swank
reformed mathematician

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


[Wicket-user] Wicket 1.3.0-beta2 & WicketFilter Problem

2007-07-12 Thread severian

I've just upgraded from beta1 to beta2 and have encountered a problem getting
any tests to run.  My configuration in web/xml is pretty standard:



WicketEntryPoint
   
org.apache.wicket.protocol.http.WicketFilter

applicationClassName
MyApplication


configuration
development




WicketEntryPoint
/*

-

And I set up a WicketTester instance in a fairly standard manner, which
correctly picks up web.xml:
-
tester = new WicketTester(myAppInstance, System.getProperty("user.dir") +
"/src/main/webapp");
-

But, with beta 2, I get the following exception:
-
java.lang.IllegalArgumentException: Error initialising WicketServlet - you
have no  element with a url-pattern that uses servlet:
WicketMockServlet
at
org.apache.wicket.protocol.http.WicketFilter.getFilterPath(WicketFilter.java:497)
at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:370)
at
org.apache.wicket.protocol.http.MockWebApplication.(MockWebApplication.java:158)
at
org.apache.wicket.util.tester.BaseWicketTester.(BaseWicketTester.java:180)
at
org.apache.wicket.util.tester.WicketTester.(WicketTester.java:241)
at
com.MyStuff.AbstractControllerTest.initWicketTester(AbstractControllerTest.java:67)
at com.MyStuff.MyTest.setUp(BananaActionCreateTest.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
-

As I'm using a filter and not a servlet, I was surprised by this error
message.  Stepping through the code reveals the difference between beta1 and
beta2 is in WicketFilter.init().
The beta1 code looks something like:
-
...
String filterMapping = 
if (filterConfig.getInitParameter(WicketFilter.FILTER_MAPPING_PARAM) ==
null)
{
...
-

The beta2 code looks something like:
-
...
String filterMapping =
filterConfig.getInitParameter(WicketFilter.FILTER_MAPPING_PARAM);
if (filterMapping == null ||
filterMapping.equals(WicketFilter.SERVLET_PATH_HOLDER))
{
...
-

The new 2nd clause in the "if" statement causes the problem.  This clause is
triggered and quickly results in the exception.  Do I need to change my
configuration?  Am I missing something else?  Or is this a bug?

Severian.
-- 
View this message in context: 
http://www.nabble.com/Wicket-1.3.0-beta2---WicketFilter-Problem-tf4069331.html#a11563997
Sent from the

Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Ittay Dror




can you elaborate how
it relates to wicket? 

Scott Swank wrote on 07/12/07 19:22:


  May I suggest the "state pattern"  :).

public class Yours
{
  private YourState state;

  public Foo someMethod()
  {
return state.getFoo();
  }

  etc.

}

http://en.wikipedia.org/wiki/State_pattern

On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote:
  
  


Hi,




Say I have some entity E, and it can have states A,B,C. now, for each state,
I render the entity a bit differently (showing more or less information,
changing colors). The page is comprised of many, sometimes nested (in
panels) components. What is the best way to achieve those variations, other
than sprinkling 'if (state == S)' statements when creating the components?




One way could be to allow variations ala xslt on the template html based on
the state (remove a div, change color of a label etc.). But this changes the
structure of the page, and may make wicket issue errors (no matching markup
for component).




I would like to hear what others have to say about this issue




Thank you,

Ittay



--
 Ittay Dror
 Chief Architect,
 R&D, Qlusters Inc.
 Web: qlusters.com
 Email: [EMAIL PROTECTED]
 Phone: +972-3-6081994

 openQRM - Data Center Provisioning
 --
 I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get
your own at http://www.freedom-to-tinker.com
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



  
  

  


-- 
Ittay Dror

Chief Architect,

R&D, Qlusters Inc.

Web: qlusters.com

Email: [EMAIL PROTECTED]

Phone: +972-3-6081994 

openQRM - Data Center Provisioning

--

I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get your own at
http://www.freedom-to-tinker.com




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


Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
May I suggest the "state pattern"  :).

public class Yours
{
  private YourState state;

  public Foo someMethod()
  {
return state.getFoo();
  }

  etc.

}

http://en.wikipedia.org/wiki/State_pattern

On 7/12/07, Ittay Dror <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>
>
>
> Say I have some entity E, and it can have states A,B,C. now, for each state,
> I render the entity a bit differently (showing more or less information,
> changing colors). The page is comprised of many, sometimes nested (in
> panels) components. What is the best way to achieve those variations, other
> than sprinkling 'if (state == S)' statements when creating the components?
>
>
>
>
> One way could be to allow variations ala xslt on the template html based on
> the state (remove a div, change color of a label etc.). But this changes the
> structure of the page, and may make wicket issue errors (no matching markup
> for component).
>
>
>
>
> I would like to hear what others have to say about this issue
>
>
>
>
> Thank you,
>
> Ittay
>
>
>
> --
>  Ittay Dror
>  Chief Architect,
>  R&D, Qlusters Inc.
>  Web: qlusters.com
>  Email: [EMAIL PROTECTED]
>  Phone: +972-3-6081994
>
>  openQRM - Data Center Provisioning
>  --
>  I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get
> your own at http://www.freedom-to-tinker.com
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


-- 
Scott Swank
reformed mathematician

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


[Wicket-user] Replace a component with another component by adding a Behaviour

2007-07-12 Thread pixotec

I try to replace a TextArea with a HiddenField (or in next step with a
Panel).

before:
Input comes
here

after:


I added a Behaviour to the TextArea:
public void bind(Component c)
{
target = c;

HiddenField hiddenField = new HiddenField(target.getId(),
target.getModel());

target.replaceWith(hiddenField);
}

but get error:
Component messageInput must be applied to a tag of type 'input', not
'' (line 0, column 0)

How?
-- 
View this message in context: 
http://www.nabble.com/Replace-a-component-with-another-component-by-adding-a-Behaviour-tf4067951.html#a11559560
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] page variations (in 1.2)

2007-07-12 Thread Ittay Dror




Hi,


Say I have some entity
E, and it can have states A,B,C. now, for each state, I render the
entity a bit differently (showing more or less information, changing
colors). The page is comprised of many, sometimes nested (in panels)
components. What is the best way to achieve those variations, other
than sprinkling 'if (state == S)' statements when creating the
components? 


One way could be to
allow variations ala xslt on the template html based on the state
(remove a div, change color of a label etc.). But this changes the
structure of the page, and may make wicket issue errors (no matching
markup for component).


I would like to hear
what others have to say about this issue


Thank you,
Ittay


-- 
Ittay Dror

Chief Architect,

R&D, Qlusters Inc.

Web: qlusters.com

Email: [EMAIL PROTECTED]

Phone: +972-3-6081994 

openQRM - Data Center Provisioning

--

I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get your own at
http://www.freedom-to-tinker.com




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


Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-12 Thread Johan Compagner

if the jetty classloader is able to load that class
then you have a wrong configuration.
Jetty shouldn't be able to load the classes at all, those classes shouldn't
be in the webapp classpath

johan


On 7/12/07, Watter <[EMAIL PROTECTED]> wrote:





Jean-Baptiste Quenot-3 wrote:
>
> * Watter:
>
>> I  created  a  small  demo  application  that  demonstrates  the
>> problem? Is there somewhere  I can upload the zip  file (it uses
>> maven  so it's  only 7kb)  with some  instructions on  the steps
>> necessary to recreate the problem? I hate  to open a bug in JIRA
>> for this seeing as how it's most likely a misconfiguration error
>> on my part and not really a bug in Wicket.
>
> Please file a  JIRA issue, and I'll look into  it.  As I suggested
> in this  thread, I think the  problem is caused by  the page being
> de-serialized from the file store.
>

The issue has been created.

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

Matt

--
View this message in context:
http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11559120
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-12 Thread Watter



Jean-Baptiste Quenot-3 wrote:
> 
> * Watter:
> 
>> I  created  a  small  demo  application  that  demonstrates  the
>> problem? Is there somewhere  I can upload the zip  file (it uses
>> maven  so it's  only 7kb)  with some  instructions on  the steps
>> necessary to recreate the problem? I hate  to open a bug in JIRA
>> for this seeing as how it's most likely a misconfiguration error
>> on my part and not really a bug in Wicket.
> 
> Please file a  JIRA issue, and I'll look into  it.  As I suggested
> in this  thread, I think the  problem is caused by  the page being
> de-serialized from the file store.
> 

The issue has been created. 

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

Matt

-- 
View this message in context: 
http://www.nabble.com/Has-something-changed-in-markup-inheritance--tf3963374.html#a11559120
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] How can I prevent a WebPage from being serialized

2007-07-12 Thread Johan Compagner

thats currently not possible (or you must your another SessionStore
completely)
because we need to store the page somewhere and the pagemap will only hold
one

but if the object can't be serialized it also shouldn't go into the http
session and that
will be the case everytime or you must make the popup page completely
stateless.
So why isn't it serializeable?

johan


On 7/12/07, Stefan Lindner <[EMAIL PROTECTED]> wrote:


How can I prevent a WebPage from being serialized to the FilePageStore?
I have a page that ist to be displayed within a modal window. The page
recieves an object as parameter but this object is not serializable. Can
I tell wicket not to serialize this page? I have tried to set
page.isVersioned() to false but this does not the trick.

Stefan Lindner

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

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


Re: [Wicket-user] stateless wicket?

2007-07-12 Thread Johan Compagner

the real client side wicket , so storing the data in the browser didn't make
it
and i don't think it will make it very soon because no current committer
really sees
the big benefit of this approach.

johan


On 7/11/07, James Law <[EMAIL PROTECTED]> wrote:


Hi,

On the "features" page of the wicket webpage, there is some indication
that a stateless, client side wicket will appear at some point. i guess
eliminating the session usage that typically occurs with wicket. Could
someone elaborate on how this will be accoomplished, and if this is a
1.3 feature?

Thanks
James

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

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


[Wicket-user] How can I prevent a WebPage from being serialized

2007-07-12 Thread Stefan Lindner
How can I prevent a WebPage from being serialized to the FilePageStore?
I have a page that ist to be displayed within a modal window. The page
recieves an object as parameter but this object is not serializable. Can
I tell wicket not to serialize this page? I have tried to set
page.isVersioned() to false but this does not the trick.

Stefan Lindner

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


Re: [Wicket-user] Navigator customization

2007-07-12 Thread nazeem

Thanks Igor for the quick response... I got it solved...

- nazeem 


nazeem wrote:
> 
> I have the same case where I wanted to customize the navigation toolbar to
> add few action menu items as well. So I have written my own version of
> AjaxFallbackCustomDataTable by just copying the
> AjaxFallbackDefaultDataTable code in to my package and renaming. There I
> have commented all addition of toolbars and I am adding them at the time
> of declaring it.
> 
> 
> public AjaxFallbackCustomDataTable(String id, final IColumn[] columns,
>   SortableDataProvider dataProvider, int rowsPerPage)
>   {
>   super(id, columns, dataProvider, rowsPerPage);
>   setOutputMarkupId(true);
>   setVersioned(false);
>   //addTopToolbar(new AjaxNavigationToolbar(this));
>   //addTopToolbar(new AjaxCustomNavigationToolbar(this));
>   //addTopToolbar(new AjaxFallbackHeadersToolbar(this, 
> dataProvider));
>   addBottomToolbar(new NoRecordsToolbar(this));
>   }
> 
> During declaration, 
> 
> AjaxFallbackCustomDataTable table = new
> AjaxFallbackCustomDataTable("employeesAjax", columns, dataProvider, 7);
> AbstractToolbar navigationTB = new AjaxCustomNavigationToolbar(table);
> navigationTB.add(new Label("newSpan"));
> table.addTopToolbar(navigationTB);
> table.addTopToolbar(new AjaxFallbackHeadersToolbar(table, dataProvider));
> AjaxPagingNavigator pgNav = new AjaxPagingNavigator("paging", table);
> add(table);
> 
> From the above code, it is clear that I have customized the
> AjaxDefaultNavigationToolbar to AjaxCustomNavigationToolbar. The markup
> html is also copied and renamed to the same..html. So the problem here is
> that I am trying to add some action menus to the navigation toolbar, at
> declaration, but it doesn't work. 
> navigationTB.add(new Label("newSpan"));
> 
> I have also modified the markup to contain wicket:id="newSpan". 
> 
> 
>   
>   
>
>   
>New   
># Save   
># Delete 
>   Filter  style=""/>  
>resr/table/img/find.png 
>   
>   [navigator-label]
>   [navigator]
>   
>   
> 
> 
> 
> But I am getting the error that 
> 
> [2007-07-12 10:24:11,453] [ERROR] [btpool0-2]
> [wicket.RequestCycle.step(1043)] - Unable to find component with id
> 'newSpan' in [MarkupContainer [Component id = thirdPartyDetails, page =
> com.bp.way2sky.web.layout.Index, path =
> 0:tabs:panel:thirdPartyDetails.ThirdParty, isVisible = true, isVersioned =
> true]]. This means that you declared wicket:id=newSpan in your markup, but
> that you either did not add the component to your page at all, or that the
> hierarchy does not match.
> [markup =
> file:/C:/Documents%20and%20Settings/mnazeem/Local%20Settings/Temp/Jetty_0_0_0_0_8080__bizpad_/webapp/WEB-INF/classes/com/bp/way2sky/web/logistics/tp/ThirdParty.html,
> index = 16, current = '' (line 14, column 2)]
> wicket.markup.MarkupException: Unable to find component with id 'newSpan'
> in [MarkupContainer [Component id = thirdPartyDetails, page =
> com.bp.way2sky.web.layout.Index, path =
> 0:tabs:panel:thirdPartyDetails.ThirdParty, isVisible = true, isVersioned =
> true]]. This means that you declared wicket:id=newSpan in your markup, but
> that you either did not add the component to your page at all, or that the
> hierarchy does not match.
> [markup =
> file:/C:/Documents%20and%20Settings/mnazeem/Local%20Settings/Temp/Jetty_0_0_0_0_8080__bizpad_/webapp/WEB-INF/classes/com/bp/way2sky/web/logistics/tp/ThirdParty.html,
> index = 16, current = '' (line 14, column 2)]
> 
> 
> Trying to achieve something like this...
>  http://www.nabble.com/file/p11554095/dtable.jpg 
> - nazeem
> 
> 
> igor.vaynberg wrote:
>> 
>> extend datatable instead of defaultdatatable and add your own toolbars :)
>> 
>> defaultdatatable is just a convinience
>> 
>> -Igor
>> 
>> 
>> On 8/29/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
>>>
>>> If I knew how that would be an honor , but I'm a wicket begginer yet,
>>> besides
>>> I've been browsing the source code and I found what seems to be a
>>> problem
>>> with the suclassing of NavigatorLabel and  PagingNavigator approach, and
>>> this is the construction of a DefaultDataTable because there are the
>>> toolnbars added to the table.How could this be tackled?
>>>
>>> Thanks,
>>>
>>>
>>> Jaime.
>>>
>>> *Igor Vaynberg <[EMAIL PROTECTED]>* wrote:
>>>
>>> you are more then welcome to patch it :)
>>>
>>> -Igor
>>>
>>>
>>> On 8/29/06, Jaime De La Jara <[EMAIL PROTECTED] > wrote:
>>> >
>>> > Ok thanks, maybe that properties could be parametrized in some way, so
>>> > one would configure them instead of subclassing each time a custom
>>> di

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-07-12 Thread Jean-Baptiste Quenot
* Watter:

> I  created  a  small  demo  application  that  demonstrates  the
> problem? Is there somewhere  I can upload the zip  file (it uses
> maven  so it's  only 7kb)  with some  instructions on  the steps
> necessary to recreate the problem? I hate  to open a bug in JIRA
> for this seeing as how it's most likely a misconfiguration error
> on my part and not really a bug in Wicket.

Please file a  JIRA issue, and I'll look into  it.  As I suggested
in this  thread, I think the  problem is caused by  the page being
de-serialized from the file store.

Cheers,
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

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


Re: [Wicket-user] stateless wicket?

2007-07-12 Thread Janne Hietamäki
Hi,

Wicket pages are not stateless in a way they are for example in GWT  
where whole page structure can be generated as a javascript and there  
is no interaction with the server. That is currently out of scope of  
Wicket.

However, Wicket supports stateless pages which do not create session  
state. Initial support for deferred session generation is in 1.2, and  
more complete implementation can be found from 1.3.

  For more information see these links:

http://www.mail-archive.com/wicket-user@lists.sourceforge.net/ 
msg26768.html
http://cwiki.apache.org/WICKET/stateless-pages.html


Also, see Component#isStateless() and Component#getStatelessHint()

Janne

On Jul 12, 2007, at 12:46 AM, James Law wrote:

> Hi,
>
> On the "features" page of the wicket webpage, there is some indication
> that a stateless, client side wicket will appear at some point. i  
> guess
> eliminating the session usage that typically occurs with wicket. Could
> someone elaborate on how this will be accoomplished, and if this is a
> 1.3 feature?
>
> Thanks
> James
>
> -- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] JPA Annotation Validation

2007-07-12 Thread Martijn Dashorst
According to the source code it supports the hibernate validators.
What you put in, it validates.

http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/main/java/org/wicketstuff/hibernate/validator/HibernateFormComponentValidator.java

Haven't tried it, but don't have an immediate need to do so either.
Why not just try it, if it does it, great, if not, then perhaps add it
and contribute back?

Martijn


On 7/12/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
>
> Fair enough Ryan, but one question for you.
>
> Does this only work with the @Length and @NotNull annotations or does it
> also work with the attributes of the @Column annotation (nullable and
> length)?
>
> Thanks
> Craig
>
>
> Ryan Sonnek-2 wrote:
> >
> > I may be biased, but i'm using these annotations on a production/live site
> > and they've made my life easier.  no more hibernate exceptions bubbling up
> > to the screen because a field was left blank.
> >
> > On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Has anyone made heavy use of this project yet?  Any issues or concerns?
> >>
> >> -Craig
> >>
> >>
> >> igor.vaynberg wrote:
> >> >
> >> >
> >> http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/
> >> >
> >> > -igor
> >> >
> >> >
> >> > On 7/11/07, Craig Lenzen <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> Unless I was dreaming this the other night I swear someone announced
> >> that
> >> >> they created a wicket stuff project that added form validation based
> >> on
> >> >> JPA
> >> >> annotations of a domain model?  Was I dreaming, if not I can't seem to
> >> >> find
> >> >> the project in wicket stuff.
> >> >>
> >> >> Thanks
> >> >> Craig
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11549413
> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >>
> >> -
> >> >> This SF.net email is sponsored by DB2 Express
> >> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> >> control of your XML. No limits. Just data. Click to get it now.
> >> >> http://sourceforge.net/powerbar/db2/
> >> >> ___
> >> >> Wicket-user mailing list
> >> >> Wicket-user@lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >>
> >> >
> >> >
> >> -
> >> > This SF.net email is sponsored by DB2 Express
> >> > Download DB2 Express C - the FREE version of DB2 express and take
> >> > control of your XML. No limits. Just data. Click to get it now.
> >> > http://sourceforge.net/powerbar/db2/
> >> > ___
> >> > Wicket-user mailing list
> >> > Wicket-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11550269
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/JPA-Annotation-Validation-tf4064781.html#a11552674
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
G