Re: sneak peek - brix - wicket/jcr cms

2008-07-10 Thread freak182

I checked out brix and run, it's cool :) ...I know a popular CMS built in PHP
(Joomla)..i know brix is still in development but if could brix do like
joomla it would be great...it is possible? or is just a wish list :) hehehe
anyway, goodluck to the team...its cool to have cms like this in java and
most our project is in wicket :)


igor.vaynberg wrote:
 
 a few of us have been quietly working on a wicket/jcr cms called Brix
 for a while now. it is almost at a point where we are ready to release
 a beta, just waiting for wicket-m3 build to go official. in the
 meanwhile, if you are not afraid of building from source and want a
 sneak peek, you can check it out here [1].
 
 brix is more of a cms framework/library than a full blown cms. it is
 designed to be integrated into wicket applications that require cms
 functionality as part of their feature set. for example, at my company
 we have built a set of ecommerce tiles (brix tiles are dynamic
 components that can live inside a cms page) that allow us to build
 webstores on top of brix.
 
 brix includes a url coding strategy (which will hopefully become part
 of wicket 1.5) that allows for stateless pages as well as url
 contribution from tiles and query/indexed parameter mixtures. it has
 been designed with scalability in mind although we have not yet built
 a caching solution, nor tested if one is necessary.
 
 to hopefully preempt some common questions:
 brix uses a simple plugin system to allow extensibility. we did not
 use osgi because our time is limited and running wicket inside osgi or
 osgi inside wicket is not straight forward yet. will we switch to osgi
 later? maybe. we did not use spring because we did not need the
 overhead and spring's jcr support is broken because its
 jcrsessionfactory does not support multiple jcr workspaces so we would
 have to roll our own anyways.
 
 suggestions, feedback, etc are welcome as well as any help. we have
 not been working on this very long so it is not extremely polished
 yet. for more info see the website.
 
 [1] http://brix-cms.googlecode.com
 
 -igor
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/sneak-peek---brix---wicket-jcr-cms-tp18350188p18376603.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



TabbedPanel and css problem

2008-07-10 Thread Pierre Gilquin

Hi all,

I have try to use a  TabbedPanel in my appli.
The css look in not taking into account.

If I look into the html generated I have :
span class=tabpanel
div class=tab-row
ul
li class=tab0 selected
...

If I look in the example on
http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage

The equivalent ligne is
div class=tabpanel

It's probably why the style.css is not applyed.
Do you have any idea why my appli send a span html tag ?
For my information, where are the gif used for TabbedPanel ? I cannot find them in the wicket-extensions-1.3.0-rc1.jar 
or any where else !

Thanks in advance.

Pierre 



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



Re: Direclty using parent's compoundpropertymodel not possible ?

2008-07-10 Thread ZedroS

Thanks a lot for your answer. One question though :

Johan Compagner wrote:
 
 CPM is used that child components can have sub objects/properties of that
 main object by using the child components id as the property
 
how can I easily get the CPM in sub component ?

For example, if I have a family object with children in itm and a panel
displaying the basic family info with a subpanel displaying the children
info, how would you do to give/get the CPM's children in there ?

thanks again !

zedros
-- 
View this message in context: 
http://www.nabble.com/Direclty-using-parent%27s-compoundpropertymodel-not-possible---tp18356056p18377171.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: TabbedPanel and css problem

2008-07-10 Thread Stefan Lindner
How does your RAW html file look like? The one you write by yourself? Something 
like

 span wicket:id=myTabPanel/span

?



-Ursprüngliche Nachricht-
Von: Pierre Gilquin [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 10. Juli 2008 08:27
An: users@wicket.apache.org
Betreff: TabbedPanel and css problem

Hi all,

I have try to use a  TabbedPanel in my appli.
The css look in not taking into account.

If I look into the html generated I have :
span class=tabpanel
div class=tab-row
ul
 li class=tab0 selected
...

If I look in the example on
http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage

The equivalent ligne is
div class=tabpanel

It's probably why the style.css is not applyed.
Do you have any idea why my appli send a span html tag ?
For my information, where are the gif used for TabbedPanel ? I cannot find them 
in the wicket-extensions-1.3.0-rc1.jar or any where else !
Thanks in advance.

Pierre 


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


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



Re: Component self updating when Ajax call changed a commun model ?

2008-07-10 Thread ZedroS

Hi

Thanks again !

Were you thinking of this discussion :
http://www.nabble.com/AJAX-validation-and-multiple-requests-td15546309.html
?

If so it looks like there is no real feature for this need in the
framework and that it should be done by hand each time, do we agree ?

++
-- 
View this message in context: 
http://www.nabble.com/Component-self-updating-when-Ajax-call-changed-a-commun-model---tp18355808p18377341.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: disabling error validation

2008-07-10 Thread ZedroS

Hi

If you don't want our form to be validated, why do you use a SubmitLink ? A
simple Link wouldn't trigger  the validation. Isn't that what you're looking
for ?

++
zedros

-- 
View this message in context: 
http://www.nabble.com/disabling-error-validation-tp18375841p18377437.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: TabbedPanel and css problem

2008-07-10 Thread Umesh Paliwal
Hi Pierre,

You will have to place the Tab images in your web-app directory. The CSS
also needs to placed in the web-app directory.


If the CSS is not there in the web-app directory and is in the same
place as the HTML file,
You need to include it in your java code. 

add(new StyleSheetReference(...));   == method to add the CSS.

Thanks and regards,
Umesh

-Original Message-
From: Pierre Gilquin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 11:57 AM
To: users@wicket.apache.org
Subject: TabbedPanel and css problem

Hi all,

I have try to use a  TabbedPanel in my appli.
The css look in not taking into account.

If I look into the html generated I have :
span class=tabpanel
div class=tab-row
ul
 li class=tab0 selected
...

If I look in the example on
http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.ap
ache.wicket.examples.compref.TabbedPanelPage

The equivalent ligne is
div class=tabpanel

It's probably why the style.css is not applyed.
Do you have any idea why my appli send a span html tag ?
For my information, where are the gif used for TabbedPanel ? I cannot
find them in the wicket-extensions-1.3.0-rc1.jar 
or any where else !
Thanks in advance.

Pierre 


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


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



Re: disabling error validation

2008-07-10 Thread tbt

Hi

But I need the component models to be updated. Thats why i'm using a
SubmitLink instead of using a Link. I was hoping there was a simple method
to disable form validation with the SubmitLink such as 
'link2.setFormValidation(false)' or something like that.

Is there a way to disable validations for some links and enable validations
for others, yet at the same time update the form components when the links
are clicked. Please provide a simple example.

Thanks  


ZedroS wrote:
 
 Hi
 
 If you don't want our form to be validated, why do you use a SubmitLink ?
 A simple Link wouldn't trigger  the validation. Isn't that what you're
 looking for ?
 
 ++
 zedros
 
 

-- 
View this message in context: 
http://www.nabble.com/disabling-error-validation-tp18375841p18377623.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: disabling error validation

2008-07-10 Thread Serkan Camurcuoglu

this link may help you a bit..

http://cwiki.apache.org/WICKET/conditional-validation.html



tbt wrote:

Hi

But I need the component models to be updated. Thats why i'm using a
SubmitLink instead of using a Link. I was hoping there was a simple method
to disable form validation with the SubmitLink such as 
'link2.setFormValidation(false)' or something like that.


Is there a way to disable validations for some links and enable validations
for others, yet at the same time update the form components when the links
are clicked. Please provide a simple example.

Thanks  



ZedroS wrote:
  

Hi

If you don't want our form to be validated, why do you use a SubmitLink ?
A simple Link wouldn't trigger  the validation. Isn't that what you're
looking for ?

++
zedros





  



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



Avoid page serialization

2008-07-10 Thread Daniele Dellafiore
I am wondering if page serialization in wicket is always necessary. I
have read this:

Wicket keeps its tree of components in the session. In a clustered
environment, session data needs to be replicated across the cluster.
This is done by serializing objects in a cluster-node's session and
deserializing them on another cluster-node's session

here: http://cwiki.apache.org/WICKET/spring.html

So I have asked myself: what if I do not have a clustered environment?
Is serialization really needed anyway?

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: Avoid page serialization

2008-07-10 Thread Johan Compagner
yes with the default pagestore of 1.3+ this is needed
We serialize pages to disk.

On Thu, Jul 10, 2008 at 10:37 AM, Daniele Dellafiore [EMAIL PROTECTED]
wrote:

 I am wondering if page serialization in wicket is always necessary. I
 have read this:

 Wicket keeps its tree of components in the session. In a clustered
 environment, session data needs to be replicated across the cluster.
 This is done by serializing objects in a cluster-node's session and
 deserializing them on another cluster-node's session

 here: http://cwiki.apache.org/WICKET/spring.html

 So I have asked myself: what if I do not have a clustered environment?
 Is serialization really needed anyway?

 --
 Daniele Dellafiore
 http://blog.ildella.net/

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




How can i use a Image as Link?

2008-07-10 Thread HITECH79

Hallo,

how can i use a Image as Link and the mouse pointer is changing to a
hand-symbol...?

Cheers

-- 
View this message in context: 
http://www.nabble.com/How-can-i-use-a-Image-as-Link--tp18378790p18378790.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: How can i use a Image as Link?

2008-07-10 Thread Stefan Lindner
a class=myCssClass href=# wicket:id=myLinkimg
src=images/neu.gif alt=Klicken Sie hier um einen neuen
Therapiekatalog anzulegen.//a

Use css a.myCssClass:hover to modify mouse cursor on over.

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



Re: How can i use a Image as Link?

2008-07-10 Thread Piller Sébastien

Try this

HTML
a wicket:id=linkimg wicket:id=img //a

JAVA
add(new PageLink(link, MyPage.class).add(new Image(img, new 
ResourceReference(MyPage.class, img.png


For the hand cursor, use css cursor: whateveryouwant

HITECH79 a écrit :

Hallo,

how can i use a Image as Link and the mouse pointer is changing to a
hand-symbol...?

Cheers

  



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



AjaxFallbackDefaultDataTable Header Changing by CSS?

2008-07-10 Thread HITECH79

Hallo,

can i change the Header-Style from AjaxFallbackDefaultDataTable  by CSS? 

How can i put or use sort-arrows for sorting the table...?

Cheers
-- 
View this message in context: 
http://www.nabble.com/AjaxFallbackDefaultDataTable-Header-Changing-by-CSS--tp18378908p18378908.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.

Hi

We're currently facing an issue with a DateTextField define like this :
DateTextField yearOfPublication = new DateTextField(published, getModel(),
new PatternDateConverter(,true));
add(yearOfPublication);
This field is added in a panel containing as well a required field (named
title). This panel is added to a form containing a feedback panel and a
compound property model. A simple html submit button does the submit.

In a new browser session, when I first access the page, if a put a value in
this DateTextField and submit the form, no validation is made (be it of the
required text field being null or the date field itself : I can put letters
into it without error showing up)  and everything is sent to the DB, which
of course complain of the missing required title (of the required
textfield).

We are using Hibernate for the DAO, Guice for injection and Wicket 1.3.3.

Any clue of why it happens ?

Any help is really appreciated (users are waiting..).

I add a file with the stack trace (I just removed some packages names) if it
can help :  http://www.nabble.com/file/p18379140/trace.txt trace.txt 

Thanks in advance

bye
Joseph
-- 
View this message in context: 
http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379140.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



(Wicket + Netbeans) without (Maven + NB.WicketPlugin)

2008-07-10 Thread wickid

hello, community!

i am using the latest wicket plugin for netbeans (bundeled with
wicket-1.3.3). but i want to use wicket-1.4-m2 (generics are my friends).

this doesn't work: tomcat and glassfish are telling me, they can't find
velocity and slf4j (ClassNotFoundException). but i have both installed and
listed in project's dependencies.

i'm glad, that netbeans' wicket plugin doesn't need maven.
i am using an offline machine, while maven needs to download hundreds of
libraries to function.

but, i think, the wicket package itself (not the netbeans plugin) needs
maven, right?

anyway: is there a possibility to use wicket inside netbeans WITHOUT the
wicket-netbeans plugin, but also without using maven?

thanks in advice!

-- 
View this message in context: 
http://www.nabble.com/%28Wicket-%2B-Netbeans%29-without-%28Maven-%2B-NB.WicketPlugin%29-tp18379298p18379298.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.

Hi

We have found it : it's the
getRequestCycleSettings().setGatherExtendedBrowserInfo(true); setting in the
application initSettings() which was causing all this fuss. Since we
commented it out it works fine...

shall I open a bug ?

bye
joseph
-- 
View this message in context: 
http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: sneak peek - brix - wicket/jcr cms

2008-07-10 Thread wicket user
Hi Patrick,

I am very happy to do that.

To start with a Getting Started document will be really handy.

Regards
Dipu






On Wed, Jul 9, 2008 at 10:05 PM, Patrick Angeles [EMAIL PROTECTED]
wrote:


 Hi Dipu,

 Thanks for looking into Brix. If you can identify any specific areas where
 we could improve our documentation, let us know.



 wicket user-2 wrote:
 
  i am very impressed with what i see there,
 
  i had created a simple POC in my company for managing the contents in our
  wicket apps,
  i can see pretty much everything i used here like  jackrabbit, code
  mirror,
  rich editor etc
 
  looking forward for the release and some more documentation.
 
  you guys rock
 
  many thanks
  Dipu
 
 
 
 
 
  On Tue, Jul 8, 2008 at 11:06 PM, Igor Vaynberg [EMAIL PROTECTED]
  wrote:
 
  a few of us have been quietly working on a wicket/jcr cms called Brix
  for a while now. it is almost at a point where we are ready to release
  a beta, just waiting for wicket-m3 build to go official. in the
  meanwhile, if you are not afraid of building from source and want a
  sneak peek, you can check it out here [1].
 
  brix is more of a cms framework/library than a full blown cms. it is
  designed to be integrated into wicket applications that require cms
  functionality as part of their feature set. for example, at my company
  we have built a set of ecommerce tiles (brix tiles are dynamic
  components that can live inside a cms page) that allow us to build
  webstores on top of brix.
 
  brix includes a url coding strategy (which will hopefully become part
  of wicket 1.5) that allows for stateless pages as well as url
  contribution from tiles and query/indexed parameter mixtures. it has
  been designed with scalability in mind although we have not yet built
  a caching solution, nor tested if one is necessary.
 
  to hopefully preempt some common questions:
  brix uses a simple plugin system to allow extensibility. we did not
  use osgi because our time is limited and running wicket inside osgi or
  osgi inside wicket is not straight forward yet. will we switch to osgi
  later? maybe. we did not use spring because we did not need the
  overhead and spring's jcr support is broken because its
  jcrsessionfactory does not support multiple jcr workspaces so we would
  have to roll our own anyways.
 
  suggestions, feedback, etc are welcome as well as any help. we have
  not been working on this very long so it is not extremely polished
  yet. for more info see the website.
 
  [1] http://brix-cms.googlecode.com
 
  -igor
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/sneak-peek---brix---wicket-jcr-cms-tp18350188p18370795.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: (Wicket + Netbeans) without (Maven + NB.WicketPlugin)

2008-07-10 Thread Gwyn Evans
You don't *need* Maven, but if you want to do your own thing, chances are
you're going to have to do more of the investigations into issues yourself
(e.g. provide details )  may find it easier to actually install  use
Maven.  For a start, it doesn't need to download hundreds of libraries to
function - the first time a project is run, it'll try  download what it
needs, but it has an offline mode too if you want to download the
dependencies seperately.

Anyway, no idea about velocity, other than are you sure you downloaded 
installed the velocity jar itself, not just the wicket-velocity extension?
With SLF4J, did you add an implementation as well as the API?  Maybe see the
jars in the wicket-examples WAR 's WEB-INF/lib/?  Beyond that, I can't help,
as I use IDEA  Maven!

/Gwyn

On Thu, Jul 10, 2008 at 10:43 AM, wickid [EMAIL PROTECTED] wrote:


 hello, community!

 i am using the latest wicket plugin for netbeans (bundeled with
 wicket-1.3.3). but i want to use wicket-1.4-m2 (generics are my friends).

 this doesn't work: tomcat and glassfish are telling me, they can't find
 velocity and slf4j (ClassNotFoundException). but i have both installed and
 listed in project's dependencies.

 i'm glad, that netbeans' wicket plugin doesn't need maven.
 i am using an offline machine, while maven needs to download hundreds of
 libraries to function.

 but, i think, the wicket package itself (not the netbeans plugin) needs
 maven, right?

 anyway: is there a possibility to use wicket inside netbeans WITHOUT the
 wicket-netbeans plugin, but also without using maven?

 thanks in advice!

 --
 View this message in context:
 http://www.nabble.com/%28Wicket-%2B-Netbeans%29-without-%28Maven-%2B-NB.WicketPlugin%29-tp18379298p18379298.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Testing behavior of a ModalWindows: close, click...

2008-07-10 Thread Daniele Dellafiore
Hi all.

I am trying to test, with WicketTester, a behavior like this, a
classic delete confirmation dialog:

click on link opens a ModalWindow (OK)
check that the Modal is open indeed (OK, with
tester.assertComponentOnAjaxResponse(deleteModal);)
click on a confirm button on the page in the modal, and test that the
element has been deleted (NO!!!)

I cannot find a way to simulate the click becouse I cannot find the
path for the page inside the modal window.
For me it will be enough to close the modal from the test couse the
code that perform the delete is in the CloseCallback.

Is possible with WicketTester or I have to use some other testing framework?

-- 
Daniele Dellafiore
http://blog.ildella.net/

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



Re: Avoid page serialization

2008-07-10 Thread Matej Knopp
It is necessary as wicket uses serialization to make snapshot of page
state to be able to revert it back on back button.

-Matej

On Thu, Jul 10, 2008 at 10:37 AM, Daniele Dellafiore [EMAIL PROTECTED] wrote:
 I am wondering if page serialization in wicket is always necessary. I
 have read this:

 Wicket keeps its tree of components in the session. In a clustered
 environment, session data needs to be replicated across the cluster.
 This is done by serializing objects in a cluster-node's session and
 deserializing them on another cluster-node's session

 here: http://cwiki.apache.org/WICKET/spring.html

 So I have asked myself: what if I do not have a clustered environment?
 Is serialization really needed anyway?

 --
 Daniele Dellafiore
 http://blog.ildella.net/

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



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



Branding a PageLink target Page

2008-07-10 Thread jensiator

Hi
Does anyone know if its possible to brand the target/response page for a
PageLink in wicket?

I have a core jar with all the base classes. I then have a war project
that depends on the core jar (using Maven2 + Idea). There will be a war for
every customer. Im able to brand everything I want to brand except a
PageLink / Link target. 
I know that I can brand the hole page that holds the link but I dont think
thats a good solution. I'v found to reasons for that:
1. I add the PageLinks in the Page java class constuctor. And I can't change
the Page java class in the core lib(it will change for all the other
brands). Very dangerous to add it again in the branded war(duplicated
reference).  
2. Even if 1. worked I dont want to brand the hole page because I'll get a
lot of duplicate code. Might be big even if I use wicket: extend.  

I found to possible solutions.
1. I have written a PageLink that takes a string resource key. Example:
linkToOptionPage. The value/target in the PageLink is then read from a
property file. I then brand the property file instead.(a little bit like
struts/JSF navigation rules) 
2.I might be able to use dependecy injection in Spring and change the hole
TargetPage class to the specific customers targetpage. But is it worth the
overhead?

Or is it possible that wicket have som built in support for this? I have not
found anything. Please comment my suggestions or inform me if there is
another way?
Jens Alenius
-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18382006.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: (Wicket + Netbeans) without (Maven + NB.WicketPlugin)

2008-07-10 Thread wickid

i think i've found a solution!

i have defined in netbeans two minimal versions of the two libraries:
wicket_minimal and slf4j_minimal

wicket_minimal consists only of:
1) wicket-1.4-m2.jar
2) wicket-auth-roles-1.4-m2.jar
3) wicket-extensions-1.4-m2.jar

slf4j_minimal consists only of:
1) slf4j-api-1.5.2.jar
2) slf4j-jdk14-1.5.2.jar

now wicket-1.4-m2 works.

sadly, tomcat keeps throwing random exceptions.
things like stack overflow exception
or [...]/MyProject/web does not exist or is not a readable directory

but, strange it is, the project works now

-- 
View this message in context: 
http://www.nabble.com/%28Wicket-%2B-Netbeans%29-without-%28Maven-%2B-NB.WicketPlugin%29-tp18379298p18382931.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Best way to debug big session size?

2008-07-10 Thread Johan Compagner
try it with yourkit?

i know it is still a bit of work but normally if you do a request and after
the request you look at the HttpSession
and see how big it is, you should be able to pin point the biggest retained
size

johan


On Thu, Jul 10, 2008 at 5:24 AM, Timo Rantalaiho [EMAIL PROTECTED]
wrote:

 Hello,

 I'm currently debugging a situation where we have too much
 data in the session (in some places, more objects should be
 behind detachable models, smaller object graphs retrieved
 from the db etc). I've added debug logging to get the size
 of the page just before storing it in DiskPageStore (i.e.
 after it has been detach()ed) and sometimes stopped it in
 debugger to inspect the page content, surfed the children in
 the debugger view etc.

 But I don't find an easy way to find out which particular
 part of the component hierarchy is consuming a lot of
 memory, because the whole component tree is bidirectional
 (if you do Objects.sizeof(foo) you get the exactly same
 result for that as for the parent or any child of foo()).

 Any ideas?

 Logging the page size in DiskPageStore if debug level is
 enabled could be a good addition btw.

 Best wishes,
 Timo


 P.S. Matej, thanks for the help the other day on the
 detach() issue. Our models were detaching just fine, but one
 had a dangerous toString() implementation doing getObject()
 which in turn did a reattach, and this messed things up in
 the debugging session :)

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

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




Re: Branding a PageLink target Page

2008-07-10 Thread greeklinux

Hello,

I am not understanding exactly what you mean with branding.
Dynamicaly configure the PageLink Target for a customer?

greetings



jensiator wrote:
 
 Hi
 Does anyone know if its possible to brand the target/response page for a
 PageLink in wicket?
 
 I have a core jar with all the base classes. I then have a war project
 that depends on the core jar (using Maven2 + Idea). There will be a war
 for every customer. Im able to brand everything I want to brand except a
 PageLink / Link target. 
 I know that I can brand the hole page that holds the link but I dont think
 thats a good solution. I'v found to reasons for that:
 1. I add the PageLinks in the Page java class constuctor. And I can't
 change the Page java class in the core lib(it will change for all the
 other brands). Very dangerous to add it again in the branded
 war(duplicated reference).  
 2. Even if 1. worked I dont want to brand the hole page because I'll get a
 lot of duplicate code. Might be big even if I use wicket: extend.  
 
 I found to possible solutions.
 1. I have written a PageLink that takes a string resource key. Example:
 linkToOptionPage. The value/target in the PageLink is then read from a
 property file. I then brand the property file instead.(a little bit like
 struts/JSF navigation rules) 
 2.I might be able to use dependecy injection in Spring and change the hole
 TargetPage class to the specific customers targetpage. But is it worth the
 overhead?
 
 Or is it possible that wicket have som built in support for this? I have
 not found anything. Please comment my suggestions or inform me if there is
 another way?
 Jens Alenius
 

-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18382951.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Igor Vaynberg
try wicket 1.3.4 first.

-igor

On Thu, Jul 10, 2008 at 2:49 AM, Joseph P. [EMAIL PROTECTED] wrote:

 Hi

 We have found it : it's the
 getRequestCycleSettings().setGatherExtendedBrowserInfo(true); setting in the
 application initSettings() which was causing all this fuss. Since we
 commented it out it works fine...

 shall I open a bug ?

 bye
 joseph
 --
 View this message in context: 
 http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Ryan Gravener
If you are accessing any extended browser information, be sure to access
that information in your constructor.  That way you will not be redirect
while submitting your form.

On Thu, Jul 10, 2008 at 9:55 AM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 try wicket 1.3.4 first.

 -igor

 On Thu, Jul 10, 2008 at 2:49 AM, Joseph P. [EMAIL PROTECTED]
 wrote:
 
  Hi
 
  We have found it : it's the
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true); setting in
 the
  application initSettings() which was causing all this fuss. Since we
  commented it out it works fine...
 
  shall I open a bug ?
 
  bye
  joseph
  --
  View this message in context:
 http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




-- 
Ryan Gravener
http://twitter.com/ryangravener


Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.

Ok, we will :)

bye

-- 
View this message in context: 
http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18384019.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



listchoice filtered by textfield ajax help

2008-07-10 Thread taygolf

Hey guys,

I have a question for yall. I want to have a listchoice that holds a list of
options that can be selected by the user. Then I want to have an optional
textfield. IF the textfield is blank I want all choices to show up in the
listchoice. If it is not blank I want to filter the choices in the
listchoice by the text that is typed in the textfield. I also want this to
happen as the user types in the textfield so I want to us ajax.

Is this possible with wicket? I have looked at the autocompletetextfiled and
it does some of the stuff that I wnat to do but it also allows the user to
type whatever they want to type and I want to force the user to select an
option from the list of choices.

Any help would be greatly appreciated

Thanks

T
-- 
View this message in context: 
http://www.nabble.com/listchoice-filtered-by-textfield-ajax-help-tp18384359p18384359.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.

It's not better in 1.3.4...

I'll open the issue later on.

bye
Joseph

-- 
View this message in context: 
http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18384463.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Inline JavaScript form submit

2008-07-10 Thread rit

Hi All,

I have an added Behaviour on button to prevent double submitting . i have
added inline script 

button.setOnClickScript(this.disabled = true; this.className =
this.className + ' disabled'; );

which is working fine for me and disabling my button on first click , but
the issue is after disabling submit button it should called my perform
method.  which is not getting called . it just refresh my page. 

i have even tried couple of things like return true , this.form.submit ,
even use onComponentTag like
onComponentTag(Component component, ComponentTag tag) {
if(!(component instanceof MButton)) return;
super.onComponentTag(component, tag);
tag.put(onClick,this.disabled = true; this.className = 
this.className +
' disabled'; return true;);
}
nothing workign for me .

Please suggest

Thanks
Rits
-- 
View this message in context: 
http://www.nabble.com/Inline-JavaScript-form-submit-tp18385509p18385509.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: listchoice filtered by textfield ajax help

2008-07-10 Thread wicket user
try attaching a AjaxFormComponentUpdatingBehavior to your textfield and
repaint the listchoice

regards
dipu

On Thu, Jul 10, 2008 at 3:38 PM, taygolf [EMAIL PROTECTED] wrote:


 Hey guys,

 I have a question for yall. I want to have a listchoice that holds a list
 of
 options that can be selected by the user. Then I want to have an optional
 textfield. IF the textfield is blank I want all choices to show up in the
 listchoice. If it is not blank I want to filter the choices in the
 listchoice by the text that is typed in the textfield. I also want this to
 happen as the user types in the textfield so I want to us ajax.

 Is this possible with wicket? I have looked at the autocompletetextfiled
 and
 it does some of the stuff that I want to do but it also allows the user to
 type whatever they want to type and I want to force the user to select an
 option from the list of choices.

 Any help would be greatly appreciated

 Thanks

 T
 --
 View this message in context:
 http://www.nabble.com/listchoice-filtered-by-textfield-ajax-help-tp18384359p18384359.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Direclty using parent's compoundpropertymodel not possible ?

2008-07-10 Thread Per Newgro
Am Donnerstag, 10. Juli 2008 09:08:08 schrieb ZedroS:
 Thanks a lot for your answer. One question though :

 Johan Compagner wrote:
  CPM is used that child components can have sub objects/properties of that
  main object by using the child components id as the property

 how can I easily get the CPM in sub component ?

 For example, if I have a family object with children in itm and a panel
 displaying the basic family info with a subpanel displaying the children
 info, how would you do to give/get the CPM's children in there ?

 thanks again !

 zedros

Did you check http://cwiki.apache.org/WICKET/working-with-wicket-models.html 
already? It's explained realy well.

Cheers
Per

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



Re: Wicket Widget

2008-07-10 Thread Carlos Pita
Hi,

 you are working with html. seems like a resonable approach from our end of 
 things.

I agree.

Well, I've postprocessed the output through a couple of regexps
because the task was too simple to be done by xslt or dom machinery.
But now I've hit another problem: links are generated relative to
current page, which is not desired when finally embedding the gadget
in its host. Is there a way to force wicket to generate absolute urls
for the page being rendered? I mean for ajax events, js and css
references, image srcs... everywhere.

Thanks again.
Best regards
-Carlos


 i would say just run it through xslt to transform it to whatever you need.

 -igor

 On Tue, Jul 8, 2008 at 8:53 AM, Carlos Pita [EMAIL PROTECTED] wrote:
 Hi all,

 I'm looking for a fine and dandy (or just fine) way to create widgets
 for igoogle, facebook and others. I would like to reuse our wicket
 components and pages because the widgets are not that different from
 our site but a shrunk version of it. The main problem I'm facing is
 that wicket output seems to unavoidably consist of html (with
 corresponding head and body tags) while widgets are required to
 conform to different syntaxes by their respective hosts in order to be
 embedded. Is there a way to generate xml so that stylesheets and
 javascript appear inside the main tag, this being an arbitrarily
 chosen one, other than postprocessing the html output? Another more
 general way to put the question is if there is a way to produce a more
 or less arbitrary xml from the markup templates. But I guess the
 answer is no because of how wicket components handle header tags (js,
 css contributions). In that case, what would you recommend? A
 postprocessing behavior?

 Thank you in advance
 Best regards
 -Carlos

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



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



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



Re: pdf download - dynamically generated pdf

2008-07-10 Thread mfs

Looking for some suggestions...

mfs wrote:
 
 Guys,
 
 I have use-case where a user can choose to preview a pdf, displayed inline
 in the browser window (without being prompted for the save/open dialog).
 The functionality is working all fine, its just that an
 IllegalStateException is being generated (Response has already been
 committed, be sure not to write to the OutputStream..) which i would
 want to figure out why? and how to avoid it. Below is very approach opted
 (using DynamicWebResource) to flush out the contents of the dynamically
 generated PDF. Please note that i initially was following another approach
 also listed below, which worked fine on all browsers (with no such
 exception being raised) EXCEPT for certain versions of IE, due to which i
 had to switch to this latter approach..
  
 /** Exception Stack Trace - START **/
 
 ERROR - WebResponse - Unable to redirect to: ?wicket:interface=:0:1:::,
 HTTP Response has already been committed.
 ERROR - WicketFilter  - closing the buffer error
 java.lang.IllegalStateException: Response has already been committed, be
 sure not to write to the OutputStream or to trigger a commit due to any
 other action before calling this method.
 at
 com.evermind.server.http.EvermindHttpServletResponse.sendRedirect(EvermindHttpServletResponse.java:1359)
 at
 org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
 at
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:403)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
 at
 com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at.
   
 oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
 at
 com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
 at java.lang.Thread.run(Thread.java:595)
 
 /* Exception Stack Trace - END */
 
 ---
 /* Forms onSubmit CURRENT IMPLEMENTATION - resulting in the above
 exception without breaking any flow*/
 protected void onSubmit() 
 {
 Resource cResource = 
   new
 CertificatePDFResource(certificate.getCertificateId()); // 
 ResourceStreamRequestTarget cTarget =
 new
 ResourceStreamRequestTarget(cResource.getResourceStream());
 cTarget.respond(getRequestCycle());
 };
 
 /* EARLIER IMPLEMENTATION of onSubmit() which didnt work on certain
 versions of IE*/
 protected void onSubmit() 
 {
 Resource cResource = 
   new
 CertificatePDFResource(certificate.getCertificateId()); // 
 cResource.onResourceRequested();
 };
 
 
 In the above snippet CertificatePDFResource is an implementation of
 DynamicWebResource, the getResourceState() Implementation is as below..
 
 --
 /** getResourceState() implementation for DynamicWebResource */
 
   protected ResourceState getResourceState() {
return new ResourceState() {
   protected byte[] pdf;
 
   public String getContentType() {
  return application/pdf;
   }
 
   public Time lastModifiedTime() {
  // TODO to be re-visited
  return Time.now();
   }
 
   public byte[] getData() {
  return getResourceStream();
   }
 
   protected synchronized byte[] getResourceStream(){
  if (pdf== null) {
  pdf = Utils.getPdf.
 
  }
  return pdf;
   }
 
   public int getLength()  {
   return getResourceStream().length;
   }
};
 
 Any suggestions/comments would be appreciated.
 
 Thanks in advance,
 
 Farhan.
 
 

-- 
View this message in context: 
http://www.nabble.com/pdf-download---dynamically-generated-pdf-tp18349109p18388544.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Resource/SharedResource - Display an image

2008-07-10 Thread Roland Huss

Hi,


greeklinux wrote:
 
 your solution works. But the problem is that I am already registering the
 resource in
 an Initializer. But ok...
 
When you bind a resource reference to an application, it's not about
registering the resource itself
but looking it up. My fault.

greeklinux wrote:
 
 Now I am uploading the picture and after the reload, I see the standard
 pic. After a
 site refresh I am seeing the uploaded pic.
 
 Do I have to set any headers?
 
Though I don't know your setup, but you need to refresh your image component
(i.e. if it is done via an Ajax request). No headers needs to be set here.

... roland
-- 
View this message in context: 
http://www.nabble.com/Resource-SharedResource---Display-an-image-tp18348115p18393207.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



London Wicket Event, August 6 at Google, London

2008-07-10 Thread jWeekend

Al and I would like to invite those of you that can get to London on August 6
to our next London Wicket Event at Google's London office - thanks to all
involved at Google (especially Al) for kindly hosting us and for the great
support.

We'll be posting details soon (we have some impressive presentations
lined-up again). This post confirms the date and location.

The  http://jweekend.com/dev/LWUGReg/ registration/event details page 
should be updated by the time you click on this link ... you know the drill.

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


-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Event%2C-August-6-at-Google%2C-London-tp18393484p18393484.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Testing behavior of a ModalWindows: close, click...

2008-07-10 Thread Timo Rantalaiho
On Thu, 10 Jul 2008, Daniele Dellafiore wrote:
 click on link opens a ModalWindow (OK)
 check that the Modal is open indeed (OK, with
 tester.assertComponentOnAjaxResponse(deleteModal);)
 click on a confirm button on the page in the modal, and test that the
 element has been deleted (NO!!!)


modalWindow.visitChildren(AjaxButton.class, new IVisitor() {
public void component(Component component) {
if (component.getId().equals(confirm)) {
wicketTester.executeAjaxEvent(component, onclick);
}
return CONTINUE_TRAVERSAL;
}
});
assertTrue(elementHasBeenDeleted());

 I cannot find a way to simulate the click becouse I cannot find the
 path for the page inside the modal window.

WickeTester has a method for printing component tree to 
System.out, but using visitors for long component paths
helps to make your tests more robust.

Best wishes,
Timo

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

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



Re: Inline JavaScript form submit

2008-07-10 Thread Timo Rantalaiho
On Thu, 10 Jul 2008, rit wrote:
 which is working fine for me and disabling my button on first click , but
 the issue is after disabling submit button it should called my perform
 method.  which is not getting called . it just refresh my page. 

Have you checked if there are validation errors?

Best wishes,
Timo


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